/* ===== pages.css → @layer pages ===== */
@layer pages {
/* PAGES — Product, Cart, Checkout, Search, Auth, Account, Wishlist, Blog, Static Pages */


/* ============================================================
   CATEGORY HEADER (category page)
   ============================================================ */

.category-header { margin-bottom: var(--space-xl); }
.category-header-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  max-height: 300px;
}
.category-header-image img {
  width: 100%;
  object-fit: cover;
}
.category-description {
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
  font-size: 15px;
}


/* ============================================================
   SEO BLOCK (category page bottom)
   ============================================================ */

.seo-block {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.seo-block h2, .seo-block h3 {
  color: var(--color-text-dark);
  margin: var(--space-md) 0 var(--space-sm);
}


/* ============================================================
   PRODUCT PAGE
   ============================================================ */

.product-layout {
  display: grid;
  /* minmax(0, 1fr) — not bare 1fr — so the column can shrink below the
     min-content of nested scrollers/grids (e.g. .also-as carousel) instead
     of expanding the whole page on mobile. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}
@media (min-width: 768px) {
  .product-layout { grid-template-columns: 42% minmax(0, 1fr); gap: var(--space-2xl); }
}

/* Gallery — scroll-snap carousel (mobile-first, also used on desktop) */
.product-gallery {}
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-light);
  margin-bottom: var(--space-md);
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  height: 100%;
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-no-image {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  font-size: 14px;
}
.gallery-usa-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px 4px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a3a73;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}
.gallery-usa-badge svg {
  color: #c41a3a;
  flex-shrink: 0;
}
.gallery-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Desktop: hide indicator (thumbs are primary nav) */
@media (min-width: 768px) {
  .gallery-indicator { display: none; }
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scrollbar-width: thin;
}
.gallery-thumb-btn {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-bg-light);
  transition: border-color var(--transition);
  padding: 0;
  cursor: pointer;
}
.gallery-thumb-btn:hover,
.gallery-thumb-btn.active {
  border-color: var(--color-primary);
}
.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Mobile: hide thumbs — swipe is the primary navigation */
@media (max-width: 767.98px) {
  .gallery-thumbs { display: none; }
}

/* Fullscreen lightbox — tap-to-zoom + pinch + swipe */
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  animation: lb-fade-in 0.18s ease;
  overscroll-behavior: contain;
}
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lb-close {
  position: absolute;
  /* iOS safe-area: clear the notch when the lightbox spans the whole viewport */
  top:   calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lb-close:hover,
.lb-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}
.lb-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
  cursor: zoom-in;
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 0.25s ease;
  transform-origin: center center;
  touch-action: pinch-zoom;
}
.lb-slide.is-zoomed {
  cursor: zoom-out;
}
.lb-slide.is-zoomed img {
  transform: scale(2);
  pointer-events: auto;
}
.lb-indicator {
  position: absolute;
  /* iOS safe-area: keep above home indicator */
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-main,
  .lb-track { scroll-behavior: auto; }
  .lb-slide img { transition: none; }
  .gallery-lightbox { animation: none; }
}

/* Product Info */
.product-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}
#title-suffix { display: block; font-size: large; }
.product-short-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* Stock Badge */
.product-stock-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  font-size: 14px;
}
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
.stock-badge--in { color: #15803d; }
.stock-badge--in svg { color: #15803d; }
.product-collection-link { color: var(--color-text-muted); font-size: 13px; }
.product-collection-link a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.product-collection-link a:hover { color: var(--color-accent-dark); }

/* Price */
.product-price-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.product-price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
}
.product-price-amount.product-price--request {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
  font-style: italic;
}
.product-price-amount.price-loading { opacity: 0.5; }

/* Task #238 — strike-through MSRP next to the current price + "X% OFF" pill. */
.product-price-msrp {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.product-price-save {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-accent-red, #D0473E);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-left: 4px;
}

/* Options */
.product-options { margin-bottom: var(--space-lg); }
.option-group { margin-bottom: var(--space-md); }
.option-group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* TYPE cards */
.type-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
@media (max-width: 600px) {
  .type-cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
  .type-card { padding: var(--space-sm) 4px; gap: 4px; min-height: 72px; }
  .type-card-icon { width: 32px; height: 32px; }
  .type-card-label { font-size: 9px; letter-spacing: 0.02em; }
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  font-family: var(--font-base);
  min-height: 100px;
}
.type-card:hover { border-color: var(--color-primary); }
.type-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.type-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-card-icon svg { width: 100%; height: 100%; }
.type-card.selected .type-card-icon svg { filter: brightness(1.8); }
.type-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
}

/* SIZE grid */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
@media (max-width: 600px) {
  .size-grid { grid-template-columns: repeat(3, 1fr); }
}
.size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* tap target ≥ 44px (was ~38px) */
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  text-align: center;
  font-family: var(--font-base);
  white-space: nowrap;
}
.size-btn:hover { border-color: var(--color-primary); }
.size-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.size-btn.size-unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Add to Cart */
.add-to-cart-section {
  margin-bottom: var(--space-md);
}
.atc-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.qty-selector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.qty-btn {
  width: 40px;
  height: 48px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}
.qty-btn:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.qty-btn:last-child  { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.qty-btn:hover { background: var(--color-border); }
.qty-input {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  -moz-appearance: textfield;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}
input.qty-input { padding: 0; }
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.btn-add-to-cart {
  flex: 1;
  padding: 14px var(--space-lg);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-slow), transform 0.1s;
  letter-spacing: 0.03em;
  min-height: 48px;
}
.btn-add-to-cart:hover  { background: #333333; }
.btn-add-to-cart:active { transform: scale(0.98); }

/* ─── Express checkout (#194) ───────────────────────────────── */
.express-pay {
  margin: 14px 0 0;
  animation: express-pay-in 0.25s ease both;
}
.express-pay[hidden] { display: none; }
@keyframes express-pay-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.express-pay__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.express-pay__divider::before,
.express-pay__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.express-pay__btn { min-height: 48px; }
.express-pay__error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(208, 71, 62, 0.06);
  border: 1px solid rgba(208, 71, 62, 0.2);
  color: var(--color-accent-red, #c93838);
  font-size: 13px;
  line-height: 1.4;
}
.express-pay__error[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .express-pay { animation: none; }
}
.btn-wishlist {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.btn-wishlist:hover { border-color: var(--color-accent-red); color: var(--color-accent-red); }

/* Terms checkbox */
.terms-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  cursor: pointer;
}
.terms-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.terms-check a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

.options-required-hint  { font-size: 13px; color: var(--color-text-muted); margin-top: var(--space-sm); }
.option-group--error    { outline: 2px solid var(--color-accent-red); border-radius: var(--radius-sm); padding: var(--space-sm); }

/* Action Links */
.product-action-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.product-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-base);
  padding: 0;
  transition: color var(--transition);
}
.product-action-link:hover { color: var(--color-accent); }
.product-action-link svg { flex-shrink: 0; }

/* Product Badges — single bordered card with dashed-divider rows */
.product-badges {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-lg) 0;
  padding: 6px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.product-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  border-top: 1px dashed var(--color-border);
}
.product-badge:first-child { border-top: 0; }
.product-badge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-dark);
}
.product-badge-icon svg { display: block; }
.product-badge-text {
  flex: 1;
  min-width: 0;
}
.product-badge strong {
  color: var(--color-text-dark);
  font-weight: 700;
}
@media (max-width: 480px) {
  .product-badges { padding: 4px 14px; }
  .product-badge { font-size: 13px; gap: 12px; padding: 12px 0; }
  .product-badge-icon { width: 28px; height: 28px; }
  .product-badge-icon svg { width: 20px; height: 20px; }
}

/* Safe Checkout */
.safe-checkout {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.safe-checkout-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.safe-checkout-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-icons-img {
  max-width: 100%;
  height: auto;
  max-height: 36px;
}

/* Product Accordion */
.product-accordion {
  margin-top: 0;
}
.accordion-item {
  border-top: 1px solid var(--color-border);
}
.accordion-item:last-child {
  border-bottom: 1px solid var(--color-border);
}
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.accordion-toggle:hover { color: var(--color-accent); }
.accordion-icon {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--transition);
  color: var(--color-text-muted);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-content {
  padding-bottom: var(--space-lg);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}
.accordion-content p { margin-bottom: var(--space-sm); }
.accordion-content p:last-child { margin-bottom: 0; }
.specs-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.specs-list li { list-style: none; }
.specs-list strong { color: var(--color-text-dark); }

/* ============================================================
   RICH ACCORDION CONTENT — Apple-style typographic restraint
   ============================================================ */

/* Lead paragraph inside Highlights accordion — soft accented intro */
.lead-paragraph {
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin: 0 0 var(--space-lg);
  padding: 14px 18px 14px 22px;
  background: linear-gradient(180deg, rgba(62,169,208,0.05), rgba(62,169,208,0.015));
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  letter-spacing: -0.005em;
}
@media (max-width: 480px) {
  .lead-paragraph { padding: 12px 14px 12px 16px; font-size: 14px; }
}

/* Three-card grid: 1 col mobile, 3 cols desktop */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: 0;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}
.feature-block {
  position: relative;
  padding: 18px 18px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text-dark);
  opacity: 0.85;
}
.feature-why::before  { background: var(--color-accent); }
.feature-where::before{ background: #6b9a76; }
.feature-care::before { background: #c08a4e; }
.feature-block h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-text-dark);
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border);
}
.feature-block h2::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.feature-why h2 { color: var(--color-accent-dark); }
.feature-why h2::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polygon points='12 2 15 8.5 22 9.3 17 14.1 18.2 21 12 17.8 5.8 21 7 14.1 2 9.3 9 8.5 12 2'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polygon points='12 2 15 8.5 22 9.3 17 14.1 18.2 21 12 17.8 5.8 21 7 14.1 2 9.3 9 8.5 12 2'/></svg>");
}
.feature-where h2 { color: #4f7e5b; }
.feature-where h2::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
}
.feature-care h2 { color: #9c6a37; }
.feature-care h2::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
}
.feature-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-block li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text);
}
.feature-block li:last-child { margin-bottom: 0; }
.feature-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  opacity: 0.65;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.feature-why  li::before { color: var(--color-accent); opacity: 1; }
.feature-where li::before { color: #6b9a76; opacity: 1; }
.feature-care li::before { color: #c08a4e; opacity: 1; }
@media (min-width: 1024px) {
  .feature-block { padding: 22px 22px 20px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .feature-block:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,17,17,0.06); }
}
@media (max-width: 480px) {
  .feature-block { padding: 16px 16px 14px; }
  .feature-block h2 { font-size: 13.5px; }
  .feature-block li { font-size: 13px; }
}

/* ============================================================
   COMPARISON TABLE — refined editorial style + mobile cards
   ============================================================ */

.comparison-block { margin: 0; }
.comparison-block__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--color-text-dark);
  margin: 0 0 var(--space-md);
  line-height: 1.3;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  line-height: 1.55;
  background: transparent;
  table-layout: fixed;
}
.comparison-table colgroup col:first-child { width: 22%; }
.comparison-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  vertical-align: bottom;
}
.comparison-table thead th:last-child { padding-right: 0; }
.comparison-table tbody th,
.comparison-table tbody td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: top;
  color: var(--color-text);
  font-weight: 400;
  text-align: left;
}
.comparison-table tbody td:last-child,
.comparison-table tbody th:last-child { padding-right: 0; }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover th,
.comparison-table tbody tr:hover td { background: rgba(17,17,17,0.015); }

/* Format cell with colored dot + name */
.comparison-format {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.005em;
}
.comparison-format__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-dark);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06);
}
.comparison-format--canvas .comparison-format__dot { background: #3ea9d0; box-shadow: 0 0 0 3px rgba(62,169,208,0.18); }
.comparison-format--framed .comparison-format__dot { background: #9c6a37; box-shadow: 0 0 0 3px rgba(156,106,55,0.18); }
.comparison-format--paper  .comparison-format__dot { background: #6b9a76; box-shadow: 0 0 0 3px rgba(107,154,118,0.18); }

/* Mobile — collapse table into stacked cards */
@media (max-width: 640px) {
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td { display: block; }
  .comparison-table thead { display: none; }
  .comparison-table tbody tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--color-surface);
  }
  .comparison-table tbody tr:last-child { margin-bottom: 0; }
  .comparison-table tbody tr:hover th,
  .comparison-table tbody tr:hover td { background: transparent; }
  .comparison-table tbody th {
    padding: 0 0 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
  }
  .comparison-table tbody td {
    padding: 8px 0 0;
    border-bottom: none;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    font-size: 13px;
  }
  .comparison-table tbody td::before {
    content: attr(data-label);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding-top: 2px;
  }
  .comparison-format { font-size: 14px; }
  .comparison-format__dot { width: 9px; height: 9px; }
}

/* Specs list — refined Apple table-row style */
.specs-list { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
.specs-list li {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13.5px;
  line-height: 1.5;
}
.specs-list li:last-child { border-bottom: none; }
.specs-list strong {
  flex-shrink: 0;
  min-width: 140px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* FAQ items */
.faq-list { display: flex; flex-direction: column; gap: var(--space-md); }
.faq-item h2.faq-q {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-text-dark);
  margin: 0 0 6px;
}
.faq-item p.faq-a {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text);
}

/* Shipping list */
.shipping-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
}
.shipping-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 13.5px;
  line-height: 1.55;
}
.shipping-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  background: var(--color-text-dark);
  border-radius: 50%;
  opacity: 0.55;
}

