/* Bricked — homepage */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-muted: #666666;
  --color-border: #e8e8e8;
  --color-surface: #f5f5f5;
  --color-save: #1a7f37;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: min(1200px, calc(100% - 48px));
  --radius-card: 14px;
  --transition: 0.2s ease;

  /* Primary actions — deep navy (replaces pure black on buttons) */
  --btn-primary-bg: #0b1f3a;
  --btn-primary-border: #0b1f3a;
  --btn-primary-hover-bg: #12345c;
  --btn-primary-hover-border: #12345c;
  --btn-outline-text: #0b1f3a;
  --btn-outline-border: #0b1f3a;
  --btn-outline-hover-bg: #0b1f3a;
  --btn-outline-hover-text: #ffffff;
  --btn-outline-hover-border: #0b1f3a;
}

/* Ensure [hidden] always wins regardless of CSS display rules */
[hidden] { display: none !important; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Cross-document view transitions (Chrome 126+ with meta; harmless elsewhere) */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: bricked-page-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.bricked-no-page-in {
    animation: none;
  }

  @keyframes bricked-page-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-white);
}

/* Cart toast */
.cart-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #d4edda;
  border: 1.5px solid #a3d9a5;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.cart-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.cart-toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #198754;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cart-toast-body {
  flex: 1;
  min-width: 0;
}

.cart-toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #155724;
  margin-bottom: 0.1rem;
  letter-spacing: 0.02em;
}

.cart-toast-name {
  font-size: 0.78rem;
  color: #1e7e34;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #155724;
  padding: 0.2rem;
  opacity: 0.6;
  display: flex;
  align-items: center;
}

.cart-toast-close:hover {
  opacity: 1;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  width: 100%;
  background: var(--color-white);
  padding: 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-8px);
  transition: transform 0.2s ease;
}

.search-overlay.is-open .search-box {
  transform: translateY(0);
}

/* Homepage welcome dialog (native <dialog>) */
.welcome-modal {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0;
  max-width: min(28rem, calc(100vw - 2rem));
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.16);
}

.welcome-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
}

.welcome-modal-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.welcome-modal-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  max-height: min(220px, 36vh);
  background: var(--color-surface);
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.welcome-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-modal-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.welcome-modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.welcome-modal-text {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.welcome-modal-text strong {
  color: var(--color-black);
  font-weight: 600;
}

.welcome-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.welcome-modal-close {
  min-width: 7rem;
}

body.welcome-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-modal::backdrop {
    backdrop-filter: none;
  }
}

/* Cookie consent bar */
/* Viewport-locked footer; must stay out of transformed ancestors (see body page-in). */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  z-index: 310;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.09);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  gap: 1rem 1.5rem;
}

@media (min-width: 900px) {
  .cookie-consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .cookie-consent__panel {
    grid-column: 1 / -1;
  }
}

.cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.cookie-consent__fineprint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.cookie-consent__link {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__link:hover {
  color: var(--color-muted);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-consent__btn {
  font-size: 0.68rem;
  padding: 0.55rem 0.85rem;
  letter-spacing: 0.05em;
}

.cookie-consent__panel {
  grid-column: 1 / -1;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}

.cookie-consent__categories {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-consent__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.cookie-consent__cat-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent__cat-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.cookie-consent__cat-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.cookie-consent__switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  gap: 1rem;
}

.cookie-consent__switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-border);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cookie-consent__switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cookie-consent__switch-label.is-on .cookie-consent__switch {
  background: var(--color-black);
}

.cookie-consent__switch-label.is-on .cookie-consent__switch::after {
  transform: translateX(16px);
}

.cookie-consent__panel-actions {
  display: flex;
  justify-content: flex-end;
}

.search-box-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input {
  flex: 1;
  border: 2px solid var(--color-black);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  background: var(--color-white);
}

.search-input:focus {
  border-color: var(--color-black);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-primary-bg);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background var(--transition), box-shadow var(--transition);
}

