/* ==============================================================================
   Essential Gift NY - Core Design System & Stylesheet
   Theme: Luxury Botanical Apothecary & Organic Remedies (Cream, Sage-Dark, Gold, Ink)
============================================================================== */

:root {
  --cream: #F8F9FA;
  --cream-2: #EEF4F0;
  --cream-3: #D9E8DF;
  --ink: #11261B;
  --ink-soft: #3B5546;
  --ink-light: #6F8D7C;
  --sage: #1E7E48;
  --sage-dark: #0D3E24;
  --gold: #D97706;
  --gold-light: #F59E0B;
  --line: #E2ECE5;
  --white: #FFFFFF;
  --success: #1E7E48;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(13, 62, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(13, 62, 36, 0.08);
  --shadow-lg: 0 14px 34px rgba(13, 62, 36, 0.12);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

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

input, select, textarea {
  font-family: inherit;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==============================================================================
   Flash Alerts
============================================================================== */
.flash-alert {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
}
.flash-alert.success {
  background: #EAF5EA;
  color: var(--success);
  border-color: #C8E6C9;
}
.flash-alert.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #F5C6CB;
}
.flash-alert.info {
  background: var(--cream-2);
  color: var(--sage-dark);
  border-color: var(--line);
}
.flash-alert.warning {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}
.flash-close {
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
}
.flash-close:hover { opacity: 1; }

/* ==============================================================================
   Buttons & Badges
============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-primary:hover {
  background: var(--sage-dark);
  color: var(--white);
  border-color: var(--sage-dark);
}
.btn-secondary {
  background: var(--white);
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}
.btn-secondary:hover {
  background: var(--sage-dark);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #B45309;
  color: var(--white);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 12.5px;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* ==============================================================================
   Top Utility Bar
============================================================================== */
.topbar {
  background: var(--sage-dark);
  color: #E2ECE7;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.topbar-left svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #86EFAC;
}
.topbar-center {
  flex: 1;
  text-align: center;
}
.topbar-center a, .topbar-right a {
  color: #E2ECE7;
  font-size: 12px;
  text-decoration: none;
}
.topbar-center a:hover, .topbar-right a:hover {
  color: var(--gold-light);
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

/* ==============================================================================
   Header & Navigation
============================================================================== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(13, 62, 36, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-brand-img {
  height: 56px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .logo-brand-img {
    height: 44px;
    max-width: 210px;
  }
}
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--sage-dark);
}
.logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-top: 2px;
}

.search-bar {
  flex: 1;
  max-width: 480px;
  min-height: 46px;
  display: flex;
  align-items: center;
  background: #F8FAF9;
  border: 1.5px solid #D6E4DB;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  gap: 12px;
  margin: 0 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-bar:focus-within {
  background: var(--white);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(30, 126, 72, 0.12);
}
.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  width: 100%;
  color: var(--ink);
}
.search-bar input::placeholder { color: #8A9E92; }
.search-bar svg { width: 17px; height: 17px; color: var(--ink-soft); flex-shrink: 0; }
.search-bar button { color: var(--ink-soft); display: flex; align-items: center; }
.search-bar button:hover { color: var(--sage); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-actions .icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  font-family: inherit;
}
.header-actions .icon-btn:hover,
.header-actions .icon-btn.active {
  color: var(--sage-dark);
}
.header-actions .icon-btn:active {
  transform: scale(0.95);
}
.header-actions svg { width: 20px; height: 20px; }
.badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--gold);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================================================
   Expandable Header Live Search
============================================================================== */
.header-search-expand {
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(13, 62, 36, 0.08);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.25s ease, visibility 0.3s ease;
  padding: 0 24px;
}
.header-search-expand.open {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  padding: 16px 24px 20px;
}
.search-expand-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.expand-search-form {
  position: relative;
  width: 100%;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #F8FAF9;
  border: 1.5px solid #D6E4DB;
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 18px;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-input-wrapper:focus-within {
  background: var(--white);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(30, 126, 72, 0.12);
}
.search-lens-icon {
  color: var(--sage-dark);
  flex-shrink: 0;
}
.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  padding: 6px 0;
}
.search-input-wrapper input::placeholder {
  color: #8A9E92;
}
.search-clear-btn {
  background: #E5E7EB;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #4B5563;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.search-clear-btn:hover {
  background: #D1D5DB;
  color: #111827;
}
.search-submit-btn {
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.search-submit-btn:hover {
  background: var(--sage-dark);
}
.search-close-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.search-close-btn:hover {
  background: var(--cream-2);
  color: var(--ink);
}

/* Instant Live Search Results Card */
.live-search-results {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-results-list {
  padding: 8px 0;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item:focus {
  background: #F4F7F5;
}
.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: #F9FAFB;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.search-result-title mark {
  background: #FEF3C7;
  color: #92400E;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
  flex-wrap: wrap;
}
.search-result-meta .cat-badge {
  background: var(--cream-2);
  color: var(--sage-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.search-result-meta .id-badge {
  color: #6B7280;
  font-weight: 600;
}
.search-result-meta .stock-badge-sm {
  font-weight: 600;
}
.search-result-meta .stock-badge-sm.in { color: #16A34A; }
.search-result-meta .stock-badge-sm.out { color: #DC2626; }
.search-result-price {
  text-align: right;
  flex-shrink: 0;
}
.search-result-price .current-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-serif);
}
.search-result-price .old-price {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: line-through;
  display: block;
}
.search-results-footer {
  padding: 10px 16px;
  background: #FAFBFB;
  border-top: 1px solid var(--line);
  text-align: center;
}
.search-results-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.search-results-footer a:hover {
  text-decoration: underline;
}
.search-no-results {
  padding: 24px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.search-loading-state {
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #E5E7EB;
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================================================================
   Off-Canvas Hamburger Drawer & Backdrop
============================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 18, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.side-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 88vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1000;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.side-menu-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #FCFDFD;
}
.drawer-logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.drawer-close-btn {
  background: #F3F4F6;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.drawer-close-btn:hover {
  background: #E5E7EB;
  transform: scale(1.05);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.drawer-account-box {
  background: #F8FAF9;
  border: 1px solid #E2ECE5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2ECE5;
}
.drawer-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-user-label {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.drawer-user-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.drawer-user-email {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.2;
  margin-top: 2px;
}
.drawer-user-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.drawer-link svg {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.drawer-link:hover {
  background: #FFFFFF;
  color: var(--sage-dark);
}
.drawer-link.admin-highlight {
  color: #065F46;
  font-weight: 600;
  background: #D1FAE5;
}
.drawer-link.admin-highlight svg {
  color: #059669;
}
.drawer-link.logout-link {
  color: #DC2626;
  margin-top: 4px;
  border-top: 1px dashed #E5E7EB;
  padding-top: 8px;
}
.drawer-link.logout-link svg {
  color: #DC2626;
}
.drawer-guest-box {
  padding: 2px 0;
}
.drawer-section {
  margin-bottom: 20px;
}
.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9CA3AF;
  margin-bottom: 8px;
  padding-left: 8px;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
}
.drawer-nav-item svg {
  width: 17px;
  height: 17px;
  color: var(--sage);
  flex-shrink: 0;
}
.drawer-nav-icon {
  font-size: 15px;
  width: 17px;
  text-align: center;
  flex-shrink: 0;
}
.drawer-nav-item:hover {
  background: var(--cream-2);
  color: var(--sage-dark);
}
.drawer-pill-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}
.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #F9FAFB;
}

.menu-wrap { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.18s ease;
  z-index: 60;
}
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.dropdown-menu a svg { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }
.dropdown-menu a:hover { background: var(--cream-2); color: var(--sage-dark); }
.dropdown-menu a.logout { color: var(--danger); }
.dropdown-menu a.logout svg { color: var(--danger); }
.dropdown-menu a.logout:hover { background: var(--danger-bg); }
.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

nav.primary-nav {
  border-top: 1px solid var(--line);
  background: #FCFDFD;
}
nav.primary-nav .wrap {
  display: flex;
  gap: 28px;
  padding: 12px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.primary-nav .wrap::-webkit-scrollbar { display: none; }
nav.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
nav.primary-nav a:hover { color: var(--sage); }
nav.primary-nav a.active {
  color: var(--sage);
  font-weight: 700;
}
nav.primary-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--sage);
  border-radius: 2px;
}

.mobile-search {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  margin: 0 28px 14px;
}
.mobile-search svg { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }
.mobile-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}

/* ==============================================================================
   Breadcrumb & Page Head
============================================================================== */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.breadcrumb a:hover { color: var(--sage-dark); }
.breadcrumb span { margin: 0 6px; color: #C9C1AC; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.page-head {
  padding: 18px 0 8px;
}
.page-head h1 { font-size: 32px; margin-bottom: 6px; }
.page-head p { color: var(--ink-soft); font-size: 14px; max-width: 600px; }

/* ==============================================================================
   Hero Slider
============================================================================== */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16/6.8;
  min-height: 480px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.slide.slide-1 {
  background-image: linear-gradient(90deg, rgba(248, 249, 250, 0.96) 0%, rgba(248, 249, 250, 0.78) 46%, rgba(248, 249, 250, 0.15) 100%), url('../images/hero-slide-1.jpg');
}
.slide.slide-2 {
  background-image: linear-gradient(90deg, rgba(248, 249, 250, 0.96) 0%, rgba(248, 249, 250, 0.78) 46%, rgba(248, 249, 250, 0.15) 100%), url('../images/hero-slide-2.jpg');
}
.slide.slide-3 {
  background-image: linear-gradient(90deg, rgba(248, 249, 250, 0.96) 0%, rgba(248, 249, 250, 0.78) 46%, rgba(248, 249, 250, 0.15) 100%), url('../images/hero-slide-3.jpg');
}
.slide .ring { display: none; }
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}
.slide-content .inner {
  max-width: 560px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: #E8F5ED;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #C4E2CF;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(13, 62, 36, 0.04);
}
.hero-eyebrow svg { width: 14px; height: 14px; color: var(--sage); }
.slide h1 {
  font-size: 38px;
  line-height: 1.16;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
}
.slide p.sub {
  font-size: 15.5px;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { box-shadow: 0 4px 14px rgba(13, 62, 36, 0.1); }
.hero-ctas .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-color: var(--line);
  color: var(--sage-dark);
  font-weight: 600;
}
.hero-ctas .btn-secondary:hover {
  background: #ffffff;
  color: var(--sage);
  border-color: var(--sage);
}

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  color: var(--ink);
  transition: all 0.2s ease;
}
.slider-arrow:hover { background: var(--white); color: var(--sage); transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-arrow svg { width: 18px; height: 18px; }

.slider-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.slider-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(17, 38, 27, 0.22);
  border: none;
  padding: 0;
  transition: all 0.2s ease;
}
.slider-dots button.active {
  background: var(--sage);
  width: 22px;
  border-radius: 4px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0 16px 0;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.hero-trust svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; }

/* ==============================================================================
   Sections & Cards
============================================================================== */
.section { padding: 24px 0; }
.section-alt { background: var(--cream-2); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}
.section-head h2 { font-size: 22px; line-height: 1.25; }
.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}
.view-all:hover { color: var(--sage-dark); }
.view-all svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Categories Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Trust Benefits Strip */
.trust-strip {
  padding: 24px 0;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 18px 0 20px;
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-item .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #C4E2CF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage);
  box-shadow: 0 2px 8px rgba(13, 62, 36, 0.05);
}
.trust-item .ic svg {
  width: 20px;
  height: 20px;
}
.trust-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px 0;
}
.trust-item p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: all 0.25s ease;
  display: block;
}
.cat-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13, 62, 36, 0.08);
}
.cat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: #E8F5ED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  transition: all 0.25s ease;
}
.cat-icon svg { width: 22px; height: 22px; color: inherit; }
.cat-card:hover .cat-icon {
  background: var(--sage);
  color: var(--white);
  transform: scale(1.08);
}
.cat-card h3 { font-size: 15px; font-weight: 600; font-family: var(--font-sans); margin-bottom: 4px; color: var(--ink); transition: color 0.15s ease; }
.cat-card:hover h3 { color: var(--sage-dark); }
.cat-card p { font-size: 12px; color: var(--ink-soft); }

