/*
 * Page layouts (theme mod atelier_layout → body.layout-<slug>).
 * Same markup and shopping flow for every layout; only the arrangement changes.
 * "classic" = the base style.css, nothing here.
 */

/* ===================================================================
 * SHOWCASE — centered logo with the menu below it, full-width photo
 * hero with centered text, round category badges, framed product cards.
 * =================================================================== */

/* Header: logo centered on top, menu centered underneath (desktop). */
@media (min-width: 861px) {
  .layout-showcase .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left brand actions" "nav nav nav";
    row-gap: 0; min-height: 0; padding-top: 18px;
  }
  .layout-showcase .nav-toggle { grid-area: left; }
  .layout-showcase .brand { grid-area: brand; justify-self: center; }
  .layout-showcase .brand__name { font-size: 2rem; letter-spacing: .06em; text-transform: uppercase; }
  .layout-showcase .header-actions { grid-area: actions; }
  .layout-showcase .primary-nav { grid-area: nav; justify-self: center; padding: 14px 0 12px; }
  .layout-showcase .primary-nav .menu { gap: 44px; }
}

/* Hero: the photo fills the whole band, text centered on top. */
.layout-showcase .hero--image { background: #0b0c10; isolation: isolate; }
/* The photo is positioned on the whole band (not only the centered container). */
.layout-showcase .hero--image .hero__inner {
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  min-height: min(78vh, 720px); position: static;
}
.layout-showcase .hero--image .hero__copy { position: relative; z-index: 1; }
.layout-showcase .hero--image .hero__visual {
  position: absolute; inset: 0; max-width: none; aspect-ratio: auto; z-index: -1; order: 0;
}
.layout-showcase .hero--image .hero__img { border-radius: 0; box-shadow: none; height: 100%; object-position: center 35%; }
.layout-showcase .hero--image .hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 10, 16, .55), rgba(8, 10, 16, .82));
}
.layout-showcase .hero--image .hero__copy { max-width: 760px; }
.layout-showcase .hero--image h1 { color: #fff; max-width: 18ch; margin-inline: auto; }
.layout-showcase .hero--image .hero__lead { color: rgba(255, 255, 255, .78); margin-inline: auto; }
.layout-showcase .hero--image .eyebrow { color: rgba(255, 255, 255, .7); }
.layout-showcase .hero--image .hero__ctas { justify-content: center; }
.layout-showcase .hero--image h1 em { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.layout-showcase .hero--image .btn--light { background: #fff; color: #111; border-color: #fff; }
.layout-showcase .hero--image .btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.layout-showcase .hero--image .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.layout-showcase .hero--image .btn--ghost:hover { background: #fff; color: #111; }

/* Values: centered icons. */
.layout-showcase .value { flex-direction: column; text-align: center; align-items: center; }

/* Section titles centered, links underneath. */
.layout-showcase .section-head { flex-direction: column; align-items: center; text-align: center; gap: 14px; }

/* Categories: round badges, name underneath. */
.layout-showcase .cat-grid { gap: clamp(16px, 3vw, 40px); max-width: 980px; margin-inline: auto; }
.layout-showcase .cat-tile {
  aspect-ratio: auto; padding: 0; background: none; border-radius: 0; overflow: visible;
  justify-content: flex-start; align-items: center; text-align: center; gap: 4px;
}
.layout-showcase .cat-tile img,
.layout-showcase .cat-tile--product img {
  position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; padding: 0;
  border-radius: var(--radius-lg); margin-bottom: 14px; mix-blend-mode: normal; background: #fff; object-fit: contain; padding: 10%;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, .35);
}
.layout-showcase .cat-tile:hover img { transform: scale(1.04); }
.layout-showcase .cat-tile::after { display: none; }
.layout-showcase .cat-tile .cat-tile__name,
.layout-showcase .cat-tile.cat-tile--product .cat-tile__name { color: var(--ink); font-size: 1.15rem; }
.layout-showcase .cat-tile .cat-tile__count,
.layout-showcase .cat-tile.cat-tile--product .cat-tile__count { color: var(--muted); }
.layout-showcase .cat-tile__mono {
  position: relative; top: auto; left: auto; display: grid; place-items: center;
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--tile); margin-bottom: 14px;
}
.layout-showcase .cat-rail .cat-tile img { width: 100%; }

/* Products: framed cards. */
.layout-showcase ul.products li.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 18px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.layout-showcase ul.products li.product:hover { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .35); transform: translateY(-3px); }
.layout-showcase ul.products li.product .card-media, .layout-showcase ul.products li.product a img { border-radius: 10px; }
.layout-showcase ul.products li.product .button { border-radius: 999px; }
.layout-showcase .btn { border-radius: 999px; }

/* Promise section: photo on the right. */
@media (min-width: 861px) {
  .layout-showcase .editorial__inner > :first-child { order: 2; }
}
.layout-showcase .editorial__art { border-radius: 18px; }

/* Mobile */
@media (max-width: 860px) {
  .layout-showcase .hero--image .hero__inner { min-height: min(72vh, 620px); padding-block: 72px; }
  .layout-showcase .hero--image .hero__visual { aspect-ratio: auto; }
  .layout-showcase .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Showcase without a hero photo: centered text, product mosaic as one row underneath. */
.layout-showcase .hero:not(.hero--image) .hero__inner {
  grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 0; padding-block: 80px 70px;
}
.layout-showcase .hero:not(.hero--image) h1,
.layout-showcase .hero:not(.hero--image) .hero__lead { margin-inline: auto; }
.layout-showcase .hero:not(.hero--image) .hero__ctas { justify-content: center; }
.layout-showcase .hero__visual--mosaic { max-width: 1080px; width: 100%; justify-self: center; }
.layout-showcase .hero-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-showcase .hero-tile, .layout-showcase .hero-tile:nth-child(2), .layout-showcase .hero-tile:nth-child(4) { transform: none; border-radius: var(--radius-lg); justify-content: center; align-items: center; background: #fff; }
.layout-showcase .hero-tile img { height: 100%; padding: 12%; }
.layout-showcase .hero-tile__name { display: none; }
@media (max-width: 860px) {
  .layout-showcase .hero-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===================================================================
 * SPLIT — light hero cut in two: text on the left, product mosaic on a
 * colored panel that runs to the right edge. Logo left, menu on the right.
 * Categories as wide cards with the photo on the side.
 * =================================================================== */
@media (min-width: 861px) {
  .layout-split .site-header__inner { grid-template-columns: auto 1fr auto; }
  .layout-split .primary-nav { justify-self: end; }
  .layout-split .primary-nav .menu { gap: 28px; }
}
.layout-split .hero { background: var(--bg); color: var(--ink); }
.layout-split .hero h1 { color: var(--ink); }
.layout-split .hero h1 em { color: var(--accent); }
.layout-split .hero__lead { color: var(--muted); }
.layout-split .hero .eyebrow { color: var(--accent); }
.layout-split .hero .btn--light { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.layout-split .hero .btn--ghost { color: var(--ink); border-color: var(--ink); }
.layout-split .hero .btn--ghost:hover { background: var(--ink); color: var(--bg); }
@media (min-width: 861px) {
  .layout-split .hero__inner { grid-template-columns: 1fr 1.05fr; gap: 0; padding-block: 0; min-height: min(72vh, 640px); }
  .layout-split .hero__copy { padding-block: 80px; padding-inline-end: 60px; }
  .layout-split .hero__visual {
    align-self: stretch; max-width: none; aspect-ratio: auto; justify-self: stretch; display: grid; place-items: center;
    padding: 48px 0 48px 56px; position: relative; isolation: isolate;
  }
  /* Colored panel from the middle to the right edge of the window. */
  .layout-split .hero__visual::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 100vw; z-index: -1;
    background: var(--hero-bg);
  }
  .layout-split .hero-mosaic { width: 100%; max-width: 600px; gap: 16px; }
}
.layout-split .hero-tile, .layout-split .hero-tile:nth-child(2), .layout-split .hero-tile:nth-child(4) {
  transform: none; background: #fff; border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .55);
}
.layout-split .hero-tile img { height: 80%; padding: 10% 12% 0; }
.layout-split .hero-tile__name { font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.layout-split .hero-tile:hover { transform: translateY(-4px); }
.layout-split .values { background: var(--bg); }
/* Tighter rhythm between home sections (every layout but classic). */
body:not(.layout-classic) .section { padding-block: clamp(44px, 5.5vw, 76px); }
body:not(.layout-classic) .section--tight { padding-block: clamp(32px, 4vw, 56px); }
body:not(.layout-classic) .section-head { margin-bottom: 28px; }
.layout-split .value svg { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* Categories: wide cards, photo on the side. */
.layout-split .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-split .cat-tile {
  aspect-ratio: auto; min-height: 120px; flex-direction: column; justify-content: center; gap: 4px;
  padding: 18px 20px 18px calc(36% + 20px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .3s var(--ease);
}
.layout-split .cat-tile:hover { border-color: var(--ink); box-shadow: 0 18px 36px -28px rgba(0, 0, 0, .4); }
/* Photo: one tinted square on the left, product blended into it (no white box). */
.layout-split .cat-tile img, .layout-split .cat-tile--product img {
  inset: 0 auto 0 0; width: 36%; height: 100%; padding: 12px; z-index: 1;
  object-fit: contain; border-radius: 0; background: transparent; mix-blend-mode: multiply;
}
.layout-split .cat-tile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 36%; background: var(--tile);
  border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px);
}
.layout-split .cat-tile:hover img { transform: none; }
.layout-split .cat-tile .cat-tile__name { font-size: 1.15rem; line-height: 1.2; }
.layout-split .cat-tile::after { display: none; }
.layout-split .cat-tile .cat-tile__name { color: var(--ink); }
.layout-split .cat-tile .cat-tile__count { color: var(--muted); }
.layout-split .cat-rail { --per: 3.2; }
@media (max-width: 860px) { .layout-split .cat-rail { --per: 1.35; } }
.layout-split .cat-rail .cat-tile { min-width: 0; }
/* Products: centered text. */
.layout-split ul.products li.product { text-align: center; }
.layout-split ul.products li.product .price { justify-content: center; }
@media (min-width: 861px) {
  .layout-split .editorial__inner { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 860px) {
  .layout-split .cat-grid { grid-template-columns: 1fr; }
  .layout-split .hero__visual {
    background: var(--hero-bg); margin-inline: calc(-1 * var(--gutter)); width: auto; max-width: none;
    padding: 24px var(--gutter) 32px; justify-self: stretch;
  }
  .layout-split .hero__copy { padding-block: 40px 32px; }
  .layout-split .hero__inner { padding-block: 0; gap: 0; }
}

/* ===================================================================
 * COMPACT — a dense, practical store: short hero with a wide photo card,
 * categories as small chips, tight sections. Good for big catalogues.
 * =================================================================== */
.layout-compact .hero__inner { min-height: 0; padding-block: 48px; gap: 48px; grid-template-columns: 1fr 1.1fr; }
.layout-compact .hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 18ch; }
.layout-compact .hero__lead { margin-bottom: 1.6rem; }
.layout-compact .hero--image .hero__visual { aspect-ratio: 16 / 10; max-width: none; }
.layout-compact .hero__img { border-radius: 14px; }
.layout-compact .values__grid { gap: 0; }
.layout-compact .value { padding: 16px 18px; align-items: center; }
.layout-compact .value strong { font-size: .95rem; margin: 0; }
.layout-compact .value span { display: none; }
.layout-compact .section { padding-block: clamp(40px, 5vw, 64px); }
.layout-compact .section-head { margin-bottom: 24px; }
.layout-compact .section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
/* Categories: chips with a small round photo. */
.layout-compact .cat-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.layout-compact .cat-tile {
  aspect-ratio: auto; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 2px 14px; padding: 12px 16px 12px 84px; min-height: 76px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
}
.layout-compact .cat-tile img, .layout-compact .cat-tile--product img {
  inset: 8px auto 8px 8px; width: 60px; height: 60px; padding: 6px; border-radius: 50%;
  object-fit: contain; background: var(--tile); mix-blend-mode: normal;
}
.layout-compact .cat-tile:hover { border-color: var(--accent); }
.layout-compact .cat-tile:hover img { transform: none; }
.layout-compact .cat-tile::after { display: none; }
.layout-compact .cat-tile .cat-tile__name { color: var(--ink); font: 600 .95rem/1.2 var(--sans); width: 100%; -webkit-line-clamp: 1; line-clamp: 1; }
.layout-compact .cat-tile .cat-tile__count { color: var(--muted); }
.layout-compact .cat-tile__mono { display: none; }
.layout-compact .cat-rail .cat-tile { min-width: 0; }
/* Products: tighter grid, light tiles. */
.layout-compact .woocommerce ul.products, .layout-compact ul.products { gap: 28px 16px; }
.layout-compact ul.products li.product a img { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.layout-compact ul.products li.product .card-media { border-radius: 12px; }
.layout-compact ul.products li.product .woocommerce-loop-product__title { font-size: .95rem; }
.layout-compact ul.products li.product .button { background: var(--accent); border-color: var(--accent); color: var(--on-accent); border-radius: 8px; }
.layout-compact .editorial__inner { grid-template-columns: .8fr 1.2fr; }
.layout-compact .editorial__art { aspect-ratio: 16 / 10; border-radius: 14px; }
@media (max-width: 860px) {
  .layout-compact .hero__inner, .layout-compact .editorial__inner { grid-template-columns: 1fr; }
  .layout-compact .hero--image .hero__visual { order: 0; }
}

/* ===================================================================
 * BOLD — big uppercase type, full-width product strip under the title,
 * large photo tiles for categories, square accent buttons.
 * =================================================================== */
.layout-bold h1, .layout-bold h2 { text-transform: uppercase; font-weight: 800; letter-spacing: -.02em; }
.layout-bold .hero__inner { grid-template-columns: 1fr; padding-block: 72px 64px; min-height: 0; gap: 48px; }
.layout-bold .hero h1 { font-size: clamp(2.8rem, 8vw, 7rem); line-height: .95; max-width: 14ch; }
.layout-bold .hero h1 em { font-style: normal; color: var(--accent); }
.layout-bold .hero__copy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 48px; align-items: end; }
.layout-bold .hero__copy .eyebrow, .layout-bold .hero__copy h1 { grid-column: 1 / -1; }
.layout-bold .hero__lead { margin: 0; }
.layout-bold .hero__ctas { justify-content: flex-end; }
.layout-bold .hero__visual { max-width: none; justify-self: stretch; aspect-ratio: auto; }
.layout-bold .hero-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-bold .hero-tile, .layout-bold .hero-tile:nth-child(2), .layout-bold .hero-tile:nth-child(4) { transform: none; aspect-ratio: 4 / 5; border-radius: 4px; }
.layout-bold .btn, .layout-bold ul.products li.product .button { border-radius: 0; }
.layout-bold .hero .btn--light { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.layout-bold .section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.layout-bold .eyebrow { font-weight: 700; }
.layout-bold .section .eyebrow, .layout-bold .value svg { color: var(--ink); }
/* Categories: big photo tiles, name on a dark band. */
.layout-bold .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-bold .cat-tile { aspect-ratio: 16 / 10; border-radius: 4px; background: var(--tile); }
.layout-bold .cat-tile--product img { mix-blend-mode: multiply; }
.layout-bold .cat-tile--product img { height: 100%; padding: 6% 25% 18%; }
.layout-bold .cat-tile .cat-tile__name, .layout-bold .cat-tile.cat-tile--product .cat-tile__name {
  font: 800 clamp(1.1rem, 2vw, 1.6rem)/1.1 var(--sans); text-transform: uppercase; color: var(--ink);
}
.layout-bold ul.products li.product .woocommerce-loop-product__title { font-weight: 700; }
.layout-bold ul.products li.product a img, .layout-bold ul.products li.product .card-media { border-radius: 4px; }
.layout-bold ul.products li.product .button { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.layout-bold ul.products li.product .button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) {
  .layout-bold .hero__copy { grid-template-columns: 1fr; }
  .layout-bold .hero__ctas { justify-content: flex-start; }
  .layout-bold .hero-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-bold .cat-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
 * HEADERS — one look per layout, so stores don't feel copy-pasted.
 * Dark headers redefine the color tokens locally (menu, search, mobile
 * panel follow automatically).
 * =================================================================== */

/* Showcase: accent announcement bar, centered. */
.layout-showcase .announce { background: var(--accent); color: var(--on-accent); }
.layout-showcase .announce__inner { justify-content: center; gap: 4px 28px; }
.layout-showcase .announce .lang-switch a[aria-current="true"] { text-decoration-color: currentColor; }

/* Split and Bold: dark header bar. */
.layout-split .site-header,
.layout-bold .site-header {
  --ink: var(--on-dark); --muted: var(--on-dark-muted); --bg: var(--dark); --surface: var(--dark-2);
  --line: rgba(255, 255, 255, .12);
  background: var(--dark); color: var(--on-dark); border-bottom-color: transparent; backdrop-filter: none;
}
.layout-split .announce { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.layout-split .primary-nav a { letter-spacing: .1em; }

/* Bold: header continues into the hero, heavy uppercase logo, accent bar on top. */
.layout-bold .announce { background: var(--accent); color: var(--on-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.layout-bold .announce .lang-switch a[aria-current="true"] { text-decoration-color: currentColor; }
.layout-bold .brand__name { font: 800 1.75rem/1 var(--sans); text-transform: uppercase; letter-spacing: -.03em; }
.layout-bold .primary-nav a { font-weight: 800; letter-spacing: .12em; }
.layout-bold .site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }

/* Compact: logo and menu on the left, search always open underneath with popular categories. */
@media (min-width: 861px) {
  .layout-compact .site-header__inner { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .layout-compact .primary-nav { justify-self: start; margin-inline-start: 36px; }
  .layout-compact .primary-nav .menu { gap: 26px; }
  .layout-compact .primary-nav a { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
}
.layout-compact .brand__name { font-weight: 700; letter-spacing: -.02em; }
.layout-compact [data-search-toggle] { display: none; }
.layout-compact .search-bar { display: block; background: var(--tile); border-top: 0; }
.layout-compact .search-bar form { padding: 12px 0 10px; }
.layout-compact .search-bar input[type="search"] { border-radius: 999px 0 0 999px; background: var(--surface); }
.layout-compact .search-bar .btn { border-radius: 0 999px 999px 0; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.layout-compact .search-suggest { padding-bottom: 12px; }

/* ===================================================================
 * MOBILE — the 4 advantages as a compact 2 × 2 grid (every layout but classic).
 * =================================================================== */
@media (max-width: 640px) {
  body:not(.layout-classic) .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.layout-classic) .value { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 14px; text-align: start; }
  body:not(.layout-classic) .value + .value { border-top: 0; }
  body:not(.layout-classic) .value:nth-child(even) { border-inline-start: 1px solid var(--line); }
  body:not(.layout-classic) .value:nth-child(n+3) { border-top: 1px solid var(--line); }
  body:not(.layout-classic) .value strong { font-size: .95rem; }
  body:not(.layout-classic) .value span { font-size: 12px; line-height: 1.4; }
}

/* Split with a hero photo: text on the left, the photo fills the right half to the window edge. */
.layout-split .hero--image .hero__visual { padding: 0; background: none; aspect-ratio: auto; }
.layout-split .hero--image .hero__visual::before { display: none; }
.layout-split .hero--image .hero__img { border-radius: 0; box-shadow: none; }
@media (min-width: 861px) {
  .layout-split .hero--image .hero__inner { grid-template-columns: 1fr 1fr; min-height: min(76vh, 680px); }
  .layout-split .hero--image .hero__visual { position: relative; align-self: stretch; }
  .layout-split .hero--image .hero__img { position: absolute; inset: 0 auto 0 0; width: 50vw; max-width: none; height: 100%; object-fit: cover; }
  .layout-split .hero--image .hero__copy { padding-inline-end: 72px; }
}
@media (max-width: 860px) {
  .layout-split .hero--image .hero__visual { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; order: 0; }
  .layout-split .hero--image .hero__img { width: 100%; height: 100%; object-fit: cover; }
}

/* ===================================================================
 * COMPACT — polish (Casa Limpia)
 * =================================================================== */
/* Search and popular categories on one row (desktop). */
@media (min-width: 861px) {
  .layout-compact .search-bar .container { display: flex; align-items: center; gap: 28px; }
  .layout-compact .search-bar form { flex: 1; padding: 12px 0; }
  .layout-compact .search-suggest { flex: none; padding: 0; flex-wrap: nowrap; }
}
/* Categories: cards that share the full width, bigger photo, arrow. */
.layout-compact .cat-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.layout-compact .cat-tile {
  min-height: 112px; padding: 18px 56px 18px 128px; border-radius: 16px;
  background: var(--surface); transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.layout-compact .cat-tile img, .layout-compact .cat-tile--product img {
  inset: 12px auto 12px 12px; width: 88px; height: 88px; border-radius: 12px; padding: 8px; mix-blend-mode: multiply;
}
.layout-compact .cat-tile::before {
  content: ""; position: absolute; inset: 12px auto 12px 12px; width: 88px; height: 88px; border-radius: 12px; background: var(--tile);
}
.layout-compact .cat-tile img { z-index: 1; background: transparent; }
.layout-compact .cat-tile::after {
  display: block; content: "→"; position: absolute; inset: 50% 22px auto auto; transform: translateY(-50%);
  background: none; font-size: 20px; line-height: 1; color: var(--accent); transition: transform .25s var(--ease);
}
.layout-compact .cat-tile:hover { border-color: var(--accent); box-shadow: 0 18px 36px -26px rgba(6, 50, 74, .35); transform: translateY(-2px); }
.layout-compact .cat-tile:hover::after { transform: translate(4px, -50%); }
.layout-compact .cat-tile .cat-tile__name { font-size: 1.05rem; }
/* Product cards: white photo tile, light outline button. */
.layout-compact ul.products li.product a img { background: #fff; border-color: var(--line); }
.layout-compact ul.products li.product .card-media { background: #fff; border: 1px solid var(--line); }
.layout-compact ul.products li.product .card-media img { border: 0; }
.layout-compact ul.products li.product .button {
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; min-height: 42px;
}
.layout-compact ul.products li.product .button:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) {
  .layout-compact .cat-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
 * HOME EXTRAS (HERO_EXTRAS, HERO_PRODUCT, BRAND_STRIP, BESTSELLER_CATEGORIES)
 * =================================================================== */
/* Hero with a photo: copy on the left over a gradient, product card on the right. */
.hero--extras.hero--image .hero__inner { justify-items: start; text-align: start; grid-template-columns: 1fr; }
.hero--extras.hero--image .hero__copy { max-width: 620px; }
.hero--extras.hero--image h1 { margin-inline: 0; max-width: 13ch; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.02; }
.hero--extras.hero--image .hero__lead { margin-inline: 0; font-size: 1.12rem; }
.hero--extras.hero--image .hero__ctas { justify-content: flex-start; }
.layout-showcase .hero--extras.hero--image .hero__visual::after {
  background: linear-gradient(90deg, rgba(1, 5, 17, .9) 0%, rgba(1, 5, 17, .62) 45%, rgba(1, 5, 17, .15) 100%);
}
.layout-showcase .hero--extras.hero--image .hero__img { object-position: 70% 40%; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font-size: 13px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.hero__chips svg { width: 16px; height: 16px; color: var(--accent-2, #feb193); }
.hero-card {
  position: absolute; z-index: 2; inset: auto max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter)) 56px auto;
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; width: 360px; padding: 14px;
  background: rgba(255, 255, 255, .96); color: #0b0b0c; border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); transition: transform .3s var(--ease);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card__badge {
  position: absolute; top: -12px; left: 18px; padding: 5px 10px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.hero-card__media img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; display: block; }
.hero-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-card__brand { font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b7280; }
.hero-card__name { font: 500 .98rem/1.3 var(--sans); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hero-card__price { font-weight: 600; }
.hero-card__price ins { text-decoration: none; }
.hero-card__cta { font-size: 13px; color: var(--accent); margin-top: 2px; }
@media (max-width: 1080px) { .hero-card { width: 320px; grid-template-columns: 92px 1fr; } .hero-card__media img { width: 92px; height: 92px; } }
@media (max-width: 860px) {
  .hero--extras.hero--image h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-card { position: relative; inset: auto; width: auto; margin: 0 var(--gutter) 28px; z-index: 2; }
  .hero--extras.hero--image { display: flex; flex-direction: column; }
}

/* Brand strip: an endless band of brand names. */
.brand-strip { overflow: hidden; background: var(--dark); color: var(--on-dark); border-block: 1px solid rgba(255, 255, 255, .06); }
.brand-strip__track { display: flex; width: max-content; animation: brand-scroll 38s linear infinite; }
.brand-strip:hover .brand-strip__track { animation-play-state: paused; }
.brand-strip__list { display: flex; list-style: none; margin: 0; padding: 0; }
.brand-strip__list li { padding: 20px 34px; position: relative; }
.brand-strip__list li::after { content: "✦"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--accent-2, var(--accent)); opacity: .8; }
.brand-strip a { font: 500 14px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; color: inherit; opacity: .85; }
.brand-strip a:hover { opacity: 1; }
@keyframes brand-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-strip__track { animation: none; } }

/* Best sellers with tabs. */
.bestsellers .section-head { align-items: end; }
.tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--tile); }
.tab {
  font: 600 13px/1 var(--sans); letter-spacing: .04em; padding: 11px 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel__more { margin: 26px 0 0; text-align: center; }
.layout-showcase .bestsellers .section-head { flex-direction: column; align-items: center; }
@media (max-width: 860px) {
  .layout-showcase .hero--extras.hero--image .hero__visual::after { background: linear-gradient(180deg, rgba(1, 5, 17, .82) 0%, rgba(1, 5, 17, .7) 60%, rgba(1, 5, 17, .45) 100%); }
  .hero--extras .hero__ctas { flex-wrap: nowrap; gap: 10px; }
  .hero--extras .hero__ctas .btn { flex: 1; padding-inline: 12px; }
  .hero__chips { gap: 8px; }
  .hero__chips li { font-size: 12px; padding: 7px 11px; }
  .layout-showcase .brand__name { font-size: 1.35rem; white-space: nowrap; }
}