.search-submit:hover {
  background: var(--btn-primary-hover-bg);
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close:hover {
  color: var(--color-black);
}

.search-results {
  width: var(--container);
  margin-inline: auto;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-bottom: 2rem;
}

.search-result-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.search-result-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.search-result-body {
  padding: 0.75rem;
}

.search-result-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.search-result-price {
  font-size: 0.85rem;
  font-weight: 600;
}

.search-no-results {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  grid-column: 1 / -1;
  font-size: 0.95rem;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

/* Hero carousel (homepage) */
.hero-carousel {
  position: relative;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.hero-carousel-viewport {
  position: relative;
  min-height: clamp(400px, 48vw, 560px);
}

.hero-carousel-slides {
  position: relative;
  min-height: clamp(400px, 48vw, 560px);
}

.hero-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: clamp(400px, 48vw, 560px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel .hero-banner {
  border-bottom: none;
  min-height: clamp(400px, 48vw, 560px);
}

/* Desktop: all slides use the same height as hero #1 (set via JS + class) */
@media (min-width: 769px) {
  .hero-carousel.is-height-locked .hero-slide {
    min-height: var(--hero-banner-fixed);
    max-height: var(--hero-banner-fixed);
    height: var(--hero-banner-fixed);
  }

  .hero-carousel.is-height-locked .hero-banner {
    min-height: 0;
    height: 100%;
    max-height: none;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-carousel.is-height-locked .hero-text {
    min-height: 0;
    align-self: stretch;
  }

  /* Slide 3: inner scroll only when copy overflows the fixed hero height.
     If everything fits, keep overflow visible so the wheel scrolls the page
     (overflow-y: auto on a non-overflowing box still captures wheel events). */
  .hero-carousel.is-height-locked .hero-banner--bestseller .hero-text {
    overflow-y: visible;
    overscroll-behavior: auto;
  }

  .hero-carousel.is-height-locked .hero-banner--bestseller .hero-text.is-text-scrollable {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hero-carousel.is-height-locked .hero-image {
    min-height: 0;
    align-self: stretch;
  }

  .hero-carousel.is-height-locked .hero-image img {
    height: 100%;
    min-height: 100%;
  }
}

.hero-banner--crypto .hero-text {
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.06);
}

.hero-image--crypto img {
  object-fit: cover;
  object-position: center center;
}

.hero-banner--liquidation .hero-text {
  box-shadow: 12px 0 32px rgba(0, 35, 102, 0.08);
}

.hero-image--liquidation {
  background: #0a2a6b;
  align-items: center;
  justify-content: center;
}

.hero-image--liquidation img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
}

.hero-carousel.is-height-locked .hero-image--liquidation img {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}

/* Bespoke bestseller hero — deep navy CTA, restrained gold, countdown */
.hero-banner--bestseller .hero-text {
  box-shadow: 12px 0 32px rgba(11, 31, 58, 0.06);
}

.eyebrow--gold {
  color: #8a6d28;
  letter-spacing: 0.16em;
}

.hero-bestseller-timer-card {
  margin: 0 0 1.75rem;
  max-width: 22.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 4px 28px rgba(11, 31, 58, 0.07);
  background: #fff;
}

.hero-bestseller-timer-eyebrow {
  margin: 0;
  padding: 0.85rem 1rem 0.55rem;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7b2c;
  background: #faf7f2;
}

.hero-bestseller-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 0.35rem 0 0.95rem;
  background: #faf7f2;
  text-align: center;
}

.hero-bestseller-timer-unit {
  position: relative;
  padding: 0.15rem 0.2rem;
  min-width: 0;
}

.hero-bestseller-timer-unit:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  height: 72%;
  transform: translateY(-50%);
  width: 1px;
  background: rgba(11, 31, 58, 0.1);
}

.hero-bestseller-timer-metric {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.22em;
  flex-wrap: nowrap;
  line-height: 1.15;
}

.hero-bestseller-timer-value {
  display: inline;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #0b1f3a;
}

.hero-bestseller-timer-unit-label {
  display: inline;
  margin: 0;
  font-size: clamp(0.58rem, 1.45vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #3d516f;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hero-bestseller-timer-metric {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .hero-bestseller-timer-unit-label {
    white-space: normal;
  }
}

.btn-hero-navy,
.btn.btn-primary.btn-hero-navy {
  background: #0b1f3a;
  border-color: #0b1f3a;
  color: #fff;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.22);
}

.btn-hero-navy:hover,
.btn.btn-primary.btn-hero-navy:hover {
  background: #08162d;
  border-color: #08162d;
  color: #fff;
}

.btn-hero-navy:focus-visible,
.btn.btn-primary.btn-hero-navy:focus-visible {
  outline: 2px solid #0b1f3a;
  outline-offset: 2px;
}

.hero-image--bestseller img {
  object-fit: cover;
  object-position: center center;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1.35rem;
  background: var(--color-white);
  position: relative;
  z-index: 0;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-carousel-dot:hover {
  background: rgba(0, 0, 0, 0.35);
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.hero-carousel-dot.is-active {
  background: var(--btn-primary-bg);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.15);
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-black);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.hero-carousel-arrow:hover {
  background: var(--color-white);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  transform: scale(1.04);
}

.hero-carousel-arrow:active {
  transform: scale(0.98);
}

.hero-carousel-arrow:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.hero-carousel-arrow--prev {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.hero-carousel-arrow--next {
  right: max(12px, env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
  .hero-carousel-arrow {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .hero-carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .hero-carousel-arrow--prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .hero-carousel-arrow--next {
    right: max(8px, env(safe-area-inset-right, 0px));
  }
}

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

  .hero-carousel-dot {
    transition: none;
  }

  .hero-carousel-arrow {
    transition: none;
  }

  .hero-carousel-arrow:hover {
    transform: none;
  }

  .hero-carousel-arrow:active {
    transform: none;
  }
}

/* Hero banner — two-column: text left, image right */
.hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  min-height: clamp(400px, 48vw, 560px);
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem) max(24px, calc((100vw - 1200px) / 2 + 24px));
  box-shadow: 12px 0 28px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  margin-right: -1px;
}

.hero-image {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  overflow: hidden;
  position: relative;
  margin-left: -1px;
  width: calc(100% + 1px);
  min-width: 0;
}


.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 90% bottom;
  transform: translateX(-5px);
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
  padding-block: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 84px;
  width: auto;
  display: block;
}

.nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 1px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
  padding-block: 0.35rem;
  position: relative;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-black);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-black);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover {
  background: var(--color-surface);
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    box-shadow var(--transition), transform 0.15s ease;
}

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

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--color-white);
  border: 1px solid var(--btn-primary-border);
}

