/* ==========================================================================
   EmHaat — Premium Men's Accessories Storefront
   Design system + component styles
   Palette (exact design tokens):
     header / nav / footer (dark brown)  #3E2723
     page background (off-white)         #F8F5EF
     primary buttons (gold)              #C6A15B  hover #AE8945
     surfaces (white)                    #FFFFFF
     main text (dark)                    #292421
     secondary text (muted brown)        #79665C
     borders (light beige)               #E5DED3
   ========================================================================== */

:root {
  /* ── Palette (primary tokens) ────────────────────────────── */
  --eh-ivory: #f8f5ef;          /* off-white page background */
  --eh-ivory-deep: #f1ebe0;     /* deeper off-white (subtle steps only) */
  --eh-surface: #ffffff;        /* cards and light surfaces */
  --eh-ink: #292421;            /* main text */
  --eh-ink-soft: #79665c;       /* secondary text — muted brown */
  --eh-line: #e5ded3;           /* light beige borders */
  --eh-line-strong: #d8cdbb;    /* stronger beige step */

  --eh-brand: #3e2723;          /* dark brown — header, nav, footer */
  --eh-brand-deep: #33211d;     /* deeper brown (gradients, hover steps) */
  --eh-brand-ink: #2a1a16;      /* deepest brown (veils, dark sections) */
  --eh-dark: #3e2723;           /* dark promotional sections */

  --eh-gold: #c6a15b;           /* primary shopping buttons + highlights */
  --eh-gold-deep: #ae8945;      /* gold hover / on-light accents */
  --eh-gold-soft: #efe3cb;      /* soft gold tints */

  --eh-sale: #8c2f2f;           /* discount / destructive status only */
  --eh-success: #2f5d46;        /* in-stock / success status only */
  --eh-danger: #8c2f2f;

  /* ── Typography ──────────────────────────────────────────── */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* ── Spacing scale ───────────────────────────────────────── */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* ── Shape / depth / motion ──────────────────────────────── */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --sh-1: 0 1px 2px rgba(41, 36, 33, 0.06);
  --sh-2: 0 8px 24px rgba(41, 36, 33, 0.10);
  --sh-3: 0 18px 48px rgba(41, 36, 33, 0.16);
  --tr: 0.25s ease;

  /* ── Legacy aliases (kept for existing markup) ───────────── */
  --primary: var(--eh-gold);
  --primary-dark: var(--eh-gold-deep);
  --secondary: var(--eh-brand);
  --accent: var(--eh-gold-deep);
  --success: var(--eh-success);
  --light-bg: var(--eh-ivory);
  --border-color: var(--eh-line);
  --text-muted: var(--eh-ink-soft);
  --shadow-sm: var(--sh-1);
  --shadow: var(--sh-2);
  --shadow-lg: var(--sh-3);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--eh-ink);
  background: var(--eh-ivory);
  line-height: 1.6;
  font-size: 0.975rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  color: var(--eh-ink);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--eh-brand);
  transition: color var(--tr);
}

a:hover {
  color: var(--eh-ink);
}

::selection {
  background: var(--eh-line);
  color: var(--eh-ink);
}

:focus-visible {
  outline: 2px solid var(--eh-gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(41, 36, 33, 0.25);
}

img {
  max-width: 100%;
}

/* Editorial micro-label */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eh-ink-soft);
  margin-bottom: var(--sp-3);
}

.kicker--light {
  color: var(--eh-gold);
}

.kicker--rule {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.kicker--rule::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.top-bar {
  background: var(--eh-brand);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.35);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.82);
}

.top-bar a:hover {
  color: var(--eh-gold);
}

.top-bar strong {
  color: #fff;
  font-weight: 600;
}

.top-bar .top-bar__sep {
  opacity: 0.35;
  margin: 0 0.65rem;
}

/* ==========================================================================
   Header (dark brown)
   ========================================================================== */