/* ==============================================================================
   Product Cards & Grid
============================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 62, 36, 0.1);
}
.product-thumb {
  aspect-ratio: 1/1;
  background: #F4F8F5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb svg.placeholder-icon { width: 44px; height: 44px; color: #9AB4A4; }
.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sage-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.2px;
}
.product-tag.gold,
.product-tag.tag-bestseller {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}
.product-tag.tag-offer {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #ffffff;
}
.product-tag.tag-new {
  background: linear-gradient(135deg, #1E7E48 0%, #0D3E24 100%);
  color: #ffffff;
}
.product-tag.tag-preorder {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.28);
}
.badge-preorder {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #ffffff;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.preorder-alert-box {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  color: #5B21B6;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
}
.preorder-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EDE9FE;
  color: #6D28D9;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #DDD6FE;
}
.product-tag.danger { background: var(--danger); }
.product-card .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 2;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.product-card .wishlist-btn svg { width: 16px; height: 16px; color: var(--ink); }
.product-card .wishlist-btn.active svg { color: var(--danger); fill: var(--danger); }

.product-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 700;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.product-name a { color: inherit; transition: color 0.15s ease; }
.product-name a:hover { color: var(--sage); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.product-rating svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.product-rating svg.star-filled {
  color: #C59B27 !important;
  fill: #C59B27 !important;
}
.product-rating svg.star-empty,
.product-rating.no-reviews svg {
  color: #D8D2C4 !important;
  fill: #D8D2C4 !important;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.product-price {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--sage-dark);
}
.product-price .old {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #9AB4A4;
  text-decoration: line-through;
  font-weight: 500;
}
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.add-btn:hover {
  background: var(--sage-dark);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(13, 62, 36, 0.25);
}
.add-btn svg { width: 16px; height: 16px; }

/* ==============================================================================
   Shop Page & Sidebar Filters
============================================================================== */
.page-head {
  padding: 10px 0 0;
  margin-bottom: 12px;
}
.page-head h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.listing { padding: 8px 0 64px; }
.listing-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
  align-items: start;
}
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.filters h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
}
.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 7px 0;
  cursor: pointer;
  user-select: none;
}
.filter-option:hover { color: var(--sage-dark); }
.filter-option .box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.filter-option.checked .box {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}
.filter-option.checked .box svg { width: 10px; height: 10px; color: var(--white); }
.filter-option-inner { display: flex; align-items: center; }
.filter-option .count { color: #A5A196; font-size: 12px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.price-range input:focus { border-color: var(--sage); }
.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  cursor: pointer;
}
.rating-row svg { width: 14px; height: 14px; color: var(--gold); }
.rating-row span { font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
.clear-filters {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sage-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px;
}
.clear-filters:hover { background: var(--cream-2); }

/* Shop Page Top Action Bar (Sort and Filter placed close together) */
.shop-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.shop-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1.5px 4px rgba(13, 62, 36, 0.04);
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
  font-family: inherit;
}

