/* ══════════════════════════════════════════════
   LDRC Components CSS — Navbar, Footer, Cards
══════════════════════════════════════════════ */

/* ── Navbar ── */
/* Bootstrap .navbar uses padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x); reset y so our top/bottom win */
#ldrc-navbar,
.ldrc-navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1050;
  /* compositor layer reduces subpixel jump when the mobile URL bar resizes */
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Notch + air so the bar is not flush to the top when sticky (esp. mobile) */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 991.98px) {
  /* !important beats Bootstrap’s padding shorthand if load order ever shifts */
  nav#ldrc-navbar.ldrc-navbar.navbar,
  #ldrc-navbar,
  .ldrc-navbar {
    padding-top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    padding-bottom: 0.75rem !important;
  }

  #ldrc-navbar > .ldrc-container {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

.ldrc-navbar .navbar-brand {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.ldrc-navbar .nav-link {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 12px 20px !important;
  position: relative;
}

.ldrc-navbar .nav-link:hover {
  color: var(--text-primary);
}

.ldrc-navbar .nav-link.active {
  color: var(--gold);
  font-weight: 600;
}

.ldrc-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.ldrc-navbar .navbar-toggler {
  border-color: var(--color-border);
  padding: 6px 10px;
}

.ldrc-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(99,102,241,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .ldrc-navbar .navbar-collapse {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
    margin-top: 8px;
    border-radius: 0 0 12px 12px;
  }

  .ldrc-navbar .nav-link.active::after {
    display: none;
  }
}

/* ── Footer ── */
.ldrc-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
  padding-bottom: 32px;
}

.ldrc-footer h5 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.ldrc-footer a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 3px 0;
}

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

.ldrc-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 40px;
}

.ldrc-footer .footer-bottom p,
.ldrc-footer .footer-bottom a {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Logo icon ── */
.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ── Page Hero ── */
.page-hero {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
}

.breadcrumb-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

.breadcrumb-custom .sep {
  color: var(--gold);
  opacity: 0.5;
}

.breadcrumb-custom .current {
  color: var(--gold);
}

.page-hero .breadcrumb-custom {
  justify-content: center;
  margin-bottom: 16px;
}

.page-hero .hero-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 62px);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 600;
}

.page-hero .hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.75;
}

/* ── Research Card ── */
.research-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.12);
  transform: translateY(-4px);
}

.research-card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.research-card .card-body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research-card .card-tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.research-card .card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card:hover .card-title {
  color: var(--gold-light);
}

.research-card .card-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Publication Card ── */
.pub-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--card-padding);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pub-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Blog Card ── */
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.12);
  transform: translateY(-4px);
}

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

.blog-card:hover .blog-img {
  transform: scale(1.06);
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar .stat-item {
  text-align: center;
  padding: 32px 40px;
}

.stats-bar .stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
}

.stats-bar .stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  align-self: center;
}

/* ── Subscribe section ── */
.subscribe-section {
  background: var(--color-bg);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.subscribe-section input[type="email"] {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  outline: none;
  padding: 10px 4px;
  width: 280px;
  transition: border-color 0.3s ease;
}

.subscribe-section input[type="email"]:focus {
  border-bottom-color: var(--gold);
}

/* ── Pagination ── */
.ldrc-pagination .page-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ldrc-pagination .page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ldrc-pagination .page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--color-bg);
  font-weight: 700;
}

/* ── Podcast row ── */
.podcast-row {
  border-left: 3px solid transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.podcast-row:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.12);
}

.podcast-row:nth-child(even) {
  background: var(--color-surface-2);
}

.podcast-row:nth-child(odd) {
  background: var(--color-surface);
}

/* ── Tab navigation ── */
.ldrc-tabs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 73px;
  z-index: 40;
}

.ldrc-tabs .tab-btn {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 28px;
  position: relative;
  transition: color 0.25s ease;
  text-transform: uppercase;
}

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

.ldrc-tabs .tab-btn.active {
  color: var(--gold);
  font-weight: 600;
}

.ldrc-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
}

/* ── Sticky filter bar ── */
.filter-bar {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

/* ── Detail page hero ── */
.detail-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 100px 0 60px;
}