/* Link to full /faq at the bottom of the PDP FAQ accordion */
.pdp-faq-more {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}
.pdp-faq-more a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.pdp-faq-more a:hover { text-decoration: underline; }

/* Studio note (trust line at bottom of Returns) */
.studio-note {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Tall accordion content support */
.accordion-item.open .accordion-body { max-height: 5000px; }

/* ============================================================
   SAME DESIGN TYPES — compact card-row under product gallery
   ============================================================ */

/* .also-as carousel moved to sections.css (critical layer) to fix CLS — see note there. */

/* Legacy classes kept as aliases so any cached HTML doesn't break visually */
.same-design-types { margin-top: var(--space-lg); }
.design-types-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.design-type-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--color-text); }
.design-type-image { width: 84px; height: 84px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.design-type-image img { width: 100%; height: 100%; object-fit: cover; }
.design-type-label { font-size: 12px; font-weight: 600; }


/* ============================================================
   RELATED PRODUCTS & RECENTLY VIEWED
   ============================================================ */

.related-products { margin-bottom: var(--space-3xl); }
.recently-viewed { margin-bottom: var(--space-3xl); }


/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-page-header { margin-bottom: var(--space-xl); }
.search-page-form { margin-bottom: var(--space-xl); }
.search-form-inner {
  display: flex;
  gap: var(--space-md);
  max-width: 640px;
}
.search-input--large {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--color-text);
  background: var(--color-surface);
}
.search-input--large:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(62,169,208,0.12);
}
.search-count {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 14px;
}


/* ============================================================
   EMPTY STATE & ERROR PAGE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 640px;
  margin: 0 auto;
}
.empty-state-icon {
  display: block;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
  opacity: 0.45;
}
.empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}
.empty-state p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}
.empty-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Popular categories tile row — used inside empty states */
.popular-categories {
  margin-top: var(--space-xl);
  text-align: center;
}
.popular-categories-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.popular-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-sm);
  max-width: 540px;
  margin: 0 auto;
}
.popular-categories-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-md) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.popular-categories-tile:hover,
.popular-categories-tile:focus-visible {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow);
  outline: none;
}
.popular-categories-icon {
  font-size: 24px;
  line-height: 1;
}
.popular-categories-label {
  display: block;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .popular-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 360px;
  }
  .popular-categories-tile {
    padding: var(--space-sm);
  }
}
@media (max-width: 360px) {
  .popular-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .popular-categories-tile { transition: none; }
  .popular-categories-tile:hover,
  .popular-categories-tile:focus-visible { transform: none; }
}

.error-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}
.error-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-md);
}
.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}
.error-message {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}
.error-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   CART PAGE
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   CART — editorial gallery aesthetic, hairline-divided rows,
   sticky summary on desktop, sticky bottom CTA on mobile.
   Replaces legacy .cart-* rules.
   ──────────────────────────────────────────────────────────── */

.cartx {
  /* Bottom padding leaves room for the mobile sticky bar so the last
     line-total isn't covered. Also accounts for iPhone home indicator. */
  padding: clamp(20px, 4vw, 56px) 0 calc(96px + var(--safe-bottom, 0px));
}
@media (min-width: 768px) {
  .cartx { padding-bottom: clamp(48px, 6vw, 80px); }
}

.cartx__shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  /* Single source of horizontal padding for the cart screen. */
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Empty state keeps its own layout — no changes to .empty-state here */
.cartx--empty .cartx__shell { padding-bottom: 0; }

/* ── Page head — editorial eyebrow + bold display title ── */
.cartx__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.cartx__eyebrow {
  flex-basis: 100%;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cartx__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text-dark);
}
.cartx__count {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

/* ── Grid: items + sticky summary ── */
.cartx__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 960px) {
  .cartx__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}

/* ── Items list — hairline rows, no card chrome ── */
.cartx__items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.cartx__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cartx__row.is-removing {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}
@media (min-width: 600px) {
  .cartx__row { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; }
}

.cartx__media {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-bg-light);
}
@media (min-width: 600px) {
  .cartx__media { width: 120px; height: 120px; }
}
.cartx__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cartx__media:hover img { transform: scale(1.04); }
.cartx__media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
}

.cartx__body { min-width: 0; }
.cartx__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--color-text-dark);
  text-decoration: none;
}
@media (min-width: 600px) {
  .cartx__name { font-size: 17px; }
}
.cartx__name:hover { color: var(--color-accent-dark); }
.cartx__meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.cartx__unit {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.cartx__unit span {
  margin-left: 2px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

/* Controls row — quantity stepper + remove link */
.cartx__controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

/* Quantity — minimal text-aligned stepper with single 1px outline */
.cartx__qty {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-surface);
}
.cartx__qty-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-text-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cartx__qty-btn:hover,
.cartx__qty-btn:focus-visible {
  background: var(--color-text-dark);
  color: #fff;
  outline: none;
}
.cartx__qty-val {
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-dark);
}

.cartx__remove-form { margin: 0; }
.cartx__remove {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cartx__remove:hover,
.cartx__remove:focus-visible {
  color: var(--color-text-dark);
  border-bottom-color: var(--color-text-dark);
  outline: none;
}

/* Line total — large tabular numerals */
.cartx__line-total {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-dark);
  white-space: nowrap;
  align-self: flex-start;
}
@media (min-width: 600px) {
  .cartx__line-total { font-size: 18px; }
}

/* ── Summary ── */
.cartx__summary {
  /* On mobile this sits BELOW the items. On desktop it becomes sticky. */
}
@media (min-width: 960px) {
  .cartx__summary {
    position: sticky;
    top: calc(var(--header-h, 68px) + 24px);
  }
}
.cartx__summary-inner {
  padding: 24px 0 0;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 960px) {
  .cartx__summary-inner {
    padding: 28px 28px 28px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-surface);
  }
}
.cartx__summary-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cartx__summary-list {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--color-border);
}
.cartx__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-dark);
}
.cartx__summary-row dt,
.cartx__summary-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.cartx__summary-row dt { font-weight: 500; }
.cartx__summary-row dd { font-weight: 600; }
.cartx__summary-row--muted dd {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: right;
}
.cartx__summary-count {
  margin-left: 2px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.cartx__summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
}
.cartx__summary-total-amount { font-variant-numeric: tabular-nums; }

/* Primary CTA — flat, full-width, generous click area */
.cartx__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cartx__cta:hover,
.cartx__cta:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}
.cartx__cta:active { transform: scale(0.99); }
.cartx__cta svg { transition: transform 0.2s ease; }
.cartx__cta:hover svg { transform: translateX(2px); }

.cartx__continue {
  display: block;
  margin: 14px 0 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cartx__continue:hover,
.cartx__continue:focus-visible {
  color: var(--color-text-dark);
  border-bottom-color: var(--color-text-dark);
  outline: none;
}

/* ── Mobile sticky checkout bar ── */
.cartx__sticky-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-sticky, 40);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--color-border);
  padding-bottom: var(--safe-bottom, 0px);
  /* Slide-in feel without JS — just a subtle entrance via opacity */
  animation: cartx-sticky-in 0.25s ease both;
}
@keyframes cartx-sticky-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cartx__sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 4vw, 24px);
  padding-left:  calc(clamp(16px, 4vw, 24px) + var(--safe-left, 0px));
  padding-right: calc(clamp(16px, 4vw, 24px) + var(--safe-right, 0px));
  max-width: 1180px;
  margin: 0 auto;
}
.cartx__sticky-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cartx__sticky-bar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cartx__sticky-bar-amount {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-dark);
}
.cartx__sticky-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.12s ease;
}
.cartx__sticky-bar-cta:hover,
.cartx__sticky-bar-cta:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}
.cartx__sticky-bar-cta:active { transform: scale(0.97); }

/* Sticky bar shows on mobile only — desktop has the sidebar summary */
@media (min-width: 960px) {
  .cartx__sticky-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cartx__row,
  .cartx__media img,
  .cartx__qty-btn,
  .cartx__remove,
  .cartx__cta,
  .cartx__sticky-bar-cta,
  .cartx__continue { transition: none; }
  .cartx__cta:active,
  .cartx__sticky-bar-cta:active { transform: none; }
  .cartx__sticky-bar { animation: none; }
}


/* ============================================================
   CHECKOUT PAGE — Shopify-style
   ============================================================ */

/* --- Layout --- */
.sc-checkout { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 100vh;
}
@media (max-width: 999px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-right { order: -1; }
}

/* --- Left column --- */
.sc-left {
  padding: 40px 48px 40px 0;
  border-right: 1px solid var(--color-border);
}
@media (max-width: 999px) {
  .sc-left { padding: 24px 0; border-right: none; }
}

.sc-store-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* --- Express checkout --- */
.sc-express { text-align: center; margin-bottom: 20px; }
.sc-express-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-transform: none;
}
.sc-express-buttons { display: flex; gap: 8px; }
.sc-express-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 5px;
  cursor: not-allowed;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.sc-express-btn:hover { opacity: 1; }