.shop-action-btn:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  box-shadow: 0 3px 8px rgba(13, 62, 36, 0.08);
}

.shop-action-btn svg {
  flex-shrink: 0;
  color: var(--sage);
  transition: color 0.2s ease;
}

.shop-action-btn:hover svg {
  color: var(--sage-dark);
}

/* Sort dropdown inside matching button */
.sort-action-box {
  position: relative;
  cursor: pointer;
}

.sort-action-box select {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding-right: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sort-action-box .sort-chevron {
  pointer-events: none;
  margin-left: -6px;
  color: var(--ink-soft);
  width: 12px;
  height: 12px;
}

/* Filter Products button */
.filter-action-btn {
  margin: 0;
}

.filter-action-btn .filter-badge {
  background: var(--sage-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  line-height: 1;
  margin-left: 2px;
}

/* Row 3: Result Count */
.result-count-bar {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.result-count-bar strong {
  color: var(--ink);
  font-weight: 700;
}

/* Legacy Toolbar (fallback) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.result-count { font-size: 13.5px; color: var(--ink-soft); }
.result-count strong { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 14px; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-2);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 12px;
  font-size: 12.5px;
  color: var(--ink);
}
.chip button {
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.chip svg { width: 9px; height: 9px; }

/* Mobile filter toggle */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}
.mobile-filter-btn svg { width: 15px; height: 15px; }

.filter-drawer-header {
  display: none;
}
.filter-backdrop {
  display: none;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.pagination a, .pagination button, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination a:hover, .pagination button:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}
.pagination .active {
  background: var(--sage-dark) !important;
  border-color: var(--sage-dark) !important;
  color: var(--white) !important;
}
.pagination .dots { border: none; background: none; }

/* ==============================================================================
   Single Product Details Page
============================================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 16px;
  align-items: start;
}
.product-gallery {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 96px;
}
/* Product Gallery & Interactive Zoom */
.product-main-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.product-main-img {
  aspect-ratio: 1/1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: crosshair;
  touch-action: pan-y;
  background: #FFFFFF;
}
.product-main-img img.zoom-target-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  pointer-events: none;
  transform-origin: center center;
}

/* Thumbnail Gallery Strip */
.product-thumbs-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  margin-top: 4px;
  margin-bottom: 0;
  scrollbar-width: thin;
}
.product-thumbs-strip::-webkit-scrollbar {
  height: 4px;
}
.product-thumbs-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.product-thumb-item {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--cream-2);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px;
  transition: all 0.2s ease;
}
.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.product-thumb-item:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.product-thumb-item.active {
  border-color: var(--sage-dark);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}