.main-header {
  background: var(--eh-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.9rem 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
}

.brand-logo--header {
  width: 172px;
}

.brand-logo--menu {
  width: 160px;
}

.brand-logo--auth {
  width: 190px;
}

/* White rendering on dark brown (logo file itself is untouched) */
.main-header .brand-logo,
.brand-logo--on-dark {
  filter: brightness(0) invert(1);
}

@media (max-width: 575.98px) {
  .brand-logo--header {
    width: 128px;
  }

  .brand-logo--auth {
    width: 150px;
  }
}

.search-form {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.search-form .form-control {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  border-right: 0;
  height: 44px;
  background: var(--eh-ivory);
  border-color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  color: var(--eh-ink);
}

.search-form .form-control:focus {
  background: var(--eh-surface);
  border-color: var(--eh-gold);
  box-shadow: none;
}

.search-form .btn {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  height: 44px;
  min-width: 52px;
  background: var(--eh-gold);
  border-color: var(--eh-gold);
  color: var(--eh-ink);
}

.search-form .btn:hover {
  background: var(--eh-gold-deep);
  border-color: var(--eh-gold-deep);
  color: var(--eh-ink);
}

.header-actions .btn-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-actions .btn-link i {
  font-size: 1.15rem;
}

.header-actions .btn-link:hover {
  color: var(--eh-gold);
}

.header-actions .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.62rem;
  font-weight: 600;
  min-width: 1.15rem;
  padding: 0.15rem 0.32rem;
  background: var(--eh-gold);
  color: var(--eh-ink);
  border: 1px solid var(--eh-brand);
}

/* ==========================================================================
   Primary navigation (dark brown)
   ========================================================================== */

.main-nav {
  background: var(--eh-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav .nav {
  gap: 0.25rem;
}

.main-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.95rem 1.05rem;
  position: relative;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  bottom: 0.55rem;
  height: 1px;
  background: var(--eh-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--tr);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--eh-gold);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  transform: scaleX(1);
}

.main-nav .nav-link.active {
  font-weight: 600;
}

.dropdown-menu {
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  border: 1px solid var(--eh-line);
  padding: 0.5rem 0;
  min-width: 14rem;
  font-size: 0.9rem;
  background: var(--eh-surface);
}

.dropdown-item {
  padding: 0.5rem 1.15rem;
  color: var(--eh-ink);
  transition: background var(--tr), color var(--tr);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--eh-ivory);
  color: var(--eh-brand);
}

.dropdown-divider {
  border-color: var(--eh-line);
}

@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Mobile offcanvas menu (light panel) */
.offcanvas {
  background: var(--eh-surface);
}

.offcanvas .list-group-item {
  border-color: var(--eh-line);
  padding: 0.95rem 0.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: transparent;
}

