/* ===========================================================
   MEBEL HAUS — Premium Furniture E-commerce
   Stylesheet structure:
   1. Variables & Reset
   2. Typography
   3. Buttons
   4. Preloader
   5. Topbar & Header
   6. Mobile nav / Search / Cart drawer / Modal
   7. Hero
   8. Categories
   9. Filters & Product grid / cards
   10. Why choose us
   11. Bestsellers
   12. Testimonials
   13. About
   14. Contact
   15. Footer
   16. Toast / Misc
   17. Animations
   18. Responsive
   =========================================================== */

/* ============ 1. VARIABLES & RESET ============ */
:root{
  /* Core palette */
  --brown: #6B4F3A;          /* warm brown - primary */
  --brown-dark: #4E392A;     /* deeper brown - hover states */
  --espresso: #3A2A1E;       /* dark brown - text */
  --cream: #F8F6F2;          /* cream white - background */
  --cream-soft: #F2EDE5;     /* slightly deeper cream for sections */
  --beige: #E8DFD3;          /* beige accent */
  --beige-dark: #D9CBB8;     /* deeper beige border */
  --gold: #B89968;           /* muted gold highlight */
  --white: #FFFFFF;
  --ink-soft: #6B5E54;       /* secondary text */

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 40px rgba(58, 42, 30, 0.08);
  --shadow-card: 0 4px 24px rgba(58, 42, 30, 0.07);
  --shadow-hover: 0 22px 48px rgba(58, 42, 30, 0.18);
  --transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select{ font-family: inherit; font-size: 1rem; color: var(--espresso); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ 2. TYPOGRAPHY ============ */
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

h1{ font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 600; }
h2{ font-size: clamp(2rem, 3.6vw, 3rem); }
h3{ font-size: 1.4rem; }

.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-head{
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section-head.light .eyebrow,
.section-head.light h2{ color: var(--cream); }
.section-head.light .eyebrow::before{ background: var(--gold); }

.section-sub{
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section{
  padding: var(--space-xl) 0;
}

/* ============ 3. BUTTONS ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary{
  background: var(--brown);
  color: var(--cream);
}
.btn-primary:hover{
  background: var(--espresso);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline{
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-outline:hover{
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-3px);
}

.btn-ghost-light{
  background: transparent;
  color: var(--cream);
  border-color: rgba(248,246,242,0.6);
}
.btn-ghost-light:hover{
  background: var(--cream);
  color: var(--espresso);
  transform: translateY(-3px);
}

.btn-full{ width: 100%; }

.btn-sm{
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

/* ============ 4. PRELOADER ============ */
.preloader{
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark{
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 4px;
  animation: pulseLogo 1.4s ease-in-out infinite;
}
@keyframes pulseLogo{
  0%, 100%{ opacity: 0.4; transform: scale(0.96); }
  50%{ opacity: 1; transform: scale(1); }
}

/* ============ 5. TOPBAR & HEADER ============ */
.topbar{
  background: var(--espresso);
  color: var(--beige);
  font-size: 0.82rem;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.5rem;
  gap: 1rem;
}
.topbar-message{ opacity: 0.9; }
.topbar-right a{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--beige);
  transition: color var(--transition);
}
.topbar-right a:hover{ color: var(--gold); }

.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige-dark);
  transition: box-shadow var(--transition);
}
.site-header.scrolled{
  box-shadow: var(--shadow-card);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.5rem;
  max-width: 1480px;
  margin: 0 auto;
}

.logo{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.logo-mark{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.logo-text{
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--espresso);
}

.main-nav ul{
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.main-nav a{
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--espresso);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.main-nav a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover{ color: var(--brown); }
.main-nav a:hover::after{ width: 100%; }
.main-nav a.nav-sale{ color: var(--brown-dark); font-weight: 700; }

.header-actions{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.icon-btn{
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--espresso);
  border-radius: 50%;
  transition: all var(--transition);
}
.icon-btn:hover{
  background: var(--beige);
  color: var(--brown);
}

.badge{
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brown);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(15%, -15%);
}

.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0.3rem;
}
.lang-btn{
  color: var(--ink-soft);
  padding: 4px 5px;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.lang-btn.active, .lang-btn:hover{ color: var(--brown); }
.lang-divider{ color: var(--beige-dark); }

.burger{
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span{
  width: 22px;
  height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
/* ============ 6. SEARCH / MOBILE NAV / CART DRAWER / MODAL ============ */

/* --- Search --- */
.search-wrap{ position: relative; }
.search-panel{
  position: absolute;
  top: calc(100% + 14px);
  right: -10px;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 50;
  flex-wrap: wrap;
}
.search-panel.open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-panel input{
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--beige-dark);
  padding: 0.5rem 0.2rem;
  background: transparent;
}
.search-panel input:focus{ outline: none; border-color: var(--brown); }
.search-panel #searchClose{
  font-size: 1rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-results{
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  order: 3;
}
.search-result-item{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.2rem;
  border-top: 1px solid var(--cream-soft);
  transition: background var(--transition);
}
.search-result-item:hover{ background: var(--cream-soft); }
.search-result-item img{
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.search-result-item .sr-name{ font-size: 0.85rem; font-weight: 500; }
.search-result-item .sr-price{ font-size: 0.78rem; color: var(--brown); }
.search-no-results{
  padding: 1rem 0.2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  width: 100%;
}

/* --- Mobile nav --- */
.mobile-nav{
  position: fixed;
  top: 0;
  right: -100%;
  width: min(86vw, 380px);
  height: 100vh;
  background: var(--cream);
  z-index: 700;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  transition: right var(--transition);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.mobile-nav.open{ right: 0; }
.mobile-nav ul{ display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav a{
  display: block;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--beige);
  color: var(--espresso);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav a:hover{ color: var(--brown); padding-left: 8px; }

.nav-overlay, .cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 30, 0.45);
  z-index: 650;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.nav-overlay.open, .cart-overlay.open{ opacity: 1; visibility: visible; }

/* --- Cart Drawer --- */
.cart-drawer{
  position: fixed;
  top: 0;
  right: -100%;
  width: min(92vw, 420px);
  height: 100vh;
  background: var(--cream);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transition: right var(--transition);
  box-shadow: -10px 0 40px rgba(0,0,0,0.18);
}
.cart-drawer.open{ right: 0; }

.cart-drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--beige-dark);
}
.cart-drawer-head h3{ font-size: 1.5rem; }
.cart-drawer-head button{ font-size: 1.2rem; color: var(--ink-soft); }

.cart-items{
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty{
  text-align: center;
  color: var(--ink-soft);
  margin-top: 3rem;
  font-size: 0.95rem;
}

.cart-item{
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-soft);
  align-items: center;
}
.cart-item img{
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-item-info{ flex: 1; min-width: 0; }
.cart-item-info h5{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-info .ci-price{ color: var(--brown); font-weight: 600; font-size: 0.88rem; }
.cart-item-qty{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.cart-item-qty button{
  width: 22px; height: 22px;
  border: 1px solid var(--beige-dark);
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-item-qty button:hover{ background: var(--brown); color: var(--cream); border-color: var(--brown); }
.cart-item-remove{
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.cart-item-remove:hover{ color: #a14a3a; }

.cart-footer{
  padding: 1.5rem;
  border-top: 1px solid var(--beige-dark);
}
.cart-total-row{
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

/* --- Modal (Quick View) --- */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 30, 0.55);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open{ opacity: 1; visibility: visible; }

.modal{
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal{ transform: scale(1) translateY(0); }

.modal-close{
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 10;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.modal-close:hover{ background: var(--brown); color: var(--cream); transform: rotate(90deg); }

.quick-view-modal{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.qv-image{
  height: 100%;
  min-height: 360px;
  background: var(--beige);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
.qv-image img{ width: 100%; height: 100%; object-fit: cover; }
.qv-info{ padding: 3rem 2.5rem; }
.qv-category{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brown);
}
.qv-info h3{ font-size: 1.8rem; margin: 0.5rem 0; }
.qv-rating{ color: var(--gold); margin-bottom: 0.8rem; font-size: 0.9rem; }
.qv-price{ font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--brown); margin-bottom: 1rem; }
.qv-desc{ color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.2rem; }
.qv-meta{ display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.qv-meta span{
  background: var(--beige);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--espresso);
  font-weight: 500;
}
.qv-actions{ display: flex; gap: 1rem; align-items: center; }

.qty-stepper{
  display: flex;
  align-items: center;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
}
.qty-stepper button{
  width: 38px; height: 44px;
  font-size: 1rem;
  transition: background var(--transition);
}
.qty-stepper button:hover{ background: var(--beige); }
.qty-stepper span{ width: 36px; text-align: center; font-weight: 600; }

/* ============ 7. HERO ============ */
.hero{
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom{
  0%{ transform: scale(1); }
  100%{ transform: scale(1.08); }
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(58,42,30,0.78) 0%, rgba(58,42,30,0.5) 45%, rgba(58,42,30,0.25) 100%);
  z-index: 1;
}
.hero-content{
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 680px;
}
.hero-content .eyebrow{ color: var(--gold); }
.hero-content .eyebrow::before{ background: var(--gold); }
.hero-content h1{
  color: var(--cream);
  margin-bottom: 1.3rem;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
.hero-sub{
  font-size: 1.15rem;
  color: var(--beige);
  max-width: 480px;
  margin-bottom: 2.2rem;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}
.hero-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.6s both;
}
.hero-scroll-cue{
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(248,246,242,0.6);
  border-radius: 14px;
}
.hero-scroll-cue span{
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue{
  0%{ opacity: 1; top: 7px; }
  100%{ opacity: 0; top: 20px; }
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: translateY(0); }
}
/* ============ 8. CATEGORIES ============ */
.category-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
}
.category-card{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.category-card img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.category-card:hover img{ transform: scale(1.1); }
.category-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,42,30,0) 40%, rgba(58,42,30,0.85) 100%);
}
.category-card-label{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  z-index: 2;
  color: var(--cream);
}
.category-card-label h3{
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.2rem;
}
.category-card-label span{
  font-size: 0.78rem;
  color: var(--beige);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: gap var(--transition);
}
.category-card:hover .category-card-label span{ gap: 10px; }

/* Reveal-on-scroll utility (used across sections) */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
/* Safety fallback: if JavaScript fails, content must not stay invisible */
.no-js .reveal{ opacity: 1; transform: none; }

/* Divider — signature "wood grain" line motif */
.grain-divider{
  height: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    90deg,
    var(--beige-dark) 0px, var(--beige-dark) 6px,
    transparent 6px, transparent 14px
  );
  opacity: 0.7;
}

/* ============ 9. FILTERS & PRODUCT GRID / CARDS ============ */
.filters-bar{
  display: flex;
  align-items: flex-end;
  gap: 1.6rem;
  flex-wrap: wrap;
  background: var(--cream-soft);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: var(--space-lg);
}
.filter-group{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 150px;
}
.filter-group label{
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-group select{
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
}
.price-range{ flex: 1; min-width: 200px; }
.price-range input[type="range"]{
  width: 100%;
  accent-color: var(--brown);
  height: 4px;
}
#priceValue{ color: var(--brown); font-weight: 700; }
#filterReset{ margin-left: auto; }

.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.product-card{
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover{
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap{
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--beige);
}
.product-img-wrap img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .product-img-wrap img{ transform: scale(1.07); }

.product-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brown);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  z-index: 2;
}
.product-badge.sale{ background: #A14A3A; }
.product-badge.new{ background: var(--gold); color: var(--espresso); }

.wishlist-toggle{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--espresso);
  z-index: 2;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(-6px);
}
.product-card:hover .wishlist-toggle{ opacity: 1; transform: translateY(0); }
.wishlist-toggle:hover{ background: var(--brown); color: var(--cream); }
.wishlist-toggle.active{ color: #A14A3A; opacity: 1; transform: translateY(0); }
.wishlist-toggle.active i{ font-weight: 900; }

.product-quickview{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem;
  background: rgba(58,42,30,0.88);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--transition);
  z-index: 2;
}
.product-card:hover .product-quickview{ transform: translateY(0); }

.product-info{
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category-tag{
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.product-info h3{
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  flex: 1;
}
.product-rating{
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.product-rating span{ color: var(--ink-soft); margin-left: 4px; }

.product-price-row{
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.product-price{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
}
.product-price-old{
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.add-to-cart-btn{
  width: 100%;
  padding: 0.75rem;
  background: var(--cream-soft);
  color: var(--espresso);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
}
.add-to-cart-btn:hover{
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}
.add-to-cart-btn.added{
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.load-more-wrap{
  text-align: center;
  margin-top: var(--space-lg);
}

.no-results{
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* ============ 10. WHY CHOOSE US ============ */
.why-section{
  background: var(--espresso);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(184,153,104,0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(184,153,104,0.08) 0%, transparent 45%);
}
.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.why-card{
  background: rgba(248,246,242,0.04);
  border: 1px solid rgba(248,246,242,0.12);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover{
  background: rgba(248,246,242,0.08);
  transform: translateY(-6px);
  border-color: var(--gold);
}
.why-icon{
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.why-card h3{ color: var(--cream); font-size: 1.25rem; margin-bottom: 0.6rem; }
.why-card p{ color: var(--beige); font-size: 0.92rem; opacity: 0.85; }

/* ============ 11. BESTSELLERS ============ */
.bestsellers-section{ background: var(--cream-soft); }

/* ============ 12. TESTIMONIALS ============ */
.testimonial-track-wrap{ position: relative; overflow: hidden; }
.testimonial-track{
  display: flex;
  gap: 1.6rem;
  transition: transform var(--transition);
}
.testimonial-card{
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  flex: 0 0 calc(33.333% - 1.07rem);
  box-shadow: var(--shadow-card);
}
.testimonial-stars{ color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-text{
  color: var(--espresso);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author{
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-author img{
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author h5{ font-size: 0.95rem; font-weight: 700; }
.testimonial-author span{ font-size: 0.8rem; color: var(--ink-soft); }

.testimonial-dots{
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.testimonial-dots button{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--beige-dark);
  transition: all var(--transition);
}
.testimonial-dots button.active{
  background: var(--brown);
  width: 26px;
  border-radius: 5px;
}

/* ============ 13. ABOUT ============ */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-media img{ width: 100%; height: 100%; object-fit: cover; }
.about-badge{
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brown);
  color: var(--cream);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-hover);
}
.about-badge strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
}
.about-badge span{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }

.about-content p{ color: var(--ink-soft); margin: 1.1rem 0; font-size: 1rem; }
.about-content h2{ margin-bottom: 0.5rem; }

.about-stats{
  display: flex;
  gap: 2.2rem;
  margin: 1.8rem 0 2rem;
}
.stat strong{
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brown);
  font-weight: 700;
}
.stat span{ font-size: 0.8rem; color: var(--ink-soft); }

/* ============ 14. CONTACT ============ */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.contact-form{
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-card);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field{ margin-bottom: 1.2rem; }
.form-field label{
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--espresso);
}
.form-field input, .form-field textarea{
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus{
  border-color: var(--brown);
  outline: none;
}
.form-success{
  display: none;
  margin-top: 1rem;
  color: #3a7150;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.form-success.show{ display: block; }

.contact-info{ display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info-card{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}
.contact-info-card i{
  width: 42px; height: 42px;
  background: var(--beige);
  color: var(--brown);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-card h4{ font-size: 1rem; margin-bottom: 0.2rem; }
.contact-info-card p, .contact-info-card a{ font-size: 0.9rem; color: var(--ink-soft); }
.contact-info-card a:hover{ color: var(--brown); }

.contact-map{
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--beige);
}
.contact-map iframe{ width: 100%; height: 100%; border: 0; }

/* ============ 15. FOOTER ============ */
.site-footer{
  background: var(--espresso);
  color: var(--beige);
  padding-top: var(--space-lg);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(248,246,242,0.12);
}
.footer-brand .logo-text{ color: var(--cream); }
.footer-brand p{ font-size: 0.88rem; margin: 1rem 0 1.3rem; opacity: 0.8; max-width: 280px; }
.footer-social{ display: flex; gap: 0.7rem; }
.footer-social a{
  width: 36px; height: 36px;
  border: 1px solid rgba(248,246,242,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover{ background: var(--gold); border-color: var(--gold); color: var(--espresso); }

.footer-col h4{
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a{ font-size: 0.88rem; opacity: 0.8; transition: opacity var(--transition), color var(--transition); }
.footer-col a:hover{ opacity: 1; color: var(--gold); }

.footer-newsletter p{ font-size: 0.85rem; opacity: 0.8; margin-bottom: 1rem; }
.newsletter-form{ display: flex; border-bottom: 1px solid rgba(248,246,242,0.3); padding-bottom: 0.4rem; }
.newsletter-form input{
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 0.88rem;
  padding: 0.4rem 0;
}
.newsletter-form input::placeholder{ color: rgba(248,246,242,0.5); }
.newsletter-form button{
  color: var(--gold);
  font-size: 1rem;
  transition: transform var(--transition);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-form button:hover{ transform: translateX(4px); }

.footer-bottom{ padding: 1.5rem 0; }
.footer-bottom-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.payment-icons{ display: flex; gap: 0.8rem; font-size: 1.4rem; opacity: 0.6; }

/* ============ 16. TOAST / WHATSAPP FLOAT / MISC ============ */
.whatsapp-float{
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 400;
  transition: transform var(--transition);
  animation: floatPulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover{ transform: scale(1.1); }
@keyframes floatPulse{
  0%, 100%{ box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
  50%{ box-shadow: 0 8px 24px rgba(37,211,102,0.75); }
}

.toast{
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--espresso);
  color: var(--cream);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-hover);
  white-space: nowrap;
}
.toast.show{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast i{ color: var(--gold); }

/* ============ 18. RESPONSIVE ============ */

/* Large tablets / small desktops */
@media (max-width: 1390px){
  .main-nav{ display: none; }
  .burger{ display: flex; }
}

@media (max-width: 1180px){
  .category-grid{ grid-template-columns: repeat(3, 1fr); }
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .testimonial-card{ flex: 0 0 calc(50% - 0.8rem); }
}

/* Tablets */
@media (max-width: 980px){
  .topbar-message{ font-size: 0.76rem; }
  .about-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media{ aspect-ratio: 16/9; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .footer-brand{ grid-column: 1 / -1; }
  .quick-view-modal{ grid-template-columns: 1fr; }
  .qv-image{ border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 4/3; min-height: unset; }
  .qv-info{ padding: 2rem; }
}

/* Small tablets / large phones */
@media (max-width: 768px){
  .section{ padding: var(--space-lg) 0; }
  .hero{ height: 86vh; text-align: left; }
  .category-grid{ grid-template-columns: repeat(2, 1fr); }
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .why-grid{ grid-template-columns: 1fr 1fr; gap: 1rem; }
  .testimonial-card{ flex: 0 0 100%; }
  .filters-bar{ padding: 1.2rem; }
  .filter-group{ min-width: calc(50% - 0.8rem); flex: 1; }
  #filterReset{ margin-left: 0; width: 100%; }
  .form-row{ grid-template-columns: 1fr; }
  .topbar-inner{ justify-content: center; }
  .topbar-right{ display: none; }
  .search-panel{ width: 300px; right: -60px; }
}

/* Phones */
@media (max-width: 560px){
  .container{ padding: 0 1.1rem; }
  .header-inner{ padding: 0.9rem 1.1rem; }
  .logo-text{ font-size: 1.05rem; }
  .logo-mark{ width: 36px; height: 36px; font-size: 0.95rem; }
  .header-actions{ gap: 0.2rem; }
  .lang-switch{ margin: 0; }
  .icon-btn{ width: 34px; height: 34px; font-size: 0.95rem; }

  .hero-content{ max-width: 100%; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }

  .category-grid{ grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .product-info{ padding: 0.9rem; }
  .product-info h3{ font-size: 1rem; }
  .add-to-cart-btn{ font-size: 0.72rem; padding: 0.6rem; }

  .why-grid{ grid-template-columns: 1fr; }
  .about-stats{ flex-wrap: wrap; gap: 1.4rem; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom-inner{ flex-direction: column; text-align: center; }

  .search-panel{ width: calc(100vw - 2.2rem); right: -50px; }
  .whatsapp-float{ width: 50px; height: 50px; font-size: 1.4rem; bottom: 1.2rem; right: 1.2rem; }
  .filter-group{ min-width: 100%; }
}

/* Extra-small phones */
@media (max-width: 380px){
  .category-grid, .product-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 2.2rem; }
}