/* ── Related cards grid ── */
.related-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  border-left-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.12);
}

/* ── Author avatar ── */
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface), #1a2c50);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--gold);
}

/* ── Excerpt block ── */
.article-excerpt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-ldrc-primary {
  background: var(--btn-gradient);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 30px;
  padding: 10px 24px;
  border: 1px solid rgba(228, 210, 167, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ldrc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  color: #fff;
}

.btn-ldrc-outline {
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-ldrc-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-gold-gradient {
  background: var(--btn-gradient);
  color: var(--color-bg);
  border: none;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold-outline:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* ══ Scroll to top (template/js/site-shell.js) ══ */
.ldrc-scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ldrc-scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ldrc-scroll-top-btn {
    transition: none;
  }
}

/* ══ Shop listing (E-commerce) ══ */
.shop-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

/* Nested on PDP: reuse shop card rules without a second full-width band */
.shop-section--embed {
  background: transparent;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Tighter top under the global page hero; comfortable bottom */
.shop-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ldrc-shop-ajax.is-loading {
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ldrc-shop-ajax.is-loading {
    transition: none;
  }
}

.shop-async-skeleton {
  margin: 0 0 1rem;
}

.col-lg-8.col-xl-9.is-loading-products {
  position: relative;
}

.col-lg-8.col-xl-9.is-loading-products .product-grid {
  visibility: hidden;
}

.col-lg-8.col-xl-9.is-loading-products .shop-pagination-wrap {
  pointer-events: none;
}

.shop-async-skeleton-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
}

.product-grid.shop-grid-skeleton .skeleton-product-card {
  border-radius: 12px;
  min-height: var(--shop-skeleton-card-h, 100%);
}

.product-grid.shop-grid-skeleton .skeleton-product-card__media {
  height: var(--shop-skeleton-media-h, 0);
  padding-top: var(--shop-skeleton-media-pt, 90%);
}

.product-grid.shop-grid-skeleton .skeleton-product-card__body {
  padding: 0.5rem 0.5rem 0.55rem;
  min-height: 78px;
}

@media (min-width: 576px) {
  .product-grid.shop-grid-skeleton .skeleton-product-card__body {
    padding: 0.55rem 0.65rem 0.65rem;
  }
}

.shop-toolbar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.125rem;
}

.shop-results-label {
  color: var(--text-muted) !important;
}

.shop-sort-form {
  min-width: min(100%, 12.5rem);
}

.shop-sort-select {
  background-color: var(--color-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--color-border) !important;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
}

.shop-chip {
  color: var(--text-primary) !important;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  max-width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--gold);
  color: var(--text-primary) !important;
}

.shop-sidebar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border) !important;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .shop-sidebar {
    position: static;
  }
}

.shop-sidebar__toggle {
  border: 0;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1.25rem;
  text-align: left;
}

.shop-sidebar__toggle:hover {
  background: var(--color-surface-2);
}

.shop-sidebar__toggle[aria-expanded='true'] .shop-sidebar__toggle-chev {
  transform: rotate(180deg);
}

.shop-sidebar__toggle-chev {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .shop-sidebar__toggle {
    display: none !important;
  }
}

.shop-sidebar__title {
  color: var(--gold);
  font-family: var(--font-serif);
}

.category-list a.shop-category-link {
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.shop-section .active-cat {
  background: rgba(99, 102, 241, 0.1);
  color: var(--gold) !important;
  font-weight: 600;
}

.shop-section .category-list a:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--gold) !important;
  padding-left: 20px !important;
}

.shop-search .form-control {
  background: var(--color-bg);
  color: var(--text-primary);
  border-radius: 8px 0 0 8px;
}

.shop-search .btn-search-submit {
  background: var(--gold);
  color: #fff;
  border-radius: 0 8px 8px 0;
}

[data-theme="light"] .shop-search .btn-search-submit {
  color: #fff;
}

.shop-results-line {
  color: var(--text-primary);
}

.shop-section .product-card {
  background: var(--color-surface);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--color-border) !important;
}

.product-card .product-card-hint,
.product-card .long-arrow {
  pointer-events: none;
  user-select: none;
}

.product-card .product-card-hint {
  opacity: 0.8;
  white-space: nowrap;
}

