/* ================================================================
   ECOG — HOME PAGE CSS (Full Responsive Rewrite)
   Breakpoints:
     Desktop  : > 1200px
     Laptop   : 1024px – 1199px
     Tablet   : 768px  – 1023px
     Mobile L : 480px  – 767px
     Mobile S : < 480px
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES & RESET
   ---------------------------------------------------------------- */
:root {
  --green-primary:   #2e7d32;
  --green-mid:       #388e3c;
  --green-light:     #4caf50;
  --green-pale:      #e8f5e9;
  --green-btn:       #8aaa7a;
  --green-btn-hover: #6a9a5a;
  --white:           #ffffff;
  --text-dark:       #1a1a1a;
  --text-mid:        #3e4c3a;
  --text-muted:      #7c8a78;
  --border-light:    #e8ede8;
  --shadow-sm:       0 2px 8px rgba(0,0,0,.06);
  --shadow-md:       0 6px 24px rgba(0,0,0,.10);
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --font-body:       'Plus Jakarta Sans', sans-serif;
  --navbar-h:        160px; /* updated by JS */
  --card-w:          260px;
  --card-gap:        20px;
}

/* Single clean reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: #f4f6f4;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  /* padding-top set by JS based on real navbar height */
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-body);
  margin-top: 0;
}

img { max-width: 100%; display: block; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input  { outline: none; border: none; font-family: inherit; }

/* Font Awesome fix */
.fa, .fas, .fa-solid       { font-family: "Font Awesome 6 Free"   !important; font-weight: 900 !important; }
.far, .fa-regular          { font-family: "Font Awesome 6 Free"   !important; font-weight: 400 !important; }
.fab, .fa-brands           { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }


/* ----------------------------------------------------------------
   2. TOP ANNOUNCEMENT BANNER
   ---------------------------------------------------------------- */
.top-banner {
  position: relative;
  width: 100%;
  height: 36px;
  background: #141f16;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1100;
}

.banner-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: bannerScroll 22s linear infinite;
}

.banner-track span {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  padding: 0 48px;
}

@keyframes bannerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.close-banner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  z-index: 2;
  transition: color .2s;
}
.close-banner:hover { color: #fff; }


/* ----------------------------------------------------------------
   3. NAVBAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 60px);
}

/* ── TOP ROW ── */
.navbar-top {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 87px;
  border-bottom: 1px solid var(--border-light);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
}

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 506px;
  position: relative;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #d4e0ce;
  border-radius: 45px;
  overflow: visible;
  height: 54px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.search-wrap:focus-within {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}

.category-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px 0 16px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  height: 100%;
  background: none;
  border: none;
  outline: none;
  flex-shrink: 0;
}
.category-dropdown i {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform .22s ease;
  margin-right: 6px;
}
.category-dropdown[aria-expanded="true"] i { transform: rotate(180deg); }

.cat-dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 175px;
  padding: 6px 0;
  z-index: 600;
  list-style: none;
}
.cat-dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cat-dropdown-menu li {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cat-dropdown-menu li:hover {
  background: var(--green-pale);
  color: var(--green-primary);
}

.search-divider {
  width: 1.5px;
  height: 20px;
  background: #000;
  flex-shrink: 0;
  margin: 0 12px 0 4px;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 0 16px 0 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark) !important;
  caret-color: var(--green-primary);
  background: transparent;
  height: 100%;
  border: none;
  outline: none;
}
.search-input::placeholder {
  color: #888 !important;
  font-size: 15px;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-action-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.nav-action-link img { width: 22px; height: 22px; object-fit: contain; }
.nav-action-link:hover { color: var(--green-primary); }

.cart-icon-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--green-primary);
  display: grid;
  place-items: center;
}

/* ── BOTTOM ROW ── */
.navbar-bottom {
  display: flex;
  align-items: center;
  height: 73px;
  border-bottom: 1px solid var(--border-light);
  gap: 0;
}

.browse-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green-btn);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
  margin-right: 32px;
  cursor: pointer;
  border: none;
}
.browse-btn:hover { background: var(--green-btn-hover); transform: scale(1.02); }
.browse-btn i { font-size: 12px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 67px;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  background: #8aaa7a;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 8px;
  z-index: 0;
}
.nav-link:hover::before { transform: scaleY(1); }
.nav-link.active::before { background: #7a5c3c; transform: scaleY(1); }
.nav-link::after { display: none; }

.nav-link .link-label {
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--text-mid);
  white-space: nowrap;
}
.nav-link:hover .link-label,
.nav-link.active .link-label { opacity: 0; transform: translateY(-6px); }

.nav-link .link-icon {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease 0.12s, transform 0.18s ease 0.12s;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nav-link .link-icon img { width: 20px; height: 20px; }
.nav-link:hover .link-icon,
.nav-link.active .link-icon { opacity: 1; transform: translateY(0); }

/* Support */
.nav-support {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-support img { width: 24px; height: 24px; object-fit: contain; }
.support-text { display: flex; flex-direction: column; gap: 2px; }
.support-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.support-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay & drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: #1b1918;
  z-index: 9999;
  padding: 80px 24px 24px;
  transition: left 0.35s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { left: 0; }

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--green-btn); }