.offcanvas .list-group-item a {
  color: var(--eh-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.offcanvas .list-group-item a:hover {
  color: var(--eh-gold-deep);
}

.offcanvas .list-group-item a.text-danger {
  color: var(--eh-sale) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 0.62rem 1.35rem;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary shopping buttons — gold with dark text */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled,
.btn-primary.disabled {
  background: var(--eh-gold);
  border-color: var(--eh-gold);
  color: var(--eh-ink);
}

.btn-primary:hover:not(:disabled) {
  background: var(--eh-gold-deep);
  border-color: var(--eh-gold-deep);
  color: var(--eh-ink);
  box-shadow: var(--sh-1);
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.55;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: var(--eh-brand);
  border-color: var(--eh-brand);
  color: #fff;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background: var(--eh-brand);
  border-color: var(--eh-brand);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--eh-brand);
  border-color: var(--eh-brand);
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background: var(--eh-brand);
  border-color: var(--eh-brand);
  color: #fff;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background: var(--eh-sale);
  border-color: var(--eh-sale);
  color: #fff;
}

.btn-outline-danger {
  color: var(--eh-sale);
  border-color: var(--eh-sale);
  background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
  background: var(--eh-sale);
  border-color: var(--eh-sale);
  color: #fff;
}

.btn-light {
  background: var(--eh-surface);
  border-color: var(--eh-surface);
  color: var(--eh-ink);
}

.btn-light:hover {
  background: var(--eh-line);
  border-color: var(--eh-line);
  color: var(--eh-ink);
}

.btn-success,
.btn-success:hover {
  background: var(--eh-success);
  border-color: var(--eh-success);
  color: #fff;
}

.btn-warning {
  background: var(--eh-gold);
  border-color: var(--eh-gold);
  color: var(--eh-ink);
}

.btn-link {
  color: var(--eh-brand);
  letter-spacing: 0.03em;
}

/* Gold accent CTA (hero and dark sections) */
.btn-accent {
  background: var(--eh-gold);
  border: 1px solid var(--eh-gold);
  color: var(--eh-ink);
  padding: 0.72rem 1.75rem;
  font-size: 0.85rem;
}

.btn-accent:hover {
  background: var(--eh-gold-deep);
  border-color: var(--eh-gold-deep);
  color: var(--eh-ink);
}

.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 0.72rem 1.75rem;
  font-size: 0.85rem;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label,
.form-label.mb-2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--eh-ink);
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  border-radius: var(--r-sm);
  border-color: var(--eh-line-strong);
  font-size: 0.925rem;
  padding: 0.55rem 0.85rem;
  color: var(--eh-ink);
  background-color: var(--eh-surface);
  transition: border-color var(--tr), box-shadow var(--tr);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--eh-brand);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.35);
}

.form-control::placeholder {
  color: var(--eh-ink-soft);
  opacity: 0.75;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--eh-sale);
}

.invalid-feedback {
  color: var(--eh-sale);
  font-size: 0.8rem;
}

.form-check-input:checked {
  background-color: var(--eh-brand);
  border-color: var(--eh-brand);
}

.input-group-text {
  border-color: var(--eh-line-strong);
  background: var(--eh-ivory);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend.form-label {
  padding: 0;
  float: none;
  width: auto;
}

textarea.form-control {
  min-height: 120px;
}

/* ==========================================================================
   Alerts / badges / toasts
   ========================================================================== */

.alert {
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(47, 93, 70, 0.08);
  border-color: rgba(47, 93, 70, 0.25);
  color: var(--eh-success);
}

.alert-danger {
  background: rgba(140, 47, 47, 0.07);
  border-color: rgba(140, 47, 47, 0.25);
  color: var(--eh-sale);
}

.alert-warning {
  background: rgba(198, 161, 91, 0.16);
  border-color: rgba(174, 137, 69, 0.4);
  color: #6d5a35;
}

.alert-info {
  background: rgba(62, 39, 35, 0.06);
  border-color: rgba(62, 39, 35, 0.2);
  color: var(--eh-brand);
}

.badge {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.text-bg-success {
  background-color: var(--eh-success) !important;
}

.text-bg-danger {
  background-color: var(--eh-sale) !important;
}

.text-bg-warning {
  background-color: var(--eh-gold) !important;
  color: var(--eh-ink) !important;
}

.text-bg-primary {
  background-color: var(--eh-brand) !important;
}

.text-bg-light {
  background-color: var(--eh-ivory) !important;
  color: var(--eh-ink) !important;
}

.toast {
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  border: 1px solid var(--eh-line);
}

.toast-container {
  z-index: 1090;
}

/* Text utilities */
.text-primary {
  color: var(--eh-brand) !important;
}

.text-danger {
  color: var(--eh-sale) !important;
}

.text-success {
  color: var(--eh-success) !important;
}

.text-warning {
  color: var(--eh-gold-deep) !important;
}

.text-muted {
  color: var(--eh-ink-soft) !important;
}

.bg-danger {
  background-color: var(--eh-sale) !important;
}

.bg-primary {
  background-color: var(--eh-brand) !important;
}

.bg-success {
  background-color: var(--eh-success) !important;
}

.bg-light {
  background-color: var(--eh-ivory) !important;
}

.bg-white {
  background-color: var(--eh-surface) !important;
}

/* ==========================================================================
   Sections & page structure
   ========================================================================== */

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--eh-line);
}

