body {
    font-family: Orbitron, sans-serif;
    background-color: #2f353a; /* Dark Olive Green */
    color: #000000; /* Beige */
    margin: 0;
    padding: 0;
}

#cart-container {
    position: relative;
    padding-right: 20px;
}

#cart-icon {
    cursor: pointer;
}

#cart-items {
    list-style: none; /* ✅ Odstraní tečky */
    padding: 0; /* ✅ Zruší zbytečné odsazení */
    margin: 0;
}
.footer {
  background-color: #1f242c;
  color: #ccc;
  padding: 30px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid #333;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffa500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}
#cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
#cart-items li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;           /* klíčové – nezajede to ven */
  /* dříve: justify-content: space-between; */
  justify-content: flex-start;
  word-break: break-word;    /* dlouhá slova se zalomí */
}
#cart-items li > * { min-width: 0; }

#cart-dropdown {
  position: absolute;
  top: 50px;
  right: 8px;
  /* dříve: width: 500px;  */
  width: clamp(280px, 92vw, 500px);
  max-height: 80vh;          /* aby se na mobilu otevřel se svislým scrollením */
  overflow: auto;
  background: white;
  color: black;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  padding: 12px;
  z-index: 1000;
  box-sizing: border-box;
}

#cart-dropdown h3 {
    margin-top: 0;
}
#cart-items img {
  width: 84px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 6px;
}

#cart-items button,
#cart-items .remove-btn {
  width: 100%;
  max-width: 260px;
}

/* --- Extra úzké telefony --- */
@media (max-width: 380px) {
  #cart-dropdown {
    right: 6px;
    width: calc(100vw - 12px);
    padding: 10px;
  }
  #cart-items li {
    flex-direction: column;  /* vše pod sebe, bezpečné i pro malé šířky */
    align-items: flex-start;
  }
}
.hidden {
    display: none;
}

#checkout-btn {
    width: 100%; /* ✅ Zabere celou šířku */
    padding: 12px;
    background-color: #f8c800;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: 0.3s;
}

#checkout-btn:hover {
    background-color: #ffcc00;
}

/* Overlay pro načítání */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

/* Animovaný spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Klíčové snímky pro spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.in-stock {
    color: #28a745; /* Zelená barva */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

header {
    background-color: #2f353a; /* Olive Drab */
    color: white;
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

header img {
    height: 80px;
    padding-left: 20px;
}

#searchDiv {
    width: 400px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#searchBar {
    height: 30px;
    width: 70%;
}

#searchDiv svg {
    display: inline-block;
}

#placeholder {
    padding-right: 20px;
    width: 142px;   
}
header .logo nav ul li:nth-child(3) a{
  border-right: 2px solid #fff;
  padding-right: 14px;
  margin-right: 20px;

}
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    font-size: 1.3rem;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
}
nav li:nth-child(5) > a {
  color: #FFD700; /* gold */
}
#about {
    text-align: center;
    background-color: #2f353a;
    font-size: 0.8rem;
    color: white;
    margin: 0;
    padding: 30px;
}

#about h2 {
    margin: 0;
}

.hero {
    text-align: center;
    background-color: #2f353a;
    padding: 0;
    height: 300px;
}

#heroimg {
    position: relative;
    padding: 0;
    height: 100%;
}

#heroimg img {
    object-position: top;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

#textOverVideo {
    color: white;
    font-size: 2.5rem;
    position: absolute;
    z-index: 1;
    top: 20%;
    left: 10%;
    text-align: start;
}

/* Obecné styly */
#products {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%; /* Ujisti se, že má dostatečnou šířku */
}

#product-list {
    display: flex;           /* Aktivace Flexboxu */
    flex-wrap: wrap;         /* Umožní zalamování do řádků */
    justify-content: center; /* Zarovnání do středu */
    gap: 30px;               /* Zvětšená mezera mezi produkty */
    padding: 20px;           /* Odstup kolem */
    width: 100%;             /* Ujisti se, že využívá celou šířku */
}

.product {
    display: flex;
    flex-direction: column; /* Stacking elements inside the product */
    align-items: center;    /* Zarovnání obsahu na střed */
    background-color: #2f353a; /* Černé pozadí */
    color: white;           /* Bílý text */
    padding: 15px;
    border-radius: 10px;
    width: 300px;           /* Šířka jednoho produktu */
    text-align: center;
    transition: transform 0.2s ease-in-out; /* Plynulý efekt */
}

/* Hover efekt: lehce zvětší produkt */
.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;             /* Obrázek přes celý produkt */
    border-radius: 5px;
}

.product a {
    text-decoration: none;   /* Odstraní podtržení */
    color: white;            /* Změní fialovou barvu na bílou */
}

.product a:hover {
    color: #f8c800; /* Efekt při najetí myší */
}
.product h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    text-transform: uppercase;
    min-height: 50px;      /* stejný prostor pro všechny nadpisy */
    display: flex;
    align-items: flex-start;  /* text začne nahoře */
    justify-content: center;  /* horizontálně zůstane uprostřed */
    text-align: center;
}


.product p {
    font-size: 16px;
    color: #ddd;
    margin-top: 5px;   /* místo defaultních 10px → menší mezera */
}
alert vetsi a dej tam tento style /* Alert box: vystředit doprostřed obrazovky */ .alert-box{ position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10000; /* vzhled panelu */ display: none; /* JS už přepíná na block */ width: min(92vw, 420px); padding: 16px 18px; background: #1a1d20; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.45); } .alert-box button{ margin-top: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 8px; cursor: pointer; } .alert-box button:hover{ background: rgba(255,255,255,.08); } /* (volitelné) poloprůhledné pozadí za alertem */ .alert-box::before{ content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: -1; /* ať je pod panelem */ border-radius: 0; }
/* Tlačítko */
button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #6B8E23;
    color: black;
}