.product-info-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-info-box .category-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}
.product-info-box h1 {
  font-size: 28px;
  line-height: 1.2;
}
.product-info-box .price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.product-info-box .price-wrap .old-price {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #B5AC9A;
  text-decoration: line-through;
}
.product-info-box .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}
.product-info-box .stock-badge.out { color: var(--danger); }
.product-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  overflow: hidden;
}
.qty-stepper button {
  width: 38px;
  height: 38px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  transition: opacity 0.15s ease, background 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.qty-stepper button:hover { background: var(--cream-2); color: var(--ink); }
.qty-stepper input {
  width: 44px;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-stepper input[type=number] {
  -moz-appearance: textfield;
}
.btn-wishlist-detail {
  position: static !important;
  width: auto !important;
  height: 48px !important;
  border-radius: var(--radius-pill) !important;
  border: 1.5px solid #E2DCD0 !important;
  background: #FFFDF9 !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.btn-wishlist-detail svg {
  width: 18px !important;
  height: 18px !important;
  color: #DC2626 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}
.btn-wishlist-detail:hover {
  background: #FEF2F2 !important;
  border-color: #FCA5A5 !important;
  color: #DC2626 !important;
  transform: translateY(-1px) !important;
}
.btn-wishlist-detail:hover svg {
  transform: scale(1.15) !important;
}
.btn-wishlist-detail.active {
  background: #FEE2E2 !important;
  border-color: #F87171 !important;
  color: #DC2626 !important;
}
.btn-wishlist-detail.active svg {
  fill: #DC2626 !important;
}

.details-tab-box {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.tab-header {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab-btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 12px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab-btn.active {
  color: var(--sage-dark);
  border-color: var(--sage-dark);
}

/* ==============================================================================
   Cart & Checkout Pages
============================================================================== */
.cart-grid, .checkout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 36px;
  margin-top: 28px;
  align-items: start;
}
.cart-table-card, .checkout-form-card, .summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr auto 110px 36px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-qty-input {
  width: 44px;
  height: 100%;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--ink);
  -moz-appearance: textfield;
  padding: 0;
  box-sizing: border-box;
}
.cart-qty-input:focus {
  outline: none;
  background: rgba(13, 62, 36, 0.05);
  border-radius: 4px;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.volume-tier-card.tier-disabled {
  opacity: 0.55 !important;
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  cursor: not-allowed !important;
}
.volume-tier-card.tier-disabled:hover {
  border-color: #E2E8F0 !important;
  box-shadow: none !important;
}
.cart-item-row:first-child { padding-top: 0; }
.cart-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item-thumb {
  width: 80px;
  height: 80px;
  background: var(--cream-2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: 14.5px; }
.cart-item-price { font-family: var(--font-serif); font-weight: 600; font-size: 15px; }
.remove-btn { color: var(--danger); font-size: 12px; font-weight: 500; }
.remove-btn:hover { text-decoration: underline; }

.summary-card h3 {
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.summary-line.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(150, 114, 58, 0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Payment Selector Box */
.payment-option-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.25s ease;
}
.payment-option-card:hover {
  border-color: var(--sage);
  background: #FCFAF6;
}
.payment-option-card.selected {
  border-color: var(--sage-dark);
  background: var(--cream);
  box-shadow: 0 4px 14px rgba(92, 68, 37, 0.08);
}
.payment-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.payment-logo-img {
  height: 28px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}
.send-money-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: none;
}
.payment-option-card.selected .send-money-details { display: block; }
.send-money-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.6;
}
.send-money-box ol {
  padding-left: 20px;
  margin: 8px 0;
}
.send-money-box li {
  margin-bottom: 6px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  color: var(--ink);
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.2s;
}
.copy-btn:hover {
  background: var(--sage-dark);
  color: #fff;
  border-color: var(--sage-dark);
}

/* ==============================================================================
   Order Success & Auth Card
============================================================================== */
.auth-box {
  max-width: 440px;
  margin: 40px auto 60px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.auth-box h2 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}
.auth-box p.subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 13.5px;
}

.success-box {
  max-width: 640px;
  margin: 40px auto 60px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-icon {
  width: 64px;
  height: 64px;
  background: #EAF5EA;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.success-icon svg { width: 32px; height: 32px; }

/* ==============================================================================
   Trust Strip & Promo & Newsletter
============================================================================== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 28px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ic {
  width: 38px; height: 38px;
  background: var(--cream-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item svg { width: 18px; height: 18px; color: var(--sage-dark); }
.trust-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.trust-item p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }

.promo {
  background: linear-gradient(135deg, #092B19 0%, #0D3E24 45%, #1B6B40 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  margin: 20px auto;
  padding: 28px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 10px 28px rgba(9, 43, 25, 0.16);
}
.promo h3 { color: #FFFFFF; font-size: 21px; font-weight: 600; margin-bottom: 5px; line-height: 1.25; }
.promo p { color: #D1E5DA; font-size: 13.5px; line-height: 1.45; max-width: 540px; }
.promo .btn-secondary {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0D3E24;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.promo .btn-secondary:hover {
  background: #E8F5ED;
  color: #0D3E24;
  border-color: #E8F5ED;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.newsletter { text-align: center; padding: 56px 0; }
.newsletter h2 { font-size: 24px; margin-bottom: 10px; color: var(--ink); }
.newsletter p { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.newsletter-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.newsletter-form:focus-within {
  border-color: var(--sage);
}
.newsletter-form input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 10px 14px; font-size: 14px; color: var(--ink);
}
.newsletter-form button {
  background: var(--sage); color: var(--white);
  border: none; border-radius: var(--radius-pill);
  padding: 10px 22px; font-size: 13.5px; font-weight: 600;
  transition: all 0.2s ease;
}
.newsletter-form button:hover { background: var(--sage-dark); }

/* ==============================================================================
   Footer
============================================================================== */
footer {
  background: #082114;
  color: #B9CEC2;
  padding: 34px 0 22px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.footer-logo .logo-mark { width: 44px; height: 44px; font-size: 18px; }
.footer-grid p.desc { font-size: 13px; line-height: 1.55; max-width: 280px; color: #B9CEC2; }
.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #86EFAC; margin-bottom: 12px; font-weight: 700;
}
.footer-col a {
  display: block; font-size: 13.5px; margin-bottom: 8px; color: #C2D6CC;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #FFFFFF; }

/* Footer Book Pages & Interactive Dropdown Accordions */
.footer-book-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-accordion {
  display: flex;
  flex-direction: column;
}
.footer-accordion-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86EFAC;
  transition: color 0.15s ease;
}
.footer-accordion-btn:hover {
  color: #FFFFFF;
}
.footer-chevron {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.footer-col-links {
  display: none;
  animation: footerFadeIn 0.2s ease-out;
}
.footer-col.footer-accordion.open .footer-col-links {
  display: block;
}
.footer-col.footer-accordion.open .footer-chevron {
  transform: rotate(180deg);
}

/* FDA Card Styles */
.footer-fda-card {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3.5px solid #F59E0B;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.footer-fda-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.footer-fda-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  color: #FBBF24;
  font-family: inherit;
  transition: color 0.15s ease;
}
.footer-fda-toggle:hover {
  color: #FDE047;
}
.footer-fda-toggle:hover .fda-toggle-hint {
  color: #FFFFFF;
}
.fda-chevron {
  transition: transform 0.25s ease;
}
.footer-fda-content {
  animation: footerFadeIn 0.2s ease-out;
}

@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; font-size: 12px; color: #7A9688; flex-wrap: wrap; gap: 10px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials svg { width: 16px; height: 16px; }
.footer-socials a:hover { color: #86EFAC; }

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==============================================================================
   Responsive Styles
============================================================================== */
@media (max-width: 980px) {
  .search-bar { display: none !important; }
  .mobile-search { 
    display: flex !important; 
    align-items: center !important;
    gap: 12px !important;
    background: var(--white) !important;
    border: 1.5px solid var(--line) !important;
    border-radius: var(--radius-pill) !important;
    padding: 11px 18px !important;
    min-height: 46px !important;
    margin: 8px 18px 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }
  .listing-grid { grid-template-columns: 1fr; }
  .filters {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: var(--white) !important;
    z-index: 10005 !important;
    padding: 20px 18px 36px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.28) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .filters.open {
    transform: translateX(0) !important;
  }
  .filter-drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--line);
  }
  .filter-drawer-close {
    background: var(--cream-2);
    border: 1px solid var(--line);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.15s ease;
  }
  .filter-drawer-close:active {
    background: var(--cream);
    transform: scale(0.95);
  }
  .filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 10004;
  }
  .filter-backdrop.active {
    display: block !important;
  }
  .mobile-filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
  }
  .product-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 14px !important;
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .product-detail-grid { 
    grid-template-columns: 1fr !important; 
    gap: 24px !important; 
    margin-top: 12px !important; 
  }
  .product-gallery { 
    position: static !important; 
    padding: 16px !important; 
  }
  .product-main-img {
    aspect-ratio: 1/1 !important;
    max-height: 420px !important;
    cursor: zoom-in !important;
    touch-action: pan-y !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .product-main-img img.zoom-target-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    pointer-events: none !important;
    transition: transform 0.08s ease-out;
  }
  .promo { flex-direction: column; text-align: center; padding: 24px 20px; margin: 16px auto; gap: 14px; }
  .promo h3 { font-size: 18px; margin-bottom: 4px; }
  .promo p { font-size: 13px; line-height: 1.4; }
  .promo .btn-secondary { padding: 9px 20px; font-size: 13px; }
}

@media (max-width: 680px) {
  .topbar {
    padding: 8px 0 !important;
  }
  .topbar-inner {
    padding: 0 14px !important;
  }
  .topbar-left svg { width: 13px !important; height: 13px !important; }
  .topbar-left, .topbar-center a, .topbar-right a { font-size: 11.5px !important; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 14px !important; }
  .header-inner { 
    padding: 12px 14px 6px !important; 
    gap: 10px !important; 
  }
  .logo-img { width: 38px !important; height: 38px !important; }
  .logo-mark { width: 36px !important; height: 36px !important; font-size: 16px !important; }
  .logo-text { font-size: 18px !important; }
  .logo-text span { font-size: 11px !important; }
  
  .header-actions { gap: 11px !important; }
  .header-actions .icon-btn { font-size: 9px !important; gap: 2px !important; }
  .header-actions svg { width: 18px !important; height: 18px !important; }

  .header-search-expand.open {
    padding: 12px 14px 16px !important;
  }
  .search-input-wrapper {
    padding: 5px 8px 5px 12px !important;
    gap: 8px !important;
  }
  .search-input-wrapper input {
    font-size: 13.5px !important;
  }
  .search-submit-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  .search-result-item {
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  .search-result-thumb {
    width: 40px !important;
    height: 40px !important;
  }
  .search-result-title {
    font-size: 13px !important;
  }
  .side-menu-drawer {
    width: 310px !important;
  }

  nav.primary-nav .wrap {
    padding: 10px 14px !important;
    gap: 16px !important;
  }
  .section { padding: 22px 0 !important; }
  .section-head { margin-bottom: 12px !important; }
  .section-head h2 { font-size: 20px !important; }
  .home-featured-sec { padding-top: 24px !important; padding-bottom: 16px !important; }
  .home-categories-sec { padding-top: 16px !important; padding-bottom: 16px !important; }
  .home-cat-showcase-sec { padding-top: 18px !important; padding-bottom: 18px !important; }
  .product-details-section { padding-top: 12px !important; }
  .details-tab-box { margin-top: 24px !important; }
  .related-products-wrap { margin-top: 32px !important; }

  .trust-strip {
    padding: 30px 0 !important;
    margin: 24px 0 32px !important;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .trust-strip .wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px 12px !important;
  }
  .trust-item {
    gap: 10px !important;
  }
  .trust-item .ic {
    width: 38px !important;
    height: 38px !important;
  }
  .trust-item .ic svg {
    width: 18px !important;
    height: 18px !important;
  }
  .trust-item h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }
  .trust-item p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .breadcrumb {
    padding: 10px 14px 2px !important;
    font-size: 11.5px !important;
  }
  .page-head {
    padding: 2px 14px 0 !important;
    margin-bottom: 6px !important;
  }
  .page-head h1 { font-size: 20px !important; margin: 0 !important; line-height: 1.25 !important; }
  .listing { padding: 4px 0 48px !important; }
  .shop-action-bar {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .shop-action-btn {
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
  }
  .shop-action-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .sort-action-box select {
    font-size: 12.5px !important;
    max-width: 120px !important;
  }

  /* 2-Column Mobile Product Cards matching best-seller aesthetics */
  .product-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important; 
  }
  .product-card {
    border-radius: 10px !important;
  }
  .product-thumb {
    aspect-ratio: 1 / 1 !important;
    background: var(--cream-2) !important;
  }
  .product-body {
    padding: 8px 10px 10px !important;
    gap: 3px !important;
  }
  .product-cat {
    font-size: 9.5px !important;
  }
  .product-name {
    font-size: 14px !important;
    line-height: 1.35 !important;
    min-height: 34px !important;
    margin-bottom: 2px !important;
  }
  .product-rating {
    font-size: 11px !important;
    gap: 2px !important;
  }
  .product-rating svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }
  .product-rating svg.star-filled {
    color: #C59B27 !important;
    fill: #C59B27 !important;
  }
  .product-rating svg.star-empty,
  .product-rating.no-reviews svg {
    color: #D8D2C4 !important;
    fill: #D8D2C4 !important;
  }
  .product-foot {
    padding-top: 8px !important;
  }
  .product-price {
    font-size: 14px !important;
  }
  .product-foot .add-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
  }
  .product-foot .add-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  .product-tag {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }
  .product-card .wishlist-btn {
    width: 28px !important;
    height: 28px !important;
    top: 6px !important;
    right: 6px !important;
  }
  .product-card .wishlist-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 20px !important; padding-bottom: 18px !important; }
  footer { padding: 26px 0 18px !important; margin-top: 24px !important; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cart-item-row {
    display: grid !important;
    grid-template-columns: 68px 1fr auto !important;
    grid-template-areas:
      "thumb info remove"
      "thumb stepper price" !important;
    gap: 8px 12px !important;
    align-items: center !important;
    padding: 14px 0 !important;
  }
  .cart-item-thumb {
    grid-area: thumb !important;
    width: 68px !important;
    height: 68px !important;
    align-self: center !important;
  }
  .cart-item-info {
    grid-area: info !important;
    min-width: 0 !important;
    padding-right: 4px !important;
  }
  .cart-item-remove-wrap {
    grid-area: remove !important;
    align-self: start !important;
    text-align: right !important;
  }
  .cart-item-stepper-wrap {
    grid-area: stepper !important;
    padding-top: 2px !important;
    width: auto !important;
  }
  .cart-item-stepper-wrap .qty-stepper {
    width: 122px !important;
    height: 40px !important;
    display: inline-flex !important;
    border-radius: 20px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    box-sizing: border-box !important;
  }
  .cart-item-stepper-wrap .qty-stepper button {
    width: 38px !important;
    height: 40px !important;
    flex: 0 0 38px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }
  .cart-item-stepper-wrap .qty-stepper input {
    width: 46px !important;
    height: 40px !important;
    flex: 0 0 46px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    user-select: text !important;
  }
  .cart-item-price {
    grid-area: price !important;
    text-align: right !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--sage-dark) !important;
    padding-top: 0 !important;
    white-space: nowrap !important;
    align-self: center !important;
  }
  .form-row { grid-template-columns: 1fr; }
  .qr-box { flex-direction: column; text-align: center; }

  .slide { 
    aspect-ratio: auto; 
    min-height: 360px; 
    padding: 30px 0;
  }
  .slide.slide-1, .slide.slide-2, .slide.slide-3 {
    background-image: linear-gradient(180deg, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.65) 60%, rgba(248, 249, 250, 0.15) 100%), url('../images/hero-slide-1.jpg') !important;
  }
  .slide.slide-2 {
    background-image: linear-gradient(180deg, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.65) 60%, rgba(248, 249, 250, 0.15) 100%), url('../images/hero-slide-2.jpg') !important;
  }
  .slide.slide-3 {
    background-image: linear-gradient(180deg, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.65) 60%, rgba(248, 249, 250, 0.15) 100%), url('../images/hero-slide-3.jpg') !important;
  }
  .slide-content { padding: 0 16px; }
  .slide-content .inner { 
    max-width: 100%; 
    padding: 0; 
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .slide h1 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; color: var(--ink); }
  .slide p.sub { font-size: 13px; margin-bottom: 16px; line-height: 1.5; color: var(--ink-soft); }
  .hero-ctas .btn { padding: 9px 16px; font-size: 12.5px; }
  .hero-trust { gap: 10px; padding: 12px 16px 14px 16px !important; }

  .account-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .account-main-card { padding: 20px 16px !important; }
  .account-sidebar-card { padding: 16px !important; }
}