.section-title h2,
.section-title .h4 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
}

.section-title .section-sub {
  font-size: 0.875rem;
  color: var(--eh-ink-soft);
  margin: 0.35rem 0 0;
}

.section-title a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--eh-brand);
  white-space: nowrap;
  border-bottom: 1px solid var(--eh-gold);
  padding-bottom: 2px;
}

.section-title a:hover {
  color: var(--eh-ink);
}

.section-band {
  padding: var(--sp-7) 0;
}

.section-band--dark {
  background: var(--eh-dark);
  color: rgba(255, 255, 255, 0.82);
}

.section-band--dark h2,
.section-band--dark .h4 {
  color: #fff;
}

/* Page headers */
.page-head {
  padding: var(--sp-7) 0 var(--sp-6);
  background:
    linear-gradient(180deg, var(--eh-ivory-deep), var(--eh-ivory));
  border-bottom: 1px solid var(--eh-line);
}

.page-head h1 {
  font-size: 2.15rem;
  margin-bottom: 0.45rem;
}

.page-head .lead,
.page-head p {
  color: var(--eh-ink-soft);
  max-width: 42rem;
}

.page-head--dark {
  background: linear-gradient(135deg, var(--eh-brand-deep), var(--eh-brand-ink) 65%);
  border-bottom: 0;
  color: #fff;
}

.page-head--dark h1 {
  color: #fff;
}

.page-head--dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0.85rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--eh-ink-soft);
}

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

.breadcrumb-item.active {
  color: var(--eh-ink);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--eh-line-strong);
  content: '›';
  font-size: 1rem;
}

/* Cards & surfaces */
.card {
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  box-shadow: none;
}

.card-header {
  background: var(--eh-ivory);
  border-bottom: 1px solid var(--eh-line);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.list-group-item {
  border-color: var(--eh-line);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  color: var(--eh-ink);
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eh-ink-soft);
  border-bottom: 2px solid var(--eh-line-strong);
}

/* Pagination */
.pagination {
  gap: 0.35rem;
}

.page-link {
  border: 1px solid var(--eh-line);
  border-radius: var(--r-sm);
  color: var(--eh-ink);
  font-size: 0.875rem;
  min-width: 2.35rem;
  text-align: center;
  padding: 0.45rem 0.75rem;
}

.page-link:hover {
  background: var(--eh-ivory);
  color: var(--eh-brand);
  border-color: var(--eh-line-strong);
}

.page-item.active .page-link {
  background: var(--eh-brand);
  border-color: var(--eh-brand);
  color: #fff;
}

.page-item.disabled .page-link {
  color: var(--eh-line-strong);
  background: transparent;
  border-color: var(--eh-line);
}

/* ==========================================================================
   Hero (premium)
   ========================================================================== */

.hero-premium {
  position: relative;
  background: var(--eh-brand-ink);
  color: #fff;
  overflow: hidden;
}

.hero-premium__media {
  position: absolute;
  inset: 0;
}

.hero-premium__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-premium__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 26, 22, 0.92) 0%, rgba(42, 26, 22, 0.72) 34%, rgba(42, 26, 22, 0.18) 62%, rgba(42, 26, 22, 0.05) 100%);
}

.hero-premium__content {
  position: relative;
  z-index: 2;
  padding: 5.75rem 0 5.25rem;
  max-width: 34rem;
}

.hero-premium h1 {
  color: #fff;
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--sp-4);
}

.hero-premium p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 var(--sp-6);
  max-width: 28rem;
}

.hero-premium__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero-premium__note {
  margin-top: var(--sp-6);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eh-gold);
}

@media (max-width: 767.98px) {
  .hero-premium__veil {
    background:
      linear-gradient(180deg, rgba(42, 26, 22, 0.88) 0%, rgba(42, 26, 22, 0.78) 55%, rgba(42, 26, 22, 0.9) 100%);
  }

  .hero-premium__content {
    padding: 3.5rem 0 3.25rem;
  }

  .hero-premium__media img {
    object-position: 70% center;
  }
}

