/* =========================================
   1. IMPORTY, PREMENNÉ A ZÁKLADNÉ NASTAVENIA
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --color-primary: #385741; 
  --color-primary-hover: #2a4231;
  
  /* ROZDVOJENIE POZADIA PRE BOXED LAYOUT */
  --color-outer-bg: #F7EBDB; 
  --color-bg: #FAF6F0;       
  
  --color-surface: #ffffff;
  --color-text: #2C302E;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -3px rgba(0, 0, 0, 0.05);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body.client-body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-outer-bg); 
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden; 
  max-width: 100%;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif !important;
}

.hidden { display: none !important; }

/* =========================================
   2. HLAVNÉ ROZLOŽENIE (LAYOUT)
   ========================================= */
.site-wrapper {
  max-width: 1920px; 
  width: 94%; 
  margin: 20px auto; 
  background-color: var(--color-bg); 
  box-shadow: 0 0 40px rgba(0,0,0,0.06); 
  min-height: 100vh;
  overflow: hidden; 
  border-radius: 15px;
}

.container {
  max-width: 1440px; 
  margin: 0 auto;
  padding: 2rem 3rem 5rem 3rem; 
}

/* =========================================
   3. HLAVIČKA A NAVIGÁCIA (Čistý vzhľad)
   ========================================= */
.top-announcement {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.admin-lock-link { 
  color: rgba(255,255,255,0.5); 
  display: flex; 
  align-items: center; 
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 1rem 3rem;
  position: relative;
  z-index: 20;
  background-color: var(--color-bg); 
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px; 
}

.header-logo-small { width: 45px; }

.header-brand {
  font-size: 1.8rem;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 25px; 
}

.contact-text { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-text:hover { color: var(--color-primary); }
.fb-link { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.separator { color: #ccc; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 50px; 
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 15px; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

/* =========================================
   4. HERO BANNER (Full-bleed s prekrývaním)
   ========================================= */
.hero-banner {
  position: relative;
  width: 100%;
  height: 500px; 
  background-image: url('hero.jpg'); 
  background-size: cover;
  background-position: center 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -60px; /* Vtiahne bielu kartu pod fotku */
  z-index: 10;
  border-radius: 0; 
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1; 
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 20px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================
   5. PRÉMIOVÁ SEKCIA: AKO FUNGUJE PICK & GO
   ========================================== */
.hiw-premium-section {
  background-color: var(--color-surface); 
  border-radius: 16px;
  padding: 40px 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04); 
  margin: 0 auto 3.5rem auto;
  max-width: 1000px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 15; /* Musí byť vyššie ako hero banner */
}

.hiw-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 40px;
  font-weight: 600;
}

.hiw-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hiw-step-icon {
  width: 64px;
  height: 64px;
  background-color: #F2F5F3; 
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(56, 87, 65, 0.08); 
  transition: transform 0.3s ease;
}

.hiw-step:hover .hiw-step-icon {
  transform: translateY(-3px) scale(1.05); 
}

.hiw-step-icon svg {
  width: 28px;
  height: 28px;
}

.hiw-step-title {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.hiw-step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: 0 10px;
}

.hiw-step-desc strong {
  color: var(--color-primary);
}

.hiw-step-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px; 
  color: var(--color-primary);
}

.hiw-step-divider svg {
  width: 24px;
  height: 24px;
}

.hiw-info-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #FAFAFA; 
  border: 1px solid var(--color-border);
  padding: 20px 25px;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary); 
}

.hiw-info-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.hiw-info-icon svg {
  width: 22px;
  height: 22px;
}

.hiw-info-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hiw-info-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.and {
  font-family: 'Times New Roman', Times, serif;
}
/* =========================================
   6. KATEGÓRIE A FILTRE
   ========================================= */
#category-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

#category-filters .btn {
  background-color: #ffffff;
  color: var(--color-text);
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: auto;
}

#category-filters .btn:hover { border-color: #9ca3af; }
#category-filters .btn.active {
  border-color: var(--color-primary);
  color: #f0fdf4;
  background-color: var(--color-primary);
}

#category-filters .btn.btn-special {
  background-color: #fdf2f8; 
  color: #be185d;            
  border-color: #fbcfe8;     
  font-weight: 600;          
  box-shadow: 0 2px 4px rgba(190, 24, 93, 0.05); 
}

#category-filters .btn.btn-special:hover {
  background-color: #fce7f3;
  border-color: #f472b6;
}

#category-filters .btn.btn-special.active {
  background-color: #e11d48; 
  color: #ffffff;            
  border-color: #e11d48;
  box-shadow: 0 4px 8px rgba(225, 29, 72, 0.2);
}

/* =========================================
   7. PRODUKTOVÉ KARTIČKY A ŠTÍTKY (TAGY)
   ========================================= */
.products-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 25px; 
}

.loading-message { grid-column: 1 / -1; text-align: center; padding: 3rem; color: var(--color-text-muted); }

.product-card { 
  background: var(--color-surface); 
  border-radius: 16px; /* Viac zaoblené, ladiace s Pick & Go kartou */
  border: 1px solid rgba(0,0,0,0.05); 
  box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.product-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 12px 25px rgba(0,0,0,0.08); 
}

