/* ============================================================
   SML Collections — White E-Commerce Theme
   Logo colors: Green #1b6b1b · Orange #e05a1e
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800&display=swap');

/* ---- Variables ---- */
:root {
  --clr-bg:         #ffffff;
  --clr-bg-alt:     #f5f7f5;
  --clr-surface:    #ffffff;
  --clr-surface-2:  #f8faf8;
  --clr-border:     #e2e8e2;
  --clr-border-l:   #edf0ed;

  --clr-primary:    #1b6b1b;
  --clr-primary-d:  #145214;
  --clr-primary-l:  #e8f5e8;
  --clr-orange:     #e05a1e;
  --clr-orange-l:   #fff3ed;

  --clr-text:       #111827;
  --clr-text-2:     #374151;
  --clr-muted:      #6b7280;
  --clr-muted-l:    #9ca3af;

  --clr-success:    #16a34a;
  --clr-error:      #dc2626;
  --clr-warn:       #d97706;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --header-h:  68px;
  --container: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: -0.03em;
}
.logo-text span { color: var(--clr-orange); }

/* Search */
.search-wrap { flex: 1; min-width: 0; max-width: 500px; margin: 0 8px; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--clr-bg-alt);
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(27,107,27,.1);
}
.search-form svg { margin: 0 10px; color: var(--clr-muted); flex-shrink: 0; }
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--clr-text);
  outline: none;
}
.search-form input::placeholder { color: var(--clr-muted-l); }
.search-form button {
  padding: 10px 16px;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 6px 6px 0;
  transition: background .2s;
  white-space: nowrap;
}
.search-form button:hover { background: var(--clr-primary-d); }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-2);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--clr-primary); background: var(--clr-primary-l); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--clr-text-2);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--clr-bg-alt); color: var(--clr-primary); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px;
  height: 17px;
  background: var(--clr-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.hamburger:hover { background: var(--clr-bg-alt); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; }
.mobile-menu-inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--clr-border);
  padding: 16px;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.mobile-menu.open .mobile-menu-inner { transform: translateY(0); }
.mobile-menu-search { margin-bottom: 12px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border-l);
  transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: var(--clr-primary-l); color: var(--clr-primary); }
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO — Dual image responsive
   Desktop: text LEFT + pc-ver-hero.png RIGHT (split)
   Mobile: mobile-hero.png full-width banner TOP + text below
   ============================================================ */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

/* ---- Mobile hero image (full-width, shown only on mobile) ---- */
.hero-mobile-img {
  display: none; /* hidden on desktop */
  width: 100%;
  line-height: 0;
}
.hero-mobile-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 280px;
  object-position: center top;
}

/* ---- Desktop split inner ---- */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 480px;
  gap: 0;
}

/* ---- Left text column ---- */
.hero-content {
  padding: 56px 48px 56px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ---- Right image column ---- */
.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}
.hero-pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ---- Hero text elements ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.18;
  margin: 0;
}
.hero-content h1 span { color: var(--clr-primary); }
.hero-content > p {
  font-size: 0.97rem;
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero  { padding: 13px 26px; font-size: 0.92rem; }

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
  width: 100%;
}
.hero-stat { text-align: left; }
.hero-stat strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--clr-primary); }
.hero-stat span   { font-size: 0.75rem; color: var(--clr-muted); }


/* ============================================================
   TRUST / FEATURES STRIP
   ============================================================ */
.features-strip {
  background: var(--clr-bg-alt);
  border-bottom: 1px solid var(--clr-border);
  padding: 0;
}
.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--clr-border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--clr-text); }
.feature-text span   { font-size: 0.75rem; color: var(--clr-muted); }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-tag {
  display: inline-block;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.section-header p { font-size: 0.92rem; color: var(--clr-muted); }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface-2);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-align: center;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--clr-primary); }
.category-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.category-card span {
  display: block;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--clr-primary); }