/* Legacy carousel (kept safe) */
.hero-carousel .carousel-item img {
  height: 380px;
  object-fit: cover;
  border-radius: var(--r-md);
}

.hero-carousel .carousel-caption {
  background: rgba(42, 26, 22, 0.55);
  border-radius: var(--r-md);
  padding: 1.25rem;
  bottom: 1.5rem;
  left: 10%;
  right: 10%;
}

/* ==========================================================================
   Category tiles
   ========================================================================== */

.category-card {
  background: var(--eh-surface);
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  text-align: center;
  display: block;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--eh-line-strong);
  color: var(--eh-ink);
}

.category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--eh-brand-ink);
  transition: transform 0.45s ease;
}

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

.category-card .card-body {
  padding: 0.95rem 0.75rem 1.05rem;
}

.category-card .card-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--eh-ink);
}

.category-card .text-muted {
  font-size: 0.76rem;
}

.category-tile__cta {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eh-ink-soft);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity var(--tr), transform var(--tr), color var(--tr);
}

.category-card:hover .category-tile__cta {
  opacity: 1;
  transform: translateY(0);
  color: var(--eh-gold-deep);
}

@media (hover: none) {
  .category-tile__cta {
    opacity: 1;
    transform: none;
    color: var(--eh-gold-deep);
  }
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-card {
  background: var(--eh-surface);
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  border-color: var(--eh-line-strong);
}

.product-card .img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--eh-brand-ink);
}

.product-card .img-wrap a {
  display: block;
  height: 100%;
}

.product-card .img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card .discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--eh-sale);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border-radius: var(--r-sm);
  z-index: 2;
}

.product-card .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-1);
  z-index: 2;
  color: var(--eh-ink-soft);
  cursor: pointer;
  transition: color var(--tr), transform var(--tr);
}

.product-card .wishlist-btn:hover,
.product-card .wishlist-btn.active {
  color: var(--eh-sale);
  transform: scale(1.07);
}

.product-card .card-body {
  padding: 0.95rem 1rem 0.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-card .product-title {
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--eh-ink);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card .product-title:hover {
  color: var(--eh-ink);
  text-decoration: underline;
  text-decoration-color: var(--eh-gold);
  text-underline-offset: 3px;
}

.product-card .rating {
  font-size: 0.72rem;
  color: var(--eh-gold-deep);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.product-card .rating .text-muted {
  font-size: 0.72rem;
}

.product-card .price-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.product-card .price-old {
  font-size: 0.78rem;
  color: var(--eh-ink-soft);
  text-decoration: line-through;
}

.product-card .price-current {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--eh-ink);
}

.product-card .price-old + .price-current {
  color: var(--eh-sale);
}

.product-card .card-footer {
  padding: 0.55rem 1rem 1rem;
  background: transparent;
  border-top: 0;
}

.btn-add-cart {
  background: var(--eh-gold);
  color: var(--eh-ink);
  border: 1px solid var(--eh-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: var(--r-sm);
  width: 100%;
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--eh-gold-deep);
  border-color: var(--eh-gold-deep);
  color: var(--eh-ink);
}

.btn-add-cart:disabled {
  background: var(--eh-ivory-deep);
  border-color: var(--eh-line);
  color: var(--eh-ink-soft);
}

@media (max-width: 575.98px) {
  .product-card .product-title {
    font-size: 0.85rem;
  }

  .product-card .price-current {
    font-size: 1.02rem;
  }
}

/* ==========================================================================
   Promo / editorial / benefits
   ========================================================================== */

.benefits-strip {
  border-top: 1px solid var(--eh-line);
  border-bottom: 1px solid var(--eh-line);
  background: var(--eh-surface);
  padding: var(--sp-6) 0;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.35rem 0.65rem;
}

.benefit i {
  font-size: 1.45rem;
  color: var(--eh-gold-deep);
  line-height: 1.35;
}

.benefit__title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eh-ink);
  margin-bottom: 0.15rem;
}