.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  border-color: var(--btn-primary-hover-border);
  color: var(--color-white);
}

.btn-outline {
  background: var(--color-white);
  color: var(--btn-outline-text);
  border: 1px solid var(--btn-outline-border);
}

.btn-outline:hover {
  background: var(--btn-outline-hover-bg);
  color: var(--btn-outline-hover-text);
  border-color: var(--btn-outline-hover-border);
}

/* Crypto hero: main CTA only (gradient, not site-wide) */
.btn.btn-primary.btn-primary-crypto,
.btn-primary.btn-primary-crypto {
  background: linear-gradient(135deg, #0b1f3a 0%, #d4af37 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.22);
}

.btn.btn-primary.btn-primary-crypto:hover,
.btn-primary.btn-primary-crypto:hover {
  background: linear-gradient(135deg, #08162d 0%, #b8922f 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 5px 20px rgba(11, 31, 58, 0.3);
}

.btn.btn-primary.btn-primary-crypto:focus-visible,
.btn-primary.btn-primary-crypto:focus-visible {
  outline: 2px solid #0b1f3a;
  outline-offset: 3px;
}

.btn-block {
  width: 100%;
  margin-top: auto;
}

.btn-wide {
  min-width: 220px;
}

/* Hero copy (overlaid on the banner image) */
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-black);
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Value bar */
.value-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 2rem 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 0;
  width: 100%;
  padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
  box-sizing: border-box;
}

.value-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: center;
  padding-inline: 1.5rem;
  border-right: 1px solid var(--color-border);
}

.value-item:last-child {
  border-right: none;
}

.value-icon {
  flex-shrink: 0;
  color: var(--color-black);
  margin-top: 2px;
}

.value-icon--trustpilot .value-trustpilot-mark {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(72px, 22vw);
}

.value-title {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.value-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.45;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.themes-section {
  background: var(--color-white);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.theme-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.theme-card-media {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #ebebeb;
}

.theme-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0;
}

.theme-card-label {
  padding: 1rem 1rem 1.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Bundles */
.bundles-section {
  background: var(--color-surface);
}

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* Homepage FEATURED BUNDLES: show at most five cards (DOM should list five; this guards sync merges). */
.bundles-grid--home-featured-max5 > .product-card:nth-child(n + 6) {
  display: none !important;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 1rem 1rem 1.15rem;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: 2px;
}

.product-badge--save {
  background: var(--color-save);
  color: var(--color-white);
}

.product-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: 1rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-media a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-name {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  min-height: 2.6em;
}

.product-price {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.product-price strong {
  font-weight: 700;
}

.product-price del {
  color: var(--color-muted);
  font-size: 0.85em;
  margin-left: 0.35rem;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
}

.product-card-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  padding: 0.7rem 0.5rem;
}

.product-meta-line {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

.product-save {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--color-save);
  background: rgba(26,127,55,0.09);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.product-sets-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-sets-list li {
  font-size: 0.72rem;
  color: var(--color-muted);
  padding-left: 0.9rem;
  position: relative;
}

.product-sets-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

.product-card--featured {
  border: 2px solid var(--color-black);
}

.product-badge--new {
  background: #1a7f37;
  color: #fff;
}

.product-wish {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-muted);
  transition: color var(--transition), background var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-wish:hover,
.product-wish.is-saved {
  color: #e00;
}

.product-wish.is-saved svg {
  fill: #e00;
  stroke: #e00;
}

/* Urgency countdown — below image, above title (see card-deal-timer.js) */
.card-deal-timer {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.4rem;
  padding: 3px 8px;
  background: #b91c1c;
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.2);
}

.card-deal-timer__icon {
  flex-shrink: 0;
  color: #fff;
}

.card-deal-timer__inner {
  white-space: normal;
}

.card-deal-timer__prefix {
  font-weight: 600;
  opacity: 0.95;
}

.card-deal-timer__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 769px) {
  .card-deal-timer {
    font-size: 11px;
    padding: 4px 9px;
    gap: 5px;
    border-radius: 6px;
  }
}

@media (max-width: 520px) {
  .card-deal-timer {
    padding: 2px 7px;
    font-size: 9px;
    gap: 3px;
  }

  .card-deal-timer__icon {
    width: 9px;
    height: 9px;
  }
}

.section-foot {
  text-align: center;
  margin-top: 2.5rem;
}

.premium-home-section {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}

.product-vault-note {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.35;
}

.product-vault-note strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Community */
.community-bar {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.community-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.community-block {
  max-width: 280px;
}

.community-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-black);
}