.shop-section .product-img-wrapper {
  padding-top: 100%;
}

.shop-section .product-img-wrapper .product-image {
  object-fit: cover;
}

.shop-section .product-badge-sale {
  background: #ff4d4d;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
}

.shop-section .product-badge-pct {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.shop-section .stretched-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shop-section .shop-product-cat {
  color: var(--gold);
  letter-spacing: 1px;
}

.shop-section .shop-product-title {
  color: #e6edf3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75em;
  line-height: 1.35;
}

[data-theme="light"] .shop-section .shop-product-title {
  color: var(--text-primary);
}

.shop-section .shop-price {
  color: var(--gold);
}

.shop-section .shop-price-old {
  color: var(--text-secondary);
  opacity: 0.7;
}

.shop-empty-icon {
  color: #161b22;
}

[data-theme="light"] .shop-empty-icon {
  color: var(--text-muted);
}

.shop-browse-btn {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.shop-section .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  border-color: var(--gold) !important;
  cursor: pointer;
}

@media (min-width: 992px) {
  .shop-section .product-card:hover {
    transform: translateY(-8px);
  }
}

/* 5 per row (xl+), smaller cards — must follow general .shop-section product rules */
.shop-section .product-grid--compact .product-card {
  border-radius: 12px;
}

.shop-section .product-grid--compact .product-card-body {
  padding: 0.5rem 0.5rem 0.55rem;
}

@media (min-width: 576px) {
  .shop-section .product-grid--compact .product-card-body {
    padding: 0.55rem 0.65rem 0.65rem;
  }
}

.shop-section .product-grid--compact .product-img-wrapper {
  padding-top: 90%;
}

.shop-section .product-grid--compact .shop-product-cat {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.shop-section .product-grid--compact .shop-product-title {
  font-size: 0.78rem;
  min-height: 2.4em;
  line-height: 1.3;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

[data-theme="light"] .shop-section .product-grid--compact .shop-product-title {
  color: var(--text-primary);
}

.shop-section .product-grid--compact .shop-price {
  font-size: 0.82rem;
  line-height: 1.2;
}

.shop-section .product-grid--compact .shop-price-old {
  font-size: 0.65rem;
}

.shop-section .product-grid--compact .product-badge-sale {
  padding: 2px 6px;
  font-size: 0.58rem;
  border-radius: 4px;
  font-weight: 600;
}

.shop-section .product-grid--compact .product-badge-pct {
  font-size: 0.55rem;
  padding: 0.08rem 0.3rem;
}

.shop-section .product-grid--compact .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

@media (min-width: 992px) {
  .shop-section .product-grid--compact .product-card:hover {
    transform: translateY(-5px);
  }
}

.shop-section .pagination .page-link {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--gold);
}

.shop-section .pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .shop-section .product-card {
    transition: none;
  }

  .shop-section .product-card:hover,
  .shop-section .product-grid--compact .product-card:hover {
    transform: none;
  }
}

/* ══ Product details (align with shop / tokens) ══ */
.product-details-page {
  background: var(--color-bg);
  color: var(--text-primary);
  padding-top: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.pdp-related-spaced {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-border);
}

.pdp-tabs-wrap {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.pdp-gallery {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.25));
}

.pdp-gallery__inner {
  position: relative;
}

.pdp-gallery__main {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-2);
}

.pdp-gallery__main.ratio > .pdp-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

/* Main PDP image: contain so hover magnifier maps 1:1 to pixels */
.pdp-magnify__stage .pdp-gallery__img--magnify {
  object-fit: contain;
  background: var(--color-surface-2);
}

.pdp-magnify__col-main {
  z-index: 0;
}

.pdp-magnify__stage {
  position: relative;
  cursor: default;
  z-index: 0;
}

@media (min-width: 992px) {
  .pdp-magnify__stage[data-pdp-magnify-enabled="1"] {
    cursor: crosshair;
  }

  @media (prefers-reduced-motion: reduce) {
    .pdp-magnify__stage[data-pdp-magnify-enabled] {
      cursor: default;
    }
  }
}

.pdp-magnify__lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 4px 16px rgba(0, 0, 0, 0.25);
  background: rgba(248, 250, 252, 0.12);
}

