/* =========================
   RESET & ZÁKLAD
   ========================= */
   *,
   *::before,
   *::after {
     box-sizing: border-box;
   }
   
   body, h1, h2, h3, p, ul, li, a, button {
     margin: 0;
     padding: 0;
     font: inherit;
   }
   
   body {
     font-family: Arial, Helvetica, sans-serif;
     line-height: 1.6;
     background-color: #f2f2f2;
     color: #222;
   }
   
   /* Plynulý scroll pro anchor odkazy */
   html { scroll-behavior: smooth; }
   
   /* =========================
      HLAVIČKA & NAVIGACE
      ========================= */
   header {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     background-color: #333;              /* tmavý pruh */
     box-shadow: 0 3px 6px rgba(0,0,0,0.2);
     border-radius: 0 0 10px 10px;
     z-index: 100;
   }
   
   .nav-container {
     display: flex;
     align-items: center;
     justify-content: space-between;      /* logo vlevo, menu vpravo */
     gap: 20px;
     padding: 10px 30px;
     max-width: 1200px;
     margin: 0 auto;
   }
   
   /* Logo vlevo */
   .logo {
     display: inline-flex;
     align-items: center;
     font-size: 28px;                     /* velikost ikonky */
     text-decoration: none;
     color: #ffcc00;                      /* zlatá */
     transition: color .25s ease;
   }
   .logo:hover { color: #fff; }
   
   /* Navigace vpravo */
   nav ul {
     list-style: none;
     display: flex;
     align-items: center;
     gap: 24px;                           /* mezery mezi odkazy */
   }
   
   nav a {
     color: #fff;
     text-decoration: none;
     font-weight: 700;
     letter-spacing: .2px;
     transition: color .25s ease, opacity .25s ease;
   }
   nav a:hover { color: #ffcc00; }
   
   /* Košík (jen ikona + hover náhled) */
   .cart {
     position: relative;
   }
   .cart-icon {
     font-size: 20px;
     display: inline-flex;
     align-items: center;
   }
   
   /* Mini-okno košíku – skryté, zobrazí se při hoveru */
   .cart-preview {
     position: absolute;
     top: 42px;
     right: 0;
     width: 240px;
     background: #fff;
     border: 1px solid #dcdcdc;
     border-radius: 10px;
     padding: 12px;
     box-shadow: 0 8px 20px rgba(0,0,0,.18);
     opacity: 0;
     visibility: hidden;
     transform: translateY(-8px);
     transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
     z-index: 200;
   }
   .cart:hover .cart-preview {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
   }
   .cart-preview p { margin-bottom: 8px; font-weight: 700; color: #333; }
   .cart-preview ul { list-style: none; margin: 6px 0 10px; padding: 0; }
   .cart-preview li {
     padding: 6px 0;
     border-bottom: 1px solid #eee;
     font-size: 14px;
   }
   .cart-preview li:last-child { border-bottom: none; }
   .cart-preview a {
     color: #0077cc;
     text-decoration: none;
     font-size: 14px;
   }
   .cart-preview a:hover { text-decoration: underline; }
   
   /* =========================
      HLAVNÍ OBSAH
      ========================= */
   main {
     /* padding-top kvůli fixed headeru */
     padding: 120px 20px 60px;
     max-width: 1200px;
     margin: 0 auto;
   }
   
   /* Karty/sekce – centrované nadpisy i texty */
   section {
     background: #fff;
     border-radius: 12px;
     padding: 40px 24px;
     box-shadow: 0 2px 12px rgba(0,0,0,.07);
     margin-bottom: 28px;
     text-align: center;              /* vycentruje nadpis i text */
   }
   section h2 {
     font-size: 28px;
     font-weight: 800;
     margin-bottom: 16px;
     color: #2b2b2b;
   }
   section p { max-width: 800px; margin: 0 auto; }
   
   /* =========================
      PRODUKTY (Kameny/Dřevo)
      ========================= */
   .products {
     margin-top: 18px;
     display: flex;
     flex-wrap: wrap;
     gap: 18px;
     justify-content: center;
   }
   .product {
     width: 220px;
     background: #fafafa;
     border: 1px solid #e7e7e7;
     border-radius: 12px;
     padding: 16px;
     text-align: center;
     transition: transform .15s ease, box-shadow .15s ease;
   }
   .product:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(0,0,0,.08);
   }
   .product h3 { margin-bottom: 8px; font-weight: 800; }
   .product p  { margin-bottom: 10px; color: #444; }
   .product button {
     padding: 10px 12px;
     width: 100%;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     background: #333;
     color: #fff;
     font-weight: 700;
     transition: background .2s ease, opacity .2s ease;
   }
   .product button:hover { background: #ffcc00; color: #222; }
   
   /* =========================
      DROBNÉ RESPONSIVE ÚPRAVY
      ========================= */
   @media (max-width: 960px) {
     .nav-container { padding: 10px 18px; }
     nav ul { gap: 18px; }
   }
   
   @media (max-width: 720px) {
     .nav-container {
       gap: 12px;
     }
     nav ul {
       gap: 14px;
       flex-wrap: wrap;              /* když se nevejde, zabalí se */
       justify-content: flex-end;    /* drží se vpravo */
     }
     .logo { font-size: 26px; }
   }
   
   @media (max-width: 480px) {
     main { padding: 110px 14px 48px; }
     section { padding: 28px 16px; }
     section h2 { font-size: 24px; }
     .product { width: 100%; max-width: 320px; }
   }
   .cart-head, .cart-row {
    display: grid;
    grid-template-columns: 1fr 160px 120px 40px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  .cart-head { font-weight: 800; border-bottom: 2px solid #e7e7e7; }
  .cart-qty { display: flex; align-items: center; gap: 6px; justify-self: center; }
  .cart-qty input { width: 60px; padding: 6px 8px; border:1px solid #ddd; border-radius: 8px; text-align: center; }
  .qty-btn, .remove-btn { padding: 6px 10px; border: none; background: #333; color:#fff; border-radius: 8px; cursor:pointer; }
  .qty-btn:hover, .remove-btn:hover { background: #ffcc00; color:#222; }
  .cart-total { text-align: right; margin-top: 14px; font-size: 18px; }

  /* === TLAČÍTKA POD KOŠÍKEM === */
.cart-actions {
    display: flex;
    justify-content: space-between; /* jedno vlevo, jedno vpravo */
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
  }
  
  /* základní vzhled tlačítek */
  .btn {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
  }
  
  /* světlé tlačítko (vlevo) */
  .btn-secondary {
    background-color: #f3f3f3;
    color: #333;
    border: 1px solid #ccc;
  }
  .btn-secondary:hover {
    background-color: #e2e2e2;
    color: #000;
  }
  
  /* tmavé tlačítko (vpravo) */
  .btn-primary {
    background-color: #333;
    color: #fff;
    border: none;
  }
  .btn-primary:hover {
    background-color: #ffcc00;
    color: #222;
  }
  
  /* menší obrazovky – tlačítka pod sebe */
  @media (max-width: 600px) {
    .cart-actions {
      flex-direction: column;
      gap: 12px;
    }
    .btn {
      width: 100%;
      text-align: center;
    }
  }
  /* =========================
   PRODUCTS GRID + CARDS
========================= */
.products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
  margin-top:16px;
}
.product{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:14px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  padding:14px;
}
.product-image-btn{
  all:unset;
  display:block;
  cursor:pointer;
}
.product-img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #eee;
  display:block;
}
.product-title{ margin:10px 0 6px; font-size:16px; }
.product-price{ margin:0 0 10px; font-weight:800; }

/* =========================
   NAV DROPDOWN (hover menu)
========================= */
.nav-dropdown{ position:relative; }
.nav-preview{
  position:absolute;
  right:0;
  top:110%;
  width:220px;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  padding:8px;
  display:none;
  z-index:2000;
}
.nav-preview a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#222;
  font-weight:700;
}
.nav-preview a:hover{ background:#ffcc00; }
.nav-dropdown:hover .nav-preview{ display:block; }

/* =========================
   LIGHTBOX (product gallery)
========================= */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.lightbox{
  width:min(980px, 96vw);
  background:#111;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  color:#fff;
  font-weight:700;
}
.lightbox-close{
  background:transparent;
  border:0;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  padding:6px 10px;
}
.lightbox-main{
  position:relative;
  background:#000;
}
.lightbox-img{
  width:100%;
  height:min(70vh, 620px);
  object-fit:contain;
  display:block;
}
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:0;
  width:44px;
  height:44px;
  border-radius:999px;
  cursor:pointer;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:20px;
}
.lightbox-prev{ left:12px; }
.lightbox-next{ right:12px; }
.lightbox-nav:hover{ background:rgba(255,255,255,.25); }
.lightbox-thumbs{
  display:flex;
  gap:8px;
  padding:10px 12px;
  overflow:auto;
  background:#0b0b0b;
}
.lightbox-thumb{
  width:72px;
  height:54px;
  object-fit:cover;
  border-radius:10px;
  border:2px solid transparent;
  cursor:pointer;
  opacity:.85;
}
.lightbox-thumb.active{
  border-color:#ffcc00;
  opacity:1;
}
/* =========================
   4 produkty v řádku (desktop)
========================= */
.products-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-top:16px;
}
@media (max-width: 1100px){
  .products-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px){
  .products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .products-grid{ grid-template-columns: 1fr; }
}

/* --- Produkt karta --- */
.product{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:14px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  padding:14px;
}
.product-image-btn{
  all:unset;
  display:block;
  cursor:pointer;
}
.product-img{
  width:100%;
  height:210px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #eee;
  display:block;
}
.product-title{ margin:10px 0 6px; font-size:16px; }
.product-price{ margin:0 0 10px; font-weight:800; }

/* =========================
   NAV DROPDOWN (hover) – pro Kameny/Dřevo
========================= */
.nav-dropdown{ position:relative; }
.nav-preview{
  position:absolute;
  right:0;
  top:110%;
  width:240px;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  padding:8px;
  display:none;
  z-index:2000;
}
.nav-preview a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#222;
  font-weight:700;
}
.nav-preview a:hover{ background:#ffcc00; }
.nav-dropdown:hover .nav-preview{ display:block; }

/* =========================
   LIGHTBOX (galerie)
========================= */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.lightbox{
  width:min(980px, 96vw);
  background:#111;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  color:#fff;
  font-weight:700;
}
.lightbox-close{
  background:transparent;
  border:0;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  padding:6px 10px;
}
.lightbox-main{ position:relative; background:#000; }
.lightbox-img{
  width:100%;
  height:min(70vh, 620px);
  object-fit:contain;
  display:block;
}
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:0;
  width:44px;
  height:44px;
  border-radius:999px;
  cursor:pointer;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:20px;
}
.lightbox-prev{ left:12px; }
.lightbox-next{ right:12px; }
.lightbox-nav:hover{ background:rgba(255,255,255,.25); }

.lightbox-thumbs{
  display:flex;
  gap:8px;
  padding:10px 12px;
  overflow:auto;
  background:#0b0b0b;
}
.lightbox-thumb{
  width:72px;
  height:54px;
  object-fit:cover;
  border-radius:10px;
  border:2px solid transparent;
  cursor:pointer;
  opacity:.85;
}
.lightbox-thumb.active{
  border-color:#ffcc00;
  opacity:1;
}
/* ===== Lepší hitbox dropdownu (Kameny/Dřevo) ===== */
.nav-dropdown{
  position:relative;
  padding:10px 6px;              /* větší hitbox okolo */
}

.nav-dropdown > a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;             /* větší klikací plocha */
  border-radius:10px;
}

/* malá šipka dolů, ať je jasné že je dropdown */
.nav-dropdown > a::after{
  content:"▾";
  font-size:12px;
  opacity:.8;
}

.nav-dropdown:hover > a{
  background:rgba(0,0,0,.06);
}

/* dropdown okno */
.nav-preview{
  position:absolute;
  right:0;
  top:calc(100% + 8px);          /* malá mezera */
  width:240px;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  padding:10px;
  display:none;
  z-index:2000;
}

/* NEVIDITELNÝ “most” mezi tlačítkem a dropdownem,
   aby hover nespadl při přechodu myši */
.nav-dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:14px;                   /* zvětší “bezpečnou zónu” */
}

.nav-preview a{
  display:block;
  padding:12px 12px;             /* větší hitbox položek */
  border-radius:10px;
  text-decoration:none;
  color:#222;
  font-weight:700;
}

.nav-preview a:hover{
  background:#ffcc00;
}

.nav-dropdown:hover .nav-preview{
  display:block;
}
/* aby anchor scroll nelezl pod header */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 110px; } /* uprav podle výšky headeru */

  
  
   