.benefit__text {
  font-size: 0.82rem;
  color: var(--eh-ink-soft);
  margin: 0;
}

.editorial-split {
  background: var(--eh-dark);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.editorial-split__media {
  height: 100%;
  min-height: 320px;
  background: var(--eh-brand-ink);
}

.editorial-split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.editorial-split__copy {
  padding: clamp(2.25rem, 5vw, 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-split__copy h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: var(--sp-4);
}

.editorial-split__copy p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.85;
  margin-bottom: var(--sp-5);
  max-width: 34rem;
}

.editorial-points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: grid;
  gap: 0.65rem;
}

.editorial-points li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.editorial-points li::before {
  content: '';
  width: 0.85rem;
  height: 1px;
  background: var(--eh-gold);
  flex: none;
  transform: translateY(-0.25rem);
}

.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--eh-brand-ink);
  color: #fff;
  min-height: 320px;
  display: flex;
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
}

.promo-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 26, 22, 0.12) 0%, rgba(42, 26, 22, 0.55) 45%, rgba(42, 26, 22, 0.88) 100%);
}

.promo-banner__copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 26rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-banner__copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: var(--sp-3);
}

.promo-banner__copy p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--sp-5);
}

@media (max-width: 767.98px) {
  .promo-banner__veil {
    background: rgba(42, 26, 22, 0.72);
  }

  .promo-banner__copy {
    margin: 0;
    max-width: none;
  }
}

/* Flash / offer bar */
.flash-sale-header {
  background: linear-gradient(90deg, var(--eh-brand), var(--eh-brand-deep));
  color: #fff;
  padding: 0.95rem 1.35rem;
  border-radius: var(--r-md) var(--r-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.flash-sale-header strong {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.flash-sale-header a {
  color: var(--eh-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.flash-sale-header a:hover {
  color: #fff;
}

.flash-sale-header i {
  color: var(--eh-gold);
}

.countdown {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.countdown span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.4);
  padding: 0.12rem 0.42rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  margin: 0 0.12rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Filters (listing pages)
   ========================================================================== */

.filter-card {
  background: var(--eh-surface);
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  padding: 1.35rem;
  margin-bottom: var(--sp-4);
}

.filter-card h6,
.filter-card h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.05rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--eh-line);
}

.filter-card .form-check {
  margin-bottom: 0.55rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Product details
   ========================================================================== */

.product-gallery {
  position: sticky;
  top: 110px;
}

.product-gallery .main-img {
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--eh-surface);
}

.product-gallery .thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--eh-line);
  cursor: pointer;
  padding: 0;
  background: var(--eh-surface);
  overflow: hidden;
  transition: border-color var(--tr);
}

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

.product-gallery .thumb.active,
.product-gallery .thumb:hover {
  border-color: var(--eh-brand);
}

.product-option-picker .product-color-option,
.product-option-picker .product-size-option {
  border: 1px solid var(--eh-line-strong);
  border-radius: var(--r-sm);
  background: var(--eh-surface);
  color: var(--eh-ink);
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  letter-spacing: 0.03em;
}

.product-option-picker .product-color-option:hover,
.product-option-picker .product-size-option:hover {
  border-color: var(--eh-brand);
}

.product-option-picker .product-color-option.active,
.product-option-picker .product-size-option.active {
  background: var(--eh-brand);
  border-color: var(--eh-brand);
  color: #fff;
}

.product-option-picker .product-color-option:disabled,
.product-option-picker .product-size-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-description {
  color: var(--eh-ink-soft);
  font-size: 0.925rem;
  line-height: 1.8;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--eh-line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qty-control button {
  border: none;
  background: var(--eh-ivory);
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  color: var(--eh-ink);
  transition: background var(--tr);
}

.qty-control button:hover {
  background: var(--eh-ivory-deep);
}

.qty-control input {
  width: 52px;
  text-align: center;
  border: none;
  height: 38px;
  background: var(--eh-surface);
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

[data-product-buy-box] h1 {
  font-size: 1.85rem;
  line-height: 1.25;
}

.price-old {
  font-size: 0.95rem;
  color: var(--eh-ink-soft);
  text-decoration: line-through;
  margin-right: 0.55rem;
}

.price-current {
  color: var(--eh-ink);
}

.price-line .price-current.fs-3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
}

/* ==========================================================================
   Cart / checkout
   ========================================================================== */

.cart-item {
  background: var(--eh-surface);
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  transition: border-color var(--tr), box-shadow var(--tr);
}

.cart-item:hover {
  border-color: var(--eh-line-strong);
  box-shadow: var(--sh-1);
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--eh-line);
}

.cart-summary {
  background: var(--eh-surface);
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  position: sticky;
  top: 110px;
}

.cart-summary h2 {
  font-size: 1.25rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--eh-line);
}