.sc-express-btn--shop   { background: #5a31f4; }
.sc-express-btn--paypal { background: #ffc439; }
.sc-express-btn--gpay   { background: #fff; border: 1px solid #dadce0; }
.sc-express-btn--venmo  { background: #008cff; }
@media (max-width: 480px) {
  .sc-express-buttons { flex-wrap: wrap; }
  .sc-express-btn { flex: 1 1 calc(50% - 4px); }
}

/* --- Divider --- */
.sc-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.sc-divider::before, .sc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* --- Sections --- */
.sc-section { margin-bottom: 28px; }
.sc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.sc-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}
.sc-link {
  font-size: 13px;
  color: #1773b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sc-link:hover { color: #145d8c; }

/* --- Floating-label fields --- */
.sc-field {
  position: relative;
  margin-bottom: 12px;
}
.sc-input, .sc-select {
  width: 100%;
  height: 50px;
  padding: 22px 12px 6px;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.sc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.sc-input:focus, .sc-select:focus {
  border-color: #1773b0;
  box-shadow: 0 0 0 2px rgba(23,115,176,0.15);
}
.sc-float-label {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #717171;
  pointer-events: none;
  transition: top 0.15s, font-size 0.15s, color 0.15s;
  line-height: 1;
}
/* Label floats up when input has content or focus */
.sc-input:focus ~ .sc-float-label,
.sc-input:not(:placeholder-shown) ~ .sc-float-label,
.sc-float-label--up {
  top: 10px;
  transform: none;
  font-size: 11px;
  color: #717171;
}
.sc-select--has-value ~ .sc-float-label {
  top: 10px;
  transform: none;
  font-size: 11px;
}

/* Field icon (search icon on address) */
.sc-field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

/* --- Field rows --- */
/* Same bottom rhythm as single .sc-field so rows don't glue to the next block. */
.sc-row { display: grid; gap: 12px; margin-bottom: 12px; }
.sc-row--2 { grid-template-columns: 1fr 1fr; }
.sc-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.sc-row .sc-field { margin-bottom: 0; }
/* Last field/row in a section shouldn't add extra space before the section gap */
.sc-section > .sc-field:last-child,
.sc-section > .sc-row:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .sc-row--2 { grid-template-columns: 1fr; }
  .sc-row--3 { grid-template-columns: 1fr; }
}

/* --- Checkbox --- */
.sc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px; /* tap target ≥ 44px — whole label row is clickable */
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  margin-top: 4px;
}
.sc-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d1d1;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #1773b0;
  flex-shrink: 0;
}

/* --- Submit button --- */
.sc-btn-submit {
  width: 100%;
  padding: 18px;
  background: #1773b0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.sc-btn-submit:hover { background: #145d8c; }
.sc-btn-submit:active { transform: scale(0.995); }
.sc-terms {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Right column (order summary) --- */
.sc-right {
  background: #fafafa;
  border-left: 1px solid var(--color-border);
  /* Equal padding on both sides so the summary inner block has breathing room.
     The page-level .sc-checkout adds 20px outside, so total inset stays ~48px on desktop. */
  padding: 40px 28px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}
@media (max-width: 999px) {
  .sc-right {
    background: #fff;
    border-left: none;
    border-bottom: 1px solid var(--color-border);
    /* Mobile: inner padding so summary doesn't touch the column edges */
    padding: 20px 16px;
    position: static;
    max-height: none;
  }
}
.sc-summary-inner { max-width: 360px; margin: 0 auto; }

/* --- Product row --- */
.sc-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.sc-product + .sc-product { border-top: 1px solid var(--color-border); }
.sc-product-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.sc-product-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.sc-product-no-img {
  width: 64px;
  height: 64px;
  background: #f0f0f0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.sc-product-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 21px;
  height: 21px;
  background: rgba(114,114,114,0.9);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sc-product-info { flex: 1; min-width: 0; }
.sc-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-product-variant {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.sc-product-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Discount code --- */
.sc-discount {
  display: flex;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 6px;
}
.sc-discount-input {
  flex: 1;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.sc-discount-input:focus { border-color: #1773b0; }
.sc-discount-input::placeholder { color: #aaa; }
.sc-discount-btn {
  padding: 0 20px;
  height: 46px;
  background: #f0f0f0;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #717171;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.sc-discount-btn:hover { background: #e4e4e4; color: var(--color-text-dark); }

/* --- Totals --- */
.sc-totals {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.sc-totals-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
}
.sc-totals-line:last-child { margin-bottom: 0; }
.sc-totals-muted { color: var(--color-text-muted); font-size: 13px; }
.sc-totals-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
}
.sc-totals-currency {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: 4px;
  vertical-align: middle;
}


/* ============================================================
   ORDER SUCCESS
   ============================================================ */

.order-success-page { padding: var(--space-3xl) 0; text-align: center; }
.order-success-icon { font-size: 64px; line-height: 1; margin-bottom: var(--space-lg); color: #10b981; }
.order-success-title { font-size: 2.2rem; font-weight: 800; color: var(--color-text-dark); margin-bottom: var(--space-md); }
.order-success-subtitle { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.order-success-box {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  min-width: 320px; max-width: 480px;
  text-align: left;
  margin-bottom: var(--space-xl);
}
.order-success-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.order-success-row:last-child { border-bottom: none; }
.order-success-row strong { color: var(--color-text-dark); }
.order-success-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }


/* ============================================================
   CLASS ALIASES — map HTML template names to CSS definitions
   ============================================================ */

/* Announcement bar: HTML uses .announcement-slide, CSS uses .announcement-bar__text */
.announcement-slider { position: relative; height: 20px; overflow: hidden; }
.announcement-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #f3fc81; opacity: 0; transition: opacity 0.5s ease; white-space: nowrap; }
.announcement-slide.active { opacity: 1; }

/* Why Choose Us: styles in sections.css */

/* Collections: HTML uses .collections-section/.collections-more, CSS uses .car-collections/.collections-see-all */
.collections-section { padding: var(--space-section) 0; }
.collections-more { text-align: center; margin-top: 30px; }

/* Brand Story: HTML uses .brand-story-section/.brand-story-content */
.brand-story-section { padding: calc(var(--space-section) + 40px) 0 var(--space-section); background: var(--color-bg-light); }
.brand-story-content { max-width: 800px; margin: 0 auto; text-align: left; }
.brand-story-content p { font-size: 15px; color: var(--color-text); line-height: 1.8; margin-top: 20px; }

/* Canvas vs Poster: HTML uses .canvas-poster-* */
.canvas-poster-section { padding: var(--space-section) 0; }
.canvas-poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 30px; }
.canvas-poster-card { padding: 30px; background: var(--color-white); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.canvas-poster-title { font-size: 20px; font-weight: 600; color: var(--color-heading); margin-bottom: 12px; }
.canvas-poster-card p { font-size: 14px; color: var(--color-text); line-height: 1.7; margin-top: 10px; }

/* Testimonials: see sections.css "TESTIMONIALS SECTION" for the canonical styles. */

/* Collection/Category page: HTML uses .collection-header/.collection-title/.collection-count */
.collection-header { padding: 30px 0 20px; }
.collection-title { font-size: 28px; font-weight: 700; color: var(--color-heading); margin: 0; }
.collection-count { font-size: 14px; color: var(--color-text-muted); display: inline-block; margin-top: 4px; }

/* Header: search overlay, actions, logo image */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action-btn { background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-heading); display: flex; align-items: center; justify-content: center; transition: color 0.3s; }
.header-action-btn:hover { color: var(--color-accent); }
.cart-btn { position: relative; }
.logo-image { height: 40px; width: auto; display: block; }
.nav-list { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
.search-overlay { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 16px 0; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.search-overlay.open { display: block; }
.search-overlay .search-form { display: flex; gap: 8px; align-items: center; }
.search-overlay .search-input { flex: 1; padding: 10px 16px; border: 1px solid var(--color-border); border-radius: 30px; font-size: 15px; outline: none; font-family: inherit; }
.search-overlay .search-input:focus { border-color: var(--color-accent); }
.search-submit { background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-heading); }
.search-close { background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-text-muted); }
.search-toggle { position: relative; }

/* Search type select (header + search page) */
.search-type {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  padding: 9px 30px 9px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-heading);
  background: var(--color-white);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.search-type:focus { border-color: var(--color-accent); }
.search-type--large { padding: 13px 32px 13px 16px; font-size: 15px; }

/* Live-search suggestions dropdown (header) — grid of product cards */
.search-results {
  margin-top: 12px;
  max-height: 72vh;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 14px;
}
.search-results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.search-result:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.search-result__img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-light);
  border-radius: calc(var(--radius-md) - 1px);
}
.search-result__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.search-result:hover .search-result__img img { transform: scale(1.04); }
.search-result__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-dark);
  padding: 0 6px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-results__more {
  display: block;
  text-align: center;
  padding: 14px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  transition: background .2s, color .2s;
}
.search-results__more:hover { background: rgba(62,169,208,.08); color: var(--color-accent-dark); }
.search-results__empty { padding: 24px 14px; font-size: 14px; color: var(--color-text-muted); text-align: center; }

@media (max-width: 960px) {
  .search-results__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .search-results { padding: 10px; max-height: 78vh; }
  .search-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .search-result__title { font-size: 12.5px; padding: 0 4px 6px; }
}
@media (max-width: 560px) {
  .search-type { max-width: 38vw; }
}

/* Collection card placeholder in home */
.collection-card-placeholder { width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, #e0e0e0, #f0f0f0); }

/* Footer newsletter */
.footer-newsletter { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.newsletter-form { display: flex; gap: 10px; max-width: 400px; }
.newsletter-input { flex: 1; padding: 10px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 30px; font-size: 14px; background: transparent; color: #fff; font-family: inherit; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-btn { padding: 10px 24px; background: var(--color-accent); color: #fff; border: none; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.3s; }
.newsletter-btn:hover { background: var(--color-accent-hover); }

/* Footer social */
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; transition: background 0.3s; }
.footer-social a:hover { background: var(--color-accent); }

/* Footer contact */
.footer-contact .contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #555; font-size: 14px; }
.footer-contact .contact-item svg { flex-shrink: 0; margin-top: 2px; }

/* Payment icons in footer */
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 20px 0; }

/* Responsive: Canvas-Poster, Collections */
@media (max-width: 768px) {
  .canvas-poster-grid { grid-template-columns: 1fr; }
  .collection-title { font-size: 22px; }
  .nav-list { flex-direction: column; gap: 0; }
  .header-actions { gap: 4px; }
  .logo-image { height: 32px; }
}
@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   AUTH PAGES: Login / Register
   ============================================================ */
.auth-page {
  display: flex;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  min-height: 60vh;
}
.auth-box {
  width: 100%;
  max-width: 440px;
}
.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}
.auth-subtitle {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: var(--space-xl);
}
.auth-form { display: flex; flex-direction: column; gap: var(--space-md); }
.btn-auth {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
  margin-top: var(--space-sm);
}
.btn-auth:hover { opacity: 0.85; }
.auth-switch {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--color-text-muted);
}
.auth-switch a { color: var(--color-accent); font-weight: 600; }


/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-page {
  padding: var(--space-xl) var(--space-md);
  max-width: 780px;
  margin: 0 auto;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}
.account-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}
.account-email {
  color: var(--color-text-muted);
  font-size: 14px;
}
.btn-logout {
  padding: 8px 20px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
}
.btn-logout:hover { border-color: var(--color-accent-red); color: var(--color-accent-red); }
.account-section { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: var(--space-lg); }
.account-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-lg);
}
.account-empty { text-align: center; padding: var(--space-xl) 0; color: var(--color-text-muted); }
.account-empty p { margin-bottom: var(--space-md); }
.btn-shop-now {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: opacity var(--transition);
}
.btn-shop-now:hover { opacity: 0.85; color: #fff; }
.orders-table-wrap { overflow-x: auto; }
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.orders-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}
.orders-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}
.orders-table tbody tr:last-child td { border-bottom: none; }
.order-num { font-weight: 600; color: var(--color-text-dark); font-size: 13px; }
.order-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.order-status--pending    { background: #fff8e1; color: #b07800; }
.order-status--processing { background: #e3f2fd; color: #1565c0; }
.order-status--shipped    { background: #e8f5e9; color: #2e7d32; }
.order-status--completed  { background: #e8f5e9; color: #2e7d32; }
.order-status--cancelled  { background: #ffebee; color: #c62828; }


/* ============================================================
   WISHLIST
   ============================================================ */

/* Header badge */
.wishlist-btn { position: relative; }
.wishlist-badge {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 16px; height: 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 3px;
  pointer-events: none;
}

/* Product card heart button — moved to components.css (critical/inlined layer)
   so it's position:absolute from first paint (was causing a ~0.47 CLS here). */

/* Wishlist page */
.wishlist-page { padding: var(--space-xl) var(--space-md); max-width: 1100px; margin: 0 auto; }
.wishlist-title { font-size: 28px; font-weight: 700; color: var(--color-text-dark); margin-bottom: var(--space-sm); }
.wishlist-count { color: var(--color-text-muted); font-size: 14px; margin-bottom: var(--space-lg); }
.btn-wishlist-shop {
  display: inline-block;
  padding: 11px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: opacity var(--transition);
}
.btn-wishlist-shop:hover { opacity: .85; color: #fff; }
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}
.wishlist-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  transition: box-shadow var(--transition);
}
.wishlist-card:hover { box-shadow: 0 4px 16px var(--color-shadow-md); }
.wishlist-card-link { display: block; color: inherit; text-decoration: none; }
.wishlist-card-img { aspect-ratio: 1; overflow: hidden; background: var(--color-bg-light); }
.wishlist-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wishlist-card:hover .wishlist-card-img img { transform: scale(1.04); }
.wishlist-no-img { display: flex; align-items: center; justify-content: center; color: var(--color-border-dark); }
.wishlist-card-info { padding: var(--space-md); }
.wishlist-card-title { font-size: 13px; font-weight: 500; color: var(--color-text-dark); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wishlist-card-price { font-size: 13px; color: var(--color-accent); font-weight: 600; }
.wishlist-card-remove {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-dark);
  opacity: 1;
  transform: scale(.95);
  transition: transform .15s ease, color var(--transition), background .15s ease, border-color .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  z-index: 2;
}
.wishlist-card-remove:hover {
  color: #fff;
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
  transform: scale(1);
  box-shadow: 0 4px 14px rgba(208,71,62,.35);
}
.wishlist-card-remove:active { transform: scale(.92); }
.wishlist-card-remove:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ============================================================
   STATIC PAGES
   ============================================================ */
.static-page { padding: var(--space-xl) var(--space-md); max-width: 820px; margin: 0 auto; }
.static-page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: var(--space-lg) 0 var(--space-xl);
}
.static-page-content.prose { font-size: 15px; line-height: 1.8; color: var(--color-text); }
.static-page-content.prose h2 { font-size: 1.5em; font-weight: 700; margin: 1.6em 0 .6em; color: var(--color-text-dark); }
.static-page-content.prose h3 { font-size: 1.25em; font-weight: 600; margin: 1.4em 0 .5em; color: var(--color-text-dark); }
.static-page-content.prose h4 { font-size: 1.1em; font-weight: 600; margin: 1.2em 0 .4em; }
.static-page-content.prose p  { margin-bottom: .9em; }
.static-page-content.prose ul,
.static-page-content.prose ol { padding-left: 1.5em; margin-bottom: .9em; }
.static-page-content.prose li { margin-bottom: .3em; }
.static-page-content.prose a  { color: var(--color-accent); }
.static-page-content.prose a:hover { color: var(--color-accent-dark); }
.static-page-content.prose strong { font-weight: 700; color: var(--color-text-dark); }
.static-page-content.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* ── Static type landing page (/wall-art, /hoodie, …) ──────────────────────── */
.type-landing { padding-bottom: clamp(48px, 7vw, 90px); }

/* Hero — warm editorial band */
.type-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Cancel .site-main top padding so the band sits flush under the header */
  margin-top: calc(var(--space-xl) * -1);
  padding: clamp(20px, 2.6vw, 36px) 0 clamp(24px, 3vw, 40px);
  margin-bottom: clamp(30px, 4vw, 52px);
  background: linear-gradient(180deg, #faf6ec 0%, #fffdf9 100%);
  border-bottom: 1px solid #efe6d4;
}
.type-hero__glow {
  position: absolute;
  top: -42%;
  left: 50%;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(62,169,208,.16), transparent 62%);
  pointer-events: none;
}
.type-hero > .container { position: relative; }
.type-hero .breadcrumbs { margin: 0 0 12px; padding: 0; }
.type-hero .breadcrumbs ol { justify-content: center; }
.type-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin: 0 0 10px;
}
.type-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: var(--color-text-dark);
  margin: 0;
  text-wrap: balance;
}
.type-hero__sub {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 12px auto 0;
  text-wrap: balance;
}
.type-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--color-text);
}
.type-hero__meta li { position: relative; }
.type-hero__meta li + li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--color-border-dark);
}
.type-hero__meta strong { color: var(--color-text-dark); font-weight: 700; }

