/*
 * Shop theme "Seifenwerk": palette, category tiles and small adjustments to the shop pages.
 * The page sections (hero, promises, quotes, FAQ, callout, footer) come from theme-base;
 * product cards, cart and checkout from the mini-shop base styling. Both follow the --nw-* tokens.
 */
.nw-shop-theme {
  --nw-muted: var(--theme-muted);
  --nw-success: #2f6b4f;
  --nw-badge-background: var(--theme-paper);
  --nw-radius-card: 14px;
  --nw-radius-control: 10px;
  --nw-radius-button: 999px;
  --shop-lilac: #e7dbe9;
  --shop-sage: #dce8db;
  --shop-peach: #f1dfd3;
  --theme-tile: var(--shop-lilac);
  --theme-callout: var(--shop-sage);
  --theme-stars: #b0541c;
}
.nw-shop-theme .mini-shop__list-intro h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.3rem); }

/* Category tiles: big pictures with the name on top. */
.nw-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.nw-categories__link { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: var(--shop-sage); color: #fff; text-decoration: none; }
.nw-categories__link :is(figure, picture) { display: block; height: 100%; margin: 0; }
.nw-categories__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.nw-categories__link:hover img { transform: scale(1.03); }
.nw-categories__link::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .5)); }
.nw-categories__text { position: absolute; z-index: 1; left: 1.25rem; bottom: 1.1rem; display: grid; gap: .1rem; text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.nw-categories__name { font-family: var(--theme-heading-font), serif; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; }
.nw-categories__count { font-size: .95rem; }
.nw-categories__link:focus-visible { outline: 3px solid var(--nw-focus); outline-offset: 3px; }

/* Shop pages */
.nw-shop-theme .mini-shop__buy-box > h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.nw-shop-theme .mini-shop__summary, .nw-shop-theme .mini-shop__order-summary, .nw-shop-theme .mini-shop__paybox { background: var(--nw-surface); color: var(--theme-surface-ink); }
.nw-shop-theme :is(.mini-shop-cart-sheet, .nw-gallery-lightbox, .nw-navigation-sheet) { --ss-bg: var(--nw-surface); --ss-fg: var(--theme-surface-ink); color: var(--theme-surface-ink); }
.nw-shop-theme .mini-shop-cart-sheet .ss-header h2 { margin: 0; font-size: 1.5rem; }
.nw-shop-theme .mod_breadcrumb { margin: 0 0 1.25rem; font-size: .875rem; color: var(--theme-muted); }
/* The muted theme color is already quiet; the base styling's extra link opacity would fall below 4.5:1. */
.nw-shop-theme .mod_breadcrumb a { opacity: 1; }
.nw-mobile-nav { display: grid; gap: .5rem; font-size: 1.4rem; }
.nw-mobile-nav a { padding: .5rem; text-decoration: none; }
.nw-mobile-nav a[aria-current] { text-decoration: underline; text-underline-offset: .2em; }

@media (prefers-reduced-motion: reduce) {
  .nw-categories__link img { transition: none; }
  .nw-categories__link:hover img { transform: none; }
}
