/* ============================================================
   EyeWear — Main Stylesheet
   Brand: Forest Obsidian #172D2B | Champagne Gold #D6BD91
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --primary:        #172D2B;
  --primary-light:  #1f3d3b;
  --primary-dark:   #0f1e1d;
  --accent:         #D6BD91;
  --accent-light:   #e8d4a8;
  --accent-dark:    #c4a876;
  --bg:             #F7F3EA;
  --bg-dark:        #ede8dc;
  --white:          #ffffff;
  --text:           #1a1a1a;
  --text-muted:     #6b6b6b;
  --text-light:     #9b9b9b;
  --border:         #e0dbd0;
  --border-dark:    #ccc6b8;
  --success:        #2d6a4f;
  --success-bg:     #d8f3dc;
  --danger:         #9b1c1c;
  --danger-bg:      #fee2e2;
  --warning:        #92400e;
  --warning-bg:     #fef3c7;
  --info:           #1e40af;
  --info-bg:        #dbeafe;
  --shadow:         0 4px 20px rgba(23,45,43,0.10);
  --shadow-md:      0 6px 25px rgba(23,45,43,0.12);
  --shadow-lg:      0 10px 40px rgba(23,45,43,0.15);
  --shadow-xl:      0 20px 60px rgba(23,45,43,0.20);
  --radius:         8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;
  --transition:     0.3s ease;
  --transition-fast: 0.15s ease;
  --navbar-height:  72px;
  --sidebar-width:  260px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

ul, ol {
  list-style: none;
}

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

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

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent-dark); }
.text-muted    { color: var(--text-muted); }
.text-white    { color: var(--white); }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

/* ─── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #7b1414;
  transform: translateY(-2px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
}

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.badge-sale    { background: #e53e3e; color: #fff; }
.badge-new     { background: var(--primary); color: var(--accent); }
.badge-hot     { background: var(--accent); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-muted   { background: #f0ece4; color: var(--text-muted); }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1rem;
  position: relative;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger, .alert-error {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
}

.alert-dismissible {
  padding-right: 2.5rem;
}

.alert-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.alert-close:hover { opacity: 1; }

/* ─── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: none;
  transition: all var(--transition);
  height: var(--navbar-height);
}

#navbar.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.navbar-brand-name span {
  color: var(--accent-dark);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent-dark);
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0.9rem;
  right: 0.9rem;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  overflow: hidden;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.nav-action-btn:hover {
  background: var(--bg);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-dark);
  color: var(--primary);
  border-radius: var(--radius-full);
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  padding: 0 8px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: var(--bg);
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link::after {
  display: none;
}

/* ─── Search Overlay ────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 45, 43, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.75rem;
  font-size: 1.25rem;
  border-radius: var(--radius-lg);
  border: none;
  outline: none;
  box-shadow: var(--shadow-xl);
  color: var(--text);
  background: var(--white);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-close-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.search-close-btn:hover {
  color: var(--primary);
}

.search-results {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
  color: var(--text);
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
}

.search-result-item .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-result-item .price {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,45,43,0.9) 0%, rgba(23,45,43,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--white);
  padding: calc(var(--navbar-height) + 3rem) 0 5rem;
}

.hero-label {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Slider Dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--accent);
  width: 30px;
}

/* ─── Category Cards ────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

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

.category-card:hover img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,45,43,0.85) 0%, rgba(23,45,43,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: all var(--transition);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(23,45,43,0.9) 0%, rgba(23,45,43,0.3) 60%);
}

.category-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.1rem;
  transition: transform var(--transition);
}

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

.category-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.category-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.category-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  transform: scale(0);
  transition: transform var(--transition);
}

.category-card:hover .category-arrow {
  transform: scale(1);
}

/* ─── Product Cards ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1;
}

.product-actions-hover {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}

.product-card:hover .product-actions-hover {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.product-action-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.product-action-btn.wishlisted {
  background: var(--danger-bg);
  color: var(--danger);
}

.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex: 1;
}

.product-name a {
  color: inherit;
}

.product-name a:hover {
  color: var(--accent-dark);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.stars {
  color: #f59e0b;
  font-size: 0.85rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.5rem;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price.sale {
  color: #e53e3e;
}

.product-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-add-btn {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.product-add-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}

/* ─── Shop / Product Listing Page ───────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  height: fit-content;
  max-height: calc(100vh - var(--navbar-height) - 2rem);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e0dbd0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(23, 45, 43, 0.06);
}

.filter-widget {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1ede4;
}

.filter-widget:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #172D2B;
  margin-bottom: 0.65rem;
}

.filter-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-categories-list a {
  display: block;
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.filter-categories-list a:hover {
  background: #faf8f4;
  color: #172D2B;
}

.filter-categories-list a.active {
  background: #172D2B;
  color: #D6BD91;
  font-weight: 700;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.price-inputs .to {
  font-size: 0.78rem;
  color: #6b7280;
}

.price-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #faf8f4;
  border: 1px solid #d1ccc0;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.price-field span {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
}

.price-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: #172D2B;
  outline: none;
}

.filter-apply-btn {
  width: 100%;
  background: #E8D5B2 !important;
  color: #172D2B !important;
  border: 1px solid #D6BD91 !important;
  font-weight: 700 !important;
}

.filter-apply-btn:hover {
  background: #D6BD91 !important;
}

.filter-widget select.form-control {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1ccc0;
  border-radius: 8px;
  background: #faf8f4;
  color: #172D2B;
  font-size: 0.86rem;
  font-weight: 500;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #172D2B;
  cursor: pointer;
}

.filter-checkbox-label input {
  accent-color: #172D2B;
  width: 16px;
  height: 16px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e0dbd0;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(23, 45, 43, 0.04);
}

.shop-result-count {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.shop-sorting form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.shop-sorting label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #172D2B;
}

.shop-sorting select {
  padding: 0.42rem 0.75rem;
  border: 1px solid #d1ccc0;
  border-radius: 8px;
  background: #faf8f4;
  color: #172D2B;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.filter-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

.filter-option:hover {
  color: var(--primary);
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.filter-option .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Price Range Slider */
.price-range-wrap {
  padding: 0.5rem 0;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Shop Topbar */
.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-result-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.shop-sort select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b6b6b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 20px;
}