.cart-summary hr {
  border-color: var(--eh-line);
  opacity: 1;
}

/* ==========================================================================
   Account area
   ========================================================================== */

.account-sidebar .list-group-item {
  border: none;
  border-radius: var(--r-sm) !important;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
}

.account-sidebar .list-group-item.active {
  background: var(--eh-brand);
  color: #fff;
}

.account-sidebar .list-group-item:hover:not(.active) {
  background: var(--eh-ivory);
}

/* ==========================================================================
   Empty / loading states
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--eh-surface);
  border: 1px solid var(--eh-line);
  border-radius: var(--r-md);
}

.empty-state i {
  font-size: 2.85rem;
  color: var(--eh-gold-deep);
  margin-bottom: 1rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 245, 239, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Progress bars (invoice / loading flows) */
.progress {
  background-color: var(--eh-line);
  border-radius: var(--r-sm);
}

.progress-bar {
  background-color: var(--eh-gold);
}

.progress-bar.bg-success {
  background-color: var(--eh-success) !important;
}

/* ==========================================================================
   Footer (dark brown)
   ========================================================================== */

.site-footer {
  background: var(--eh-brand);
  color: rgba(255, 255, 255, 0.68);
  padding: 4.25rem 0 1.75rem;
  margin-top: 4.5rem;
  border-top: 2px solid var(--eh-gold);
}

.site-footer h6 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.site-footer p {
  font-size: 0.875rem;
  line-height: 1.85;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  transition: color var(--tr);
}

.site-footer a:hover {
  color: var(--eh-gold);
}

.site-footer ul li {
  margin-bottom: 0.55rem;
}

.site-footer .footer-contact strong {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1.05rem;
  transition: border-color var(--tr), color var(--tr), transform var(--tr);
}

.site-footer .social-link:hover {
  border-color: var(--eh-gold);
  color: var(--eh-gold);
  transform: translateY(-2px);
}

.site-footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.site-footer .footer-tagline {
  color: var(--eh-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   Variant modal
   ========================================================================== */

.variant-modal .modal-content {
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
}

.variant-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 10px;
  opacity: 0.85;
  transition: opacity var(--tr), transform var(--tr);
}

.variant-modal__close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.variant-modal__media {
  position: relative;
  background: var(--eh-ivory);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.variant-modal__image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--r-md);
  transition: transform 0.3s ease;
}

.variant-modal__image:hover {
  transform: scale(1.04);
}

.variant-modal__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--eh-sale);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(140, 47, 47, 0.35);
  animation: pulseBadge 1.6s ease-in-out infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.variant-modal__info {
  padding: 28px 32px;
}

.variant-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--eh-ink);
  margin-bottom: 12px;
  padding-right: 40px;
  line-height: 1.4;
}

.variant-modal__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.variant-modal__price .price-current {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--eh-ink);
}

.variant-modal__price .price-old {
  font-size: 0.95rem;
  color: var(--eh-ink-soft);
  text-decoration: line-through;
}

