/* ═══════════════════════════════════════
   components.css — Reusable UI components
   ═══════════════════════════════════════ */

/* ── Announcement Bar ── */
.announce-bar {
  background: #EA8257;
  color: #fff;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: var(--z-header);
}
.announce-bar__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: opacity var(--transition-base);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 24px rgba(255, 255, 255, 0.15);
}
.announce-bar__text.is-hidden {
  opacity: 0;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    backdrop-filter var(--transition-base);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: min(250px, 30%);
  min-width: 0;
  flex-shrink: 1;
  flex-basis: auto;
}
.header__logo {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.header__logo sup {
  font-size: 0.5em;
  vertical-align: super;
}
.header__logo strong {
  font-weight: 700;
  margin-left: 4px;
}
.header__tagline {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--color-fg-muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  white-space: normal;
}
@media (max-width: 768px) {
  .header__tagline {
    display: none;
  }
}
.header__nav {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header__nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #131313;
  position: relative;
  padding-bottom: 2px;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #131313;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.header__cart-btn:hover {
  transform: translateY(-1px);
}
.header__cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--color-fg);
  color: var(--color-white);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header__cart-count:empty {
  display: none;
}

/* Mobile hamburger */
.header__hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.header__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-fg);
  transition: var(--transition-fast);
}
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .header__hamburger {
    display: flex;
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-drawer);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s var(--transition-base),
    opacity var(--transition-base);
}
.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    visibility 0s,
    opacity var(--transition-base);
}
.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-bg);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}
.mobile-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.mobile-drawer__nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-drawer__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}
.mobile-drawer__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-fg);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-drawer__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.mobile-drawer__nav a:hover {
  transform: translateX(4px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(100%);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled::after {
  display: none;
}
.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--primary:hover {
  background: #2d2926;
}
.btn--secondary {
  background: transparent;
  color: var(--color-fg);
  border: 1px solid var(--color-fg);
}
.btn--secondary:hover {
  background: var(--color-fg);
  color: var(--color-white);
}
.btn--pill {
  border-radius: var(--radius-btn);
  padding: 16px 28px;
}
.btn--sm {
  padding: 8px 18px;
  font-size: 0.6875rem;
}
.btn--wide {
  width: 100%;
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  line-height: 1.3;
}
.badge--dark {
  background: var(--color-black);
  color: var(--color-white);
}
.badge--sale {
  background: var(--color-sale);
  color: var(--color-white);
}
.badge--accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.badge--outline {
  background: transparent;
  border: 1px solid var(--color-fg);
  color: var(--color-fg);
}
.badge--lowstock {
  background: var(--color-sale-bg);
  color: var(--color-sale);
}

/* ── Product Card ── */
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover {
  transform: translateY(-3px);
}
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.product-card__img,
.product-card__img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity var(--transition-slow),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card__img,
.product-card:hover .product-card__img-hover {
  transform: scale(1.03);
}
.product-card__img-hover {
  opacity: 0;
}
.product-card:hover .product-card__img {
  opacity: 0;
}
.product-card:hover .product-card__img-hover {
  opacity: 1;
}
.product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-card__info {
  padding: 10px 0 0;
}
.product-card__title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__price {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.product-card__compare {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ── Price block (PDP) ── */
.price-block__current {
  font-size: 1.125rem;
  font-weight: 700;
}
.price-block__compare {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  text-decoration: line-through;
  margin-left: 8px;
}
.price-block__save {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-sale);
  margin-top: 2px;
}
.price-block__note {
  font-size: 0.6875rem;
  color: var(--color-fg-muted);
  margin-top: 2px;
}

/* ── Accordion ── */
.accordion {
  border-top: 1px solid var(--color-border);
}
.accordion__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 0 8px;
  color: var(--color-fg);
}
.accordion__item {
  border-bottom: 1px solid var(--color-border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.accordion__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--color-fg);
  transition: transform var(--transition-fast);
}
.accordion__icon::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion__icon::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion__item.is-open .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.accordion__body-inner {
  padding: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}
.accordion__body-inner p {
  margin: 0;
}
.accordion__body-inner p + p {
  margin-top: 12px;
}
.accordion__body-inner a {
  color: var(--color-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.accordion__body-inner a:hover {
  color: var(--color-accent);
}
.accordion__item.is-open .accordion__body {
  max-height: 600px;
}

/* ── Stars ── */
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg {
  width: 14px;
  height: 14px;
}
.stars--lg svg {
  width: 18px;
  height: 18px;
}
.star-filled {
  fill: var(--color-fg);
}
.star-empty {
  fill: var(--color-border);
}
.star-half {
  fill: url(#halfStarGrad);
}

/* ── Review card ── */
.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-fg-muted);
}
.review-card__meta {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}
.review-card__verified {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-success);
  margin-bottom: 4px;
}
.review-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.review-card__body {
  font-size: 0.8125rem;
  color: var(--color-fg-muted);
  line-height: 1.6;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}
.pagination__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: var(--transition-fast);
}
.pagination__btn:hover {
  border-color: var(--color-fg);
}
.pagination__btn.is-active {
  background: var(--color-fg);
  color: var(--color-white);
  border-color: var(--color-fg);
}

/* ── Cart Drawer ── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  z-index: var(--z-drawer);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open {
  transform: translateX(0);
}
.cart-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility 0s var(--transition-base);
}
.cart-drawer__overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--transition-base),
    visibility 0s;
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-drawer__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-drawer__empty {
  text-align: center;
  padding: 40px 0;
  color: var(--color-fg-muted);
  font-size: 0.875rem;
}
.cart-drawer__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--color-border);
}
.cart-drawer__checkout-note {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--color-fg-muted);
  margin-top: 8px;
}
.cart-drawer__secure-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: var(--color-fg);
  font-weight: 600;
}
.cart-drawer__secure-line svg {
  flex-shrink: 0;
  color: #0d8050;
}
.cart-page__secure-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: var(--color-fg);
  font-weight: 600;
}
.cart-page__secure-line svg {
  flex-shrink: 0;
  color: #0d8050;
}
.cart-drawer__terms-note {
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-fg-muted);
  margin-top: 6px;
  line-height: 1.3;
}
.cart-drawer__terms-note a {
  color: inherit;
  text-decoration: underline;
}

/* Cart item row */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}
.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-item__price {
  font-size: 0.8125rem;
  font-weight: 600;
}
.cart-item__compare {
  font-size: 0.6875rem;
  color: var(--color-fg-muted);
  text-decoration: line-through;
}
.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.cart-item__qty button:hover {
  background: var(--color-bg-alt);
}
.cart-item__qty span {
  width: 32px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.cart-item__remove {
  font-size: 0.6875rem;
  color: var(--color-fg-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-item__remove:hover {
  color: var(--color-sale);
}
.cart-item__right {
  text-align: right;
  flex-shrink: 0;
}

/* ── Quantity selector (PDP) ── */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
}
.qty-selector__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}
.qty-selector__btn:hover {
  background: var(--color-bg-alt);
}
.qty-selector__val {
  width: 48px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Social proof toast ── */
.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: var(--z-toast);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn var(--transition-base);
}
.toast.is-hiding {
  animation: fadeOut var(--transition-base) forwards;
}
.toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  margin-top: 4px;
  flex-shrink: 0;
}
.toast__content {
  flex: 1;
}
.toast__primary {
  font-size: 0.75rem;
  font-weight: 500;
}
.toast__secondary {
  font-size: 0.625rem;
  color: var(--color-fg-muted);
  margin-top: 2px;
}
.toast__close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
}
.toast__close:hover {
  color: var(--color-fg);
}
@media (max-width: 640px) {
  .toast {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
  }
}
.toast--centered {
  left: 50%;
  transform: translateX(-50%);
  max-width: 360px;
  padding: 16px 24px;
}
@keyframes snackbarFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes snackbarFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.toast--centered.toast--top {
  top: 24px;
  bottom: auto;
  animation: snackbarFadeIn var(--transition-base);
}
.toast--centered.toast--top.is-hiding {
  animation: snackbarFadeOut var(--transition-base) forwards;
}
.toast--centered .toast__primary {
  font-size: 0.8125rem;
  font-weight: 600;
}

.snackbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: calc(var(--z-toast) - 1);
  animation: fadeIn var(--transition-base);
}
.snackbar-overlay.is-hiding {
  animation: fadeOut var(--transition-base) forwards;
}

/* ── Dropdown appearance: white for main content, black for footer ── */
select {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-fg);
  padding: 6px 28px 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2378716c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
select option {
  background-color: var(--color-white);
  color: var(--color-fg);
  padding: 8px 12px;
}
select option:checked {
  text-decoration: underline;
  text-underline-offset: 2px;
}
select option:hover {
  background-color: var(--color-bg-alt);
}

/* Footer: black dropdown to match dark footer */
.footer__selectors select {
  font-size: 0.6875rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: #2d2d2d;
  color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.8)' stroke-width='1.5'/%3E%3C/svg%3E");
}
.footer__selectors select option {
  background-color: #2d2d2d;
  color: rgba(255, 255, 255, 0.85);
}
.footer__selectors select option:checked {
  color: #fff;
}
.footer__selectors select option:hover {
  background-color: #e5e5e5;
  color: #2d2d2d;
}

/* Currency selector (inherits select, extra sizing) */
.currency-select {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 22px 4px 8px;
}

/* ── Material comparison table ── */
.mat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.mat-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-fg);
}
.mat-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.mat-table tr:last-child td {
  border-bottom: none;
}