.shop-view-toggle button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-view-toggle button.active,
.shop-view-toggle button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── Product Detail ────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 0;
}

.product-gallery {
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
  height: fit-content;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg);
  aspect-ratio: 1/1;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.gallery-main img:hover {
  transform: scale(1.03);
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background: var(--bg);
}

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

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--accent-dark);
}

/* Product Info */
.product-info .product-category-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.product-info .product-rating {
  margin-bottom: 1.25rem;
}

.product-info .pricing {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-info .current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.product-info .current-price.sale {
  color: #e53e3e;
}

.product-info .old-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info .discount-badge {
  background: #fee2e2;
  color: #e53e3e;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
}

.product-short-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--bg-dark);
}

.qty-input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  height: 44px;
  outline: none;
}

.product-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Product Meta */
.product-meta {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.product-meta-row .label {
  color: var(--text-muted);
  min-width: 100px;
}

.product-meta-row .value {
  font-weight: 600;
  color: var(--text);
}

/* Product Tabs */
.product-tabs {
  margin-top: 4rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ─── Review Section ────────────────────────────────────────── */
.review-summary {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
}

.review-avg {
  text-align: center;
  flex-shrink: 0;
}

.review-avg .number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.review-avg .total {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.review-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-full);
}

.review-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.reviewer-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.reviewer-info .date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.review-body {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

/* ─── Cart Sidebar ───────────────────────────────────────────── */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,45,43,0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.cart-close-btn:hover {
  background: var(--bg-dark);
}

.cart-items-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  overflow: hidden;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: background var(--transition-fast);
}

.cart-qty-btn:hover {
  background: var(--bg-dark);
}

.cart-qty-num {
  min-width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 28px;
}

.cart-item-remove {
  position: absolute;
  top: 1rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.cart-sidebar-footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-totals {
  margin-bottom: 1.25rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.cart-total-row.grand {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  color: var(--primary);
}

.cart-free-shipping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--success);
  background: var(--success-bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--border);
}

/* ─── Checkout Form ──────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  padding: 3rem 0;
}

.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.form-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,45,43,0.08);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-control.is-valid {
  border-color: var(--success);
}

.invalid-feedback {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.3rem;
}

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

.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b6b6b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,45,43,0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Payment options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option:hover {
  border-color: var(--primary);
}

.payment-option input[type="radio"] {
  accent-color: var(--primary);
}

.payment-option.selected {
  border-color: var(--primary);
  background: rgba(23,45,43,0.03);
}

.payment-option i {
  font-size: 1.5rem;
  color: var(--accent-dark);
  width: 28px;
}

/* Order Summary (Checkout) */
.order-summary {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.order-summary-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.coupon-input-wrap {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.coupon-input-wrap .form-control {
  flex: 1;
}

/* ─── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item:last-child {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb-sep {
  color: var(--border-dark);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  color: var(--white);
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-desc {
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent);
  width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-newsletter {
  margin-top: 0.5rem;
}

.newsletter-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-icon {
  height: 24px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.payment-icon:hover {
  opacity: 1;
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-item .page-link:hover {
  background: var(--bg-dark);
  border-color: var(--border-dark);
  color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Toast Notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  animation: slideInRight 0.3s ease;
  position: relative;
}

.toast-success { border-color: var(--success); }
.toast-error   { border-color: var(--danger); }
.toast-warning { border-color: var(--warning); }
.toast-info    { border-color: var(--info); }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: var(--info); }

.toast-body { flex: 1; }

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text);
}

.toast.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

/* ─── Loading Spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(23,45,43,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ─── Back to Top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* ─── Stats / Counter Section ───────────────────────────────── */
.stats-section {
  background: var(--primary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Promo Banner ───────────────────────────────────────────── */
.promo-banner {
  background: var(--accent);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.promo-banner a {
  color: var(--primary);
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* ─── Empty States ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 1.5rem;
  display: block;
}

.empty-state h3 {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* ─── Skeleton Loading ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0ece4 25%, #e8e3d8 50%, #f0ece4 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: var(--radius-full);
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

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

@keyframes skeleton {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.fade-in {
  animation: fadeIn 0.5s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ─── Responsive Breakpoints ─────────────────────────────────── */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .navbar-nav { display: none; }
  .hamburger  { display: flex; }
  .mobile-menu { display: block; }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-gallery {
    position: static;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
    max-height: none;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }

  .review-summary {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cart-sidebar {
    width: 100%;
  }

  .cart-sidebar-header h3 {
    font-size: 1rem;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .product-body {
    padding: 0.9rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  #back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Modern E-Commerce Dual Pricing (Sale Price + Red Strikethrough Full Price)
═══════════════════════════════════════════════════════════════════════════ */
.product-price-wrap,
.product-pricing,
.product-price-box,
.search-item-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.45rem 0;
}

.product-price,
.price-current,
.sale-price,
.current-price,
.search-item-price .sale {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary, #172D2B);
    letter-spacing: -0.01em;
}

.product-price-box .sale-price,
.product-price-box .current-price {
    font-size: 1.65rem;
}

.product-price-original,
.price-original,
.original-price,
.original-price s,
.search-item-price .original {
    font-size: 0.9rem;
    font-weight: 500;
    color: #7f8c8d;
    text-decoration: line-through;
    text-decoration-color: #e11d48;
    text-decoration-thickness: 2px;
}

.product-price-box .original-price,
.product-price-box .original-price s {
    font-size: 1.1rem;
}

.discount-badge {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Site Header, Responsive Navbar, Mobile Drawer & Cart/Search Overlays
═══════════════════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border, #e0dbd0);
    box-shadow: 0 2px 12px rgba(23, 45, 43, 0.06);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 1rem;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary, #172D2B);
    flex-shrink: 0;
}

.navbar-logo .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary, #172D2B);
    color: var(--accent, #D6BD91);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.navbar-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-logo .logo-brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary, #172D2B);
    letter-spacing: 0.5px;
}

.navbar-logo .logo-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark, #a68b5b);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}

.nav-links .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary, #172D2B);
    text-decoration: none;
    padding: 0.35rem 0;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--accent-dark, #b39258);
}

.nav-links .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent, #D6BD91);
}

.navbar-actions {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--primary, #172D2B);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon-btn svg {
    display: block;
    flex-shrink: 0;
}

.nav-icon-btn:hover {
    background: var(--bg, #F7F3EA);
}

.nav-icon-btn .badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--primary, #172D2B);
    color: var(--accent, #D6BD91);
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-icon-btn .badge.hidden {
    display: none;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--border, #e0dbd0);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(23, 45, 43, 0.14);
    padding: 0.5rem;
    z-index: 1100;
}

.user-dropdown.is-open .user-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border, #e0dbd0);
    border-radius: 8px;
    padding: 0 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary, #172D2B);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Cart Sidebar & Search Overlay open states */
.cart-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 29, 0.55);
    z-index: 1200;
}

.cart-sidebar-overlay.is-open {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 390px;
    height: 100vh;
    background: #ffffff;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
}

.cart-sidebar.is-open,
.cart-sidebar.open {
    right: 0;
    transform: translateX(0) !important;
    visibility: visible !important;
}

.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 45, 43, 0.96);
    z-index: 2000;
    padding: 4rem 1.25rem;
    overflow-y: auto;
}

.search-overlay.is-open,
.search-overlay.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile & Tablet Navigation Collapse (<= 992px) */
@media (max-width: 992px) {
    .navbar-container {
        height: 60px;
        gap: 0.5rem;
    }

    .hamburger {
        display: flex;
    }

    .navbar-logo .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .navbar-logo .logo-brand {
        font-size: 1.15rem;
    }

    .navbar-logo .logo-tagline {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        border-bottom: 2px solid var(--accent, #D6BD91);
        box-shadow: 0 14px 30px rgba(23, 45, 43, 0.14);
        z-index: 1050;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border, #eee8dc);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links .nav-link {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   High-Contrast Buttons (Buy Now Dark + Add to Bag Gold) & Mobile Card Fix
═══════════════════════════════════════════════════════════════════════════ */
.btn-gold {
    background-color: #D6BD91 !important;
    color: #172D2B !important;
    border: 1.5px solid #c4a876 !important;
    font-weight: 700 !important;
}

.btn-gold:hover {
    background-color: #c4a876 !important;
    color: #0f1e1d !important;
}

.btn-dark-buy,
.buy-now-btn {
    background-color: #E8D5B2 !important;
    color: #172D2B !important;
    border: 1.5px solid #D6BD91 !important;
    font-weight: 700 !important;
}

.btn-dark-buy:hover,
.buy-now-btn:hover {
    background-color: #D6BD91 !important;
    color: #0f1e1d !important;
    border-color: #c4a876 !important;
}

.sm-style-card .add-to-cart-btn {
    background-color: #F7F3EA !important;
    color: #172D2B !important;
    border: 1.5px solid #d1ccc0 !important;
    font-weight: 700 !important;
}

.sm-style-card .add-to-cart-btn:hover {
    background-color: #172D2B !important;
    color: #ffffff !important;
    border-color: #172D2B !important;
}

.sm-style-card .sm-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.sm-style-card .sm-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
    display: block;
}

.sm-style-card .sm-img-wrap .img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: #ffffff;
    transition: opacity 0.3s ease;
}

.sm-style-card:hover .sm-img-wrap .img-hover {
    opacity: 1;
}

.sm-style-card .product-info {
    padding: 0.7rem 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sm-style-card .product-name {
    font-size: 0.94rem;
    line-height: 1.28;
    margin: 0.2rem 0 0.3rem;
}

.sm-style-card .product-rating {
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
}

.sm-style-card .product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sm-style-card .sm-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.55rem;
}

@media (max-width: 640px) {
    .sm-style-card .sm-img-wrap {
        aspect-ratio: auto;
        height: 122px;
    }
    .sm-style-card .product-info {
        padding: 0.55rem 0.6rem 0.65rem;
    }
    .sm-style-card .product-name {
        font-size: 0.84rem;
        margin: 0.15rem 0 0.2rem;
    }
    .sm-style-card .product-rating {
        margin-bottom: 0.2rem;
        font-size: 0.72rem;
    }
    .sm-style-card .sm-card-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.35rem !important;
        padding-top: 0.45rem;
    }
    .sm-style-card .sm-card-actions .btn {
        width: 100%;
        padding: 0.44rem 0.25rem !important;
        font-size: 0.74rem !important;
        white-space: nowrap;
        text-align: center;
        justify-content: center;
    }
    .sm-style-card .product-price {
        font-size: 0.94rem;
    }
    .sm-style-card .product-price-original {
        font-size: 0.76rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Site Footer (Forest Obsidian #172D2B + Champagne Gold #D6BD91 + Crisp White)
═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background-color: #172D2B;
    color: #F7F3EA;
    margin-top: 3rem;
}

.footer-newsletter-banner {
    background-color: #1f3d3b;
    border-bottom: 1px solid rgba(214, 189, 145, 0.2);
    padding: 2.25rem 0;
}

.newsletter-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.newsletter-banner-title {
    color: #D6BD91;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.newsletter-banner-desc,
.newsletter-privacy {
    color: rgba(247, 243, 234, 0.85);
    font-size: 0.88rem;
}

.newsletter-privacy {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    opacity: 0.8;
}

.newsletter-form-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(214, 189, 145, 0.4);
    background: #ffffff;
    color: #172D2B;
    min-width: 240px;
    font-size: 0.9rem;
}

.footer-body {
    background-color: #172D2B;
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.25rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #D6BD91;
    text-decoration: none;
    margin-bottom: 0.85rem;
}

.footer-logo-icon {
    font-size: 1.5rem;
    color: #D6BD91;
}

.footer-logo-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-about-desc {
    color: rgba(247, 243, 234, 0.82);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(214, 189, 145, 0.14);
    border: 1px solid rgba(214, 189, 145, 0.35);
    color: #D6BD91;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-link:hover {
    background: #D6BD91;
    color: #172D2B;
}

.footer-heading {
    color: #D6BD91;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.1rem;
}

.footer-links,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link,
.footer-links a,
.footer-contact-link,
.footer-contact-item {
    color: rgba(247, 243, 234, 0.88) !important;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-links a:hover,
.footer-contact-link:hover {
    color: #D6BD91 !important;
}

.footer-link i {
    font-size: 0.7rem;
    color: #D6BD91;
    margin-top: 0.3rem;
}

.footer-contact-icon {
    color: #D6BD91;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #0f1e1d;
    border-top: 1px solid rgba(214, 189, 145, 0.15);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(247, 243, 234, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.footer-copyright strong {
    color: #D6BD91;
}

.footer-payment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(214, 189, 145, 0.3);
    color: #F7F3EA;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.back-to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #172D2B;
    color: #D6BD91;
    border: 1.5px solid #D6BD91;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.back-to-top.is-visible {
    display: inline-flex;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .newsletter-input {
        width: 100%;
        min-width: 0;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Sam & Marshall Style Card Hover Swap + Product Lens & Color Configurator
═══════════════════════════════════════════════════════════════════════════ */
.sm-card-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0.4rem 0 0.25rem;
}

.sm-swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-swatch-dot.active,
.sm-swatch-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #172D2B;
}

/* Desktop Hover Swap: Price hides, Add to Bag + Buy Now animate in */
@media (hover: hover) and (min-width: 769px) {
    .sm-loop-footer {
        position: relative;
        min-height: 54px;
        margin-top: auto;
        padding-top: 0.5rem;
        overflow: hidden;
    }

    .sm-loop-footer .product-price-wrap {
        transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        transform: translateY(0);
    }

    .sm-loop-footer .sm-card-actions {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding-top: 0 !important;
        transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
    }

    .sm-style-card:hover .sm-loop-footer .product-price-wrap {
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
    }

    .sm-style-card:hover .sm-loop-footer .sm-card-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Product Detail Page: Color + Lens Power + Lens Type Configurator */
.eyewear-configurator {
    background: #F7F3EA;
    border: 1px solid #e0dbd0;
    border-radius: 12px;
    padding: 1.15rem;
    margin: 1rem 0 1.25rem;
}

.config-step {
    margin-bottom: 1rem;
}

.config-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #172D2B;
    margin-bottom: 0.5rem;
}

.config-label strong {
    color: #9e7e46;
}

.color-swatches-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.color-swatch-btn:not(.sm-colour-card) {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(23, 45, 43, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch-btn:not(.sm-colour-card).active {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px #F7F3EA, 0 0 0 4px #172D2B;
}

.lens-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.lens-option-card {
    background: #ffffff;
    border: 1.5px solid #e0dbd0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: all 0.2s ease;
}

.lens-option-card:hover {
    border-color: #D6BD91;
}

.lens-option-card.active {
    border-color: #172D2B;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(23, 45, 43, 0.15);
}

.lens-option-card .opt-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #172D2B;
}

.lens-option-card .opt-desc {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.3;
}

.lens-option-card .opt-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #b45309;
    margin-top: 0.15rem;
}

.configured-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #D6BD91;
    font-size: 0.95rem;
    color: #172D2B;
}

.configured-total-bar strong {
    font-size: 1.25rem;
    color: #172D2B;
}

@media (max-width: 480px) {
    .lens-options-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Sam & Marshall Visual Colour Cards, Package Summary & Lens Guide Modal
═══════════════════════════════════════════════════════════════════════════ */
.sm-colour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.65rem;
}

.sm-colour-card {
    width: 100%;
    height: auto;
    min-height: 92px;
    background: #ffffff;
    border: 1.5px solid #e0dbd0;
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sm-colour-card:hover {
    border-color: #D6BD91;
}

.sm-colour-card.active {
    border-color: #172D2B;
    box-shadow: 0 0 0 2px rgba(23, 45, 43, 0.18);
    background: #fffcf6;
}

.sm-colour-thumb-wrap {
    position: relative;
    width: 64px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #F7F3EA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-colour-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-colour-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.sm-colour-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #172D2B;
    line-height: 1.2;
}

.lens-guide-trigger {
    background: transparent;
    border: 1px solid #D6BD91;
    color: #172D2B;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lens-guide-trigger:hover {
    background: #172D2B;
    color: #D6BD91;
    border-color: #172D2B;
}

.sm-includes-box {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-top: 0.75rem;
}

.sm-includes-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #172D2B;
    margin-bottom: 0.45rem;
}

.sm-includes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: #4b5563;
}

.lens-guide-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 29, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lens-guide-modal.is-open {
    display: flex;
}

.lens-guide-dialog {
    background: #ffffff;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.lens-guide-header {
    background: #172D2B;
    color: #D6BD91;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lens-guide-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #D6BD91;
}

.lens-guide-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.lens-guide-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: #374151;
}

.lg-item {
    padding: 0.75rem;
    background: #F7F3EA;
    border-radius: 8px;
    border-left: 3px solid #D6BD91;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Product Detail Page (2-Column Luxury Desktop Layout & Clean Tabs)
═══════════════════════════════════════════════════════════════════════════ */
.breadcrumb-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border, #e0dbd0);
    padding: 0.75rem 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin-right: 0.5rem;
    color: #9ca3af;
}

.breadcrumb-item a {
    color: #172D2B;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #9e7e46;
    font-weight: 600;
}

.product-detail-section {
    padding: 2.5rem 0 4rem;
    background: #F7F3EA;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-grid .product-gallery {
    position: sticky;
    top: 88px;
}

.product-main-image-wrap {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(23, 45, 43, 0.06);
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.35s ease;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.thumbnail-wrap {
    background: #ffffff;
    border: 2px solid #e0dbd0;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbnail-wrap:hover,
.thumbnail-wrap.active {
    border-color: #172D2B;
    transform: translateY(-2px);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Product Multi-Angle Carousel ────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.product-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: manipulation;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .carousel-track {
        scroll-behavior: smooth;
    }
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.65rem;
    pointer-events: none;
    z-index: 3;
}

.carousel-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1ccc0;
    background: rgba(255, 255, 255, 0.92);
    color: #172D2B;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(23, 45, 43, 0.14);
    touch-action: manipulation;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: #172D2B;
    color: #ffffff;
}

.carousel-btn:focus-visible,
.carousel-marker-dot:focus-visible,
.thumbnail-wrap:focus-visible {
    outline: 3px solid #D6BD91;
    outline-offset: 2px;
}

.carousel-markers {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.carousel-marker-dot {
    width: 10px;
    height: 10px;
    padding: 7px;
    background-clip: content-box;
    border-radius: 50%;
    border: 1.5px solid #172D2B;
    background-color: transparent;
    cursor: pointer;
    box-sizing: content-box;
}

.carousel-marker-dot[aria-current="true"] {
    background-color: #172D2B;
    transform: scale(1.2);
}

/* ── Upload Prescription Dropzone ────────────────────────────────────────── */
.rx-dropzone {
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    padding: 1.15rem 1rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rx-dropzone.is-dragover {
    border-color: #172D2B;
    background: #f0fdf4;
}

.rx-browse-btn {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
}

.rx-browse-btn:hover {
    background: #eff6ff;
}

.rx-drop-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.rx-uploaded-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
}

.rx-remove-btn {
    background: none;
    border: none;
    color: #991b1b;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

/* ── WHAT YOU'LL GET + Inside The Box ────────────────────────────────────── */
.sm-what-you-get-box {
    margin-top: 1.15rem;
    padding: 1.15rem;
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 12px;
}

.sm-wyg-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #172D2B;
    margin-bottom: 0.85rem;
}

.sm-wyg-image-wrap {
    text-align: center;
    margin-bottom: 0.9rem;
}

.sm-wyg-image-wrap img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.sm-wyg-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.sm-wyg-kit-item {
    background: #faf8f4;
    border: 1px solid #ece7dc;
    border-radius: 8px;
    padding: 0.65rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #172D2B;
}

.sm-wyg-icon {
    font-size: 1.35rem;
    line-height: 1.2;
}

.sm-inside-box-block {
    border-top: 1px solid #ece7dc;
    padding-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.sm-inside-box-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #172D2B;
    margin-bottom: 0.3rem;
}

.sm-inside-box-text {
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* ── Product Details Accordion (<details>/<summary>) ───────────────────────── */
.sm-accordion {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 12px;
    overflow: hidden;
}

.sm-accordion details + details {
    border-top: 1px solid #e0dbd0;
}

.sm-accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #172D2B;
    cursor: pointer;
    user-select: none;
}

.sm-accordion summary::-webkit-details-marker {
    display: none;
}

.sm-accordion summary::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sm-accordion details[open] > summary::after {
    transform: rotate(-135deg);
}

.sm-accordion summary:hover {
    background: #faf8f4;
}

.sm-accordion details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
}

.sm-accordion details:not([open])::details-content {
    block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .sm-accordion details::details-content {
        transition: block-size 0.28s ease-in-out, content-visibility 0.28s allow-discrete;
    }
}

.sm-accordion-body {
    padding: 0.25rem 1.25rem 1.25rem;
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.65;
}

.sm-add-info-table {
    width: 100%;
    border-collapse: collapse;
}

.sm-add-info-table th,
.sm-add-info-table td {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid #f1ede4;
    font-size: 0.85rem;
}

.sm-add-info-table th {
    text-align: left;
    font-weight: 700;
    color: #172D2B;
    letter-spacing: 0.04em;
    width: 45%;
}

.sm-add-info-table td {
    text-align: right;
    color: #374151;
}

.sm-desc-large-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sm-desc-large-item {
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #ece7dc;
}

.sm-desc-large-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ── Eye-Catching Real-Time Add-to-Cart Animations ───────────────────────── */
.fly-to-cart-clone {
    position: fixed;
    z-index: 99999;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(23, 45, 43, 0.28);
    border: 2px solid #D6BD91;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

@keyframes cartBadgePop {
    0%   { transform: scale(0.6); }
    50%  { transform: scale(1.45); background-color: #D6BD91; color: #172D2B; }
    100% { transform: scale(1); }
}

.cart-badge-pop {
    animation: cartBadgePop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cartPulsePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.22); color: #D6BD91; }
    100% { transform: scale(1); }
}

.cart-pulse-pop {
    animation: cartPulsePop 0.5s ease;
}

@keyframes cartItemSlideIn {
    0%   { opacity: 0; transform: translateX(24px); background-color: rgba(214, 189, 145, 0.28); }
    100% { opacity: 1; transform: translateX(0); background-color: transparent; }
}

.cart-item-new {
    animation: cartItemSlideIn 0.55s ease forwards;
}

/* ── Home Category Banner (Below Category Pills, Above Products) ────────── */
.home-category-banner {
    display: block;
    width: 100%;
    margin: 1rem 0 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d6bd91;
    box-shadow: 0 10px 26px rgba(23, 45, 43, 0.12);
    background: #172D2B;
}

.home-category-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.35s ease;
}

.home-category-banner:hover img {
    transform: scale(1.015);
}

/* ── Native <dialog> Modals (Lightbox, Size Guide, Quick View) ───────────── */
dialog:modal {
    overscroll-behavior: contain;
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: min(92vw, 720px);
    width: 100%;
    margin: auto;
    box-shadow: 0 24px 60px rgba(15, 30, 29, 0.35);
    background: #ffffff;
    color: #172D2B;
}

dialog::backdrop {
    background: rgba(15, 30, 29, 0.72);
    backdrop-filter: blur(4px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.pdp-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #e0dbd0;
    background: #faf8f4;
}

.pdp-dialog-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1ccc0;
    background: #ffffff;
    color: #172D2B;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdp-dialog-body {
    padding: 1.2rem;
}

.pdp-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 1rem;
    min-height: 320px;
}

.pdp-lightbox-stage img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.pdp-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d1ccc0;
    background: rgba(255, 255, 255, 0.92);
    color: #172D2B;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#pdpLbPrev { left: 0.75rem; }
#pdpLbNext { right: 0.75rem; }

/* ── Pincode Delivery Checker ────────────────────────────────────────────── */
.pincode-checker-box {
    margin-top: 0.9rem;
    padding: 0.85rem;
    background: #faf8f4;
    border: 1px solid #e0dbd0;
    border-radius: 10px;
}

.pincode-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #172D2B;
    margin-bottom: 0.45rem;
}

.pincode-input-row {
    display: flex;
    gap: 0.5rem;
}

.pincode-input-row .form-control {
    font-size: 0.9rem;
    min-height: 40px;
}

.pincode-result {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 1.1em;
}

/* ── Sticky Mobile Purchase Bar ──────────────────────────────────────────── */
.pdp-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .pdp-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        background: #ffffff;
        border-top: 1px solid #e0dbd0;
        box-shadow: 0 -6px 24px rgba(23, 45, 43, 0.14);
        padding: 0.6rem 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transform: translateY(110%);
        transition: transform 0.25s ease;
    }
    .pdp-sticky-bar.is-visible {
        transform: translateY(0);
    }
    .pdp-sticky-price {
        flex: 1;
        line-height: 1.15;
    }
    .pdp-sticky-price strong {
        font-size: 1rem;
        color: #172D2B;
    }
    .pdp-sticky-bar .btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* ── Product Card Quick-View Button & Dialog Grid ────────────────────────── */
.sm-style-card {
    position: relative;
}

.quick-view-btn {
    position: absolute;
    top: 44px;
    right: 10px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e0dbd0;
    background: rgba(255, 255, 255, 0.92);
    color: #172D2B;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(23, 45, 43, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-view-btn:hover {
    background: #172D2B;
    color: #D6BD91;
    transform: scale(1.08);
}

.qv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: center;
}

@media (max-width: 640px) {
    .qv-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Virtual Try-On Modal & Manual Rx/PD Builder ─────────────────────────── */
.vto-stage {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0dbd0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vto-placeholder {
    text-align: center;
    padding: 1.5rem;
    color: #4b5563;
}

#vtoFrameOverlay {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 62%;
    max-width: 95%;
    cursor: grab;
    touch-action: none;
    user-select: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
    mix-blend-mode: multiply;
}

#vtoFrameOverlay:active {
    cursor: grabbing;
}

.rx-manual-details {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
}

.rx-manual-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.45rem 0 0.5rem;
}

.rx-eye-row {
    display: grid;
    grid-template-columns: 92px 1fr 1fr 1fr;
    gap: 0.35rem;
    align-items: center;
}

.rx-eye-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #172D2B;
}

.rx-sel {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.4rem !important;
    min-height: 36px !important;
}

.rx-pd-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ── Face Shape Quiz Grid ────────────────────────────────────────────────── */
.fs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.fs-card {
    background: #ffffff;
    border: 1.5px solid #e0dbd0;
    border-radius: 12px;
    padding: 0.85rem 0.65rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fs-card:hover,
.fs-card.active {
    border-color: #172D2B;
    background: #faf8f4;
}

.fs-icon {
    font-size: 1.5rem;
    color: #172D2B;
}

.fs-card small {
    font-size: 0.72rem;
    color: #6b7280;
}

/* ── Mobile Filter Drawer & Swipeable Pills & Mobile Bottom Nav ──────────── */
.shop-mobile-filter-bar,
.shop-sidebar-mobile-head,
.shop-sidebar-backdrop,
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 992px) {
    .shop-mobile-filter-bar {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.85rem;
        width: 100%;
    }
    .shop-sidebar-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 30, 29, 0.5);
        z-index: 1180;
    }
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        bottom: 0;
        width: 290px;
        max-width: 85vw;
        background: #ffffff;
        z-index: 1200;
        overflow-y: auto;
        padding: 1rem;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
        transition: left 0.25s ease;
    }
    .shop-sidebar.is-open {
        left: 0;
    }
    .shop-sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.75rem;
        margin-bottom: 0.85rem;
        border-bottom: 1px solid #e0dbd0;
    }
    .shop-sidebar-mobile-head button {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    /* Single-row swipeable category pills on Home */
    #homeCategoryPills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        gap: 0.45rem;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #homeCategoryPills::-webkit-scrollbar {
        display: none;
    }
    #homeCategoryPills .filter-pill {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .rx-eye-row {
        grid-template-columns: 1fr 1fr;
    }
    .rx-eye-tag {
        grid-column: 1 / -1;
    }

    /* Thumb-friendly Mobile Bottom Bar */
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 940;
        background: #ffffff;
        border-top: 1px solid #e0dbd0;
        box-shadow: 0 -4px 18px rgba(23, 45, 43, 0.1);
        padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
    }
    .mbn-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        color: #4b5563;
        font-size: 0.66rem;
        font-weight: 600;
        text-decoration: none;
        padding: 0.2rem 0;
        cursor: pointer;
    }
    .mbn-item.active {
        color: #172D2B;
        font-weight: 700;
    }
    .mbn-badge {
        position: absolute;
        top: 0;
        right: 18%;
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        background: #172D2B;
        color: #D6BD91;
        font-size: 0.6rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }
    body {
        padding-bottom: 62px;
    }
    .floating-whatsapp {
        bottom: 72px !important;
    }
}