/* Footer */
footer {
    background-color: #2f353a;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* Detail produktu */
.product-container {
    display: flex;
    gap: 40px; /* Větší mezera mezi sloupci */
    max-width: 1200px; /* Větší šířka */
    margin: auto;
    padding: 40px;
    background: transparent;
    border-radius: 10px;
}

.product-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.product-image-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* Zvětšený hlavní obrázek */
    overflow: hidden; /* Zabrání přesahu obrázku */
    border-radius: 5px;
}

#product-image {
    width: 100%;
    max-width: 500px;
    transition: opacity 0.2s ease-in-out;
    cursor: none;
}

.zoom-lens {
    position: absolute;
    width: 200px; /* Větší zvětšená část */
    height: 200px;
    background-repeat: no-repeat;
    background-size: 500%; /* Větší zoom */
    pointer-events: none;
    display: none;
    border: 2px solid white;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.gallery-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.gallery-container img {
    width: 80px; /* Větší miniatury */
    height: 80px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.gallery-container img:hover,
.gallery-container img.selected {
    border-color: #f8c800;
}

/* Pravá strana s textem */
.product-right {
    flex: 1;
    color: white;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Větší mezery mezi sekcemi */
}

/* Název produktu */
#product-name {
    font-size: 2rem;
    font-weight: bold;
}

/* Zvýraznění ceny */
#product-price {
    font-size: 1.8rem;
    color: #A78C3D; /* Zlatavá cena */
    font-weight: bold;
    text-shadow: 1px 1px 3px black; /* Drsnější podsvícení ceny */
}

/* Dropdown pro barvu */

/* Výběr velikosti */
.size-container,
.color-container {
    display: flex;
    justify-content: start; /* Zarovnání vlevo */
    flex-wrap: wrap;
    gap: 15px;
}

.size-option,
.color-option {
    padding: 10px 15px;
    font-size: 18px;
    border: 2px solid white;
    border-radius: 8px; /* Mírně zaoblené hrany */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    will-change: transform, background-color; /* Přednačtení efektu pro prohlížeč */
    flex-shrink: 0; /* Zabránění změně velikosti při aktivaci */
    font-weight: normal; /* Zachování stejné tloušťky fontu */
}

.size-option.selected,
.color-option.selected {
    background-color: #38475a; /* Tmavší a hrubší efekt */
    box-shadow: inset 5px 5px 15px rgba(0, 0, 0, 0.8); /* Drsný vnořený efekt */
    color: white;
    box-sizing: border-box; /* Zajistí, že border nezvětší tlačítko */
}

.size-option:hover,
.color-option:hover {
    background-color: #38475a; /* Tmavší a hrubší efekt */
    box-shadow: inset 5px 5px 15px rgba(0, 0, 0, 0.8); /* Drsný vnořený efekt */
}

/* Akce - košík */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

@media (max-width: 1200px) {
    .product-container {
        flex-direction: column;
    }
    .logo {
        flex-direction: column;
    }
    nav a {
        font-size: 1.2rem;
    }
    nav ul{
        flex-wrap: wrap;
    }
    #cart-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        right: 15px;
        top: 5%;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
        background-color: gold;
        color: black;
        font-size: 1.5rem;
        font-weight: bold;
        border-radius: 50%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }
    #cart-container:hover {
        background-color: darkgoldenrod;
    }
    header {
        display: flex;
        justify-content: center;
    }
}

/* Tlačítko Přidat do košíku */
#add-to-cart {
    background-color: #38475a; /* Stříbrná */
    color: white;
    border: 1px solid #38475a;
    padding: 15px 20px; /* Větší tlačítko */
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

#add-to-cart:hover {
    background-color: #38475a; /* Tmavší a hrubší efekt */
    box-shadow: inset 5px 5px 15px rgba(0, 0, 0, 0.8); /* Drsný vnořený efekt */
    transform: scale(0.98); /* Mírné zmenšení při hoveru */
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-container {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 10px 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); odstraněno */
}
.cart-item-image {
    padding-top: 25px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    text-align: start;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🔹 Zarovná text doleva */
    gap: 3px;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.8);
}

.cart-item-details p {
    margin: 0;
    text-align: left;
}

.remove-item {
    font-family: Orbitron, sans-serif;
    margin-top: 8px;
    background-color: transparent;
    border: 1px solid red;
    color: red;
    padding: 10px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: 0.3s;
}

.remove-item:hover {
    background-color: red;
    color: white;
}
/* === Kontejner alertu === */
.alert-box {
    display: none;
    position: fixed;
    top: 20px; /* Posun na vrch stránky */
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a5f; /* Tmavě modré pozadí */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #9db4c0; /* Světle modré ohraničení */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 1.2rem;
    z-index: 2000;
    width: 50%;
    max-width: 500px;
}

/* === Styl pro tlačítko OK === */
.alert-box button {
    margin-top: 10px;
    padding: 10px 15px;
    background: #9db4c0; /* Světle modrá */
    border: none;
    color: #1e3a5f; /* Tmavě modrá */
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.alert-box button:hover {
    background: white;
    color: #1e3a5f;
}

/* === Ikona úspěchu === */
.alert-box .icon {
    color: #22c55e; /* Zelená pro potvrzení */
    margin-right: 10px;
}
