/* ==========================================================================
   AUREVIA HOME — Modern Furniture & Refined Living
   Design System & Master Stylesheet
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', cursive;

  /* Color System */
  --color-primary: #29382f;
  --color-primary-hover: #1b2620;
  --color-primary-light: #44584c;
  --color-accent: #c48c56;
  --color-accent-soft: #f7ede2;

  --color-text-main: #232d27;
  --color-text-body: #515c54;
  --color-text-muted: #79857d;
  --color-text-light: #9faaa2;

  --color-bg-white: #ffffff;
  --color-bg-warm: #fcfbf9;
  --color-bg-subtle: #f6f5f1;
  --color-bg-card: #f7f7f7;
  --color-bg-sage-hero: #bdcfc4;
  --color-bg-promo: #f0f0ec;
  --color-bg-newsletter: #e2e9e2;
  
  --color-border: #e9e7e1;
  --color-border-subtle: #efede7;
  --color-border-dark: #29382f;

  --color-badge-sale: #df6550;
  --color-badge-sale-bg: #e56a54;
  --color-star: #e8a728;
  --color-verified: #2e8540;

  /* Elevation */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 960px;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

/* Brand Logo */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-body);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link.active {
  color: var(--color-text-main);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--color-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-main);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background-color: var(--color-bg-subtle);
  transform: translateY(-1px);
}

.cart-btn .cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 17px;
  height: 17px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

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

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 6px 0;
}

.mobile-nav-link.active {
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #bdcfc4 0%, #b8ccc0 65%, #b2c4b8 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 480px;
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  z-index: 2;
  max-width: 520px;
  padding-right: 20px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3e5044;
  margin-bottom: 16px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.08;
  font-weight: 500;
  color: #17241c;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #394b3f;
  margin-bottom: 32px;
  max-width: 420px;
}

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

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 12px rgba(41, 56, 47, 0.2);
}

.btn-pill-dark:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 56, 47, 0.25);
  color: #fff;
}

.btn-pill-dark svg {
  transition: transform var(--transition-fast);
}

.btn-pill-dark:hover svg {
  transform: translateX(4px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #233428;
  background: transparent;
  padding: 0;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background-color: #233428;
  width: 8px;
  height: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 1200 / 872;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.hero-script-accent {
  position: absolute;
  top: 15px;
  right: 25px;
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1.15;
  color: #2f4335;
  transform: rotate(-3deg);
  pointer-events: none;
  text-align: right;
}

.hero-script-accent span {
  display: block;
  font-size: 1.6rem;
}

.hero-script-accent::after {
  content: '';
  display: block;
  width: 48px;
  height: 1.5px;
  background: currentColor;
  margin-left: auto;
  margin-top: 6px;
}

/* --- Section Padding --- */
.section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.section-sm {
  padding-top: 45px;
  padding-bottom: 45px;
}

/* --- Category Cards (3-Grid) --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background-color: #f1f0eb;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 26px 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-meta {
  margin-bottom: 18px;
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 4px;
  line-height: 1.2;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-main);
  border-bottom: 1.5px solid var(--color-text-main);
  padding-bottom: 2px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.category-card:hover .category-link {
  gap: 10px;
  color: var(--color-primary-light);
}

.category-image-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #fff;
}

.category-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.category-card:hover .category-image {
  transform: scale(1.03);
}

/* --- Section Header (Centered Serif) --- */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 500;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 32px;
  height: 1px;
  background-color: #ccc9be;
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-body);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--color-text-main);
  background-color: var(--color-bg-subtle);
}

.filter-tab.active {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(41, 56, 47, 0.2);
}

/* --- Products Grid (4-Column) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 36px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  background-color: #f7f7f7;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  transition: background-color var(--transition-fast);
}

.product-card:hover .product-media {
  background-color: #f2f2f2;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

/* Badge (Discount) */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--color-badge-sale-bg);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(229, 106, 84, 0.3);
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all var(--transition-fast);
  z-index: 2;
}

.wishlist-btn:hover {
  background-color: #ffffff;
  color: #e56a54;
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

.wishlist-btn.active {
  color: #e56a54;
}

.wishlist-btn.active svg {
  fill: #e56a54;
  stroke: #e56a54;
}

/* Quick Action Overlay */
.product-actions-overlay {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 3;
}

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

.action-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.action-btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

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

.action-btn-secondary {
  background-color: #fff;
  color: var(--color-text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-btn-secondary:hover {
  background-color: var(--color-bg-subtle);
}

/* Product Info */
.product-info {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.3;
}

.product-title a:hover {
  color: var(--color-primary);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.price-current {
  color: var(--color-text-main);
}

.price-current.has-sale {
  color: var(--color-badge-sale);
}

.price-original {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: line-through;
  font-weight: 400;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.stars {
  color: var(--color-star);
  letter-spacing: 1px;
}

.review-count {
  color: var(--color-text-muted);
}

/* --- Promo Banner Section --- */
.promo-section {
  padding-top: 30px;
  padding-bottom: 50px;
}

.promo-banner {
  background-color: var(--color-bg-promo);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 320px;
  position: relative;
}

.promo-content {
  padding: 50px 55px;
}

.promo-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  color: #616e65;
  margin-bottom: 12px;
}

.promo-title {
  font-family: var(--font-serif);
  font-size: 2.9rem;
  line-height: 1.12;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.promo-desc {
  font-size: 0.98rem;
  color: var(--color-text-body);
  margin-bottom: 28px;
  max-width: 400px;
}

.promo-visual {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.promo-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center right;
}

/* --- Trust Strip / Value Proposition --- */
.trust-strip {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 40px 0;
  background-color: var(--color-bg-white);
}

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

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

.trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
}

.trust-info {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.3;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* --- Journal Section (Blog) --- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.journal-card {
  display: flex;
  flex-direction: column;
}

.journal-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-subtle);
}

.journal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.journal-card:hover .journal-img {
  transform: scale(1.03);
}

.journal-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.journal-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.journal-title a:hover {
  color: var(--color-primary);
}

.journal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-main);
  border-bottom: 1.5px solid var(--color-text-main);
  padding-bottom: 2px;
  width: fit-content;
  transition: gap var(--transition-fast);
}

.journal-card:hover .journal-link {
  gap: 10px;
}

.journal-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--color-bg-warm, #FCFBF9);
  border: 1px dashed var(--color-border, #E9E7E1);
  border-radius: var(--radius-lg, 16px);
  margin: 12px 0;
}

.journal-empty-icon {
  margin-bottom: 14px;
  color: var(--color-accent, #C48C56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.journal-empty-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.journal-empty-desc {
  font-size: 0.95rem;
  color: var(--color-text-body, #515C54);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Testimonial Section --- */
.testimonial-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.testimonial-container {
  background-color: #f7f6f2;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.testimonial-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
}

.testimonial-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 2.7;
}

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

.testimonial-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 2;
}

.testimonial-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-md);
}

.testimonial-nav-prev {
  left: 12px;
}

.testimonial-nav-next {
  right: 12px;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--color-star);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-main);
  font-style: normal;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-verified);
}

/* --- Brand Logos ("As Seen In") --- */
.brand-strip {
  padding: 45px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-subtle);
}

.brand-strip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.brand-logos-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 10px;
}

.brand-logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b473f;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.brand-logo-item:hover {
  opacity: 1;
}

.brand-logo-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

/* --- Newsletter Subscription Card --- */
.newsletter-section {
  padding: 30px 0 60px;
}

.newsletter-card {
  background-color: var(--color-bg-newsletter);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.newsletter-text {
  z-index: 2;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.15;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: #4a5c50;
  max-width: 440px;
}

.newsletter-action {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: none !important;
  background-image: none !important;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid transparent;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(41, 56, 47, 0.15);
}

.newsletter-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

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

.newsletter-subtext {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #647569;
}

.newsletter-plant-graphic {
  display: none !important;
  position: absolute;
  right: -10px;
  bottom: -15px;
  width: 150px;
  pointer-events: none;
  opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: 24px;
  max-width: 290px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-text-body);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.store-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.45;
}

.store-info-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}





/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background-color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

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

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

.cart-header-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: background-color var(--transition-fast);
}

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

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--color-text-muted);
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-card);
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  height: 28px;
}

.qty-btn {
  width: 26px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

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

.qty-val {
  width: 28px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
}

.cart-item-remove {
  font-size: 0.78rem;
  color: #c0392b;
  text-decoration: underline;
  cursor: pointer;
}

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

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition-fast);
}

.cart-checkout-btn:hover {
  background-color: var(--color-primary-hover);
}

/* --- Search Modal --- */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-top: 90px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.search-modal {
  width: 620px;
  max-width: 90vw;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
}

.search-input-wrap svg {
  color: var(--color-text-muted);
}

.search-input {
  flex: 1;
  border: none;
  font-size: 1.1rem;
  outline: none;
  color: var(--color-text-main);
}

.search-results {
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
}

/* --- Quick View Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

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

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

/* Quick View Grid */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
}

.quick-view-gallery {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-img {
  max-height: 300px;
  object-fit: contain;
}

.quick-view-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-view-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.2;
}

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

.toast {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Page Specific Styles (Catalog, Product Details, Checkout, Blog, Account)
   ========================================================================== */

/* Page Banner */
.page-banner {
  background-color: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

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

/* Category Layout */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 70px;
}

.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.filter-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 14px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

/* Product Detail Page */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-view {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-card);
  border: 2px solid transparent;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

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

.thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Color & Variant Swatches */
.swatch-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--color-border);
  transition: outline-color var(--transition-fast), transform var(--transition-fast);
}

.swatch-btn:hover {
  transform: scale(1.1);
}

.swatch-btn.active {
  outline: 2px solid var(--color-primary);
}

/* Quantity & Add to Cart row */
.add-cart-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.add-cart-row .btn-pill-dark {
  flex: 1;
  justify-content: center;
  padding: 14px 28px;
}

/* Accordion Tabs */
.accordion-group {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: left;
}

.accordion-panel {
  padding-bottom: 18px;
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Cart Page */
.cart-page-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding: 50px 0;
}

.order-summary-card {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 28px;
}

/* Checkout Page */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 50px 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-control {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
}

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

/* ==========================================================================
   Account Dashboard & Profile Styles
   ========================================================================== */
.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 50px 0 70px;
}

.account-sidebar {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  height: fit-content;
}

.account-user-card {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.account-user-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.account-user-role {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-body);
  transition: all var(--transition-fast);
}

.account-nav-item:hover {
  background-color: #fff;
  color: var(--color-primary);
}

.account-nav-item.active {
  background-color: var(--color-primary);
  color: #fff;
}

.account-nav-item svg {
  width: 18px;
  height: 18px;
}

.account-main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

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

.account-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.account-table th {
  padding: 14px 18px;
  background: var(--color-bg-warm);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.account-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    justify-content: center;
  }

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

  .promo-banner {
    grid-template-columns: 1fr;
  }

  .promo-content {
    padding: 36px 28px;
    text-align: center;
  }

  .promo-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .promo-visual {
    justify-content: center;
  }

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

  .testimonial-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-author-wrap {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    text-align: center;
  }

  .newsletter-desc {
    margin: 0 auto;
  }

  .category-layout,
  .product-detail-grid,
  .cart-page-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .brand-logos-grid {
    justify-content: center;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-plant-graphic {
    display: none;
  }

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

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

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

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .promo-title {
    font-size: 2rem;
  }
}


/* ==========================================================================
   AUREVIA Liquid Theme - Additional UI Enhancements & Integrations
   ========================================================================== */

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

