/* ==========================================================================
   Melatei - Premium E-Commerce Design System
   Color Palette: Pure White Background, Deep Forest Green Accents, Warm Terracotta & Ochre Gold
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-bg: #ffffff;
  --color-bg-subtle: #fbfbf9;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f5f6f3;
  
  --color-forest: #1b3d2b;
  --color-forest-dark: #122a1e;
  --color-forest-light: #28553d;
  --color-forest-glow: rgba(27, 61, 43, 0.08);
  --color-forest-soft: #edf4ef;

  --color-terracotta: #c4542d;
  --color-terracotta-soft: #fbf0eb;
  --color-gold: #c88f28;
  --color-gold-soft: #fcf6eb;

  --color-text-main: #18261e;
  --color-text-muted: #5e6f66;
  --color-text-light: #8e9e96;
  --color-text-white: #ffffff;

  --color-border: #e6eae7;
  --color-border-light: #f0f3f1;
  --color-border-focus: #1b3d2b;

  --color-success: #1b7a42;
  --color-danger: #c43828;
  --color-warning: #d97706;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bengali: 'DM Sans', 'Hind Siliguri', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 61, 43, 0.04);
  --shadow-md: 0 6px 20px rgba(27, 61, 43, 0.06);
  --shadow-lg: 0 12px 36px rgba(27, 61, 43, 0.09);
  --shadow-hover: 0 16px 40px rgba(27, 61, 43, 0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Announce Bar
   ========================================================================== */
.top-announcement {
  background: var(--color-forest-dark);
  color: #f7f9f7;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 40;
}

.top-announcement span.highlight {
  color: #e5b967;
  font-weight: 600;
}

.top-announcement a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Main Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Left: Hamburger */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: all var(--transition-fast);
  color: var(--color-forest);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-forest);
  border-radius: 2px;
  transition: transform var(--transition-fast), width var(--transition-fast);
}

.hamburger-btn:hover {
  background: var(--color-forest-soft);
  border-color: var(--color-forest);
}

.hamburger-btn:hover span:nth-child(2) {
  width: 14px;
}

.header-links-desktop {
  display: flex;
  gap: 24px;
  list-style: none;
}

.header-links-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.header-links-desktop a:hover,
.header-links-desktop a.active {
  color: var(--color-forest);
  font-weight: 600;
}

/* Center: Brand Logo */
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Right: Tools & Cart */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
}

.action-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-main);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  background: var(--color-forest-soft);
  color: var(--color-forest);
  border-color: var(--color-border);
}

.action-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.cart-btn {
  background: var(--color-forest);
  color: #ffffff;
  padding: 0 16px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(27, 61, 43, 0.16);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.cart-btn:hover {
  background: var(--color-forest-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27, 61, 43, 0.22);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-terracotta);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
}

/* ==========================================================================
   Category Ribbon (Below Logo & Header)
   "below the logo svgs organic product, men fashion, women fashion, accessories"
   ========================================================================== */
.category-ribbon-section {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  padding: 24px 0 20px;
  position: relative;
}

.category-ribbon-title {
  text-align: center;
  margin-bottom: 18px;
}

.category-ribbon-title h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-forest);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-forest);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.category-svg-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-forest);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.category-svg-icon-wrap svg {
  width: 30px;
  height: 30px;
  transition: transform var(--transition-normal);
}

.category-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 3px;
  transition: color var(--transition-fast);
}

.category-card-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Hover & Active States */
.category-card-btn:hover {
  background: #ffffff;
  border-color: var(--color-forest-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card-btn:hover .category-svg-icon-wrap {
  background: var(--color-forest);
  color: #ffffff;
  border-color: var(--color-forest);
}

.category-card-btn:hover .category-svg-icon-wrap svg {
  transform: scale(1.1);
}

.category-card-btn:hover .category-card-title {
  color: var(--color-forest);
}

.category-card-btn.active {
  background: var(--color-forest-soft);
  border-color: var(--color-forest);
  box-shadow: 0 4px 16px rgba(27, 61, 43, 0.08);
}

.category-card-btn.active::before {
  opacity: 1;
}

.category-card-btn.active .category-svg-icon-wrap {
  background: var(--color-forest);
  color: #ffffff;
  border-color: var(--color-forest);
}

.category-card-btn.active .category-card-title {
  color: var(--color-forest);
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-showcase {
  background: linear-gradient(180deg, #f8faf8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border-light);
  padding: 48px 0 54px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest);
  background: var(--color-forest-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1px solid rgba(27, 61, 43, 0.12);
}

.hero-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-terracotta);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-forest);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-terracotta);
}

.hero-bengali-tagline {
  font-family: var(--font-bengali);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-bengali-tagline::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--color-gold);
}

.hero-lead {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-forest);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px rgba(27, 61, 43, 0.2);
}

.btn-primary:hover {
  background: var(--color-forest-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 61, 43, 0.28);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-forest);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-forest-soft);
  border-color: var(--color-forest);
}