/* ── Announcement Bar, PDP Pills/Trust Strip & Home Face-Shape/Promise Grid ── */
.announcement-bar {
    background: #172D2B;
    color: #D6BD91;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.42rem 0.75rem;
}

.pdp-promo-pill {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pdp-meas-pill {
    display: inline-block;
    margin-left: 0.5rem;
    background: #f3f4f6;
    color: #172D2B;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
}

.pdp-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #172D2B;
}

.home-faceshape-section {
    padding: 2.25rem 0;
    background: #faf8f4;
    border-top: 1px solid #ece7dc;
}

.home-faceshape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.home-fs-card {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #172D2B;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-fs-card:hover {
    transform: translateY(-2px);
    border-color: #172D2B;
}

.home-fs-icon {
    font-size: 1.5rem;
}

.home-fs-card small {
    font-size: 0.74rem;
    color: #6b7280;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.rv-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 10px;
    padding: 0.5rem;
    text-decoration: none;
    color: #172D2B;
}

.rv-card img {
    width: 56px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #faf8f4;
}

.rv-meta strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
}

.rv-meta span {
    font-size: 0.78rem;
    color: #4b5563;
}

.home-promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-top: 2rem;
}

.home-promise-item {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: #172D2B;
}

.hp-icon {
    font-size: 1.35rem;
}