/* Collections section */
.type-collections { padding-top: 4px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.7vw, 22px);
}

/* Editorial collection card — illustration on top, caption below */
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  animation: catCardIn .5s ease both;
  animation-delay: calc(var(--i, 0) * 26ms);
}
@keyframes catCardIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(20, 20, 20, .13);
  border-color: var(--color-border-dark);
}
.cat-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4efe6;
  overflow: hidden;
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card__media img { transform: scale(1.045); }
.cat-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: #cabfa6;
  background: #f4efe6;
}
.cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}
.cat-card__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
}
.cat-card__arrow {
  flex-shrink: 0;
  display: flex;
  color: var(--color-text-muted);
  transition: transform .28s ease, color .28s ease;
}
.cat-card:hover .cat-card__arrow { transform: translateX(3px); color: var(--color-accent-dark); }

/* ── Editorial "About" card (category / type / cars pages) ──────────────── */
.about-section {
  max-width: 880px;
  margin: clamp(44px, 6vw, 80px) auto 0;
  padding: clamp(34px, 4.5vw, 58px) clamp(22px, 4vw, 60px);
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%, rgba(62, 169, 208, .08), transparent 70%),
    linear-gradient(180deg, #faf6ec 0%, #fdfbf6 100%);
  border: 1px solid #efe6d4;
  border-radius: var(--radius-lg);
}
.about-section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 24px;
}
.about-section__eyebrow::before,
.about-section__eyebrow::after {
  content: "";
  height: 1px;
  width: 38px;
  background: var(--color-border-dark);
}
.about-section__eyebrow span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.about-section__body {
  font-size: 15.5px;
  line-height: 1.78;
  color: #4b4b4b;
}
.about-section__body > *:first-child { margin-top: 0; }
.about-section__body > *:last-child { margin-bottom: 0; }
.about-section__body h2,
.about-section__body h3,
.about-section__body h4 {
  color: var(--color-text-dark);
  letter-spacing: -.02em;
  line-height: 1.25;
}
.about-section__body h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  text-align: center;
  margin: 1.6em 0 .7em;
  text-wrap: balance;
}
.about-section__body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 1.6em 0 .5em;
}
.about-section__body h4 { font-size: 1.05rem; font-weight: 600; margin: 1.3em 0 .4em; }
.about-section__body p { margin: 0 0 1.05em; }
.about-section__body ul,
.about-section__body ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.about-section__body li { margin-bottom: .42em; }
.about-section__body li::marker { color: var(--color-accent); }
.about-section__body a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.about-section__body a:hover { color: var(--color-accent-dark); }
.about-section__body strong { color: var(--color-text-dark); font-weight: 700; }
.about-section__body em { font-style: italic; }
.about-section__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.4em 0;
}
/* Thematic article photos embedded in the description. */
.about-section__body figure.cc-img { margin: 1.6em 0; }
.about-section__body figure.cc-img img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.about-section__body blockquote {
  margin: 1.5em 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--color-accent);
  font-size: 1.08em;
  color: var(--color-text-dark);
}
@media (max-width: 560px) {
  .about-section__body { font-size: 15px; }
}

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card__foot { padding: 11px 13px; }
  .cat-card__name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card { animation: none; }
}

/* Product types comparison (wallart static page) */
.product-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin: 0 0 var(--space-xl); }
.product-type { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg); }
.product-type img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0; }
.type-description { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.type-description h3 { font-size: 1.2em; font-weight: 700; margin: 0 0 var(--space-sm); color: var(--color-text-dark); }
.type-description p { font-size: 14px; line-height: 1.7; margin-bottom: .6em; }
.type-description ul { padding-left: 1.4em; margin-bottom: .8em; font-size: 14px; }
.type-description li { margin-bottom: .25em; }
@media (max-width: 768px) {
  .product-types { grid-template-columns: 1fr; }
}



/* ============================================================
   THE ENJOYPOSTER JOURNAL — Blog redesign
   Editorial / gallery aesthetic. Mobile-first.
   Namespace: .bx-*  (blog experience)
   ============================================================ */

:root {
  --bx-ink:      var(--color-text-dark);
  --bx-paper:    var(--color-surface);
  --bx-line:     var(--color-border);
  --bx-muted:    var(--color-text-muted);
  --bx-accent:   var(--color-accent);
  --bx-radius:   18px;
  --bx-radius-lg: 26px;
  --bx-ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --bx-shadow:   0 30px 70px -38px rgba(17, 17, 17, 0.42);
}

/* ---- Shared reveal animation ---- */
.bx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--bx-ease), transform 0.7s var(--bx-ease);
  transition-delay: var(--bx-delay, 0ms);
  will-change: opacity, transform;
}
.bx-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Shared bits ---- */
.bx-meta-dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  vertical-align: middle;
}
.bx-cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bx-accent);
}
.bx-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.32s var(--bx-ease);
}

/* ---- Typographic fallback (no cover image) ---- */
.bx-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(130% 110% at 14% 6%, color-mix(in srgb, var(--bx-accent) 60%, transparent) 0%, transparent 55%),
    radial-gradient(150% 120% at 100% 100%, color-mix(in srgb, var(--color-accent-red) 46%, transparent) 0%, transparent 58%),
    #131318;
  color: #fff;
}
.bx-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 78%);
}
.bx-fallback-mark {
  position: relative;
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 14px 50px rgba(0,0,0,0.45);
}
.bx-fallback-word {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.bx-fallback--cover .bx-fallback-mark { font-size: clamp(6rem, 18vw, 13rem); }
.bx-fallback--hero  .bx-fallback-mark { font-size: clamp(5rem, 14vw, 10rem); }
.bx-fallback--keep  { gap: 0; }
.bx-fallback--keep .bx-fallback-mark { font-size: clamp(2.4rem, 8vw, 3.4rem); }

/* ============================================================
   BLOG LIST
   ============================================================ */
.blog-list-page { padding-bottom: clamp(56px, 9vw, 110px); }

/* ---- Masthead ---- */
.bx-masthead {
  margin: clamp(20px, 5vw, 48px) 0 clamp(28px, 5vw, 52px);
  max-width: 18ch;
  max-width: min(940px, 100%);
}
.bx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bx-ink);
  margin-bottom: clamp(16px, 2.4vw, 24px);
}
.bx-kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bx-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bx-accent) 22%, transparent);
}
.bx-masthead-title {
  font-size: clamp(2.3rem, 7.4vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--bx-ink);
  margin: 0 0 clamp(14px, 2vw, 22px);
  text-wrap: balance;
}
.bx-masthead.is-category .bx-masthead-title { letter-spacing: -0.035em; }
.bx-masthead-lede {
  font-size: clamp(15.5px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--bx-muted);
  max-width: 60ch;
  margin: 0;
}

/* ---- Category rail ---- */
.bx-rail {
  position: relative;
  margin: 0 -16px clamp(32px, 5vw, 56px);
  padding: 4px 16px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.bx-rail::-webkit-scrollbar { display: none; }
.bx-rail-track {
  display: inline-flex;
  gap: 8px;
}
.bx-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 17px;
  background: var(--bx-paper);
  border: 1px solid var(--bx-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bx-ink);
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.22s var(--bx-ease), color 0.22s var(--bx-ease),
              border-color 0.22s var(--bx-ease), transform 0.18s var(--bx-ease);
}
.bx-pill:hover {
  border-color: var(--bx-ink);
  transform: translateY(-1px);
}
.bx-pill.is-active {
  background: var(--bx-ink);
  border-color: var(--bx-ink);
  color: #fff;
}
.bx-pill-count {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bx-ink) 8%, transparent);
  color: var(--bx-muted);
}
.bx-pill.is-active .bx-pill-count {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ---- Featured cover story ---- */
.bx-cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--bx-paper);
  border: 1px solid var(--bx-line);
  text-decoration: none;
  color: inherit;
  margin-bottom: clamp(44px, 6vw, 84px);
  transition: box-shadow 0.4s var(--bx-ease), transform 0.4s var(--bx-ease),
              border-color 0.4s var(--bx-ease);
}
.bx-cover:hover {
  box-shadow: var(--bx-shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.bx-cover:focus-visible {
  outline: 3px solid var(--bx-accent);
  outline-offset: 3px;
}
.bx-cover-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f4f7 0%, #e9e9ee 100%);
}
.bx-cover-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--bx-ease);
}
.bx-cover:hover .bx-cover-media img { transform: scale(1.045); }
.bx-cover-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bx-ink);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.3);
}
.bx-cover-body {
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 16px);
}
.bx-cover-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bx-muted);
}
.bx-cover-title {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--bx-ink);
  margin: 0;
  text-wrap: balance;
}
.bx-cover-excerpt {
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.62;
  color: var(--bx-muted);
  max-width: 56ch;
  margin: 0;
}
.bx-cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(4px, 1vw, 10px);
  font-size: 15px;
  font-weight: 700;
  color: var(--bx-ink);
}
.bx-cover-cta .bx-arrow { color: var(--bx-accent); }
.bx-cover:hover .bx-cover-cta .bx-arrow { transform: translateX(6px); }

@media (min-width: 880px) {
  .bx-cover {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .bx-cover-media {
    aspect-ratio: auto;
    min-height: 440px;
    height: 100%;
  }
  .bx-cover-body { justify-content: center; }
}

/* ---- Section heading above grid ---- */
.bx-section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 clamp(22px, 3vw, 34px);
}
.bx-section-title {
  flex: 0 0 auto;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--bx-ink);
  margin: 0;
}
.bx-section-rule {
  flex: 1;
  height: 1px;
  background: var(--bx-line);
}

/* ---- Post grid ---- */
.bx-grid {
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 64px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
}
.bx-grid-item { margin: 0; min-width: 0; }

@media (min-width: 640px) {
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .bx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 3vw, 48px) clamp(28px, 2.6vw, 40px);
  }
}

.bx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bx-card-link {
  display: block;
  border-radius: var(--bx-radius);
  text-decoration: none;
}
.bx-card-link:focus-visible {
  outline: 3px solid var(--bx-accent);
  outline-offset: 3px;
}
.bx-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--bx-radius);
  background: linear-gradient(135deg, #f4f4f7 0%, #e9e9ee 100%);
  border: 1px solid var(--bx-line);
}
.bx-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--bx-ease);
}
.bx-card:hover .bx-card-media img { transform: scale(1.055); }
.bx-card.is-textonly .bx-card-media { border-color: transparent; }

.bx-card-body {
  padding: 17px 2px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bx-card-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.bx-card-readtime {
  font-size: 12px;
  font-weight: 500;
  color: var(--bx-muted);
  white-space: nowrap;
}
.bx-card-title {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.018em;
  color: var(--bx-ink);
  margin: 0 0 9px;
  text-wrap: balance;
}
.bx-card-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--bx-accent), var(--bx-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.35s var(--bx-ease);
}
.bx-card:hover .bx-card-title a { background-size: 100% 2px; }
.bx-card-title a:focus-visible {
  outline: 2px solid var(--bx-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.bx-card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bx-muted);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--bx-line);
  font-size: 12.5px;
  color: var(--bx-muted);
}
.bx-card-go {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--bx-line);
  color: var(--bx-ink);
  transition: background 0.26s var(--bx-ease), color 0.26s var(--bx-ease),
              border-color 0.26s var(--bx-ease), transform 0.26s var(--bx-ease);
}
.bx-card:hover .bx-card-go {
  background: var(--bx-ink);
  border-color: var(--bx-ink);
  color: #fff;
  transform: translateX(3px);
}