/* Account Page Responsive Styles */
.account-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.account-sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.account-main-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* ==============================================================================
   Horizontal Scrolling Product Rows & 1x4 Compact Category Strip
   (Preserves 100% of .product-card styling with native smooth touch-swipe & clear scroll cues)
============================================================================== */
.product-scroll-wrap {
  position: relative;
  margin: 0 -4px;
}
/* Right Edge Gradient Fade (shows cards continue past screen edge) */
.product-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 22px;
  width: 50px;
  background: linear-gradient(to right, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.95) 100%);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.section-alt .product-scroll-wrap::after {
  background: linear-gradient(to right, rgba(238, 244, 240, 0) 0%, rgba(238, 244, 240, 0.95) 100%);
}

.product-scroll-row {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 18px;
  padding: 6px 4px 14px 4px;
  scrollbar-width: none; /* Hide default bulky scrollbar for modern app look */
  scroll-behavior: smooth;
}
.product-scroll-row::-webkit-scrollbar {
  display: none;
}
.product-scroll-row .product-card {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Animated Swipe Hint Pill */
.swipe-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-dark);
  background: #E2F3E9;
  border: 1px solid #B7DECA;
  padding: 2.5px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(30, 126, 72, 0.1);
  user-select: none;
  animation: swipeNudge 2.2s infinite ease-in-out;
}
.swipe-hint-pill .swipe-hand {
  display: inline-block;
  animation: handWiggle 2.2s infinite ease-in-out;
}
@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); background: #D5EDE0; }
}
@keyframes handWiggle {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* Mini Carousel Progress Bar */
.scroll-progress-track {
  width: 96px;
  height: 4px;
  background: #DCE8E0;
  border-radius: 999px;
  margin: 6px auto 0;
  overflow: hidden;
  position: relative;
}
.scroll-progress-bar {
  width: 34%;
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.08s ease-out;
}

/* Scroll Arrow Controls on Section Header */
.section-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-arrow-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.scroll-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(13, 62, 36, 0.05);
}
.scroll-arrow-btn:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  transform: scale(1.05);
}
.scroll-arrow-btn svg {
  width: 15px;
  height: 15px;
}