/* Vizuálny útlm pre nedostupné produkty (Ak má karta zablokované tlačidlo) */
/*
.product-card:has(.btn:disabled) {
  opacity: 0.65;
  filter: grayscale(40%);
  transition: all 0.3s ease;
}

/*
.product-card:has(.btn:disabled):hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
*/
.product-card .img-col { 
  position: relative; 
  width: 100%; 
  height: 280px; 
}

.product-card .img-col img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  cursor: zoom-in; 
}

.product-info { 
  padding: 2rem; /* Viac priestoru pre text */
  text-align: center; /* Centrovaný text pôsobí v butikoch lepšie */
}

.product-info h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.5rem; 
  margin-bottom: 10px;
}
.product-price { 
  font-size: 1.3rem; 
  color: var(--color-primary); 
  letter-spacing: 0.5px;
}

/* -- FARBY A ŠTÝL PRE KONKRÉTNE TAGY (Boutique štýl) -- */
.product-tag { 
  position: absolute; 
  top: 15px; 
  left: 15px; 
  padding: 5px 14px; 
  border-radius: 4px; 
  font-size: 0.65rem; 
  font-weight: 600; /* Zjemnené zo 700 na 600 */
  text-transform: uppercase; 
  letter-spacing: 1px; /* Pridaný rozostup písmen pre luxusnejší vzhľad */
  z-index: 10; 
  color: #ffffff; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Jemnučký tieň pod štítkom */
}