/* ---- Empty state ---- */
.bx-empty {
  text-align: center;
  max-width: 440px;
  margin: clamp(40px, 8vw, 90px) auto;
  padding: 0 16px;
}
.bx-empty-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--bx-accent) 10%, transparent);
  color: var(--bx-accent);
  margin-bottom: 22px;
}
.bx-empty-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bx-ink);
  margin: 0 0 10px;
}
.bx-empty-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bx-muted);
  margin: 0 0 24px;
}
.bx-empty-btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--bx-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--bx-ease), background 0.2s var(--bx-ease);
}
.bx-empty-btn:hover { background: #000; transform: translateY(-2px); }

/* ============================================================
   BLOG SINGLE POST
   ============================================================ */

/* ---- Reading progress ---- */
.bx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 1200;
  pointer-events: none;
}
.bx-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bx-accent), var(--color-accent-red));
  box-shadow: 0 0 12px color-mix(in srgb, var(--bx-accent) 70%, transparent);
}

.blog-post-page { padding-bottom: clamp(56px, 9vw, 110px); }

/* Shared "reading shell" — breadcrumbs + article header + body share the same column.
   The hero image and Keep Reading section break out wider below. */
.bx-article-shell {
  max-width: 820px;
  margin: 0 auto;
}

/* Refine breadcrumbs ONLY on the blog post page — small, all-caps, journal-style.
   Pulls them visually onto the article column instead of letting them drift to the container edge. */
.blog-post-page .breadcrumbs {
  margin-bottom: 0;
  padding: clamp(14px, 2vw, 22px) 0 0;
}
.blog-post-page .breadcrumbs ol {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  gap: 8px;
}
.blog-post-page .breadcrumbs a { color: var(--bx-muted); }
.blog-post-page .breadcrumbs a:hover { color: var(--bx-ink); }
.blog-post-page .breadcrumbs span[aria-current] { color: var(--bx-ink); font-weight: 700; }
.blog-post-page .breadcrumb-sep { color: var(--bx-line); }

.bx-article {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

/* ---- Article header — editorial, left-aligned ---- */
.bx-article-head {
  text-align: left;
  margin: clamp(22px, 3.6vw, 40px) 0 clamp(26px, 4vw, 44px);
}
.bx-article-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.4vw, 24px);
}
.bx-article-cat {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bx-accent) 13%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: background 0.2s var(--bx-ease);
}
.bx-article-cat:hover {
  background: color-mix(in srgb, var(--bx-accent) 24%, transparent);
}
.bx-article-from {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bx-muted);
}
.bx-article-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--bx-ink);
  margin: 0 0 clamp(16px, 2.4vw, 22px);
  text-wrap: balance;
}
.bx-article-deck {
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.5;
  color: var(--bx-muted);
  max-width: 64ch;
  margin: 0 0 clamp(20px, 2.8vw, 28px);
  text-wrap: balance;
}
.bx-article-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bx-muted);
}

/* ---- Hero image ---- */
.bx-article-hero {
  position: relative;
  margin: 0 auto clamp(30px, 5vw, 60px);
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--color-bg-light);
}
.bx-article-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 580px;
  object-fit: cover;
}
.bx-article-hero--textonly {
  aspect-ratio: 16 / 9;
}
.bx-article-hero--textonly .bx-fallback { position: absolute; }

@media (min-width: 900px) {
  .bx-article-hero {
    width: min(1120px, calc(100vw - 80px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* ---- Article body wrapper — host for the sticky share rail on wide screens ---- */
.bx-article-body {
  position: relative;
}
.bx-article-body::after { content: ""; display: block; clear: both; }

/* ---- Sticky share rail (desktop only, sits in the left gutter beside the prose) ---- */
.bx-rail {
  display: none;
}
@media (min-width: 1200px) {
  .bx-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    float: left;
    width: 56px;
    margin-left: -88px;
    position: sticky;
    top: 110px;
  }
  .bx-rail-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bx-muted);
    margin-bottom: 6px;
  }
  .bx-rail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bx-line);
    background: transparent;
    color: var(--bx-ink);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.22s var(--bx-ease), color 0.22s var(--bx-ease),
                border-color 0.22s var(--bx-ease), transform 0.22s var(--bx-ease);
  }
  .bx-rail-btn:hover {
    background: var(--bx-ink);
    border-color: var(--bx-ink);
    color: #fff;
    transform: translateY(-2px);
  }
  .bx-rail-btn:focus-visible {
    outline: 3px solid var(--bx-accent);
    outline-offset: 2px;
  }
  .bx-rail-btn.is-copied {
    background: var(--bx-accent);
    border-color: var(--bx-accent);
    color: #fff;
  }
}

/* ---- Long-form prose (the heart of the reading experience) ---- */
.bx-article-content.prose {
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.8;
  color: #2a2a2d;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bx-article-content.prose > * + * { margin-top: 1.35em; }

/* Drop-cap on the opening paragraph */
.bx-article-content.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.82;
  font-weight: 700;
  margin: 0.06em 0.12em 0 0;
  color: var(--bx-ink);
}

.bx-article-content.prose .lead {
  font-size: 1.16em;
  line-height: 1.56;
  color: var(--bx-ink);
  font-weight: 500;
  margin-bottom: 1.7em;
}
.bx-article-content.prose .lead::first-letter { font-size: inherit; float: none; margin: 0; }

.bx-article-content.prose h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--bx-ink);
  margin: 2.1em 0 0.6em;
  text-wrap: balance;
}
.bx-article-content.prose h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--bx-accent);
  margin-bottom: 0.7em;
}
.bx-article-content.prose h3 {
  font-size: clamp(1.22rem, 2.3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--bx-ink);
  margin: 1.9em 0 0.5em;
}
.bx-article-content.prose p { margin: 0; }
.bx-article-content.prose ul,
.bx-article-content.prose ol {
  margin: 0;
  padding-left: 1.35em;
}
.bx-article-content.prose li { margin-bottom: 0.55em; padding-left: 0.25em; }
.bx-article-content.prose ul li::marker { color: var(--bx-accent); }
.bx-article-content.prose ol li::marker { color: var(--bx-muted); font-weight: 700; }
.bx-article-content.prose a {
  color: var(--bx-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--bx-accent) 55%, transparent);
  text-underline-offset: 3.5px;
  transition: color 0.2s var(--bx-ease), text-decoration-color 0.2s var(--bx-ease);
}
.bx-article-content.prose a:hover {
  color: var(--color-accent-dark);
  text-decoration-color: var(--bx-accent);
}
.bx-article-content.prose strong { font-weight: 700; color: var(--bx-ink); }
.bx-article-content.prose em { font-style: italic; }
.bx-article-content.prose img {
  width: 100%;
  height: auto;
  border-radius: var(--bx-radius);
  margin: 1.9em 0;
  display: block;
}
.bx-article-content.prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--bx-accent);
  font-size: 1.22em;
  line-height: 1.5;
  font-weight: 500;
  font-style: normal;
  color: var(--bx-ink);
}
.bx-article-content.prose hr {
  border: 0;
  margin: 2.6em auto;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--bx-line);
  position: relative;
}
.bx-article-content.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  margin: 1.9em 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bx-article-content.prose table thead { background: var(--color-bg-light); }
.bx-article-content.prose table th,
.bx-article-content.prose table td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--bx-line);
  vertical-align: top;
}
.bx-article-content.prose table th {
  font-weight: 700;
  color: var(--bx-ink);
  font-size: 0.9em;
  letter-spacing: 0.02em;
}
.bx-article-content.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--color-bg-light);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ---- Article footer ---- */
.bx-article-footer {
  /* When preceded by .article-author-card (which now has no bottom border),
     this top border + padding gives the natural separation. */
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: 28px;
  border-top: 1px solid var(--bx-line);
}
/* Tighter still when the footer follows the author card directly */
.article-author-card + .bx-article-footer { margin-top: 0; }
.bx-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.bx-tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bx-muted);
  margin-right: 4px;
}
.bx-tag {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  background: var(--color-bg-light);
  border: 1px solid var(--bx-line);
  border-radius: 999px;
  color: var(--bx-ink);
}
.bx-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--bx-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--bx-ease), transform 0.2s var(--bx-ease);
}
.bx-back-link:hover { background: #000; transform: translateY(-2px); }
.bx-back-link:hover .bx-arrow--back { transform: translateX(-4px); }
.bx-share {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.bx-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bx-muted);
}
.bx-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bx-line);
  color: var(--bx-ink);
  text-decoration: none;
  transition: background 0.22s var(--bx-ease), color 0.22s var(--bx-ease),
              border-color 0.22s var(--bx-ease), transform 0.22s var(--bx-ease);
}
.bx-share-btn:hover {
  background: var(--bx-ink);
  border-color: var(--bx-ink);
  color: #fff;
  transform: translateY(-2px);
}
.bx-share-btn:focus-visible {
  outline: 3px solid var(--bx-accent);
  outline-offset: 2px;
}

/* ---- Keep reading ---- */
.bx-keep {
  margin: clamp(56px, 9vw, 104px) auto 0;
  max-width: 1120px;
}
.bx-keep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 32px);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bx-ink);
}
.bx-keep-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bx-ink);
  margin: 0;
}
.bx-keep-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bx-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--bx-ease);
}
.bx-keep-all .bx-arrow { color: var(--bx-accent); }
.bx-keep-all:hover { color: var(--color-accent-dark); }
.bx-keep-all:hover .bx-arrow { transform: translateX(5px); }
.bx-keep-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2.6vw, 26px);
}
@media (min-width: 720px) {
  .bx-keep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bx-keep-card {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--bx-radius);
  height: 100%;
}
.bx-keep-card:focus-visible {
  outline: 3px solid var(--bx-accent);
  outline-offset: 3px;
}
@media (min-width: 720px) {
  .bx-keep-card { flex-direction: column; gap: 14px; }
}
.bx-keep-media {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f4f7 0%, #e9e9ee 100%);
  border: 1px solid var(--bx-line);
}
@media (min-width: 720px) {
  .bx-keep-media {
    width: 100%;
    aspect-ratio: 5 / 4;
  }
}
.bx-keep-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bx-ease);
}
.bx-keep-card:hover .bx-keep-media img { transform: scale(1.06); }
.bx-keep-card.is-textonly .bx-keep-media { border-color: transparent; }
.bx-keep-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.bx-keep-card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--bx-ink);
  transition: color 0.2s var(--bx-ease);
}
.bx-keep-card:hover .bx-keep-card-title { color: var(--color-accent-dark); }
.bx-keep-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bx-keep-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--bx-muted);
}
.bx-keep-go {
  font-weight: 700;
  color: var(--bx-ink);
  transition: transform 0.24s var(--bx-ease);
}
.bx-keep-card:hover .bx-keep-go { transform: translateX(3px); }

/* ============================================================
   BLOG — DARK MODE
   ============================================================ */
[data-bs-theme="dark"] .bx-card-media,
[data-bs-theme="dark"] .bx-cover-media,
[data-bs-theme="dark"] .bx-keep-media {
  background: linear-gradient(135deg, #1f1f23 0%, #131316 100%);
}
[data-bs-theme="dark"] .bx-cover-tag {
  background: rgba(28,28,32,0.9);
  color: #fff;
}
[data-bs-theme="dark"] .bx-article-content.prose { color: #d4d4d8; }
[data-bs-theme="dark"] .bx-article-content.prose code,
[data-bs-theme="dark"] .bx-article-content.prose table thead,
[data-bs-theme="dark"] .bx-tag,
[data-bs-theme="dark"] .bx-pill-count {
  background: rgba(255,255,255,0.07);
}

/* ============================================================
   BLOG — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .bx-reveal { opacity: 1; transform: none; transition: none; }
  .bx-cover,
  .bx-cover-media img,
  .bx-card-media img,
  .bx-keep-media img,
  .bx-arrow,
  .bx-card-go,
  .bx-share-btn,
  .bx-back-link,
  .bx-pill,
  .bx-empty-btn {
    transition: none !important;
  }
  .bx-cover:hover,
  .bx-back-link:hover,
  .bx-empty-btn:hover,
  .bx-share-btn:hover { transform: none; }
  .bx-cover:hover .bx-cover-media img,
  .bx-card:hover .bx-card-media img,
  .bx-keep-card:hover .bx-keep-media img { transform: none; }
}

</content>

/* ============================================================
   CART BADGE — always show count (even 0)
   ============================================================ */

.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 3px;
  pointer-events: none;
}


/* ============================================================
   HEADER ACTION BUTTON
   ============================================================ */

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.header-action-btn:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

/* Search overlay */
.search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.search-overlay.open { display: block; }
.search-form {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.search-input {
  flex: 1;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--color-accent); }
.search-input::placeholder { color: var(--color-text-muted); }
.search-submit,
.search-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.search-submit:hover,
.search-close:hover {
  color: var(--color-primary);
  background: var(--color-bg-light);
}

/* nav-list adjustments */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-dark);
  text-decoration: none;
  padding: 6px 14px;
  transition: color var(--transition);
}
.nav-link:hover {
  color: var(--color-accent);
}
.nav-link.active {
  color: var(--color-accent);
  font-weight: 700;
}

/* Header actions group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* Collections section spacing */
.collections-section {
  padding: 0;
  margin-bottom: var(--home-section-gap);
}