.product-card-img {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--clr-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-badge.new { background: var(--clr-primary); }

.product-card-body { padding: 12px 12px 8px; flex: 1; }
.product-card-body h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.product-card-body h3 a { color: inherit; }
.product-card-body h3 a:hover { color: var(--clr-primary); }

.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.price-offer {
  font-size: 1rem;
  font-weight: 800;
  color: var(--clr-primary);
}
.price-original {
  font-size: 0.8rem;
  color: var(--clr-muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--clr-orange);
  padding: 1px 6px;
  border-radius: 3px;
}

.product-card-footer { padding: 8px 12px 12px; }
.add-to-cart-btn {
  width: 100%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .1s;
  letter-spacing: 0.02em;
}
.add-to-cart-btn:hover:not(:disabled) { background: var(--clr-primary-d); }
.add-to-cart-btn:active:not(:disabled) { transform: scale(.97); }
.add-to-cart-btn.added { background: var(--clr-success); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .1s;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.btn-primary:hover { background: var(--clr-primary-d); border-color: var(--clr-primary-d); }

.btn-orange {
  background: var(--clr-orange);
  color: #fff;
  border-color: var(--clr-orange);
}
.btn-orange:hover { background: #c04d18; border-color: #c04d18; }

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline:hover { background: var(--clr-primary-l); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--clr-border);
}
.sort-select {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.sort-select:focus { border-color: var(--clr-primary); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-muted);
  background: #fff;
  transition: all .2s;
}
.chip:hover, .chip.active {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-l);
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
  background: #fff;
  transition: all .2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery {}
.gallery-main {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-bg-alt);
  margin-bottom: 10px;
}
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 70px; height: 70px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
  background: var(--clr-bg-alt);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--clr-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-category-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-info h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 12px;
  line-height: 1.25;
}
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}
.product-price-block .price-offer { font-size: 1.6rem; }
.stock-info { font-size: 0.85rem; margin-bottom: 16px; font-weight: 600; }
.in-stock  { color: var(--clr-success); }
.out-stock { color: var(--clr-error); }

.qty-add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.qty-stepper button {
  width: 36px; height: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  background: var(--clr-bg-alt);
  transition: background .15s;
}
.qty-stepper button:hover { background: var(--clr-primary-l); color: var(--clr-primary); }
.qty-stepper input {
  width: 52px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-text);
  background: #fff;
  -moz-appearance: textfield;
  outline: none;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-description {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
}
.product-description h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--clr-text); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-orange { background: #fff3ed; color: var(--clr-orange); }
.badge-red    { background: #fee2e2; color: var(--clr-error); }
.badge-gold   { background: #fef9c3; color: #854d0e; }

/* ============================================================
   CART PAGE
   ============================================================ */
@media (min-width: 768px) {
  .cart-summary-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
}
.cart-table-wrap { overflow-x: auto; border: 1.5px solid var(--clr-border); border-radius: var(--radius-md); background: #fff; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clr-muted);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
}
.cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--clr-border-l);
  vertical-align: middle;
  font-size: 0.88rem;
  color: var(--clr-text);
}
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-product-info { display: flex; align-items: center; gap: 12px; }
.cart-product-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--clr-border); flex-shrink: 0; }
.cart-product-name { font-weight: 600; font-size: 0.88rem; color: var(--clr-text); }
.cart-product-name:hover { color: var(--clr-primary); }
.remove-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-error);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