.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

/* Mobile nav links */
.nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-support-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
}
.nav-support-mobile .support-number,
.nav-support-mobile .support-label { color: rgba(255,255,255,0.8); }

/* Search dropdown */
.search-dropdown {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 360px;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  z-index: 99999;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}
.search-dropdown-visible {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: #222;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}
.search-item:hover { background: #f7fffe; }
.search-item-img {
  width: 46px; height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}
.search-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-item-name { font-size: .88rem; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-name mark { background: rgba(11,191,138,.2); color: #0bbf8a; padding: 0 1px; border-radius: 2px; font-weight: 700; }
.search-item-cat { font-size: .72rem; color: #999; text-transform: uppercase; letter-spacing: .4px; }
.search-item-price { font-size: .88rem; font-weight: 700; color: #015e01; flex-shrink: 0; white-space: nowrap; }
.search-view-all { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: .82rem; color: #0bbf8a; font-weight: 600; background: #f7fffe; border-top: 2px solid #e8f5e9; text-decoration: none; transition: background .2s; gap: 8px; }
.search-view-all:hover { background: #e8f5e9; }
.search-loading { display: flex; align-items: center; gap: 10px; padding: 16px; font-size: .85rem; color: #888; }
.search-spinner { width: 16px; height: 16px; border: 2px solid #e0e0e0; border-top: 2px solid #0bbf8a; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-empty { display: flex; align-items: center; gap: 10px; padding: 18px 16px; font-size: .85rem; color: #888; }


/* ----------------------------------------------------------------
   4. HERO SECTION
   ---------------------------------------------------------------- */
.hero-section {
  max-width: 1240px;
  height: 395px;
  margin: 16px auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.hero-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-image: url('../img/Subtract%20(2).png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 395px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.2, 0.9, 0.4, 1);
}
.hero-slide.active { opacity: 1; pointer-events: all; }

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 38px 0 0;
}

.slide-image {
  flex: 0 0 auto;
  width: 691px;
  height: 460px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-left: -4px;
  margin-top: -19px;
  opacity: 0;
  animation-name: none;
}

.hero-img {
  width: 691px;
  height: 460px;
  object-fit: cover;
}

.slide-text {
  flex: 1;
  color: var(--white);
  opacity: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 7px;
  animation-name: none;
}

.slide-heading {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  max-width: 100%;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: right;
}

.slide-desc {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  max-width: 479px;
  margin-bottom: 32px;
  text-align: right;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--green-primary);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.hero-btn:hover { background: #F5F7F0; transform: translateY(-2px); }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 95px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #8AAA7A;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.dot.active { width: 75px; border-radius: 26px; background: #2D6B47; }

/* Hero animations */
@keyframes imgEnter  { 0%{opacity:0;transform:translateY(35px) scale(0.94)} 100%{opacity:1;transform:translateY(0) scale(1)} }
@keyframes imgExit   { 0%{opacity:1;transform:translateY(0) scale(1)} 100%{opacity:0;transform:translateY(35px) scale(0.94)} }
@keyframes textEnter { 0%{opacity:0;transform:translateX(28px)} 100%{opacity:1;transform:translateX(0)} }
@keyframes textExit  { 0%{opacity:1;transform:translateX(0)} 100%{opacity:0;transform:translateX(28px)} }

.hero-slide.active .slide-image { animation: imgEnter 1s ease-in-out forwards; }
.hero-slide.active .slide-text  { animation: textEnter 0.5s 0.5s ease-in-out forwards; }
.hero-slide:not(.active) .slide-image { animation: imgExit 0.8s ease-in-out forwards; }
.hero-slide:not(.active) .slide-text  { animation: textExit 0.8s 0.8s ease-in-out forwards; }


/* ----------------------------------------------------------------
   5. OCCASION & EXPLORE CATEGORY SECTIONS
   ---------------------------------------------------------------- */
.occasion-section,
.explore-section {
  padding: clamp(32px, 5vw, 80px) clamp(16px, 7vw, 100px);
  overflow: hidden;
  background: #fff;
}

.occasion-section h2,
.explore-section h2 {
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.occasion-track-wrapper,
.scroll-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.occasion-track-wrapper::before,
.occasion-track-wrapper::after,
.scroll-track-wrapper::before,
.scroll-track-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.occasion-track-wrapper::before,
.scroll-track-wrapper::before { left: 0; background: linear-gradient(to right, #ffffff, transparent); }
.occasion-track-wrapper::after,
.scroll-track-wrapper::after  { right: 0; background: linear-gradient(to left, #ffffff, transparent); }

.occasion-track,
.scroll-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: autoscroll 28s linear infinite;
}
.occasion-track { animation-name: occasion-scroll; }
.occasion-track:hover,
.scroll-track:hover { animation-play-state: paused; }

@keyframes occasion-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes autoscroll      { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* Category & Occasion Cards */
.category-card,
.occasion-card {
  position: relative;
  width: clamp(160px, 18vw, 228.8px);
  height: clamp(145px, 16vw, 205px);
  border-radius: 14px;
  background-color: #eaebe4;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.category-card img,
.occasion-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s ease;
}
.category-card:hover img,
.occasion-card:hover img { transform: scale(1.08); filter: blur(1.5px) brightness(0.92); }

.card-blur-overlay,
.occasion-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.2) 50%, rgba(240,241,234,0.3) 100%);
  backdrop-filter: blur(6px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.category-card:hover .card-blur-overlay,
.occasion-card:hover .occasion-blur-overlay { opacity: 1; }

.card-label,
.occasion-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 100%;
  height: 34px;
  background: #8aaa7a;
  box-shadow: 0 -4px 16px rgba(76,175,80,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease 0.05s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1) 0.05s;
  pointer-events: none;
  z-index: 3;
}
.category-card:hover .card-label,
.occasion-card:hover .occasion-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.card-label span,
.occasion-label span {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ----------------------------------------------------------------
   6. CROWD PLEASERS (CP SECTION)
   ---------------------------------------------------------------- */
.cp-section {
  padding: clamp(24px, 5vw, 80px) clamp(16px, 7vw, 100px) clamp(40px, 6vw, 100px);
}

.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.cp-title {
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.cp-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cp-tab {
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 500;
  color: #000;
  cursor: pointer;
  padding-bottom: 4px;
  border: none;
  border-bottom: 4px solid transparent;
  background: none;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cp-tab:hover { color: #444; }
.cp-tab.active { color: #1a1a1a; font-weight: 600; border-bottom-color: #8aaa7a; }

/* Grid — fluid, always fills container */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  min-height: 420px;
}

/* Product card */
.cp-card {
  background: #F9F9F7;
  border-radius: 16px;
  padding: 0 0 12px;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
  height: 414px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cp-card:hover { border-color: #e0e0e0; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.cp-card-actions {
  position: absolute;
  top: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.cp-card:hover .cp-card-actions { opacity: 1; }

.cp-action-btn {
  width: 32px; height: 32px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.cp-action-btn img { width: 14px; height: 14px; object-fit: contain; }
.cp-action-btn:hover { background: #4a7c4e; border-color: #4a7c4e; color: #fff; }

.cp-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-top: 24px;
  margin-bottom: 6px;
  padding-left: 24px;
}
.cp-stars i { font-size: 14px; color: #4a7c4e; }
.cp-stars i.empty { color: #d0d0d0; }
.cp-review-count { font-size: 11px; color: #999; margin-left: 3px; }

.cp-img-wrap {
  width: 100%;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  overflow: hidden;
  background: transparent;
  position: relative;
}
.cp-img-wrap img {
  width: 78%;
  height: 88%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}
.cp-card:hover .cp-img-wrap img { transform: scale(0.86); }

.cp-buy-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 198px;
  height: 34px;
  background: #8aaa7a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
  top: 268px;
  transition: background 0.18s;
}
.cp-buy-btn:hover { background: #3a6340; }
.cp-card:hover .cp-buy-btn { display: flex; }

.cp-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2px;
  margin-top: 4px;
  line-height: 1.3;
  padding: 0 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
  padding: 0 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-price { display: flex; align-items: center; gap: 6px; padding: 0 24px; }
.cp-price-old { font-size: 13px; color: #aaa; text-decoration: line-through; }
.cp-price-new { font-size: 14px; font-weight: 700; color: #1a1a1a; }

/* Skeleton */
.cp-skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: cpShimmer 1.4s infinite linear;
}
@keyframes cpShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.cp-footer { margin-top: 20px; }
.cp-view-more {
  background: #4a7c4e;
  color: #fff;
  border: none;
  border-radius: 6px;
  height: 34px;
  width: 102px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s;
}
.cp-view-more:hover { background: #3a6340; }

/* Modal */
.cp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.cp-modal-overlay.open { display: flex; }
.cp-modal {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  position: relative;
  animation: cpModalIn 0.22s ease;
}
@keyframes cpModalIn { from{transform:scale(0.92);opacity:0} to{transform:scale(1);opacity:1} }
.cp-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
.cp-modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.cp-modal-product { display: flex; gap: 14px; align-items: center; padding: 12px; background: #f7f7f5; border-radius: 6px; margin-bottom: 16px; }
.cp-modal-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cp-modal-product-info strong { display: block; font-size: 14px; }
.cp-modal-product-info span { font-size: 12px; color: #777; }
.cp-modal-actions { display: flex; gap: 10px; }
.cp-modal-actions button { flex: 1; padding: 10px; border-radius: 5px; border: none; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.18s; }
.btn-cart { background: #4a7c4e; color: #fff; }
.btn-cart:hover { background: #3a6340; }
.btn-detail { background: #f0f0f0; color: #333; }
.btn-detail:hover { background: #e0e0e0; }

.cp-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1a1a1a; color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13px; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; z-index: 2000; }
.cp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ----------------------------------------------------------------
   7. SHOP THE LOOK (STL WIDGET)
   ---------------------------------------------------------------- */
.stl-widget {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 7vw, 100px);
}

.stl-widget .stl-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  line-height: 0;
}
.stl-widget .stl-wrap img.stl-main {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: filter 0.3s;
  border-radius: 16px;
}
.stl-widget .stl-wrap.stl-dimmed img.stl-main { filter: brightness(0.78); }

.stl-widget .stl-hs {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #8aaa7a;
  border: 2px solid #8aaa7a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), background 0.18s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  padding: 0;
  outline: none;
}
.stl-widget .stl-hs::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: stl-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes stl-pulse { 0%{opacity:1;transform:scale(1)} 70%{opacity:0;transform:scale(1.75)} 100%{opacity:0;transform:scale(1.75)} }
.stl-widget .stl-hs:hover { transform: translate(-50%,-50%) scale(1.14); background: #fff; border-color: #22c55e; }
.stl-widget .stl-hs.stl-on { background: #16a34a; border-color: #16a34a; transform: translate(-50%,-50%) scale(1.1); }
.stl-widget .stl-ic { position: relative; width: 14px; height: 14px; pointer-events: none; }
.stl-widget .stl-ic::before, .stl-widget .stl-ic::after { content: ''; position: absolute; background: #fff; border-radius: 2px; transition: transform 0.22s, background 0.18s; }
.stl-widget .stl-ic::before { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.stl-widget .stl-ic::after  { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }

.stl-widget .stl-pop {
  position: absolute;
  z-index: 20;
  width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86) translateY(6px);
  transform-origin: top left;
  transition: opacity 0.22s, transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.stl-widget .stl-pop.stl-flip { transform-origin: top right; }
.stl-widget .stl-pop.stl-open { opacity: 1; pointer-events: all; transform: scale(1) translateY(0); }
.stl-widget .stl-pop-img { position: relative; width: 100%; height: 110px; background: #f5f0e8; overflow: hidden; }
.stl-widget .stl-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stl-widget .stl-pop-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; color: #555; z-index: 5; transition: background 0.15s; }
.stl-widget .stl-pop-x:hover { background: #fff; }
.stl-widget .stl-pop-body { padding: 10px 12px 12px; }
.stl-widget .stl-cat { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #22c55e; margin-bottom: 3px; }
.stl-widget .stl-name { font-size: 0.82rem; font-weight: 600; color: #1a1a1a; line-height: 1.35; margin-bottom: 7px; }
.stl-widget .stl-prices { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.stl-widget .stl-now { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; }
.stl-widget .stl-old { font-size: 0.75rem; color: #aaa; text-decoration: line-through; }
.stl-widget .stl-off { font-size: 0.62rem; font-weight: 700; background: #dcfce7; color: #16a34a; border-radius: 4px; padding: 2px 5px; }
.stl-widget .stl-btn { display: block; width: 100%; padding: 8px; background: #22c55e; color: #fff; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; text-align: center; border: none; border-radius: 7px; cursor: pointer; text-decoration: none; transition: background 0.18s, transform 0.14s; }
.stl-widget .stl-btn:hover { background: #16a34a; transform: translateY(-1px); }


/* ----------------------------------------------------------------
   8. BROWN SUGAR CARDS
   ---------------------------------------------------------------- */
.brown-sugar-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 clamp(16px, 5vw, 80px);
  margin: 24px 0;
}

.brown-sugar-section .cards-wrapper {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
}

.brown-sugar-section .bsc-card {
  background-color: #F7FAF6;
  border-radius: 10px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 22px 0 22px 22px;
  flex: 1;
  min-width: 0;
  height: 280px;
  overflow: visible;
  position: relative;
}

.brown-sugar-section .bsc-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 60%;
  padding: 12px 16px;
}

.brown-sugar-section .bsc-card-content p {
  font-size: clamp(16px, 2vw, 22px);
  color: #1a1a1a;
  line-height: 1.4;
  font-weight: 500;
}

.brown-sugar-section .bsc-shop-btn {
  background-color: #8AAA7A;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
  transition: background-color 0.2s ease;
}
.brown-sugar-section .bsc-shop-btn:hover { background-color: #6a9572; }

.brown-sugar-section .bsc-image-wrapper {
  width: clamp(120px, 20vw, 230px);
  height: 200px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  align-self: center;
}

.brown-sugar-section .bsc-card-image {
  height: 270px;
  width: auto;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  z-index: 2;
}


/* ----------------------------------------------------------------
   9. REVIEWS SECTION
   ---------------------------------------------------------------- */
.reviews-section {
  padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 40px);
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #1a1a1a;
}

.nav-buttons { display: flex; gap: 10px; }
.nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: opacity 0.2s, transform 0.15s;
}
.nav-btn.prev { background: #8aaa7a; color: #fff; }
.nav-btn.next { background: #8aaa7a; color: #fff; }
.nav-btn:hover { opacity: 0.85; transform: scale(1.05); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.slider-viewport { overflow: hidden; width: 100%; }
.slider-track {
  display: flex;
  gap: 18px;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 54px) / 4);
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-body { font-size: 13px; color: #6b6b6b; line-height: 1.65; margin-bottom: 14px; }
.card-body strong { font-weight: 600; color: #3a3a3a; }
.card-stars { display: flex; align-items: center; gap: 3px; margin-bottom: 16px; }
.star { font-size: 17px; line-height: 1; }
.star.filled { color: #f5a623; }
.star.half   { color: #f5a623; opacity: 0.55; }
.star.empty  { color: #d9d9d9; }
.star-count  { font-size: 13px; color: #999; margin-left: 4px; }
.card-reviewer { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid #f0f0f0; margin-top: auto; }
.reviewer-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #c9a882; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; overflow: hidden; }
.reviewer-name { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 2px; }
.reviewer-meta { font-size: 11.5px; color: #9e9e9e; }


/* ----------------------------------------------------------------
   10. UNIQUE COLLECTION (UC)
   ---------------------------------------------------------------- */
.uc-section {
  padding: clamp(32px, 5vw, 52px) clamp(16px, 4vw, 40px);
  background: #fff;
  font-family: var(--font-body);
}

.uc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 40px;
  align-items: center;
}

.uc-hero {
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  width: 100%;
}
.uc-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.uc-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.uc-title {
  font-size: clamp(22px, 2.5vw, 33px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.25;
}

.uc-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: #8aaa7a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.uc-nav-btn:hover:not(:disabled) { background: #749668; transform: scale(1.08); }
.uc-nav-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.uc-viewport { overflow: hidden; width: 100%; min-width: 0; }
.uc-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
}

.uc-card {
  flex: 0 0 calc(50% - 6px);
  min-width: 0;
  background: #F9F9F7;
  border-radius: 16px;
  padding: 0 0 12px;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
  height: 420px;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.uc-card:hover { border-color: #e0e0e0; box-shadow: 0 2px 14px rgba(0,0,0,0.08); }

.uc-card-actions { position: absolute; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity 0.2s; z-index: 10; }
.uc-card:hover .uc-card-actions { opacity: 1; }

.uc-action-btn { width: 32px; height: 32px; background: #fff; border: 1px solid #e8e8e8; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: #555; transition: background 0.18s, border-color 0.18s, color 0.18s; }
.uc-action-btn img { width: 14px; height: 14px; object-fit: contain; }
.uc-action-btn:hover { background: #8aaa7a; border-color: #8aaa7a; color: #fff; }

.uc-stars { display: flex; align-items: center; gap: 1px; margin-top: 24px; margin-bottom: 6px; padding-left: 24px; }
.uc-stars i { font-size: 14px; color: #8aaa7a; }
.uc-stars i.uc-star-empty { color: #d0d0d0; }
.uc-review-count { font-size: 11px; color: #999; margin-left: 3px; }

.uc-card-img-wrap { width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; margin: 0 0 8px; overflow: hidden; background: transparent; position: relative; }
.uc-card-img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; transition: transform 0.3s; }
.uc-card:hover .uc-card-img { transform: scale(0.92); }

.uc-buy-btn { position: absolute; left: 50%; transform: translateX(-50%); width: 198px; height: 34px; background: #8aaa7a; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 6; top: 278px; transition: background 0.18s; }
.uc-buy-btn:hover { background: #3a6340; }
.uc-card:hover .uc-buy-btn { display: flex; }

.uc-card-name { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; margin-top: 4px; line-height: 1.3; padding: 0 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-card-meta { font-size: 13px; color: #666; margin-bottom: 5px; padding: 0 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-card-price { display: flex; align-items: center; gap: 6px; padding: 0 24px; }
.uc-price-old { font-size: 13px; color: #aaa; text-decoration: line-through; }
.uc-price-new { font-size: 14px; font-weight: 700; color: #1a1a1a; }

.uc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 36px; background: #8aaa7a; color: #fff; text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.2s; width: fit-content; }
.uc-btn:hover { background: #3a6340; }


/* ----------------------------------------------------------------
   11. BANNER CTA
   ---------------------------------------------------------------- */
.banner {
  position: relative;
  width: 100%;
  height: clamp(250px, 35vw, 438px);
  overflow: hidden;
  background-image: url('../img/cta.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  margin-bottom: 20px;
}

.banner__content {
  position: absolute;
  bottom: clamp(40px, 8vw, 106px);
  left: clamp(20px, 7vw, 100px);
  max-width: clamp(280px, 40vw, 480px);
}

.banner__title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.banner__subtitle { font-size: 12.5px; color: #555; margin-bottom: 20px; }
.banner__subtitle .highlight { color: #5a9e5f; font-style: italic; }

.banner__buttons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 16px;
  height: 34px;
}
.btn--outline { border: 1.5px solid #8AAA7A; color: #8AAA7A; background: white; min-width: 100px; }
.btn--outline:hover { background: #333; color: #fff; }
.btn--solid { background: #8AAA7A; color: #fff; border: 1.5px solid #8AAA7A; min-width: 150px; }
.btn--solid:hover { background: #478a4c; border-color: #478a4c; }


/* ----------------------------------------------------------------
   12. INSIDE ECOG SECTION
   ---------------------------------------------------------------- */
.ecog-section {
  height: auto;
  margin: 40px auto;
  padding: 0 clamp(16px, 5vw, 60px);
  max-width: 1340px;
}

.ecog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ecog-title {
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 800;
  color: #1c1c1c;
}

.ecog-view-more {
  background: #8aaa7a;
  border: 1.5px solid #7aaa60;
  color: #fff;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.ecog-view-more:hover { background: #fff; color: #8aaa7a; }

.ecog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.ecog-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #ccc;
  min-height: 220px;
}
.ecog-card.featured {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}
.ecog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}
.ecog-card:hover img { transform: scale(1.04); }

.ecog-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(240,237,232,0) 0%, rgba(240,237,232,0.05) 25%, rgba(240,237,232,0.55) 55%, rgba(207,202,194,0.9) 75%, rgb(255,255,255) 100%);
}

.ecog-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 16px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ecog-meta { font-size: 12px; color: #000; font-weight: 600; }
.ecog-card-title { font-size: clamp(13px, 1.2vw, 16px); font-weight: 700; color: #1a1a1a; line-height: 1.35; margin: 0 0 6px; }

.ecog-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8aaa7a;
  color: #fff;
  border: none;
  height: 34px;
  width: 104px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.ecog-explore-btn:hover { background: #5e9048; }


/* ----------------------------------------------------------------
   13. YOUTUBE / JOURNEY SECTION
   ---------------------------------------------------------------- */
.jrny-section {
  padding: 32px 0;
  background: #fff;
  margin-top: 30px;
}

.jrny-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 clamp(16px, 7vw, 100px) 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.jrny-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #111;
}

.jrny-navbtns { display: flex; gap: 8px; }
.jrny-navbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #8aaa7a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  user-select: none;
}
.jrny-navbtn:hover { background: var(--green-btn-hover); }

.jrny-wrapper { position: relative; overflow: hidden; }
.jrny-fade-left, .jrny-fade-right { position: absolute; top: 0; bottom: 0; width: 80px; pointer-events: none; z-index: 2; }
.jrny-fade-left  { left: 0;  background: linear-gradient(to right, #fff 30%, transparent); }
.jrny-fade-right { right: 0; background: linear-gradient(to left, #fff 30%, transparent); }

.jrny-track {
  display: flex;
  gap: 16px;
  padding: 30px clamp(16px, 7vw, 100px) 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}
.jrny-track::-webkit-scrollbar { display: none; }

.jrny-card {
  flex: 0 0 220px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s;
  transform: scale(0.88);
}
.jrny-card.active { transform: scale(1.08) !important; box-shadow: 0 12px 32px rgba(0,0,0,0.18) !important; z-index: 1; position: relative; }
.jrny-card iframe { width: 100% !important; height: 380px !important; border: none !important; display: block !important; }
.jrny-card h3 { padding: 10px 12px 14px; font-size: 13px; font-weight: 500; color: #222; line-height: 1.4; }


/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.ecg-footer {
  background-image: url("../img/footerimg (1).png");
  background-color: #8AAA7A;
  background-size: cover;
  background-position: center bottom;
  background-blend-mode: multiply;
  position: relative;
}

.ecg-footer-container {
  padding: clamp(32px, 5vw, 50px) clamp(16px, 5vw, 5%) 28px;
}

.ecg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 36px;
  align-items: start;
}

.ecg-footer-brand .logo img { width: 80px; margin-bottom: 14px; display: block; }
.ecg-footer-brand p { font-size: 13px; line-height: 1.75; color: #fff; }

.ecg-footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ecg-footer-social a {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: #5a8a58;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.ecg-footer-social a:hover { background: #2d5a27; color: #fff; transform: translateY(-2px); }

.ecg-footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.2px; }
.ecg-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ecg-footer-col ul li { margin-bottom: 10px; }
.ecg-footer-col ul li a { color: #fff; font-size: 13px; text-decoration: none; transition: color 0.25s; }
.ecg-footer-col ul li a:hover { color: #d4edd0; }

.newsletter-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.newsletter-col p { color: #fff; font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
.newsletter-email-input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #f5f5f0;
  color: #333;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px;
  display: block;
}
.newsletter-email-input::placeholder { color: #999; }
.newsletter-btn {
  width: 100%;
  padding: 11px 20px;
  border: none;
  border-radius: 6px;
  background: #2d5a27;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: block;
  transition: background 0.3s, transform 0.2s;
}
.newsletter-btn:hover { background: #1e3e1a; transform: translateY(-2px); }
.newsletter-msg { margin-top: 8px; font-size: 12px; min-height: 18px; color: #d4edd0; }
.newsletter-msg.error { color: #ffcccc; }

.ecg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}


/* ----------------------------------------------------------------
   15. SCROLL TO TOP
   ---------------------------------------------------------------- */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px; left: 30px;
  z-index: 1000;
  width: 48px; height: 48px;
  border: none;
  background: #fff;
  color: #333;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}
#scrollTopBtn.visible { display: flex; }
#scrollTopBtn:hover { background: #f1f1f1; transform: translateY(-4px); }


/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ── Laptop: 1024px – 1199px ── */
@media (max-width: 1199px) {
  .navbar-inner { padding: 0 clamp(16px, 3vw, 40px); }

  .hero-section { padding: 0 24px; }
  .slide-image  { width: clamp(300px, 45vw, 500px); height: auto; }
  .hero-img     { width: 100%; height: auto; }

  .ecog-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .ecog-card.featured {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-height: 300px;
  }

  .ecg-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
  .newsletter-col  { grid-column: 1 / -1; max-width: 420px; }
}

/* ── Tablet: 768px – 1023px ── */
@media (max-width: 1023px) {

  /* Navbar */
  .navbar-bottom .nav-links,
  .navbar-bottom .nav-support { display: none; }
  .navbar-bottom .browse-btn  { display: none; }
  .hamburger { display: flex; }

  .navbar-top { flex-wrap: wrap; padding: 12px 0; height: auto; gap: 12px; }
  .nav-search  { order: 3; flex: 0 0 100%; max-width: 100%; margin: 0; }
  .nav-actions { gap: 18px; }
  .nav-actions .wishlist-text,
  .nav-actions .account-text,
  .nav-actions .cart-text { display: none; }

  .navbar-bottom { height: auto; padding: 10px 0; }

  /* Hero — image left, text right, shrink proportionally */
  .hero-section  { height: auto; padding: 0 20px; margin: 12px auto; }
  .hero-slider   { height: auto; min-height: 300px; }
  .slide-content { flex-direction: row; padding: 20px; gap: 16px; align-items: center; }
  .slide-image   { width: 45%; height: auto; margin: 0; flex-shrink: 0; }
  .hero-img      { width: 100%; height: auto; }
  .slide-text    { flex: 1; align-items: flex-end; padding-top: 0; }
  .slide-heading { text-align: right; font-size: clamp(16px, 2.5vw, 24px); line-height: 1.4; }
  .slide-desc    { text-align: right; max-width: 100%; font-size: 13px; }
  .slider-dots   { bottom: 12px; right: 20px; }

  /* Sections */
  .cp-grid { grid-template-columns: repeat(2, 1fr); }

  .uc-inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .uc-hero  { height: 240px !important; }
  .uc-card  { flex: 0 0 calc(50% - 6px) !important; }

  .brown-sugar-section { padding: 0 20px; }
  .brown-sugar-section .cards-wrapper { flex-direction: column; }
  .brown-sugar-section .bsc-card { width: 100%; height: auto; min-height: 160px; }
  .brown-sugar-section .bsc-card-content { max-width: 65%; }

  .ecog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ecog-card.featured {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-height: 280px;
  }

  .ecg-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .ecg-footer-brand { grid-column: 1 / -1; text-align: center; }
  .ecg-footer-social { justify-content: center; }
  .newsletter-col { grid-column: 1 / -1; max-width: 100%; }

  /* Reviews — 2 visible cards on tablet */
  .review-card { flex: 0 0 calc((100% - 18px) / 2); min-width: 0; }
}

/* ── Mobile Large: 480px – 767px ── */
@media (max-width: 767px) {

  /* Navbar */
  .navbar-top { height: auto; }
  .category-dropdown span#catLabel { display: none; }
  .category-dropdown i { margin-right: 0; }

  /* Hero — side by side, compact */
  .hero-section  { padding: 0 12px; margin: 10px auto; }
  .hero-slider   { min-height: 220px; border-radius: 16px; }
  .slide-content { flex-direction: row; padding: 16px 12px; gap: 12px; align-items: center; }
  .slide-image   { width: 42%; flex-shrink: 0; }
  .slide-heading { font-size: clamp(14px, 3.5vw, 18px); line-height: 1.35; margin-bottom: 8px; }
  .slide-desc    { font-size: 11px; margin-bottom: 12px; }

  /* Category sliders */
  .occasion-section,
  .explore-section { padding: 28px 12px; }

  /* CP Section */
  .cp-section { padding: 24px 12px 40px; }
  .cp-header  { flex-direction: column; align-items: flex-start; }
  .cp-tabs    { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; width: 100%; }
  .cp-tabs::-webkit-scrollbar { display: none; }
  .cp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cp-card { height: 360px; }
  .cp-img-wrap { height: 220px; }
  .cp-buy-btn  { top: 218px; width: 85%; font-size: 12px; }
  .cp-name, .cp-meta, .cp-price { padding: 0 12px; }
  .cp-stars { padding-left: 12px; margin-top: 16px; }
  .cp-card-actions { top: 10px; right: 10px; }

  /* STL widget */
  .stl-widget { padding: 0 12px; }
  .stl-widget .stl-hs { width: 40px; height: 40px; }
  .stl-widget .stl-pop { width: 170px; }
  .stl-widget .stl-pop-img { height: 80px; }
  .stl-widget .stl-pop-body { padding: 8px 10px 10px; }
  .stl-widget .stl-name { font-size: 0.75rem; }
  .stl-widget .stl-prices { font-size: 0.8rem; }

  /* Brown Sugar */
  .brown-sugar-section { padding: 0 12px; margin: 16px 0; }
  .brown-sugar-section .bsc-card { padding: 16px 0 16px 16px; height: auto; min-height: 140px; }
  .brown-sugar-section .bsc-card-image { height: 180px; }

  /* Unique Collection */
  .uc-section { padding: 32px 12px !important; }
  .uc-inner { grid-template-columns: 1fr !important; gap: 20px !important; }
  .uc-hero  { height: 200px !important; }
  .uc-card  { height: 380px; flex: 0 0 calc(50% - 6px) !important; }
  .uc-card-img-wrap { height: 250px; }
  .uc-buy-btn { top: 248px; }

  /* Banner */
  .banner { height: clamp(200px, 40vw, 300px); background-size: cover; background-position: 70% center; }
  .banner__content { left: 16px; bottom: 24px; max-width: 55%; }
  .banner__title { font-size: 18px; }

  /* Ecog Section */
  .ecog-section { padding: 0 12px; margin: 28px auto; }
  .ecog-grid { grid-template-columns: 1fr; }
  .ecog-card.featured { grid-column: auto; grid-row: auto; min-height: 240px; }
  .ecog-card.small { min-height: 180px; }

  /* Journey */
  .jrny-header { margin: 0 12px 20px; }
  .jrny-track  { padding: 24px 12px 32px; }
  .jrny-card   { flex: 0 0 200px !important; }
  .jrny-card iframe { height: 320px !important; }

  /* Reviews — auto-sized by JS, fallback 1 card */
  .reviews-section { padding: 28px 12px; }
  .review-card { flex: 0 0 100%; min-width: 0; }
  .slider-track { gap: 12px; }

  /* Footer */
  .ecg-footer-grid { grid-template-columns: 1fr 1fr; }
  .ecg-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Mobile Small: < 480px ── */
@media (max-width: 479px) {

  /* Navbar — single row */
  .navbar-top { gap: 8px; }
  .logo img   { width: 44px; height: 44px; }
  .nav-search { display: none; }
  .nav-actions { gap: 12px; }

  /* Mobile search bar appears in drawer instead */

  /* Hero — stack on very small: image top, text bottom */
  .hero-slider  { min-height: 300px; border-radius: 12px; }
  .slide-content { flex-direction: column; padding: 16px 12px; gap: 8px; }
  .slide-image  { width: 80%; margin: 0 auto; }
  .slide-text   { align-items: center; }
  .slide-heading { font-size: 15px; text-align: center; }
  .slide-desc   { text-align: center; font-size: 11px; display: block; }
  .slider-dots  { bottom: 10px; right: 12px; }
  .dot { width: 14px; height: 14px; }
  .dot.active { width: 44px; }

  /* CP Grid */
  .cp-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cp-card { height: 320px; }
  .cp-img-wrap { height: 185px; }
  .cp-buy-btn  { top: 183px; width: 85%; font-size: 11px; height: 28px; }
  .cp-name  { font-size: 12px; }
  .cp-meta  { font-size: 11px; }
  .cp-price-new { font-size: 12px; }

  /* Brown Sugar — hide image on tiny screens */
  .brown-sugar-section .bsc-image-wrapper { width: 100px; }
  .brown-sugar-section .bsc-card-image { height: 140px; }

  /* Ecog grid */
  .ecog-card.featured { min-height: 200px; }
  .ecog-card.small    { min-height: 160px; }
  .ecog-card-title    { font-size: 12px; }
  .ecog-explore-btn   { width: 84px; font-size: 12px; }

  /* Journey */
  .jrny-card { flex: 0 0 180px !important; }
  .jrny-card iframe { height: 280px !important; }

  /* Reviews */
  .review-card { padding: 14px 12px; }

  /* Footer */
  .ecg-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .ecg-footer-container { padding: 32px 14px 20px; }

  /* STL — larger tap targets on mobile, popups anchor to bottom */
  .stl-widget .stl-hs { width: 48px; height: 48px; }
  .stl-widget .stl-pop { width: 180px; }
  .stl-widget .stl-pop-img { height: 90px; }
}

/* ── Landscape short phones ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slider  { min-height: 60vw; }
  .slide-content { flex-direction: row; }
  .slide-image  { width: 40%; }
  .slide-text   { padding-top: 0; align-items: flex-start; }
  .slide-heading { text-align: left; font-size: 14px; }
  .slide-desc   { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .banner-track,
  .occasion-track,
  .scroll-track { animation: none !important; }
  .hero-slide,
  .slide-image,
  .slide-text   { transition: none; animation: none; }
}

/* ── Print ── */
@media print {
  .hero-slider, .jrny-section, .top-banner,
  #scrollTopBtn, .stl-widget, .cp-modal-overlay { display: none !important; }
}