/* MAGAZIN — Swiss / International typographic style. White, graphite and one deep teal; Inter
 * Tight set tight and large. Organized like a magazine rather than a catalog: section titles are
 * small labels on a full-width rule, the product grid is asymmetric (the first product is a large
 * feature spanning two columns and two rows), categories are large landscape picture tiles, and the
 * hero is a cover photo with its caption in a white block at the bottom left. Same markup. */

body.theme-magazin {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f2ef;
  --border: #e2e2de;
  --text: #121417;
  --text-muted: #6a6f75;
  --accent: #1f4e5f;
  --accent-dark: #153945;
  --accent-soft: #e4edf0;
  --dark: #121417;
  --dark-2: #1b1e22;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: none;
  --shadow-md: 0 0.75rem 2rem rgba(18, 20, 23, 0.08);
  --gradient-accent: var(--accent);
  --gradient-dark: var(--dark);

  --font-body: "Inter Tight", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Inter Tight", "Inter", -apple-system, sans-serif;
  --heading-weight: 700;
  --heading-tracking: -0.035em;
  --header-bg: var(--surface);
  --topbar-bg: var(--dark);
  --topbar-ink: #c9ccd0;
  --catnav-bg: var(--surface);
  --catnav-ink: var(--text);
  --catnav-ink-muted: var(--text-muted);
  --catnav-hover-bg: transparent;
  --catnav-all-bg: var(--text);
  --catnav-all-ink: #ffffff;
  --search-border: 1px solid transparent;
  --search-radius: 4px;
  --btn-radius: 4px;
  --card-radius: 0;
  --card-border: 0;
  --card-shadow: none;
  --card-media-bg: var(--surface-alt);
  --card-body-bg: transparent;
  --trust-bg: var(--surface-alt);
  --trust-ink: var(--text);
  --trust-ink-muted: var(--text-muted);
  --trust-icon-bg: transparent;
  --footer-bg: var(--dark);
  --footer-ink: #ffffff;
  --footer-ink-muted: #9a9fa5;
  --hero-min-h: 28rem;
  --hero-min-h-lg: clamp(32rem, 72vh, 46rem);
  font-size: 0.97rem;
}

.theme-magazin .topbar {
  font-size: 0.74rem;
}