.toast-message {
  background: var(--color-primary, #29382F);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-sans, sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.15));
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border, #E9E7E1);
  border-radius: var(--radius-xs, 4px);
  background: #ffffff;
  color: var(--color-text-main, #232D27);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-item:hover,
.pagination-item.active {
  background: var(--color-primary, #29382F);
  border-color: var(--color-primary, #29382F);
  color: #ffffff;
}

/* Swatch Pill */
.swatch-pill.active {
  border-color: var(--color-primary, #29382F) !important;
  background: var(--color-primary, #29382F) !important;
  color: #ffffff !important;
}

/* Product Card Wishlist */
.product-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

/* Customer Portal Responsive */
@media (max-width: 860px) {
  .customer-portal-grid {
    grid-template-columns: 1fr !important;
  }
  .customer-metrics-grid {
    grid-template-columns: 1fr !important;
  }
  .product-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .cart-page-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--color-primary, #29382f);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
  }
}


/* ============================================================
   DARK/LIGHT MODE LOGOS & THEME TOGGLE ICONS
   ============================================================ */

.logo img.theme-logo--on-dark,
.logo-img.theme-logo--on-dark,
.brand img.theme-logo--on-dark,
.brand-logo img.theme-logo--on-dark,
.brand-logo-link img.theme-logo--on-dark,
.site-logo img.theme-logo--on-dark {
  display: none;
}

html[data-theme="dark"] .logo img.theme-logo--on-light,
html[data-theme="dark"] .logo-img.theme-logo--on-light,
html[data-theme="dark"] .brand img.theme-logo--on-light,
html[data-theme="dark"] .brand-logo img.theme-logo--on-light,
html[data-theme="dark"] .brand-logo-link img.theme-logo--on-light,
html[data-theme="dark"] .site-logo img.theme-logo--on-light,
html.dark .logo img.theme-logo--on-light,
html.dark .logo-img.theme-logo--on-light,
html.dark .brand img.theme-logo--on-light,
html.dark .brand-logo img.theme-logo--on-light,
html.dark .brand-logo-link img.theme-logo--on-light,
html.dark .site-logo img.theme-logo--on-light {
  display: none;
}

html[data-theme="dark"] .logo img.theme-logo--on-dark,
html[data-theme="dark"] .logo-img.theme-logo--on-dark,
html[data-theme="dark"] .brand img.theme-logo--on-dark,
html[data-theme="dark"] .brand-logo img.theme-logo--on-dark,
html[data-theme="dark"] .brand-logo-link img.theme-logo--on-dark,
html[data-theme="dark"] .site-logo img.theme-logo--on-dark,
html.dark .logo img.theme-logo--on-dark,
html.dark .logo-img.theme-logo--on-dark,
html.dark .brand img.theme-logo--on-dark,
html.dark .brand-logo img.theme-logo--on-dark,
html.dark .brand-logo-link img.theme-logo--on-dark,
html.dark .site-logo img.theme-logo--on-dark {
  display: block;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun,
html.dark .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon,
html.dark .theme-icon-moon {
  display: block;
}

.theme-toggle svg {
  vertical-align: middle;
}

/* ---------- product tabs & storefront fixes ---------- */

.toast.show {
  visibility: visible;
  opacity: 1;
}

html[data-theme="dark"] .toast,
html.dark .toast {
  background: var(--bg-soft-2, #1e293b);
  color: var(--ink, #f1f5f9);
}

html[data-theme="dark"] .toast::before,
html.dark .toast::before {
  background: var(--ink, #f1f5f9);
}

.product-thumbs .thumb {
  padding: 0;
  overflow: hidden;
}

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

.product-tabs--horizontal {
  margin-top: 28px;
}

.accordion + .product-reviews-slot,
.product-tabs--horizontal + .product-reviews-slot {
  margin-top: 24px;
}

.product-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line, var(--color-border, #e5e7eb));
  margin-bottom: 18px;
}

.product-tabs__tab {
  padding: 12px 16px;
  font-family: var(--font-display, inherit);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted, var(--color-text-muted, #6b7280));
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-tabs__tab:hover {
  color: var(--ink, var(--color-dark, #111827));
}

.product-tabs__tab.is-active {
  color: var(--ink, var(--color-dark, #111827));
  border-bottom-color: var(--ink, var(--color-dark, #111827));
}

.product-tabs__panel[hidden] {
  display: none;
}

.product-tabs__panel {
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-tabs__panel p {
  color: var(--muted, var(--color-text-muted, #6b7280));
}

/* Full-width description tabs when positioned below the product gallery */
.product-tabs--full {
  grid-column: 1 / -1;
  margin-top: clamp(30px, 4vw, 46px);
}


/* --- Dark mode: keep floating white pills, selects, and status tints readable --- */
[data-theme="dark"] .wishlist,
[data-theme="dark"] .tile-label,
[data-theme="dark"] .slide-caption,
[data-theme="dark"] .slider-arrow,
[data-theme="dark"] .bs-chip {
  background: #1e1e1e;
  border-color: var(--line);
}

[data-theme="dark"] .slider-arrow:hover {
  background: var(--ink);
  color: var(--bg);
}

[data-theme="dark"] .mobile-panel-lang .jualify-language-switcher__select {
  background: #1e1e1e;
  color: var(--ink);
}

[data-theme="dark"] .mobile-search-bar:focus-within {
  background: #1e1e1e;
}

[data-theme="dark"] .form-status.success { background: #06281d; border-color: #065f46; color: #6ee7b7; }
[data-theme="dark"] .form-status.error { background: #2f0d0d; border-color: #991b1b; color: #fca5a5; }
[data-theme="dark"] .form-status.warning { background: #2d2205; border-color: #92400e; color: #fcd34d; }
[data-theme="dark"] .form-status.info { background: #0b1c38; border-color: #1e40af; color: #93c5fd; }


/* --- Blog: search field, toolbar, per-page selector, feature card & pagination --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.blog-search {
  max-width: 340px;
}

.page-head .blog-search {
  align-self: flex-start;
}

.blog-search__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong, var(--jc-line-strong, #e2e8f0));
  border-radius: 999px;
  background: var(--bg, var(--jc-bg, #fff));
  color: var(--ink, var(--jc-ink, #0f172a));
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.blog-search__input:focus {
  border-color: var(--ink, var(--jc-ink, #0f172a));
}

.blog-search__input::placeholder {
  color: var(--muted, var(--jc-muted, #64748b));
}

.blog-search-empty {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted, var(--jc-muted, #64748b));
  font-size: 0.92rem;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line, var(--jc-line, #e2e8f0));
}

.blog-count {
  font-size: 0.85rem;
  color: var(--muted, var(--jc-muted, #64748b));
  font-variant-numeric: tabular-nums;
}

.blog-per-page {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted, var(--jc-muted, #64748b));
}

.blog-per-page select {
  border: 1px solid var(--line-strong, var(--jc-line-strong, #cbd5e1));
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body, inherit);
  color: var(--ink, var(--jc-ink, #0f172a));
  background: var(--bg, var(--jc-bg, #fff));
  outline: none;
  cursor: pointer;
}

.blog-per-page select:focus {
  border-color: var(--ink, var(--jc-ink, #0f172a));
}

.blog-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.blog-card--feature .bc-media {
  aspect-ratio: auto;
  min-height: 280px;
}

.blog-card--feature .bc-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
}

.blog-card--feature h3 {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  line-height: 1.2;
}

.blog-pagination button {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, var(--jc-line, #e2e8f0));
  border-radius: 999px;
  background: var(--bg, var(--jc-bg, #fff));
  color: var(--ink, var(--jc-ink, #0f172a));
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-pagination button:hover:not(:disabled) {
  border-color: var(--ink, var(--jc-ink, #0f172a));
}

.blog-pagination button.current {
  background: var(--ink, var(--jc-ink, #0f172a));
  border-color: var(--ink, var(--jc-ink, #0f172a));
  color: var(--bg, var(--jc-bg, #fff));
}

.blog-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.blog-pagination .page-gap {
  padding: 0 4px;
  color: var(--muted, var(--jc-muted, #64748b));
}

@media (max-width: 720px) {
  .blog-card--feature {
    grid-template-columns: 1fr;
  }

  .blog-card--feature .bc-media {
    min-height: 0;
    aspect-ratio: 16 / 9.5;
  }
}

/* Jualify runtime aliases; the reference design above remains intact. */
:root{--paper:var(--color-bg-white);--bg:var(--color-bg-white);--bg-soft:var(--color-bg-warm);--bg-soft-2:var(--color-bg-subtle);--ink:var(--color-text-main);--ink-2:var(--color-primary);--muted:var(--color-text-body);--line:var(--color-border);--line-strong:var(--color-border);--font-display:var(--font-serif);--font-body:var(--font-sans);--btn-bg:var(--color-primary);--btn-text:#fff;--btn-primary-bg:var(--color-primary);--btn-primary-text:#fff;--btn-secondary-bg:var(--color-bg-white);--btn-secondary-text:var(--color-primary)}
[hidden]{display:none!important}
body.no-scroll,body.menu-open,body.search-open,body.cart-drawer-open{overflow:hidden}
.mobile-backdrop{visibility:hidden;opacity:0;pointer-events:none}
body.menu-open .mobile-backdrop{visibility:visible;opacity:1;pointer-events:auto}
.mobile-panel{visibility:hidden}
body.menu-open .mobile-panel{visibility:visible;transform:translateX(0)}
.search-modal-overlay{visibility:hidden;opacity:0;pointer-events:none}
body.search-open .search-modal-overlay{visibility:visible;opacity:1;pointer-events:auto;display:flex}
.cart-drawer{visibility:hidden}
body.cart-drawer-open .cart-drawer{visibility:visible;transform:translateX(0);right:0}
body.cart-drawer-open .cart-drawer-backdrop{visibility:visible;opacity:1;pointer-events:auto}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1500;max-width:calc(100vw - 32px);padding:12px 20px;border-radius:var(--radius-sm);background:var(--color-primary);color:#fff;visibility:hidden;opacity:0;pointer-events:none}
.toast.show{visibility:visible;opacity:1}.toast.is-error{background:#9c2a20}
.products-grid{grid-template-columns:repeat(var(--product-grid-columns,4),minmax(0,1fr))}
.product-media .product-card-link{display:flex;align-items:center;justify-content:center;width:100%}
.product-actions-overlay .action-btn{text-align:center;display:inline-flex;align-items:center;justify-content:center;min-height:36px}
.product-info .product-title{font-family:var(--font-sans)}
.product-card .wishlist-btn svg{width:18px;height:18px;fill:none;stroke:currentColor}
.filter-tabs[role=group]{flex-wrap:wrap}
.btn{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.btn-outline{background:transparent;color:var(--color-primary)}
.wishlist-header-slot{display:flex;align-items:center}
.site-header .header-actions{gap:12px}
.predictive-product{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--color-border)}
.predictive-thumb{width:44px;height:44px;flex-shrink:0}.predictive-thumb img{width:100%;height:100%;object-fit:contain}
.predictive-results-heading{margin-top:12px;font-weight:600}.predictive-more{display:inline-block;margin-top:12px}
.qty-stepper input{width:42px;text-align:center;padding:0;background:transparent;border:0;color:inherit}
.product-detail-grid{margin-bottom:60px}.product-detail-gallery{min-width:0}
html[data-theme=dark]{--color-bg-white:#121b16;--color-surface:#18241d;--color-bg-warm:#18241d;--color-bg-subtle:#213027;--color-bg-card:#213027;--color-text-main:#f5f4ee;--color-text-body:#c5cfc7;--color-text-muted:#b5c2b9;--color-text-light:#b5c2b9;--color-primary:#d1e0d5;--color-primary-hover:#b7cdbd;--color-primary-light:#d1e0d5;--color-accent:#dfb687;--color-border:#3d5144;--color-border-subtle:#3d5144;--color-bg-newsletter:#213027;--color-bg-promo:#213027;--btn-text:#15221a;--btn-primary-text:#15221a}
html[data-theme=dark] :is(.site-header,.mobile-panel,.search-modal,.cart-drawer,.product-card,.panel,.summary,.address-card){background:var(--color-bg-white);color:var(--color-text-main)}
html[data-theme=dark] :is(.btn,.btn-pill-dark){color:#15221a}
html[data-theme=dark] .hero-section{background:#344e3e}
html[data-theme=dark] .product-media{background:var(--color-bg-card)}
html[data-theme=dark] :is(.input,.form-control,input,select,textarea){background:var(--color-bg-white);color:var(--color-text-main);border-color:var(--color-border)}
@media(max-width:991px){.products-grid{grid-template-columns:repeat(var(--product-grid-columns-tablet,2),minmax(0,1fr))}.site-header .nav-menu{display:none}}
@media(max-width:640px){.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header .header-actions{gap:2px}.site-header .header-actions>.jualify-language-switcher,.site-header .theme-toggle{display:none}.header-inner{gap:8px}.product-detail-grid{grid-template-columns:minmax(0,1fr)!important;gap:30px!important}.gallery-thumbs{flex-wrap:wrap}.add-cart-row{flex-wrap:wrap}.product-actions-overlay{position:static;opacity:1;transform:none;padding:8px;gap:6px}.product-media{flex-wrap:wrap}.product-img{height:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

body.quick-view-open{overflow:hidden}
.quick-view-modal{position:fixed;inset:0;z-index:1300;padding:20px;display:none;align-items:center;justify-content:center;background:rgba(20,30,23,.6);backdrop-filter:blur(3px)}
.quick-view-modal.active{display:flex;visibility:visible;opacity:1}
.quick-view-content{position:relative;background:var(--color-bg-white,#fff);color:var(--color-text-main,#232d27);padding:32px;max-width:840px;width:100%;max-height:90vh;overflow-y:auto;border-radius:var(--radius-md);box-shadow:var(--shadow-lg)}
.quick-view-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:start}
.quick-view-gallery{background:var(--color-bg-card,#f7f7f7);border-radius:var(--radius-sm);padding:24px;display:flex;align-items:center;justify-content:center;min-height:300px}
.quick-view-img{max-height:320px;width:100%;object-fit:contain}
.quick-view-details{display:flex;flex-direction:column;gap:14px;min-width:0}
.quick-view-title{font-family:var(--font-serif);font-size:1.6rem;font-weight:500;line-height:1.25;color:var(--color-text-main);margin:0}
.quick-view-price-wrap{display:flex;align-items:baseline;gap:10px}
.quick-view-price-wrap .price-current{font-size:1.25rem;font-weight:700;color:var(--color-primary)}
.quick-view-price-wrap .price-original{font-size:0.95rem;color:var(--color-text-muted);text-decoration:line-through}
.quick-view-desc{font-size:13px;line-height:1.65;color:var(--color-text-body);margin:0}
.quick-view-options{display:flex;flex-direction:column;gap:12px;padding:12px 0;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border)}
.quick-view-actions{display:flex;flex-direction:column;gap:8px}
.quick-view-qty-row{display:flex;gap:12px;align-items:center}
.quick-view-qty{flex-shrink:0}
.quick-view-add-btn{flex:1;min-height:46px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;cursor:pointer}
.quick-view-add-btn:disabled{opacity:0.6;cursor:not-allowed}
.quick-view-status{font-size:12px;font-weight:600;min-height:1.4em;margin:0}
.quick-view-footer{padding-top:4px}
.quick-view-more-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--color-primary);text-decoration:underline}
.quick-view-close{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--color-bg-subtle);border:none;font-size:20px;cursor:pointer;z-index:2;color:var(--color-text-main);transition:all var(--transition-fast)}
.quick-view-close:hover{background:var(--color-primary);color:#fff}
@media(max-width:640px){
  .quick-view-content{padding:20px;max-height:92vh}
  .quick-view-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .quick-view-gallery{min-height:220px;padding:16px}
  .quick-view-img{max-height:220px}
  .quick-view-title{font-size:1.35rem}
  .quick-view-qty-row{flex-wrap:wrap}
  .quick-view-add-btn{width:100%}
}
.category-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:40px}.category-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.filter-panel .filter-checkbox{display:flex;align-items:center;gap:10px}.filter-panel h2{font-size:1.3rem}.filter-panel button{min-height:36px}.filter-panel [data-filter-close],.category-toolbar [data-filter-toggle]{display:none}
.cart-table .quantity{max-width:148px}.cart-table input{width:42px}.product-detail-grid .wishlist-btn{position:static;width:44px;height:44px;flex-shrink:0}
@media(max-width:850px){.category-layout{grid-template-columns:minmax(0,1fr)}.filter-panel{display:none}.filter-panel.open{display:block}.filter-panel [data-filter-close],.category-toolbar [data-filter-toggle]{display:inline-flex}}
@media(max-width:600px){.quick-view-content{grid-template-columns:minmax(0,1fr);padding:24px}.cart-layout{display:grid;grid-template-columns:minmax(0,1fr)}.cart-table,.cart-table tbody{display:block;min-width:0}.cart-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cart-table tr{display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.cart-table td{padding:0;min-width:0}.cart-table td:first-child{grid-column:1/-1}.cart-table td:nth-child(2){grid-column:1;grid-row:2}.cart-table td:nth-child(4){grid-column:2;grid-row:2}.cart-table td:nth-child(3){grid-column:1;grid-row:3}.cart-table td:last-child{grid-column:2;grid-row:3}.cart-table .drawer-remove{display:flex;width:44px;height:44px;align-items:center;justify-content:center}}

/* Native editable carousels retain the reference composition. */
.hero-section [data-aurevia-slide]:not(.is-active){display:none}.hero-section .hero-dots{margin:0;position:absolute;bottom:30px;left:24px}.hero-section .container{position:relative}.hero-dot.is-active{background:#233428}.hero-dot{position:relative}.hero-dot:after{content:"";position:absolute;inset:-9px}.testimonial-container{position:relative}.testimonial-container>.testimonial-nav-prev{left:0;top:50%}.testimonial-container>.testimonial-nav-next{right:0;top:50%}
html[data-theme="dark"] .hero-eyebrow,html[data-theme="dark"] .hero-title,html[data-theme="dark"] .hero-subtitle{color:var(--color-text-main)}

/* Contrast corrections retain Aurevia's forest, coral and ivory palette. */
:root{--color-text-muted:#58665b;--color-text-light:#657168;--color-badge-sale:#b44533;--color-badge-sale-bg:#b44533;--color-verified:#256b34}
.newsletter-subtext{color:#425347}.slide-count{background:#29382f;color:white}.brand-logos-grid{opacity:1}
html[data-theme="dark"]{--color-badge-sale:#ffb29f;--color-badge-sale-bg:#b44533;--color-verified:#9ee2a9}
html[data-theme="dark"] .category-card,html[data-theme="dark"] .testimonial-container{background:var(--color-bg-subtle)}
html[data-theme="dark"] .brand-logo-item,html[data-theme="dark"] .newsletter-desc,html[data-theme="dark"] .newsletter-subtext,html[data-theme="dark"] .promo-eyebrow,html[data-theme="dark"] .category-link,html[data-theme="dark"] .hero-script-accent{color:var(--color-text-main)}
html[data-theme="dark"] .action-btn-primary,html[data-theme="dark"] .filter-tab.active,html[data-theme="dark"] .newsletter-btn,html[data-theme="dark"] .announcement .container>span{background:#29382f;color:#fff}
html[data-theme="dark"] .slide-count{background:#29382f;color:#fff}
/* Native account, journal, article and contact surfaces use the same design tokens. */
.page-head h1,.jualify-contact__title,.account-content h1{font-family:var(--font-serif);font-weight:500}.account-sidebar,.account-content .panel,.jualify-contact__form{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-bg-warm)}
.account-nav a.active{background:var(--color-primary);color:var(--color-bg-white)}.blog-grid .blog-card{border-radius:var(--radius-sm)}.blog-card h2,.blog-card h3,.article-title{font-family:var(--font-serif)}.account-form input,.account-form select{color:var(--color-text-main)}
body.quick-view-open #jualify-loyalty-container,body.quick-view-open #jualify-whatsapp-button-container,body.quick-view-open [data-jualify-sales-pop]{visibility:hidden!important;pointer-events:none!important}

/* Reference account and contact layout; forms retain Jualify's native field contracts. */
.account-shell{grid-template-columns:240px minmax(0,1fr);gap:40px}.account-shell .account-sidebar{padding:24px}.account-sidebar .account-nav{border:0;background:transparent;padding:0}.account-sidebar .account-nav-item{padding:10px 0;border-radius:0;font-weight:500}.account-sidebar .account-nav-item.active{background:transparent;color:var(--color-primary);font-weight:700}.account-content .panel{padding:28px}.panel-head h2{font-size:1.8rem;font-weight:500}.page-banner .page-title,.page-banner h1{font-family:var(--font-serif);font-size:2.8rem;font-weight:500}.page-banner .container{padding-block:0}
.jualify-contact{padding-top:0}.jualify-contact__inner{max-width:var(--container-max);padding-inline:24px}.jualify-contact__intro{margin-inline:calc(50% - 50vw);padding:40px max(24px,calc((100vw - 1192px)/2));background:var(--color-bg-warm)}.jualify-contact__grid{grid-template-columns:1fr 1.2fr;gap:48px;margin-top:48px}.jualify-contact__form{padding:36px}.jualify-contact__form h2,.jualify-contact__form h3{font-family:var(--font-serif);font-size:1.8rem;font-weight:500}.jualify-contact__form input,.jualify-contact__form textarea{border-radius:var(--radius-xs);color:var(--color-text-main)}
.blog-grid.journal-grid{gap:32px}.blog-card.journal-card{border:0;background:transparent}.blog-card .journal-body{padding:18px 0}.blog-card .journal-media{border-radius:var(--radius-sm);background:var(--color-bg-warm)}.blog-card .journal-media img{width:100%;height:100%;object-fit:cover}.blog-card h3{font-size:1.6rem;font-weight:500}.article-wrap{max-width:948px}.article-wrap .article-title{font-size:3rem;font-weight:500}.article-wrap .rte h2{font-family:var(--font-serif);font-weight:500}
@media(max-width:840px){.account-shell,.jualify-contact__grid{grid-template-columns:minmax(0,1fr);gap:24px}.jualify-contact__form{padding:24px}.article-wrap .article-title,.page-banner h1{font-size:2.2rem}}
html[data-theme="dark"] .account-sidebar .account-nav-item.active{color:var(--color-text-main)}

/* Bind legacy aliases at the same specificity as the original palette rules. */
:root[data-theme="light"]{--bg:var(--color-bg-white);--bg-soft:var(--color-bg-warm);--bg-soft-2:var(--color-bg-subtle);--muted:#58665b;--text:var(--color-text-main);--line:var(--color-border)}
:root[data-theme="dark"]{--bg:var(--color-bg-white);--bg-soft:var(--color-bg-warm);--bg-soft-2:var(--color-bg-subtle);--muted:var(--color-text-muted);--text:var(--color-text-main);--line:var(--color-border)}
.product-detail-grid>div:nth-child(2)>span{color:#8b5b30!important}html[data-theme="dark"] .product-detail-grid>div:nth-child(2)>span{color:#e2b486!important}
.hero-collage .tile img{width:100%;height:100%;object-fit:cover}.hero-collage .tile{color:var(--ink)}
@media(max-width:640px){.product-media{display:block;aspect-ratio:auto}.product-media .product-card-link{aspect-ratio:var(--product-image-aspect,1)}.product-actions-overlay{inset:auto;position:static;display:flex;opacity:1;transform:none;flex-wrap:wrap}.product-actions-overlay .action-btn{font-size:11px;min-height:40px;white-space:normal;padding:8px;flex:1}}

/* Legacy editor sections share the same readable native color system. */
:root{--color-accent-readable:#8b5b30}html[data-theme="dark"]{--color-accent-readable:#e2b486}
main span[style*="color: var(--color-accent)"]{color:var(--color-accent-readable)!important}.badge{color:#232d27}.tax-price-note,.jualify-blog-categories__body>p{color:var(--muted)!important}
html[data-theme="dark"] .hero-section{background:#344e3e!important}html[data-theme="dark"] .action-btn-secondary{color:#232d27;background:#fff}html[data-theme="dark"] .announcement-bar{background:#29382f;color:#fff}
html[data-theme="dark"] .btn.btn-outline{color:var(--ink)}html[data-theme="dark"] .swatch-pill.active{background:#29382f!important;color:white!important}html[data-theme="dark"] .template-password button[type=submit]{background:#29382f!important;color:white!important}
.brand-logos-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}.brand-logo-item{justify-content:center;min-width:0}.brand-logo-item span{font-size:.65rem;letter-spacing:.12em}.newsletter-card{isolation:isolate}.newsletter-plant-graphic{z-index:-1}
@media(max-width:840px){.brand-logos-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){.brand-logos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Restore native reference card/hero geometry; optional mobile density stays configurable. */
.product-card{border:0;background:transparent;border-radius:0}.product-card .product-info{padding:16px 0 0;background:transparent}.product-card .product-title{font-family:var(--font-sans);font-size:.86rem;font-weight:500;line-height:1.4}.product-media .product-card-link{height:100%}.product-card .product-img{width:100%;height:100%;object-fit:contain}.hero-section .hero-dots{position:static;margin-top:48px}.newsletter-plant-graphic{z-index:0}.newsletter-text,.newsletter-action{position:relative;z-index:1}
@media(max-width:640px){.products-grid{grid-template-columns:repeat(var(--product-grid-columns-mobile,1),minmax(0,1fr))}.product-media .product-card-link{height:auto}.product-actions-overlay .action-btn{font-size:.85rem}.product-info .product-title{font-size:.95rem}}

html[data-theme="dark"] .announcement-bar{background:#29382f!important}html[data-theme="dark"] .badge{color:var(--ink)}
.aurevia-access-page{padding:48px 24px}.aurevia-access-page h1{font-family:var(--font-serif);font-size:2.6rem;font-weight:500}.aurevia-access-page>p{margin:18px 0 24px}.access-form{display:flex;flex-direction:column;gap:12px;margin-top:24px;text-align:left}.access-form .btn-pill-dark{justify-content:center}.maintenance-countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:28px 0}.maintenance-countdown div{padding:12px 4px;border-radius:var(--radius-sm);background:var(--color-bg-warm)}.maintenance-countdown strong{font-family:var(--font-serif);font-size:1.8rem;display:block}.maintenance-countdown span{font-size:.75rem;color:var(--muted)}

.aurevia-search-form{display:flex;gap:12px;max-width:640px;margin:0 auto 40px}.aurevia-search-form input{min-width:0;flex:1}.nav-dropdown{position:relative}.nav-dropdown summary{cursor:pointer;list-style:none}.nav-dropdown summary:after{content:"⌄";margin-left:6px}.nav-dropdown-panel{position:absolute;top:100%;left:0;min-width:180px;max-width:260px;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);z-index:20}.nav-dropdown-panel .nav-link{display:block;padding:8px 0;white-space:normal}.nav-dropdown-panel .nav-dropdown-panel{position:static;box-shadow:none;border:0;padding:0 0 0 12px}

.badge.sale,.promo-tag{background:#c48c56;color:#232d27}html[data-theme="dark"] .badge.sale,html[data-theme="dark"] .promo-tag{color:#232d27}
body.search-open #jualify-loyalty-container,body.search-open #jualify-whatsapp-button-container,body.search-open [data-jualify-sales-pop]{visibility:hidden!important;pointer-events:none!important}

.jualify-blog-categories__body>p{opacity:1!important}

.product-actions-overlay .quick-add{position:static;inset:auto;transform:none;opacity:1;visibility:visible}

.add-cart-row .qty-stepper{flex-shrink:0}.add-cart-row .wishlist-btn{position:static;flex-shrink:0}.add-cart-row #addToCartBtn{min-width:160px;min-height:48px;height:auto!important;padding:12px 18px;line-height:1.3}@media(max-width:640px){.add-cart-row{gap:10px}.add-cart-row #addToCartBtn{flex-basis:160px!important}}

/* Saved products use the reference account shell and native product cards. */
.wishlist-page-head{gap:16px;flex-wrap:wrap;margin-bottom:24px}
.wishlist-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.wishlist-products>[data-wishlist-item]{min-width:0}
.wishlist-empty{text-align:center;padding:64px 24px;border:1px solid var(--color-border);border-radius:16px}
.wishlist-empty>svg{color:var(--color-primary);margin-bottom:16px}
.wishlist-empty h3{font-family:var(--font-serif);font-size:1.8rem;margin-bottom:12px}
.wishlist-empty p{color:var(--color-text-muted);margin-bottom:24px}
@media(max-width:1100px){.wishlist-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.wishlist-products{grid-template-columns:repeat(var(--product-grid-columns-mobile,1),minmax(0,1fr))}.wishlist-empty{padding:40px 20px}}

/* ============================================================
   Aurevia Production Styles: Header, Dropdowns & Wishlist Icon
   ============================================================ */
.icon-btn.wishlist-btn-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-main, #232D27);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn.wishlist-btn-header:hover {
  background-color: var(--color-bg-warm, #FAF8F5);
  color: var(--color-primary, #232D27);
}
.icon-btn.wishlist-btn-header svg {
  display: block;
}
.icon-btn.wishlist-btn-header .wishlist-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background-color: var(--color-badge-sale, #c48c56);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.icon-btn.wishlist-btn-header .wishlist-badge[hidden],
.icon-btn.wishlist-btn-header .wishlist-badge.is-hidden {
  display: none !important;
}
html[data-theme="dark"] .icon-btn.wishlist-btn-header {
  color: var(--color-text-main, #f5f4ee);
}
html[data-theme="dark"] .icon-btn.wishlist-btn-header:hover {
  background-color: var(--color-bg-warm, #18241d);
}

.nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.nav-item.has-dropdown > .nav-link .dropdown-caret {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: 1px;
}
.nav-item.has-dropdown:hover > .nav-link .dropdown-caret,
.nav-item.has-dropdown:focus-within > .nav-link .dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.nav-item.has-dropdown:hover > .nav-dropdown-menu,
.nav-item.has-dropdown:focus-within > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu .dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: var(--color-text-main, #232D27);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu .dropdown-link:hover {
  background-color: var(--color-bg-warm, #FAF8F5);
  color: var(--color-primary, #232D27);
}
.nav-dropdown-subitem {
  position: relative;
}
.nav-dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.nav-dropdown-subitem:hover > .nav-dropdown-submenu,
.nav-dropdown-subitem:focus-within > .nav-dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

html[data-theme="dark"] .nav-dropdown-menu,
html[data-theme="dark"] .nav-dropdown-submenu {
  background: var(--color-bg-subtle, #213027);
  border-color: var(--color-border, #3d5144);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .nav-dropdown-menu .dropdown-link,
html[data-theme="dark"] .nav-dropdown-submenu .dropdown-link {
  color: var(--color-text-main, #f5f4ee);
}
html[data-theme="dark"] .nav-dropdown-menu .dropdown-link:hover,
html[data-theme="dark"] .nav-dropdown-submenu .dropdown-link:hover {
  background-color: var(--color-bg-warm, #18241d);
  color: var(--color-primary, #d1e0d5);
}


/* ============================================================
   Aurevia Cart Drawer Styles
   ============================================================ */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 27, 22, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.drawer-open .cart-drawer-backdrop,
body.cart-drawer-open .cart-drawer-backdrop,
.cart-drawer.is-open ~ .cart-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--color-bg-white, #ffffff);
  color: var(--color-text-main, #232D27);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  visibility: hidden;
  pointer-events: none;
}
body.drawer-open .cart-drawer,
body.cart-drawer-open .cart-drawer,
.cart-drawer.is-open,
.cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border, #E9E7E1);
  background: var(--color-bg-white, #ffffff);
}
.cart-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-drawer__title {
  margin: 0;
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-main, #232D27);
  line-height: 1.2;
}
.cart-drawer__count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--color-bg-warm, #FAF8F5);
  border: 1px solid var(--color-border, #E9E7E1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary, #29382F);
}
.cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #E9E7E1);
  background: transparent;
  color: var(--color-text-main, #232D27);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.cart-drawer__close:hover {
  background-color: var(--color-bg-warm, #FAF8F5);
  border-color: var(--color-primary, #29382F);
}

.cart-drawer__shipping-goal {
  padding: 14px 24px;
  background-color: var(--color-bg-warm, #FAF8F5);
  border-bottom: 1px solid var(--color-border, #E9E7E1);
}
.cart-drawer__shipping-text {
  font-size: 0.85rem;
  color: var(--color-text-main, #232D27);
  margin-bottom: 8px;
  line-height: 1.4;
}
.cart-drawer__shipping-bar {
  height: 6px;
  background-color: var(--color-border, #E9E7E1);
  border-radius: 999px;
  overflow: hidden;
}
.cart-drawer__shipping-progress {
  height: 100%;
  background-color: var(--color-primary, #29382F);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 48px 16px;
  text-align: center;
  gap: 14px;
}
.cart-drawer__empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-bg-warm, #FAF8F5);
  border: 1px solid var(--color-border, #E9E7E1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #29382F);
}
.cart-drawer__empty-text {
  font-size: 0.95rem;
  color: var(--color-text-muted, #728075);
  margin: 0;
}

.cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-drawer__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #E9E7E1);
}
.cart-drawer__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cart-drawer__item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm, 8px);
  background-color: var(--color-bg-warm, #FAF8F5);
  border: 1px solid var(--color-border, #E9E7E1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-drawer__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-drawer__item-thumb-placeholder {
  color: var(--color-text-muted, #728075);
}
.cart-drawer__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cart-drawer__item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cart-drawer__item-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-main, #232D27);
  text-decoration: none;
  word-break: break-word;
}
.cart-drawer__item-title:hover {
  color: var(--color-primary, #29382F);
  text-decoration: underline;
}
.cart-drawer__remove {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted, #728075);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}
.cart-drawer__remove:hover {
  color: #c0392b;
  background-color: rgba(192, 57, 43, 0.08);
}
.cart-drawer__item-variant {
  font-size: 0.8rem;
  color: var(--color-text-muted, #728075);
}
.cart-drawer__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cart-drawer .cart-drawer__qty-control {
  display: inline-grid;
  grid-template-columns: 34px 50px 34px;
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  gap: 0;
  padding: 0;
  border: 1px solid var(--color-border, #E9E7E1);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  height: 36px;
  background: var(--color-bg-warm, #fcfbf9);
}
.cart-drawer .cart-drawer__qty-btn {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font: 400 18px/1 var(--font-sans);
  color: var(--color-primary, #29382f);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease;
}
.cart-drawer .cart-drawer__qty-btn:hover:not(:disabled) {
  background-color: var(--color-bg-subtle, #f6f5f1);
}
.cart-drawer .cart-drawer__qty-val {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font: 600 13px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-main, #232D27);
  appearance: textfield;
  -moz-appearance: textfield;
}
.cart-drawer .cart-drawer__qty-val::-webkit-inner-spin-button,
.cart-drawer .cart-drawer__qty-val::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-drawer .cart-drawer__qty-control:focus-within {
  border-color: var(--color-primary, #29382f);
}
.cart-drawer .cart-drawer__qty-control :focus-visible {
  outline: 2px solid var(--color-accent, #c48c56);
  outline-offset: -3px;
}
.cart-drawer .cart-drawer__qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 640px), (pointer: coarse) {
  .cart-drawer .cart-drawer__qty-control {
    grid-template-columns: 40px 50px 40px;
    height: 44px;
  }
}
/* Drawer amounts use the same family as regular product prices. */
.cart-drawer__item-price {
  font-family: var(--font-sans);
  margin-left: auto;
}
.cart-drawer__item-price strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main, #232D27);
  white-space: nowrap;
}

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border, #E9E7E1);
  background: var(--color-bg-warm, #FAF8F5);
}
.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  color: var(--color-text-main, #232D27);
  margin-bottom: 6px;
}
.cart-drawer__subtotal-row span {
  font-weight: 500;
  color: var(--color-text-muted, #728075);
}
.cart-drawer__subtotal-val {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main, #232D27);
}
.cart-drawer__note {
  font-size: 0.78rem;
  color: var(--color-text-muted, #728075);
  margin: 0 0 16px;
  line-height: 1.4;
}
.cart-drawer__cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-drawer__checkout-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background-color: var(--color-primary, #29382F) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-full, 999px) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(41, 56, 47, 0.2) !important;
}
.cart-drawer__checkout-btn:hover {
  background-color: var(--color-primary-hover, #1d2821) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.cart-drawer__cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 13px 20px !important;
  background: #ffffff !important;
  color: var(--color-primary, #232D27) !important;
  border: 2px solid var(--color-primary, #232D27) !important;
  border-radius: var(--radius-full, 999px) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}
.cart-drawer__cart-btn:hover {
  background: var(--color-primary, #232D27) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .cart-drawer {
  background-color: var(--color-bg-white, #121b16);
  border-left: 1px solid var(--color-border, #3d5144);
}
html[data-theme="dark"] .cart-drawer__header {
  background-color: var(--color-bg-white, #121b16);
  border-bottom-color: var(--color-border, #3d5144);
}
html[data-theme="dark"] .cart-drawer__shipping-goal,
html[data-theme="dark"] .cart-drawer__footer {
  background-color: var(--color-bg-warm, #18241d);
  border-color: var(--color-border, #3d5144);
}
html[data-theme="dark"] .cart-drawer__item {
  border-bottom-color: var(--color-border, #3d5144);
}
html[data-theme="dark"] .cart-drawer__item-thumb {
  background-color: var(--color-bg-card, #213027);
  border-color: var(--color-border, #3d5144);
}
html[data-theme="dark"] .cart-drawer__qty-control {
  background-color: var(--color-bg-card, #213027);
  border-color: var(--color-border, #3d5144);
}
html[data-theme="dark"] .cart-drawer__cart-btn {
  background-color: transparent !important;
  color: var(--color-primary, #d1e0d5) !important;
  border-color: var(--color-primary, #d1e0d5) !important;
}
html[data-theme="dark"] .cart-drawer__cart-btn:hover {
  background-color: var(--color-primary, #d1e0d5) !important;
  color: #121b16 !important;
}

/* ============================================================
   Page Banner & Breadcrumbs (Subpages)
   ============================================================ */
.page-banner {
  background-color: var(--color-bg-warm, #FAF8F5);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--color-border, #E8E5E0);
  margin-bottom: 0;
}
.page-banner .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.page-banner .breadcrumbs {
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #767E78);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-banner .breadcrumbs a {
  color: var(--color-text-muted, #767E78);
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-banner .breadcrumbs a:hover {
  color: var(--color-primary, #232D27);
}
.page-banner .breadcrumbs .sep {
  color: var(--color-border, #d1ceca);
}
.page-banner .breadcrumbs span[aria-current="page"] {
  color: var(--color-text-main, #232D27);
  font-weight: 500;
}
.page-banner .page-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--color-text-main, #232D27);
  margin: 0 0 8px;
  line-height: 1.18;
}
.page-banner .page-subtitle {
  color: var(--color-text-muted, #767E78);
  font-size: 1rem;
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}
.page-banner--product {
  padding: 24px 0 20px;
  margin-bottom: 0;
  background-color: var(--color-bg-warm, #FAF8F5);
}

/* ============================================================
   Wishlist Item Remove Button
   ============================================================ */
.wishlist-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-sm, 8px);
  color: var(--color-text-muted, #767E78);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wishlist-remove-btn:hover {
  border-color: #be2828;
  color: #be2828;
  background-color: rgba(190, 40, 40, 0.05);
}

/* ============================================================
   Horizontal Product Tabs
   ============================================================ */
.product-tabs--horizontal {
  margin-top: 36px;
  border-top: 1px solid var(--color-border, #E8E5E0);
  padding-top: 24px;
}
.product-tabs__list {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--color-border, #E8E5E0);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-tabs__list::-webkit-scrollbar {
  display: none;
}
.product-tabs__tab {
  background: none;
  border: none;
  padding: 10px 4px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted, #767E78);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.product-tabs__tab:hover {
  color: var(--color-primary, #232D27);
}
.product-tabs__tab.is-active {
  color: var(--color-primary, #232D27);
  font-weight: 600;
}
.product-tabs__tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary, #232D27);
}
.product-tabs__panel {
  color: var(--color-text-body, #3d4741);
  font-size: 0.95rem;
  line-height: 1.7;
}
.product-tabs__panel[hidden] {
  display: none !important;
}

/* ============================================================
   Catalog Filter Rail & Layout (semua-produk)
   ============================================================ */
.catalog-section {
  padding-top: 40px;
  padding-bottom: 80px;
}
.collection-layout,
.category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 0;
  padding-bottom: 0;
}
.catalog-filter-rail {
  position: sticky;
  top: 96px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-md, 14px);
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(35, 45, 39, 0.04);
}
.catalog-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #E8E5E0);
  margin-bottom: 22px;
}
.catalog-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-main, #232D27);
}
.catalog-filter-title svg {
  color: var(--color-accent, #C48C56);
}
.catalog-filter-reset {
  font-size: 0.8rem;
  color: var(--color-text-muted, #6E7671);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.catalog-filter-reset:hover {
  color: var(--color-primary, #232D27);
  text-decoration: underline;
}
.catalog-filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border, #E8E5E0);
}
.catalog-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.catalog-filter-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-main, #232D27);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.catalog-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalog-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs, 8px);
  font-size: 0.9rem;
  color: var(--color-text-body, #3d4741);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  margin: 0;
}
.catalog-filter-option:hover {
  background: var(--color-bg-warm, #FAF8F5);
  color: var(--color-text-main, #232D27);
}
.catalog-filter-option.is-active {
  background: rgba(35, 45, 39, 0.06);
  color: var(--color-primary, #232D27);
  font-weight: 600;
}
.catalog-filter-option input[type="radio"] {
  accent-color: var(--color-primary, #232D27);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.catalog-filter-option__label {
  flex: 1;
  line-height: 1.35;
}
.catalog-filter-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted, #6E7671);
  background: var(--color-bg-warm, #FAF8F5);
  border: 1px solid var(--color-border, #E8E5E0);
  padding: 1px 8px;
  border-radius: 999px;
}
.catalog-price-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.catalog-price-input,
.catalog-facet-select {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.86rem;
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-xs, 8px);
  background: var(--color-bg-warm, #FAF8F5);
  color: var(--color-text-main, #232D27);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.catalog-price-input:focus,
.catalog-facet-select:focus {
  outline: none;
  border-color: var(--color-primary, #232D27);
  background: #ffffff;
}
.catalog-price-sep {
  color: var(--color-text-muted, #6E7671);
  font-weight: 500;
}
.catalog-apply-btn {
  width: 100%;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-xs, 8px);
  background: var(--color-primary, #232D27);
  color: #ffffff;
  border: 1px solid var(--color-primary, #232D27);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.catalog-apply-btn:hover {
  background: #18201b;
}
.collection-main {
  min-width: 0;
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: var(--color-bg-warm, #FAF8F5);
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-sm, 10px);
}
.collection-toolbar__count {
  font-size: 0.92rem;
  color: var(--color-text-body, #3d4741);
}
.collection-toolbar__count strong {
  color: var(--color-text-main, #232D27);
  font-weight: 600;
}
.collection-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.collection-toolbar__sort label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-main, #232D27);
}
.catalog-sort-select {
  padding: 8px 34px 8px 14px;
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-xs, 8px);
  background: var(--color-surface, #ffffff);
  color: var(--color-text-main, #232D27);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232D27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
.collection-main .catalog-products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ============================================================
   Article Sidebar & Editorial Detail Layout
   ============================================================ */
.article-page-banner {
  padding-bottom: 36px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.article-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-primary, #232D27);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.article-category-pill:hover {
  opacity: 0.9;
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #6E7671);
  font-weight: 500;
}
.article-hero-title {
  margin-top: 4px;
  max-width: 24ch;
  line-height: 1.2;
}
.article-reader-section {
  padding-top: 44px;
  padding-bottom: 88px;
}
.article-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: start;
}
.article-main-body {
  min-width: 0;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-md, 14px);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 10px 30px rgba(35, 45, 39, 0.03);
}
.article-featured-media {
  margin: 0 0 36px;
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  border: 1px solid var(--color-border, #E8E5E0);
  background: var(--color-bg-warm, #FAF8F5);
  box-shadow: 0 12px 32px rgba(35, 45, 39, 0.06);
}
.article-featured-media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.article-content.rte {
  color: var(--color-text-body, #3d4741);
  font-size: 1.06rem;
  line-height: 1.88;
}
.article-content.rte p {
  margin: 0 0 1.35em;
}
.article-content.rte h2,
.article-content.rte h3 {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  color: var(--color-text-main, #232D27);
  line-height: 1.3;
  margin: 1.8em 0 0.7em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--color-border, #E8E5E0);
}
.article-content.rte h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
}
.article-content.rte h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
}
.article-content.rte ul,
.article-content.rte ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}
.article-content.rte li {
  margin-bottom: 0.5em;
}
.article-content.rte blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  background: var(--color-bg-warm, #FAF8F5);
  border-left: 4px solid var(--color-accent, #C48C56);
  border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0;
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--color-text-main, #232D27);
}
.article-bottom-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-border, #E8E5E0);
}
.article-bottom-tags__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main, #232D27);
}
.article-bottom-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Article Share Bar */
.article-share-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border, #E8E5E0);
}
.article-share-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  background: var(--color-bg-warm, #F8F7F4);
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-md, 14px);
}
.article-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-share-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main, #232D27);
  font-family: var(--font-sans);
}
.article-share-label-icon {
  color: var(--color-accent, #C48C56);
}
.article-share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  background: var(--color-surface, #FFFFFF);
  color: var(--color-text-main, #232D27);
  border: 1px solid var(--color-border, #E8E5E0);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.article-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.article-share-btn .article-share-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.article-share-btn:hover .article-share-icon {
  transform: scale(1.1);
}
.share-btn--whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}
.share-btn--facebook:hover {
  background: #1877F2;
  color: #FFFFFF;
  border-color: #1877F2;
}
.share-btn--x:hover {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}
.share-btn--linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF;
  border-color: #0A66C2;
}
.share-btn--telegram:hover {
  background: #0088CC;
  color: #FFFFFF;
  border-color: #0088CC;
}
.share-btn--copy {
  background: var(--color-primary, #232D27);
  color: #FFFFFF;
  border-color: var(--color-primary, #232D27);
}
.share-btn--copy:hover {
  background: var(--color-accent, #C48C56);
  border-color: var(--color-accent, #C48C56);
  color: #FFFFFF;
}
.share-btn--copy.is-copied {
  background: #2E7D32 !important;
  border-color: #2E7D32 !important;
  color: #FFFFFF !important;
}
@media (max-width: 640px) {
  .article-share-bar {
    padding: 16px 18px;
  }
  .article-share-buttons {
    gap: 8px;
  }
  .article-share-btn {
    flex: 1 1 calc(50% - 8px);
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}
html[data-theme="dark"] .article-share-bar,
html.dark .article-share-bar {
  background: var(--color-bg-alt, #1D2420);
  border-color: var(--color-border, #2E3832);
}
html[data-theme="dark"] .article-share-btn,
html.dark .article-share-btn {
  background: var(--color-bg-subtle, #161D19);
  color: var(--color-text-main, #EDEDED);
  border-color: var(--color-border, #2E3832);
}
html[data-theme="dark"] .article-share-label,
html.dark .article-share-label {
  color: var(--color-text-main, #EDEDED);
}
html[data-theme="dark"] .share-btn--copy,
html.dark .share-btn--copy {
  background: var(--color-accent, #C48C56);
  color: #121814;
  border-color: var(--color-accent, #C48C56);
}
html[data-theme="dark"] .share-btn--copy:hover,
html.dark .share-btn--copy:hover {
  background: #D59F69;
  border-color: #D59F69;
}
.article-footer-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border, #E8E5E0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.article-back-btn {
  display: inline-flex;
  padding: 10px 22px;
  font-size: 0.9rem;
  text-decoration: none;
}
.article-more-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary, #232D27);
}
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget,
.sidebar-block {
  background: var(--color-bg-warm, #FAF8F5);
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-md, 14px);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(35, 45, 39, 0.03);
}
.sidebar-widget-title,
.sidebar-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-main, #232D27);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border, #E8E5E0);
}
.sidebar-search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.sidebar-search-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-xs, 8px);
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--color-text-main, #232D27);
}
.sidebar-search-input:focus {
  outline: none;
  border-color: var(--color-primary, #232D27);
}
.sidebar-search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted, #6E7671);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-search-submit:hover {
  color: var(--color-primary, #232D27);
}
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-category-item {
  border-bottom: 1px dashed var(--color-border, #E8E5E0);
  padding-bottom: 10px;
}
.sidebar-category-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-body, #3d4741);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.sidebar-category-link:hover {
  color: var(--color-primary, #232D27);
  font-weight: 600;
}
.sidebar-category-badge {
  background: #ffffff;
  border: 1px solid var(--color-border, #E8E5E0);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text-muted, #6E7671);
}
.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-related-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.entry-rank {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent, #C48C56);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-related-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-xs, 8px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border, #E8E5E0);
  display: block;
}
.sidebar-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-related-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main, #232D27);
  line-height: 1.35;
  margin: 0 0 4px;
}
.sidebar-related-title a {
  color: inherit;
  text-decoration: none;
}
.sidebar-related-title a:hover {
  color: var(--color-accent, #C48C56);
}
.sidebar-related-date {
  font-size: 0.78rem;
  color: var(--color-text-muted, #767E78);
  display: block;
}
.sidebar-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 13px;
  background: #ffffff;
  border: 1px solid var(--color-border, #E8E5E0);
  border-radius: var(--radius-full, 999px);
  color: var(--color-text-body, #3d4741);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.16s ease;
}
.sidebar-tag .tag-hash {
  color: var(--color-accent, #C48C56);
  font-weight: 700;
}
.sidebar-tag--primary {
  background: var(--color-primary, #232D27);
  border-color: var(--color-primary, #232D27);
  color: #ffffff;
}
.sidebar-tag:hover {
  background: var(--color-primary, #232D27);
  color: #ffffff;
  border-color: var(--color-primary, #232D27);
  transform: translateY(-1px);
}
.sidebar-tag:hover .tag-hash {
  color: #ffffff;
}
.sidebar-tags-empty {
  font-size: 0.85rem;
  color: var(--color-text-muted, #6E7671);
}

@media (max-width: 991px) {
  .collection-layout,
  .category-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
  }
  .collection-main .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .article-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .collection-layout,
  .category-layout,
  .catalog-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .catalog-filter-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .collection-main .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .collection-toolbar {
    padding: 12px 14px;
  }
}

/* --- Aurevia Image Lazy Loading & Soft Spinner Animation --- */
@keyframes aurevia-spinner-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes aurevia-spinner-pulse {
  0% {
    opacity: 0.65;
  }
  100% {
    opacity: 0.95;
  }
}

.aurevia-image-spinner {
  position: fixed;
  z-index: 9999;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  border: 2.5px solid rgba(41, 56, 47, 0.18);
  border-top-color: var(--color-primary, #29382F);
  border-right-color: var(--color-accent, #C48C56);
  animation: aurevia-spinner-spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite, aurevia-spinner-pulse 1.4s ease-in-out infinite alternate;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .aurevia-image-spinner {
  border-color: rgba(196, 140, 86, 0.2);
  border-top-color: var(--color-accent, #C48C56);
  border-right-color: #e2b486;
}

@media (prefers-reduced-motion: reduce) {
  .aurevia-image-spinner {
    animation: aurevia-spinner-pulse 2s ease-in-out infinite alternate;
  }
}

img[data-aurevia-image-state="loading"] {
  opacity: 0.72;
  transition: opacity 0.35s ease-in-out;
}

img[data-aurevia-image-state="loaded"] {
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
}

/* ============================================================
   Compact & Refined Product Detail Page
   ============================================================ */
.page-banner--product {
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--color-border, #E9E7E1);
  background: var(--color-bg-warm, #FCFBF9);
}

.page-banner--product .breadcrumbs {
  margin: 0 !important;
  font-size: 0.82rem;
}

.product-detail-container {
  padding: 28px 24px 56px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 4vw, 56px);
  align-items: start;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.product-detail-gallery {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.product-detail-gallery .gallery-main-view {
  background: var(--color-bg-subtle, #F5F3EE);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: var(--product-image-aspect, 1);
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border, #E9E7E1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.product-detail-gallery .gallery-main-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-detail-gallery .gallery-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.product-detail-gallery .thumb-btn {
  width: 76px;
  height: 76px;
  border: 2px solid var(--color-border, #E9E7E1);
  border-radius: 10px;
  background: var(--color-bg-subtle, #F5F3EE);
  padding: 5px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-gallery .thumb-btn:hover {
  border-color: var(--color-primary, #29382F);
  transform: translateY(-2px);
}

.product-detail-gallery .thumb-btn.active {
  border-color: var(--color-primary, #29382F);
  box-shadow: 0 0 0 3px rgba(41, 56, 47, 0.15);
}

.product-detail-gallery .thumb-btn img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-summary-panel {
  min-width: 0;
}

.product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.product-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent, #C48C56);
}

.product-sku-badge {
  font-size: 0.74rem;
  color: var(--color-text-muted, #767E78);
  background: var(--color-bg-subtle, #F5F3EE);
  border: 1px solid var(--color-border, #E9E7E1);
  padding: 2px 8px;
  border-radius: 999px;
}

.product-sku-badge strong {
  font-weight: 600;
  color: var(--color-text-main, #232D27);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.product-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  font-weight: 600;
  color: var(--color-text-main, #232D27);
  margin: 0 0 10px;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.product-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-status-sep {
  color: var(--color-border, #E9E7E1);
}

.product-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-verified, #2E6B47);
  background: rgba(46, 107, 71, 0.08);
  border: 1px solid rgba(46, 107, 71, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
}

.product-stock-pill .stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.product-stock-pill.is-sold-out {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.2);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border, #E9E7E1);
}

.product-price-current {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main, #232D27);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product-price-compare {
  font-size: 0.98rem;
  color: var(--color-text-light, #8B938D);
  text-decoration: line-through;
  font-weight: 500;
}

.product-sale-pill {
  position: static !important;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(196, 140, 86, 0.15);
  color: #9a6330;
}

.product-summary-lead {
  color: var(--color-text-body, #515C54);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

.product-purchase-form {
  margin-bottom: 20px;
}

.product-variant-selector {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--color-bg-warm, #FCFBF9);
  border: 1px solid var(--color-border, #E9E7E1);
  border-radius: 10px;
}

.product-variant-selector--multi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.product-variant-selector .option-select-group {
  margin-bottom: 0;
}

.product-variant-selector:not(.product-variant-selector--multi) .option-select-group + .option-select-group {
  margin-top: 10px;
}

.product-variant-selector .option-select-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-body, #515C54);
  margin-bottom: 6px;
}

.product-variant-selector .option-selected-val {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary, #29382F);
  background: var(--color-bg-white, #FFFFFF);
  border: 1px solid var(--color-border, #E9E7E1);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.73rem;
}

.product-variant-selector .option-select {
  height: 40px;
  padding: 0 34px 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--color-bg-white, #FFFFFF);
  border: 1px solid var(--color-border, #E9E7E1);
}

.product-variant-pills-wrap {
  margin-bottom: 16px;
}

.product-variant-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-variant-pills .swatch-pill {
  padding: 7px 14px;
  border: 1px solid var(--color-border, #E9E7E1);
  border-radius: 8px;
  background: var(--color-bg-white, #FFFFFF);
  color: var(--color-text-main, #232D27);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.product-variant-pills .swatch-pill.active {
  border-color: var(--color-primary, #29382F);
  background: var(--color-primary, #29382F);
  color: #ffffff;
}

.product-summary-panel .add-cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.product-summary-panel .qty-stepper {
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border, #E9E7E1);
  background: var(--color-bg-white, #FFFFFF);
}

.product-summary-panel .qty-stepper .qty-btn {
  width: 34px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text-main, #232D27);
}

.product-summary-panel .qty-stepper input[type="number"] {
  width: 38px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  color: var(--color-text-main, #232D27);
  -moz-appearance: textfield;
}

.product-summary-panel .add-to-cart-submit {
  flex: 1;
  height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  justify-content: center;
}

.product-summary-panel .wishlist-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.product-summary-panel .product-tabs--horizontal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #E9E7E1);
}

.product-summary-panel .product-tabs__list {
  gap: 18px;
  margin-bottom: 14px;
}

.product-summary-panel .product-tabs__tab {
  padding: 6px 2px 10px;
  font-size: 0.86rem;
}

.product-summary-panel .product-tabs__panel {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--color-text-body, #515C54);
}

.product-summary-panel .product-tabs__panel h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main, #232D27);
  margin: 12px 0 4px;
}

.product-summary-panel .product-tabs__panel h3:first-child {
  margin-top: 0;
}

.product-summary-panel .product-tabs__panel p {
  margin: 0 0 8px;
}

.product-summary-panel .product-tabs__panel ul,
.product-summary-panel .product-tabs__panel ol {
  margin: 4px 0 10px;
  padding-left: 18px;
}

.product-summary-panel .product-tabs__panel li {
  margin-bottom: 3px;
}

html[data-theme="dark"] .page-banner--product,
html[data-theme="dark"] .product-variant-selector {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .product-variant-selector .option-select,
html[data-theme="dark"] .product-variant-selector .option-selected-val,
html[data-theme="dark"] .product-summary-panel .qty-stepper {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .product-detail-gallery .gallery-main-view,
html.dark .product-detail-gallery .gallery-main-view,
[data-theme="dark"] .product-detail-gallery .gallery-main-view {
  background: #18221c;
  border-color: #2a3630;
}

html[data-theme="dark"] .product-detail-gallery .thumb-btn,
html.dark .product-detail-gallery .thumb-btn,
[data-theme="dark"] .product-detail-gallery .thumb-btn {
  background: #18221c;
  border-color: #2a3630;
}

html[data-theme="dark"] .product-detail-gallery .thumb-btn.active,
html.dark .product-detail-gallery .thumb-btn.active,
[data-theme="dark"] .product-detail-gallery .thumb-btn.active {
  border-color: #c48c56;
  box-shadow: 0 0 0 3px rgba(196, 140, 86, 0.25);
}

.product-reviews-section {
  padding-block: 56px 64px;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 100px;
}

.product-reviews-section .container {
  max-width: var(--container-max);
  padding-inline: 24px;
}

html[data-theme="dark"] .product-reviews-section,
html.dark .product-reviews-section,
[data-theme="dark"] .product-reviews-section {
  border-top-color: #2a3630;
}

.product-rating .review-count {
  color: var(--color-text-muted);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.product-rating .review-count:hover {
  color: var(--color-primary);
}

html[data-theme="dark"] .product-rating .review-count:hover {
  color: #c48c56;
}

@media (max-width: 991px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .product-detail-gallery {
    position: static;
  }
  .product-detail-gallery .gallery-main-view {
    border-radius: 12px;
  }
}

.product-gallery {
  min-width: 0;
}

.product-main-art .product-detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbnail-carousel {
  width: 100%;
  min-width: 0;
}

.product-gallery:not(.product-detail-gallery) .product-thumbnail-carousel {
  margin-top: 12px;
}

.product-gallery [data-product-thumbnails] {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-gallery [data-product-thumbnails] .thumb {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: var(--product-image-aspect, 1);
  scroll-snap-align: start;
  padding: 5px;
  margin: 0;
}

.product-gallery [data-product-thumbnails] .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery [data-product-thumbnails] .thumb:hover {
  transform: none;
}

.product-gallery [data-product-thumbnails] .thumb:focus-visible {
  outline: 2px solid var(--color-primary, var(--ink));
  outline-offset: -4px;
}

.product-thumbnail-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.product-thumbnail-nav[hidden] {
  display: none;
}

.product-thumbnail-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border, var(--line));
  border-radius: var(--radius-sm);
  background: var(--color-bg-card, var(--bg-soft));
  color: var(--color-primary, var(--ink));
  cursor: pointer;
}

.product-thumbnail-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ============================================================
   Storefront Quality & Polish Overrides
   ============================================================ */

/* 1. Sticky Header */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: var(--color-bg-white) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Products Grid Card Hover: No white box or white background */
.catalog-products-grid .product-card,
.products-grid .product-card,
.product-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.catalog-products-grid .product-card:hover,
.products-grid .product-card:hover,
.product-card:hover {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.catalog-products-grid .product-card:hover .product-media,
.products-grid .product-card:hover .product-media,
.product-card:hover .product-media {
  background-color: #ebeae4 !important;
}
.catalog-products-grid .product-card .product-info,
.products-grid .product-card .product-info,
.product-card .product-info {
  background: transparent !important;
}

/* 3. Subpages Heading Container Area Background */
.page-banner,
.page-banner--product,
.article-page-banner,
.cart-heading,
.account-banner,
.customer-banner {
  background-color: var(--color-page-banner-bg, #f1f0eb) !important;
}
html[data-theme="dark"] .page-banner,
html[data-theme="dark"] .page-banner--product,
html[data-theme="dark"] .article-page-banner {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
.page-banner {
  padding: 40px 0;
  margin-bottom: 28px;
}
.page-banner .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-banner .breadcrumbs {
  margin-bottom: 6px;
}
.page-banner .page-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}
.page-banner .page-subtitle {
  color: var(--color-text-body);
  font-size: 0.95rem;
  margin: 0;
}
.page-banner--product {
  padding: 16px 0;
  margin-bottom: 32px;
}

/* 4. Search Modal Empty State & Not Found State */
.search-modal {
  max-width: 680px;
}
.search-empty-state,
.search-not-found-state {
  text-align: center;
  padding: 36px 20px 44px;
}
.search-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-warm, #FCFBF9);
  color: var(--color-accent, #C48C56);
  margin-bottom: 16px;
}
.search-empty-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin: 0 0 8px;
}
.search-empty-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted, #6E7671);
  margin: 0 0 20px;
  max-width: 420px;
  margin-inline: auto;
}
.search-suggestions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.search-suggestions-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.search-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.search-tag-chip {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #E9E7E1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-tag-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* 5. Cart Drawer: View Cart Text Link & Clear Variant Badge */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.cart-drawer__view-cart-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-left: 12px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--color-primary, #232D27) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: opacity var(--transition-fast) !important;
}
.cart-drawer__view-cart-link:hover {
  opacity: 0.75 !important;
  background: transparent !important;
  color: var(--color-primary, #232D27) !important;
}
.cart-drawer__view-cart-link svg {
  transition: transform var(--transition-fast);
}
.cart-drawer__view-cart-link:hover svg {
  transform: translateX(3px);
}
.cart-drawer__item-variant {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-text-muted, #6E7671);
  background: #f4f3ef;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
  font-weight: 500;
  width: fit-content;
}

/* 7. Blog: Strict 3-column uniform grid (no large featured card) */
.blog-grid,
.journal-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 32px !important;
}
.blog-card,
.journal-card {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
}
.blog-card:first-child,
.journal-card:first-child {
  grid-column: auto !important;
  grid-row: auto !important;
}
@media (max-width: 991px) {
  .blog-grid,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.cart-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  border: 1px solid var(--color-border, #E9E7E1) !important;
  border-radius: var(--radius-xs, 6px) !important;
  overflow: hidden !important;
  background: var(--color-surface, #ffffff) !important;
  vertical-align: middle !important;
}
.cart-qty-stepper button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  color: var(--color-text-main, #232D27) !important;
  user-select: none !important;
  transition: background-color 0.15s ease !important;
}
.cart-qty-stepper button:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}
.cart-qty-stepper input[type="number"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  line-height: 36px !important;
  color: var(--color-text-main, #232D27) !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  outline: none !important;
}
.cart-qty-stepper input::-webkit-outer-spin-button,
.cart-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .blog-grid,
  .journal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Aurevia Dark Mode: Blog, Blog Categories & Article Pages
   ========================================================================== */
html[data-theme="dark"],
html.dark,
[data-theme="dark"] {
  --color-surface: #18241d;
}

/* Page Banner */
html[data-theme="dark"] .page-banner .page-title,
html.dark .page-banner .page-title,
[data-theme="dark"] .page-banner .page-title,
html[data-theme="dark"] .page-banner h1,
html.dark .page-banner h1,
[data-theme="dark"] .page-banner h1 {
  color: var(--color-text-main, #f5f4ee) !important;
}
html[data-theme="dark"] .page-banner .page-subtitle,
html.dark .page-banner .page-subtitle,
[data-theme="dark"] .page-banner .page-subtitle {
  color: var(--color-text-body, #c5cfc7) !important;
}
html[data-theme="dark"] .page-banner .breadcrumbs,
html[data-theme="dark"] .page-banner .breadcrumbs a,
html.dark .page-banner .breadcrumbs,
html.dark .page-banner .breadcrumbs a,
[data-theme="dark"] .page-banner .breadcrumbs,
[data-theme="dark"] .page-banner .breadcrumbs a {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .page-banner .breadcrumbs span:last-child,
html.dark .page-banner .breadcrumbs span:last-child,
[data-theme="dark"] .page-banner .breadcrumbs span:last-child {
  color: var(--color-text-main, #f5f4ee) !important;
}

/* Blog Toolbar & Search */
html[data-theme="dark"] .blog-count,
html.dark .blog-count,
[data-theme="dark"] .blog-count {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .blog-search__input,
html.dark .blog-search__input,
[data-theme="dark"] .blog-search__input {
  background: var(--color-bg-warm, #18241d) !important;
  color: var(--color-text-main, #f5f4ee) !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .blog-search__input::placeholder,
html.dark .blog-search__input::placeholder,
[data-theme="dark"] .blog-search__input::placeholder {
  color: var(--color-text-muted, #b5c2b9) !important;
}

/* Blog Cards */
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .journal-card,
html.dark .blog-card,
html.dark .journal-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .journal-card {
  background: var(--color-bg-card, #18241d) !important;
  border: 1px solid var(--color-border, #3d5144) !important;
  color: var(--color-text-body, #c5cfc7) !important;
}
html[data-theme="dark"] .blog-card .bc-media,
html[data-theme="dark"] .blog-card .journal-media,
html.dark .blog-card .bc-media,
html.dark .blog-card .journal-media,
[data-theme="dark"] .blog-card .bc-media,
[data-theme="dark"] .blog-card .journal-media {
  background: #121b16 !important;
}
html[data-theme="dark"] .blog-card .post-meta,
html[data-theme="dark"] .journal-card .post-meta,
html.dark .blog-card .post-meta,
html.dark .journal-card .post-meta,
[data-theme="dark"] .blog-card .post-meta,
[data-theme="dark"] .journal-card .post-meta {
  color: var(--color-accent, #dfb687) !important;
}
html[data-theme="dark"] .blog-card h3,
html[data-theme="dark"] .blog-card h3 a,
html[data-theme="dark"] .journal-card h2,
html[data-theme="dark"] .journal-card h2 a,
html[data-theme="dark"] .journal-card h3,
html[data-theme="dark"] .journal-card h3 a,
html.dark .blog-card h3,
html.dark .blog-card h3 a,
html.dark .journal-card h2,
html.dark .journal-card h2 a,
html.dark .journal-card h3,
html.dark .journal-card h3 a,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .blog-card h3 a,
[data-theme="dark"] .journal-card h2,
[data-theme="dark"] .journal-card h2 a,
[data-theme="dark"] .journal-card h3,
[data-theme="dark"] .journal-card h3 a {
  color: var(--color-text-main, #f5f4ee) !important;
}
html[data-theme="dark"] .blog-card p,
html[data-theme="dark"] .journal-card p,
html.dark .blog-card p,
html.dark .journal-card p,
[data-theme="dark"] .blog-card p,
[data-theme="dark"] .journal-card p {
  color: var(--color-text-body, #c5cfc7) !important;
}
html[data-theme="dark"] .blog-card .text-link,
html[data-theme="dark"] .journal-card .text-link,
html.dark .blog-card .text-link,
html.dark .journal-card .text-link,
[data-theme="dark"] .blog-card .text-link,
[data-theme="dark"] .journal-card .text-link {
  color: var(--color-accent, #dfb687) !important;
}

/* Blog Category Directory */
html[data-theme="dark"] .jualify-blog-categories__card,
html.dark .jualify-blog-categories__card,
[data-theme="dark"] .jualify-blog-categories__card {
  background: var(--color-bg-card, #18241d) !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .jualify-blog-categories__image,
html.dark .jualify-blog-categories__image,
[data-theme="dark"] .jualify-blog-categories__image {
  background: #121b16 !important;
}
html[data-theme="dark"] .jualify-blog-categories__body h2,
html.dark .jualify-blog-categories__body h2,
[data-theme="dark"] .jualify-blog-categories__body h2 {
  color: var(--color-text-main, #f5f4ee) !important;
}
html[data-theme="dark"] .jualify-blog-categories__body p,
html.dark .jualify-blog-categories__body p,
[data-theme="dark"] .jualify-blog-categories__body p {
  color: var(--color-text-body, #c5cfc7) !important;
}

/* Article Page Content */
html[data-theme="dark"] .article-category-pill,
html.dark .article-category-pill,
[data-theme="dark"] .article-category-pill {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-accent, #dfb687) !important;
  border: 1px solid var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .article-meta-item,
html.dark .article-meta-item,
[data-theme="dark"] .article-meta-item {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .article-hero-title,
html.dark .article-hero-title,
[data-theme="dark"] .article-hero-title {
  color: var(--color-text-main, #f5f4ee) !important;
}
html[data-theme="dark"] .article-main-body,
html.dark .article-main-body,
[data-theme="dark"] .article-main-body {
  background: var(--color-bg-card, #18241d) !important;
  border-color: var(--color-border, #3d5144) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .article-featured-media,
html.dark .article-featured-media,
[data-theme="dark"] .article-featured-media {
  background: #121b16 !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .article-content.rte,
html.dark .article-content.rte,
[data-theme="dark"] .article-content.rte {
  color: var(--color-text-body, #c5cfc7) !important;
}
html[data-theme="dark"] .article-content.rte h1,
html[data-theme="dark"] .article-content.rte h2,
html[data-theme="dark"] .article-content.rte h3,
html[data-theme="dark"] .article-content.rte h4,
html[data-theme="dark"] .article-content.rte h5,
html[data-theme="dark"] .article-content.rte h6,
html.dark .article-content.rte h1,
html.dark .article-content.rte h2,
html.dark .article-content.rte h3,
html.dark .article-content.rte h4,
html.dark .article-content.rte h5,
html.dark .article-content.rte h6,
[data-theme="dark"] .article-content.rte h1,
[data-theme="dark"] .article-content.rte h2,
[data-theme="dark"] .article-content.rte h3,
[data-theme="dark"] .article-content.rte h4,
[data-theme="dark"] .article-content.rte h5,
[data-theme="dark"] .article-content.rte h6 {
  color: var(--color-text-main, #f5f4ee) !important;
  border-bottom-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .article-content.rte p,
html[data-theme="dark"] .article-content.rte li,
html[data-theme="dark"] .article-content.rte span,
html.dark .article-content.rte p,
html.dark .article-content.rte li,
html.dark .article-content.rte span,
[data-theme="dark"] .article-content.rte p,
[data-theme="dark"] .article-content.rte li,
[data-theme="dark"] .article-content.rte span {
  color: var(--color-text-body, #c5cfc7) !important;
}
html[data-theme="dark"] .article-content.rte strong,
html[data-theme="dark"] .article-content.rte b,
html.dark .article-content.rte strong,
html.dark .article-content.rte b,
[data-theme="dark"] .article-content.rte strong,
[data-theme="dark"] .article-content.rte b {
  color: var(--color-text-main, #f5f4ee) !important;
}
html[data-theme="dark"] .article-content.rte a,
html.dark .article-content.rte a,
[data-theme="dark"] .article-content.rte a {
  color: var(--color-accent, #dfb687) !important;
}
html[data-theme="dark"] .article-content.rte blockquote,
html.dark .article-content.rte blockquote,
[data-theme="dark"] .article-content.rte blockquote {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-text-main, #f5f4ee) !important;
  border-left-color: var(--color-accent, #dfb687) !important;
}
html[data-theme="dark"] .article-bottom-tags__label,
html.dark .article-bottom-tags__label,
[data-theme="dark"] .article-bottom-tags__label {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .article-bottom-tags .sidebar-tag,
html.dark .article-bottom-tags .sidebar-tag,
[data-theme="dark"] .article-bottom-tags .sidebar-tag {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-text-body, #c5cfc7) !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .article-back-btn,
html.dark .article-back-btn,
[data-theme="dark"] .article-back-btn {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-text-main, #f5f4ee) !important;
  border: 1px solid var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .article-more-link,
html.dark .article-more-link,
[data-theme="dark"] .article-more-link {
  color: var(--color-accent, #dfb687) !important;
}

/* Article Sidebar */
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .sidebar-block,
html.dark .sidebar-widget,
html.dark .sidebar-block,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .sidebar-block {
  background: var(--color-bg-card, #18241d) !important;
  border-color: var(--color-border, #3d5144) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .sidebar-widget-title,
html[data-theme="dark"] .sidebar-title,
html.dark .sidebar-widget-title,
html.dark .sidebar-title,
[data-theme="dark"] .sidebar-widget-title,
[data-theme="dark"] .sidebar-title {
  color: var(--color-text-main, #f5f4ee) !important;
  border-bottom-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .sidebar-search-input,
html.dark .sidebar-search-input,
[data-theme="dark"] .sidebar-search-input {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-text-main, #f5f4ee) !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .sidebar-search-input::placeholder,
html.dark .sidebar-search-input::placeholder,
[data-theme="dark"] .sidebar-search-input::placeholder {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .sidebar-search-submit,
html.dark .sidebar-search-submit,
[data-theme="dark"] .sidebar-search-submit {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .sidebar-category-item,
html.dark .sidebar-category-item,
[data-theme="dark"] .sidebar-category-item {
  border-bottom-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .sidebar-category-link,
html.dark .sidebar-category-link,
[data-theme="dark"] .sidebar-category-link {
  color: var(--color-text-body, #c5cfc7) !important;
}
html[data-theme="dark"] .sidebar-category-link:hover,
html.dark .sidebar-category-link:hover,
[data-theme="dark"] .sidebar-category-link:hover {
  color: var(--color-accent, #dfb687) !important;
}
html[data-theme="dark"] .sidebar-category-badge,
html.dark .sidebar-category-badge,
[data-theme="dark"] .sidebar-category-badge {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-text-muted, #b5c2b9) !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .sidebar-related-title,
html[data-theme="dark"] .sidebar-related-title a,
html.dark .sidebar-related-title,
html.dark .sidebar-related-title a,
[data-theme="dark"] .sidebar-related-title,
[data-theme="dark"] .sidebar-related-title a {
  color: var(--color-text-main, #f5f4ee) !important;
}
html[data-theme="dark"] .sidebar-related-title a:hover,
html.dark .sidebar-related-title a:hover,
[data-theme="dark"] .sidebar-related-title a:hover {
  color: var(--color-accent, #dfb687) !important;
}
html[data-theme="dark"] .sidebar-related-date,
html.dark .sidebar-related-date,
[data-theme="dark"] .sidebar-related-date {
  color: var(--color-text-muted, #b5c2b9) !important;
}
html[data-theme="dark"] .sidebar-related-thumb,
html.dark .sidebar-related-thumb,
[data-theme="dark"] .sidebar-related-thumb {
  background: #121b16 !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .sidebar-tag,
html.dark .sidebar-tag,
[data-theme="dark"] .sidebar-tag {
  background: var(--color-bg-subtle, #213027) !important;
  color: var(--color-text-body, #c5cfc7) !important;
  border-color: var(--color-border, #3d5144) !important;
}
html[data-theme="dark"] .sidebar-tag:hover,
html.dark .sidebar-tag:hover,
[data-theme="dark"] .sidebar-tag:hover {
  background: var(--color-primary, #d1e0d5) !important;
  color: #15221a !important;
}
html[data-theme="dark"] .sidebar-tags-empty,
html.dark .sidebar-tags-empty,
[data-theme="dark"] .sidebar-tags-empty {
  color: var(--color-text-muted, #b5c2b9) !important;
}

/* Prefers-color-scheme media query for Aurevia */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not(.light) {
    --color-surface: #18241d;
  }
  html:not([data-theme="light"]):not(.light) .page-banner .page-title,
  html:not([data-theme="light"]):not(.light) .page-banner h1 {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .page-banner .page-subtitle {
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .page-banner .breadcrumbs,
  html:not([data-theme="light"]):not(.light) .page-banner .breadcrumbs a {
    color: var(--color-text-muted, #b5c2b9) !important;
  }
  html:not([data-theme="light"]):not(.light) .page-banner .breadcrumbs span:last-child {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-count {
    color: var(--color-text-muted, #b5c2b9) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-search__input {
    background: var(--color-bg-warm, #18241d) !important;
    color: var(--color-text-main, #f5f4ee) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-card,
  html:not([data-theme="light"]):not(.light) .journal-card {
    background: var(--color-bg-card, #18241d) !important;
    border: 1px solid var(--color-border, #3d5144) !important;
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-card .bc-media,
  html:not([data-theme="light"]):not(.light) .blog-card .journal-media {
    background: #121b16 !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-card .post-meta,
  html:not([data-theme="light"]):not(.light) .journal-card .post-meta {
    color: var(--color-accent, #dfb687) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-card h3,
  html:not([data-theme="light"]):not(.light) .blog-card h3 a,
  html:not([data-theme="light"]):not(.light) .journal-card h2,
  html:not([data-theme="light"]):not(.light) .journal-card h2 a,
  html:not([data-theme="light"]):not(.light) .journal-card h3,
  html:not([data-theme="light"]):not(.light) .journal-card h3 a {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-card p,
  html:not([data-theme="light"]):not(.light) .journal-card p {
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .blog-card .text-link,
  html:not([data-theme="light"]):not(.light) .journal-card .text-link {
    color: var(--color-accent, #dfb687) !important;
  }
  html:not([data-theme="light"]):not(.light) .jualify-blog-categories__card {
    background: var(--color-bg-card, #18241d) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .jualify-blog-categories__image {
    background: #121b16 !important;
  }
  html:not([data-theme="light"]):not(.light) .jualify-blog-categories__body h2 {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .jualify-blog-categories__body p {
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-category-pill {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-accent, #dfb687) !important;
    border: 1px solid var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-meta-item {
    color: var(--color-text-muted, #b5c2b9) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-hero-title {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-main-body {
    background: var(--color-bg-card, #18241d) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-featured-media {
    background: #121b16 !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-content.rte {
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-content.rte h1,
  html:not([data-theme="light"]):not(.light) .article-content.rte h2,
  html:not([data-theme="light"]):not(.light) .article-content.rte h3,
  html:not([data-theme="light"]):not(.light) .article-content.rte h4 {
    color: var(--color-text-main, #f5f4ee) !important;
    border-bottom-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-content.rte p,
  html:not([data-theme="light"]):not(.light) .article-content.rte li,
  html:not([data-theme="light"]):not(.light) .article-content.rte span {
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-content.rte strong,
  html:not([data-theme="light"]):not(.light) .article-content.rte b {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-content.rte a {
    color: var(--color-accent, #dfb687) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-content.rte blockquote {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-text-main, #f5f4ee) !important;
    border-left-color: var(--color-accent, #dfb687) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-bottom-tags__label {
    color: var(--color-text-muted, #b5c2b9) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-bottom-tags .sidebar-tag {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-text-body, #c5cfc7) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-back-btn {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-text-main, #f5f4ee) !important;
    border: 1px solid var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .article-more-link {
    color: var(--color-accent, #dfb687) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-widget,
  html:not([data-theme="light"]):not(.light) .sidebar-block {
    background: var(--color-bg-card, #18241d) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-widget-title,
  html:not([data-theme="light"]):not(.light) .sidebar-title {
    color: var(--color-text-main, #f5f4ee) !important;
    border-bottom-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-search-input {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-text-main, #f5f4ee) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-category-item {
    border-bottom-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-category-link {
    color: var(--color-text-body, #c5cfc7) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-category-badge {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-text-muted, #b5c2b9) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-related-title,
  html:not([data-theme="light"]):not(.light) .sidebar-related-title a {
    color: var(--color-text-main, #f5f4ee) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-related-date {
    color: var(--color-text-muted, #b5c2b9) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-related-thumb {
    background: #121b16 !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-tag {
    background: var(--color-bg-subtle, #213027) !important;
    color: var(--color-text-body, #c5cfc7) !important;
    border-color: var(--color-border, #3d5144) !important;
  }
  html:not([data-theme="light"]):not(.light) .sidebar-tags-empty {
    color: var(--color-text-muted, #b5c2b9) !important;
  }
}



/* ==========================================================================
   AUREVIA CUSTOMER AUTHENTICATION SUITE
   Login, Register, Password Recovery, Password Reset, Email Verification
   ========================================================================== */

.aurevia-auth-section {
  padding-block: 56px 88px;
  background-color: var(--color-bg-warm, #faf8f5);
  min-height: 520px;
}

.aurevia-auth-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-inline: 20px;
}

.aurevia-auth-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--color-bg-white, #ffffff);
  border: 1px solid var(--color-border, #e9e7e1);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 10px 32px rgba(41, 56, 47, 0.05);
  padding: 42px 38px;
  position: relative;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.aurevia-auth-card--register {
  max-width: 540px;
}

.aurevia-auth-card--status {
  max-width: 520px;
  text-align: center;
  padding: 48px 38px;
}

/* Card Header */
.auth-card-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--color-bg-subtle, #f6f5f1);
  border: 1px solid var(--color-border, #e9e7e1);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #29382f);
  margin-bottom: 14px;
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  color: var(--color-text-main, #232d27);
  line-height: 1.22;
  margin: 0 0 8px;
}

.auth-card-subtitle {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-body, #515c54);
  margin: 0 auto;
  max-width: 44ch;
}

/* Auth Form Layout */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field-group--wide {
  grid-column: 1 / -1;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.auth-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main, #232d27);
  letter-spacing: 0.01em;
}

.auth-label .required-indicator {
  color: var(--color-accent, #c48c56);
  margin-left: 2px;
  font-weight: 700;
}

.auth-link-subtle {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent, #c48c56);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-link-subtle:hover {
  color: var(--color-primary, #29382f);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Input Fields */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-main, #232d27);
  background-color: var(--color-bg-warm, #faf8f5);
  border: 1px solid var(--color-border, #e9e7e1);
  border-radius: var(--radius-sm, 8px);
  box-sizing: border-box;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.auth-input:hover {
  border-color: var(--color-border-dark, #29382f);
}

.auth-input:focus {
  background-color: var(--color-bg-white, #ffffff);
  border-color: var(--color-primary, #29382f);
  box-shadow: 0 0 0 3px rgba(41, 56, 47, 0.12);
}

.auth-input::placeholder {
  color: var(--color-text-light, #9faaa2);
  font-size: 13.5px;
}

/* Password Toggle */
.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--color-text-muted, #79857d);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  z-index: 2;
}

.auth-password-toggle:hover {
  color: var(--color-primary, #29382f);
  background-color: var(--color-bg-subtle, #f6f5f1);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--color-accent, #c48c56);
  outline-offset: 2px;
}

.auth-input--password {
  padding-right: 48px;
}

/* Primary Submit Button */
.auth-submit-btn {
  width: 100%;
  min-height: 48px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  background: var(--color-primary, #29382f) !important;
  border: 1px solid var(--color-primary, #29382f) !important;
  border-radius: var(--radius-sm, 8px) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(41, 56, 47, 0.15);
  transition: all var(--transition-fast);
  margin-top: 6px;
}

.auth-submit-btn:hover {
  background: var(--color-primary-hover, #1b2620) !important;
  border-color: var(--color-primary-hover, #1b2620) !important;
  box-shadow: 0 4px 14px rgba(41, 56, 47, 0.22);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-btn-secondary {
  width: 100%;
  min-height: 46px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary, #29382f) !important;
  background: transparent !important;
  border: 1px solid var(--color-border, #e9e7e1) !important;
  border-radius: var(--radius-sm, 8px) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.auth-btn-secondary:hover {
  background: var(--color-bg-subtle, #f6f5f1) !important;
  border-color: var(--color-primary, #29382f) !important;
}

/* Divider & Social Login */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--color-text-muted, #79857d);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-border, #e9e7e1);
}

.auth-divider span {
  padding: 0 14px;
}

/* Switch Prompt (Card Footer) */
.auth-switch-prompt {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border, #e9e7e1);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--color-text-body, #515c54);
}

.auth-text-link {
  font-weight: 600;
  color: var(--color-primary, #29382f);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
  transition: color var(--transition-fast);
}

.auth-text-link:hover {
  color: var(--color-accent, #c48c56);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-body, #515c54);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-back-link:hover {
  color: var(--color-primary, #29382f);
}

/* Security Footnote */
.auth-security-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--color-text-muted, #79857d);
  line-height: 1.4;
  text-align: center;
}

.auth-security-footnote svg {
  flex-shrink: 0;
  color: var(--color-text-muted, #79857d);
}

/* Info Note Box */
.auth-info-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background-color: var(--color-bg-subtle, #f6f5f1);
  border: 1px solid var(--color-border, #e9e7e1);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-body, #515c54);
  text-align: left;
}

/* Icon Badges (Header Icons for Recover & Reset) */
.auth-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent-soft, #f7ede2);
  color: var(--color-accent, #c48c56);
  margin-bottom: 16px;
}

/* Status Seals (Activation Success / Pending) */
.auth-status-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
}

.auth-status-seal--success {
  background: rgba(37, 107, 52, 0.12);
  color: #256b34;
  border: 1px solid rgba(37, 107, 52, 0.25);
}

.auth-status-seal--pending {
  background: rgba(196, 140, 86, 0.12);
  color: var(--color-accent, #c48c56);
  border: 1px solid rgba(196, 140, 86, 0.25);
}

.auth-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--color-bg-subtle, #f6f5f1);
  border: 1px solid var(--color-border, #e9e7e1);
  border-radius: var(--radius-sm, 8px);
  text-align: left;
}

.auth-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-body, #515c54);
}

.auth-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary, #29382f);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* Dark Mode Overrides */
html[data-theme="dark"] .aurevia-auth-section,
html.dark .aurevia-auth-section,
[data-theme="dark"] .aurevia-auth-section {
  background-color: #121714;
}

html[data-theme="dark"] .aurevia-auth-card,
html.dark .aurevia-auth-card,
[data-theme="dark"] .aurevia-auth-card {
  background-color: #1b231f;
  border-color: #2a3630;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .auth-brand-badge,
html.dark .auth-brand-badge,
[data-theme="dark"] .auth-brand-badge {
  background-color: #24302a;
  border-color: #34443b;
  color: #dfba8c;
}

html[data-theme="dark"] .auth-card-title,
html.dark .auth-card-title,
[data-theme="dark"] .auth-card-title {
  color: #f1f0eb;
}

html[data-theme="dark"] .auth-card-subtitle,
html.dark .auth-card-subtitle,
[data-theme="dark"] .auth-card-subtitle {
  color: #a8b5ac;
}

html[data-theme="dark"] .auth-label,
html.dark .auth-label,
[data-theme="dark"] .auth-label {
  color: #e5ece7;
}

html[data-theme="dark"] .auth-input,
html.dark .auth-input,
[data-theme="dark"] .auth-input {
  background-color: #151c18;
  border-color: #2e3d34;
  color: #f1f0eb;
}

html[data-theme="dark"] .auth-input:hover,
html.dark .auth-input:hover,
[data-theme="dark"] .auth-input:hover {
  border-color: #44584c;
}

html[data-theme="dark"] .auth-input:focus,
html.dark .auth-input:focus,
[data-theme="dark"] .auth-input:focus {
  background-color: #19221e;
  border-color: #c48c56;
  box-shadow: 0 0 0 3px rgba(196, 140, 86, 0.18);
}

html[data-theme="dark"] .auth-password-toggle,
html.dark .auth-password-toggle,
[data-theme="dark"] .auth-password-toggle {
  color: #8c9c91;
}

html[data-theme="dark"] .auth-password-toggle:hover,
html.dark .auth-password-toggle:hover,
[data-theme="dark"] .auth-password-toggle:hover {
  color: #f1f0eb;
  background-color: #24302a;
}

html[data-theme="dark"] .auth-submit-btn,
html.dark .auth-submit-btn,
[data-theme="dark"] .auth-submit-btn {
  background: #c48c56 !important;
  border-color: #c48c56 !important;
  color: #121714 !important;
}

html[data-theme="dark"] .auth-submit-btn:hover,
html.dark .auth-submit-btn:hover,
[data-theme="dark"] .auth-submit-btn:hover {
  background: #d49c66 !important;
  border-color: #d49c66 !important;
}

html[data-theme="dark"] .auth-btn-secondary,
html.dark .auth-btn-secondary,
[data-theme="dark"] .auth-btn-secondary {
  border-color: #34443b !important;
  color: #f1f0eb !important;
}

html[data-theme="dark"] .auth-btn-secondary:hover,
html.dark .auth-btn-secondary:hover,
[data-theme="dark"] .auth-btn-secondary:hover {
  background: #24302a !important;
  border-color: #4a6154 !important;
}

html[data-theme="dark"] .auth-divider,
html.dark .auth-divider,
[data-theme="dark"] .auth-divider {
  color: #8c9c91;
}

html[data-theme="dark"] .auth-divider::before,
html[data-theme="dark"] .auth-divider::after,
html.dark .auth-divider::before,
html.dark .auth-divider::after,
[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
  border-color: #2e3d34;
}

html[data-theme="dark"] .auth-switch-prompt,
html.dark .auth-switch-prompt,
[data-theme="dark"] .auth-switch-prompt {
  border-color: #2e3d34;
  color: #a8b5ac;
}

html[data-theme="dark"] .auth-text-link,
html.dark .auth-text-link,
[data-theme="dark"] .auth-text-link {
  color: #dfba8c;
}

html[data-theme="dark"] .auth-security-footnote,
html.dark .auth-security-footnote,
[data-theme="dark"] .auth-security-footnote {
  color: #7d8e82;
}

html[data-theme="dark"] .auth-info-note,
html.dark .auth-info-note,
[data-theme="dark"] .auth-info-note,
html[data-theme="dark"] .auth-steps-list,
html.dark .auth-steps-list,
[data-theme="dark"] .auth-steps-list {
  background-color: #161e19;
  border-color: #2e3d34;
  color: #a8b5ac;
}

html[data-theme="dark"] .auth-status-seal--success,
html.dark .auth-status-seal--success,
[data-theme="dark"] .auth-status-seal--success {
  background: rgba(46, 133, 64, 0.2);
  color: #6ee7b7;
  border-color: rgba(46, 133, 64, 0.4);
}

html[data-theme="dark"] .auth-status-seal--pending,
html.dark .auth-status-seal--pending,
[data-theme="dark"] .auth-status-seal--pending {
  background: rgba(196, 140, 86, 0.2);
  color: #e6b980;
  border-color: rgba(196, 140, 86, 0.4);
}

@media (max-width: 600px) {
  .aurevia-auth-section {
    padding-block: 32px 56px;
  }
  .aurevia-auth-card {
    padding: 30px 20px;
    border-radius: var(--radius-sm, 8px);
  }
  .auth-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---- Aurevia Custom Content Page & Rich Text ---- */
.page-banner h1, .page-banner .page-title { font-size: clamp(2.2rem, 4vw, 3rem) !important; font-family: var(--font-serif); }
.page-content, .page-content.rte, .page-content.prose, .rte, .prose { max-width: 760px; margin-inline: auto; font-family: var(--font-sans); font-size: 16.5px; line-height: 1.85; color: var(--color-text-body, #515c54); word-break: break-word; }
.page-content > *:first-child, .rte > *:first-child, .prose > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.page-content > *:last-child, .rte > *:last-child, .prose > *:last-child { margin-bottom: 0 !important; }
.page-content h1, .rte h1, .prose h1 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; color: var(--color-text-main, #232d27); }
.page-content h2, .rte h2, .prose h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; margin-top: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 0.95rem; color: var(--color-text-main, #232d27); }
.page-content h3, .rte h3, .prose h3 { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; font-weight: 600; margin-top: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; color: var(--color-text-main, #232d27); }
.page-content h4, .rte h4, .prose h4 { font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1.35rem; margin-bottom: 0.5rem; color: var(--color-text-main, #232d27); }
.page-content p, .rte p, .prose p { margin-top: 0; margin-bottom: 1.5rem; line-height: 1.85; color: var(--color-text-body, #515c54); }
.page-content ul, .page-content ol, .rte ul, .rte ol, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.65rem; padding-left: 1.75rem; color: var(--color-text-body, #515c54); }
.page-content li, .rte li, .prose li { margin-bottom: 0.6rem; line-height: 1.8; }
.page-content li:last-child, .rte li:last-child, .prose li:last-child { margin-bottom: 0; }
.page-content blockquote, .rte blockquote, .prose blockquote { margin: 1.85rem 0; padding: 1.1rem 1.6rem; border-left: 3px solid var(--color-accent, #c48c56); background: var(--color-accent-soft, #f7ede2); border-radius: 0 4px 4px 0; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.65; color: var(--color-text-main, #232d27); }
.page-content blockquote p:last-child, .rte blockquote p:last-child, .prose blockquote p:last-child { margin-bottom: 0; }
.page-content img, .rte img, .prose img { max-width: 100%; height: auto; border-radius: 6px; margin-block: 1.75rem; display: block; }
.page-content hr, .rte hr, .prose hr { border: 0; height: 1px; background: var(--color-border, #e9e7e1); margin: 2.5rem 0; }
.page-content a, .rte a, .prose a { color: var(--color-accent, #c48c56); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.page-content a:hover, .rte a:hover, .prose a:hover { color: var(--color-primary, #29382f); }
.page-content table, .rte table, .prose table { width: 100%; border-collapse: collapse; margin-block: 2rem; font-size: 0.95rem; }
.page-content th, .page-content td, .rte th, .rte td, .prose th, .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border, #e9e7e1); text-align: left; }
.page-content th, .rte th, .prose th { font-family: var(--font-serif); font-weight: 600; color: var(--color-text-main, #232d27); border-bottom: 2px solid var(--color-border-dark, #29382f); }



/* Subpage hero alignment: left by default, configurable per page in Theme Settings. */
.page-banner {
  text-align: var(--page-banner-align, left);
}
.page-banner .container {
  align-items: var(--page-banner-flex, flex-start);
  text-align: var(--page-banner-align, left);
}
.page-banner .breadcrumbs {
  justify-content: var(--page-banner-flex, flex-start);
  align-items: center;
  text-align: var(--page-banner-align, left);
  margin-inline: 0;
}
.page-banner .page-title,
.page-banner h1 {
  text-align: var(--page-banner-align, left);
  margin-inline: 0;
}
.page-banner .page-subtitle {
  text-align: var(--page-banner-align, left);
  margin-inline: 0;
}
.categories-hero {
  text-align: var(--page-banner-align, left);
  margin-bottom: 40px;
}

/* ============================================================
   Aurevia Wishlist Control
   Refined ivory/forest treatment shared by product cards and
   product detail purchase controls.
   ============================================================ */
.product-card .wishlist-btn.wishlist,
.product-detail-grid .wishlist-btn,
.add-cart-row .wishlist-btn,
.purchase-actions .wishlist-btn,
.product-summary-panel .wishlist-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border, #e9e7e1);
  background-color: var(--color-bg-white, #ffffff);
  color: var(--color-text-main, #232d27);
  box-shadow: 0 1px 3px rgba(35, 45, 39, 0.06);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card .wishlist-btn.wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.product-card .wishlist-btn.wishlist:hover,
.product-detail-grid .wishlist-btn:hover,
.add-cart-row .wishlist-btn:hover,
.purchase-actions .wishlist-btn:hover,
.product-summary-panel .wishlist-btn:hover {
  background-color: var(--color-primary, #29382f);
  border-color: var(--color-primary, #29382f);
  color: var(--color-bg-white, #ffffff);
  box-shadow: 0 8px 18px rgba(35, 45, 39, 0.18);
  transform: translateY(-1px);
}
.product-card .wishlist-btn.wishlist.active,
.product-card .wishlist-btn.wishlist[aria-pressed="true"],
.product-card .wishlist-btn.wishlist.in-wishlist,
.product-detail-grid .wishlist-btn.active,
.product-detail-grid .wishlist-btn[aria-pressed="true"],
.add-cart-row .wishlist-btn.active,
.add-cart-row .wishlist-btn[aria-pressed="true"],
.purchase-actions .wishlist-btn.active,
.purchase-actions .wishlist-btn[aria-pressed="true"],
.product-summary-panel .wishlist-btn.active,
.product-summary-panel .wishlist-btn[aria-pressed="true"] {
  background-color: var(--color-accent, #c48c56);
  border-color: var(--color-accent, #c48c56);
  color: #232d27;
}
.product-card .wishlist-btn.wishlist svg,
.product-detail-grid .wishlist-btn svg,
.add-cart-row .wishlist-btn svg,
.purchase-actions .wishlist-btn svg,
.product-summary-panel .wishlist-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  transition: fill 0.2s ease;
}
.product-card .wishlist-btn.wishlist.active svg,
.product-card .wishlist-btn.wishlist[aria-pressed="true"] svg,
.product-card .wishlist-btn.wishlist.in-wishlist svg,
.product-detail-grid .wishlist-btn.active svg,
.product-detail-grid .wishlist-btn[aria-pressed="true"] svg,
.add-cart-row .wishlist-btn.active svg,
.add-cart-row .wishlist-btn[aria-pressed="true"] svg,
.purchase-actions .wishlist-btn.active svg,
.purchase-actions .wishlist-btn[aria-pressed="true"] svg,
.product-summary-panel .wishlist-btn.active svg,
.product-summary-panel .wishlist-btn[aria-pressed="true"] svg {
  fill: currentColor;
  stroke: currentColor;
}
.product-card .wishlist-btn.wishlist:focus-visible,
.product-detail-grid .wishlist-btn:focus-visible,
.add-cart-row .wishlist-btn:focus-visible,
.purchase-actions .wishlist-btn:focus-visible,
.product-summary-panel .wishlist-btn:focus-visible {
  outline: 2px solid var(--color-accent, #c48c56);
  outline-offset: 3px;
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist,
html[data-theme="dark"] .product-detail-grid .wishlist-btn,
html[data-theme="dark"] .add-cart-row .wishlist-btn,
html[data-theme="dark"] .purchase-actions .wishlist-btn,
html[data-theme="dark"] .product-summary-panel .wishlist-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-border, #3d5144);
  color: var(--color-text-main, #f5f4ee);
  box-shadow: none;
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist:hover,
html[data-theme="dark"] .product-detail-grid .wishlist-btn:hover,
html[data-theme="dark"] .add-cart-row .wishlist-btn:hover,
html[data-theme="dark"] .purchase-actions .wishlist-btn:hover,
html[data-theme="dark"] .product-summary-panel .wishlist-btn:hover {
  background-color: var(--color-primary, #d1e0d5);
  border-color: var(--color-primary, #d1e0d5);
  color: #15221a;
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.active,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist[aria-pressed="true"],
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.in-wishlist,
html[data-theme="dark"] .product-detail-grid .wishlist-btn.active,
html[data-theme="dark"] .add-cart-row .wishlist-btn.active,
html[data-theme="dark"] .purchase-actions .wishlist-btn.active,
html[data-theme="dark"] .product-summary-panel .wishlist-btn.active {
  background-color: var(--color-accent, #dfb687);
  border-color: var(--color-accent, #dfb687);
  color: #15221a;
}

/* Product grid: bare filled heart, white by default and sale-badge colored when saved. */
.product-card .wishlist-btn.wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #ffffff;
}
.product-card .wishlist-btn.wishlist svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 1.2;
  filter: drop-shadow(0 1px 3px rgba(15, 23, 18, 0.45));
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}
.product-card .wishlist-btn.wishlist:hover {
  border: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  color: #ffffff;
}
.product-card .wishlist-btn.wishlist:hover svg {
  transform: scale(1.08);
}
.product-card .wishlist-btn.wishlist.active,
.product-card .wishlist-btn.wishlist[aria-pressed="true"],
.product-card .wishlist-btn.wishlist.in-wishlist {
  border: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  color: var(--color-badge-sale-bg, #e56a54);
}
.product-card .wishlist-btn.wishlist.active svg,
.product-card .wishlist-btn.wishlist[aria-pressed="true"] svg,
.product-card .wishlist-btn.wishlist.in-wishlist svg {
  fill: var(--color-badge-sale-bg, #e56a54);
  stroke: var(--color-badge-sale-bg, #e56a54);
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist:hover,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.active,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist[aria-pressed="true"],
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.in-wishlist {
  border: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  color: #ffffff;
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.active,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist[aria-pressed="true"],
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.in-wishlist {
  color: var(--color-badge-sale-bg, #b44533);
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist svg {
  fill: #ffffff;
  stroke: #ffffff;
}
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.active svg,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist[aria-pressed="true"] svg,
html[data-theme="dark"] .product-card .wishlist-btn.wishlist.in-wishlist svg {
  fill: var(--color-badge-sale-bg, #b44533);
  stroke: var(--color-badge-sale-bg, #b44533);
}

/* Regular (body) typography for cart subtotals. */
.cart-drawer__subtotal-val {
  font-family: var(--font-sans, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
}
.cart-summary-subtotal,
.cart-summary-subtotal strong {
  font-family: var(--font-sans, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
.cart-summary-subtotal strong {
  font-weight: 600;
}

/* ============================================================
   Customer Order Status Badges
   Dedicated pill classes keep payment and fulfilment states in
   normal table flow and give each state a distinct tint.
   ============================================================ */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--color-bg-subtle, #f6f5f1);
  color: var(--color-text-body, #515c54);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  text-transform: capitalize;
}
.order-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.85;
}
.order-status-badge--completed,
.order-status-badge--paid,
.order-status-badge--success,
.order-status-badge--delivered,
.order-status-badge--fulfilled {
  background-color: #ecf5ee;
  border-color: #cbe3d2;
  color: #1f5130;
}
.order-status-badge--processing,
.order-status-badge--shipped,
.order-status-badge--return,
.order-status-badge--return_completed,
.order-status-badge--in_transit {
  background-color: #fbf1e4;
  border-color: #eed9bc;
  color: #8a5a22;
}
.order-status-badge--pending,
.order-status-badge--unpaid,
.order-status-badge--awaiting_payment,
.order-status-badge--on_hold {
  background-color: #fdf6e3;
  border-color: #f0e2b6;
  color: #876a1e;
}
.order-status-badge--cancelled,
.order-status-badge--canceled,
.order-status-badge--rejected,
.order-status-badge--failed,
.order-status-badge--expired {
  background-color: #fbecea;
  border-color: #f0cfca;
  color: #8e3028;
}
.order-status-badge--refunded,
.order-status-badge--refund,
.order-status-badge--partially_refunded,
.order-status-badge--partial_refund {
  background-color: #efedf7;
  border-color: #ddd8ee;
  color: #4c4478;
}
.order-status-badge--unknown {
  background-color: var(--color-bg-subtle, #f6f5f1);
  border-color: var(--color-border, #e9e7e1);
  color: var(--color-text-muted, #79857d);
}
html[data-theme="dark"] .order-status-badge--completed,
html[data-theme="dark"] .order-status-badge--paid,
html[data-theme="dark"] .order-status-badge--success,
html[data-theme="dark"] .order-status-badge--delivered,
html[data-theme="dark"] .order-status-badge--fulfilled {
  background-color: rgba(76, 175, 110, 0.16);
  border-color: rgba(76, 175, 110, 0.32);
  color: #8fd6a5;
}
html[data-theme="dark"] .order-status-badge--processing,
html[data-theme="dark"] .order-status-badge--shipped,
html[data-theme="dark"] .order-status-badge--return,
html[data-theme="dark"] .order-status-badge--return_completed,
html[data-theme="dark"] .order-status-badge--in_transit {
  background-color: rgba(196, 140, 86, 0.18);
  border-color: rgba(223, 182, 135, 0.32);
  color: #e6b980;
}
html[data-theme="dark"] .order-status-badge--pending,
html[data-theme="dark"] .order-status-badge--unpaid,
html[data-theme="dark"] .order-status-badge--awaiting_payment,
html[data-theme="dark"] .order-status-badge--on_hold {
  background-color: rgba(214, 178, 62, 0.16);
  border-color: rgba(214, 178, 62, 0.3);
  color: #e7cf87;
}
html[data-theme="dark"] .order-status-badge--cancelled,
html[data-theme="dark"] .order-status-badge--canceled,
html[data-theme="dark"] .order-status-badge--rejected,
html[data-theme="dark"] .order-status-badge--failed,
html[data-theme="dark"] .order-status-badge--expired {
  background-color: rgba(223, 101, 80, 0.18);
  border-color: rgba(223, 101, 80, 0.34);
  color: #f0a39a;
}
html[data-theme="dark"] .order-status-badge--refunded,
html[data-theme="dark"] .order-status-badge--refund,
html[data-theme="dark"] .order-status-badge--partially_refunded,
html[data-theme="dark"] .order-status-badge--partial_refund {
  background-color: rgba(140, 130, 190, 0.18);
  border-color: rgba(140, 130, 190, 0.32);
  color: #c3bce8;
}
html[data-theme="dark"] .order-status-badge--unknown {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border, #3d5144);
  color: var(--color-text-muted, #b5c2b9);
}


/* Shared quick-view and product stock disclosure. */
.product-inventory { margin: 14px 0; color: var(--color-text-body); font: 600 13px/1.6 var(--font-sans); }
.page-banner .article-meta-bar { justify-content: var(--page-banner-flex, flex-start); }