.community-title {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.community-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.social-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-black);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  transition: background var(--transition), border-color var(--transition);
}

.social-link:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding: 4rem max(24px, calc((100vw - 1200px) / 2 + 24px)) 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.footer-brand-col .footer-logo {
  display: block;
  margin-bottom: 1.25rem;
  filter: invert(1);
  height: 108px;
  width: auto;
}

.footer-about {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 26rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer-social-link:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

/* Nav columns */
.footer-col-title {
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-nav-list a:hover {
  color: var(--color-white);
}

/* Newsletter column */
.footer-newsletter-text {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-newsletter-input {
  padding: 0.75rem 1rem;
  font: 0.85rem var(--font);
  color: var(--color-white);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition);
}

.footer-newsletter-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-newsletter-input:focus {
  border-color: rgba(255,255,255,0.5);
}

.footer-newsletter-btn {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-black);
  background: var(--color-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition);
}

.footer-newsletter-btn:hover {
  background: #e0e0e0;
}

.footer-newsletter-note {
  margin: 0.3rem 0 0;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* Footer responsive */
@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bundles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .community-block {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@keyframes nav-mobile-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-carousel-viewport,
  .hero-carousel-slides {
    min-height: unset;
  }

  .hero-slide {
    position: relative;
    min-height: unset;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.55s ease;
  }

  .hero-slide.is-active {
    height: auto;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-carousel .hero-banner {
    min-height: unset;
  }

  .hero-banner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-text {
    padding: 2.5rem 1.5rem 2rem;
    order: 0;
  }

  .hero-bestseller-timer-card {
    max-width: none;
  }

  .hero-image {
    order: 1;
    min-height: 260px;
  }

  .hero-image img {
    object-position: center 40%;
    height: 260px;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    order: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition:
      background var(--transition),
      border-color var(--transition),
      box-shadow var(--transition);
  }

  .nav-toggle:hover {
    background: var(--color-surface);
    border-color: #dcdcdc;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid var(--btn-primary-bg);
    outline-offset: 2px;
  }

  .nav-toggle-bar {
    transition:
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-tools {
    order: 3;
  }

  .nav-main {
    order: 4;
    flex: 100%;
    justify-content: stretch;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0.35rem 0 0.15rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.07),
      0 4px 12px rgba(0, 0, 0, 0.04);
  }

  .nav-list.is-open {
    display: flex;
  }

  @media (prefers-reduced-motion: no-preference) {
    .nav-list.is-open {
      animation: nav-mobile-open 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
  }

  .nav-list > li {
    margin: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition:
      background var(--transition),
      color var(--transition);
  }

  .nav-list > li:last-child .nav-link {
    border-bottom: none;
  }

  .nav-link:hover {
    color: var(--color-black);
    background: var(--color-surface);
  }

  .nav-link:active {
    background: #ebebeb;
  }

  .nav-link:focus-visible {
    outline: none;
    background: var(--color-surface);
    box-shadow: inset 0 0 0 2px var(--btn-primary-bg);
  }

  .nav-link.is-active {
    color: var(--btn-primary-bg);
    background: rgba(11, 31, 58, 0.06);
  }

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

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

  .search-box {
    padding: 1rem 0;
  }

  .search-box-inner {
    width: 100%;
    max-width: 100%;
    padding-inline: max(1rem, env(safe-area-inset-left, 0px))
      max(1rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .search-results {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
    margin-top: 0.65rem;
    padding-inline: max(1rem, env(safe-area-inset-left, 0px))
      max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    gap: 0.75rem;
    box-sizing: border-box;
  }

  .search-result-card {
    min-width: 0;
    max-width: 100%;
  }

  .search-no-results {
    grid-column: auto;
  }

  .value-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .value-title,
  .value-desc {
    text-align: center;
  }

  .value-item .value-icon {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --container: min(1200px, calc(100% - 28px));
  }

  .hero-text {
    padding: 2rem 1rem 1.5rem;
  }

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

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

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

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