/* Home page vertical rhythm: one equal gap between every visible section. */
.hero-video,
.why-us-section,
.collections-section,
.testimonials-section,
.cta-video-section,
.brand-story-section {
  margin-bottom: var(--home-section-gap);
}

.why-us-section,
.collections-section,
.brand-story-section {
  padding-top: 0;
  padding-bottom: 0;
}
/* .testimonials-section intentionally retains its own vertical padding (see sections.css) */

/* ============================================================
   PRODUCT PAGE — "Why choose us?" trust section
   ============================================================ */

.product-why {
  margin: var(--space-3xl) 0 var(--space-3xl);
  padding: 56px 0;
  background:
    radial-gradient(1100px 380px at 50% -100px, rgba(62,169,208,0.05), transparent 70%),
    linear-gradient(180deg, #fafbfc 0%, #f5f7f9 100%);
  border-radius: var(--radius-lg);
}
.product-why__head {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-lg);
  text-align: center;
}
.product-why__title {
  font-family: var(--font-base);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: var(--heading-letter-spacing);
  color: var(--color-text-dark);
  margin: 0 0 12px;
  line-height: 1.15;
}
.product-why__sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}
.product-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.product-why__card {
  text-align: center;
  padding: 8px 4px;
}
.product-why__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--color-text-dark);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.9), rgba(255,255,255,0));
  position: relative;
}
.product-why__icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(17,17,17,0.10);
  pointer-events: none;
}
.product-why__icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
.product-why__heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-text-dark);
  margin: 0 0 10px;
}
.product-why__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .product-why__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 480px) {
  .product-why { padding: 36px 0; margin: var(--space-2xl) 0; border-radius: var(--radius-md); }
  .product-why__head { margin-bottom: var(--space-xl); padding: 0 var(--space-md); }
  .product-why__title { font-size: 24px; }
  .product-why__sub { font-size: 14px; }
  .product-why__grid { gap: 24px 16px; padding: 0 var(--space-md); }
  .product-why__icon { width: 56px; height: 56px; margin-bottom: 12px; }
  .product-why__icon::after { inset: -4px; }
  .product-why__icon svg { width: 34px; height: 34px; }
  .product-why__heading { font-size: 14.5px; margin-bottom: 6px; }
  .product-why__text { font-size: 13px; }
}

/* ============================================================
   PRODUCT PAGE — "Where do we reside?" studio section
   ============================================================ */

.product-studio {
  margin: var(--space-3xl) 0;
}
.product-studio__head {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.product-studio__title {
  font-family: var(--font-base);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: var(--heading-letter-spacing);
  color: var(--color-text-dark);
  margin: 0 0 12px;
  line-height: 1.15;
}
.product-studio__sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}
.product-studio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-studio__card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-studio__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1.625 / 1;
  background: #efefef;
}
.product-studio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.product-studio__card:hover .product-studio__media img {
  transform: scale(1.04);
}
.product-studio__caption {
  text-align: center;
  padding: 0 var(--space-sm);
}
.product-studio__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.product-studio__caption p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .product-studio__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .product-studio { margin: var(--space-2xl) 0; }
  .product-studio__head { margin-bottom: var(--space-lg); }
  .product-studio__title { font-size: 24px; }
  .product-studio__heading { font-size: 16px; }
  .product-studio__caption p { font-size: 13.5px; }
}

/* ============================================================
   ACCOUNT (new tabbed layout) — sidebar + main
   ============================================================ */

.acct-page {
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
  max-width: 1080px;
  margin: 0 auto;
}
.acct-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 900px) {
  .acct-layout { grid-template-columns: 260px 1fr; gap: 40px; }
}

/* Sidebar */
.acct-side {
  background: linear-gradient(180deg, #fafbfc, #f4f6f8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.acct-side__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}
.acct-side__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.acct-side__who { min-width: 0; }
.acct-side__name { font-weight: 700; color: var(--color-text-dark); font-size: 14px; line-height: 1.2; }
.acct-side__email {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-side__nav { display: flex; flex-direction: column; gap: 2px; }
.acct-side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.acct-side__link:hover { background: rgba(17,17,17,0.04); color: var(--color-text-dark); }
.acct-side__link.is-active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.acct-side__link.is-active:hover { background: var(--color-primary); }
.acct-side__link svg { flex-shrink: 0; }
.acct-side__link--logout { color: var(--color-accent-red); }
.acct-side__link--logout:hover { background: rgba(208,71,62,0.08); color: var(--color-accent-red); }

/* Main column */
.acct-main { min-width: 0; }
.acct-main__head { margin-bottom: var(--space-xl); }
.acct-main__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}
.acct-main__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}
.acct-main__sub {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}
.acct-back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
}
.acct-back:hover { color: var(--color-text-dark); }

/* Stat tiles */
.acct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: var(--space-xl);
}
@media (max-width: 600px) {
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-stats .acct-stat:nth-child(3) { grid-column: span 2; }
}
.acct-stat {
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.acct-stat__label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.acct-stat__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
}
.acct-stat__value--small { font-size: 14px; font-weight: 600; }

/* Cards */
.acct-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  margin-bottom: 18px;
}
.acct-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.acct-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.acct-card__head .acct-card__title { margin: 0; }
.acct-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.acct-link:hover { color: var(--color-accent-dark); text-decoration: underline; }
.acct-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
}
.acct-link-btn:hover { color: var(--color-accent-dark); text-decoration: underline; }
.acct-link-btn--danger { color: var(--color-accent-red); }
.acct-link-btn--danger:hover { color: var(--color-accent-red); }
.acct-empty {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-text-muted);
}
.acct-empty p { margin-bottom: var(--space-md); }

/* Orders list */
.acct-orders { list-style: none; padding: 0; margin: 0; }
.acct-order {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}
.acct-order:first-child { border-top: 0; }
.acct-orders--full .acct-order {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.acct-orders--full .acct-order:first-child { border-top: 1px solid var(--color-border); }
.acct-order__main {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.acct-order__num {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-dark);
  letter-spacing: -0.005em;
}
.acct-order__date { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.acct-order__track { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.acct-order__price { font-weight: 700; font-size: 14px; color: var(--color-text-dark); white-space: nowrap; }
.acct-order { grid-template-columns: 1fr auto auto auto; }
.acct-order__reorder { margin: 0; }
.btn-reorder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-dark);
  background: var(--color-surface);
  color: var(--color-text-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.12s ease;
  white-space: nowrap;
}
.btn-reorder:hover,
.btn-reorder:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  outline: none;
}
.btn-reorder:active { transform: scale(0.97); }
.btn-reorder--lg {
  padding: 10px 18px;
  font-size: 14px;
}
.acct-main__head-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.acct-order-reorder-form { margin: 0; }
@media (max-width: 600px) {
  .acct-order { grid-template-columns: 1fr auto; }
  .acct-order__status { grid-column: 1 / -1; justify-self: start; }
  .acct-order__reorder { grid-column: 1 / -1; justify-self: stretch; }
  .btn-reorder { justify-content: center; width: 100%; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-reorder { transition: background var(--transition), border-color var(--transition), color var(--transition); }
  .btn-reorder:active { transform: none; }
}

/* Status pills */
.acct-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.acct-status--lg { padding: 6px 14px; font-size: 13px; }
.acct-status--pending    { background: #fff8e1; color: #b07800; }
.acct-status--paid       { background: #e3f2fd; color: #1565c0; }
.acct-status--processing { background: #e3f2fd; color: #1565c0; }
.acct-status--shipped    { background: #e8f5e9; color: #2e7d32; }
.acct-status--completed,
.acct-status--delivered  { background: #e8f5e9; color: #2e7d32; }
.acct-status--cancelled,
.acct-status--failed     { background: #ffebee; color: #c62828; }

/* Timeline */
.order-timeline-card { padding-top: 22px; }
.order-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.order-timeline::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.order-tl {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.order-tl__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-border);
  margin-bottom: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.order-tl.is-active .order-tl__dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(17,17,17,0.08);
}
.order-tl__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.order-tl.is-active .order-tl__label { color: var(--color-text-dark); }
.order-tl__date {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.25;
}
@media (max-width: 640px) {
  .order-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .order-timeline::before { display: none; }
  .order-tl {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .order-tl:last-child { border-bottom: 0; }
  .order-tl__dot { margin-bottom: 0; }
  .order-tl__label { flex: 1; font-size: 13px; }
  .order-tl__date { margin-top: 0; }
}

.order-track-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fafbfc, #f4f6f8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 16px;
}
.order-track-card__label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.order-track-card__value { font-weight: 700; font-size: 15px; color: var(--color-text-dark); }
.text-muted { color: var(--color-text-muted); font-weight: 400; }

/* Items list (order detail + track detail) */
.order-items { list-style: none; padding: 0; margin: 0 0 18px; }
.order-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}
.order-item:first-child { border-top: 0; }
.order-item__media img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.order-item__body { min-width: 0; }
.order-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  letter-spacing: -0.005em;
  display: block;
  line-height: 1.3;
}
.order-item__title:hover { color: var(--color-accent); }
.order-item__opts { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.order-item__qty { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.order-item__total { font-weight: 700; font-size: 14px; color: var(--color-text-dark); white-space: nowrap; }

.order-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
  font-size: 13.5px;
}
.order-totals > div { display: flex; justify-content: space-between; color: var(--color-text-muted); }
.order-totals > div:first-child { color: var(--color-text); }
.order-totals__grand {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--color-text-dark) !important;
  padding-top: 6px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
.order-address { font-style: normal; font-size: 14px; line-height: 1.6; color: var(--color-text); }
.order-address__contact { font-size: 13px; color: var(--color-text-muted); margin-top: 8px; }
.acct-help { margin-top: 14px; font-size: 13px; color: var(--color-text-muted); text-align: center; }
.acct-help a { color: var(--color-accent); }

/* Address cards */
.addr-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.addr-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.addr-card--default {
  border-color: rgba(17,17,17,0.18);
  box-shadow: 0 0 0 1px rgba(17,17,17,0.04);
}
.addr-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  background: rgba(17,17,17,0.06);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.addr-card__name { font-weight: 700; color: var(--color-text-dark); }
.addr-card__line { font-size: 13.5px; color: var(--color-text); line-height: 1.55; }
.addr-card__phone { font-size: 13px; color: var(--color-text-muted); }
.addr-card__actions {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

/* Forms shared */
.acct-form { display: flex; flex-direction: column; gap: 14px; max-width: 540px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-text);
}
.acct-form__actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }

/* Common btn helpers (if not already defined) */
.btn { display: inline-block; padding: 11px 22px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: opacity var(--transition); }
.btn-dark { background: var(--color-primary); color: #fff; }
.btn-dark:hover { opacity: 0.88; color: #fff; }

/* Track public pages */
.track-page {
  padding: var(--space-2xl) var(--space-md) var(--space-3xl);
  max-width: 720px;
  margin: 0 auto;
}
.track-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  text-align: center;
}
.track-box--center { padding: 50px 28px; }
.track-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-dark);
  margin: 0 0 8px;
}
.track-title-lg {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-dark);
  margin: 0 0 8px;
}
.track-sub {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin: 0 0 22px;
  line-height: 1.55;
}
.track-form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.track-hint { margin-top: 16px; font-size: 13px; color: var(--color-text-muted); }
.track-hint a { color: var(--color-accent); }

.track-head {
  text-align: center;
  margin: 12px 0 var(--space-xl);
}
.track-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 6px;
}
.track-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  margin-bottom: 18px;
}
.track-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.track-eta {
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.track-help { margin-top: 14px; font-size: 13px; color: var(--color-text-muted); text-align: center; }
.track-help a { color: var(--color-accent); }

/* Auth secondary link (forgot password) */
.auth-switch--secondary {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 13px;
}

/* ============================================================
   STICKY PURCHASE CTA — appears when main Add-to-Cart scrolls away
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -12px 30px rgba(17,17,17,0.07);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  /* iOS safe-area: lift content above the home indicator on iPhone X+ */
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left:  calc(18px + env(safe-area-inset-left, 0px));
  padding-right: calc(18px + env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.sticky-cta__media {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
}
.sticky-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sticky-cta__info { min-width: 0; }
.sticky-cta__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: -0.005em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__variant {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sticky-cta__btn {
  /* uses existing .btn-add-to-cart styles; override padding for compact form */
  padding: 12px 24px !important;
  font-size: 14px !important;
  min-width: 140px;
}

/* Desktop: hide media + variant text become more spacious, anchor to right of product info */
@media (min-width: 900px) {
  .sticky-cta__inner { padding: 12px 24px; }
}

/* Mobile: tighten and stack columns differently */
@media (max-width: 640px) {
  .sticky-cta__inner {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding: 8px 12px;
  }
  .sticky-cta__media { width: 44px; height: 44px; }
  .sticky-cta__title { font-size: 13px; }
  .sticky-cta__price { display: none; }
  .sticky-cta__btn {
    padding: 11px 18px !important;
    min-width: 0;
    font-size: 13px !important;
  }
}

/* Add bottom padding to body so sticky CTA doesn't cover the last accordion item */
body.has-sticky-cta { padding-bottom: 72px; }


/* ============================================================
   TRUST RAIL — reassurance at every purchase-decision point
   (PDP under ATC · Cart sidebar · Checkout summary)
   #124
   ============================================================ */

.trust-rail {
  margin: var(--space-md) 0;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 var(--color-shadow);
}

.trust-rail__head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.trust-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.trust-rail__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--color-border);
}

/* First row in each column has no top border */
.trust-rail__item:nth-child(1),
.trust-rail__item:nth-child(2) { border-top: 0; }

.trust-rail__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(62, 169, 208, 0.08);   /* tint of --color-accent */
  color: var(--color-accent-dark);
}
.trust-rail__icon svg { display: block; }

.trust-rail__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.trust-rail__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.005em;
}
.trust-rail__sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.trust-rail__link {
  font-size: 12px;
  margin-top: 2px;
  color: var(--color-accent-dark);
  text-decoration: none;
  word-break: break-all;
}
.trust-rail__link:hover { text-decoration: underline; }