/* 1x4 Compact Category Strip */
.cat-strip-1x4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card-compact {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.cat-card-compact:hover {
  border-color: var(--sage);
  background: #F5FAF7;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-card-compact .cat-icon-mini {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #E8F5ED;
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cat-card-compact .cat-icon-mini svg {
  width: 19px;
  height: 19px;
}
.cat-card-compact:hover .cat-icon-mini {
  background: var(--sage);
  color: var(--white);
}
.cat-card-compact .cat-meta {
  min-width: 0;
  flex: 1;
}
.cat-card-compact .cat-meta h3 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card-compact .cat-meta p {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

/* Mobile responsive for scroll rows & 1x4 category */
@media (max-width: 768px) {
  /* Mobile footer collapsible styling: 3 compact clean lines */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .footer-book-pages {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 6px;
  }
  .footer-col.footer-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-accordion-btn {
    padding: 13px 0 !important;
    margin: 0 !important;
    font-size: 12.5px !important;
  }
  .footer-col-links {
    padding: 2px 0 12px 6px;
  }
  .footer-col-links a {
    padding: 5px 0;
    margin-bottom: 4px !important;
    font-size: 13.5px;
  }
  .footer-fda-card {
    margin-top: 18px !important;
  }

  .product-scroll-wrap::after {
    width: 36px;
    bottom: 18px;
  }
  .product-scroll-row {
    gap: 12px;
    padding-bottom: 10px;
  }
  /* Proportional mobile card width with balanced peek */
  .product-scroll-row .product-card {
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }
  .scroll-arrow-group {
    display: none; /* Mobile users swipe naturally via touch */
  }

  .cat-strip-1x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .cat-card-compact {
    flex-direction: column;
    padding: 10px 4px !important;
    gap: 6px !important;
    text-align: center;
    border-radius: 8px;
  }
  .cat-card-compact .cat-icon-mini {
    width: 32px;
    height: 32px;
  }
  .cat-card-compact .cat-icon-mini svg {
    width: 15px;
    height: 15px;
  }
  .cat-card-compact .cat-meta h3 {
    font-size: 10.5px !important;
    font-weight: 600;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cat-card-compact .cat-meta p {
    display: none; /* Hide product count to keep the 1x4 bar super slim */
  }
}




/* ==============================================================================
   Mobile Layout Integrity & Viewport Protection
   ============================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.product-detail-grid {
  max-width: 100%;
  box-sizing: border-box;
}

.product-info-box {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-info-box .price-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 6px 10px !important;
  max-width: 100% !important;
}

.moq-price-row {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 6px 8px !important;
  max-width: 100% !important;
}

.moq-badge-wrap {
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
}

@media (max-width: 600px) {
  .product-detail-grid {
    padding: 0 !important;
    gap: 16px !important;
  }
  .product-info-box h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    word-break: break-word !important;
  }
  .price-formula {
    font-size: 17px !important;
  }
  .price-formula #displayTotalPrice {
    font-size: 20px !important;
  }
  .action-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .action-row .qty-stepper {
    flex: 0 0 110px !important;
    min-width: 95px !important;
    height: 44px !important;
  }
  .action-row .btn-add-cart {
    flex: 1 1 140px !important;
    min-width: 0 !important;
    height: 44px !important;
    font-size: 13.5px !important;
    padding: 0 12px !important;
  }
  .action-row-twin {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .action-row-twin .btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    height: 44px !important;
    font-size: 13px !important;
    padding: 0 8px !important;
  }
}