.theme-magazin .header-main {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.theme-magazin .header-brand {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.theme-magazin .brand-mark {
  background: var(--text);
  border-radius: 4px;
}

.theme-magazin .header-search-combo {
  background: var(--surface-alt);
}

.theme-magazin .header-search-combo:focus-within {
  border-color: var(--text);
  background: var(--surface);
}

.theme-magazin .search-category-select,
.theme-magazin .header-search-input {
  background: transparent;
}

.theme-magazin .search-category-select {
  border-right-color: var(--border);
  color: var(--text);
}

.theme-magazin .header-search-btn {
  background: transparent;
  color: var(--text);
}

.theme-magazin .header-search-btn:hover {
  background: transparent;
  color: var(--accent);
}

.theme-magazin .header-action-btn:hover {
  background: var(--surface-alt);
}

.theme-magazin .cart-count {
  background: var(--accent);
}

.theme-magazin .header-catnav {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--border);
}

.theme-magazin .catnav-all-toggle,
.theme-magazin .catnav-link {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 700;
}

.theme-magazin .catnav-link:hover,
.theme-magazin .catnav-link.active {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.theme-magazin .header-catnav .navbar-toggler {
  color: var(--text);
}

.theme-magazin .btn {
  font-weight: 600;
}

/* ── Hero: cover photo, caption block bottom-left ───────────────────────────────────────────── */
.theme-magazin .hero-slide {
  padding: 0;
  align-items: flex-end;
}

.theme-magazin .hero-slide-image::before {
  display: none;
}

.theme-magazin .hero-slide-content {
  max-width: 38rem;
  margin-left: var(--gutter);
  padding: 2rem 2.25rem 2.25rem;
  background: var(--surface);
}

.theme-magazin .hero-slide h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.theme-magazin .hero-slide p {
  margin-bottom: 1.4rem;
}

.theme-magazin .hero-slide-1 { background: linear-gradient(135deg, #d7dee1 0%, #aebdc3 100%); }
.theme-magazin .hero-slide-2 { background: linear-gradient(135deg, #e3e1db 0%, #c4c0b5 100%); }
.theme-magazin .hero-slide-3 { background: linear-gradient(135deg, #dadcdf 0%, #b6babf 100%); }

.theme-magazin .hero-slider .carousel-control-prev,
.theme-magazin .hero-slider .carousel-control-next {
  filter: none;
  opacity: 0.85;
}

.theme-magazin .hero-slider .carousel-indicators {
  justify-content: flex-end;
  margin: 0 var(--gutter) 1.5rem 0;
}

.theme-magazin .hero-slider .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 3px;
  border-radius: 0;
  background-color: #fff;
}

@media (max-width: 767.98px) {
  .theme-magazin .hero-slide-content {
    margin: 0 var(--gutter);
    padding: 1.4rem 1.4rem 1.6rem;
  }

  .theme-magazin .hero-slider .carousel-indicators {
    top: 1rem;
    bottom: auto;
  }
}

/* ── Sections: small label on a full-width rule ─────────────────────────────────────────────── */
.theme-magazin .fb-section:not(.fb-band-trust) {
  background: var(--bg);
  padding: 3.5rem 0;
}

.theme-magazin .fb-band-alt {
  background: var(--bg);
}

.theme-magazin .fb-section-title {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--text);
  padding-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.theme-magazin .fb-band-trust {
  padding: 2rem 0;
}

.theme-magazin .fb-feature svg {
  color: var(--accent);
  padding: 0.35rem;
}

.theme-magazin .fb-feature h3 {
  font-weight: 700;
}

/* Categories: large landscape picture tiles in a grid. */
.theme-magazin .category-scroll-btn {
  display: none;
}

.theme-magazin .category-track {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.5rem 1rem;
  overflow: visible;
  padding: 0;
}

.theme-magazin .category-item {
  width: auto;
}

.theme-magazin .category-card {
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0;
  border-radius: 0;
}

.theme-magazin .category-card:hover {
  transform: none;
  box-shadow: none;
}

.theme-magazin div.category-tile,
.theme-magazin .category-tile.category-tile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  box-shadow: none;
  object-fit: cover;
}

.theme-magazin div.category-tile {
  background: var(--surface-alt) !important;
  color: var(--text-muted);
  font-size: 1.6rem;
}

.theme-magazin .category-card-name {
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.theme-magazin .category-card:hover .category-card-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* Products: an asymmetric grid — the first product is a large feature. */
.theme-magazin .row:has(> .col > .product-card) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  grid-auto-flow: dense;
  gap: 2rem 1.25rem;
  margin: 0;
}

.theme-magazin .row:has(> .col > .product-card) > .col {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .theme-magazin .row:has(> .col > .product-card) > .col:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .theme-magazin .row:has(> .col > .product-card) > .col:first-child .card-title {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
  }

  .theme-magazin .row:has(> .col > .product-card) > .col:first-child .price {
    font-size: 1.3rem;
  }
}

.theme-magazin .product-card:hover {
  transform: none;
  box-shadow: none;
}

.theme-magazin .product-card .card-body {
  padding: 0.85rem 0 0;
}

.theme-magazin .card-title {
  font-weight: 600 !important;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.theme-magazin .product-card:hover .card-title {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.theme-magazin .price-row {
  text-align: left !important;
}

.theme-magazin .price {
  font-weight: 700;
}

.theme-magazin .sku-pill {
  border: 0;
  padding: 0;
  background: transparent;
  letter-spacing: 0.04em;
}

.theme-magazin .stock-ribbon {
  left: 0.6rem;
  right: auto;
  border-radius: 2px;
  background: var(--surface);
  color: var(--text);
}

.theme-magazin .stock-ribbon-out {
  color: var(--text-muted);
}

.theme-magazin .quick-add-btn {
  background: var(--text);
  border-radius: 4px;
  font-weight: 600;
  box-shadow: none;
}

.theme-magazin .quick-add-btn:hover {
  background: var(--accent);
}

.theme-magazin .product-gallery {
  background: var(--surface-alt);
  border: 0;
}

.theme-magazin .footer-heading {
  letter-spacing: 0.1em;
}

.theme-magazin .footer-brand {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.theme-magazin .product-card {
  background: transparent;
}

@media (max-width: 767.98px) {
  .theme-magazin .category-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.75rem;
  }
}