/* ── Main content wrapper (parallax reveal footer) ── */
.main-content {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.main-content > *:last-child:not(.footer):not(.cart-drawer):not(.cart-drawer__overlay):not(.lightbox) {
  flex-grow: 1;
}

/* ── Footer (parallax reveal — sits behind main content) ── */
.footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--color-fg);
  color: var(--color-white);
  padding: 56px 0 32px;
}
.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}
.footer a:hover {
  color: var(--color-white);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-white);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  font-size: 0.8125rem;
  position: relative;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.footer__links a:hover {
  transform: translateX(3px);
}
.footer__about {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.footer__contact-line {
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.footer__contact-line .footer__contact-email {
  color: var(--color-white);
  text-decoration: none;
}
.footer__contact-line .footer__contact-email:hover {
  text-decoration: underline;
}
.footer__contact-email {
  display: inline;
  font-size: inherit;
}
.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__selectors {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__selectors select {
  font-size: 0.6875rem;
}

/* Newsletter */
.newsletter {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.newsletter__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.newsletter__sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.newsletter__form {
  display: flex;
  gap: 0;
  margin-top: 16px;
  max-width: 420px;
}
.newsletter__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  background: transparent;
  color: var(--color-white);
  font-size: 0.8125rem;
}
.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.newsletter__btn {
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.marquee__inner {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 48px;
  color: #3D3C3C;
}

/* ── Logo row ── */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.logo-row img,
.logo-row svg {
  height: 20px;
  width: auto;
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}
.logo-row img:hover,
.logo-row svg:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .logo-row {
    gap: 20px;
  }
  .logo-row img,
  .logo-row svg {
    height: 16px;
  }
}

/* ── Lightbox modal ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* ── Page transition loading indicator ── */
/* ── Page transition (soft cross-fade + loading bar) ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-page-loading);
  pointer-events: none;
  background: var(--color-bg);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-transition.is-leaving {
  opacity: 1;
}

@keyframes page-loading-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.page-transition__bar {
  width: 120px;
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease 0.2s;
}
.page-transition.is-leaving .page-transition__bar {
  opacity: 1;
}
.page-transition__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-fg);
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0);
}
.page-transition.is-leaving .page-transition__bar-fill {
  animation: page-loading-fill linear forwards;
}

/* ── Checkout Button Loading Indicator ── */
@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.checkout-loading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.checkout-loading__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: bounce 1.4s ease-in-out infinite;
}

.checkout-loading__dot:nth-child(1) {
  animation-delay: 0s;
}

.checkout-loading__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.checkout-loading__dot:nth-child(3) {
  animation-delay: 0.4s;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}