.variant-modal__price .price-save {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(47, 93, 70, 0.1);
  color: var(--eh-success);
  font-weight: 600;
}

.variant-modal__divider {
  height: 1px;
  background: var(--eh-line);
  margin: 18px 0;
}

.variant-modal__row {
  margin-bottom: 22px;
}

.variant-modal__row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.variant-modal__row-head label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--eh-ink);
  margin: 0;
}

.variant-modal__swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
}

.variant-modal__swatch-option {
  min-width: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.variant-modal__swatch-name {
  max-width: 84px;
  color: var(--eh-ink-soft);
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--eh-line-strong);
  background: var(--eh-surface);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
  padding: 2px;
}

.swatch:hover {
  transform: scale(1.08);
  border-color: var(--eh-ink-soft);
}

.swatch__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ccc;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.swatch.is-active {
  border-color: var(--eh-brand);
  box-shadow: 0 0 0 3px rgba(62, 39, 35, 0.18);
}

.swatch.is-active::after {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.swatch.is-out {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
}

.swatch.is-out::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      transparent 45%,
      var(--eh-ink-soft) 47%, var(--eh-ink-soft) 53%,
      transparent 55%);
  border-radius: 50%;
  pointer-events: none;
}

.variant-modal__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  min-width: 52px;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eh-line-strong);
  border-radius: var(--r-sm);
  background: var(--eh-surface);
  color: var(--eh-ink);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-pill:hover:not(.is-out) {
  border-color: var(--eh-brand);
  color: var(--eh-brand);
  transform: translateY(-1px);
}

.size-pill.is-active {
  background: var(--eh-brand);
  border-color: var(--eh-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.25);
}

.size-pill.is-out {
  color: var(--eh-line-strong);
  background: var(--eh-ivory);
  cursor: not-allowed;
  position: relative;
}

.size-pill.is-out::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: var(--eh-line-strong);
  transform: rotate(-12deg);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--eh-line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--eh-surface);
}

.qty-stepper__btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--eh-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.qty-stepper__btn:hover {
  background: var(--eh-ivory);
}

.qty-stepper__btn:active {
  background: var(--eh-ivory-deep);
}

.qty-stepper input {
  width: 56px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.variant-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--eh-ivory);
  border-top: 1px solid var(--eh-line);
  gap: 16px;
}

.variant-modal__total strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--eh-ink);
  font-weight: 600;
}

.variant-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.variant-modal__actions .btn-primary {
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.variant-modal__actions .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.variant-modal__actions .btn-primary:disabled {
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .variant-modal .modal-dialog {
    margin: 0;
    align-items: flex-end;
    min-height: 100vh;
  }

  .variant-modal .modal-content {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 92vh;
  }

  .variant-modal__media {
    min-height: 220px;
    padding: 16px;
  }

  .variant-modal__image {
    max-height: 220px;
  }

  .variant-modal__info {
    padding: 20px 20px 8px;
  }

  .variant-modal__title {
    font-size: 1.05rem;
  }

  .variant-modal__price .price-current {
    font-size: 1.35rem;
  }

  .variant-modal__footer {
    padding: 14px 20px;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .variant-modal__total {
    text-align: center;
  }

  .variant-modal__actions {
    width: 100%;
  }

  .variant-modal__actions .btn {
    flex: 1;
  }
}

.variant-modal.show .modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-color-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  vertical-align: -0.15rem;
  margin-right: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Responsive polish & accessibility
   ========================================================================== */

@media (max-width: 991.98px) {
  .search-form {
    margin-top: 0.35rem;
  }

  .product-gallery {
    position: static;
  }

  .cart-summary {
    position: static;
  }

  .section-title h2,
  .section-title .h4 {
    font-size: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .header-actions .btn-link {
    padding: 0.35rem 0.4rem;
  }

  .header-actions .btn-link span.d-none {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .product-card:hover .img-wrap img,
  .category-card:hover img {
    transform: none;
  }
}