/* Tlmené "zaprášené" (muted) odtiene: */
.tag-odporucame { background-color: #C67A7A; } /* Staroružová namiesto krikľavej červenej */
.tag-vyhodna-cena { background-color: #C2A578; } /* Tlmená zlatá/piesková namiesto ostrej oranžovej */
.tag-najpredavanejsie { background-color: #d8dc69; color:#2C302E; } /* Šalviová zelená (Sage) */
.tag-novinka { background-color: #7B9EBB; } /* Prachová modrá (Dusty Blue) */
.tag-default { background-color: #9CA3AF; } /* Príjemná svetlejšia sivá */

.stamp-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; z-index: 5; }
.stamp-badge { padding: 8px 20px; border-radius: 4px; font-weight: 800; font-size: 1rem; transform: rotate(-10deg); text-transform: uppercase; }
.stamp-sold-out { background: rgba(16, 15, 15, 0.897); color: white; }
.stamp-reserved { background: rgba(107, 114, 128, 0.736); color: white; }

.btn { padding: 12px 24px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: 'Inter', sans-serif; width: 100%; }
.btn-accent { background-color: var(--color-primary); color: white; }
.btn-accent:hover:not(:disabled) { background-color: var(--color-primary-hover); }
.btn:disabled { background-color: #E5E7EB; color: #9CA3AF; cursor: not-allowed; }

/* =========================================
   8. PÄTIČKA (FOOTER)
   ========================================= */
.client-footer { text-align: center; padding: 30px 20px; font-size: 0.85rem; color: #718096; margin-top: 40px; }
.footer-link { color: inherit; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.admin-footer-wrapper { margin-top: 15px; }
.admin-link { color: #9CA3AF; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; transition: color 0.2s; }
.admin-link:hover { color: var(--color-primary); }

/* =========================================
   9. LIGHTBOX (Zväčšená fotka produktu)
   ========================================= */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 99999; opacity: 1; transition: opacity 0.3s ease; }
.lightbox.hidden { display: none; opacity: 0; }
.lightbox img { max-width: 95%; max-height: 95%; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); object-fit: contain; animation: zoomIn 0.3s ease; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 45px; font-weight: bold; cursor: pointer; z-index: 100000; }
.lightbox-close:hover { color: var(--color-primary); }
@keyframes zoomIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* =========================================
   10. RESPONZIVITA (Media Queries)
   ========================================= */

/* NOTEBOOKY A TABLETY (Do 1200px) */
@media screen and (max-width: 1200px) {
  body.client-body { background-color: var(--color-bg) !important; }
  
  .site-wrapper {
    width: 100% !important; 
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .main-header {
    width: 100% !important;
    padding: 0 1.5rem !important; 
  }
}

/* MOBILY (Do 900px) - Tu bola predtým chyba! */
@media screen and (max-width: 900px) {
  /* Hlavička */
  .main-header { 
    flex-direction: column; 
    align-items: center; 
    padding: 1rem !important;
  }
  .header-left { margin-top: 0; }
  .header-right { flex-wrap: wrap; justify-content: center; margin-top: 15px; padding-bottom: 10px; }
  .separator { display: none; }
  .container { padding: 1rem 1rem 3rem 1rem; }
  
  /* Hero Banner - Upravené prekrývanie pre mobily */
  .hero-banner { 
    height: 380px; 
    margin-bottom: -40px; 
  }
  .hero-headline { 
    font-size: 2.2rem; 
    margin-bottom: 15px;
  }
  .hero-subheadline { 
    font-size: 1rem; 
  }

  /* Skrolovateľné kategórie na mobile */
 /* =========================================
     Skrolovateľné kategórie s "hmlou" (Boutique dizajn)
     ========================================= */
  
  /* 1. Obal, ktorý drží hmlu na mieste */
  .categories-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
  }

  /* 2. Samotná "hmla" (Gradient do stratena na pravej strane) */
  .categories-wrapper::after {
    display: none !important;
  }

  #category-filters {
    display: flex;
    flex-wrap: wrap !important; /* Toto povolí tlačidlám prejsť do ďalšieho riadku */
    justify-content: center !important; /* Zarovná kategórie na stred (pôsobí to vyváženejšie) */
    gap: 8px; /* Trošku menšia medzera, aby sa ich zmestilo viac */
    overflow-x: visible !important;
    padding-right: 0 !important; 
    padding-bottom: 0;
  }

  #category-filters .btn {
    flex-shrink: 1; 
    padding: 6px 12px !important; /* Trošku kompaktnejšie tlačidlá pre mobil */
    font-size: 0.8rem !important;
  }
  
   

  /* Ako to funguje - Mobilný zoznam */
  .hiw-premium-section {
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 2.5rem;
  }
  .hiw-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
  }
  .hiw-stepper {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
  
  

  .hiw-step-divider { display: none; }
  
  .hiw-info-box {
    padding: 18px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    border-left: 1px solid var(--color-border); 
    border-top: 4px solid var(--color-primary); 
  }
  .hiw-info-icon { margin-top: 0; }

  /* Kartičky produktov - luxusný mobilný layout */
  .products-grid { 
    grid-template-columns: 1fr; 
    gap: 15px; 
  }
  
  .product-card { 
    display: flex;
    flex-direction: row; 
    padding: 12px; 
    align-items: stretch; /* Textová časť sa natiahne rovnako ako fotka */
  }
  
  /* Fotka: Pevná veľkosť */
  .product-card .img-col { 
    width: 120px; 
    height: 140px; 
    flex-shrink: 0; 
    border-radius: 8px; 
    overflow: hidden; 
  }
  
  /* Textová časť: Čistý flexbox stĺpec */
  .product-info { 
    padding: 0 0 0 16px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Názov hore, cena+btn dole */
    text-align: left; /* Prepisuje centrovanie z desktopu */
    flex-grow: 1; /* Zaberie zvyšok šírky karty */
  }
  
  /* Názov */
  .product-info h3 { 
    font-size: 1.15rem; 
    margin: 0 0 4px 0; 
    text-align: left;
  }

  /* Menšie texty (Veľkosť, Číslo atď.) - ak tam sú */
  .product-info p, 
  .product-info span {
    text-align: left;
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
  
  /* Obal pre cenu (aby sme oddelili hornú a dolnú časť) */
  .product-price-wrapper {
      margin-top: auto; /* Zabezpečí, že cena a tlačidlo sú vždy naspodku */
  }

  /* Cena */
  .product-price { 
    font-size: 1.15rem; 
    text-align: left;
    margin: 0 0 8px 0;
  }
  
  /* Tlačidlo */
  .product-info .btn { 
    width: 100%; 
    padding: 8px 10px; 
    font-size: 0.85rem; 
    margin: 0;
  }

  /* Upravíme aj umiestnenie odznaku, aby na mobile nezavadzal */
 /* Upravíme odznaky na fotke pre mobil, aby nepretekali */
 /* Upravíme odznaky na fotke pre mobil, aby sa zmestili */
  .product-tag { 
    top: 5px !important;            /* Trošku vyššie, aby uvoľnil miesto fotke */
    left: 5px !important;           /* Trošku viac doľava */
    padding: 3px 8px !important;    /* Mikro padding (horný/dolný 3px, bočný 8px) */
    font-size: 0.5rem !important;   /* Zmenšíme písmo (cca 8px), aby sa zmestilo */
    letter-spacing: 0.2px !important; /* Minimalizujeme medzery, ale neponecháme 0 (vyzerá to lepšie) */
    font-weight: 500 !important;    /* Jemne uberieme na hrúbke, aby písmo "netieklo" */
    width: auto !important;          /* Poistka, aby sa štítok nezačal rozťahovať */
    white-space: nowrap !important; /* Zakáže zalomenie textu do dvoch riadkov */
  }

  .stamp-badge { font-size: .4rem; }
}

/* ULTRA-MALÉ DISPLEJE (iPhone 5 / SE - do 400px) */
@media screen and (max-width: 400px) {
  .container { padding: 1rem 0.5rem 3rem 0.5rem; }
  .header-brand { font-size: 1.5rem; }
  .hero-headline { font-size: 1.8rem; }
  
  .product-card { padding: 8px; }
  .product-card .img-col { width: 90px; height: 110px; }
  .product-info { padding: 0 0 0 10px; gap: 6px; }
  .product-info h3 { font-size: 0.95rem; }
  .product-price { font-size: 1.05rem; }
  .product-info .btn { width: 80% !important; font-size: 0.8rem !important; padding: 6px 12px !important;}
  .product-tag {font-size: .4rem; }
}