.pdp-magnify__result {
  --pdp-magnify-bg: var(--color-surface-2);
  position: relative;
  z-index: 0;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--pdp-magnify-bg);
  background-repeat: no-repeat;
  overflow: hidden;
}

.pdp-magnify__result-wrap {
  width: 100%;
  max-width: 17.5rem;
  flex: 0 0 auto;
  align-self: stretch;
}

@media (min-width: 992px) {
  .pdp-magnify {
    min-height: 0;
  }

  .pdp-magnify__result-wrap {
    width: 38%;
    min-width: 12rem;
    max-width: 18rem;
  }
}

.pdp-magnify__hint {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pdp-magnify__stage[data-pdp-magnify-enabled="0"] {
  cursor: default;
}

.pdp-badge-save {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: #10b981 !important;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.pdp-gallery__thumbs {
  margin-top: 1rem;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.pdp-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface-2);
  cursor: pointer;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.pdp-thumb:hover,
.pdp-thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.pdp-thumb--active {
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--color-border);
}

.pdp-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-info .breadcrumb-custom {
  margin-bottom: 1rem;
}

.pdp-info .breadcrumb-custom a,
.pdp-info .breadcrumb-custom .current {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pdp-info .breadcrumb-custom a:hover {
  color: var(--gold);
}

.pdp-meta-label {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pdp-price {
  color: var(--gold) !important;
}

.pdp-price-old {
  color: var(--text-secondary);
  opacity: 0.75;
}

.pdp-stock--in {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}

.pdp-stock--out {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.25) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}

.pdp-lead p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.pdp-attr {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pdp-attr__val {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.15rem;
}

.pdp-qty {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.2rem 0.25rem;
}

.pdp-qty__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.pdp-qty__btn:hover {
  color: var(--gold);
  background: rgba(99, 102, 241, 0.08);
}

.pdp-qty__input {
  width: 3rem;
  min-width: 0;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
  padding: 0.25rem 0.15rem;
  -moz-appearance: textfield;
}

.pdp-qty__input::-webkit-outer-spin-button,
.pdp-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-add-btn {
  min-height: 2.9rem;
  border-radius: 10px;
  font-weight: 600;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  flex: 1 1 10rem;
}

.pdp-tabs {
  background: var(--color-surface);
  border: 1px solid var(--color-border) !important;
  border-radius: 12px;
  padding: 0.25rem 0.25rem 0;
  overflow: hidden;
}

.pdp-nav-tabs {
  border-bottom: 1px solid var(--color-border);
  margin: 0 0.5rem 0.25rem 0.5rem;
  padding: 0.5rem 0.25rem 0;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.pdp-nav-tabs .nav-item {
  margin: 0;
}

.pdp-nav-tabs .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 600;
  background: none !important;
  border: 0 !important;
  padding: 0.5rem 0.15rem 0.85rem 0.15rem;
  border-radius: 0;
  position: relative;
  transition: color 0.2s ease;
}

.pdp-nav-tabs .nav-link:hover {
  color: var(--text-primary) !important;
}

.pdp-nav-tabs .nav-link.active {
  color: var(--gold) !important;
}

.pdp-nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.pdp-tab-content {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
}

.pdp-prose {
  line-height: 1.8;
  font-size: 0.95rem;
}

.pdp-prose a {
  color: var(--gold);
}

.pdp-prose p:last-child {
  margin-bottom: 0;
}

.pdp-spec-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-border-color: var(--color-border);
  color: var(--text-primary);
  margin: 0;
}

.pdp-spec-table__th {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  font-weight: 500;
  width: 40%;
  min-width: 7rem;
  border-color: var(--color-border) !important;
  padding: 0.65rem 0.75rem 0.65rem 0;
}

.pdp-spec-table__td {
  color: var(--text-primary) !important;
  border-color: var(--color-border) !important;
  padding: 0.65rem 0.75rem;
}

.pdp-related__eyebrow {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.7rem;
}

.pdp-related__title {
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.pdp-related__all {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.pdp-related__all:hover {
  color: var(--gold-light);
}

[data-theme="light"] .pdp-gallery,
[data-theme="light"] .pdp-tabs {
  box-shadow: var(--shadow-card);
}

/* ══ Shopping cart (light + dark) ══ */
.cart-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.cart-page {
  padding-top: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.cart-page-eyebrow {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.7rem;
}

.cart-page-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-table-panel {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  display: block;
  background: var(--color-surface-2);
}

.cart-item-thumb-link:hover .cart-item-thumb,
.cart-item-thumb-link:focus-visible .cart-item-thumb {
  border-color: var(--gold);
}

.cart-section .cart-item-name {
  color: var(--text-primary) !important;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.cart-section .cart-item-name:hover {
  color: var(--gold) !important;
}

.cart-section .cart-item-subtotal {
  color: var(--gold) !important;
  font-size: 0.95rem;
}

.cart-summary {
  background: var(--color-surface) !important;
  border-radius: 16px;
  border: 1px solid var(--color-border) !important;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

@media (max-width: 991.98px) {
  .cart-summary {
    position: static;
  }
}

.cart-summary__row {
  border-bottom: 1px solid var(--color-border) !important;
}

.cart-summary__total {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.5rem !important;
}

.cart-remove-btn {
  color: var(--text-muted) !important;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-remove-btn:hover {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.08);
}

.cart-empty {
  padding: clamp(2.5rem, 8vw, 4.5rem) 1rem;
}

.cart-empty .cart-empty-icon {
  font-size: clamp(3.5rem, 12vw, 5rem);
  color: var(--text-muted);
  opacity: 0.85;
}

.cart-empty .cart-empty-text {
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .cart-table-panel,
[data-theme="light"] .cart-summary {
  box-shadow: var(--shadow-card);
}

.cart-section .cart-items-table {
  --bs-table-color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-border-color: var(--color-border);
  color: var(--text-primary);
  background: transparent;
}

.cart-section .cart-items-table > :not(caption) > * > * {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--color-border);
  box-shadow: none;
}

.cart-section .cart-items-table thead th {
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: var(--color-border) !important;
  font-weight: 600;
}

[data-theme="light"] .cart-section .cart-items-table thead th {
  background: rgba(99, 102, 241, 0.08) !important;
}

.cart-section .cart-items-table tbody tr:hover {
  --bs-table-hover-bg: rgba(99, 102, 241, 0.06);
}

[data-theme="light"] .cart-section .cart-items-table tbody tr:hover {
  --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
}

.cart-section .cart-item-meta {
  color: var(--text-secondary);
}

.cart-section .cart-qty-picker {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: fit-content;
  padding: 0.15rem 0.2rem;
}

.cart-section .cart-qty-picker .form-control {
  color: var(--text-primary) !important;
  background: transparent !important;
}

.cart-section .cart-qty-btn {
  color: var(--text-primary) !important;
}

.cart-section .cart-qty-btn:hover,
.cart-section .cart-qty-btn:focus {
  color: var(--gold) !important;
}

.cart-section .cart-summary-title {
  color: var(--text-primary);
  font-weight: 600;
}

.cart-section .cart-summary-line .label {
  color: var(--text-secondary);
}

.cart-section .cart-summary-line .value {
  color: var(--text-primary);
  font-weight: 600;
}

.cart-section .cart-summary-total .label {
  color: var(--text-primary);
}

.cart-section .cart-total {
  color: var(--gold) !important;
  font-weight: 700;
}

.cart-section .cart-continue-shopping {
  border: 1px solid var(--color-border) !important;
  border-radius: 10px;
  color: var(--text-secondary) !important;
  background: transparent;
}

.cart-section .cart-continue-shopping:hover {
  border-color: var(--gold) !important;
  color: var(--text-primary) !important;
  background: var(--color-bg);
}

.cart-section .cart-empty-title {
  color: var(--text-primary);
  font-weight: 600;
}

/* ══ Checkout (matches cart + shop tokens) ══ */
.checkout-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.checkout-page {
  padding-top: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.checkout-page-eyebrow {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.7rem;
}

.checkout-page-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checkout-form-panel,
.checkout-order-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.checkout-form-panel__title,
.checkout-order-panel__title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.checkout-section .checkout-input,
.checkout-section .form-control.checkout-input {
  background: var(--color-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-section .checkout-input:focus,
.checkout-section .form-control.checkout-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

.checkout-line-items {
  margin-bottom: 0;
}

.checkout-line-item {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-line-item:last-child {
  border-bottom: 0;
}

.checkout-line-item__name {
  color: var(--text-secondary) !important;
}

.checkout-line-item__price {
  color: var(--text-primary);
}

.checkout-line-item__qty {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.2rem;
}

.checkout-order-panel {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

@media (max-width: 991.98px) {
  .checkout-order-panel {
    position: static;
  }
}

.checkout-promo {
  border-top: 1px solid var(--color-border) !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding-top: 1rem;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.checkout-total-row {
  border-top: 1px solid var(--color-border);
}

.checkout-total-amount {
  color: var(--gold) !important;
  font-weight: 700;
}

.checkout-btn-outline {
  border: 1px solid var(--color-border) !important;
  color: var(--text-primary) !important;
  background: var(--color-bg) !important;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.checkout-btn-outline:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(99, 102, 241, 0.06) !important;
}

.checkout-payment .checkout-label {
  margin-bottom: 0.75rem;
}

/* Reset Bootstrap .form-check left padding (breaks our flex + card layout) */
.checkout-section .checkout-pay-option.form-check {
  padding-left: 0;
  min-height: 0;
  margin-bottom: 0;
}

.checkout-pay-option {
  width: 100%;
}

.checkout-pay-option__inner {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Radio: no float; align with first line of label in multi-line blocks */
.checkout-section .checkout-pay-option .form-check-input {
  float: none;
  position: static;
  margin: 0;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  align-self: center;
  border-color: var(--color-border);
  background-color: var(--color-surface);
}

/* Multi-line (gateway) rows: align radio to first line of label */
.checkout-section .checkout-pay-option__inner--multi .form-check-input {
  align-self: start;
  margin-top: 0.2rem;
}

.checkout-pay-option .form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.checkout-pay-option__inner:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.checkout-pay-option .form-check-label {
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.checkout-promo--applied {
  color: #34d399;
}

.checkout-totals .text-secondary,
.checkout-totals .text-success {
  font-size: 0.9rem;
}

[data-theme="light"] .checkout-form-panel,
[data-theme="light"] .checkout-order-panel {
  box-shadow: var(--shadow-card);
}

/* ══ About page (align with shop / design tokens) ══ */
.about-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.about-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.about-eyebrow {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.about-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.about-prose,
.about-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose a {
  color: var(--gold);
}

.about-experience {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.about-experience__years {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1;
  color: var(--gold);
  font-family: var(--font-serif);
}

.about-experience__title {
  color: var(--text-primary);
  font-weight: 600;
}

.about-hero-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  aspect-ratio: 4 / 3;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-stat-bubble {
  background: var(--btn-gradient, linear-gradient(135deg, #6366f1 0%, #818cf8 100%));
  border-radius: 16px;
  /* High contrast on indigo gradient (independent of theme body text) */
  color: #f8fafc;
  min-width: 10rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.about-stat-bubble__label {
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.about-stat-bubble__value {
  line-height: 1.1;
  font-size: 1.75rem;
}

.about-section-block {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.about-mission-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.15));
}

.about-mission-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  color: var(--gold);
}

.about-mission-title,
.about-values__heading {
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.about-mission-quote {
  max-width: 50rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.about-value-card {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.about-value-card__icon {
  color: var(--gold);
}

.about-value-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--color-surface-2) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}

@media (prefers-reduced-motion: reduce) {
  .about-value-card,
  .about-value-card:hover {
    transform: none;
    transition: none;
  }
}

[data-theme="light"] .about-hero-image,
[data-theme="light"] .about-mission-card,
[data-theme="light"] .about-value-card {
  box-shadow: var(--shadow-card);
}

/* ══ Contact page ══ */
.contact-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.contact-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.contact-eyebrow {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.contact-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.contact-item__icon {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-radius: 50%;
  color: var(--gold);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .contact-item__icon {
    background: rgba(99, 102, 241, 0.12);
  }
}

.contact-item__title {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-item__text {
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.contact-form-label {
  color: var(--text-primary);
}

.contact-form-card .form-control {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
}

.contact-form-card .form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.contact-form-card .form-control:focus {
  background: var(--color-bg) !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

.contact-form-card select.form-control {
  cursor: pointer;
}

.contact-form-card select.form-control option {
  background: var(--color-surface);
  color: var(--text-primary);
}

.contact-form-submit {
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

.contact-section-block {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.contact-map {
  height: min(28rem, 60vh);
  min-height: 16rem;
  border-radius: 1.875rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.contact-map__frame {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}

[data-theme="light"] .contact-form-card {
  box-shadow: var(--shadow-card);
}

/* ══ Offers page ══ */
.offers-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.offers-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.offers-hero {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.offers-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.offers-hero__sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.offers-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offers-card:hover {
  border-color: var(--color-border-hover, rgba(99, 102, 241, 0.35));
}

.offers-card__name {
  color: var(--text-primary);
  font-weight: 600;
}

.offers-card__label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 600;
}

.offers-code {
  color: var(--gold);
  font-family: var(--font-sans, system-ui, sans-serif);
  letter-spacing: 0.04em;
  word-break: break-word;
}

.offers-card__value {
  color: var(--text-primary);
}

.offers-card__value-note {
  color: var(--text-muted);
  font-weight: 500;
}

.offers-card__list {
  color: var(--text-secondary);
}

.offers-card__list li {
  border-left: 2px solid var(--color-border);
  padding-left: 0.75rem;
  margin-left: 0.15rem;
}

.offers-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35em 0.55em;
  border-radius: 0.35rem;
  line-height: 1.2;
}

.offers-badge--type {
  background: var(--color-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--color-border);
}

.offers-badge--active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .offers-badge--active {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
  }
}

.offers-empty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.offers-empty__title {
  color: var(--text-primary);
  font-weight: 600;
}

.offers-empty__text {
  color: var(--text-secondary);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .offers-card,
[data-theme="light"] .offers-empty {
  box-shadow: var(--shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .offers-card {
    transition: none;
  }
}

/* ══ User auth (login, register, etc.) ══ */
.auth-page {
  background-color: var(--color-bg);
  color: var(--text-primary);
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.auth-panel {
  background: var(--color-surface);
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.auth-panel__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-form-label {
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-prose {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.auth-panel .auth-alert--success {
  background: var(--color-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
}

.auth-panel .auth-alert--danger {
  background: color-mix(in srgb, #dc3545 14%, transparent);
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, #dc3545 32%, transparent);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .auth-panel .auth-alert--danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
  }
}

.auth-panel .form-group .input-popup.auth-secure-hints,
.auth-panel .form-group .input-popup.small {
  color: var(--text-secondary);
}

.auth-panel .form-control {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
}

.auth-panel .form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.auth-panel .form-control:focus {
  background: var(--color-bg) !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

.auth-remember .form-check-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-panel .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2em;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.auth-panel .form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.auth-panel .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--gold) 25%, transparent);
  border-color: var(--gold);
}

@supports not (box-shadow: 0 0 0 0.2rem color-mix(in srgb, red 25%, blue)) {
  .auth-panel .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
  }
}

.auth-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.auth-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.auth-link--muted {
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-link--muted:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.auth-panel .form-control:read-only {
  cursor: not-allowed;
  opacity: 0.9;
}

.auth-panel select.form-control {
  cursor: pointer;
}

.auth-panel select.form-control option {
  background: var(--color-surface);
  color: var(--text-primary);
}

.auth-panel .input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.auth-panel .input-group-text {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  font-weight: 600;
  min-width: 3.25rem;
  justify-content: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* secure_password.js: popup in auth panel (overrides template/custom.css) */
.auth-panel .hover-input-popup .input-popup {
  background: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.3));
}

.auth-panel .input-popup::after {
  border-color: transparent transparent var(--color-surface) transparent !important;
}

[data-theme="light"] .auth-panel .input-popup::after {
  border-color: transparent transparent var(--color-surface) transparent !important;
}

/* "Already have account" / duplicate user modal */
.auth-modal .modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.auth-modal .modal-header,
.auth-modal .modal-footer {
  border-color: var(--color-border);
}

.auth-modal .modal-title,
.auth-modal__body {
  color: var(--text-primary);
}

.auth-modal__body {
  font-size: 1rem;
  line-height: 1.5;
}

.auth-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  border-radius: 0.35rem;
  cursor: pointer;
  opacity: 0.85;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.auth-modal__close:hover {
  opacity: 1;
  background: var(--color-surface-2);
  color: var(--text-primary);
}

.auth-modal__close i {
  font-size: 1.35rem;
  line-height: 1;
}

[data-theme="light"] .auth-panel {
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .auth-modal .modal-content {
  box-shadow: var(--shadow-card);
}

/* ══ Home page (index) ══ */
.home-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background-color: var(--color-bg);
  color: var(--text-primary);
  border-color: var(--color-border);
}

.home-section--services {
  border-bottom: 1px solid var(--color-border);
}

.home-service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.home-service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.home-service-card__icon {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-radius: 50%;
  color: var(--gold);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .home-service-card__icon {
    background: rgba(99, 102, 241, 0.1);
  }
}

.home-service-card__title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.home-service-card__desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Featured band: reuses .shop-section product card rules */
.home-section--featured {
  background: linear-gradient(
    to bottom,
    var(--color-surface) 0%,
    var(--color-surface-2) 50%,
    var(--color-surface) 100%
  );
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-section__title-italic {
  color: var(--gold-light);
  font-style: italic;
}

.home-section__lede {
  max-width: 36rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.05rem;
}

.home-cta-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  text-decoration: none;
}

/* Shop cards on home: allow centered layout utility without breaking focus ring */
.shop-section.home-section .text-center .shop-product-title,
.shop-section.home-section .text-center .shop-product-cat,
.shop-section.home-section .text-center .shop-price,
.shop-section.home-section .text-center .shop-price-old {
  text-align: center;
}

/* Promo tiles */
.home-promo {
  border-radius: 20px;
  min-height: 18rem;
  height: 100%;
  max-height: 22rem;
  background: var(--color-surface-2);
}

@media (min-width: 768px) {
  .home-promo {
    min-height: 20rem;
    height: 22rem;
    max-height: none;
  }
}

.home-promo__img {
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-promo:hover .home-promo__img {
  transform: scale(1.05);
}

.home-promo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.45) 55%, transparent 100%);
  color: #f8fafc;
  z-index: 1;
}

[data-theme="light"] .home-promo__overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
  color: #f8fafc;
}

.home-promo__eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0;
}

.home-promo__title {
  font-family: var(--font-serif);
  color: #f8fafc;
  line-height: 1.2;
  margin: 0;
}

/* Testimonials */
.home-section--testimonials {
  background: var(--color-surface-2);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-testimonial {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.home-testimonial__rating {
  color: var(--gold);
  letter-spacing: 0.15em;
}

.home-testimonial__quote {
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  flex: 1 1 auto;
}

.home-testimonial__quote p {
  margin: 0;
}

.home-testimonial__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.home-testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.home-testimonial__avatar img {
  object-fit: cover;
  display: block;
}

.home-testimonial__name {
  color: var(--text-primary);
  font-weight: 600;
}

.home-testimonial__role {
  color: var(--text-secondary);
}

/* Newsletter (subscribe partial) */
.home-subscribe {
  background: var(--color-surface-2);
  color: var(--text-primary);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-subscribe__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-subscribe__lede {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

.home-subscribe__form {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.home-subscribe__field {
  min-width: min(100%, 17.5rem);
  position: relative;
}

.home-subscribe__input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.home-subscribe__input::placeholder {
  color: var(--text-muted);
}

.home-subscribe__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 25%, transparent);
}

@supports not (box-shadow: 0 0 0 2px color-mix(in srgb, red 25%, blue)) {
  .home-subscribe__input:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
  }
}

.home-subscribe__btn {
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .home-subscribe__form {
    flex-direction: column;
  }
  .home-subscribe__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card,
  .home-service-card:hover,
  .home-promo__img,
  .home-promo:hover .home-promo__img {
    transform: none;
    transition: none;
  }
}

[data-theme="light"] .home-service-card,
[data-theme="light"] .home-testimonial {
  box-shadow: var(--shadow-card);
}