.home-promise-item small {
    font-size: 0.74rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .home-faceshape-grid,
    .recently-viewed-grid,
    .home-promise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* ── Uploaded Storefront Images (Replacing Emojis) ─────────────────────── */
.sf-card-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    border: 1px solid #e0dbd0;
    background: #faf8f4;
}

.category-img-wrap {
    width: 76px;
    height: 76px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #D6BD91;
    background: #faf8f4;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-grid .product-info {
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 28px rgba(23, 45, 43, 0.05);
}

.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9e7e46;
    background: #F7F3EA;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 0.65rem;
}

.product-detail-grid .product-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #172D2B;
    margin: 0 0 0.6rem;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.75rem 0;
}

.product-price-block .sale-price,
.product-price-block .current-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: #172D2B;
}

.product-price-block .original-price {
    font-size: 1.15rem;
}

.stock-status {
    margin-bottom: 0.85rem;
}

.badge-in-stock {
    background: #ecfdf5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.product-short-desc {
    color: #4b5563;
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d1ccc0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    height: 46px;
}

.quantity-selector .qty-btn {
    width: 38px;
    height: 100%;
    border: none;
    background: #F7F3EA;
    color: #172D2B;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.quantity-selector .qty-input {
    width: 48px;
    text-align: center;
    border: none;
    font-weight: 700;
    color: #172D2B;
    font-size: 0.95rem;
}