.hero-visual {
  position: relative;
}

.hero-mosaic-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  padding: 12px;
}

.hero-grid-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-thumb {
  height: 170px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-thumb:hover img {
  transform: scale(1.08);
}

.hero-thumb-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(18, 42, 30, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Store Catalog & Filter Bar
   ========================================================================== */
.catalog-section {
  padding: 50px 0 80px;
  background: #ffffff;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.catalog-headline h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-forest);
}

.catalog-headline p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  min-width: 240px;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--color-bg-subtle);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--color-forest);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(27, 61, 43, 0.08);
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  width: 16px;
  height: 16px;
}

.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--color-text-main);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--color-forest);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-pill:hover {
  color: var(--color-forest);
  background: var(--color-forest-soft);
}

.tab-pill.active {
  background: var(--color-forest);
  color: #ffffff;
  border-color: var(--color-forest);
}

/* ==========================================================================
   Product Grid & Product Cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(27, 61, 43, 0.25);
  box-shadow: var(--shadow-hover);
}

.card-media {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect ratio */
  background: var(--color-bg-subtle);
  overflow: hidden;
}

.card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-media img {
  transform: scale(1.07);
}

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(27, 61, 43, 0.9);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.badge-tag.tag-terracotta {
  background: rgba(196, 84, 45, 0.92);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--color-forest);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.product-card:hover .quick-view-overlay-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.quick-view-overlay-btn:hover {
  background: var(--color-forest);
  color: #ffffff;
}

.card-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.card-title:hover {
  color: var(--color-forest);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.card-rating span.count {
  color: var(--color-text-light);
  font-size: 12px;
  margin-left: 2px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.card-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-forest);
}

.card-price-original {
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.add-cart-btn {
  background: var(--color-forest-soft);
  color: var(--color-forest);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid rgba(27, 61, 43, 0.15);
}

.add-cart-btn:hover {
  background: var(--color-forest);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(27, 61, 43, 0.2);
}

.add-cart-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Trust & Brand Highlights Section
   ========================================================================== */
.trust-highlights-section {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-forest-soft);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-box svg {
  width: 24px;
  height: 24px;
}

.trust-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Slide-in Off-Canvas Navigation Drawer (Hamburger)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 42, 30, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.nav-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header .drawer-logo {
  height: 44px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-main);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-menu-section {
  margin-bottom: 26px;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-list li a,
.drawer-nav-list li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.drawer-nav-list li a:hover,
.drawer-nav-list li button:hover {
  background: var(--color-forest-soft);
  color: var(--color-forest);
}

.drawer-nav-list li a svg {
  color: var(--color-forest);
  width: 18px;
  height: 18px;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.admin-portal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-forest);
  transition: all var(--transition-fast);
}

.admin-portal-link:hover {
  border-color: var(--color-forest);
  background: var(--color-forest-soft);
}

/* ==========================================================================
   Slide-in Cart Drawer (Right Side)
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.free-shipping-bar-wrap {
  padding: 14px 24px;
  background: var(--color-forest-soft);
  border-bottom: 1px solid rgba(27, 61, 43, 0.08);
}

.free-shipping-text {
  font-size: 13px;
  color: var(--color-forest-dark);
  margin-bottom: 6px;
  font-weight: 500;
}

.free-shipping-text strong {
  font-weight: 700;
  color: var(--color-forest);
}

.progress-bar-bg {
  height: 6px;
  background: rgba(27, 61, 43, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-forest);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.cart-empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: center;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 8px;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--color-forest-soft);
  color: var(--color-forest);
}

.qty-number {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove-btn {
  color: var(--color-text-light);
  padding: 6px;
  transition: color var(--transition-fast);
}

.cart-item-remove-btn:hover {
  color: var(--color-danger);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.cart-summary-line.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-forest);
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.checkout-btn {
  width: 100%;
  background: var(--color-forest);
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(27, 61, 43, 0.2);
  transition: all var(--transition-fast);
}

.checkout-btn:hover {
  background: var(--color-forest-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Product Quick View & Checkout Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 42, 30, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-forest);
  color: #ffffff;
}

.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  padding: 32px;
}

.modal-product-media img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.modal-product-details {
  display: flex;
  flex-direction: column;
}

.modal-features-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.modal-features-list li svg {
  color: var(--color-forest);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Checkout Modal */
.checkout-modal-card {
  max-width: 640px;
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--color-bg-subtle);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-forest);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(27, 61, 43, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-forest);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 280px;
}

@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-logo {
  height: 56px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-forest);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-forest);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .category-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .header-links-desktop {
    display: none;
  }
  .modal-product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .category-ribbon-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .category-card-btn {
    padding: 12px 8px;
  }
  .category-svg-icon-wrap {
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
  }
  .category-svg-icon-wrap svg {
    width: 24px;
    height: 24px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