/* Cart / Checkout Summary */
.cart-summary {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-summary h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--clr-text-2);
}
.summary-row.total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--clr-border);
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-text);
}
.free-ship { color: var(--clr-success); font-weight: 700; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.checkout-section {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.checkout-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--clr-text);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}
.address-radio {
  display: block;
  padding: 12px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.address-radio:has(input:checked) { border-color: var(--clr-primary); background: var(--clr-primary-l); }
.address-radio input { margin-right: 8px; accent-color: var(--clr-primary); }
.address-radio strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.address-radio small { display: block; font-size: 0.8rem; color: var(--clr-muted); margin-top: 4px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 440px;
}
.form-card h1 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; color: var(--clr-text); }
.form-card .sub { font-size: 0.88rem; color: var(--clr-muted); margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--clr-text-2); }
.form-input {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--clr-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  outline: none;
}
.form-input:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(27,107,27,.1); }
.form-input::placeholder { color: var(--clr-muted-l); }
.form-input:disabled { background: var(--clr-bg-alt); color: var(--clr-muted); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row .span2 { grid-column: span 2; }
.form-link { color: var(--clr-primary); font-weight: 600; }
.form-link:hover { text-decoration: underline; }
.divider { border: none; border-top: 1px solid var(--clr-border); margin: 20px 0; }

/* ============================================================
   ALERTS & TOASTS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: var(--clr-error); border: 1px solid #fecaca; }

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp .25s ease;
  max-width: 320px;
}
.toast.success { border-left: 4px solid var(--clr-success); }
.toast.error   { border-left: 4px solid var(--clr-error); }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   ORDER SUCCESS
   ============================================================ */
.success-wrap {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 20px;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--clr-success);
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: popIn .4s ease;
}
@keyframes popIn { from { transform:scale(.5); opacity:0; } to { transform:scale(1); opacity:1; } }
.success-wrap h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.success-wrap p { color: var(--clr-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ACCOUNT / ORDERS
   ============================================================ */
.account-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.account-sidebar {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 8px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.account-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-2);
  transition: background .2s, color .2s;
  margin-bottom: 2px;
}
.account-sidebar a:hover, .account-sidebar a.active {
  background: var(--clr-primary-l);
  color: var(--clr-primary);
}
.account-content {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.account-content h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-border);
}

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.orders-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-muted);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
}
.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--clr-border-l);
  vertical-align: middle;
}
.order-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}
.status-pending    { background: #fef9c3; color: #854d0e; }
.status-confirmed  { background: #dcfce7; color: #15803d; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-shipped    { background: #e0e7ff; color: #4f46e5; }
.status-delivered  { background: #dcfce7; color: #15803d; }
.status-cancelled  { background: #fee2e2; color: var(--clr-error); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.9);
  padding: 48px 0 0;
  margin-top: 64px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand .logo img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
  max-width: 320px;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.footer-contact a:hover { color: #fff; }
.razorpay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.9); font-weight: 700; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 16px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 1000;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--clr-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.35; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--clr-text); margin-bottom: 6px; }
.empty-state p  { font-size: 0.88rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--clr-border);
}
.contact-card:last-of-type { border-bottom: none; }
.contact-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.contact-card span, .contact-card a { font-size: 0.85rem; color: var(--clr-muted); }
.contact-card a:hover { color: var(--clr-primary); }
.contact-info { padding: 24px; background: #fff; border: 1.5px solid var(--clr-border); border-radius: var(--radius-md); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--clr-primary);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.admin-sidebar .logo { color: #fff; padding: 20px 16px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-nav { padding: 8px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 2px;
  transition: background .2s, color .2s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.admin-main { background: var(--clr-bg-alt); padding: 0; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 800; }
.admin-main > *:not(.admin-topbar) { padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.stat-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--clr-muted); margin-bottom: 8px; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--clr-primary); }
.table-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.table-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-bg-alt);
}
.table-card-header h3 { font-size: 0.9rem; font-weight: 800; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-muted);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--clr-border-l);
  vertical-align: middle;
  color: var(--clr-text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--clr-bg-alt); }

/* ============================================================
   INVOICE PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .whatsapp-float, .btn, #toast-container { display: none !important; }
  .invoice-print { padding: 0 !important; }
  body { background: #fff; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--clr-muted); }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }

  /* Hero — collapse to stacked at tablet */
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image-wrap { display: none; }       /* hide PC image at tablet */
  .hero-mobile-img { display: block; }      /* show mobile image at tablet */
  .hero-content {
    padding: 32px 0 28px;
    align-items: center;
    text-align: center;
  }
  .hero-content > p { max-width: 520px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; border-top: 1px solid var(--clr-border); padding-top: 20px; }
  .hero-stat { text-align: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Header — mobile */
  .main-nav  { display: none; }
  .search-wrap { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero — mobile */
  .hero-mobile-img { display: block; }    /* show mobile banner */
  .hero-image-wrap { display: none; }     /* hide pc image */
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 24px 0 20px; align-items: center; text-align: center; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content > p { font-size: 0.87rem; max-width: 100%; }
  .hero-cta { justify-content: center; }
  .btn-hero { padding: 11px 20px; font-size: 0.85rem; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-stat { text-align: center; }

  /* Trust strip */
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-item { padding: 14px 12px; }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-body h3 { font-size: 0.82rem; }
  .price-offer { font-size: 0.92rem; }
  .add-to-cart-btn { font-size: 0.78rem; padding: 8px 8px; }

  /* Categories */
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Cart */
  .cart-table td:nth-child(3),
  .cart-table th:nth-child(3) { display: none; }

  /* Checkout */
  .checkout-grid { grid-template-columns: 1fr; }

  /* Account */
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Forms */
  .form-card { padding: 24px 16px; }
  .form-row  { grid-template-columns: 1fr; }
  .form-row .span2 { grid-column: span 1; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Cart layout */
  .cart-summary-wrapper { display: block; }
  .cart-summary { margin-top: 16px; position: static; }

  .section { padding: 32px 0; }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--clr-border); }
  .feature-item:last-child { border-bottom: none; }
}