.wishlist-row {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-wishlist {
    background: transparent;
    border: 1.5px solid #e0dbd0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #172D2B;
    cursor: pointer;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee8dc;
    font-size: 0.85rem;
    color: #6b7280;
}

.share-link {
    color: #172D2B;
    display: inline-flex;
    align-items: center;
}

.product-tabs-section,
.product-tabs {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid #e0dbd0;
    border-radius: 16px;
    padding: 1.75rem 2rem;
}

.tab-headers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #e0dbd0;
    padding-bottom: 0.85rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: #F7F3EA;
    border: 1px solid #e0dbd0;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #172D2B;
    cursor: pointer;
}

.tab-btn.active {
    background: #172D2B;
    color: #D6BD91;
    border-color: #172D2B;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-detail-grid .product-gallery {
        position: static;
    }
    .product-detail-grid .product-info {
        padding: 1.25rem;
    }
    .product-detail-grid .product-title {
        font-size: 1.55rem;
    }
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Floating WhatsApp Button (Bottom-Left with Eye-Catching Pulse Animation)
═══════════════════════════════════════════════════════════════════════════ */
.floating-whatsapp {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    animation: waFloat 3.2s ease-in-out infinite;
}

.wa-icon-circle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.floating-whatsapp:hover .wa-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.wa-pulse-ring {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    z-index: 1;
    animation: waPulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

.wa-pulse-ring--delay {
    animation-delay: 1.1s;
}

.wa-label {
    background: #172D2B;
    color: #D6BD91;
    border: 1px solid #D6BD91;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(23, 45, 43, 0.25);
    white-space: nowrap;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-whatsapp:hover .wa-label {
    transform: translateX(3px);
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

@keyframes waFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 640px) {
    .floating-whatsapp {
        left: 14px;
        bottom: 16px;
    }
    .wa-icon-circle,
    .wa-pulse-ring {
        width: 50px;
        height: 50px;
    }
    .wa-label {
        display: none;
    }
}
