/* ==================================================================
   NIVORA — Main Stylesheet
   Design tokens live in :root. Component-level styles (buttons, cards,
   modals, forms) live in components.css. Media queries live in
   responsive.css so this file stays readable at desktop width.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- Color tokens --------------------------------------------- */
  --ink:        #17160f;
  --ink-soft:   #322f26;
  --cream:      #f7f3ea;
  --cream-2:    #efe9db;
  --stone:      #e6ded0;
  --stone-2:    #d8cdb8;
  --taupe:      #8a7a5c;
  --taupe-dark: #6b5d43;
  --forest:     #3c4632;
  --forest-dark:#2a3123;
  --rust:       #a8432f;
  --rust-dark:  #8a3526;
  --line:       #d8d0bf;
  --white:      #ffffff;

  /* ---- Type -------------------------------------------------------- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Layout -------------------------------------------------------- */
  --container: 1280px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --header-h: 132px;

  /* ---- Shadow / motion ------------------------------------------------ */
  --shadow-card: 0 1px 2px rgba(23,22,15,0.06), 0 8px 24px -12px rgba(23,22,15,0.18);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; font-size: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; font-weight: 600; color: var(--ink); }
p{ margin: 0; }

:focus-visible{
  outline: 2px solid var(--taupe-dark);
  outline-offset: 2px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus{ left: 0; }

section{ padding: 72px 0; }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head .eyebrow{
  color: var(--taupe-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}
.section-head p.sub{
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 15.5px;
}
.section-head .head-link{
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* ==================================================================
   TOP UTILITY BAR
   ================================================================== */
.topbar{
  background: var(--ink);
  color: var(--cream-2);
  font-size: 13px;
}
.topbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar-msg{ font-weight: 500; letter-spacing: .01em; }
.topbar-links{ display: flex; gap: 20px; }
.topbar-links a{ opacity: .85; transition: opacity .2s var(--ease); }
.topbar-links a:hover{ opacity: 1; }

/* ==================================================================
   HEADER
   ================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-main{
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
}
.logo{
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.logo span{ color: var(--taupe-dark); }

.categories-btn{
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.categories-btn:hover{ background: var(--forest-dark); }

.header-search{
  position: relative;
  max-width: 480px;
  width: 100%;
  justify-self: stretch;
}
.header-search input{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 44px 12px 16px;
  font-size: 14.5px;
  color: var(--ink);
}
.header-search input::placeholder{ color: #9a917d; }
.header-search button{
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-results{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.search-results.open{ display: block; }
.search-result-item{
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background .15s var(--ease);
}
.search-result-item:last-child{ border-bottom: none; }
.search-result-item:hover{ background: var(--cream-2); }
.search-result-item img{ width: 44px; height: 54px; object-fit: cover; border-radius: 3px; flex-shrink:0; }
.search-result-item .sr-name{ font-weight: 600; font-size: 14px; }
.search-result-item .sr-meta{ font-size: 12.5px; color: var(--ink-soft); }
.search-empty{ padding: 20px; text-align:center; color: var(--ink-soft); font-size: 14px; }

.header-icons{
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease);
}
.icon-btn:hover{ background: var(--cream-2); }
.icon-btn i{ font-size: 18px; }
.icon-badge{
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--rust);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.mobile-only{ display: none; }

/* Main nav */
.main-nav{
  border-top: 1px solid var(--line);
}
.main-nav .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links{
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.nav-links a{
  display: inline-block;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active{
  color: var(--ink);
  border-bottom-color: var(--taupe-dark);
}
.nav-cta{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rust);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* Mobile drawer */
.mobile-drawer-overlay{
  position: fixed; inset: 0;
  background: rgba(23,22,15,.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.mobile-drawer-overlay.open{ opacity: 1; pointer-events: auto; }
.mobile-drawer{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(340px, 84vw);
  background: var(--cream);
  z-index: 301;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open{ transform: translateX(0); }
.drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-close{ background: none; border: none; font-size: 22px; color: var(--ink); }
.drawer-links{ padding: 8px 0; }
.drawer-links a{
  display: block;
  padding: 15px 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.drawer-foot{
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.drawer-foot a{
  width: 40px; height: 40px;
  display: flex; align-items:center; justify-content:center;
  background: var(--ink); color: var(--cream);
  border-radius: 50%;
}

/* ==================================================================
   HERO SLIDER
   ================================================================== */
.hero{
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero-track{
  display: flex;
  transition: transform .6s var(--ease);
  height: min(72vh, 640px);
  min-height: 420px;
}
.hero-slide{
  position: relative;
  min-width: 100%;
  height: 100%;
}
.hero-slide img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,22,15,.62) 0%, rgba(23,22,15,.28) 48%, rgba(23,22,15,.05) 75%);
}
.hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  color: var(--cream);
}
.hero-content .kicker{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--stone);
  margin-bottom: 16px;
}
.hero-content h1{
  color: var(--white);
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-content p{
  font-size: 16.5px;
  color: var(--cream-2);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(247,243,234,.16);
  border: 1px solid rgba(247,243,234,.4);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .2s var(--ease);
}
.hero-arrow:hover{ background: rgba(247,243,234,.32); }
.hero-arrow.prev{ left: 20px; }
.hero-arrow.next{ right: 20px; }

.hero-dots{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 9px;
}
.hero-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(247,243,234,.4);
  border: none;
  padding: 0;
  transition: background .2s var(--ease), width .2s var(--ease);
}
.hero-dot.active{ background: var(--cream); width: 26px; border-radius: 5px; }

/* ==================================================================
   TRUST STRIP
   ================================================================== */
.trust-strip{
  background: var(--stone);
  padding: 22px 0;
}
.trust-strip ul{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-strip li{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-strip i{ font-size: 20px; color: var(--taupe-dark); }

/* ==================================================================
   CATEGORY GRID
   ================================================================== */
.category-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.category-card{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .35s var(--ease);
}
.category-card:hover{ transform: translateY(-4px); }
.category-card img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.category-card:hover img{ transform: scale(1.06); }
.category-card::before{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,22,15,.82) 0%, rgba(23,22,15,.15) 55%, transparent 75%);
}
.category-card-body{
  position: relative;
  z-index: 2;
  padding: 18px;
}
.category-card-body h3 {
color: #fff8fb;
font-size: clamp(17px, 2.2vw, 25px);
font-weight: 800;
line-height: 1.2;
letter-spacing: 0.3px;
margin: 0 0 8px;

text-shadow:
0 2px 4px rgba(0, 0, 0, 0.8),
0 0 14px rgba(255, 220, 235, 0.18);

transition:
transform 0.3s ease,
color 0.3s ease;
}
.category-card-body p{
  font-size: 12.5px;
  color: var(--cream-2);
  margin-bottom: 10px;
}
.category-card-body .explore{
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  border-bottom: 1px solid rgba(247,243,234,.6);
  padding-bottom: 2px;
}

/* ==================================================================
   PROMO BANNER (mid page)
   ================================================================== */
.promo-banner{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: var(--white);
}
.promo-banner img{ position: absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.promo-banner::before{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,22,15,.75) 30%, rgba(23,22,15,.15) 80%);
}
.promo-banner-content{
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 480px;
}
.promo-banner-content .eyebrow{ color: var(--stone); font-weight: 700; font-size: 13px; margin-bottom: 10px;}
.promo-banner-content h2{ color: var(--white); font-size: clamp(26px,3vw,36px); margin-bottom: 14px; }
.promo-banner-content p{ color: var(--cream-2); margin-bottom: 24px; }

/* ==================================================================
   PRODUCT SLIDER (featured)
   ================================================================== */
.product-slider-wrap{ position: relative; }
.product-slider{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-slider::-webkit-scrollbar{ display: none; }
.product-slider .product-card{
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 20px*4)/5);
  min-width: 236px;
}
.slider-nav{
  display: flex;
  gap: 8px;
}
.slider-nav button{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex; align-items:center; justify-content:center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.slider-nav button:hover{ background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ==================================================================
   BAND — newsletter
   ================================================================== */
.newsletter{
  background: var(--forest-dark);
  color: var(--cream);
}
.newsletter .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter h2{ color: var(--white); font-size: 26px; margin-bottom: 6px; }
.newsletter p{ color: var(--stone); font-size: 14.5px; }
.newsletter-form{ display: flex; gap: 10px; flex: 0 0 420px; max-width: 100%; }
.newsletter-form input{
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14.5px;
}

/* ==================================================================
   FOOTER
   ================================================================== */
.site-footer{
  background: var(--ink);
  color: var(--cream-2);
  padding-top: 60px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,243,234,.12);
}
.footer-logo{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-about p{ font-size: 14px; color: var(--cream-2); opacity: .8; margin-bottom: 20px; max-width: 34ch; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,234,.25);
  display: flex; align-items:center; justify-content:center;
  transition: background .2s var(--ease);
}
.footer-social a:hover{ background: rgba(247,243,234,.15); }
.footer-col h4{
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.footer-col ul li{ margin-bottom: 11px; }
.footer-col a{ font-size: 14px; color: var(--cream-2); opacity: .78; transition: opacity .2s var(--ease); }
.footer-col a:hover{ opacity: 1; }
.footer-contact li{ display:flex; gap: 10px; font-size: 14px; opacity: .85; align-items:flex-start; }
.footer-contact i{ margin-top: 3px; color: var(--taupe); width: 16px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  color: var(--cream-2);
  opacity: .7;
  flex-wrap: wrap;
  gap: 10px;
}
.payment-icons{ display: flex; gap: 10px; font-size: 20px; opacity: .8; }

/* ==================================================================
   FLOATING BUTTONS
   ================================================================== */
.floating-actions{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn{
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(23,22,15,.28);
  transition: transform .2s var(--ease);
}
.floating-btn:hover{ transform: translateY(-3px) scale(1.04); }
.floating-btn.whatsapp{ background: #25D366; }
.floating-btn.messenger{ background: #0084FF; }

/* ==================================================================
   PAGE HERO (inner pages)
   ================================================================== */
.page-hero{
  background: var(--stone);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb{
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.breadcrumb a{ color: var(--ink-soft); }
.breadcrumb a:hover{ color: var(--ink); }
.page-hero h1{ font-size: clamp(28px,4vw,40px); }

/* Utility */
.text-center{ text-align: center; }
.mt-0{ margin-top:0; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.hide{ display: none !important; }