.trust-rail__pay {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.trust-rail__pay-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.trust-rail__pay-icons {
  max-width: 100%;
  height: auto;
  max-height: 28px;
  flex: 1;
  object-fit: contain;
  object-position: right;
}

/* Variant tweaks */

/* PDP — sits right under ATC, slightly tighter */
.trust-rail--pdp {
  margin-top: 14px;
}

/* Cart — fits inside sticky summary card; lighter chrome, no shadow */
.trust-rail--cart {
  margin-top: var(--space-md);
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.trust-rail--cart .trust-rail__list { grid-template-columns: 1fr; gap: 0; }
.trust-rail--cart .trust-rail__item { border-top: 1px dashed var(--color-border); padding: 10px 0; }
.trust-rail--cart .trust-rail__item:nth-child(1) { border-top: 0; }
.trust-rail--cart .trust-rail__item:nth-child(2) { border-top: 1px dashed var(--color-border); }
.trust-rail--cart .trust-rail__icon { width: 32px; height: 32px; border-radius: 8px; }
.trust-rail--cart .trust-rail__icon svg { width: 18px; height: 18px; }

/* Checkout — neutral chrome on grey summary panel */
.trust-rail--checkout {
  background: #ffffff;
  margin-top: 18px;
}
.trust-rail--checkout .trust-rail__list { grid-template-columns: 1fr; gap: 0; }
.trust-rail--checkout .trust-rail__item { border-top: 1px dashed var(--color-border); padding: 10px 0; }
.trust-rail--checkout .trust-rail__item:nth-child(1) { border-top: 0; }
.trust-rail--checkout .trust-rail__item:nth-child(2) { border-top: 1px dashed var(--color-border); }
.trust-rail--checkout .trust-rail__icon { width: 32px; height: 32px; border-radius: 8px; }
.trust-rail--checkout .trust-rail__icon svg { width: 18px; height: 18px; }

/* Narrow screens: PDP rail collapses to single column */
@media (max-width: 600px) {
  .trust-rail__list { grid-template-columns: 1fr; gap: 0; }
  .trust-rail__item { border-top: 1px dashed var(--color-border); padding: 10px 0; }
  .trust-rail__item:nth-child(1) { border-top: 0; }
  .trust-rail__item:nth-child(2) { border-top: 1px dashed var(--color-border); }
  .trust-rail { padding: 14px 14px; }
  .trust-rail__pay { gap: 10px; }
  .trust-rail__pay-icons { max-height: 24px; }
}


/* ============================================================
   CHECKOUT — Reassurance strip under Pay button
   #124
   ============================================================ */

.sc-reassure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fafafa;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-dark);
}
.sc-reassure__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-reassure__row svg { flex-shrink: 0; color: var(--color-accent-dark); }
.sc-reassure__row--muted { color: var(--color-text-muted); font-size: 12.5px; }
.sc-reassure__row--muted svg { color: var(--color-text-muted); }

.sc-terms a {
  color: var(--color-accent-dark);
  text-decoration: none;
}
.sc-terms a:hover { text-decoration: underline; }


/* ============================================================
   CHECKOUT — Minimal mobile chrome (focus on payment)
   #132
   ============================================================ */

/* On mobile, hide site chrome that distracts from completing the order. */
@media (max-width: 999px) {
  body.is-checkout .announcement-bar,
  body.is-checkout .header-nav,
  body.is-checkout .header-overlay,
  body.is-checkout .search-overlay,
  body.is-checkout .hamburger,
  body.is-checkout .header-actions .search-toggle,
  body.is-checkout .header-actions .wishlist-btn,
  body.is-checkout .header-actions .header-action-btn[aria-label="Sign In"],
  body.is-checkout .header-actions .header-action-btn[aria-label="My Account"],
  body.is-checkout .site-footer,
  body.is-checkout .sticky-cta { display: none !important; }

  /* Slim header — logo on the left, cart button on the right; everything else hidden. */
  body.is-checkout .site-header { border-bottom: 1px solid var(--color-border); box-shadow: none; }
  body.is-checkout .header-inner { justify-content: space-between; }
  body.is-checkout .header-actions { gap: 0; }

  /* Tighten checkout layout for one-handed mobile use */
  body.is-checkout .sc-checkout { padding: 0 16px; }
  body.is-checkout .sc-store-name { display: none; }   /* logo already shows it */
  body.is-checkout .sc-section { padding-top: 6px; }
}

/* Even on desktop, suppress the announcement ticker so it doesn't compete with the form. */
body.is-checkout .announcement-bar { display: none !important; }


/* ============================================================
   CHECKOUT — Minimal logo-only header (#132)
   ============================================================ */

.sc-mini-header {
  border-bottom: 1px solid var(--color-border);
  background: #ffffff;
}
.sc-mini-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sc-mini-header__logo { display: inline-flex; align-items: center; }
.sc-mini-header__logo img { height: 36px; width: auto; display: block; }
.sc-mini-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.sc-mini-header__back:hover { color: var(--color-accent-dark); }

@media (max-width: 600px) {
  .sc-mini-header__inner { padding: 10px 16px; }
  .sc-mini-header__logo img { height: 30px; }
  .sc-mini-header__back span { display: none; }
  .sc-mini-header__back { width: 36px; height: 36px; border-radius: 50%; justify-content: center; gap: 0; border: 1px solid var(--color-border); }
}

/* Hide the duplicated store-name now that we have a logo header */
body.is-checkout .sc-store-name { display: none; }

/* ─── Checkout progress stepper (#65) ────────────────────────── */
.sc-stepper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
}
.sc-stepper__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  gap: 0;
}
.sc-stepper__step {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-stepper__step + .sc-stepper__step::before {
  content: '';
  position: absolute;
  left: -50%;
  right: 50%;
  top: 16px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
  transform: translateY(-50%);
}
.sc-stepper__step.is-completed + .sc-stepper__step::before,
.sc-stepper__step.is-current + .sc-stepper__step::before {
  background: linear-gradient(to right, var(--color-primary) 50%, var(--color-border) 50%);
}
.sc-stepper__step.is-completed + .sc-stepper__step.is-completed::before,
.sc-stepper__step.is-completed + .sc-stepper__step.is-current::before {
  background: var(--color-primary);
}
.sc-stepper__link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: 4px;
  min-width: 60px;
}
.sc-stepper__link:hover,
.sc-stepper__link:focus-visible {
  color: var(--color-text-dark);
  outline: none;
}
.sc-stepper__link[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}
.sc-stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.18s ease;
}
.sc-stepper__step.is-current .sc-stepper__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}
.sc-stepper__step.is-current .sc-stepper__label {
  color: var(--color-text-dark);
  font-weight: 700;
}
.sc-stepper__step.is-completed .sc-stepper__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  /* Checkmark replaces the number for completed steps */
  font-size: 0;
}
.sc-stepper__step.is-completed .sc-stepper__num::after {
  content: '';
  display: block;
  width: 12px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.sc-stepper__step.is-completed .sc-stepper__label {
  color: var(--color-text-dark);
}
.sc-stepper__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Highlight a section briefly when its step is clicked / on validation error */
.sc-section.is-attention {
  animation: sc-section-attention 1.2s ease;
}
@keyframes sc-section-attention {
  0%   { box-shadow: 0 0 0 0 rgba(208, 71, 62, 0); }
  20%  { box-shadow: 0 0 0 4px rgba(208, 71, 62, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(208, 71, 62, 0); }
}

@media (max-width: 480px) {
  .sc-stepper { padding: 10px 8px; }
  .sc-stepper__num { width: 24px; height: 24px; font-size: 12px; }
  .sc-stepper__label { font-size: 11px; }
  .sc-stepper__step + .sc-stepper__step::before { top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-stepper__num { transition: background var(--transition), border-color var(--transition), color var(--transition); }
  .sc-stepper__step.is-current .sc-stepper__num { transform: none; }
  .sc-section.is-attention { animation: none; }
}


/* ============================================================
   AUTH (v2) — Editorial split-screen for /login /register
   /forgot-password /reset-password
   ============================================================ */

/* Reset the legacy .auth-page constraints when v2 shell is present */
.auth-page:has(.auth-shell) {
  padding: 0;
  display: block;
  min-height: 0;
}
/* Drop the site-main vertical padding so the shell butts the header / footer flush */
.site-main:has(.auth-shell) { padding: 0; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
}

/* ───────── Hero / left side ───────── */
.auth-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  color: #2b1a0c;
  /* Soft warm gallery wall */
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(60% 60% at 95% 95%, rgba(208, 71, 62, .07), transparent 70%),
    radial-gradient(50% 50% at 5% 5%, rgba(62, 169, 208, .08), transparent 70%),
    linear-gradient(180deg, #f4ece1 0%, #e9dec9 100%);
}
.auth-hero::after {
  /* Paper grain (svg noise) */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .15  0 0 0 0 .1  0 0 0 0 .05  0 0 0 .25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.45'/></svg>");
  mix-blend-mode: multiply;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.auth-hero > * { position: relative; z-index: 1; }

.auth-hero__brand { display: inline-flex; align-self: flex-start; }
.auth-hero__brand img { height: 36px; width: auto; display: block; }

.auth-hero__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.auth-hero__frame {
  margin: 0;
  padding: 18px 18px 22px;
  background: #fbf8f3;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 24px 50px -20px rgba(43, 26, 12, .35),
    0 8px 18px -10px rgba(43, 26, 12, .25);
  border: 1px solid rgba(94, 65, 38, .25);
  transform: rotate(-1.4deg);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
  max-width: 360px;
  width: 100%;
}
.auth-hero__frame:hover { transform: rotate(0deg) translateY(-4px); }
.auth-hero__art {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 2px;
  background:
    radial-gradient(120% 80% at 30% 15%, #ffd5a3 0%, rgba(255, 213, 163, 0) 55%),
    radial-gradient(80% 70% at 85% 80%, #d0473e 0%, rgba(208, 71, 62, 0) 60%),
    radial-gradient(70% 60% at 10% 90%, #3ea9d0 0%, rgba(62, 169, 208, 0) 60%),
    linear-gradient(165deg, #2b1a0c 0%, #6b3a1b 45%, #c97a3d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.18),
    inset 0 0 60px rgba(0,0,0,.25);
  position: relative;
}
.auth-hero__art::before {
  /* Sun disc detail */
  content: '';
  position: absolute;
  top: 18%;
  left: 62%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4d8 0%, #ffd084 50%, rgba(255, 208, 132, 0) 70%);
  filter: blur(.5px);
}
.auth-hero__art::after {
  /* Subtle horizon line */
  content: '';
  position: absolute;
  left: 0; right: 0; top: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,244,216,.35), transparent);
}
.auth-hero__frame figcaption {
  margin-top: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  color: #5b4628;
  letter-spacing: .01em;
  text-align: center;
}

.auth-hero__quote {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: #2b1a0c;
  letter-spacing: -0.01em;
  max-width: 38ch;
}
.auth-hero__quote::before { content: '“'; font-size: 1.4em; line-height: 0; vertical-align: -.25em; margin-right: 4px; color: rgba(43,26,12,.5); }
.auth-hero__quote::after  { content: '”'; font-size: 1.4em; line-height: 0; vertical-align: -.25em; margin-left: 2px; color: rgba(43,26,12,.5); }

.auth-hero__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 13px;
  color: #4a3621;
}
.auth-hero__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.auth-hero__perks svg {
  flex-shrink: 0;
  color: #2d8fb3;
  background: rgba(255,255,255,.55);
  border-radius: 50%;
  padding: 5px;
  width: 26px; height: 26px;
}

/* ───────── Right panel ───────── */
.auth-panel {
  display: flex;
  flex-direction: column;
  padding: 16px 64px;
  background: #ffffff;
}
.auth-panel__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.auth-panel__skip {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.auth-panel__skip:hover { color: var(--color-accent-dark); }

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 8px 0;
}
.auth-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
  padding: 4px 10px;
  background: rgba(62,169,208,.10);
  border-radius: 999px;
}
.auth-card__title {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--color-text-dark);
  margin: 0 0 10px;
}
.auth-card__sub {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  line-height: 1.55;
}

.auth-flash {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid;
}
.auth-flash--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.auth-flash--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.auth-flash--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.auth-form2 { display: flex; flex-direction: column; gap: 14px; }

.auth-field {
  position: relative;
}
.auth-field input,
.auth-field select {
  width: 100%;
  height: 56px;
  padding: 22px 16px 8px;
  font-size: 15px;
  font-family: var(--font-base);
  color: var(--color-text-dark);
  background: #fff;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.auth-field input:hover { border-color: #cdcdcd; }
.auth-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(62,169,208,.15);
}
.auth-field label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 15px;
  color: #8a8a8a;
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, color .15s ease, transform .15s ease;
  background: transparent;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label,
.auth-field input:-webkit-autofill + label {
  top: 12px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-accent-dark);
  text-transform: uppercase;
}
/* Required-marker dot */
.auth-field--required label::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-red);
  margin-left: 6px;
  vertical-align: 2px;
}

.auth-field__toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.auth-field__toggle:hover { color: var(--color-accent-dark); background: rgba(62,169,208,.08); }

.auth-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}
.auth-card__row .auth-link { font-size: 13px; font-weight: 600; color: var(--color-accent-dark); text-decoration: none; }
.auth-card__row .auth-link:hover { text-decoration: underline; }

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox input { width: 16px; height: 16px; accent-color: var(--color-accent); }

.auth-card__cta {
  width: 100%;
  height: 56px;
  margin-top: 6px;
  background: var(--color-text-dark);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-card__cta:hover {
  background: #000;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}
.auth-card__cta:active { transform: scale(.99); }
.auth-card__cta svg { transition: transform .25s; }
.auth-card__cta:hover svg { transform: translateX(3px); }

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.auth-card__divider::before,
.auth-card__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Social login buttons (Google + Facebook) */
.social-auth { margin: 18px 0 8px; }
.social-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.social-auth__divider::before,
.social-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.social-auth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform 0.12s ease;
}
.social-auth__btn:hover,
.social-auth__btn:focus-visible {
  border-color: var(--color-text-dark);
  box-shadow: 0 2px 8px var(--color-shadow);
  outline: none;
}
.social-auth__btn:active { transform: scale(0.98); }
.social-auth__btn svg { flex-shrink: 0; }
.social-auth__btn span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .social-auth__btn { transition: background var(--transition), border-color var(--transition); }
  .social-auth__btn:active { transform: none; }
}

.auth-card__alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background .2s;
}
.auth-card__alt:hover { border-color: var(--color-accent); color: var(--color-accent-dark); background: rgba(62,169,208,.04); }

.auth-panel__foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-panel__foot svg { width: 14px; height: 14px; }

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-hero {
    padding: 28px 24px;
    gap: 22px;
    min-height: 280px;
  }
  .auth-hero__stage { display: none; }       /* keep mobile light: drop the big art */
  .auth-hero__quote { font-size: 19px; }
  .auth-hero__perks { grid-template-columns: 1fr 1fr; }
  .auth-panel {
    padding: 12px 20px 16px;
    min-height: 0;
  }
  .auth-card { padding: 8px 0 0; }
  .auth-card__title { font-size: 28px; }
  .auth-card__sub   { font-size: 14px; margin-bottom: 22px; }
}

@media (max-width: 480px) {
  .auth-hero { padding: 22px 18px; min-height: 180px; gap: 16px; }
  .auth-hero__quote { font-size: 17px; }
  .auth-hero__perks { grid-template-columns: 1fr; gap: 8px; font-size: 12.5px; }
  .auth-hero__perks svg { width: 22px; height: 22px; padding: 4px; }
}

/* ════════════════════════════════════════════════════════════════════════
   AUTHOR PAGE — editorial / journal-portrait
   Hero + tabs + Prints/Articles grids. Restrained typography, hairline
   dividers, generous breathing room. All token-driven from variables.css.
   ════════════════════════════════════════════════════════════════════════ */

.author-page { padding: 40px 0 96px; }
.author-page .container { max-width: 1180px; }

/* — Hero — */
.author-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: end;
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}
.author-hero__avatar {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(0,0,0,.25);
  background: #f3f4f6;
}
.author-hero__avatar::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.06);
  pointer-events: none;
}
.author-hero__avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.author-hero__eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.author-hero__name {
  font-family: var(--font-base);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--color-text-dark);
  margin: 0 0 18px;
}
.author-hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 22px;
}
.author-hero__loc svg { width: 14px; height: 14px; opacity: .65; }

.author-hero__bio {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 60ch;
  margin: 0;
}

.author-hero__social {
  display: flex; gap: 10px; margin-top: 22px;
}
.author-hero__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f6f7f8;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.author-hero__social a:hover {
  background: var(--color-text-dark);
  color: #fff;
  transform: translateY(-1px);
}
.author-hero__social svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .author-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: left;
    padding-top: 16px;
  }
  .author-hero__avatar { width: 132px; height: 132px; }
  .author-hero__name { font-size: clamp(32px, 9vw, 44px); }
  .author-hero__bio { font-size: 16px; }
}

/* — Tabs — */
.author-tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  margin-top: 8px;
}
.author-tab {
  background: none; border: 0;
  padding: 14px 2px 16px;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.author-tab[aria-selected="true"] { color: var(--color-text-dark); }
.author-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--color-text-dark);
}
.author-tab__cnt {
  font-weight: 500;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-left: 6px;
  letter-spacing: .06em;
}

.author-panel { animation: authorFadeIn .25s ease-out; }
.author-panel[hidden] { display: none; }
@keyframes authorFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.author-empty {
  padding: 80px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: #fafafa;
}

/* — Prints grid — */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 22px;
}
.author-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.author-card__img {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f6f7f8;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.author-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.author-card:hover .author-card__img img { transform: scale(1.035); }
.author-card__title {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text-dark);
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.author-card:hover .author-card__title { color: var(--color-accent-dark); }

/* — Load more — */
.author-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.author-loadmore__btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-text-dark);
  background: #fff;
  border: 1px solid var(--color-text-dark);
  border-radius: 999px;
  padding: 13px 38px;
  transition: background .2s, color .2s, opacity .2s;
}
.author-loadmore__btn:hover { background: var(--color-text-dark); color: #fff; }
.author-loadmore__btn:disabled { opacity: .55; cursor: default; }

/* — Articles list — */
.author-articles {
  display: grid;
  gap: 8px;
}
.author-article {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  color: inherit;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.author-article:last-child { border-bottom: 0; }
.author-article:hover .author-article__title { color: var(--color-accent-dark); }
.author-article__img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #f6f7f8;
}
.author-article__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.author-article:hover .author-article__img img { transform: scale(1.035); }
.author-article__body { padding-top: 4px; }
.author-article__date {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.author-article__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  transition: color .18s;
}
.author-article__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
  .author-article { grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; }
  .author-article__title { font-size: 17px; }
  .author-article__excerpt { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   PRODUCT PAGE — Author block (compact)
   ════════════════════════════════════════════════════════════════════════ */

.product-author {
  position: relative;
  margin: 32px 0;
  padding: 22px 22px 22px 22px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.product-author__date {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.product-author__label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.product-author__card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.product-author__avatar {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.product-author__meta { min-width: 0; flex: 1; }
.product-author__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}
.product-author__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 3px;
}
.product-author__quote {
  font-size: 14px;
  font-style: italic;
  color: var(--color-text);
  margin-top: 8px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-author__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
}
.product-author__card:hover .product-author__link { color: var(--color-text-dark); }
.product-author__link svg { width: 12px; height: 12px; transition: transform .2s; }
.product-author__card:hover .product-author__link svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════════════════
   ARTICLE — Byline + About the author block
   ════════════════════════════════════════════════════════════════════════ */

.bx-article-author-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.bx-article-author-link:hover { color: var(--color-text-dark); text-decoration: underline; }

.article-author-card {
  /* Bottom border + margin removed so the next element's top border
     (bx-article-footer) doubles as this section's bottom rule. Avoids
     the "empty bordered block" between the two divider lines. */
  margin: 48px 0 0;
  padding: 28px 28px 32px;
  border-top: 1px solid var(--color-border);
}
.article-author-card__eyebrow {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.article-author-card__body {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: start;
}
.article-author-card__avatar-link {
  display: block;
  width: 112px; height: 112px;
}
.article-author-card__avatar-link img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.2);
}
.article-author-card__info { min-width: 0; }
.article-author-card__name {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--color-text-dark);
  text-decoration: none;
  line-height: 1.15;
}
.article-author-card__name:hover { color: var(--color-accent-dark); }
.article-author-card__loc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.article-author-card__bio {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 12px 0 14px;
}
.article-author-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.article-author-card__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .15s;
}
.article-author-card__links a:hover { color: var(--color-text-dark); }
.article-author-card__links .aac-profile {
  color: var(--color-accent-dark);
}
.article-author-card__links .aac-profile:hover { color: var(--color-text-dark); }

@media (max-width: 540px) {
  .article-author-card__body {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .article-author-card__avatar-link { margin: 0 auto; }
  .article-author-card__links { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════════
   Team page (/team)
   ════════════════════════════════════════════════════════════════════════ */

.team-page { padding: 56px 0 96px; }
.team-page .container { max-width: 1180px; }

/* Hero */
.team-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
.team-hero__eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 18px;
}
.team-hero__title {
  font-family: var(--font-base);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--color-text-dark);
  margin: 0 0 18px;
}
.team-hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}
@media (max-width: 720px) {
  .team-hero { margin-bottom: 36px; padding-bottom: 28px; }
  .team-hero__lede { font-size: 16px; }
}

/* Tabs */
.team-tabs {
  display: flex;
  justify-content: center;
  gap: 44px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}
.team-tab {
  background: none; border: 0;
  padding: 14px 2px 18px;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.team-tab[aria-selected="true"] { color: var(--color-text-dark); }
.team-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--color-text-dark);
}
.team-tab__cnt {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f1f3;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .04em;
}
.team-tab[aria-selected="true"] .team-tab__cnt {
  background: var(--color-text-dark);
  color: #fff;
}

.team-panel { animation: teamFadeIn .25s ease-out; }
.team-panel[hidden] { display: none; }
@keyframes teamFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-empty {
  padding: 80px 16px;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: #fafafa;
}

/* — Our Team grid — */
.team-grid--core {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .team-grid--core { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid--core { grid-template-columns: 1fr; gap: 22px; } }

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(0,0,0,.22);
}

.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f5f7, #e8eaed);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__body { padding: 22px 22px 26px; }
.team-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent-dark, #b88a4d);
  background: rgba(184,138,77,.08);
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.team-card__name {
  font-family: var(--font-base);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
  margin: 0 0 4px;
  line-height: 1.15;
}
.team-card__role {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  letter-spacing: .01em;
}
.team-card__bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

/* Owner spotlight — first card spans two columns on wide screens */
.team-card--owner {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
}
.team-card--owner .team-card__photo { aspect-ratio: auto; min-height: 100%; }
.team-card--owner .team-card__body {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-card--owner .team-card__name { font-size: clamp(26px, 3vw, 32px); }
.team-card--owner .team-card__bio { font-size: 15.5px; max-width: 46ch; }
.team-card--owner .team-card__badge { background: var(--color-text-dark); color: #fff; }

@media (max-width: 980px) {
  .team-card--owner {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .team-card--owner {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .team-card--owner .team-card__photo { aspect-ratio: 1 / 1; }
  .team-card--owner .team-card__body { padding: 22px 22px 26px; }
}

/* — Authors grid — */
.team-authors__lede {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
  margin: -16px 0 36px;
}
.team-grid--authors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 36px 24px;
}
.team-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 8px 4px;
  border-radius: 12px;
  transition: background .2s;
}
.team-author:hover { background: #fafafa; }

.team-author__photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
  margin-bottom: 14px;
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.22);
}
.team-author__photo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.06);
}
.team-author__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.team-author:hover .team-author__photo img { transform: scale(1.06); }

.team-author__name {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.team-author__loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.team-author__loc svg { width: 11px; height: 11px; opacity: .7; }
.team-author__stats {
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: .01em;
}
.team-author__stats strong {
  color: var(--color-text-dark);
  font-weight: 600;
}
.team-author__dot { opacity: .5; }

@media (max-width: 540px) {
  .team-tabs { gap: 28px; }
  .team-grid--authors { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .team-author__photo { width: 108px; height: 108px; }
}

}
