/* GENERATED by scripts/build_theme_assets.py from assets/css/custom/_manifest.css.
   Do not edit: change the partials in assets/css/custom/ and rebuild. */

/* ---- _tokens.css ---- */
/* ============================================================
   CSG / Senza — Design Tokens & Modern Base
   Foundation layer. Loaded FIRST. Defines the CSG brand system
   (colors, type, spacing, radii, shadows) consumed by all
   component partials. Additive & safe — no destructive resets.
   ============================================================ */

:root {
  /* Brand palette (extracted from existing theme) */
  --sd-navy:        #151A20;   /* primary dark / header */
  --sd-navy-2:      #2B323C;   /* secondary dark surfaces */
  --sd-on-demand:   #1E5FAA;   /* on-demand product badge */
  --sd-ink:         #111316;   /* prototype ink (utility bar / footer) */
  --sd-red:         #E2001A;   /* CSG accent — matches preview rgb(226,0,26) */
  --sd-red-dark:    #b80015;
  --sd-red-soft:    rgba(226, 0, 26, 0.10);
  --sd-white:       #ffffff;
  --sd-gray-50:     #fafbfc;
  --sd-gray-100:    #f3f5f7;
  --sd-surface:     #f5f6f7;   /* preview_2 body / image well */
  --sd-gray-200:    #E4E8EB;
  --sd-gray-300:    #d6dbe0;
  --sd-gray-500:    #8a909a;
  --sd-text:        #1b1f25;
  --sd-text-muted:  #6b7280;

  /* Typography (prototype set: Oswald display, Montserrat wordmark, Inter body) */
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:  "Oswald", "Inter", sans-serif;
  --font-wordmark: "Montserrat", "Inter", sans-serif;

  /* Layout — preview .wrap: max-width 1280px, padding 0 32px */
  --container:    1280px;
  --gutter:       32px;
  /* Full-bleed bands (category hero): same x as .wrap content */
  --content-inset: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));

  /* Radii — tight, near-square (matches the prototype). Buttons ~2px,
     cards/inputs/tiles ~4px, panels ~6px. */
  --radius-sm: 4px;
  --radius:    4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(20, 26, 32, 0.06);
  --shadow:    0 10px 34px rgba(20, 26, 32, 0.10);
  --shadow-lg: 0 22px 60px rgba(20, 26, 32, 0.18);
  --shadow-red: 0 10px 26px rgba(226, 0, 26, 0.30);

  /* Motion */
  --t-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --t:      0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1100px) {
  :root { --gutter: 22px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---- Modern base (responsive-friendly, non-destructive) ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

@media (max-width: 991px) {
  main,
  #wrapper {
    overflow-x: clip;
    max-width: 100%;
  }
}

body {
  font-family: var(--font-body);
  color: var(--sd-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Make all media fluid → key for responsiveness */
img, picture, video, canvas, svg { max-width: 100%; height: auto; }

/* Accessible keyboard focus in brand color */
:focus-visible {
  outline: 3px solid var(--sd-red);
  outline-offset: 2px;
}

/* …and no ring for pointer focus, which is where the UA default was showing up:
   clicking the hamburger or a menu row left a yellow browser outline sitting on
   it. Keyboard focus is unaffected — that is the rule above. */
:focus:not(:focus-visible) {
  outline: none;
}

/* Shared container helper components may opt into */
.sd-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Unified page shell — preview .wrap (1280px + 32px gutter)
   Header always uses the shell. Category listing uses it for the
   breadcrumb + sidebar + grid. Home/product keep a full-width
   outer container; their inner sections self-align (.sd-pdp etc.).
   ============================================================ */

/* Kill Bootstrap fixed 1140/1350px container widths */
.container {
  width: 100% !important;
}

#header .header-top > .container,
#header nav.header-nav .container {
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: var(--gutter) !important;
}

#header .header-top > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Breadcrumb row — same .wrap shell on every page type */
#wrapper > .container:first-of-type {
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: var(--gutter) !important;
}

/* Category: sidebar + products share one .wrap box */
body.sd-product-listing #wrapper > .container {
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: var(--gutter) !important;
}

/* Home + PDP: main content column is full width; inner sections self-align */
body#index #wrapper > .container:not(:first-of-type),
body#product #wrapper > .container:not(:first-of-type) {
  max-width: none !important;
  padding-inline: 0 !important;
}

/* The container lost its 15px padding above, but its Bootstrap .row kept the
   -15px margins that padding existed to absorb, so the page was 15px wider
   than the screen on each side. body's overflow-x: hidden masked it on desktop;
   Android browsers still let the page pan sideways (header chips and the
   hamburger clipped at the right edge). Zeroing both keeps the content box
   exactly where it was — both pages have a single #content-wrapper column. */
body#index #wrapper > .container:not(:first-of-type) > .row,
body#product #wrapper > .container:not(:first-of-type) > .row {
  margin-inline: 0;
}

body#index #wrapper > .container:not(:first-of-type) > .row > #content-wrapper,
body#product #wrapper > .container:not(:first-of-type) > .row > #content-wrapper {
  padding-inline: 0;
}

/* Display headings → bold, modern, condensed (Bebas Neue) */
.sd-section-title,
.featured-products .h2,
.featured-products h2,
section.featured-products > .h1 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ============================================================
   Polish2 — tight radii for elements that hardcode their own (Bootstrap /
   classic theme) and don't use the radius tokens. Near-square per prototype.
   Buttons ~2px · cards/inputs/tiles ~4px · panels ~6px. Round badges/dots
   (border-radius:50%) and intentional pill chips are left untouched.
   ============================================================ */
.btn, button.btn, .btn-primary, .btn-secondary,
.sd-pdp .sd-add .add-to-cart, .sd-pdp .sd-qty,
.sd-slide-cta, .btn-red, .sd-filtertoggle {
  border-radius: 2px !important;
}
.card, .product-miniature, .product-miniature .thumbnail-top,
input.form-control, .form-control, input[type="text"], input[type="email"],
input[type="search"], input[type="number"], select, textarea,
.products-sort-order .select-title, .dropdown-menu,
.sd-cats .cat {
  border-radius: 4px !important;
}
.sd-stock, #search_filters, .sd-notify, .sd-oosnote, .product-cover {
  border-radius: 6px !important;
}

/* Currency symbols (Kč, €, …) must never inherit text-transform: uppercase
   from a parent label/heading. Reset the price nodes themselves. */
.price,
.regular-price,
.current-price-value,
.product-price,
.product-price-and-shipping .price,
.cart-summary-line .value,
.cart-total .value,
.sd-order-line-price,
.sd-order-line-total,
.order-confirmation-table td,
#order-items table td,
.subtotal.value,
.unit-price-cart,
.sd-complement-price,
.pack-product-price,
.carrier-price {
  text-transform: none;
}

/* ---- _legacy.css ---- */
body {
    /*background-color: #151A20;*/
    background: #fff;
    font-family: var(--font-body);
}

#wrapper,
#header .header-top {
    background: transparent !important;
}

#header {
    background-color: #151A20 !important;
}

#header .header-top a[data-depth="0"],
.dropdown .expand-more {
    color: #fff
}

#header, #header a, #header a:hover {
    color: #fff !important;
}

.user-info a {
    color: #fff !important;
}

@media (min-width: 1400px) {
    .container {
        width: 1350px;
        max-width: 100%;
    }
}

#footer .container {
    width: 100% !important;
}

/*
section#wrapper .container {
    width: 100% !important;
}
*/

.homeslider .caption {
    top: 20% !important;
    left: 12% !important;
    right: 45% !important;
    bottom: 10% !important;
    background: none;
    color: #ffffff;
}

.homeslider .caption div p {
    color: #ffffff;
}

#header .header-top {
    padding: 1.5rem 0 !important;
}

#header .header-top .container {
    width: 100%;
    max-width: 100%;
    padding: 0 13%;
}

#header .menu>ul>li {
    margin: 0px 40px;
}

/* hide Prihlasit se */
#_desktop_user_info .user-info a span.hidden-sm-down {
    display: none;
}

#_desktop_user_info {
    width: 100px;
}

/* straighten cart */
#_desktop_cart {
    width: 200px;
}

/* hide language selector */
#_desktop_language_selector {
    display: none;
}

/* straighten currency */
#_desktop_currency_selector {
    width: 200px;
}

#_desktop_currency_selector button i {
    color: #fff;
}

#_desktop_currency_selector button span {
    color: #fff;
}

#_desktop_currency_selector ul.dropdown-menu li a {
    color: #000 !important;
}

/* menu */
ul#top-menu ul.top-menu .dropdown-submenu {
    color: #000 !important;
}

/* product CSS */
#js-product-list .products .js-product {
    margin-top: 1.7rem;
}

.product-description .product-title {
    text-align: left;
    margin: 1.1rem;
    font-family: var(--font-body);
}

button.wishlist-button-add {
    display: none;
}

.product-description .product-title a {
    font-size: 1.65rem;
    font-weight: 600;
    color: #000;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
}

.product-miniature {
    box-shadow: 0px 3px 26px #74747446;
}

a.product-detail-link {
    display: inline-block;
    text-align: center;
    width: 145px;
    height: 50px;
    font-weight: normal;
    color: #fff;
    padding: 13px 15px 10px 16px;
    background: #2B323C;
    border-radius: 8px;
}

.product-miniature .thumbnail-container {
    width: 100%;
    margin-bottom: 15px;
}

ul.product-flags li.new {
    position: absolute;
    right: 0;
    margin: 0;
    background: #F22037;
}

.product-miniature .thumbnail-container, .product-miniature .thumbnail-container .product-description {
    width: 100%;
}

.product-miniature .thumbnail-container, .product-miniature .thumbnail-container .product-description .product-title a {
    font-size: 1.3rem;
}

.product-miniature .thumbnail-container .product-description .product-price-and-shipping {
    margin-top: 20px;
}

.product-miniature .thumbnail-container .product-description .product-price-and-shipping .price {
    text-align: left;
    display: inline-block;
    width: 55%;
}

.product-miniature .thumbnail-container .product-description .product-price-and-shipping .product-detail-link {
    display: inline-block;
    width: 35%;
}

.product-miniature .thumbnail-container .product-thumbnail img {
    width: 300px;
}

/* featured products CSS */
section.featured-products h2.products-section-title {
    text-align: left;
    color: #F22037;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-display);
}

div.featured-products-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
}

div.featured-products-parent a {
    display: inline-block;
    width: 291px;
    height: 64px;
    text-align: center;
    background: #F22037 0% 0% no-repeat padding-box;
    border: 2px solid #F22037;
    padding: 21px 48px;
    text-transform: uppercase;
    color: #fff;
}

div.featured-products-parent2 a.all-product-link {
    font-family: var(--font-display);
    color: #F22037;
    font-size: 1.3rem !important;
    font-weight: 500;
}

/* banner */
a.banner img.img-fluid {
    width: 100%;
}

/* footer */
.footer-container {
    padding-top: 4.5rem;
}

.footer-container .container .row .custom-footer {
    background-color: #151A20 !important;
    text-align: center;
    color: #FFFFFF;
    padding-top: 35px;
    padding-bottom: 30px;
    position: relative;
}

.footer-container .container .row .custom-footer a, 
.footer-container .container .row .custom-footer a:hover,
.footer-container .container .row .custom-footer a:visited {
    color: #E4E8EB;
}

.footer-container .container .row .custom-footer span {
    color: #E4E8EB;
    font-size: 0.7em;
}


/* custom text */
div#custom-text {
    padding: 0 !important;
    text-align: left;
}

/* product detail */
.product-variants > .product-variants-item .color {
    border-radius: 25px;
}

.product-variants > .product-variants-item ul#group_2 li {
    height: 30px;
    width: 30px;
}

.product-variants > .product-variants-item ul#group_2 li label,
.product-variants > .product-variants-item ul#group_2 li label input,
.product-variants > .product-variants-item ul#group_2 li label span {
    height: 100%;
    width: 100%;
    display: inline-block;
}

.product-variants > .product-variants-item ul#group_2 li label .input-color:checked + span {
    border: 4px solid #232323;
}


.product-quantity button.add-to-cart {
    background: #F22037;
    border-radius: 8px;
    height: 64px;
    width: 283px;
    margin-left: 1.5rem;
}

.product-add-to-cart .control-label {
    display: none;
}

.product-variants .product-variants-item select {
    min-width: 80px;
    height: 64px !important;
    text-align: center;
    color: #000;
    font-family: var(--font-body);
}

.product-quantity .bootstrap-touchspin {
    height: 64px;
}

.product-quantity .bootstrap-touchspin input#quantity_wanted {
    height: 64px;
    width: 64px;
    text-align: center;
    color: #000;
    font-family: var(--font-body);
}
.product-quantity .bootstrap-touchspin span.input-group-btn-vertical {
    height:66px;
}

.product-quantity .bootstrap-touchspin span.input-group-btn-vertical button {
    background: #2B323C;
    height: 50%;
    color: #fff;
    width: 40px;
    text-align: center;
}

.product-quantity .bootstrap-touchspin span.input-group-btn-vertical button i {
    top: 20%;
    left: 32%;
}


.product-container h1.h1 {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.product-prices .product-price {
    color: #000;
    font-size: 1.7rem;
    font-weight: 800;
    font-family: var(--font-display);
    display: inline-block;
    margin-right: 15px;
}

.product-prices .tax-shipping-delivery-label {
    display: inline-block;
    color: #000;
}

.product-information .tabs .nav-tabs .nav-item {
    margin-right: 15px;
}

.product-information .tabs .nav-tabs .nav-link {
    color: #000;
    border: 0;
    padding: 0;
    font-size: 1rem;
    letter-spacing: 0.62px;
}

.product-information .tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover {
    color: #000;
    border: 0;
    padding: 0;
    font-size: 1.4rem;
    font-family: var(--font-display);
    letter-spacing: 0.62px;
}

.product-information .tabs .nav-tabs {
    border: 0;
}

.product-information .tabs {
    padding: 0;   
}

.product-divider {
    height: 1px;
    background: #000;
    width: 80%;
}

.product-images > li.thumb-container .thumb.selected, .product-images > li.thumb-container .thumb:hover {
    border-color: #F22037;
}

/* categories - colors */
.subcategory-name {
    color: #F22037;
}

#subcategories ul li:hover .subcategory-image a {
    border-color: #F22037;
}

/* buttons */
.btn-primary {
    background-color: #F22037;
}

.btn-primary:visited  {
    background-color: #F22037;
}

.btn-primary:hover {
    background-color: rgba(242,32,55, 0.9);
}

/* The classic theme's compiled Bootstrap only ever shipped ONE brand colour
   (teal #24b9d7), applied to :hover, :focus, :active AND :disabled alike.
   The rules above repaint the default and :hover states red, but focus/
   active/disabled were never touched — so the base button reads red while
   press-and-hold, keyboard focus, or a disabled state still shows the
   original teal (see theme.css ~line 1605). Same darkening ratio already
   used for :hover (0.9), carried one step further for :active/:focus. */
.btn-primary.focus,
.btn-primary:focus {
    background-color: rgba(242, 32, 55, 0.85);
    border-color: transparent;
}

.btn-primary.active,
.btn-primary:active,
.open > .btn-primary.dropdown-toggle {
    background-color: rgba(242, 32, 55, 0.8);
    border-color: transparent;
}

.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open > .btn-primary.dropdown-toggle.focus,
.open > .btn-primary.dropdown-toggle:focus,
.open > .btn-primary.dropdown-toggle:hover {
    background-color: rgba(242, 32, 55, 0.75);
    border-color: transparent;
}

.btn-primary.disabled.focus,
.btn-primary.disabled:focus,
.btn-primary:disabled.focus,
.btn-primary:disabled:focus,
.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background-color: #F22037;
    border-color: transparent;
}

.custom-radio input[type="radio"]:checked + span {
    background-color: #F22037;
}

.product-price {
    color: #F22037;
}

a.js-show-details {
    color: #F22037;
}

#stav-skladu {
    font-size: 1.2em;
    font-weight: 600;
}

/* rychly nahled */
.product-miniature .highlighted-informations {
    display: none;
}

/* ---- _header-nav.css ---- */
/* ============================================================
   CSG / Senza — Header & Navigation  (prototype: preview_1.html)
   Two-tier header:
     TIER 1  ink utility bar  (tagline + language/currency/sign-in)
     TIER 2  WHITE main bar   (ink logo + ink Oswald nav + tools)
   Loaded AFTER _legacy.css — decisive rules to win the cascade.
   Breakpoints:
     Mobile-first base: < 768px (xs/sm)
     Desktop: 992px  (lg) — hamburger hides, full menu shows
   ============================================================ */


/* ============================================================
   1. HEADER SHELL — sticky; the WHITE main bar carries the
      surface, so #header itself is transparent (white shows
      through). A subtle bottom shadow gives depth on scroll.
   ============================================================ */

#header {
  position: sticky;
  top: 0;
  z-index: 1050;
  width: 100%;
  background-color: var(--sd-white) !important;
  box-shadow: none;
  transition: box-shadow var(--t);
}

#header.sticky,
#header.is-sticky,
#header[style*="position: fixed"] {
  box-shadow: 0 4px 20px rgba(17, 19, 22, 0.10);
}

/* Banner strip — collapse fully when it carries no content. */
#header .header-banner {
  min-height: 0;
  height: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}
#header .header-banner:not(:empty):has(> *) {
  height: auto;
  line-height: 1.4;
  padding: 8px 0;
}
#header .header-banner:empty { display: none; }


/* ============================================================
   2. TIER 1 — INK UTILITY BAR  (desktop)
      nav.header-nav is the container. On desktop it holds the
      tagline (left) + language/currency/sign-in (right) on ink.
   ============================================================ */

#header nav.header-nav {
  background-color: var(--sd-ink, #111316);
  border-bottom: none;
  padding: 0;
  color: #cfd2d6;
  font-family: var(--font-body);
  font-size: 0.8125rem;   /* 13px */
}

#header nav.header-nav .container {
  max-width: var(--container);
  padding-inline: var(--gutter);
}

#header nav.header-nav .row {
  display: flex;
  align-items: center;
  min-height: 38px;
}

/* The desktop utility wrapper: tagline left, links right. */
#header nav.header-nav .sd-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
}

#header nav.header-nav .sd-utility-tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  font-size: 0.8125rem;
  color: #fff;
}

#header nav.header-nav .sd-utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ============================================================
   LOCALE SWITCHER — currency + language chips in the ink bar
   (modules/ps_currencyselector + ps_languageselector templates)

   Two-and-two options, so they are switches, not dropdowns: both pairs read at
   a glance and stay put at every width, including the phone where the classic
   theme used to hide the currency inside the hamburger. Uppercase display type
   at 12px keeps them subordinate to the tagline on the same bar.
   ============================================================ */
.sd-locale {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sd-locale__group {
  display: inline-flex;
  align-items: center;
  /* Hairline pill so the pair reads as one control with two states. */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.sd-locale__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.62) !important;
  transition: color var(--t-fast), background-color var(--t-fast);
}

.sd-locale__opt:hover,
.sd-locale__opt:focus-visible {
  color: #fff !important;
}

/* Selected option: white pill, ink text. Was the brand red, but next to the red
   "Rychlá poptávka" pill and cart badge it was too much red in one bar (client, 2026-10-03). */
.sd-locale__opt.is-on,
#header .sd-locale__opt.is-on,
#header .sd-locale__opt.is-on:hover {
  /* #header in the selector: "#header a { color: #fff !important }" outranks a class. */
  background: #fff;
  color: var(--sd-ink) !important;
}

/* Screen-reader-only text: the chips show ISO codes, the accessible name is the
   full language / currency name. */
.sd-locale .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Polish2: make the three controls one evenly-spaced, vertically-centered row
   on a single baseline (each control + its inner button/link is an inline-flex
   box of the full bar height, so language / currency / sign-in line up). */
#header nav.header-nav .sd-utility-right > div {
  display: inline-flex;
  align-items: center;
  height: 38px;
}
#header nav.header-nav .sd-utility-right .js-dropdown > button[data-toggle="dropdown"],
#header nav.header-nav .sd-utility-right .js-dropdown > button.btn-unstyle,
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  height: 38px;
  padding-block: 0;
}

/* Polish3 — the sign-in control sat 8px low because ps_customersignin's
   .user-info carries margin-top:15px (classic theme). Reset it and center the
   wrapper so the login link's top matches the language/currency selectors (0). */
#header nav.header-nav .sd-utility-right #_desktop_user_info,
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info {
  margin: 0 !important;
  align-self: center !important;
  align-items: center;
  height: 38px;
}

/* Polish3b — the language/currency dropdowns sat 8px low for the SAME reason:
   the classic theme puts margin-top:15px on .js-dropdown (.language-selector /
   .currency-selector), and .language-selector-wrapper grew to 53px. Reset the
   margins and center, so the dropdown buttons line up with the login (top 0). */
#header nav.header-nav .sd-utility-right .language-selector-wrapper,
#header nav.header-nav .sd-utility-right .js-dropdown,
#header nav.header-nav .sd-utility-right .language-selector,
#header nav.header-nav .sd-utility-right .currency-selector {
  margin: 0 !important;
  align-self: center !important;
  height: 38px;
  display: inline-flex;
  align-items: center;
}

/* displayNav1 (contact info) is empty here — keep it from adding height */
#header nav.header-nav .sd-utility-nav1:empty { display: none; }
#header nav.header-nav .sd-utility-nav1 { color: #cfd2d6; }


/* ---- Utility-bar language / currency / sign-in : flat ink links ---- */
#header nav.header-nav .sd-utility-right #_desktop_language_selector,
#header nav.header-nav .sd-utility-right #_desktop_currency_selector,
#header nav.header-nav .sd-utility-right #_desktop_user_info {
  width: auto !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Captions ("Jazyk:" / "Měna:") — PS module marks these hidden-md-up
   (mobile only); leave them hidden on desktop as the module intends. */
#header nav.header-nav .sd-utility-right #language-selector-label { display: none !important; }
#header nav.header-nav .sd-utility-right #currency-selector-label { display: none !important; }

/* native selects hidden — use the dropdown buttons */
#header nav.header-nav .sd-utility-right select.link,
#header nav.header-nav .sd-utility-right select.hidden-md-up,
#header nav.header-nav .sd-utility-right select { display: none !important; }

/* Dropdown trigger buttons — flat text links on ink */
#header nav.header-nav .sd-utility-right .js-dropdown > button[data-toggle="dropdown"],
#header nav.header-nav .sd-utility-right button.btn-unstyle {
  background: none !important;
  border: none !important;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #cfd2d6 !important;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-fast);
}
#header nav.header-nav .sd-utility-right .js-dropdown > button:hover,
#header nav.header-nav .sd-utility-right .js-dropdown.open > button {
  color: #fff !important;
}
#header nav.header-nav .sd-utility-right button .expand-more,
#header nav.header-nav .sd-utility-right button span,
#header nav.header-nav .sd-utility-right button i.material-icons { color: inherit !important; }
#header nav.header-nav .sd-utility-right button i.material-icons { font-size: 16px; line-height: 1; }

/* Faint divider before currency + sign-in */
#header nav.header-nav .sd-utility-right #_desktop_currency_selector::before,
#header nav.header-nav .sd-utility-right #_desktop_user_info::before {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.20);
  margin-right: 18px;
  display: inline-block;
}

/* Sign-in link — icon optional, text shown as flat link */
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info {
  display: flex;
  align-items: center;
}
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cfd2d6 !important;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info a:hover { color: #fff !important; }
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info a .material-icons { font-size: 16px; color: inherit !important; }
#header nav.header-nav .sd-utility-right #_desktop_user_info .user-info a span.hidden-sm-down { display: inline; }

/* Utility dropdown menus — white cards */
#header nav.header-nav .sd-utility-right ul.dropdown-menu {
  background: var(--sd-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: none;
  padding: 8px 0;
  min-width: 120px;
}
#header nav.header-nav .sd-utility-right ul.dropdown-menu li a {
  color: var(--sd-text) !important;
  padding: 8px 16px;
  font-size: 0.875rem;
  transition: background-color var(--t-fast), color var(--t-fast);
}
#header nav.header-nav .sd-utility-right ul.dropdown-menu li a:hover {
  color: var(--sd-red) !important;
  background-color: var(--sd-gray-100);
}


/* ============================================================
   2b. MOBILE ROW  (inside header-nav, < 992px)
      3-zone flex: hamburger (left) | logo (center) | cart/user (right)
   ============================================================ */

#header nav.header-nav .hidden-md-up.mobile {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 12px 4px 8px;
  position: relative;
  gap: 4px;
}

#header nav.header-nav .hidden-md-up.mobile > .clearfix { display: none; }

#header nav.header-nav .hidden-md-up.mobile > #menu-icon {
  order: 0;
  float: none !important;
  flex: 0 0 44px;
  margin-right: 8px;
}

#header nav.header-nav .hidden-md-up.mobile > #_mobile_logo {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  padding: 0 8px;
}

#header nav.header-nav .hidden-md-up.mobile > #_mobile_user_info { order: 2; }
#header nav.header-nav .hidden-md-up.mobile > #_mobile_cart { order: 3; }


/* ============================================================
   3. HAMBURGER / MOBILE MENU ICON
   ============================================================ */

#menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast);
  flex-shrink: 0;
}
#menu-icon:hover,
#menu-icon:focus-visible { background-color: rgba(255, 255, 255, 0.10); }

#header nav.header-nav #menu-icon .material-icons {
  color: var(--sd-white);
  font-size: 28px;
  line-height: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   4. MOBILE LOGO — centered, inline CSG SVG (white letters)
   ============================================================ */

#header nav.header-nav .top-logo#_mobile_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none !important;
  text-align: center;
}

/* Inline CSG logo (preferred). White letters on the ink mobile bar. */
#header nav.header-nav #_mobile_logo .sd-mobile-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: #fff;
}
#header nav.header-nav #_mobile_logo .sd-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* Hide any raster <img> PrestaShop JS may inject from PS_LOGO so the
   inline SVG is the single mobile logo. */
#header nav.header-nav .top-logo#_mobile_logo img { display: none !important; }


/* ============================================================
   5. MOBILE CART & USER — right cluster (icon-only)
   ============================================================ */

#header nav.header-nav #_mobile_cart,
#header nav.header-nav #_mobile_user_info {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  float: none !important;
  position: relative;
  z-index: 2;
  overflow: visible;
}
#header nav.header-nav #_mobile_cart { margin-left: 2px; }

#header nav.header-nav #_mobile_cart .blockcart,
#header nav.header-nav #_mobile_cart .cart-preview,
#header nav.header-nav #_mobile_cart .header,
#header nav.header-nav #_mobile_cart a,
#header nav.header-nav #_mobile_user_info .user-info,
#header nav.header-nav #_mobile_user_info a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius-sm);
  color: var(--sd-white) !important;
  text-decoration: none;
  overflow: visible;
}

#header nav.header-nav #_mobile_cart .material-icons,
#header nav.header-nav #_mobile_cart i.material-icons,
#header nav.header-nav #_mobile_user_info .material-icons,
#header nav.header-nav #_mobile_user_info i.material-icons {
  font-size: 24px;
  line-height: 1;
  color: var(--sd-white) !important;
}

#header nav.header-nav #_mobile_cart .hidden-sm-down,
#header nav.header-nav #_mobile_cart span:not(.cart-products-count):not(.material-icons),
#header nav.header-nav #_mobile_user_info .hidden-sm-down { display: none !important; }


/* ============================================================
   6. TIER 2 — WHITE MAIN BAR
      (logo | menu | search | cart)  height ~84px, border-bottom
   ============================================================ */

#header .header-top {
  background: var(--sd-white) !important;
  border-bottom: 1px solid var(--sd-gray-200);
  padding: 0 !important;
}

#header .header-top > .container {
  max-width: var(--container) !important;
  width: 100% !important;
  padding: 0 var(--gutter) !important;
}

#header .header-top > .container > .row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 84px;
  gap: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ============================================================
   7. DESKTOP LOGO — ink letters, red bracket, ~30px tall
   ============================================================ */

#header .header-top #_desktop_logo {
  flex: 0 0 auto;
  padding: 0;
  margin-right: 36px;
  display: flex;
  align-items: center;
  overflow: visible;
}

#header .header-top #_desktop_logo h1 { margin: 0; padding: 0; line-height: 1; overflow: visible; }

/* The logo letters: ink (currentColor) on the white bar */
#header .header-top #_desktop_logo .sd-logo-link { color: var(--sd-text) !important; line-height: 1; overflow: visible; }
#header .header-top #_desktop_logo .sd-head-brand .sd-mark {
  display: inline-flex;
  align-items: center;
  /* `flex: none` used to be here. With the wider Senza Dubbio wordmark it stops the
     mark ever shrinking, so a tight column pushes the brand out and the nav off the
     row instead of the logo scaling down. */
  min-width: 0;
  max-width: 100%;
  color: inherit;
  overflow: visible;
}
/* This rule outranks the one in _redesign-logo.css (3 ids vs 1), so the responsive
   sizing has to live here or it silently never applies. */
#header .header-top #_desktop_logo .sd-logo {
  /* An explicit width is required: an inline SVG has no intrinsic size, so width:auto
     together with height:auto collapses it to 0x0 and the logo vanishes entirely.
     158px is its natural width at the intended 30px height; max-width then caps it to
     the column and aspect-ratio scales the height with it instead of squashing. */
  width: 158px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 179.9167 / 34.219555; /* viewBox of sd-logo.tpl */
  display: block;
  overflow: visible !important; /* theme.css svg { overflow: hidden } clips the mark */
}

/* Brand lockup: CSG mark | "merchandising store" descriptor (matches the
   footer lockup + preview_1). currentColor keeps the divider ink on white. */
#header .header-top #_desktop_logo .sd-head-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
}
#header .header-top #_desktop_logo .sd-head-brand .brdiv {
  width: 1px;
  height: 30px;
  background: currentColor;
  opacity: 0.22;
  display: inline-block;
  flex: none;
}
#header .header-top #_desktop_logo .sd-head-brand .brsub {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sd-text);
  opacity: 0.7;
  max-width: 96px;
  line-height: 1.35;
}


/* ============================================================
   8. HEADER-TOP-RIGHT (nav + search + cart)
   ============================================================ */

#header .header-top .header-top-right {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 0 !important;
}


/* ============================================================
   9. DESKTOP MAIN MENU — ink uppercase Oswald, red hover indicator
   ============================================================ */

#header .header-top .header-top-right #_desktop_top_menu,
#_desktop_top_menu.menu.js-top-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  margin-right: 8px;
}

#_desktop_top_menu .top-menu[data-depth="0"],
#_desktop_top_menu ul#top-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 34px;
}

#_desktop_top_menu .top-menu[data-depth="0"] > li.category,
#_desktop_top_menu ul#top-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0 !important;
}

#_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item,
#_desktop_top_menu ul#top-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0;
  height: 84px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sd-text) !important;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast);
  background: none !important;
  border: none;
}

/* Caret on parent items (those that contain a sub-menu). Keyed on the sub-menu
   itself rather than on the item type, so it also covers the brands item
   (li.manufacturers) and anything added to the menu later. */
#_desktop_top_menu .top-menu[data-depth="0"] > li:has(.popover.sub-menu) > a::before {
  content: "\25BE";
  order: 2;
  font-size: 9px;
  margin-left: 6px;
  color: var(--sd-text-muted);
  transition: color var(--t-fast);
}
#_desktop_top_menu .top-menu[data-depth="0"] > li:has(.popover.sub-menu):hover > a::before { color: var(--sd-red); }

/* Red bottom indicator */
#_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item::after,
#_desktop_top_menu ul#top-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sd-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast);
}

#_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item:hover,
#_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item:focus-visible,
#_desktop_top_menu ul#top-menu > li > a:hover,
#_desktop_top_menu ul#top-menu > li > a:focus-visible,
#_desktop_top_menu .top-menu[data-depth="0"] > li.current > a.dropdown-item,
#_desktop_top_menu ul#top-menu > li.current > a {
  color: var(--sd-red) !important;
  text-decoration: none !important;
}

#_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item:hover::after,
#_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item:focus-visible::after,
#_desktop_top_menu ul#top-menu > li > a:hover::after,
#_desktop_top_menu ul#top-menu > li > a:focus-visible::after,
#_desktop_top_menu .top-menu[data-depth="0"] > li.current > a.dropdown-item::after,
#_desktop_top_menu ul#top-menu > li.current > a::after {
  transform: scaleX(1);
}

/* Show submenu on parent hover (PS JS also toggles .in) */
#_desktop_top_menu .top-menu[data-depth="0"] > li:hover > .popover.sub-menu { display: block; }


/* ============================================================
   10. DROPDOWN SUB-MENU — white card with RED TOP EDGE
   ============================================================ */

#_desktop_top_menu .popover.sub-menu.js-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-red);
  border-radius: 0;
  box-shadow: 0 18px 44px rgba(17, 19, 22, 0.14);
  padding: 8px 0;
  z-index: 1100;
}

#_desktop_top_menu .popover.sub-menu.js-sub-menu.in,
#_desktop_top_menu .popover.sub-menu.js-sub-menu.collapse.in { display: block; }

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] {
  list-style: none;
  margin: 0;
  padding: 0;
}
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li { display: block; }

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a.dropdown-item,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a.dropdown-submenu {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;   /* 13px */
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sd-text) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
  background: none !important;
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a:hover,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a:focus-visible {
  color: var(--sd-red) !important;
  background-color: var(--sd-gray-100) !important;
}


/* ============================================================
   11. SEARCH BAR — preview .tools: icon only; input expands on click
   ============================================================ */

#header .header-top .sd-header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Icon trigger — preview .tools .ic (22×22) */
#header .sd-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--sd-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
#header .sd-search-toggle:hover,
#header .sd-search-toggle:focus-visible {
  color: var(--sd-red);
  outline: none;
}
#header .sd-search-toggle .material-icons {
  font-size: 22px;
  line-height: 1;
}

#header .sd-header-search__panel {
  display: flex;
  align-items: center;
  min-width: 0;
}

#header #_desktop_search_widget,
#header .header-top-right > div[id*="search"] { flex-shrink: 0; }

#header #search_widget,
#header .search-widget { display: flex; align-items: center; width: 100%; }

#header #search_widget form,
#header .search-widget form {
  display: flex;
  align-items: center;
  background: var(--sd-gray-100);
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding-left: 10px;
  transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

#header #search_widget form:focus-within,
#header .search-widget form:focus-within {
  background-color: var(--sd-white);
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px rgba(242, 32, 55, 0.12);
}

#header #search_widget input[type="text"],
#header .search-widget input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--sd-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 8px 16px;
  width: 170px;
  transition: width var(--t);
}

#header #search_widget input[type="text"]::placeholder,
#header .search-widget input[type="text"]::placeholder { color: var(--sd-text-muted); }

#header #search_widget input[type="text"]:focus,
#header .search-widget input[type="text"]:focus { width: 210px; }

#header #search_widget button[type="submit"],
#header .search-widget button[type="submit"] {
  background: transparent;
  border: none;
  color: var(--sd-text-muted);
  padding: 8px 14px 8px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
#header #search_widget button[type="submit"]:hover,
#header .search-widget button[type="submit"]:hover { color: var(--sd-red); }
#header #search_widget button[type="submit"] .material-icons,
#header .search-widget button[type="submit"] .material-icons { font-size: 20px; line-height: 1; }

#header #search_widget form .material-icons {
  position: static !important;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  width: auto;
  height: auto;
  color: var(--sd-text-muted) !important;
}
#header #search_widget form .material-icons.search {
  order: -1;
  margin-right: 8px;
}
#header #search_widget form .material-icons.clear {
  order: 9;
  margin-left: 4px;
  cursor: pointer;
}
#header #search_widget form .material-icons.clear:hover { color: var(--sd-red) !important; }
#header #search_widget input[type="text"],
#header #search_widget input.ui-autocomplete-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 180px;
  padding: 8px 4px;
}

/* Desktop: collapsed to icon until .is-open */
@media (min-width: 992px) {
  #header .sd-search-toggle { display: inline-flex; }

  #header .sd-header-search:not(.is-open) .sd-header-search__panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  #header .sd-header-search.is-open .sd-search-toggle {
    display: none;
  }

  /* The expanded field is overlaid, not inserted into the row.
     .header-top-right is flex/nowrap with justify-content:flex-end, and
     #_desktop_top_menu has min-width:auto, so it cannot shrink below its
     ~824px min-content width. Giving the 260px panel its own space made the
     row overflow ~190px, and with flex-end the overflow spilled leftwards,
     dragging the menu across the logo. Keeping the panel absolutely
     positioned (as in the collapsed state) leaves the menu untouched. */
  #header .sd-header-search.is-open {
    width: 22px;            /* preserve the collapsed icon footprint */
  }

  #header .sd-header-search.is-open .sd-header-search__panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    background: #fff;       /* cover the nav items it overlays */
    z-index: 20;
  }

  #header .sd-header-search.is-open #search_widget input[type="text"],
  #header .sd-header-search.is-open .search-widget input[type="text"] {
    width: 100%;
  }
}

/* preview: hide search icon on very small screens */
@media (max-width: 640px) {
  #header .header-top .sd-header-search { display: none !important; }
}


/* ============================================================
   12. CART (desktop, in the white main bar) — ink text, red badge
   ============================================================ */

#header .header-top-right #_desktop_cart { width: auto !important; flex-shrink: 0; }

#header #_desktop_cart .cart-preview,
#header #_desktop_cart .blockcart { display: flex; align-items: center; }

#header #_desktop_cart .cart-preview .header,
#header #_desktop_cart .blockcart .header,
#header #_desktop_cart .cart-preview a,
#header #_desktop_cart .blockcart a,
#header #_desktop_cart a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  width: auto;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
  color: var(--sd-text) !important;
}
#header #_desktop_cart .cart-preview a:hover,
#header #_desktop_cart .blockcart a:hover { color: var(--sd-red) !important; background: transparent; }

#header #_desktop_cart .material-icons,
#header #_desktop_cart i.material-icons {
  font-size: 24px;
  line-height: 1;
  color: inherit !important;
  flex-shrink: 0;
}

#header #_desktop_cart .header > span.hidden-sm-down {
  order: 1;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: inherit !important;
  white-space: nowrap;
}

/* Count badge — red pill, top-right of the cart cluster */
#header #_desktop_cart .cart-products-count,
#header #_desktop_cart span.cart-products-count {
  position: absolute;
  top: -2px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--sd-red);
  color: var(--sd-white);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sd-white);
  z-index: 2;
  pointer-events: none;
}


/* ============================================================
   15. MOBILE MENU PANEL (off-canvas / slide-down) — dark ink panel
   ============================================================ */

/* theme.js's toggleMobileMenu() runs $('#notifications, #wrapper, #footer')
   .hide() whenever the panel is visible — classic's drawer is a full-screen
   takeover, so it blanks the page behind it. This one is a slide-down panel
   capped at 80vh that leaves the header in place, so blanking everything below
   just looked like the site had vanished. Put the page back: an !important
   author declaration outranks the inline display:none jQuery writes, and it is
   scoped to the open state so the shop's own hiding rules are untouched
   everywhere else. */
body:has(#header.is-open) #notifications,
body:has(#header.is-open) #wrapper,
body:has(#header.is-open) #footer {
  display: block !important;
}

#mobile_top_menu_wrapper {
  background-color: var(--sd-navy-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
  transition: max-height var(--t), opacity var(--t);
  max-height: 0;
  opacity: 0;
}

#mobile_top_menu_wrapper[style*="display: block"],
#mobile_top_menu_wrapper.in,
#mobile_top_menu_wrapper:not([style*="display:none"]):not([style*="display: none"]) {
  max-height: min(80vh, 600px);
  opacity: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#mobile_top_menu_wrapper > .js-top-menu.mobile,
#mobile_top_menu_wrapper > #_mobile_top_menu,
#mobile_top_menu_wrapper > .js-top-menu-bottom { width: 100%; flex: 0 0 auto; }

#mobile_top_menu_wrapper .js-top-menu.mobile #_mobile_top_menu .top-menu,
#mobile_top_menu_wrapper #_mobile_top_menu .top-menu { list-style: none; margin: 0; padding: 0; }

#mobile_top_menu_wrapper #_mobile_top_menu .top-menu > li.category,
#mobile_top_menu_wrapper #_mobile_top_menu .top-menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile_top_menu_wrapper .top-menu a[data-depth="0"] {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sd-white) !important;
  text-decoration: none;
  border-bottom: 0 !important;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

#mobile_top_menu_wrapper .top-menu a[data-depth="0"]:hover,
#mobile_top_menu_wrapper .top-menu a[data-depth="0"]:focus-visible,
#mobile_top_menu_wrapper .top-menu li.category > a[aria-expanded="true"],
#mobile_top_menu_wrapper .top-menu li.category.open > a[data-depth="0"],
/* PrestaShop Bootstrap-collapse markup: the .collapse-icons toggle (which
   carries aria-expanded) lives INSIDE a[data-depth="0"]; the open submenu
   sibling gets class .in. Drive the red accent off those real states. */
#mobile_top_menu_wrapper .top-menu li:has(> a[data-depth="0"] .collapse-icons[aria-expanded="true"]) > a[data-depth="0"],
#mobile_top_menu_wrapper .top-menu li:has(> .popover.sub-menu.in) > a[data-depth="0"],
#mobile_top_menu_wrapper .top-menu li:has(> .collapse.in) > a[data-depth="0"] {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: inset 3px 0 0 var(--sd-red);
  color: var(--sd-red) !important;
}

#mobile_top_menu_wrapper .top-menu a[data-depth="0"] .float-xs-right.hidden-md-up {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ps_mainmenu.tpl marks the expand chevron .hidden-md-up, i.e. hidden from
   768px up — it was written for a drawer that only ever exists below 768px.
   The drawer now runs to 991px (see initTabletMenuBridge in sd-header.js), and
   without the chevron there a parent item was a dead end: ZNAČKY showed no
   brands, OBLEČENÍ no Muži/Ženy. Nothing else in the drawer is width-gated, so
   un-gate the chevron and its wrapper for the whole drawer. */
#mobile_top_menu_wrapper .top-menu a[data-depth="0"] > .float-xs-right.hidden-md-up,
#mobile_top_menu_wrapper .collapse-icons.hidden-md-up {
  display: flex !important;
}

#mobile_top_menu_wrapper .collapse-icons { display: flex; align-items: center; }
#mobile_top_menu_wrapper .collapse-icons .material-icons {
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  transition: transform var(--t-fast), color var(--t-fast);
}
#mobile_top_menu_wrapper .collapse-icons[aria-expanded="true"] .material-icons,
#mobile_top_menu_wrapper .collapse-icons .remove {
  color: var(--sd-red);
  transform: rotate(180deg);
}

#mobile_top_menu_wrapper .collapse,
#mobile_top_menu_wrapper div.popover.sub-menu,
#mobile_top_menu_wrapper div.popover.sub-menu.js-sub-menu.collapse,
#mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="1"],
#mobile_top_menu_wrapper .top-menu ul[data-depth="1"] {
  background-color: rgba(0, 0, 0, 0.22) !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

#mobile_top_menu_wrapper .top-menu a[data-depth="1"],
#mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="1"] > li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 calc(var(--gutter) + 16px);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  text-transform: none;
  transition: background-color var(--t-fast), color var(--t-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#mobile_top_menu_wrapper .top-menu a[data-depth="1"]:hover,
#mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="1"] > li a:hover {
  color: var(--sd-red) !important;
  background-color: rgba(255, 255, 255, 0.05);
}

#mobile_top_menu_wrapper .js-top-menu-bottom {
  padding: 16px var(--gutter);
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
/* The locale switches left the panel (they live in the ink bar), so the footer
   row is usually just empty placeholder divs — drop it rather than show a
   padded blank band under the last menu item. */
#mobile_top_menu_wrapper .js-top-menu-bottom:not(:has(> div:not(:empty))) {
  display: none;
}
#mobile_top_menu_wrapper .js-top-menu-bottom > div {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mobile menu: use PrestaShop's native <select> (theme.js navigates on change).
   Do NOT force desktop dropdown buttons — Bootstrap dropdown is hidden-sm-down
   and does not work reliably inside the hamburger panel. */
#mobile_top_menu_wrapper .js-top-menu-bottom .js-dropdown > button[data-toggle="dropdown"],
#mobile_top_menu_wrapper .js-top-menu-bottom .currency-selector button.hidden-sm-down,
#mobile_top_menu_wrapper .js-top-menu-bottom .language-selector button.hidden-sm-down {
  display: none !important;
}

#mobile_top_menu_wrapper .js-top-menu-bottom .js-dropdown ul.dropdown-menu {
  display: none !important;
}

#mobile_top_menu_wrapper .js-top-menu-bottom select.link,
#mobile_top_menu_wrapper .js-top-menu-bottom select.hidden-md-up,
#mobile_top_menu_wrapper .js-top-menu-bottom select {
  display: block !important;
  width: 100%;
  min-height: 44px;
  padding: 10px 36px 10px 14px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-sm);
  color: var(--sd-white) !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

#mobile_top_menu_wrapper .js-top-menu-bottom select.link:hover,
#mobile_top_menu_wrapper .js-top-menu-bottom select.link:focus,
#mobile_top_menu_wrapper .js-top-menu-bottom select.link:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

#mobile_top_menu_wrapper .js-top-menu-bottom select.link option {
  color: var(--sd-text);
  background: var(--sd-white);
}

#mobile_top_menu_wrapper .js-top-menu-bottom #currency-selector-label,
#mobile_top_menu_wrapper .js-top-menu-bottom #language-selector-label,
#mobile_top_menu_wrapper .js-top-menu-bottom .language-selector > span,
#mobile_top_menu_wrapper .js-top-menu-bottom > div > span,
#mobile_top_menu_wrapper .js-top-menu-bottom span.hidden-md-up,
#mobile_top_menu_wrapper .js-top-menu-bottom .hidden-md-up span { display: none !important; }


/* ============================================================
   16. MOBILE CART badge (inside header-nav mobile row)
   ============================================================ */

#header nav.header-nav #_mobile_cart .cart-products-count {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--sd-red);
  color: var(--sd-white);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sd-ink, #111316);
  z-index: 3;
  pointer-events: none;
}


/* ============================================================
   17. FOCUS-VISIBLE
   ============================================================ */

#header a:focus-visible,
#header button:focus-visible,
#header input:focus-visible {
  outline: 3px solid var(--sd-red);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ============================================================
   18. RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 1100px) {
  #_desktop_top_menu .top-menu[data-depth="0"],
  #_desktop_top_menu ul#top-menu {
    gap: 22px;
  }
}

/* Tablet: show inline search field (toggle is desktop-only) */
@media (min-width: 641px) and (max-width: 991px) {
  #header .sd-search-toggle { display: none !important; }

  #header .sd-header-search__panel {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }
}

/* ---- Tablet and below (< 992px) ---- */
@media (max-width: 991px) {

  #header,
  #header nav.header-nav,
  #header nav.header-nav .container {
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100%;
  }
  #header nav.header-nav .container { width: 100%; }

  /* B1: keep the ink utility bar visible; allow it to wrap at narrow widths */
  #header nav.header-nav .sd-utility {
    display: flex !important;
    flex-wrap: wrap;
    min-height: 32px;
    padding: 4px 0;
  }

  /* White main bar: keep logo + right items on one row */
  #header .header-top > .container > .row {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 64px;
    padding: 0;
  }

  /* Logo: flex: 0 0 auto so it takes its natural width */
  #header .header-top #_desktop_logo {
    display: flex !important;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0 10px 0 0;
  }

  /* B1b: hide inline desktop nav so icon cluster is not pushed off-screen */
  #header .header-top #_desktop_top_menu { display: none !important; }

  /* …which is why the hamburger is the only navigation from 991px down. Above
     767px, though, Bootstrap's .hidden-md-up pins the panel it opens at
     display:none !important, so the button did nothing in that band. Key the
     override on #header.is-open — the class theme.js toggles on the same click
     — so the panel still closes: id+class outranks .hidden-md-up while the
     class is there, and the !important hide takes over again once it goes.
     The panel's contents come from initTabletMenuBridge() in sd-header.js. */
  #header.is-open #mobile_top_menu_wrapper.hidden-md-up {
    display: flex !important;
  }

  /* Right side: fill remaining space; allow search to shrink */
  #header .header-top .header-top-right {
    display: flex !important;
    flex: 1 1 auto;
    width: auto;
    overflow: visible;
  }
  #header .header-top .sd-header-search {
    flex: 1 1 0;
    min-width: 0;
  }
  #header .header-top .sd-header-search form,
  #header .header-top .sd-header-search input {
    width: 100%;
    min-width: 0;
  }

  /* Hamburger icon: show below 992px. It is a <button>, so strip the UA chrome
     (background, border, padding, inherited font) — the icon is the control. */
  #header .header-top .sd-hamburger {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--sd-ink);
    flex-shrink: 0;
  }
  #header .header-top .sd-hamburger .material-icons { font-size: 24px; }
}

/* At xs (< 576px): hide the tagline text, right-align utility items */
@media (max-width: 575px) {
  #header nav.header-nav .sd-utility-tagline { display: none !important; }
  #header nav.header-nav .sd-utility { justify-content: flex-end; }

  /* Both switches stay in the bar on a phone — that is the whole point of the
     change — so trim them to keep the bar on one 38px line. */
  #header nav.header-nav .sd-utility-right .sd-locale { gap: 8px; }
  #header nav.header-nav .sd-utility-right .sd-locale__opt {
    min-width: 34px;
    padding: 3px 7px;
    letter-spacing: 0.8px;
  }
  /* Logo: small, just the mark */
  #header .header-top #_desktop_logo .brsub { display: none; }
  #header .header-top #_desktop_logo .brdiv { display: none; }

  /* Cap search so cart + hamburger remain in-viewport at 375 */
  #header .header-top .sd-header-search {
    max-width: 140px !important;
    overflow: hidden;
    flex-shrink: 1 !important;
  }
  #header .header-top .sd-header-search input[type="text"],
  #header .header-top .sd-header-search input[type="search"] {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 12px;
    padding: 6px 6px !important;
  }
  /* "Košík" text already carries Bootstrap's hidden-sm-down — keep it so. */
}

/* Below PS responsive swap (768px): lang/currency are in the hamburger menu —
   hide empty utility slots and orphaned dividers next to sign-in. */
@media (max-width: 767px) {
  #header nav.header-nav .sd-utility-right #_desktop_language_selector,
  #header nav.header-nav .sd-utility-right #_desktop_currency_selector {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  #header nav.header-nav .sd-utility-right #_desktop_currency_selector::before,
  #header nav.header-nav .sd-utility-right #_desktop_user_info::before {
    display: none !important;
    content: none !important;
    margin: 0 !important;
  }

  #header nav.header-nav .sd-utility-right {
    gap: 0;
    padding-right: 10px;
  }

  #header nav.header-nav .sd-utility-right #_desktop_user_info .user-info a {
    padding-right: 2px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
  #header nav.header-nav .container { padding-inline: 12px; }
}

/* ---- Desktop (>= 992px) ---- */
@media (min-width: 992px) {

  /* Mobile bar fully gone */
  #header nav.header-nav .hidden-md-up { display: none !important; }

  /* The utility bar is now a real, content-bearing tier — keep it
     visible (NOT collapsed). It carries tagline + selectors. */
  #header nav.header-nav { min-height: 38px; height: auto; }
  #header nav.header-nav .sd-utility { display: flex; }

  #header .header-top > .container > .row {
    flex-wrap: nowrap;
    min-height: 84px;
  }
  #header .header-top #_desktop_logo { display: flex; }
  #header .header-top .header-top-right { display: flex; }

  #mobile_top_menu_wrapper { display: none !important; }

  /* Hamburger: desktop hides it */
  #header .header-top .sd-hamburger { display: none !important; }

  /* Language selector: _legacy.css hides it globally; re-enable on
     desktop so it shows in the utility bar. Do NOT edit _legacy.css. */
  #header #_desktop_language_selector {
    display: flex !important;
    width: auto !important;
    flex-shrink: 0;
  }
}

/* ---- Wide screens (>= 1280px) ---- */
@media (min-width: 1280px) {
  #header #search_widget input[type="text"],
  #header .search-widget input[type="text"] { width: 200px; }
  #header #search_widget input[type="text"]:focus,
  #header .search-widget input[type="text"]:focus { width: 240px; }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item,
  #_desktop_top_menu ul#top-menu > li > a { padding: 0 17px; }
}


/* ============================================================
   19. UTILITY — prevent body scroll when mobile menu is open
   ============================================================ */
body.mobile-menu-open { overflow: hidden; }

/* ============================================================
   10b. DROPDOWN — SECOND LEVEL AS A HOVER FLYOUT
   ============================================================
   One cascading pattern for every dropdown that has a third level (currently only Produkty
   since 2026-10-02, when Oblečení became type-first: Oblečení > Bundy, Pleteniny, … with no
   Muži/Ženy level; the pattern stays for any dropdown that gets one again): the panel stays a single narrow column, and hovering a row slides its
   children out as a card to the right.

   This replaces an earlier multi-column "mega menu" layout. Two panels rendered with
   two different behaviours was the real problem — Produkty as a 17-column wall was
   overwhelming, and keeping a second layout alive just for Oblečení meant every fix had
   to be made twice, in rules that fought each other on specificity.

   Background worth keeping: before the 2026-08-25 category merge, Muži/Ženy/Unisex were
   leaves and no dropdown had a third level at all. When they gained nine children each,
   ps_mainmenu rendered them and nothing styled them — the links inherited the header's
   white colour, so they were white on white: invisible, yet still 31px tall each, which
   is what produced the mysterious empty gaps in the Oblečení menu.

   Single-level dropdowns (Lahve, Značky) are untouched by all of this. */

/* Rows that own a flyout need to be the positioning context for it. */
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li {
  position: relative;
  /* theme.css floats menu items left. The panel is a block column, which honours the
     float and would lay the categories out in one very wide row. */
  float: none;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin-bottom: 0;
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] {
  display: block;
  padding: 6px 0;
}

/* First-level rows read as ordinary menu rows. */
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a.dropdown-item,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > a.dropdown-submenu {
  padding: 9px 34px 9px 22px;
  margin-bottom: 0;
  border-bottom: 0;
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li:hover > a {
  color: var(--sd-red) !important;
  background-color: var(--sd-gray-100) !important;
}

/* Chevron marks the rows that open a flyout. */
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li:has(> .collapse) > a::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  color: var(--sd-text-muted);
}

/* The flyout itself. */
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > .collapse {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 100%;
  top: -7px;
  min-width: 220px;
  padding: 7px 0;
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-red);
  box-shadow: 0 18px 44px rgba(17, 19, 22, 0.14);
  z-index: 1200;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li:hover > .collapse,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li:focus-within > .collapse {
  visibility: visible;
  opacity: 1;
}

/* Flip the flyout to the left when the column sits too far right to fit one. */
@media (max-width: 1100px) {
  #_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li > .collapse {
    left: auto;
    right: 100%;
  }
}

/* A panel that owns flyouts must not clip them, so no scroll container here. */
#_desktop_top_menu .popover.sub-menu.js-sub-menu:has([data-depth="2"]) {
  width: max-content;
  min-width: 240px;
  max-width: none;
  max-height: none;
  overflow: visible;
}

/* Third-level links: quieter than the row that opens them. */
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] > li {
  display: block;
  float: none;
  width: auto;
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] > li > a,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] > li > a.dropdown-item {
  display: block;
  padding: 6px 22px;
  font-family: var(--font-body, inherit);
  font-weight: 400;
  font-size: 0.8125rem;   /* 13px */
  letter-spacing: 0;
  text-transform: none;
  color: var(--sd-text-muted) !important;
  text-decoration: none;
  white-space: nowrap;
  background: none !important;
  transition: color var(--t-fast), background-color var(--t-fast);
}

#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] > li > a:hover,
#_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] > li > a:focus-visible {
  color: var(--sd-red) !important;
  background-color: var(--sd-gray-100) !important;
}

/* ============================================================
   11b. SEARCH AUTOCOMPLETE — above the sticky header
   ============================================================
   jQuery UI appends .ui-autocomplete to <body> and positions it at the input's bottom
   edge with z-index 999. The header is sticky at z-index 1050 and extends ~15px below
   the field, so it painted over the top of the list and clipped the first result.
   Raising the dropdown above the header fixes the clipping; the small offset keeps it
   from starting flush against the field. */
/* Matching `.ui-autocomplete.ui-front` from theme.css, which sets the 999 and would
   otherwise out-specify a plainer selector. */
#header .ui-autocomplete,
body > .ui-autocomplete,
.ui-autocomplete.ui-front {
  z-index: 1100;
  margin-top: 6px;
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-red);
  box-shadow: 0 18px 44px rgba(17, 19, 22, 0.14);
  background: var(--sd-white);
}

/* The magnifier inside the open field submits the search (see sd-header.js), so it has
   to look like something you can click. */
#header #search_widget form .material-icons.search {
  cursor: pointer;
  transition: color var(--t-fast);
}

#header #search_widget form .material-icons.search:hover,
#header #search_widget form .material-icons.search:focus-visible {
  color: var(--sd-red) !important;
}

/* ============================================================
   QUICK INQUIRY — "Rychlá poptávka" pill in the ink bar, left of the
   locale chips. On phones it takes the empty left half of the bar
   (the tagline is hidden there).
   ============================================================ */
#header nav.header-nav .sd-quick {
  display: flex;
  align-items: center;
  height: 38px;
}
#header nav.header-nav .sd-quick__cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--sd-red);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: filter var(--t-fast);
}
#header nav.header-nav .sd-quick__cta:hover,
#header nav.header-nav .sd-quick__cta:focus-visible { filter: brightness(1.12); }

@media (max-width: 991px) {
  #header nav.header-nav .sd-utility-tagline { display: none !important; }
  #header nav.header-nav .sd-utility-right { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 767px) {
  #header nav.header-nav .sd-utility-right { padding-inline: 6px 2px; gap: 8px; }
}
@media (max-width: 575px) {
  #header nav.header-nav .sd-quick__cta { padding: 4px 9px; font-size: 11px; letter-spacing: 0.8px; }
}

/* ---- _featured.css ---- */
/* ============================================================
   _featured.css — CSG / Senza
   Owns: section.featured-products  AND  .product-miniature card
   (card is shared: category pages, new/best-sellers blocks, etc.)

   Load order: after _legacy.css → overrides decisively.
   Uses design tokens from _tokens.css — never hardcode brand values.
   ============================================================ */


/* ============================================================
   1. FEATURED-PRODUCTS SECTION WRAPPER
   ============================================================ */

/* body#product excluded: the PDP "related products" band is a full-bleed
   (100vw) grey section with its own fixed padding, defined as the single
   source of truth in _product.css (~body#product .featured-products). Without
   this exclusion two rules would both compute padding for the same box edges
   (this generic rem/vw-based padding-block plus the PDP's fixed px padding) —
   harmless by spec (physical wins by specificity) but confusing to maintain
   and the cause of a previously reported "band is too tall" regression. */
body:not(#product) section.featured-products {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--sd-gray-50);
  /* ensure full-width band even inside PS wrappers */
  position: relative;
}

/* ── Section head: title (left, red underline) + "all products" link (right) ──
   Matches preview_1 .sec-head. */
section.featured-products .sd-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(16px, 2.5vw, 28px);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* Same body#product exclusion as above — PDP heading typography/spacing is
   owned exclusively by _product.css. */
body:not(#product) section.featured-products .products-section-title,
body:not(#product) section.featured-products h2.products-section-title {
  /* Reset legacy left-align / color overrides */
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 1px;
  text-align: left;
  color: var(--sd-navy);     /* deep navy — brand authority */
  text-transform: uppercase;
  /* Space below the title + its red underline before the product cards
     (the related-products title on the PDP had no bottom gap). */
  margin: 0 0 28px;
  line-height: 1.05;
  display: block;
  position: relative;
}

/* Red accent underline bar (left-aligned under the title) */
section.featured-products .products-section-title::after,
section.featured-products h2.products-section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  background: var(--sd-red);
  border-radius: var(--radius-pill);
  margin: 12px 0 0;
}

/* "Všechny produkty →" link — red, uppercase, Oswald */
section.featured-products .sd-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--sd-red);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast) ease-out;
}

section.featured-products .sd-sec-link:hover,
section.featured-products .sd-sec-link:focus-visible {
  border-bottom-color: var(--sd-red);
  color: var(--sd-red);
}

section.featured-products .sd-sec-link .material-icons {
  font-size: 1.1em;
}

/* ── Product grid row ── */
section.featured-products .products.row {
  /* Keep the grid the same width as the section head so they align */
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  /* Consistent gutter between cards */
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  margin-right: calc(-1 * var(--bs-gutter-x) / 2);
  margin-left:  calc(-1 * var(--bs-gutter-x) / 2);
  row-gap: var(--bs-gutter-y);
  /* Center items within the row so partial rows (e.g. 2 items in a 4-col grid)
     distribute evenly rather than packing to the left. Full rows (4×25% = 100%
     or 3×33% = 100%) are unaffected — no remaining space means no shift. */
  justify-content: center !important;
}

/* Override legacy inline grid spacing */
section.featured-products .products.row .js-product.product {
  padding-right: calc(var(--bs-gutter-x) / 2);
  padding-left:  calc(var(--bs-gutter-x) / 2);
  /* top-margin reset — _legacy adds margin-top 1.7rem via #js-product-list;
     inside featured-products that rule doesn't apply, but guard it anyway */
  margin-top: 0 !important;
}

/* ── "Všechny produkty" CTA area ── */
section.featured-products .featured-products-parent {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0;
}

section.featured-products .featured-products-parent a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  width: auto;
  height: auto;
  padding: 0.85em 2.2em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sd-white);
  background: var(--sd-red);
  border: 2px solid var(--sd-red);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

section.featured-products .featured-products-parent a:hover,
section.featured-products .featured-products-parent a:focus-visible {
  background: var(--sd-red-dark);
  border-color: var(--sd-red-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

/* ── Alternate "all-product-link" variant (4+ products path) ── */
section.featured-products .featured-products-parent2 a.all-product-link,
section.featured-products a.all-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  letter-spacing: 1px;
  color: var(--sd-red) !important;
  text-decoration: none;
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}

section.featured-products .featured-products-parent2 a.all-product-link:hover,
section.featured-products a.all-product-link:hover {
  border-bottom-color: var(--sd-red);
}


/* ============================================================
   2. PRODUCT MINIATURE CARD
   Self-contained: applies wherever .product-miniature appears.
   ============================================================ */

/* ── Card shell ── */
.product-miniature {
  /* Reset legacy shadow — we own this now */
  box-shadow: none !important;
  background: transparent;
  /* Stretch card to fill its column so rows are equal height */
  height: 100%;
}

article.product-miniature.js-product-miniature {
  display: flex;
  flex-direction: column;
  /* Fill the column exactly, rather than shrink-to-fit + center (see the
     removed centering hack below): a flex item with no explicit width sizes
     itself to its own max-content width, and that is NOT the same for every
     card in a row — a two-line title like "Kávový servis - Cube Espresso
     Blue" has a wider unwrapped max-content than "Cube - Stojánek na
     vajíčko", so that card alone rendered 21px wider than its neighbours
     (262px vs 283px at 1440px, measured). Because the image box uses
     `aspect-ratio: 1/1` at 100% width, that 21px became 21px of extra image
     height too, so the title on the wider card started noticeably lower than
     on the others — the "title not aligned to top" symptom, distinct from
     (and upstream of) the price-alignment fix, which only reserves height
     inside a title box that was already the wrong size.
     width: 100% + min-width: 0 makes every card in a row identically sized
     regardless of its title length, which is what the aspect-ratio image and
     the top-aligned title both need to actually line up. */
  width: 100%;
  min-width: 0;
  height: 100%;
  background: var(--sd-white);
  border-radius: var(--radius);
  border: 1px solid var(--sd-gray-200);            /* #E4E8EB hairline frame */
  box-shadow: none !important;
  overflow: hidden;          /* clip image zoom */
  transition: transform var(--t), box-shadow var(--t), border-color var(--t-fast);
  /* Reset parent theme's weird flex behavior */
  justify-content: flex-start;
}

article.product-miniature.js-product-miniature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow) !important;
  border-color: transparent;
}

/* Also target the outer wrapper that PS wraps the article in */
.js-product.product {
  display: flex;   /* so article can stretch to 100% height */
}

/* Centering the card within its column used to live here (justify-content:
   center + margin-inline:auto), to paper over the article's old shrink-to-fit
   width. Now that the article is width:100% (above), it already fills the
   column exactly and centering it is a no-op — removed rather than left as
   dead rules that the next reader has to prove inert. */

/* ── Image area (thumbnail-top) ── */
.product-miniature .thumbnail-top {
  position: relative;
  overflow: hidden;
  /* Consistent 1:1 image canvas regardless of source dimensions */
  aspect-ratio: 1 / 1;
  background: var(--sd-gray-50);
  flex-shrink: 0;
}

/* product-thumbnail link fills the box */
.product-miniature .thumbnail-top > a.product-thumbnail,
.product-miniature .thumbnail-top > a.thumbnail.product-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
}

/* img: object-fit cover — edge-to-edge fill per preview_2 spec */
.product-miniature .thumbnail-top img,
.product-miniature .thumbnail-container .product-thumbnail img {
  display: block;
  width: 100% !important;     /* override legacy 300px fixed width */
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--t);
}

.product-miniature:hover .thumbnail-top img,
.product-miniature:hover .thumbnail-container .product-thumbnail img {
  transform: scale(1.06);
}

/* ── Product flags (New / Sale badges) ── */
ul.product-flags.js-product-flags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* flags shrink to text width, not stretch across container */
  width: fit-content !important;  /* override theme.css: .product-flags { width:100% } */
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.product-flags li.product-flag:not(.on-demand) {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sd-white) !important;
  background: var(--sd-red) !important;  /* override theme.css default orange */
  border-radius: 2px !important;          /* square badge per preview (not pill) */
  width: auto !important;                 /* override theme.css: li.on-sale { width:100% } */
  min-height: 0 !important;              /* override theme.css: .product-miniature .product-flags li.product-flag { min-height:1.875rem } */
  min-width: 0 !important;               /* override theme.css: .product-miniature .product-flags li.product-flag { min-width:3.125rem } */
  line-height: 1.5;
}

/* All badge types: red square — preview shows both Top and Novinka in red */
ul.product-flags li.new,
ul.product-flags li.on-sale,
ul.product-flags li.discount {
  position: static !important;  /* reset legacy absolute positioning on li.new */
  right: auto !important;
  margin: 0 !important;
  background: var(--sd-red) !important;
  border-radius: 2px !important;
}

ul.product-flags li.product-flag.on-demand {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sd-white) !important;
  position: static !important;
  right: auto !important;
  margin: 0 !important;
  background-color: #1E5FAA !important;
  background: #1E5FAA !important;
  border-radius: 2px !important;
  width: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1.5;
}

/* ── Hover overlay bar (highlighted-informations) ──
   RETIRED: this bar existed to hold "Rychlý náhled", which has been removed
   from the card. The variant links that share it are display:none on cards
   (see below), so the bar is now empty — showing it would just draw a dark
   strip across the bottom of every card on hover. The rules that follow are
   kept because they document the parent theme's hover-reposition fights, and
   are harmless while the bar is hidden. */
.product-miniature .highlighted-informations {
  display: none !important;
}
.product-miniature .highlighted-informations.sd-legacy-bar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  /* !important on top/bottom/height: the parent classic theme repositions this
     bar ON HOVER via `.product-miniature .thumbnail-container:hover
     .highlighted-informations { top: calc(100% - 4.4rem) }` (theme.css,
     specificity 0,3,0) which outranks our 0,2,0 rule — so on a REAL hover the
     bar slid UP ~70px and the swatches (bottom:50px) ended up INSIDE it. (This
     only shows on genuine :hover, not when opacity is forced for a screenshot.)
     Pinning top/bottom/height with !important keeps the bar flush to the
     bottom at 40px in every state, so the dots always clear it. */
  bottom: 0 !important;
  top: auto !important;
  left: 0;
  width: 100%;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  overflow: hidden;
  padding: 0 16px;
  background: rgba(21, 26, 32, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  /* z-index above the image */
  z-index: 4;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
/* Also neutralise the parent theme's hover-reposition + the productcomments
   has-reviews hover height bumps, so the bar geometry is identical on hover. */
.product-miniature .thumbnail-container:hover .highlighted-informations,
.product-miniature .thumbnail-container:focus .highlighted-informations,
.product-miniature .thumbnail-container.has-reviews:hover .highlighted-informations,
.product-miniature .thumbnail-container.has-reviews:focus .highlighted-informations {
  top: auto !important;
  bottom: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
}

/* Reveal on card hover */
.product-miniature:hover .highlighted-informations,
article.product-miniature.js-product-miniature:hover .highlighted-informations {
  opacity: 1;
  transform: translateY(0);
}

/* The quick-view link itself */
.product-miniature .highlighted-informations .quick-view.js-quick-view {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--sd-white) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.product-miniature .highlighted-informations .quick-view.js-quick-view .material-icons {
  font-size: 1.1em;
}

/* Hide PrestaShop's default SQUARE colour swatches in the card/hover overlay.
   The redesign shows round dots (.sd-swatches) instead. Scoped to
   .product-miniature so the product page colour selector (.product-variants)
   is unaffected — this is card-display only. */
.product-miniature .variant-links,
.product-miniature .highlighted-informations .variant-links,
.product-miniature .highlighted-informations > .variant-links {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ── Product description (below image) ── */
.product-miniature .product-description {
  display: flex;
  flex-direction: column;
  flex: 1;           /* grow to push price+button down */
  padding: 1rem 1.125rem 1.25rem;
  gap: 0.5rem;
  width: 100% !important;   /* override legacy 100% + quirks */
}

/* ── Product title ──
   The card reserves --title-lines worth of height whether the name needs it or
   not, so a two-line name cannot push the price row down: every card in a row
   has its title box, and therefore its price, at the same y. --title-lines
   drives both the clamp and the reserved height, so the two can never drift
   apart (raise it in a media query and the box grows to match).
   Names are NOT truncated in the template any more — the clamp is the single
   place a name gets shortened, which is why the ellipsis now only appears when
   the name genuinely overflows both lines rather than at a 40-character mark. */
.product-miniature .product-title {
  --title-lines: 2;
  --title-leading: 1.35;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: var(--title-leading);
  min-height: calc(var(--title-lines) * var(--title-leading) * 1em);
  margin: 0;
  text-align: left !important;
}

.product-miniature .product-title a {
  color: var(--sd-text) !important;
  text-decoration: none;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-transform: none !important;       /* override legacy uppercase */
  display: -webkit-box;
  -webkit-line-clamp: var(--title-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Supplier names arrive with long unbroken tokens (SKUs, "600ml/Hazelnut");
     without this they widen the card instead of wrapping. */
  overflow-wrap: anywhere;
  transition: color var(--t-fast);
}

.product-miniature .product-title a:hover {
  color: var(--sd-red) !important;
}

/* ── Price + shipping + CTA row ── */
.product-miniature .product-price-and-shipping {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: auto;   /* push to bottom of description flex column */
}

/* The margin-top:auto above never applied: _legacy.css carries the same
   declaration as `margin-top: 20px` on a four-class selector, which outranks a
   two-class one whatever the file order. Restate it at matching specificity so
   the price really does sit at the bottom of the card — second line of defence
   behind the reserved title height, for any card whose upper content still ends
   up an odd height. */
.product-miniature .thumbnail-container .product-description .product-price-and-shipping {
  margin-top: auto;
}

/* Current price */
.product-miniature .product-price-and-shipping .price {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sd-text);
  text-align: left !important;
  display: inline-block;
  width: auto !important;    /* override legacy 55% */
  line-height: 1;
}

.product-miniature .product-price-and-shipping .sd-tax-label {
  display: block;
  margin-top: 4px;
  margin-left: 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--sd-text-muted);
  letter-spacing: 0;
  text-transform: none;
}

/* Sale / discounted price → red */
.product-miniature .product-price-and-shipping .has-discount .price,
.product-miniature.has-discount .product-price-and-shipping .price {
  color: var(--sd-red);
}

/* Crossed-out regular price */
.product-miniature .regular-price {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--sd-text-muted);
  text-decoration: line-through;
}

/* Discount badge inline */
.product-miniature .discount-percentage,
.product-miniature .discount-amount {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sd-white);
  background: var(--sd-red);
  border-radius: var(--radius-pill);
  padding: 0.15em 0.55em;
  display: inline-block !important;  /* override legacy display:none */
}

/* ── "Detail" CTA button ── */
a.product-detail-link {
  /* Full reset of legacy sizing */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;           /* override legacy 145px / 35% */
  height: auto !important;          /* override legacy 50px */
  padding: 0.55em 1.3em !important; /* comfortable tap target ≥44px tall */
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sd-white) !important;
  background: var(--sd-red) !important;
  border-radius: var(--radius-pill) !important;
  border: none;
  text-decoration: none !important;
  box-shadow: none;
  margin-left: auto;    /* push to right side of price row */
  flex-shrink: 0;
  transition:
    background var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
}

a.product-detail-link:hover,
a.product-detail-link:focus-visible {
  background: var(--sd-red-dark) !important;
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
  color: var(--sd-white) !important;
}

a.product-detail-link span {
  font: inherit;   /* inherit the link's font */
}

/* ── Square "+" add button (prototype .add) ──
   Overrides the pill detail-link styling above for the .sd-add variant. */
a.product-detail-link.sd-add {
  width: 38px !important;
  min-width: 38px;
  height: 38px !important;
  min-height: 38px;
  padding: 0 !important;
  border-radius: 3px !important;
  background: var(--sd-navy) !important;
  font-family: var(--font-display);
  font-size: 1.4rem !important;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

a.product-detail-link.sd-add:hover,
a.product-detail-link.sd-add:focus-visible {
  background: var(--sd-red) !important;
  transform: translateY(-1px);
}

a.product-detail-link.sd-add span {
  font-size: 1.4rem;
  line-height: 1;
  margin: 0;
}

/* ── Hover colour swatches over the image (prototype .swatches/.sw) ── */
.product-miniature .thumbnail-top { position: relative; }

.product-miniature .sd-swatches {
  /* !important on the geometry: a legacy/parent-theme rule was overriding
     `bottom` in some cascades (combined CSS / different load order), which let
     the dots collapse down into the 40px quick-view bar. These must win so the
     dots always sit ABOVE the bar. */
  position: absolute !important;
  left: 12px !important;
  /* Was 50px to clear the 40px quick-view bar; that bar is gone, so the dots
     sit at the foot of the image. */
  bottom: 12px !important;
  top: auto !important;
  z-index: 6 !important;
  display: flex;
  gap: 7px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-fast) ease-out, transform var(--t-fast) ease-out;
  pointer-events: none;
}

article.product-miniature.js-product-miniature:hover .sd-swatches {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.product-miniature .sd-swatches .sd-sw {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  background-color: var(--sd-navy-2);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: block;
  flex: 0 0 auto;
}

/* When the swatches show, lift the quick-view bar so they don't overlap */
article.product-miniature.js-product-miniature:hover .highlighted-informations {
  /* quick-view bar sits along the bottom; swatches sit above-left of it */
}

/* ── Division-tag row (sdstorefront displaySdDivisionTag hook) ──
   The hook returns dot+label markup (Phase 5) or empty (now → no broken
   space). Style defensively so any returned wrapper renders correctly. */
.product-miniature .product-description .sd-divtags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 2px;
}

.product-miniature .product-description .sd-divtag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--sd-text-muted);
}

.product-miniature .product-description .sd-divtag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--sd-red);
}

/* Division accent colors inside the card/related-product miniatures.
   These selectors must out-specify the generic .dot rule above (which
   defaults to --sd-red) so the gold/red division dots render on cards
   and in the related-products carousel, matching preview_3. */
.product-miniature .product-description .sd-divtag.is-defence .dot {
  background: #C0392B;
}
.product-miniature .product-description .sd-divtag.is-ammo .dot {
  background: #B8860B;
}
.product-miniature .product-description .sd-divtag.is-default .dot {
  background: var(--sd-red);
}

.product-miniature .product-description a.sd-divtag {
  text-decoration: none;
  color: inherit;
}

.product-miniature .product-description a.sd-divtag:hover {
  color: var(--sd-ink);
  text-decoration: underline;
}

/* Prevent product price block from stretching the detail-link column */
.product-miniature .thumbnail-container .product-description .product-price-and-shipping .product-detail-link {
  display: inline-flex !important;
  width: auto !important;
}

/* ── thumbnail-container resets ── */
/* The parent theme positions .thumbnail-container as the direct flex child;
   our child theme rearranges so the article itself is the card.
   Clear legacy height/margin on the container so it doesn't fight our flex. */
.product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100% !important;
  margin-bottom: 0 !important;       /* override legacy 15px */
  overflow: visible;
  position: static;
}


/* ============================================================
   3. RESPONSIVE OVERRIDES
   Column layout is handled by Bootstrap col-* classes already
   present in the markup. These rules keep gaps, font sizes,
   and tap targets correct at every breakpoint.
   ============================================================ */

/* ── Mobile (< 576px): 1 column ── */
@media (max-width: 575.98px) {
  section.featured-products {
    padding-block: 2.5rem 2rem;
  }

  section.featured-products .products.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  /* Section head: title on its own full-width line, the "Všechny produkty"
     link underneath. Side by side, the link's fixed width squeezed the title
     into an ellipsis ("OBLÍBENÉ PRODU…"). The title rule carries the same
     body:not(#product) prefix as the base rule, or its size and margin win. */
  section.featured-products .sd-sec-head {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
    margin-bottom: 20px;
  }

  body:not(#product) section.featured-products .products-section-title,
  body:not(#product) section.featured-products h2.products-section-title {
    font-size: clamp(1.6rem, 7.4vw, 2rem);
    white-space: normal;
    text-wrap: balance;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
  }

  section.featured-products .products-section-title::after,
  section.featured-products h2.products-section-title::after {
    margin-top: 10px;
  }

  /* 44px tall tap area; the negative margin keeps the visual rhythm tight. */
  section.featured-products .sd-sec-link {
    font-size: 0.8rem;
    min-height: 44px;
    margin-block: -10px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  /* Wider cards on narrow viewports, so a third line costs nothing. Set the
     variable, not the clamp — the reserved height follows. */
  .product-miniature .product-title {
    --title-lines: 3;
  }

  /* ── Center the WHOLE card (image included) on single-column mobile ──
     The parent theme constrains .product-miniature / .thumbnail-container
     to a fixed ~250px width, so without this they sit flush-left inside
     the full-width Bootstrap column. Scoped to .featured-products so it
     covers BOTH homepage blocks (Oblíbené produkty = ps_featuredproducts
     and Oblečení = ps_featuredproducts_2 clone) and never touches the
     multi-column desktop grid. */

  /* Center the column's inline/inline-block content (image anchor) */
  section.featured-products .products.row .js-product.product {
    text-align: center;
    justify-content: center;   /* the column is display:flex → center the card */
  }

  /* Center the card itself within its full-width column */
  section.featured-products article.product-miniature.js-product-miniature {
    margin-inline: auto;
  }

  /* Center the thumbnail container + image area */
  section.featured-products .product-miniature .thumbnail-container,
  section.featured-products .product-miniature .thumbnail-top {
    margin-inline: auto;
  }

  /* Center the product image / thumbnail link inside its box */
  section.featured-products .product-miniature a.thumbnail.product-thumbnail,
  section.featured-products .product-miniature .thumbnail-top > a.product-thumbnail {
    display: block;
    margin-inline: auto;
  }

  section.featured-products .product-miniature .thumbnail-top img,
  section.featured-products .product-miniature .thumbnail-container .product-thumbnail img {
    margin-inline: auto;
  }

  .page-index .product-miniature .product,
  .page-search .product-miniature .product {
    min-width: 0;
    width: 100%;
  }

  ul.product-flags.js-product-flags {
    top: 12px;
    left: 12px;
  }

  /* Center all description content on single-column mobile so the
     centered product image, title, price and CTA read as one column */
  .product-miniature .product-description {
    align-items: center;
    text-align: center;
  }

  .product-miniature .product-title {
    text-align: center !important;
  }

  /* Cards are stacked one per row here, so there is no neighbour to line the
     price up with — holding three lines open would just leave a gap under a
     short name. The clamp stays at 3; only the reservation goes. */
  @media (max-width: 430px) {
    .product-miniature .product-title {
      min-height: 0;
    }
  }

  .product-miniature .product-price-and-shipping {
    flex-direction: column;
    align-items: center;       /* center price + button stack */
    text-align: center;
  }

  .product-miniature .product-price-and-shipping .price {
    text-align: center !important;
  }

  /* Center the pill CTA as a fit-width block instead of full bleed */
  a.product-detail-link {
    display: block !important;
    width: -webkit-fit-content !important;
    width: fit-content !important;
    margin-inline: auto !important;
    margin-left: auto !important;
  }
}

/* ── Tablet (576px – 991px): 2 columns ── */
@media (min-width: 576px) and (max-width: 991.98px) {
  section.featured-products .products.row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
  }

  .product-miniature .product-title {
    font-size: 0.9rem;
  }
}

/* ── Desktop (≥992px): 3 columns (lg) / 4 columns (xl) ── */
@media (min-width: 992px) {
  section.featured-products .products.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
}

/* ── Extra-large (≥1200px): 4 columns via col-xl-3 ── */
@media (min-width: 1200px) {
  section.featured-products .products.row {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
  }

  .product-miniature .product-title {
    font-size: 1rem;
  }
}


/* ============================================================
   4. CATEGORY / OTHER LISTING PAGES
   The .product-miniature card applies on category pages too
   (col-xs-12 col-sm-6 col-lg-4 etc.). Only add tweaks that
   are specific to non-featured contexts here.
   ============================================================ */

/* On category listing the grid row has a different parent;
   ensure same card gutter behaviour */
#js-product-list .products .js-product {
  display: flex;     /* allow article to stretch */
}

/* Category page margin-top reset from _legacy */
#js-product-list .products .js-product {
  margin-top: 0 !important;
  padding-bottom: calc(var(--bs-gutter-y, 1.5rem));
}


/* ============================================================
   5. HOMEPAGE OBLÍBENÉ — CAROUSEL
   Scoped to .sd-featured-carousel so Oblečení / related blocks
   keep the static grid.
   ============================================================ */

section.featured-products.sd-featured-carousel {
  --sd-featured-gap: 24px;
  --sd-featured-visible: 4;
}

/* Full-width track (same card width as Oblečení). Arrows overlay
   the first/last product images — they must not steal flex space. */
section.sd-featured-carousel .sd-featured-carousel__shell {
  position: relative;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  container-type: inline-size;
  container-name: sd-featured;
}

section.sd-featured-carousel .sd-featured-carousel__viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

section.sd-featured-carousel .sd-featured-carousel__track.products {
  display: flex;
  flex-wrap: nowrap;
  /* The track carries .products, which picks up justify-content: center from
     the grid rules. Centred, an overflowing row starts off to the LEFT of the
     viewport — offsets were shifted by half the excess (half-cut cards, an
     empty slide at the end) and in scroll mode the first cards were
     unreachable. Slides always start at the left edge. */
  justify-content: flex-start !important;
  gap: var(--sd-featured-gap);
  margin: 0;
  padding: 4px 2px 8px; /* room for card hover lift + shadow */
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

section.sd-featured-carousel .sd-featured-carousel__slide {
  flex: 0 0 calc(
    (100% - (var(--sd-featured-visible) - 1) * var(--sd-featured-gap))
    / var(--sd-featured-visible)
  );
  max-width: calc(
    (100% - (var(--sd-featured-visible) - 1) * var(--sd-featured-gap))
    / var(--sd-featured-visible)
  );
  min-width: 0;
  display: flex;
}

section.sd-featured-carousel .sd-featured-carousel__slide > .js-product.product {
  width: 100%;
  min-width: 0;
  display: flex;
  margin: 0;
  padding: 0;
}

/* Navy square nav — same language as the card "+" ATC.
   Absolutely over first/last card image (1:1 thumb), inset from edges. */
section.sd-featured-carousel .sd-featured-carousel__nav {
  position: absolute;
  /* Vertical center of the square product image */
  top: calc(
    (
      (100cqi - (var(--sd-featured-visible) - 1) * var(--sd-featured-gap))
      / var(--sd-featured-visible)
      + 8px
    ) / 2
  );
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 3px;
  background: var(--sd-navy);
  color: var(--sd-white);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  z-index: 5;
  box-shadow: 0 2px 10px rgba(21, 26, 32, 0.28);
}

section.sd-featured-carousel .sd-featured-carousel__nav--prev {
  left: 10px;
}

section.sd-featured-carousel .sd-featured-carousel__nav--next {
  right: 10px;
}

section.sd-featured-carousel .sd-featured-carousel__nav:hover,
section.sd-featured-carousel .sd-featured-carousel__nav:focus-visible {
  background: var(--sd-red);
  outline: none;
  box-shadow: var(--shadow-red);
}

section.sd-featured-carousel .sd-featured-carousel__nav:active {
  transform: translateY(calc(-50% + 1px));
}

section.sd-featured-carousel .sd-featured-carousel__nav .material-icons {
  font-size: 22px;
  line-height: 1;
}

/* Fallback when container query units are unavailable */
@supports not (top: 1cqi) {
  section.sd-featured-carousel .sd-featured-carousel__nav {
    top: 28%;
  }
}

@media (max-width: 1199.98px) {
  section.featured-products.sd-featured-carousel {
    --sd-featured-visible: 3;
  }
}

@media (max-width: 991.98px) {
  section.featured-products.sd-featured-carousel {
    --sd-featured-visible: 2;
    --sd-featured-gap: 16px;
  }
}

@media (max-width: 575.98px) {
  /* 1.15 visible: the next card peeks in at the right edge, which is the
     cue that the row swipes. */
  section.featured-products.sd-featured-carousel {
    --sd-featured-visible: 1.15;
    --sd-featured-gap: 12px;
  }

  /* Native scroll-snap mode (sd-featured-carousel.js adds .is-native). The
     viewport scrolls; the track is a plain flex row with no transform. */
  section.sd-featured-carousel.is-native .sd-featured-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  section.sd-featured-carousel.is-native .sd-featured-carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  section.sd-featured-carousel.is-native .sd-featured-carousel__track.products {
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  section.sd-featured-carousel.is-native .sd-featured-carousel__slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* At either end the arrow fades out rather than looping back. */
  section.sd-featured-carousel .sd-featured-carousel__nav:disabled {
    opacity: 0;
    pointer-events: none;
  }

  section.sd-featured-carousel .sd-featured-carousel__nav {
    width: 36px;
    height: 36px;
  }

  section.sd-featured-carousel .sd-featured-carousel__nav--prev {
    left: 6px;
  }

  section.sd-featured-carousel .sd-featured-carousel__nav--next {
    right: 6px;
  }

  section.sd-featured-carousel .sd-featured-carousel__nav .material-icons {
    font-size: 20px;
  }

  /* Single-card mobile: keep left-aligned shop card (not centered stack) */
  section.sd-featured-carousel .sd-featured-carousel__slide > .js-product.product {
    text-align: left;
    justify-content: flex-start;
  }

  section.sd-featured-carousel article.product-miniature.js-product-miniature {
    margin-inline: 0;
  }

  section.sd-featured-carousel .product-miniature .product-description {
    align-items: flex-start;
    text-align: left;
  }

  section.sd-featured-carousel .product-miniature .product-title {
    text-align: left !important;
  }

  section.sd-featured-carousel .product-miniature .product-price-and-shipping {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

/* ============================================================
   6. REDUCED MOTION — honour user system preference
   (Tokens already handle this globally for transitions, but
   the zoom/lift need explicit opt-out too.)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  article.product-miniature.js-product-miniature,
  .product-miniature .thumbnail-top img,
  a.product-detail-link,
  .product-miniature .highlighted-informations,
  section.featured-products .featured-products-parent a {
    transition: none !important;
    transform: none !important;
  }

  section.sd-featured-carousel .sd-featured-carousel__track.products {
    transition: none !important;
  }
}

/* ── Homepage carousels: tighter vertical rhythm ──
   Three carousels stack on the homepage; the generic band padding (up to 5.5rem
   top AND bottom) plus the doubled title/head margins left ~180px between them
   and a large gap under each title. Halve both. */
body:not(#product) section.featured-products.sd-featured-carousel {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) 0;
}
body:not(#product) section.featured-products.sd-featured-carousel .products-section-title,
body:not(#product) section.featured-products.sd-featured-carousel h2.products-section-title {
  margin-bottom: 0;
}
section.featured-products.sd-featured-carousel .sd-sec-head {
  margin-bottom: clamp(14px, 2vw, 20px);
}
@media (max-width: 575.98px) {
  body:not(#product) section.featured-products.sd-featured-carousel {
    padding-block: 1.5rem 0;
  }
}

/* Last homepage carousel: a little air above the red Novinky strip. */
body:not(#product) section.featured-products.sd-featured-carousel:has(~ .sd-strip) {
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
body:not(#product) section.featured-products.sd-featured-carousel:has(~ .sd-featured-carousel) {
  padding-bottom: 0;
}

/* ---- _category.css ---- */
/* ============================================================
   CSG / Senza — Category Page Layout
   _category.css
   Owned by: category-obleceni feature branch
   Loads AFTER _legacy.css → overrides are decisive.
   Tokens live in _tokens.css — all vars resolved at :root.

   SECTIONS:
     1. Page-level wrapper
     2. Category hero header (#js-product-list-header / .block-category)
     3. Subcategories strip (#subcategories)
     4. Sort / count toolbar (#js-product-list-top)
     5. Active filters bar
     6. Products grid container (#js-product-list / .products.row)
     7. Sidebar category navigation (#left-column .block-categories)
     8. Pagination
     9. Responsive overrides (mobile-first order)
   ============================================================ */


/* ============================================================
   1. PAGE-LEVEL WRAPPER
   ============================================================ */

/* preview_2: gray page surface behind white filter panel + product cards */
body.sd-product-listing {
  background-color: var(--sd-surface);
}

/* Breathing room below header/breadcrumb, above footer */
#wrapper {
  padding-top: 0;
}

/* Breathing room below header/breadcrumb; keep listing tight above footer */
body.sd-product-listing #wrapper > .container > .row {
  padding-top: 38px;
  padding-bottom: 8px;
}

body.sd-product-listing #js-product-list-header:has(.block-category) {
  margin-bottom: 0;
}

/* Main content area: increase gap between sidebar and product grid */
#left-column {
  padding-right: 0;
  padding-left: 0;
}

/* Product column — no extra inset; .container gutter defines the shell */
#content-wrapper.left-column {
  padding-left: 0;
  padding-right: 0;
}

/* preview_2 .lgrid — 250px sidebar + 36px gap + fluid products */
@media (min-width: 992px) {
  body.sd-product-listing #wrapper > .container > .row {
    display: grid !important;
    grid-template-columns: 250px 1fr;
    gap: 36px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.sd-product-listing #wrapper > .container > .row > #left-column,
  body.sd-product-listing #wrapper > .container > .row > #content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
  }
}


/* ============================================================
   2. CATEGORY HERO HEADER
   Targets: #js-product-list-header > .block-category.card.card-block
   ============================================================ */

/* The category header now lives in the full-width `content_above_columns`
   band (above the left-column / products row) — see layout-left-column.tpl.
   #js-product-list-header is its wrapper inside .container. We full-bleed the
   dark band edge-to-edge (prototype .cathead) while the inner text stays inside
   the .container gutters. */
#js-product-list-header {
  margin: 0 0 2rem;
  position: relative;
}
/* Full-bleed ONLY for the category dark hero (which wraps .block-category).
   Rendered outside .container (see layout-both-columns.tpl) so width:100% is
   enough — no 100vw breakout (which clipped the 8px red accent). */
#js-product-list-header:has(.block-category) {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
/* Bare page-title heading (search results etc.): align to the content
   container gutter and style as an Oswald page heading. */
h1#js-product-list-header {
  width: auto;
  max-width: var(--container);
  margin: 24px auto 1.5rem;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--sd-ink);
}

/* Dark CSG-ink category header (prototype .cathead). */
/* Dark CSG-ink category header (prototype .cathead). */
body.sd-product-listing #js-product-list-header .block-category.card.card-block,
body.sd-product-listing .block-category.card.card-block {
  background: var(--sd-ink) !important;
  color: #fff;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  /* Full-bleed band; vertical rhythm lives on .sd-cathead-inner (preview .wrap) */
  padding: 0 !important;
  position: relative;
  overflow: visible;
  background-image: none !important;
  margin-bottom: 0;
}

/* preview_2 .cathead .wrap — padding 46px 32px 40px */
body.sd-product-listing #js-product-list-header .sd-cathead-inner,
body.sd-product-listing .sd-cathead-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 46px var(--gutter) 40px;
  box-sizing: border-box;
}

/* 8px red accent bar on viewport left edge (preview_2 .cathead:before). */
#js-product-list-header:has(.block-category)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--sd-red);
  z-index: 1;
}

/* Legacy selector kept for safety if header is rendered without :has support */
#js-product-list-header .block-category.card.card-block::before,
.block-category.card.card-block::before {
  content: none;
}

/* "Kolekce" eyebrow — preview_2 .eyebrow */
body.sd-product-listing #js-product-list-header .block-category .eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sd-red);
  margin: 0;
}

/* Category name — preview_2 .cathead h1 */
body.sd-product-listing #js-product-list-header .block-category .h1,
body.sd-product-listing #js-product-list-header .block-category h1 {
  font-family: var(--font-display) !important;
  font-size: 46px !important;
  font-weight: 700 !important;
  color: var(--sd-white) !important;
  letter-spacing: normal;
  line-height: 1.6;
  margin: 10px 0 12px !important;
  text-transform: uppercase;
}

/* Category description — preview_2 .cathead p */
body.sd-product-listing #js-product-list-header #category-description,
body.sd-product-listing .sd-cathead-inner #category-description {
  color: #c4c7cc !important;
  font-size: 1rem;
  line-height: 1.6;
  /* At most about as wide as the chip row below (~90 characters a line), so a short intro
     takes 2-3 lines instead of 4. text-wrap: balance evens the lines out, so a 2-line
     intro does not end in a short tail ("a originální design."). */
  max-width: 760px;
  text-wrap: balance;
  margin: 0 0 22px !important;
}

/* Category cover image — prototype header has no cover; hide it. */
.category-cover {
  display: none;
}

/* ---- Subcategory chips — preview_2 .subcats / .subchip ---- */
body.sd-product-listing .sd-subchips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.sd-subchips .subchip {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 8px 18px;
  color: #fff !important;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.sd-subchips .subchip:hover,
.sd-subchips .subchip.on {
  background: var(--sd-red);
  border-color: var(--sd-red);
  color: #fff !important;
}

/* Gender chips (Pohlaví): second row under the type chips, a size smaller. */
body.sd-product-listing .sd-subchips.sd-genderchips {
  margin-top: 14px;
  gap: 8px;
  align-items: center;
}

.sd-genderchips .sd-genderchips-label {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

.sd-genderchips .subchip {
  font-size: 12px;
  padding: 6px 14px;
}

/* The header chips already provide subcategory navigation, so hide both the
   legacy #subcategories card (content column) AND the #left-column
   .block-categories module card — neither appears in the prototype and they
   would otherwise duplicate the chips. */
#content-wrapper #subcategories.card.card-block,
#left-column .block-categories,
#left-column #categories {
  display: none !important;
}


/* ============================================================
   3. SUBCATEGORIES STRIP
   Targets: #subcategories.card.card-block, ul.subcategories-list
   ============================================================ */

#subcategories.card.card-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 1rem 0;
  margin-bottom: 1.5rem;
}

.subcategory-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--sd-text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Horizontal scroll chips */
ul.subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.subcategories-list > li {
  flex: 0 0 auto;
  width: clamp(100px, 18vw, 160px);
  text-align: center;
}

/* Subcategory image: round card with hover lift */
.subcategory-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--sd-gray-200);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  background: var(--sd-gray-50);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subcategory-image:hover {
  border-color: var(--sd-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.subcategory-image a.img {
  display: block;
  width: 100%;
  height: 100%;
}

.subcategory-image img.img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Already in _legacy, reinforce red + font */
.subcategory-name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sd-red) !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--t-fast);
}

.subcategory-name:hover {
  color: var(--sd-red-dark) !important;
}


/* ============================================================
   4. SORT / COUNT TOOLBAR
   Targets: #js-product-list-top.row.products-selection
            .total-products, .sort-by-row, .products-sort-order.dropdown
   ============================================================ */

#js-product-list-top.products-selection {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  background: var(--sd-gray-50);
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius-sm);
  /* Match #js-product-list grid edges — Bootstrap .row negative margins
     would otherwise pull the bar 15px wider than the product cards. */
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem;
  /* Inset content to match product card text padding (16px) */
  padding: 12px 16px;
  gap: 12px;
}

/* Product count label — left side. Reset Bootstrap col width/padding. */
.total-products {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sd-text-muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0;
}

.total-products p {
  margin: 0;
}

/* Right cluster (sort + mobile Filtry button). Reset Bootstrap col. */
#js-product-list-top.products-selection > .col-lg-7 {
  flex: 1 1 0%;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin-left: 0;
  display: flex;
  justify-content: flex-end;
}

/* Sort row holds the "Sort by:" label, the dropdown, and the Filtry button
   on one line — never let the label wrap vertically. */
.sort-by-row {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 !important;
}

/* "Sort by:" label — keep on a single line. */
.sort-by-row .sort-by {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sd-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0;
}

/* Sort dropdown — reset Bootstrap col width so it sizes to content. */
.sort-by-row .products-sort-order.dropdown {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

/* The dropdown toggle button */
.products-sort-order.dropdown .select-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sd-text);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-width: 180px;
  white-space: nowrap;
}

.products-sort-order.dropdown .select-title:hover {
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px var(--sd-red-soft);
}

.products-sort-order.dropdown .select-title .material-icons {
  font-size: 1.1rem;
  color: var(--sd-red);
  flex-shrink: 0;
  pointer-events: none;
}

/* Dropdown menu */
.products-sort-order .dropdown-menu {
  min-width: 200px;
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px 0;
  margin-top: 4px;
  background: var(--sd-white);
}

.products-sort-order .dropdown-menu .select-list {
  display: block;
  padding: 9px 16px;
  font-size: 0.84rem;
  color: var(--sd-text);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.products-sort-order .dropdown-menu .select-list:hover,
.products-sort-order .dropdown-menu .select-list.current {
  background: var(--sd-red-soft);
  color: var(--sd-red);
}

/* Filter-button wrapper col — reset Bootstrap padding/width. */
.filter-button.sd-filter-button {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0;
}

/* Mobile "Showing X–Y of Z" text */
.products-selection .showing {
  font-size: 0.78rem;
  color: var(--sd-text-muted);
}


/* ============================================================
   5. ACTIVE FILTERS BAR
   ============================================================ */

.active_filters {
  background: var(--sd-gray-50);
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.active_filters .active-filter-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 !important;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Reset classic theme list layout — keeps title + chips on one baseline */
.active_filters ul {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.active_filters ul li {
  margin: 0 !important;
  padding: 0;
}

/* Individual filter chip */
.active_filters .filter-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sd-red-soft);
  color: var(--sd-red);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--t-fast);
  margin: 0 !important;
}

.active_filters .filter-block .material-icons.close {
  font-size: 0.95rem;
  line-height: 1;
  margin: 0;
}

.active_filters .filter-block:hover {
  background: rgba(242, 32, 55, 0.2);
}


/* ============================================================
   6. PRODUCTS GRID CONTAINER
   Targets: #js-product-list > .products.row
   BOUNDARY: do NOT style .product-miniature internals
   ============================================================ */

#js-product-list {
  /* outer wrapper */
}

/* Force the prototype grid: 3 columns at desktop, neutralising the
   Bootstrap col float/padding so the grid alone governs layout. */
#js-product-list .products.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

/* Each product cell — reset Bootstrap col widths/padding/float */
#js-product-list .products.row > .js-product {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

/* preview_2 .card .info — product name + price typography on category grid */
body.sd-product-listing .product-miniature .product-title,
body.sd-product-listing .product-miniature .product-title a {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--sd-ink) !important;
  line-height: 1.35;
}

body.sd-product-listing .product-miniature .product-price-and-shipping .price {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--sd-ink) !important;
  letter-spacing: 0;
}

body.sd-product-listing .product-miniature .product-description {
  padding: 16px 16px 18px !important;
}

body.sd-product-listing .product-miniature .thumbnail-top {
  background: var(--sd-surface);
}

/* 2 columns at tablet (≤991px → 768 target) */
@media (max-width: 991px) {
  #js-product-list .products.row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column at phone (≤430px → 375 target; 430–575 stays 2-col per preview_2) */
@media (max-width: 430px) {
  #js-product-list .products.row {
    grid-template-columns: 1fr;
  }
}

/* Back-to-top (phones/tablets only — the wrapper is .hidden-md-up).
   The parent theme's `#products .up .btn-secondary` (grey #7a7a7a text, Inter,
   no uppercase) outranked the old `.up .btn-secondary` rule, which is why it
   read as grey-on-navy. The `body #js-product-list` prefix beats it without
   !important.

   It is a secondary action under the pagination, so it is centred on the same
   axis as the page numbers and drawn as an outline: it must not compete with
   the filled "Další" button right above it. 44px tall = a proper thumb target. */
body #js-product-list .up {
  text-align: center !important;
  margin-top: 8px;
  padding-bottom: 8px;
}

body #js-product-list .up .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 10px 20px;
  background: transparent;
  color: var(--sd-navy);
  /* A navy hairline, not gray-200: on the #f3f4f6 page the light border vanished. */
  border: 1.5px solid rgba(21, 26, 32, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

body #js-product-list .up .btn-secondary .material-icons {
  font-size: 20px;
  line-height: 1;
  color: inherit;
  margin: 0;
}

body #js-product-list .up .btn-secondary:hover,
body #js-product-list .up .btn-secondary:focus-visible {
  background: var(--sd-navy);
  border-color: var(--sd-navy);
  color: var(--sd-white);
}


/* ============================================================
   7. SIDEBAR CATEGORY NAVIGATION
   Targets: #left-column .block-categories
            ul.category-top-menu, ul.category-sub-menu
   ============================================================ */

#left-column .block-categories {
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

/* Block heading (module title) */
#left-column .block-categories .block-title,
#left-column .block-categories .title_block,
#left-column .block-categories h2,
#left-column .block-categories > .h5 {
  font-family: var(--font-display) !important;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sd-white) !important;
  background: var(--sd-navy);
  padding: 14px 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Top-level category list */
#left-column .block-categories ul.category-top-menu,
#left-column .block-categories > ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

/* Second-level (sub) list */
#left-column .block-categories ul.category-sub-menu {
  list-style: none;
  padding: 0 0 4px 0;
  margin: 0;
  background: var(--sd-gray-50);
  border-top: 1px solid var(--sd-gray-100);
}

/* All list items */
#left-column .block-categories li {
  margin: 0;
  border-bottom: 1px solid var(--sd-gray-100);
}

#left-column .block-categories li:last-child {
  border-bottom: none;
}

#left-column .block-categories ul.category-sub-menu li {
  border-bottom: 1px solid var(--sd-gray-100);
}

/* All anchor links in sidebar */
#left-column .block-categories a {
  display: block;
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sd-text) !important;
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--t-fast), padding-left var(--t-fast), background var(--t-fast);
}

#left-column .block-categories a:hover {
  color: var(--sd-red) !important;
  background: var(--sd-red-soft);
  padding-left: 26px;
}

/* Sub-menu links — slight indent */
#left-column .block-categories ul.category-sub-menu a {
  padding-left: 30px;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--sd-text-muted) !important;
}

#left-column .block-categories ul.category-sub-menu a:hover {
  padding-left: 36px;
  color: var(--sd-red) !important;
}

/* Active / current category link */
#left-column .block-categories a.current,
#left-column .block-categories li.current > a,
#left-column .block-categories a[aria-current="page"] {
  color: var(--sd-red) !important;
  font-weight: 700;
  background: var(--sd-red-soft);
  border-left: 3px solid var(--sd-red);
  padding-left: 17px;
}

/* Product count badge next to category name */
#left-column .block-categories .count,
#left-column .block-categories .category-count {
  float: right;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sd-text-muted);
  background: var(--sd-gray-100);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  line-height: 1.6;
}

/* Collapse arrow in sidebar block title */
#left-column .block-categories .navbar-toggler,
#left-column .block-categories [data-target] .material-icons {
  color: var(--sd-gray-300);
  font-size: 1rem;
}


/* ============================================================
   8. PAGINATION — "editorial index"
   Targets: nav.pagination, ul.page-list, li.current, a.previous/next

   Deliberately built from the motifs this theme already owns rather than
   Bootstrap's default pills: Oswald numerals, the 4px red rule that sits under
   every section title, and the tight 4px corner radius used by every button and
   card. The stock look (999px circles, right-aligned, on a stray white slab)
   belonged to no part of the design system.

   Two real bugs are fixed here, not just restyled:

   1. PrestaShop renders the CURRENT page as `<a class="disabled">` — it is the
      one page you cannot navigate to. The old `.disabled { opacity: .38 }` rule
      therefore faded the current page specifically, so the most important item
      in the control rendered as washed-out pink on brand red. Disabled styling
      is now scoped to :not(.current).

   2. ul.page-list inherited a white background from the parent theme and
      stretched the full column width, drawing a stray white slab across the
      page with the numbers stranded at its right edge.
   ============================================================ */

nav.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
  margin-bottom: 0;
  padding-top: 10px;
  padding-bottom: 0;
  border-top: 1px solid var(--sd-gray-200);
}

/* Bootstrap grid classes are in the markup; neutralise them so the flex
   column above controls the layout instead of a 4/6+offset split. */
nav.pagination > .col-md-4,
nav.pagination > .col-md-6 {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: none;
}

/* Summary — set as a small caption above the controls */
nav.pagination > .col-md-4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sd-text-muted);
}

nav.pagination ul.page-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: none; /* parent theme paints this white — see note 2 above */
}

nav.pagination ul.page-list li { margin: 0; }

/* ── Page numerals ──────────────────────────────────────────
   No box: the numeral itself is the control, marked by the red rule. */
nav.pagination ul.page-list li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--sd-text) !important;
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}

/* The red rule under the numeral: same motif as the section titles, sized to
   the numeral rather than a fixed 54px. Scales from the centre on hover. */
nav.pagination ul.page-list li a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 3px;
  background: var(--sd-red);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transition: transform var(--t-fast);
}

nav.pagination ul.page-list li a:hover {
  color: var(--sd-red) !important;
  background: var(--sd-gray-100);
}

nav.pagination ul.page-list li a:hover::after { transform: scaleX(0.5); }

/* Current page — the rule is fully drawn and the numeral goes heavy. */
nav.pagination ul.page-list li.current a,
nav.pagination ul.page-list li a.current {
  color: var(--sd-text) !important;
  font-weight: 700;
  cursor: default;
}

nav.pagination ul.page-list li.current a::after,
nav.pagination ul.page-list li a.current::after { transform: scaleX(1); }

/* ── Previous / Next ────────────────────────────────────────
   Kept as solid buttons (the shop's CTA language) but square-cornered to match
   --radius, not the 999px pill the stock rule used. */
nav.pagination ul.page-list li a.previous,
nav.pagination ul.page-list li a.next {
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  margin-inline: 6px;
  background: var(--sd-navy);
  color: var(--sd-white) !important;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  gap: 2px;
}

nav.pagination ul.page-list li a.previous::after,
nav.pagination ul.page-list li a.next::after { content: none; }

nav.pagination ul.page-list li a.previous:hover,
nav.pagination ul.page-list li a.next:hover {
  background: var(--sd-red);
  color: var(--sd-white) !important;
}

/* Disabled — :not(.current) is load-bearing, see note 1 above. */
nav.pagination ul.page-list li:not(.current) a.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

nav.pagination ul.page-list li:not(.current) a.disabled:hover {
  background: none;
  color: var(--sd-text) !important;
}

nav.pagination ul.page-list .spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 40px;
  color: var(--sd-gray-500);
  font-family: var(--font-display);
}

nav.pagination ul.page-list li a .material-icons {
  font-size: 1rem;
  line-height: 1;
}

/* Keyboard focus must stay visible now that the boxes are gone. */
nav.pagination ul.page-list li a:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 2px;
}

/* ── "Zobrazit dalších N produktů" (load-more.tpl, sd-load-more.js) ──
   The usual way down a listing, so it is the large filled CTA; the page index
   under it stays as the jump-anywhere control. Full width on phones, where it
   is the thumb target right under the last card. */
.sd-load-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 36px);
}

.sd-load-more__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 36px;
  background: var(--sd-navy);
  color: var(--sd-white) !important;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background var(--t-fast);
}

.sd-load-more__btn:hover,
.sd-load-more__btn:focus-visible {
  background: var(--sd-red);
}

.sd-load-more__btn:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 2px;
}

/* Loading: the label stays put (no width jump); a spinner sits in the right padding. */
.sd-load-more__btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.sd-load-more__btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--sd-white);
  border-radius: 50%;
  animation: sd-load-more-spin 0.7s linear infinite;
}

@keyframes sd-load-more-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sd-load-more__btn.is-loading::after { animation-duration: 2s; }
}

@media (max-width: 575.98px) {
  .sd-load-more__btn { width: 100%; }
}

/* ============================================================
   9. RESPONSIVE OVERRIDES
   Mobile-first: base above is desktop-oriented;
   these rules progressively simplify for narrow viewports.
   ============================================================ */

/* --- ≤ 991px: columns STACK so content fills the viewport ---
   Bootstrap col-md-4 / col-md-8 keep the columns side-by-side from 768px up,
   which left the content filling only ~600px of a 768 viewport and the Filtry
   toggle squeezed to 0×0. Force both columns to full width here. The filter
   sidebar itself becomes an off-canvas panel (section 11) so the empty
   #left-column collapses. */
@media (max-width: 991px) {
  #wrapper .container > .row > #left-column,
  #wrapper .container > .row > #content-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #left-column {
    margin-bottom: 0;
    padding-right: 15px;
    padding-left: 15px;
  }

  #content-wrapper.left-column {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Subcategory chips: allow horizontal scroll on narrow screens */
  ul.subcategories-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--sd-gray-300) transparent;
  }

  ul.subcategories-list > li {
    flex-shrink: 0;
    width: clamp(90px, 28vw, 130px);
  }
}

/* --- ≤ 767px: narrow tablets and large phones --- */
@media (max-width: 767px) {
  body.sd-product-listing #js-product-list-header .sd-cathead-inner,
  body.sd-product-listing .sd-cathead-inner {
    padding: 24px var(--gutter) 28px;
  }

  body.sd-product-listing #js-product-list-header .block-category.card.card-block,
  body.sd-product-listing .block-category.card.card-block {
    border-radius: 0 !important;
  }

  /* Stack cover image below text on narrow screens */
  .block-category-inner {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .category-cover {
    width: 100%;
    max-width: 180px;
    align-self: flex-start;
  }

  /* Toolbar: stack count above sort row */
  #js-product-list-top.products-selection {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .total-products {
    display: block !important;
  }

  .products-sort-order.dropdown .select-title {
    min-width: 0;
    width: 100%;
  }

  /* Pagination centres itself at every width now (section 8), so nothing to
     restack here. */
}

/* --- ≤ 640px: preview_2 cathead h1 32px --- */
@media (max-width: 640px) {
  body.sd-product-listing #js-product-list-header .block-category .h1,
  body.sd-product-listing #js-product-list-header .block-category h1 {
    font-size: 32px !important;
  }
}

/* --- ≤ 479px: 360px-friendly micro-tweaks --- */
@media (max-width: 479px) {
  body.sd-product-listing #js-product-list-header .sd-cathead-inner,
  body.sd-product-listing .sd-cathead-inner {
    padding: 20px var(--gutter) 24px;
  }

  body.sd-product-listing #js-product-list-header .block-category.card.card-block,
  body.sd-product-listing .block-category.card.card-block {
    border-radius: 0 !important;
  }

  /* Tighten the index on 360px screens: smaller hit targets, and the
     prev/next labels lose their padding before they start wrapping. */
  nav.pagination ul.page-list li a {
    min-width: 34px;
    height: 36px;
    font-size: 0.92rem;
    padding: 0 6px;
  }

  nav.pagination ul.page-list li a::after { left: 6px; right: 6px; }

  nav.pagination ul.page-list li a.previous,
  nav.pagination ul.page-list li a.next {
    height: 36px;
    padding: 0 12px;
    margin-inline: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.9px;
  }

  #js-product-list-top.products-selection {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
  }
}

/* --- ≥ 992px: 2-col layout: sidebar 3 + content 9 --- */
/* Bootstrap col-md-4 / col-lg-3 handles the column width;
   we just tune the visual relationship. */
@media (min-width: 992px) {
  /* Slight offset so the sidebar top aligns with the hero header */
  #left-column {
    padding-top: 0;
  }

  /* Products: always 2 columns at md breakpoint (col-sm-6 already handles it),
     confirmed 3 at xl via col-xl-4 Bootstrap class */
}


/* ============================================================
   10. ps_facetedsearch FILTER SIDEBAR (prototype .filters)
   Targets: #search_filters_wrapper / #search_filters.js-search-filters
            .facet, .facet-title, .facet-label, span.color, .ui-slider
   Degrades gracefully when the sidebar is empty (no facets attached).
   ============================================================ */

#search_filters_wrapper {
  margin-bottom: 1.5rem;
}

/* White card panel, sticky on desktop (prototype .filters) */
#search_filters {
  background: #fff;
  border: 1px solid var(--sd-gray-200);
  border-radius: 6px;
  padding: 8px 22px 22px !important;
}

@media (min-width: 992px) {
  #search_filters {
    position: sticky;
    top: 100px;
  }
}

/* "Filter By" heading on top of the panel */
#search_filters > .h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--sd-text-muted);
  padding: 16px 0 4px;
  margin: 0;
}

/* Each facet group (prototype .fgroup) */
#search_filters .facet {
  padding: 18px 0;
  border-bottom: 1px solid var(--sd-gray-200);
  margin: 0;
}

#search_filters .facet:last-child {
  border-bottom: none;
}

/* Facet title (prototype .fgroup h4) */
#search_filters .facet .facet-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--sd-ink);
  margin: 0 0 14px;
  font-weight: 500;
}

/* Hide the duplicated mobile collapse title on desktop is handled by PS
   hidden-* classes; keep its tap target tidy on mobile. */
#search_filters .facet .title.hidden-md-up {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

/* Filter option rows (prototype .fopt) */
#search_filters .facet ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#search_filters .facet ul li {
  margin: 0;
}

#search_filters .facet .facet-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--sd-text);
  margin-bottom: 9px;
  cursor: pointer;
  font-weight: 400;
}

#search_filters .facet .facet-label .custom-checkbox,
#search_filters .facet .facet-label .custom-radio {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#search_filters .facet .facet-label input[type="checkbox"],
#search_filters .facet .facet-label input[type="radio"] {
  accent-color: var(--sd-red);
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Override theme.css margin-top on facet links (Office / Speciální default facets) */
#search_filters .facet .facet-label a.search-link {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: nowrap;
  min-width: 0;
  /* ps_facetedsearch front.css pins links to one clipped line
     (width: calc(100% - 30px); overflow hidden; ellipsis; nowrap): long names wrap instead. */
  width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
  line-height: 1.25;
}

/* The clickable label text + right-aligned magnitude count */
#search_filters .facet .facet-label .search-link {
  flex: 1;
  display: flex;
  align-items: center;
  color: var(--sd-text) !important;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
}

#search_filters .facet .facet-label.active .search-link {
  color: var(--sd-text) !important;
  font-weight: 400 !important;
}

#search_filters .facet .facet-label .magnitude {
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--sd-text-muted);
  font-size: 12px;
}

/* ---- Colour facet: round colour dots (prototype .colordot) ---- */
#search_filters .facet .facet-label .color {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--sd-gray-200);
  background-size: cover;
  background-position: center;
}

#search_filters .facet .facet-label.active .color {
  box-shadow: 0 0 0 2px var(--sd-red);
}

/* Hide the default check glyph for colour facets (dot conveys state) */
#search_filters .facet .facet-label .custom-checkbox input[type="checkbox"] + .color,
#search_filters .facet .facet-label .custom-checkbox input[type="checkbox"] + .color.texture {
  margin-left: 2px;
}

/* ---- Price (and weight) range slider on jQuery UI ----
   This is a TWO-handle range control: jQuery UI renders
   [.ui-slider-range, handle-min, handle-max] and moves each handle by
   inline `left`. Style the track as the unselected span and the range as
   the selected one — painting the whole track red (as this did) makes the
   control read as a progress bar, and there is then no way to see where
   the selection starts or ends.
   ---------------------------------------------------------------- */
#search_filters .ui-slider {
  position: relative;
  height: 4px;
  background: var(--sd-gray-200) !important;
  border: none;
  border-radius: 999px;
  margin: 16px 0 0;
}

#search_filters .ui-slider .ui-slider-range {
  position: absolute;
  height: 100%;
  background: var(--sd-red) !important;
  border-radius: 999px;
}

#search_filters .ui-slider .ui-slider-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  transform: translateY(-50%);
  background: #fff !important;
  border: 2px solid var(--sd-red) !important;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(20, 26, 32, 0.25);
  cursor: grab;
  outline: none;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  z-index: 2;
}

/* Fingers need more than 16px. The hit area is invisible and centred, so the
   dot stays small while the grab target is 32px. */
#search_filters .ui-slider .ui-slider-handle::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

#search_filters .ui-slider .ui-slider-handle:hover,
#search_filters .ui-slider .ui-slider-handle.ui-state-active {
  box-shadow: 0 0 0 6px rgba(226, 0, 26, 0.14), 0 1px 3px rgba(20, 26, 32, 0.25);
}

#search_filters .ui-slider .ui-slider-handle.ui-state-active {
  cursor: grabbing;
  transform: translateY(-50%) scale(1.08);
}

#search_filters .ui-slider .ui-slider-handle:focus-visible {
  box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.35), 0 1px 3px rgba(20, 26, 32, 0.25);
}

/* Live selection read-out above the track (updated by the module's front.js on
   every slide). Semibold ink so it reads as the answer, with the grey 0/max
   scale below the track as context. */
#search_filters .sd-price-value {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  /* !important because a facet rule elsewhere in the cascade sets the muted
     grey with !important too; without it the read-out is the same colour as
     the scale beneath it and stops reading as the answer. */
  color: var(--sd-ink) !important;
  line-height: 1.3;
}

/* Split min/max scale below the slider (preview_2 .price-range) */
#search_filters .sd-price-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--sd-text-muted);
  margin-top: 6px;
}

/* "Do 500 Kč" shortcut under the slider scale - a second <li> of the slider's
   list, so it beats `.facet ul li { margin: 0 }` on specificity. */
#search_filters .facet ul li.sd-price-cap {
  margin-top: 14px;
}
#search_filters .sd-price-cap .facet-label {
  margin-bottom: 0;
}
#search_filters .sd-price-cap .search-link {
  color: var(--sd-text) !important;
  font-size: 14px !important;
  margin-top: 0 !important;
}

#search_filters .facet .ps-shown-by-js + label,
#search_filters .facet [id^="facet_label"] {
  font-size: 13px;
  color: var(--sd-text-muted);
}


/* ============================================================
   11. MOBILE 'Filtry' TOGGLE + OFF-CANVAS FILTER PANEL
   The faceted-search JS toggles #search_filters_wrapper visibility.
   Desktop: sidebar always shown. ≤991px: hidden behind the toggle.
   ============================================================ */

/* The 'Filtry' button (prototype .filtertoggle) */
.filter-button .btn.js-search-toggler.sd-filtertoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--sd-ink);
  background: #fff;
  border: 1px solid var(--sd-gray-200);
  border-radius: 4px;
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.filter-button .btn.js-search-toggler.sd-filtertoggle:hover {
  border-color: var(--sd-red);
  color: var(--sd-red);
}

.filter-button .btn.js-search-toggler.sd-filtertoggle .material-icons {
  font-size: 1.1rem;
}

/* ≤991px: collapse the filter sidebar into an off-canvas panel. */
@media (max-width: 991px) {
  /* PS adds/removes 'hidden-sm-down' to #search_filters_wrapper on toggle.
     When hidden it carries hidden-sm-down → display:none. When the toggler
     fires, JS removes it and the panel slides in. */
  #search_filters_wrapper {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: auto;
    bottom: 0 !important;
    width: min(86vw, 360px);
    max-width: 360px;
    z-index: 1100;
    background: #fff;
    box-shadow: 0 0 40px rgba(17, 19, 22, .35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    padding: 0 0 24px;
    /* Open/close is owned by sdstorefront category-filter.js via the
       html.sd-filters-open state class (deterministic, two-way). The panel
       stays rendered and is slid off-screen when closed — overriding PS's
       one-way hidden-sm-down display toggle. */
    display: block !important;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  /* Neutralise PS's hidden-sm-down (it only toggles on open) — we hide via
     transform instead so we control both directions. */
  #search_filters_wrapper.hidden-sm-down {
    display: block !important;
  }

  html.sd-filters-open #search_filters_wrapper {
    /* Explicit translateX(0), NOT `none`: transitioning a translate to the
       `none` keyword doesn't animate reliably (the panel stayed stuck at the
       closed −100% offset), so the off-canvas panel never appeared on tap.
       An explicit endpoint interpolates cleanly from translateX(-100%). */
    transform: translateX(0);
  }

  /* Backdrop + scroll lock while the panel is open. */
  html.sd-filters-open {
    overflow: hidden;
  }
  html.sd-filters-open body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(17, 19, 22, .45);
    z-index: 1099;
  }

  #search_filters {
    border: none;
    border-radius: 0;
    position: static;
    padding: 8px 18px 18px !important;
  }

  /* Mobile OK / clear bar at the top of the off-canvas panel */
  #search_filter_controls {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: var(--sd-ink);
    padding: 12px 16px;
    margin: 0;
  }

  #search_filter_controls .btn.ok {
    background: var(--sd-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

/* ≤575px: the sort/Filtry toolbar must not overflow the viewport. The
   col-lg-7 reset (width:auto; margin-left:auto) plus the sort dropdown's
   min-width and the flex-nowrap sort row pushed the Filtry button off-screen
   (+27px). Stack the toolbar full-width and let it wrap. */
@media (max-width: 575px) {
  #js-product-list-top.products-selection {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #js-product-list-top.products-selection > .col-lg-7 {
    width: 100% !important;
    margin-left: 0;
  }

  .sort-by-row {
    flex-wrap: wrap;
    row-gap: 10px;
    min-width: 0;
  }

  /* Sort dropdown shrinks to share the row; Filtry button drops to its own
     full-width line. */
  .sort-by-row .sort-by {
    flex: 0 0 auto;
    min-width: 0;
  }
  .sort-by-row .products-sort-order.dropdown {
    flex: 1 1 auto;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  .products-sort-order.dropdown .select-title {
    min-width: 0;
    width: 100%;
  }
  .sd-sort-select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .filter-button.sd-filter-button {
    flex: 1 0 100%;
    width: 100% !important;
  }
}

/* ============================================================
   Polish2 — breadcrumb (sub-navigation) on category + product:
   a subtle full-width surface band, with the text aligned to the page
   container gutter (same x as the header / content), per preview_2/preview_3.
   The nav sits inside a centered .container, so we full-bleed the band and
   re-constrain the <ol> to the --container box.
   ============================================================ */
.breadcrumb {
  position: relative;
  z-index: 0;
  background: transparent;
  margin: 0 !important;
  padding: 14px 0 !important;
}
/* Category + product: breadcrumb text uses the shell gutter from .container */
body.sd-product-listing .breadcrumb ol,
body#product .breadcrumb ol {
  padding-left: 0 !important;
}
/* Full-width surface band painted behind the breadcrumb; the nav itself stays
   in the page container so its text aligns to the content left edge below it.
   preview_3 uses only a bottom border on the band. */
.breadcrumb::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background: #fff;
  border-bottom: 1px solid var(--sd-gray-200, #e4e8eb);
}
.breadcrumb ol {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb ol li { font-size: 0.8125rem; margin: 0; }
/* preview_3 .crumb style: muted links, current (last) item ink + semi-bold. */
.breadcrumb ol li a { color: var(--sd-text-muted, #7a7a7a); font-weight: 400; }
.breadcrumb ol li a:hover { color: var(--sd-red); }
.breadcrumb ol li:last-child,
.breadcrumb ol li:last-child span { color: var(--sd-text, #111316); font-weight: 600; }


/* ============================================================
   12. fix-W2 FACET FILTER CONTROLS
   C2: VELIKOST pill buttons
   C3: BARVA color swatch row
   C4: CENA single-fill slider
   C5/C6: Checked visual state for DIVIZE + KATEGORIE
   ============================================================ */

/* C2: VELIKOST segmented pill buttons */
.sd-size-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.sd-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 0;
  border: 1px solid #E5E7EA;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.sd-size-pill.active,
.sd-size-pill:hover {
  background: #111316;
  border-color: #111316;
  color: #fff !important;
}

/* C3: BARVA horizontal swatch row */
.sd-color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* Colour values that carry no colour code — the electronics catalogue filters colour
   through a product FEATURE, which has nowhere to store one — render as named pills
   instead of empty circles. Borrowed from the Velikost pills so the sidebar keeps one
   visual language; slightly wider because these are words, not sizes. */
.sd-color-pill {
  min-width: 0;
  padding: 7px 12px;
}

.sd-swatch {
  display: inline-flex;
  text-decoration: none;
}

.sd-swatch .color {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--sd-gray-300);
  background-size: cover;
  background-position: center;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.sd-swatch:hover .color {
  box-shadow: 0 0 0 2px var(--sd-red);
  transform: scale(1.1);
}

.sd-swatch.active .color {
  box-shadow: 0 0 0 2px var(--sd-red);
}

/* The lower handle used to be hidden here and the range pinned to `left: 0`,
   to make the slider read as a single fill from the left. Both are removed:
   the control is a min–max range, and hiding half of it did not remove the
   behaviour, only the feedback. Clicking the left half still moved the
   invisible min handle, so the filter jumped to a minimum the visitor could
   neither see nor drag back — the price chip said "2 805 – 9 459 Kč" while
   the bar stayed full and the labels stayed at 0 and max. */

/* C5: DIVIZE caption below facet title — preview_2 */
.facet-divize .sd-facet-caption {
  font-size: 12px;
  color: var(--sd-text-muted);
  font-style: normal;
  margin: -4px 0 12px;
  line-height: 1.4;
}

/* All sidebar facet checkboxes — native red inputs (Office, Speciální, etc.) */
#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label input[type="checkbox"],
#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label input[type="radio"] {
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  width: 15px !important;
  height: 15px !important;
  margin: 2px 0 0 !important;
  flex-shrink: 0;
  accent-color: var(--sd-red);
  cursor: pointer;
}

#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .custom-checkbox,
#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .custom-radio {
  display: contents;
}

#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .custom-checkbox > span:not(.color):not(.texture),
#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .custom-radio > span,
#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .material-icons {
  display: none !important;
}

#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .search-link {
  color: var(--sd-text) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
  line-height: 1.4;
}

#search_filters .facet:not(.facet-color):not(.facet-size):not(.facet-cena) .facet-label .magnitude {
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  color: var(--sd-text-muted);
  font-size: 12px;
  font-weight: 400;
}

/* ============================================================
   13. fix-W2 SORT CONTROL (C8)
   Native <select> replacing the custom dropdown.
   ============================================================ */

/* Remove the old dropdown toggle styles that no longer apply */
.products-sort-order:not(.dropdown) .select-title,
.products-sort-order:not(.dropdown) .dropdown-menu {
  display: none;
}

/* Native select element */
.sd-sort-select {
  appearance: auto;
  -webkit-appearance: auto;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sd-text);
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-300);
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 14px;
  cursor: pointer;
  min-width: 160px;
  transition: border-color var(--t-fast);
}

.sd-sort-select:hover,
.sd-sort-select:focus {
  border-color: var(--sd-red);
  outline: none;
}

/* "Zobrazit: 12/24/36" — sits after the sort select; two digits need no
   160px, so it sizes to content. */
.sort-by-row .sd-per-page {
  flex: 0 0 auto;
  padding: 0;
}
.sd-per-page-select {
  min-width: 0;
}

/* Adjust sort-by label casing (C8) */
.sort-by-row .sort-by {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}


/* ------------------------------------------------------------
   Listing pages rendered with the full-width layout (search) have no
   #left-column, so the `250px 1fr` grid above placed #content-wrapper in
   the 250px sidebar track — squeezing the heading, sort bar and cards.
   Collapse to a single track when there is no sidebar.
   ------------------------------------------------------------ */
@media (min-width: 992px) {
  body.sd-product-listing.layout-full-width #wrapper > .container > .row {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Sort + per-page controls on phones: a two-column grid, so
   "Seřadit:" and "Zobrazit:" share one label column and both
   selects start on the same left edge and share one width. As a
   wrapping flex row each select started wherever its own label
   ended (the labels differ in length), so the two boxes sat
   staggered. Filtry spans both columns underneath.
   ------------------------------------------------------------ */
@media (max-width: 575px) {
  #js-product-list-top .sort-by-row {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    /* The desktop row is justify-content: flex-end; on a grid that would
       push both tracks to the right edge. */
    justify-content: stretch;
    /* Its parent column is a flex row aligned to the end, which would
       shrink the grid to its content and park it on the right. */
    width: 100%;
    flex: 1 1 100%;
    align-items: center;
    column-gap: 14px;
    row-gap: 10px;
  }

  #js-product-list-top .sort-by-row > .sort-by {
    display: inline-flex !important;
    grid-column: 1;
  }

  #js-product-list-top .sort-by-row > .products-sort-order,
  #js-product-list-top .sort-by-row > .sd-per-page {
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  #js-product-list-top .sort-by-row .sd-sort-select {
    width: 100%;
    min-width: 0;
  }

  #js-product-list-top .sort-by-row > .sd-filter-button {
    grid-column: 1 / -1;
    width: 100% !important;
  }
}

/* ============================================================
   Cascade category navigation (hook displaySdCategoryTree) —
   replaces the "Kategorie" checkbox facet in the filter panel.
   Open branch = path to the current category; +/- toggles the rest.
   ============================================================ */
.sd-cat-tree {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--sd-gray-200);
  margin-bottom: 0;
}
.sd-cat-tree .facet-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--sd-ink);
  margin: 0 0 10px;
  font-weight: 500;
}
.sd-cat-tree__all {
  display: block;
  font-size: 13px;
  color: var(--sd-text-muted);
  margin: 0 0 8px;
}
.sd-cat-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sd-cat-tree li {
  position: relative;
  margin: 0;
}
.sd-cat-tree li > a {
  display: block;
  padding: 8px 34px 8px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.35;
  color: var(--sd-text);
  overflow-wrap: anywhere;
}
.sd-cat-tree li > a:hover {
  background: var(--sd-gray-100);
  text-decoration: none;
}
.sd-cat-tree li.selected > a {
  font-weight: 700;
  color: var(--sd-red);
}
.sd-cat-tree li.expanded > a {
  font-weight: 600;
}
.sd-cat-tree__toggle {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sd-text-muted);
  font-size: 18px;
  line-height: 32px;
  cursor: pointer;
}
.sd-cat-tree__toggle:hover { color: var(--sd-red); }
.sd-cat-tree li > ul {
  display: none;
  margin: 0 0 4px 12px;
  padding-left: 8px;
  border-left: 2px solid var(--sd-gray-200);
}
.sd-cat-tree li.expanded > ul { display: block; }

/* ---- _empty.css ---- */
/* ============================================================
   CSG / Senza — EMPTY LISTING STATE
   Targets: #js-product-list > #content.sd-empty (category / search
            listing rendered with zero products)

   The classic theme reuses errors/not-found.tpl here: a 570px white
   card, margin:0 auto, dropped inside the 9-column content well. Next
   to an empty facet sidebar that reads as a stray notice pushed off
   the page axis. This layer replaces it with a full-shell editorial
   panel and collapses the (necessarily empty) filter column.
   ============================================================ */

/* ---- 1. Keep the standard listing shell even when empty ----
   Some categories (for example "Vánoční balíčky") should still show the
   left filter rail / category navigation, matching pages like Novinky. */

/* ---- 2. The panel ---- */
#js-product-list .sd-empty {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;

  /* neutralise theme.css #products .page-not-found sizing */
  max-width: none;
  margin: 0;
  padding: 64px 60px 62px;

  color: var(--sd-text);
  font-size: 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--sd-gray-50) 100%);
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Brand rule across the top edge — short red bar, hairline continuation */
#js-product-list .sd-empty::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sd-red) 0 96px,
    var(--sd-gray-200) 96px 100%
  );
}

/* Diagonal hatch, bottom-right — texture, not decoration for its own sake */
#js-product-list .sd-empty::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 340px;
  height: 240px;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    -45deg,
    var(--sd-gray-200) 0 1px,
    transparent 1px 11px
  );
  -webkit-mask-image: radial-gradient(120% 120% at 100% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 120% at 100% 100%, #000 0%, transparent 70%);
}

/* ---- 3. Copy column ---- */
#js-product-list .sd-empty__copy {
  position: relative;
  z-index: 1;
  max-width: 52ch;
}

#js-product-list .sd-empty__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sd-red);
}

#js-product-list .sd-empty__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sd-red);
  flex: none;
}

#js-product-list .sd-empty__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  /* Czech diacritics (Í, Ž) need headroom — line-height:1 collides the
     caron of one line with the cap height of the line above. */
  line-height: 1.16;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--sd-ink);
}

#js-product-list .sd-empty__text {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sd-text-muted);
}

/* ---- 4. Actions ---- */
#js-product-list .sd-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#js-product-list .sd-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast),
    border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

#js-product-list .sd-empty__btn--solid {
  background: var(--sd-red);
  color: #fff !important;
}

#js-product-list .sd-empty__btn--solid:hover,
#js-product-list .sd-empty__btn--solid:focus {
  background: var(--sd-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

#js-product-list .sd-empty__btn--ghost {
  background: transparent;
  border-color: var(--sd-gray-300);
  color: var(--sd-ink) !important;
}

#js-product-list .sd-empty__btn--ghost:hover,
#js-product-list .sd-empty__btn--ghost:focus {
  border-color: var(--sd-ink);
  background: var(--sd-ink);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---- 5. Ghost grid — the product cards that will live here ---- */
#js-product-list .sd-empty__ghosts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

#js-product-list .sd-empty__ghost {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px dashed rgba(20, 26, 32, 0.18);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    rgba(20, 26, 32, 0.05) 0 1px,
    transparent 1px 9px
  );
}

/* Placeholder title + price lines, so the tile reads as a product card */
#js-product-list .sd-empty__ghost::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 20px;
  background:
    linear-gradient(var(--sd-gray-200) 0 0) 0 0 / 72% 6px no-repeat,
    linear-gradient(var(--sd-gray-300) 0 0) 0 14px / 38% 6px no-repeat;
}

/* Break the row: middle tile lifts, outer tiles sit lower and shorter */
#js-product-list .sd-empty__ghost:nth-child(2) {
  transform: translateY(-24px);
}

#js-product-list .sd-empty__ghost:nth-child(1),
#js-product-list .sd-empty__ghost:nth-child(3) {
  aspect-ratio: 3 / 3.5;
}

/* Slow shimmer sweep — signals "loading soon", not "broken" */
#js-product-list .sd-empty__ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  animation: sd-empty-sweep 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#js-product-list .sd-empty__ghost:nth-child(2)::after { animation-delay: 0.35s; }
#js-product-list .sd-empty__ghost:nth-child(3)::after { animation-delay: 0.7s; }

@keyframes sd-empty-sweep {
  0%        { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

/* ---- 6. Entrance: one staggered reveal on load ---- */
#js-product-list .sd-empty__eyebrow,
#js-product-list .sd-empty__title,
#js-product-list .sd-empty__text,
#js-product-list .sd-empty__actions,
#js-product-list .sd-empty__ghosts {
  animation: sd-empty-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

#js-product-list .sd-empty__eyebrow { animation-delay: 0.02s; }
#js-product-list .sd-empty__title   { animation-delay: 0.09s; }
#js-product-list .sd-empty__text    { animation-delay: 0.16s; }
#js-product-list .sd-empty__actions { animation-delay: 0.23s; }
#js-product-list .sd-empty__ghosts  { animation-delay: 0.3s; }

@keyframes sd-empty-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 7. Responsive ---- */
@media (max-width: 991px) {
  #js-product-list .sd-empty {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 52px 40px 56px;
  }

  #js-product-list .sd-empty__copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  #js-product-list .sd-empty {
    padding: 40px 22px 44px;
    gap: 36px;
  }

  #js-product-list .sd-empty__text {
    margin-bottom: 24px;
  }

  #js-product-list .sd-empty__btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  #js-product-list .sd-empty__ghosts {
    gap: 10px;
  }

  #js-product-list .sd-empty__ghost:nth-child(2) {
    transform: translateY(-12px);
  }

  #js-product-list .sd-empty::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #js-product-list .sd-empty__ghost::after {
    animation: none;
    opacity: 0;
  }
}

/* ---- _brands.css ---- */
/* ============================================================
   BRANDS (Značky) — /znacky and the brand miniature cards.

   The shop had no brands until vanoce, so PrestaShop's stock
   markup rendered unstyled. The page now opens with the same dark
   .sd-cathead band as every other listing (see
   _partials/brand-index-header.tpl) over a full-shell card grid.
   ============================================================ */

/* No top padding: the listing row above already contributes 38px (_category.css),
   and stacking both left a ~90px gap between the header band and the first card. */
#manufacturer .sd-brands,
.sd-brands {
  padding-block: 0 clamp(2rem, 4vw, 3.25rem);
}

/* Sub-heading on the dark band. .sd-cathead-lead had no rule anywhere in the
   theme — the supplier templates use it too, so on both pages it was rendering
   as default near-black body text on a near-black band. Match the category
   description treatment (_category.css) so all four listing headers read alike. */
body.sd-product-listing #js-product-list-header .sd-cathead-lead,
body.sd-product-listing .sd-cathead-inner .sd-cathead-lead {
  color: #c4c7cc !important;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 !important;
}

/* ── Reclaim the width ──────────────────────────────────────
   /znacky is the same `manufacturer` controller as a brand's product listing,
   so it inherited that page's left-column layout: a 250px filter rail with
   nothing to put in it (facets need products in scope; the categories module
   there is hidden by _category.css), and the card grid squeezed into the
   remaining nine columns and pushed off the page axis. Give the index its
   full shell back — the rail belongs to the detail pages only.
   ---------------------------------------------------------- */
@media (min-width: 992px) {
  body#manufacturer:has(.sd-brands) #wrapper > .container > .row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body#manufacturer:has(.sd-brands) #wrapper > .container > .row > #left-column {
    display: none !important;
  }
}

/* ── Grid of brand cards ─────────────────────────────────────
   Explicit column counts rather than auto-fill: with the full shell back, a
   minmax(240px) track yields five cramped columns at 1280px, and a brand card
   is mostly a logo well — it wants breathing room, not density.

   The id-prefixed selector matters: theme.css declares `#manufacturer #main ul
   { display: flex; flex-wrap: wrap }`, which outranks a bare class rule. The
   class rule's grid-template-columns was therefore inert and the cards were
   laid out shrink-to-fit by flexbox — which is why they sat at ragged widths
   and drifted a few px per row instead of lining up in columns. */
#manufacturer #main ul.sd-brands__list,
.sd-brands__list {
  list-style: none;
  margin: 0 auto;
  padding-inline: 0;
  max-width: var(--container);
  display: grid;
  /* minmax(0, 1fr), not 1fr: tracks must be allowed to go below the items'
     content width, or one wide child pushes every column out. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

@media (min-width: 768px) {
  #manufacturer #main ul.sd-brands__list,
  .sd-brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  #manufacturer #main ul.sd-brands__list,
  .sd-brands__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* theme.css ships `#manufacturer #main ul .brand { width: calc(20% - 10px);
   padding: 10px; margin: 5px }` — a three-id-deep selector that beat the class
   rule below, so cards sat 5px inside the grid track and lost their padding.
   Match its specificity rather than reaching for !important. */
#manufacturer #main ul.sd-brands__list .brand,
.sd-brands__list .brand {
  background: var(--sd-white);
  border: 1px solid rgba(20, 26, 32, 0.08);
  border-radius: var(--radius-lg);
  width: auto;
  min-width: 0;
  padding: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--t-fast, 0.15s) ease,
              border-color var(--t-fast, 0.15s) ease,
              transform var(--t-fast, 0.15s) ease;
}

.sd-brands__list .brand:hover {
  border-color: rgba(226, 0, 26, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Logo well — fixed height so wordmarks of very different aspect
   ratios (Runbott is wide, Nimbus is nearly square) line up. */
/* theme.css also pins the well at `width: 200px; margin: auto`, which set a
   200px content floor on every grid item — at 375px that made each card 238px
   wide inside a 163px track, so the grid could not go two-up. */
#manufacturer #main ul.sd-brands__list .brand-img,
.sd-brands__list .brand-img {
  width: auto;
  margin: 0;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* White, not grey: the supplied logos are JPGs on white, so a tinted well
     framed each one in a visible white rectangle. */
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}

/* Brands with no logo uploaded (see brand.tpl): a monogram instead of
   PrestaShop's "no image available" plate, which had eight of eleven cards
   reading as broken. */
.sd-brands__list .brand-img--wordmark a {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.sd-brands__list .brand-monogram {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--sd-gray-300);
  transition: color var(--t-fast);
}

.sd-brands__list .brand:hover .brand-monogram { color: var(--sd-gray-500); }

.sd-brands__list .brand-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.sd-brands__list .brand-img img,
.sd-brands__list .brand-img picture {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sd-brands__list .brand-infos p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sd-brands__list .brand-infos a {
  color: var(--sd-navy);
  text-decoration: none;
}

.sd-brands__list .brand-infos a:hover {
  color: var(--sd-red);
}

.sd-brands__list .brand-products {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
}

.sd-brands__list .brand-products a:first-child {
  font-weight: 600;
  color: var(--sd-text);
  text-decoration: none;
}

.sd-brands__list .brand-products a:last-child {
  color: var(--sd-red);
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.4px;
  text-decoration: none;
}

.sd-brands__list .brand-products a:last-child:hover {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .sd-brands__list .brand { padding: 16px; }
  .sd-brands__list .brand-img { height: 96px; }
}

/* ============================================================
   INQUIRY (poptávka) — indicative pricing notes
   ============================================================ */

.sd-indicative-total {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 26, 32, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--sd-text-muted);
}

/* "Cena na dotaz" where a product has no price yet */
.sd-price-on-request {
  font-family: var(--font-display);
  letter-spacing: 0.3px;
  color: var(--sd-navy);
}

/* ============================================================
   BRAND DETAIL LISTING (/brand/1-clap-design)

   The page now runs through the shared listing shell — dark header
   band, filter rail, 3-up grid — so almost nothing is needed here:
   .sd-cathead in _category.css already owns the band. Only the
   description needs a rule, because it sits on the dark band where
   the page-level muted colour would be unreadable. Matches the
   supplier hero (_suppliers.css) so the two read identically.
   ============================================================ */

body.sd-product-listing #js-product-list-header .sd-brand-description {
  color: #c4c7cc !important;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 !important;
}

/* Editors paste from a text editor, so the description can arrive wrapped in
   <p>; keep the block's own margins from doubling the band's padding. */
body.sd-product-listing #js-product-list-header .sd-brand-description > :first-child { margin-top: 0; }
body.sd-product-listing #js-product-list-header .sd-brand-description > :last-child { margin-bottom: 0; }

/* ---- _hero-layout.css ---- */
/* ============================================================
   _hero-layout.css — Hero/Slider + Section Rhythm + Footer Polish
   Modernizes the homepage hero with bold, responsive design,
   establishes consistent section spacing, and polishes the footer.
   Uses CSG brand tokens from _tokens.css.
   Loads AFTER _legacy.css, so overrides decisively on equal specificity.
   ============================================================ */

/* ========== HERO / SLIDER (ps_imageslider "rslides") ==========
   Real DOM (verified live):
     .homeslider-container > ul.rslides > li.slide > a > (img + span.caption)
   span.caption inner HTML:
     <h2></h2><div><p><span style="font-size:72px;line-height:1em;">…</span></p></div>
   The giant text is an INLINE style on the inner span (from slide DB content),
   so it MUST be overridden with !important.
   ============================================================ */

/* Slider container + slide: responsive height so images crop nicely */
.homeslider-container,
.homeslider {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(16px, 2vw, 32px) 0;
  padding: 0;
  background-color: var(--sd-navy);
  overflow: hidden;
  float: none;
}

/* CSG slider: container height is the single source of truth */
.homeslider-container.sd-slider {
  height: clamp(380px, 35vw, 580px);
}

.homeslider .rslides,
.homeslider-container .rslides,
ul.rslides {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.homeslider .rslides > li,
.homeslider-container .rslides > li,
ul.rslides > li.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

ul.rslides > li.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* The whole slide is an <a> — make it fill the slide without breaking the link */
.homeslider .rslides > li > a,
ul.rslides > li.slide > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

/* Slide images: cover the slide so they crop cleanly at any ratio */
.homeslider .rslides li img,
.homeslider-container .rslides li img,
ul.rslides li.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Very light scrim on the caption side only — the hero artwork already has a dark
   left half, so the photo colours stay true. */
.homeslider .rslides > li::after,
ul.rslides > li.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(17, 19, 22, 0.35) 0%,
    rgba(17, 19, 22, 0.15) 40%,
    rgba(17, 19, 22, 0) 70%
  );
}

/* ---- Caption: override legacy absolute placement & inline font-size ---- */

/* Legacy _legacy.css sets top/left/right/bottom with !important — override it. */
.homeslider .caption,
.homeslider-container .caption,
ul.rslides .caption {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  left: clamp(20px, 7%, 96px) !important;
  right: auto !important;
  transform: translateY(-50%);
  z-index: 5;

  /* Constrain line length; never run edge-to-edge */
  width: auto;
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 14px);
  text-align: left;
  color: var(--sd-white);
  text-shadow: 0 2px 14px rgba(21, 26, 32, 0.7);
}

/* Heading (often empty in DB, but style defensively) */
.homeslider .caption h2,
ul.rslides .caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--sd-white);
  text-transform: uppercase;
  margin: 0;
}

/* The real "heading" text lives in the <div><p><span> with an inline 72px
   font-size. Override the inline style with !important so it scales down.
   The inner <span style="color:#f22037"> keeps its red accent. */
.homeslider .caption div,
.homeslider .caption p,
ul.rslides .caption div,
ul.rslides .caption p {
  margin: 0;
  font-family: var(--font-display);
  color: var(--sd-white);
}

/* NOTE: these giant-text overrides target the LEGACY inline-72px caption only.
   They must NOT touch .sd-slide-caption (clean structured DB HTML) — the
   :not() guard keeps the structured slide's <p> at its own ~17px size. */
.homeslider .caption:not(.sd-slide-caption) p,
.homeslider .caption:not(.sd-slide-caption) p span,
.homeslider .caption:not(.sd-slide-caption) div span,
ul.rslides .caption:not(.sd-slide-caption) p,
ul.rslides .caption:not(.sd-slide-caption) p span,
ul.rslides .caption:not(.sd-slide-caption) div span {
  font-size: clamp(1.6rem, 4.2vw, 3rem) !important;
  line-height: 1.06 !important;
}

/* Clamp the whole legacy caption text block so very long DB content can't
   overflow. Excludes .sd-slide-caption (which lays out its own children). */
.homeslider .caption:not(.sd-slide-caption) div,
ul.rslides .caption:not(.sd-slide-caption) div {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

/* ============================================================
   CSG DIVISION SLIDE CAPTION (structured: divlock + divname + h2 + p + cta)
   Markup (DB-seeded, see slider.tpl + migration 02):
     span.caption.sd-slide-caption
       > span.sd-slide-divlock ( sd-mark svg + divsep )
       > span.sd-slide-body ( span.divname + h2 + p + span.sd-slide-cta )
   These rules win over the generic .caption rules above (more specific).
   ============================================================ */
/* Full-bleed caption so the product cut-out can anchor to the slide's right
   edge (the caption is the positioned ancestor). Text content stays left,
   vertically centered; the product is absolutely positioned on the right. */
ul.rslides .caption.sd-slide-caption,
.homeslider-container .caption.sd-slide-caption {
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Align the caption's left edge to the page container gutter (same x as the
     header), instead of a wide inset. At ≤1280 → var(--gutter); above →
     centered to the --container box. */
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  gap: clamp(10px, 1.4vw, 16px);
}

/* Keep the text column off the product (left ~half of the slide) */
.sd-slide-caption .sd-slide-body {
  max-width: min(54%, 470px);
}

/* ---- Foreground product box + red circular price disc ----
   The hero must look identical on EVERY slide: same box, same disc position.
   The box is a fixed-size white card; the product image is normalized into it
   with object-fit:contain, so products with different source dimensions (mug /
   cap / sweatshirt) all render at the same visual size. */
.sd-slide-caption .sd-slide-product {
  position: absolute;
  /* Anchor the box's right edge to the centered 1280 container's gutter edge —
     the SAME inset as the caption's left padding — so the hero content sits in
     the site container (box right lines up with the category tiles / header
     cart below) instead of floating out toward the viewport edge. The caption
     is full-bleed (left:0/right:0), so `right` is measured from the viewport;
     this formula reproduces the caption's padding-inline. */
  right: max(var(--gutter), calc((100% - var(--container, 1280px)) / 2 + var(--gutter)));
  top: 50%;
  transform: translateY(-50%);
  /* Fixed, uniform square box on every slide — 300×300 per preview spec. */
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: block;
  background: #fff;
  border-radius: var(--radius, 6px);
  padding: clamp(16px, 1.8vw, 24px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  z-index: 6;
  pointer-events: none;
}
/* No per-slide size variation — the Tatra hoodie box matches the mug/cap box.
   object-fit:contain (below) makes the old per-image size bump unnecessary. */
.sd-slide-caption .sd-slide-product.sd-hero-prod-lg {
  width: clamp(220px, 22vw, 300px);
}
.sd-slide-caption .sd-slide-product img {
  width: 100%;
  height: 100%;
  /* Normalize every product to the same box regardless of source dimensions.
     !important beats the generic `ul.rslides li.slide img { object-fit:cover }`
     (specificity 0,2,3) which would otherwise crop the product to fill. */
  object-fit: contain !important;
  display: block;
  position: relative;
  z-index: 1;
  /* Shadow now lives on the white box, not the image. */
  filter: none;
}
/* Red price disc — overlaps the box's top-left corner per preview spec
   (top:0; left:-6px; rotate(-12deg)). IN FRONT (z-index above the
   box+image so it's always fully visible). */
.sd-slide-caption .sd-slide-price {
  position: absolute;
  left: -6px;
  top: 0;
  right: auto;
  bottom: auto;
  z-index: 7;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--sd-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  transform: rotate(-12deg);
  box-shadow: 0 10px 26px rgba(242, 32, 55, 0.45);
}
.sd-slide-caption .sd-slide-price small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Division lockup row */
.sd-slide-caption .sd-slide-divlock {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sd-slide-caption .sd-slide-divlock .sd-mark { display: inline-flex; align-items: center; color: #fff; }
/* `.csglogo` (no hyphen) was the class on the SVG that used to be inlined into
   slider.tpl; the shared brand partial uses `.sd-logo` like everywhere else.
   Both are matched so the mark is sized whichever is present — with no rule the
   SVG collapses to nothing and the slide renders a bare divider. */
.sd-slide-caption .sd-slide-divlock .csglogo,
.sd-slide-caption .sd-slide-divlock .sd-logo { height: 22px; width: auto; display: block; }
.sd-slide-caption .sd-slide-divsep {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
}

/* Body wrapper — undo the generic div clamp; lay out vertically */
.sd-slide-caption .sd-slide-body {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 16px);
  -webkit-line-clamp: none;
  overflow: visible;
  max-width: 100%;
}

/* Red division name */
.sd-slide-caption .divname {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--sd-red);
  line-height: 1;
  margin: 0;
}

/* Headline — Oswald, ~48px desktop (override generic & any inline) */
.sd-slide-caption h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  line-height: 1.08 !important;
  color: var(--sd-white);
  margin: 0 !important;
  letter-spacing: 0.5px;
}
.sd-slide-caption h2 span,
.sd-slide-caption h2 * {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Lead paragraph — force the body size (beat any legacy giant-text rule) and
   clamp to 3 lines so the caption never grows taller than the slide. */
.sd-slide-caption p {
  font-family: var(--font-body) !important;
  font-size: clamp(14px, 1.4vw, 17px) !important;
  color: #c4c7cc;
  max-width: 430px;
  line-height: 1.55 !important;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Red CTA button (rendered as a span inside the slide anchor) */
.sd-slide-caption .sd-slide-cta,
.sd-slide-caption .btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  border-radius: 2px;
  background: var(--sd-red);
  color: var(--sd-white);
  transition: background var(--t-fast) ease-out;
}
/* Oswald has no arrow glyph, so the browser falls back to another font whose arrow
   sits low. Give it its own box, centred on the label's cap height. */
.sd-slide-caption .sd-cta-arrow {
  display: inline-block;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1;
  font-size: 1.25em;
  transform: translateY(-1px);
}

.sd-slider:hover .sd-slide-caption .sd-slide-cta,
.sd-slide-caption .sd-slide-cta:hover {
  background: var(--sd-red-dark);
}

/* ========== SECTION RHYTHM & SPACING ========== */

/* Page homepage container: establish consistent max-width and padding */
.page-home,
#content.page-home {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* Hero section wrapper spacing handled on .homeslider-container above. */

/* Generic homepage section rhythm: tight, consistent vertical spacing.
   This is the winning rule (more specific than .featured-products), so it
   controls the real gap. Kept small so sections sit ~40-55px apart. */
.page-home > section,
.page-home .section,
.page-home > div > section {
  padding: clamp(20px, 2.5vw, 40px) var(--gutter);
}

/* Alternating section backgrounds (optional light gray sections) */
.page-home > section:nth-child(even) {
  background-color: var(--sd-gray-50);
}

.page-home > section:nth-child(odd) {
  background-color: var(--sd-white);
}

/* Featured products section: managed padding and rhythm */
section.featured-products {
  padding: clamp(20px, 2.5vw, 40px) var(--gutter);
  background-color: var(--sd-white);
  width: 100%;
}

section.featured-products .products-section-title {
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

/* Generic content container helper */
.page-home .sd-container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ========== FOOTER MODERNIZATION ========== */

/* Footer wrapper: modern, compact */
#footer,
.js-footer,
footer#footer {
  background-color: var(--sd-navy);
  color: var(--sd-white);
  /* Tight top/bottom padding */
  padding: clamp(10px, 1.5vw, 14px) 0 clamp(6px, 1vw, 10px) 0;
  margin-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Top block inside #footer (a.banner + #custom-text): no extra section padding */
#footer > .container {
  padding-top: 0;
  padding-bottom: 0;
}

#footer > .container > .row {
  margin: 0;
}

footer#footer .container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Footer grid layout: modern columns — compact */
.footer-container {
  background-color: var(--sd-navy);
  padding: clamp(8px, 1.2vw, 12px) 0 clamp(6px, 1vw, 10px) 0;
}

.footer-container .container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Footer sections grid (responsive columns) — tight horizontal layout */
.footer-container .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 3vw, 32px);
  align-items: start;
  margin-bottom: 0;
}

/* Individual footer blocks / columns */
.footer-container [class*="col-"],
.footer-container .links,
.footer-container .block-contact,
.footer-container .block_newsletter {
  /* Modern spacing */
  padding: 0;
}

/* Footer column headings — smaller, tighter margins */
.footer-container h4,
.footer-container .col > h4,
.footer-container .block h3,
.footer-container .block h4 {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--sd-white);
  letter-spacing: 0.3px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  border-bottom: 2px solid var(--sd-red);
  padding-bottom: 6px;
}

/* Footer links: readable, with hover effect */
.footer-container a,
.footer-container .col a,
.footer-container .links a,
.footer-container .links li a {
  color: var(--sd-gray-200);
  text-decoration: none;
  transition: color var(--t-fast) ease-out;
  display: inline-block;
  font-size: clamp(13px, 2vw, 14px);
  line-height: 1.6;
}

.footer-container a:hover,
.footer-container .col a:hover,
.footer-container .links a:hover,
.footer-container .links li a:hover {
  color: var(--sd-red);
  transform: translateX(4px);
}

.footer-container a:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 2px;
}

/* Footer list: tidy, modern spacing */
.footer-container ul.links,
.footer-container .col ul,
.footer-container .block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-container ul.links li,
.footer-container .col ul li,
.footer-container .block ul li {
  margin: 0 0 2px 0;
  padding: 0;
  line-height: 1.6;
}

/* Link list columns: lay out as a tight wrapping grid */
.footer-container .links .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

/* Newsletter section: modern input styling */
.footer-container .block_newsletter,
.footer-container .newsletter-section {
  grid-column: auto;
}

.footer-container .block_newsletter form,
.footer-container .newsletter-section form {
  /* Input + button on one compact row */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.footer-container .block_newsletter input,
.footer-container .newsletter-section input,
#block_newsletter_form input[type="email"],
.footer-container input[type="email"] {
  /* Modern rounded input — compact, flexes to fill the row */
  flex: 1 1 160px;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--sd-white);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--t-fast) ease-out;
  outline: none;
}

.footer-container .block_newsletter input::placeholder,
.footer-container .newsletter-section input::placeholder,
#block_newsletter_form input[type="email"]::placeholder,
.footer-container input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-container .block_newsletter input:focus,
.footer-container .newsletter-section input:focus,
#block_newsletter_form input[type="email"]:focus,
.footer-container input[type="email"]:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px rgba(242, 32, 55, 0.1);
}

/* Newsletter submit button */
.footer-container .block_newsletter button,
.footer-container .newsletter-section button,
#block_newsletter_form button,
.footer-container form button {
  /* Brand CTA button — compact, sits beside the input */
  flex: 0 0 auto;
  padding: 9px 20px;
  background-color: var(--sd-red);
  color: var(--sd-white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) ease-out;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-red);
  text-align: center;
}

.footer-container .block_newsletter button:hover,
.footer-container .newsletter-section button:hover,
#block_newsletter_form button:hover,
.footer-container form button:hover {
  background-color: var(--sd-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(242, 32, 55, 0.35);
}

.footer-container .block_newsletter button:focus-visible,
.footer-container .newsletter-section button:focus-visible,
#block_newsletter_form button:focus-visible,
.footer-container form button:focus-visible {
  outline: 2px solid var(--sd-white);
  outline-offset: 2px;
}

/* Custom footer section (logo, contact, socials) — compact */
.footer-container .custom-footer {
  /* Full-width custom footer section at bottom */
  background-color: var(--sd-navy-2);
  /* Tight padding: small space above the logo and a tight close below the text */
  padding: clamp(8px, 1.5vw, 12px) var(--gutter) clamp(6px, 1vw, 10px);
  border-radius: var(--radius);
  text-align: center;
  margin-top: clamp(12px, 2vw, 20px);
  grid-column: 1 / -1;

  /* Modern layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
  position: relative;
}

/* CSG logo: capped size + clear space below so it never collides with
   the social icons row that follows it. */
.footer-container .custom-footer > .logo,
.footer-container .custom-footer > img,
.footer-container .custom-footer > a:first-child,
.footer-container .custom-footer > a > img.logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  /* Tight space below the logo before the socials row */
  margin: 0 auto clamp(6px, 1.4vw, 9px);
  /* Keep the logo above the socials row (which uses order:-1) */
  order: -2;
}

.footer-container .custom-footer span {
  color: var(--sd-gray-200);
  font-size: clamp(12px, 1.6vw, 13px);
  line-height: 1.5;
  max-width: 720px;
  /* Tighten the space above the lorem paragraph (after the email) */
  margin-top: clamp(4px, 1vw, 8px);
  margin-bottom: 0;
}

/* Email link sits just above the paragraph — trim the gap below it */
.footer-container .custom-footer a[href^="mailto:"] {
  display: inline-block;
  margin-bottom: clamp(2px, 0.8vw, 6px);
}

/* The trailing <br><br> before the paragraph adds dead space — neutralize
   the line-height of the standalone <br> tags inside the custom footer. */
.footer-container .custom-footer br {
  line-height: 0.6;
}

.footer-container .custom-footer a {
  color: var(--sd-red);
  text-decoration: none;
  transition: color var(--t-fast) ease-out;
}

.footer-container .custom-footer a:hover {
  color: var(--sd-white);
}


/* ---- Footer top block: ps_customtext (#custom-text) + banner ---- */
/* Keep content, just make it dense: smaller text, tight margins, no padding */
#footer #custom-text,
#footer div#custom-text {
  padding: 0 !important;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

#footer #custom-text p,
#footer #custom-text h1,
#footer #custom-text h2,
#footer #custom-text h3 {
  margin: 0 0 6px 0;
}

#footer #custom-text *:last-child {
  margin-bottom: 0;
}

/* Banner image in the top footer block sits flush, no extra spacing */
#footer a.banner {
  display: block;
  margin: 0 0 8px 0;
}

#footer a.banner img.img-fluid {
  display: block;
}

/* ========== RESPONSIVE BEHAVIOR ========== */

/* Tablet / medium screens: adjust hero and spacing */
@media (max-width: 768px) {
  .homeslider-container.sd-slider {
    height: clamp(240px, 44vw, 290px);
  }

  .homeslider-container,
  .homeslider {
    margin-bottom: clamp(8px, 1.5vw, 14px);
  }

  /* Full-width caption with comfortable side padding so nothing overflows */
  .homeslider .caption,
  ul.rslides .caption {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: 100%;
    padding-left: clamp(16px, 5vw, 32px);
    padding-right: clamp(16px, 5vw, 32px);
  }

  .homeslider .caption p,
  .homeslider .caption p span,
  .homeslider .caption div span,
  ul.rslides .caption p,
  ul.rslides .caption p span,
  ul.rslides .caption div span {
    font-size: clamp(1.5rem, 5.5vw, 2.4rem) !important;
  }

  .homeslider .caption h2,
  ul.rslides .caption h2 {
    font-size: clamp(1.5rem, 5.5vw, 2.4rem);
  }

  /* Footer on tablet: tighter grid */
  .footer-container .row {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3vw, 40px);
  }
}

/* Mobile (375px etc.): full caption visible, no overflow */
@media (max-width: 480px) {
  .homeslider-container.sd-slider {
    height: clamp(230px, 56vw, 270px);
  }

  .homeslider .caption,
  ul.rslides .caption {
    gap: 8px;
    padding-left: clamp(14px, 5vw, 22px);
    padding-right: clamp(14px, 5vw, 22px);
  }

  /* Caption font ~1.5–1.9rem; never overflows the slide */
  .homeslider .caption p,
  .homeslider .caption p span,
  .homeslider .caption div span,
  ul.rslides .caption p,
  ul.rslides .caption p span,
  ul.rslides .caption div span {
    font-size: clamp(1.5rem, 7vw, 1.9rem) !important;
  }

  .homeslider .caption h2,
  ul.rslides .caption h2 {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  /* Clamp text block tighter so the full caption stays inside the slide */
  .homeslider .caption div,
  ul.rslides .caption div {
    -webkit-line-clamp: 4;
  }

  /* Footer on mobile: single column, stays compact */
  .footer-container .row {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 24px);
  }

  .footer-container .links .wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-container .custom-footer {
    grid-column: 1;
  }
}

/* ============================================================
   CSG DIVISION SLIDE — MOBILE COMPACTION (matches preview_1 .carousel)
   ≤991px: hide product box + disc (preview is text-only below 992px).
   ≤980px: trim caption gap, shrink headline.
   ≤640px: hide description paragraph (preview hides it at 375).
   ============================================================ */

/* B2b: below 992px preview shows no product box or price disc */
@media (max-width: 991px) {
  .sd-slide-caption .sd-slide-product { display: none !important; }
  .sd-slide-caption .sd-slide-price { display: none !important; }
  .sd-slide-caption .sd-slide-body { max-width: 100%; }
}

@media (max-width: 980px) {
  .sd-slide-caption .sd-slide-body { gap: 10px; }
  .sd-slide-caption h2 { font-size: clamp(26px, 6vw, 32px) !important; }
  .sd-slide-caption .sd-slide-divlock { margin-bottom: 0; }
}

@media (max-width: 640px) {
  /* Stronger gradient so the headline stays legible over the photo */
  ul.rslides > li.slide.slide::after,
  .homeslider .rslides > li.slide::after {
    background: linear-gradient(
      90deg,
      rgba(21, 26, 32, 0.92) 0%,
      rgba(21, 26, 32, 0.78) 45%,
      rgba(21, 26, 32, 0.55) 100%
    );
  }

  /* B2b: at 375 hide description — preview shows eyebrow+headline+CTA only */
  .sd-slide-caption p { display: none !important; }

  /* Trim caption padding/gap; shrink headline ~25px.
     padding-bottom reserves space for the dots bar (bottom:12px, 4px tall = 36px clearance). */
  ul.rslides .caption.sd-slide-caption,
  .homeslider-container .caption.sd-slide-caption {
    gap: 10px;
    padding-left: clamp(16px, 5vw, 22px) !important;
    padding-right: clamp(16px, 5vw, 22px) !important;
    padding-bottom: 36px !important;
  }
  .sd-slide-caption h2 { font-size: 25px !important; }
  .sd-slide-caption .sd-slide-cta,
  .sd-slide-caption .btn-red { padding: 11px 22px; font-size: 13px; }
}

/* ============================================================
   HERO SLIDER — PREV/NEXT ARROWS + DOTS NAV
   Matches preview_1.html .cnav / .cdots conventions.
   ============================================================ */

/* Hide default PS rslides prev/next anchor arrows — replaced by .sd-cnav buttons */
.homeslider-container .homeslider_nav,
.homeslider-container a.homeslider_nav {
  display: none !important;
}

.sd-cnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--t-fast), border-color var(--t-fast);
  padding: 0;
}

.sd-cnav:hover {
  background: var(--sd-red);
  border-color: var(--sd-red);
}

/* ‹ › have asymmetric side bearings — optical nudge keeps the chevron
   visually centered in the circle even though the glyph box itself is. */
.sd-cnav-prev {
  left: 22px;
  transform: translate(2px, -50%);
}
.sd-cnav-next {
  right: 22px;
  transform: translate(-2px, -50%);
}

.sd-cdots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.sd-cdots button {
  width: 30px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.30);
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), width var(--t-fast);
}

.sd-cdots button.on {
  background: var(--sd-red);
  width: 46px;
}

/* Phone: the arrows sat on top of the left-aligned headline, and a 36px circle
   over copy is a mis-tap waiting to happen. The slider takes swipes here
   (slider.tpl), and the dots get a 24px-tall hit area while still drawing as
   4px bars, so they are usable with a thumb. */
@media (max-width: 640px) {
  .sd-cnav { display: none; }
  .sd-cdots { bottom: 2px; gap: 6px; }
  .sd-cdots button {
    height: 24px;
    width: 34px;
    background: transparent;
    position: relative;
  }
  .sd-cdots button::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 10px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.30);
    transition: background var(--t-fast);
  }
  .sd-cdots button.on { width: 50px; background: transparent; }
  .sd-cdots button.on::before { background: var(--sd-red); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .homeslider .rslides > li,
  .homeslider .caption,
  .footer-container a {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   FOOTER CONTENT COMPACTION (added after verification)
   The footer height was dominated by large CONTENT images, not
   padding: a ~261px ps_banner image, a ~324px image inside the
   ps_customtext block, and the custom-footer. Constrain them so
   the footer is genuinely compact while keeping the content.
   ============================================================ */
#footer a.banner img,
#footer .banner img.img-fluid,
#footer #custom-text img {
  max-height: 84px !important;
  width: auto !important;
  height: auto !important;
  display: inline-block;
}
#footer #custom-text,
#footer #custom-text table,
#footer #custom-text td {
  max-height: none;
  font-size: 0.85rem;
  line-height: 1.5;
}
#footer #custom-text p { margin: 0 0 4px !important; }

/* Compact the custom-footer block (logo / contact / socials / text) */
#footer .custom-footer { padding-top: 10px !important; padding-bottom: 10px !important; gap: 10px !important; margin-top: 16px !important; }
#footer .custom-footer img { max-height: 52px !important; width: auto !important; }
#footer .custom-footer p { margin: 0 0 5px !important; line-height: 1.5 !important; }

/* Tighten the top footer banner/custom-text row so the two blocks sit closer */
#footer > .container > .row { row-gap: 12px; align-items: center; }

/* The #footer > .container row holds (a) a lorem ps_banner promo image and
   (b) the ps_customtext block — which now carries the REAL Czech brand-story
   (seeded via db/migrations/03_home_customtext_brand_story.sql). We keep the
   container visible so the brand-story renders, but hide ONLY the lorem promo
   banner image. The brand-story is styled as a full-width section by the
   .sd-story rules in _home-cats.css. */
#footer > .container { display: block; }
#footer > .container > .row > a.banner { display: none !important; }
/* The brand-story custom-text block: full-bleed, no footer padding box */
#footer #custom-text {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}
/* Keep the contact/socials footer tight and centered */
#footer .custom-footer { text-align: center; }

.custom-footer {
  flex-direction: column;
  align-items: center;
}

/* The custom-footer is a flex column, but the content uses <br> tags for line
   breaks — each <br> becomes a ~23px flex item PLUS flex-gap, creating large
   gaps (esp. email → lorem). Hide them; the uniform flex gap handles spacing. */
.custom-footer br { display: none !important; }
.custom-footer { gap: clamp(6px, 1.4vw, 10px); }

/* ============================================================
   HERO SLIDER — TABLET (641–768px) TEXT SIZES
   The ≤768px legacy "giant caption" rules (1.5–2.4rem !important on every
   caption <p>/<span>) out-rank the structured .sd-slide-caption sizes, so the
   lead paragraph rendered at ~40px next to a 28px headline and the slide
   looked cramped. Give the structured caption its own compact scale here.
   ============================================================ */
@media (min-width: 641px) and (max-width: 768px) {
  ul.rslides .caption.sd-slide-caption,
  .homeslider .caption.sd-slide-caption {
    gap: 8px;
  }
  ul.rslides .caption.sd-slide-caption .sd-slide-body,
  .homeslider .caption.sd-slide-caption .sd-slide-body {
    gap: 8px;
    max-width: min(420px, 62%);
  }
  ul.rslides .caption.sd-slide-caption h2,
  .homeslider .caption.sd-slide-caption h2 {
    font-size: clamp(20px, 3.6vw, 26px) !important;
    line-height: 1.1 !important;
  }
  ul.rslides .caption.sd-slide-caption p,
  .homeslider .caption.sd-slide-caption p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 2;
    max-width: 100%;
  }
  ul.rslides .caption.sd-slide-caption .sd-slide-cta,
  .homeslider .caption.sd-slide-caption .btn-red {
    padding: 9px 18px;
    font-size: 12px;
  }
}

/* ---- _home-cats.css ---- */
/* ============================================================
   _home-cats.css — CSG / Senza
   Owns two DB-driven homepage blocks:
     1. Category tiles  (.sd-cats / .sd-cat)  — index.tpl
     2. Brand-story     (.sd-story)            — ps_customtext (#custom-text)
   Matches preview_1.html (.cats/.cat + .story).
   Loads AFTER _legacy.css → wins decisively.
   ============================================================ */

/* ============================================================
   1. CATEGORY TILES — preview_1 .cats / .cat-grid / .cat
   ============================================================ */
.sd-cats {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) 8px;
  background: var(--sd-white);
}

.sd-cats .sd-cats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sd-cat {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  color: var(--sd-white);
  background: var(--sd-gray-50);
  text-decoration: none;
}

.sd-cat .sd-cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: transform 0.4s ease;
  z-index: 0;
}

.sd-cat:hover .sd-cat-img {
  transform: scale(1.06);
}

/* dark gradient overlay so the label is always legible */
.sd-cat .sd-cat-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(21, 26, 32, 0.86) 0%,
    rgba(21, 26, 32, 0.52) 26%,
    rgba(21, 26, 32, 0.12) 52%,
    rgba(21, 26, 32, 0) 74%
  );
}

.sd-cat .sd-cat-lbl {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  width: 100%;
  display: block;
}

.sd-cat .sd-cat-name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sd-white);
  line-height: 1.1;
}

.sd-cat .sd-cat-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--sd-red);
}

/* ---- tablet ---- */
@media (max-width: 980px) {
  .sd-cats { padding-top: 36px; padding-bottom: 0; }
  .sd-cats .sd-cats-inner { grid-template-columns: repeat(2, 1fr); }
  .sd-cat { height: 190px; }
  .sd-cat .sd-cat-name { font-size: 20px; }
}

/* ---- mobile: 2-up ~126px cover tiles, hide the go-link ---- */
@media (max-width: 640px) {
  .sd-cats { padding: 26px var(--gutter) 0; }
  .sd-cats .sd-cats-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .sd-cat {
    display: flex !important;
    align-items: flex-end;
    height: 126px !important;
  }
  .sd-cat .sd-cat-lbl { padding: 13px 14px; }
  .sd-cat .sd-cat-name { font-size: 16px; }
  .sd-cat .sd-cat-go { display: none !important; }

  /* Show only 2 category tiles on mobile (hide Speciální) */
  .sd-cats .sd-cat:nth-child(3) {
    display: none !important;
  }
}


/* ============================================================
   2. NOVINKY STRIP — red band between the two featured rows
      (rendered by ps_featuredproducts_2 template)
   ============================================================ */
section.sd-strip,
.page-home section.sd-strip,
.page-home > section.sd-strip {
  /* Full-bleed: break out of the 1280px max-width container.
     Use dvw (not vw) so width excludes scrollbar gutter — avoids h-scroll. */
  width: 100vw !important;
  width: 100dvw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-left: calc(-50dvw + 50%) !important;
  margin-right: 0 !important;
  background: var(--sd-red) !important;
  color: #fff;
  padding: 0;
  box-sizing: border-box;
}

.sd-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100% !important;
  max-width: var(--container);
  margin: 0 auto !important;
  padding: 22px var(--gutter);
}

.sd-strip-left { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }

.sd-strip-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  color: #fff;
}

.sd-strip-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.sd-strip-tags {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
}

.sd-strip-tags .sd-strip-tag,
.sd-strip-tags span {
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  border-radius: 30px;
  padding: 7px 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  flex: 0 1 auto;
}

.sd-strip-tags .sd-strip-tag:hover,
.sd-strip-tags .sd-strip-tag:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  outline: none;
}

/* Desktop / tablet: up to 3 pills */
.sd-strip-tags .sd-strip-tag:nth-child(n+4) {
  display: none;
}

.sd-strip-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--sd-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border-radius: 2px;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background var(--t-fast);
}

.sd-strip-btn:hover { background: var(--sd-navy); color: #fff; }

/* Small tablet: 2 pills */
@media (max-width: 991.98px) {
  .sd-strip-tags .sd-strip-tag:nth-child(n+3) {
    display: none;
  }
  .sd-strip-tags .sd-strip-tag {
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .sd-strip-inner { padding: 18px var(--gutter); gap: 14px; }
  .sd-strip-tags { display: none; }
}

@media (max-width: 480px) {
  .sd-strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sd-strip-btn { align-self: flex-start; }
}

/* Home: Novinky strip → brand story with no gap (preview_1: strip then .story) */
body#index #main .page-footer {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#index section.sd-strip {
  margin-bottom: 0 !important;
}

/* All pages: the footer wraps the full-bleed white brand-story (.sd-story).
   The footer's own top padding + border-top render its dark navy bg as a
   horizontal line above the white box. Zero them everywhere so the white
   brand-story sits flush to the footer top on every page (home, category,
   product detail, CMS, etc.). */
#footer {
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
}

#footer > .container {
  padding-top: 0 !important;
}


/* ============================================================
   3. BRAND-STORY — preview_1 .story  (rendered inside #custom-text)
   ============================================================ */
#footer #custom-text .sd-story {
  /* Full-bleed white band: break out of .container, span full viewport.
     Use dvw (not vw) so width excludes scrollbar gutter — avoids ~15px h-scroll. */
  width: 100dvw;
  max-width: 100dvw;
  position: relative;
  left: 50%;
  margin-left: -50dvw;
  /* Inner content capped to ~1216px so cols = 580px @1440 (preview 580px).
     Floor 40px gives ≈689px inner @768 and ≈296px @375, matching preview. */
  padding: clamp(40px, 6vw, 64px) max(40px, calc((100vw - 1216px) / 2));
  background: var(--sd-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  text-align: left;
  color: var(--sd-text);
}

#footer #custom-text .sd-story .sd-story-eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-red);
  margin: 0;
}

#footer #custom-text .sd-story .sd-story-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.22;
  color: var(--sd-navy);
  margin: 0;
  border: none;          /* override footer h2 border rules */
  padding: 0;
}

#footer #custom-text .sd-story .sd-story-lead {
  color: var(--sd-text-muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}

#footer #custom-text .sd-story .sd-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: -webkit-fit-content;
  width: fit-content;
  margin-top: 8px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  border-radius: 2px;
  background: var(--sd-navy);
  color: var(--sd-white);
  text-decoration: none;
  transition: background var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}

#footer #custom-text .sd-story .sd-story-cta:hover {
  background: var(--sd-red);
  transform: translateY(-2px);
}

/* Right column — dark ink visual box with red top stripe and CSG logo */
#footer #custom-text .sd-story .sd-story-visual {
  position: relative;
  background: var(--sd-ink);
  border-radius: var(--radius, 6px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#footer #custom-text .sd-story .sd-story-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--sd-red);
}

#footer #custom-text .sd-story .sd-story-visual .sd-logo {
  height: 62px;
  width: auto;
  color: #fff;
}

@media (max-width: 900px) {
  #footer #custom-text .sd-story {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* Stack visual below text (visible) — preview spec; do not hide */
  #footer #custom-text .sd-story .sd-story-visual {
    display: flex;
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  #footer #custom-text .sd-story { gap: 12px; }
}

/* Mobile: hide the dark CSG visual box — text + CTA only */
@media (max-width: 767px) {
  #footer #custom-text .sd-story .sd-story-visual {
    display: none !important;
  }

  #footer #custom-text .sd-story {
    padding-bottom: clamp(28px, 5vw, 40px);
  }
}

/* ---- _home-intro.css ---- */
/* ============================================================
   _home-intro.css — CSG / Senza
   Homepage intro (.sd-home-intro) — index.tpl block sd_home_intro.
   The page's only textual <h1> plus one line on what the shop is.
   Sits between the hero slider and the category tiles; same type
   system as the category header (eyebrow + Oswald display heading).
   Also: compact category header on paginated listings (.is-paged).
   ============================================================ */
.sd-home-intro {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter) 0;
  background: var(--sd-white);
}

.sd-home-intro .sd-home-intro-inner {
  max-width: 760px;
}

.sd-home-intro .eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sd-red);
  margin: 0;
}

.sd-home-intro .sd-home-intro-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--sd-text);
  margin: 8px 0 12px;
}

.sd-home-intro .sd-home-intro-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--sd-text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .sd-home-intro { padding-top: 24px; }
  .sd-home-intro .sd-home-intro-text { font-size: 1rem; }
}

/* Paginated listing (page 2+): heading only, no description/chips → tighter band. */
body.sd-product-listing #js-product-list-header .sd-cathead.is-paged .sd-cathead-inner {
  padding-top: 28px;
  padding-bottom: 24px;
}
body.sd-product-listing #js-product-list-header .sd-cathead.is-paged h1 {
  margin-bottom: 0 !important;
}

/* ---- _redesign-logo.css ---- */
/* ============================================================
   CSG official logo wiring (Phase 1)
   Scoped so it does not interfere with _header-nav.css.
   Letters inherit `color` (currentColor); bracket stays CSG red.
   ============================================================ */

/* Header (white main bar) → ink letters, ~30px to match prototype */
#_desktop_logo .sd-logo-link { display: inline-flex; line-height: 1; color: var(--sd-text, #1b1f25); overflow: visible; max-width: 100%; }

/* max-width on the SVG alone does nothing: it resolves against .sd-mark, which is
   inline-flex and therefore shrink-to-fit, so it just grows to the logo's intrinsic
   width and the cap never binds. The whole chain from the column down needs a limit. */
#_desktop_logo .sd-mark { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; color: inherit; overflow: visible; }

/* The Senza Dubbio wordmark is ~158px at 30px tall — 1.8x the width of the CSG mark it
   replaced, and at the md breakpoint (992px) the logo column is itself only 158px. That
   is an exact fit with zero slack, so anything that nudges it (a font swap, a longer
   brand, a tweak to the column) would push the brand out of its column and shove the
   nav off the row. max-width caps it at the column and height:auto lets it scale down
   proportionally instead of spilling; max-height keeps the normal size everywhere else.
   `flex: none` is deliberately NOT set here — it would prevent exactly that shrinking. */
#_desktop_logo .sd-logo {
  height: auto;
  max-height: 30px;
  width: auto;
  max-width: 100%;
  /* Without this the SVG keeps its 30px height while max-width squeezes the width,
     and the wordmark renders horizontally squashed rather than smaller. The ratio is
     the viewBox of sd-logo.tpl (179.9167 x 34.219555). */
  aspect-ratio: 179.9167 / 34.219555;
  display: block;
  overflow: visible !important;
}
#_desktop_logo .logo-h1 { margin: 0; line-height: 1; overflow: visible; }

/* Footer / any dark surface → white letters */
.footer .sd-logo-link,
.custom-footer .sd-logo-link { display: inline-block; line-height: 1; color: #fff; }
.footer .sd-logo,
.custom-footer .sd-logo { height: 34px; width: auto; display: block; overflow: visible; }

/* Mobile logo container — inline CSG SVG (white) */
#_mobile_logo .sd-logo { height: 30px; width: auto; overflow: visible; }

/* ---- _footer.css ---- */
/* ============================================================
   CSG / Senza — Footer  (prototype: preview_1.html)
   Slim two-column footer on ink, with a 4px CSG-red top edge and
   a single copyright line. All overrides scoped to .custom-footer
   so we keep the child-theme markup and beat legacy rules.
   ============================================================ */

/* The footer container surface. Override legacy padding-top:4.5rem so the
   red top edge sits flush. Scope high enough to beat _legacy.css. */
.footer-container,
body .footer-container {
  background: var(--sd-ink, #111316);
  color: #aeb2b7;
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-top: 0;
  padding: 0;
}

/* Hook rows (displayFooter / displayFooterAfter) render whitespace-only — :empty
   does not match, so hide any row that does not contain our custom footer. */
.footer-container .container > .row:not(:has(.custom-footer)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* The custom footer block becomes the full slim footer.
   Match legacy selector depth (.footer-container .container .row .custom-footer)
   and beat its !important background + center alignment. */
/* Full-width footer band: a clean edge-to-edge red top rule over a full-width
   ink background (overrides the legacy .footer-container padding-top gap and
   moves the red accent off the inset .custom-footer so it spans the viewport). */
.footer-container {
  background-color: var(--sd-ink, #111316);
  border-top: 4px solid var(--sd-red);
  padding-top: 0;
}

.footer-container .container .row .custom-footer,
.footer-container .custom-footer {
  background-color: var(--sd-ink, #111316) !important;
  border-top: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  color: #aeb2b7;
  text-align: left;
  position: static;
}

/* Beat the stale legacy footer styling in _hero-layout.css
   (`#footer .custom-footer { text-align:center }` + `.custom-footer{
   align-items:center; flex-direction:column }`) which has id-level specificity
   and was centering the brand column. Let the inner two-column grid govern
   layout and keep everything left-aligned. */
#footer .footer-container .custom-footer {
  display: block;
  text-align: left;
}

/* TOP — two-column grid */
.footer-container .custom-footer .sd-foot-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 60px;
  padding: 48px var(--gutter) 36px;
}

/* Brand column */
.footer-container .custom-footer .sd-foot-brand .sd-foot-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
}
.footer-container .custom-footer .sd-foot-brand .sd-foot-logo .sd-logo-link { color: #fff; line-height: 0; display: inline-flex; }
.footer-container .custom-footer .sd-foot-brand .sd-foot-logo .sd-logo-link:hover,
.footer-container .custom-footer .sd-foot-brand .sd-foot-logo .sd-logo-link:focus-visible {
  transform: none !important;
  color: #fff;
}
.footer-container .custom-footer .sd-foot-brand .sd-foot-logo .sd-logo { height: 30px; width: auto; display: block; }
.footer-container .custom-footer .sd-foot-brand .brdiv {
  width: 1px;
  height: 30px;
  background: #fff;
  opacity: 0.25;
  display: inline-block;
}
.footer-container .custom-footer .sd-foot-brand .brsub {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 500;
  max-width: 96px;
  line-height: 1.35;
  color: #fff;
}
.footer-container .custom-footer .sd-foot-brand .sd-foot-blurb {
  margin: 18px 0 16px;
  line-height: 1.7;
  max-width: 380px;
  color: #aeb2b7;
}


/* Contact column */
.footer-container .container .row .custom-footer .sd-foot-contact,
.footer-container .custom-footer .sd-foot-contact { justify-self: end; text-align: left; }
.footer-container .container .row .custom-footer .sd-foot-contact h4,
.footer-container .custom-footer .sd-foot-contact h4 {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}
.footer-container .container .row .custom-footer .sd-foot-contact p,
.footer-container .custom-footer .sd-foot-contact p { margin: 0 0 10px; line-height: 1.7; color: #aeb2b7; font-size: 0.875rem; }
.footer-container .container .row .custom-footer .sd-foot-contact a,
.footer-container .custom-footer .sd-foot-contact a { color: #aeb2b7; text-decoration: none; transition: color var(--t-fast); }
.footer-container .container .row .custom-footer .sd-foot-contact a:hover,
.footer-container .custom-footer .sd-foot-contact a:hover { color: #fff; }
.footer-container .container .row .custom-footer .sd-foot-contact .sd-foot-hours,
.footer-container .custom-footer .sd-foot-contact .sd-foot-hours { color: #80858b; }

/* BOTTOM — single copyright line.
   Match legacy depth + override the .custom-footer span { font-size:.7em } rule. */
.footer-container .container .row .custom-footer .sd-foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px var(--gutter);
  font-size: 13px;
  color: #80858b;
}
.footer-container .container .row .custom-footer .sd-foot-bottom span {
  font-size: 13px;
  color: #80858b;
}
.footer-container .container .row .custom-footer .sd-foot-bottom a { color: #80858b; text-decoration: none; }
.footer-container .container .row .custom-footer .sd-foot-bottom a:hover { color: #fff; }

/* Responsive: tighter two-column layout on tablet */
@media (max-width: 980px) {
  .footer-container .custom-footer .sd-foot-top {
    grid-template-columns: auto 1fr;
    gap: 24px 20px;
    padding: 36px var(--gutter) 28px;
  }
  .footer-container .custom-footer .sd-foot-contact { justify-self: start; }
}

@media (max-width: 767px) {
  /* Beat _hero-layout.css #footer .custom-footer { padding/margin !important } */
  #footer .footer-container .custom-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    gap: 0 !important;
  }

  .footer-container .custom-footer .sd-foot-top {
    padding: 6px var(--gutter) 4px;
    gap: 8px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .footer-container .custom-footer .sd-foot-brand {
    align-self: start;
  }

  .footer-container .custom-footer .sd-foot-contact {
    justify-self: start;
    min-width: 0;
  }

  .footer-container .custom-footer .sd-foot-brand .sd-foot-blurb {
    display: none;
  }

  /* Simplified footer logo: CSG mark only */
  .footer-container .custom-footer .sd-foot-brand .sd-foot-logo .brdiv,
  .footer-container .custom-footer .sd-foot-brand .sd-foot-logo .brsub {
    display: none !important;
  }

  .footer-container .custom-footer .sd-foot-brand .sd-foot-logo {
    gap: 0;
  }

  .footer-container .custom-footer .sd-foot-brand .sd-foot-logo .sd-logo {
    height: 26px;
  }

  .footer-container .custom-footer .sd-foot-contact h4 {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .footer-container .custom-footer .sd-foot-contact p {
    margin-bottom: 5px;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .footer-container .container .row .custom-footer .sd-foot-bottom {
    padding: 2px var(--gutter) 0;
    font-size: 11px;
  }

  .footer-container .container .row .custom-footer .sd-foot-bottom span {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* "Napište nám" — the same red pill as "Rychlá poptávka" in the header bar. */
.footer-container .container .row .custom-footer .sd-foot-contact a.sd-foot-cta,
.footer-container .custom-footer .sd-foot-contact a.sd-foot-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--sd-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
  transition: filter var(--t-fast);
}
.footer-container .container .row .custom-footer .sd-foot-contact a.sd-foot-cta:hover,
.footer-container .custom-footer .sd-foot-contact a.sd-foot-cta:hover { color: #fff; filter: brightness(1.12); }

/* ---- _product.css ---- */
/* ============================================================
   CSG / Senza — Product detail page (PDP)
   Scoped under .sd-pdp (and sibling PDP sections) so these
   rules never leak to other pages. Ported from preview_3.html,
   mapped to canonical tokens from _tokens.css.
   ============================================================ */

/* ---------- page wrapper / 2-col grid ---------- */
#main .sd-pdp.product-container {
  display: grid;
  /* minmax(0,…) so the fr ratio is honored — otherwise the info column's
     min-content (warehouse table + buy row) forces it wider and squeezes the
     gallery, shrinking the product image. With minmax the gallery gets its
     ~1.15fr share and the image is large (per preview_3). Raised from 1.05fr:
     the thumb rail + gap costs the cover 124px, so the gallery column needs the
     extra room to keep the main image genuinely large (486 → ~545px). */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 54px;
  align-items: start;
  max-width: var(--container, 1280px);
  /* Tighter top gap below the breadcrumb (was 40 + the breadcrumb's 24 margin
     = 64px; preview_3 ≈ 32). */
  margin: 28px auto 20px;
  padding-inline: var(--gutter, 32px);
}
/* neutralise Bootstrap col widths/floats inside the grid */
#main .sd-pdp.product-container > .col-md-6 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: none;
  float: none;
  padding: 0;
}
/* Bootstrap .row negative margins widen past the viewport — body uses
   overflow-x:hidden so the right edge clips titles and the stock table. */
#main .sd-pdp.product-container.row {
  margin-inline: auto;
  --bs-gutter-x: 0;
}
#main .sd-pdp.product-container .product-information {
  min-width: 0;
  max-width: 100%;
}

/* ---------- gallery ---------- */
/* The PrestaShop gallery wrapper (.page-content) ships max-width:452px, which
   capped the image well below the gallery column width. Uncap it (within the
   PDP) so the main image fills the ~1.05fr column → noticeably bigger. */
#main .sd-pdp .page-content {
  max-width: none !important;
  width: 100%;
  /* Rail geometry, declared once here because three things depend on it: the
     grid track, the rail's height cap, and the offset that keeps the product
     flags over the cover instead of over the rail. */
  --sd-rail: 108px;
  --sd-rail-gap: 16px;
}
.sd-pdp .images-container {
  display: grid;
  /* 108px rail: at 78px the tall runbott bottles (a ~24%-wide sliver of the
     square source photo) were barely legible in the thumbs. */
  grid-template-columns: var(--sd-rail, 108px) 1fr;
  gap: var(--sd-rail-gap, 16px);
  align-items: start;
  width: 100%;
  /* Lets the rail cap its height against this element's own width — see the
     100cqw calc on .js-qv-mask. Inline-size containment only; the grid still
     lays out normally, and the width comes from the parent, so no circularity. */
  container-type: inline-size;
}
.sd-pdp .product-cover {
  position: relative;
  order: 2;
  border: 1px solid var(--sd-gray-200);
  border-radius: 6px;
  overflow: hidden;
  background: var(--sd-gray-100);
  aspect-ratio: 1 / 1;
  margin: 0;
}
.sd-pdp .product-cover picture,
.sd-pdp .product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sd-pdp .product-cover .layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(17, 19, 22, .12);
  transition: opacity var(--t-fast);
  cursor: zoom-in;
}
.sd-pdp .product-cover:hover .layer { opacity: 1; }
.sd-pdp .product-cover .layer .zoom-in { color: #fff; }

/* Thumb rail, golf-style: capped at the cover's height and scrolled, rather
   than running past the bottom of the image (9 images overhung it by 132px).
   The cover is square and fills the 1fr track, so its height is the container
   width minus the rail and gap — hence 100cqw - 124px. Fallback for browsers
   without container queries is a plain px cap.
   `#main .images-container .js-qv-mask.scroll` in theme.css sets
   `width: calc(100% - 60px)`, which is meant for the classic HORIZONTAL strip
   (60px of side room for its arrows). theme.js adds `.scroll` whenever the
   images overflow, and in this vertical rail it silently ate 60 of the 108px —
   the real reason the thumbnails still looked tiny after widening the column. */
/* The scroller (arrows + rail) is the grid item; the rail scrolls inside it. */
.sd-pdp .sd-thumbs-scroller {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  /* height is driven by the rail's cap below, so the down arrow sits directly
     under the last visible thumb rather than at the bottom of the grid row */
  align-self: start;
}
.sd-pdp .js-qv-mask.mask,
#main .sd-pdp .images-container .js-qv-mask.scroll {
  width: 100%;
  margin: 0;
  /* cap minus the two arrow buttons (26px each) and their 8px gaps */
  max-height: 418px;
  max-height: calc(100cqw - var(--sd-rail, 108px) - var(--sd-rail-gap, 16px) - 68px);
  overflow-x: hidden;
  overflow-y: auto;
  /* slim scrollbar alongside the arrows — the arrows are the obvious control,
     this just shows position */
  scrollbar-width: thin;
  scrollbar-color: var(--sd-gray-300) transparent;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
/* No overflow → no arrows → the rail gets the full cover height back. */
.sd-pdp .sd-thumbs-scroller:not(.has-overflow) .js-qv-mask.mask,
#main .sd-pdp .images-container .sd-thumbs-scroller:not(.has-overflow) .js-qv-mask.scroll {
  max-height: 486px;
  max-height: calc(100cqw - var(--sd-rail, 108px) - var(--sd-rail-gap, 16px));
}

/* Arrow buttons are unscoped: the class is unique to this component and the
   quickview reuses the same rail markup. */
.sd-thumbs-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 26px;
  padding: 0;
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius-sm);
  background: var(--sd-gray-100);
  color: var(--sd-ink);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.sd-thumbs-nav .material-icons { font-size: 20px; line-height: 1; }
.sd-thumbs-nav:hover:not(:disabled) {
  background: var(--sd-ink);
  border-color: var(--sd-ink);
  color: #fff;
}
.sd-thumbs-nav:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 2px;
}
.sd-thumbs-nav:disabled {
  opacity: .35;
  cursor: default;
}
.sd-thumbs-nav[hidden] { display: none; }
.sd-pdp .js-qv-mask.mask::-webkit-scrollbar { width: 6px; }
.sd-pdp .js-qv-mask.mask::-webkit-scrollbar-track { background: transparent; }
.sd-pdp .js-qv-mask.mask::-webkit-scrollbar-thumb {
  background: var(--sd-gray-300);
  border-radius: 999px;
}
.sd-pdp .js-qv-mask.mask::-webkit-scrollbar-thumb:hover { background: var(--sd-gray-500); }
.sd-pdp .product-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  /* room for the scrollbar so it never sits on top of a thumb */
  padding: 0 8px 0 0;
}
.sd-pdp .product-images .thumb-container { margin: 0; }
.sd-pdp .product-images .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--sd-gray-200);
  border-radius: 4px;
  background: var(--sd-gray-100);
  cursor: pointer;
  transition: border-color var(--t-fast);
  margin: 0;
}
.sd-pdp .product-images .thumb:hover { border-color: var(--sd-text); }
.sd-pdp .product-images .thumb.selected,
.sd-pdp .product-images .thumb.js-thumb-selected {
  border-color: var(--sd-ink);
}
.sd-pdp .scroll-box-arrows { display: none; }

/* flags / Top badge over cover */
/* Selector carries `ul…js-product-flags` to outrank the listing-miniature rule
   in _featured.css (0,2,1), which pins the badge to the gallery's top-left. */
.sd-pdp ul.product-flags.js-product-flags,
.sd-pdp .product-flags {
  position: absolute;
  top: 16px;
  /* The flags <ul> is a sibling of .images-container, so it anchors to
     .page-content — i.e. to the thumb rail, not the cover. Clear the rail so the
     badge sits over the image as intended; it was landing on the first thumb,
     and once the rail grew arrows it covered the up button outright. */
  left: calc(var(--sd-rail, 108px) + var(--sd-rail-gap, 16px) + 16px);
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.sd-pdp .product-flags .product-flag:not(.on-demand) {
  background: var(--sd-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  line-height: 1;
}
.sd-pdp .product-flags .product-flag.on-demand {
  background-color: #1E5FAA !important;
  background: #1E5FAA !important;
  color: #fff !important;
}
/* The cover lives in col 1; the flags <ul> is a sibling earlier in DOM.
   Make its containing column the positioning context. */
.sd-pdp .page-content { position: relative; }

/* ---------- info column ---------- */
.sd-pdp .sd-eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sd-red);
  margin-bottom: 10px;
  min-height: 1px;
}
.sd-pdp .sd-eyebrow:empty { display: none; }
/* GAP 1 — Division tags in PDP eyebrow: override module front.css defaults with
   higher-specificity scoped rules so the flex row, gap, font, dot sizes and colors
   appear correctly in the PDP title area. The eyebrow margin-bottom is collapsed when
   .sd-divtags is present; the divtags block itself carries the 10px gap before h1. */
.sd-pdp .sd-eyebrow:has(.sd-divtags) { margin-bottom: 0; }
.sd-pdp .sd-eyebrow .sd-divtags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 10px;
}
.sd-pdp .sd-eyebrow .sd-divtag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--sd-text-muted);
}
.sd-pdp .sd-eyebrow .sd-divtag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.sd-pdp .sd-eyebrow .sd-divtag.is-defence .dot { background: #C0392B; }
.sd-pdp .sd-eyebrow .sd-divtag.is-ammo .dot    { background: #B8860B; }
.sd-pdp .sd-eyebrow .sd-divtag.is-default .dot { background: var(--sd-red); }
.sd-pdp .sd-eyebrow a.sd-divtag {
  text-decoration: none;
  color: inherit;
}
.sd-pdp .sd-eyebrow a.sd-divtag:hover {
  color: var(--sd-ink);
  text-decoration: underline;
}

.sd-pdp h1.h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
  color: var(--sd-ink);
  margin: 0 0 14px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sd-pdp .product-information { font-size: 15px; }

/* price */
.sd-pdp .product-prices { margin: 0 0 18px; }
.sd-pdp .product-prices .product-discount { margin-bottom: 4px; }
.sd-pdp .product-prices .regular-price {
  color: var(--sd-text-muted);
  text-decoration: line-through;
  font-size: 16px;
}
.sd-pdp .product-prices .current-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.sd-pdp .product-prices .current-price-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--sd-ink);
  line-height: 1;
}
.sd-pdp .product-prices .discount {
  background: var(--sd-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 2px;
}
.sd-pdp .product-prices .tax-shipping-delivery-label {
  font-size: 13px;
  color: var(--sd-text-muted);
  margin-top: 6px;
}
/* D4 — "bez DPH" inline tax label */
.sd-pdp .product-prices .sd-tax-label {
  font-size: 13px;
  color: var(--sd-text-muted);
  align-self: baseline;
  font-family: var(--font-body);
  font-weight: 400;
  margin-left: 6px;
}
/* Per-product price note ("od 500 ks") — sits after the tax label on the same
   baseline; .current-price is a flex row, so the gap already spaces it.
   Deliberately NOT scoped to .sd-pdp: product-prices.tpl is also included by
   quickview.tpl, which renders outside that wrapper. */
.product-prices .sd-price-note {
  font-size: 13px;
  color: var(--sd-text-muted);
  align-self: baseline;
  font-family: var(--font-body);
  font-weight: 400;
}
/* D5 — delivery text */
.sd-pdp .product-prices .delivery-information {
  display: block;
  font-size: 13px;
  color: var(--sd-text-muted);
  margin-top: 4px;
  font-family: var(--font-body);
}

/* short description */
.sd-pdp .sd-pdesc {
  color: #42464b;
  margin: 0 0 24px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sd-pdp .sd-pdesc p { margin: 0; }

/* ---------- size selector (native select restyle) ---------- */
.sd-pdp .product-variants { margin: 0 0 22px; }
.sd-pdp .product-variants-item { margin-bottom: 18px; }
.sd-pdp .product-variants-item .control-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--sd-ink);
  margin-bottom: 10px;
}
.sd-pdp .product-variants .form-control-select {
  height: 48px;
  border: 1px solid var(--sd-gray-200);
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--sd-ink);
  padding: 0 38px 0 14px;
  min-width: 120px;
  max-width: 220px;
  cursor: pointer;
  background: #fff;
}
/* This select is only ever actually SEEN when it has too many options for the
   JS pill treatment (product.js skips pill-building above 15 options - e.g.
   RICHARTZ's merged Karl/Fred, 40-64 themed variants); every other product
   hides it behind .sd-sizes pills. A <select>'s own background-image is
   unreliable across browsers even with -webkit-appearance:none (confirmed:
   computed style reported the image correctly, nothing painted) - so for
   these large groups product.js wraps the select and inserts a real arrow
   element instead of trusting the select to render one itself. */
.sd-pdp .sd-select-wrap { position: relative; display: inline-block; }
.sd-pdp .sd-select-wrap .form-control-select { display: block; }
.sd-pdp .sd-select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 12px;
  height: 8px;
  margin-top: -4px;
  pointer-events: none;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* progressively-enhanced size pills (JS injects .sd-sizes) */
.sd-pdp .product-variants.has-sd-pills select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sd-pdp .sd-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-pdp .sd-size {
  min-width: 48px;
  min-height: 50px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--sd-gray-200);
  border-radius: 3px;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--sd-ink);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.sd-pdp .sd-size:hover { border-color: var(--sd-ink); }
.sd-pdp .sd-size.on {
  background: var(--sd-ink);
  color: #fff;
  border-color: var(--sd-ink);
}

/* ---------- capacity selector (sdstorefront displaySdCapacityRow hook) ----------
   Same visual language as the size pills above: sibling FIXED power banks
   that only differ by mAh, linked from the current PDP. The current
   capacity renders as a non-interactive pill (.on), like a selected size. */
.sd-pdp .sd-capacity-row { margin-bottom: 18px; }
.sd-pdp .sd-capacities { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-pdp .sd-capacity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid var(--sd-gray-200);
  border-radius: 3px;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--sd-ink);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.sd-pdp a.sd-capacity:hover { border-color: var(--sd-ink); }
.sd-pdp .sd-capacity.on {
  background: var(--sd-ink);
  color: #fff;
  border-color: var(--sd-ink);
  cursor: default;
}

/* ---------- warehouse stock block (sdstorefront hook) ---------- */
:is(.sd-pdp, .quickview) .sd-stock {
  border: 1px solid var(--sd-gray-200);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 24px;
  /* Pin the base font/color so the table reads identically in both contexts —
     the quick-view modal sets a 16px/ink base that the PDP (.product-information
     15px) doesn't, which is the only delta that leaked into the stock table. */
  font-size: 14px;
  line-height: 1.45;
  color: var(--sd-text);
  background: #fff;
}
:is(.sd-pdp, .quickview) .sd-stock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sd-gray-100);
  padding: 11px 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--sd-ink);
  border-bottom: 1px solid var(--sd-gray-200);
}
:is(.sd-pdp, .quickview) .sd-stock__head .ic { color: var(--sd-red); flex: none; }
:is(.sd-pdp, .quickview) .sd-stock__size {
  margin-left: auto;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--sd-text-muted);
}
:is(.sd-pdp, .quickview) .sd-stock__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sd-gray-200);
}
:is(.sd-pdp, .quickview) .sd-stock__row:last-child { border-bottom: none; }
:is(.sd-pdp, .quickview) .sd-stock__loc {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: var(--sd-text);
}
:is(.sd-pdp, .quickview) .sd-stock__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #1d7a3d;
  font-weight: 500;
}
:is(.sd-pdp, .quickview) .sd-stock__status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #1d7a3d; display: inline-block; flex: none;
}
:is(.sd-pdp, .quickview) .sd-stock__qty {
  width: 80px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--sd-ink);
  white-space: nowrap;
}
:is(.sd-pdp, .quickview) .sd-stock--order-mode .sd-stock__row { gap: 10px; }
:is(.sd-pdp, .quickview) .sd-stock__avail {
  font-size: 13px;
  color: var(--sd-text-muted);
  white-space: nowrap;
  min-width: 88px;
  text-align: right;
}
:is(.sd-pdp, .quickview) .sd-stock--order-mode .sd-stock__status {
  min-width: 88px;
}
:is(.sd-pdp, .quickview) .js-product-add-to-cart.sd-warehouse-mode .product-quantity.sd-buybar {
  /* width/box-sizing are now unconditional on .sd-buybar above */
}
/* Warehouse per-location mode: hide the top-level global qty stepper so the
   add-to-cart button expands to fill the full buy-bar width, aligning flush
   with the left and right edges of the warehouse table above it.
   Each warehouse row retains its own −|n|+ stepper (functional). */
:is(.sd-pdp, .quickview) .sd-buybar.sd-buybar--warehouse-hidden > .sd-qty {
  display: none !important;
}
:is(.sd-pdp, .quickview) .sd-stock__row.is-zero .sd-stock__loc,
:is(.sd-pdp, .quickview) .sd-stock__row.is-zero .sd-stock__status { color: var(--sd-text-muted); }
:is(.sd-pdp, .quickview) .sd-stock__row.is-zero .sd-stock__status i { background: #c9ccd0; }
:is(.sd-pdp, .quickview) .sd-stock__total {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--sd-gray-100);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--sd-ink);
  border-top: 1px solid var(--sd-gray-200);
}
:is(.sd-pdp, .quickview) .sd-stock__total b { font-weight: 700; }

/* ---------- buybar + pre-order ---------- */
/* Scoped to :is(.sd-pdp, .quickview): the AJAX quick-view modal renders the
   SAME .sd-buybar markup as the PDP but isn't wrapped in .sd-pdp, so without
   this it fell back to bare bootstrap (misaligned qty/add/wish). :is() keeps the
   specificity identical to the old .sd-pdp prefix. */
:is(.sd-pdp, .quickview) .product-add-to-cart { margin: 0; }
:is(.sd-pdp, .quickview) .sd-qty-label { display: none; }
:is(.sd-pdp, .quickview) .sd-buybar {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin: 0 0 22px;
  width: 100%;
  box-sizing: border-box;
}
/* Polish2/3: qty + add-to-cart share one 56px height, all centered and
   top/bottom aligned. align-self:center keeps each control vertically centered
   in the row regardless of intrinsic height. (The wishlist control this row
   used to carry is gone — see product-add-to-cart.tpl.) */
:is(.sd-pdp, .quickview) .sd-buybar {
  align-items: center !important;
  /* Collapse the legacy .product-quantity height:64px!important so the row is
     exactly 56px — otherwise centering leaves the controls ~4px apart. */
  height: 56px !important;
  min-height: 56px !important;
}
/* The .clearfix pseudo-elements become stray flex items (a phantom gap at the
   end of the row) and stop add-to-cart from filling — neutralize them so qty +
   add-to-cart span exactly the column width, flush to the table edges. */
:is(.sd-pdp, .quickview) .sd-buybar::before,
:is(.sd-pdp, .quickview) .sd-buybar::after {
  content: none !important;
  display: none !important;
}
:is(.sd-pdp, .quickview) .sd-buybar > .sd-qty,
:is(.sd-pdp, .quickview) .sd-buybar > .sd-add {
  height: 56px !important;
  min-height: 56px !important;
  box-sizing: border-box;
  align-self: center !important;
  /* Zero the legacy 8px bottom margin on qty/add — with center alignment its
     margin-box (64px) was shifting the content up ~4px. */
  margin: 0 !important;
}
:is(.sd-pdp, .quickview) .sd-buybar > .sd-add .add-to-cart {
  height: 56px !important;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
:is(.sd-pdp, .quickview) .sd-buybar > .sd-qty input[type="number"],
:is(.sd-pdp, .quickview) .sd-buybar > .sd-qty .sd-qty-btn { height: 100%; }

/* Polish3c — let add-to-cart shrink so the buy row never overflows its column
   (its min-content width used to push the row ~25px past the table's right
   edge). With min-width:0, flex:1 shrinks it to exactly fill the remaining space. */
:is(.sd-pdp, .quickview) .sd-buybar > .sd-add,
:is(.sd-pdp, .quickview) .sd-buybar > .sd-add .add-to-cart {
  min-width: 0 !important;
}
/* _legacy.css sets .product-quantity button.add-to-cart { margin-left:1.5rem; width:283px }.
   The margin-left was never overridden for the button itself (only the .sd-add wrapper had
   margin:0), so in warehouse mode the button started 24 px indented from the container's left
   edge instead of being flush with the stock table above it.  Width:auto removes the fixed-px
   constraint so flex:1 can size the button freely. */
:is(.sd-pdp, .quickview) .sd-buybar > .sd-add .add-to-cart {
  margin: 0 !important;
  width: auto !important;
}

/* Polish3c — clean quantity stepper: strip the legacy bootstrap-touchspin
   vertical spinner (the dark up/down box) + wrapper chrome, leaving − | n | +. */
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .input-group-btn-vertical,
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .bootstrap-touchspin-prefix,
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .bootstrap-touchspin-postfix {
  display: none !important;
}
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .bootstrap-touchspin {
  display: flex;
  align-items: center;
  width: auto;
  /* Match the container height — the input rendered 64px and overflowed the
     56px box, hiding the container's top/bottom border behind the number. */
  height: 100%;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  padding: 0;
  margin: 0;
}
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .bootstrap-touchspin input[type="number"] {
  width: 48px;
  /* !important + min-height:0 — the legacy .product-quantity input min-height
     made it 64px, overflowing the 56px box and hiding the top/bottom border. */
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  border: 0 !important;
  text-align: center;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  box-shadow: none !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .bootstrap-touchspin input[type="number"]::-webkit-outer-spin-button,
:is(.sd-pdp, .quickview) .sd-buybar .sd-qty .bootstrap-touchspin input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
/* No "like"/favourite control anywhere on the shop. blockwishlist is still
   installed (it loads its JS on every page), so this hides any button it or a
   module update tries to render — in the buy row, on listing cards, in
   quickview — rather than leaving a control that saves nothing. */
.wishlist-button-add,
.wishlist-button,
.wishlist-add-to,
.wishlist-button-product,
.product-miniature .wishlist-button,
.sd-wish {
  display: none !important;
}
:is(.sd-pdp, .quickview) .sd-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--sd-gray-200);
  border-radius: 2px;
  flex: none;
}
:is(.sd-pdp, .quickview) .sd-qty-btn {
  width: 44px;
  background: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--sd-ink);
  line-height: 1;
}
:is(.sd-pdp, .quickview) .sd-qty-btn:hover { color: var(--sd-red); }
:is(.sd-pdp, .quickview) .sd-qty input[type="number"],
:is(.sd-pdp, .quickview) .sd-qty input.input-group {
  width: 50px;
  text-align: center;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  appearance: textfield;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  background: #fff;
  height: 48px;
  padding: 0;
}
:is(.sd-pdp, .quickview) .sd-qty input[type="number"]::-webkit-outer-spin-button,
:is(.sd-pdp, .quickview) .sd-qty input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

:is(.sd-pdp, .quickview) .sd-add { flex: 1; display: flex; }
:is(.sd-pdp, .quickview) .sd-add .add-to-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sd-red);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 15px 30px;
  cursor: pointer;
  transition: background var(--t-fast);
  min-height: 48px;
}
:is(.sd-pdp, .quickview) .sd-add .add-to-cart:hover { background: var(--sd-red-dark); }
:is(.sd-pdp, .quickview) .sd-add .add-to-cart[disabled] { opacity: .55; cursor: not-allowed; }
:is(.sd-pdp, .quickview) .sd-add .add-to-cart .material-icons { font-size: 18px; }

:is(.sd-pdp, .quickview) .sd-oosnote {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5e6;
  border: 1px solid #f0d49a;
  color: #8a5a00;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 13px;
  margin: 0 0 14px;
}
:is(.sd-pdp, .quickview) .sd-oosnote svg { flex: none; }

/* availability line */
.sd-pdp .product-availability {
  display: block;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
}
.sd-pdp .product-availability .product-available { color: #1d7a3d; }
.sd-pdp .product-availability .product-unavailable,
.sd-pdp .product-availability .product-last-items { color: #b45309; }
.sd-pdp .product-minimal-quantity { font-size: 13px; color: var(--sd-text-muted); }

/* ---------- notify (pre-order "Dát vědět, až bude skladem") ---------- */
.sd-pdp .product-additional-info { margin: 0 0 6px; }
.sd-pdp .sd-notify {
  background: var(--sd-gray-100);
  border: 1px solid var(--sd-gray-200);
  border-radius: 6px;
  padding: 16px;
  margin: 0 0 22px;
}
/* GAP 6 — Notify card heading: use the real .notlbl element from notify.tpl
   instead of the CSS ::before pseudo so it can be localised / screencreader-read. */
.sd-pdp .sd-notify .notlbl {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--sd-ink);
  margin-bottom: 10px;
}
.sd-pdp .sd-notify .js-mailalert { text-align: left; }
.sd-pdp .js-mailalert .form-control[type="email"] {
  border: 1px solid var(--sd-gray-200);
  border-radius: 3px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  height: 48px;
  background: #fff;
  width: 100%;
  margin-bottom: 10px;
}
.sd-pdp .js-mailalert .form-control[type="email"]:focus { outline: none; border-color: var(--sd-ink); }
.sd-pdp .js-mailalert .js-mailalert-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sd-ink);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.sd-pdp .js-mailalert .js-mailalert-add:hover { background: var(--sd-red); }
.sd-pdp .js-mailalert .alert { margin-top: 0; }

/* ---------- product details meta (data sheet inside Detaily tab) ---------- */
.sd-pdp .product-reference,
.sd-pdp .product-condition,
.sd-pdp .product-manufacturer { font-size: 14px; color: var(--sd-text-muted); margin-bottom: 6px; }
.sd-pdp .product-reference .label,
.sd-pdp .product-condition .label { color: var(--sd-text-muted); }

/* ---------- product tabs wrapper (full-width, below 2-col grid) ---------- */
/* The .tabs block is placed outside the .sd-pdp product-container row so it
   spans the full container width. The wrapper carries .sd-pdp so all existing
   tab CSS rules (scoped to .sd-pdp .tabs / .tab-content) still apply without
   any selector changes. */
.sd-product-tabs {
  max-width: var(--container, 1280px);
  margin: 0 auto;
  padding-inline: var(--gutter, 32px);
  padding-bottom: 20px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- tabs ---------- */
.sd-pdp .tabs {
  border-top: 1px solid var(--sd-gray-200);
  margin-top: 44px;
  padding-top: 40px;
}
.sd-pdp .tabs .nav-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--sd-gray-200);
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  /* Hide scrollbar on all browsers — tabs fit at every desktop/tablet width,
     and on Windows "auto" still renders a visible scrollbar track even when
     no overflow exists. Scroll remains functional for very narrow viewports. */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / old Edge */
}
.sd-pdp .tabs .nav-tabs::-webkit-scrollbar {
  display: none;               /* Chrome / Safari / Edge (Blink) */
}
.sd-pdp .tabs .nav-tabs .nav-item { margin: 0; }
.sd-pdp .tabs .nav-tabs .nav-link {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 15px;
  color: var(--sd-text-muted);
  /* Horizontal padding adds a comfortable click/tap area without shifting the
     red underline (the ::after is positioned abs left:0/right:0 relative to the
     link, so it always spans the full text width regardless of padding). */
  padding: 4px 2px 16px !important;
  position: relative;
  white-space: nowrap;
  display: block;
  transition: color var(--t-fast);
}
/* Suppress Bootstrap 4's .nav-tabs .nav-link:hover/:focus border-color rule
   (it injects a 3-sided gray border that fights our border:none base state). */
.sd-pdp .tabs .nav-tabs .nav-link:hover,
.sd-pdp .tabs .nav-tabs .nav-link:focus {
  border: none;
  outline: none;
  box-shadow: none;
}
/* Keyboard-only focus ring — :focus-visible fires for keyboard nav but NOT
   mouse clicks, so mouse users never see the blue ring. */
.sd-pdp .tabs .nav-tabs .nav-link:focus-visible {
  outline: 2px solid var(--sd-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.sd-pdp .tabs .nav-tabs .nav-link.active,
.sd-pdp .tabs .nav-tabs .nav-link:hover { color: var(--sd-ink); }
.sd-pdp .tabs .nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--sd-red);
}
.sd-pdp .tab-content { max-width: 760px; color: #42464b; }
.sd-pdp .tab-content .tab-pane { line-height: 1.7; }
.sd-pdp .tab-content .tab-pane p { margin: 0 0 12px; }

/* Bullet lists inside the Popis tab.
   theme.css strips list markers globally and only restores them under
   `.product-information .product-description` — i.e. for the teaser in the buy box.
   The description TAB sits outside .product-information, so supplier bullet lists
   rendered there as unmarked, evenly spaced lines: visually the same run-on block the
   client reported, just with line breaks. Markers go outside so wrapped lines hang. */
.sd-pdp .tab-content .tab-pane ul,
.sd-pdp .tab-content .tab-pane ol {
  padding-left: 1.25rem;
  margin: 0 0 12px;
  list-style-position: outside;
}
.sd-pdp .tab-content .tab-pane ul { list-style-type: disc; }
.sd-pdp .tab-content .tab-pane ol { list-style-type: decimal; }
.sd-pdp .tab-content .tab-pane li { margin: 0 0 4px; }

.sd-pdp .tab-content .product-features { margin: 0; }
.sd-pdp .tab-content .product-features .h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  color: var(--sd-ink);
  margin: 6px 0 8px;
}
.sd-pdp .tab-content .data-sheet {
  display: grid;
  grid-template-columns: max-content 1fr;
  margin: 0;
}
.sd-pdp .tab-content .data-sheet dt,
.sd-pdp .tab-content .data-sheet dd {
  padding: 8px 28px 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--sd-gray-200);
  margin: 0;
}
.sd-pdp .tab-content .data-sheet dt { color: var(--sd-text-muted); font-weight: 400; }

/* Data sheet: no Title Case.
   classic's theme.css sets `text-transform: capitalize` on
   `.product-features > dl.data-sheet dd.value, … dt.name`, which was written for
   English noun phrases ("Packaging Unit"). Every supplier's data sheet is Czech now,
   where title-casing is simply wrong, and it also mangles units and proper nouns:
   "Nerezová Ocel, Plast", "136 Mm X 118 Mm X 28 Mm", "237,5 G", "PR China",
   "11.99-12.75 EUR Za Kus Podle Objemu Objednávky".
   The selector below deliberately mirrors theme.css's own, so it has identical
   specificity (0,3,2) and wins purely by loading later - the custom/ layer is imported
   last. A lower-specificity selector such as `.sd-pdp .tab-content .data-sheet dt`
   (0,3,1) would NOT override it. */
.product-features > dl.data-sheet dt.name,
.product-features > dl.data-sheet dd.value {
  text-transform: none;
}

/* …except the Specific References block, whose labels are raw PrestaShop keys
   ("ean13", "upc", "mpn"). Those want to read as acronyms, not as "Ean13" (which is
   what capitalize produced) nor "ean13" (which removing it would produce). The
   sd-specific-refs class is added in templates/catalog/_partials/product-details.tpl;
   the values themselves stay untransformed. */
.product-features.sd-specific-refs > dl.data-sheet dt.name {
  text-transform: uppercase;
}
.sd-pdp .sd-shipping-pane { display: none; }
.sd-pdp .sd-shipping-pane.active,
.sd-pdp .sd-shipping-pane.in { display: block; }

/* ---------- related products row ---------- */
/* The cross-selling related block on the product page renders as .featured-products
   (from ps_crossselling hook via displayFooterProduct). Target that selector on
   body#product so these rules only apply on product pages and don't affect the
   homepage featured-products block. NOTE: PrestaShop sets id="product" on body,
   NOT class="product" — body.product never matches. */

/* Gray surface band behind related products section — full viewport width.
   The ::before trick fails here because section.featured-products keeps a white
   background (from _hero-layout.css), which paints over the pseudo-element. */
body#product .featured-products {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: var(--sd-gray-100);
  padding-top: 40px;
  padding-bottom: 56px;
  padding-inline: max(40px, calc((100vw - 1216px) / 2));
  margin-top: 0;
  overflow: visible;
}

/* Section heading — apply sd-related-title styles to the existing h2.products-section-title */
body#product .featured-products .products-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sd-ink);
  text-align: left;
  margin: 0 0 0;
}
body#product .featured-products .products-section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  background: var(--sd-red);
  margin-top: 12px;
  margin-bottom: 28px;
}

/* 4-column grid — neutralise Bootstrap .row negative margins and cols */
body#product .featured-products .products.row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0 !important;
}
body#product .featured-products .products.row .col-xs-12,
body#product .featured-products .products.row .col-sm-6,
body#product .featured-products .products.row .col-lg-4,
body#product .featured-products .products.row .col-xl-3 {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  flex: none !important;
}

/* Keep .product-accessories (manual accessories) consistent if it ever renders */
.product-accessories {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: var(--sd-gray-100);
  padding-top: 40px;
  padding-bottom: 56px;
  padding-inline: max(40px, calc((100vw - 1216px) / 2));
  margin-top: 0;
  overflow: visible;
}
.product-accessories .products.row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0 !important;
}
.product-accessories .products.row .col-xs-12,
.product-accessories .products.row .col-sm-6,
.product-accessories .products.row .col-lg-4,
.product-accessories .products.row .col-xl-3 {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  flex: none !important;
}

.sd-related-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sd-ink);
  margin: 54px 0 0;
  max-width: var(--container, 1280px);
  margin-inline: auto;
  padding-inline: var(--gutter, 32px);
}
.sd-related-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  background: var(--sd-red);
  margin-top: 12px;
}

/* D7 — size label: show selected value */
.sd-pdp .product-variants-item .sd-pick {
  color: var(--sd-text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 400;
}

/* D8 — warehouse first-in-stock row highlight (no colour highlight — consistent with other rows) */

/* D13 — notify card: input + button side by side */
.sd-pdp .sd-notify .sd-notrow {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.sd-pdp .sd-notify .sd-notrow .form-control[type="email"] {
  flex: 1;
  margin-bottom: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  #main .sd-pdp.product-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .product-accessories .products.row,
  body#product .featured-products .products.row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  #main .sd-pdp.product-container { padding-inline: 16px; }
  .sd-product-tabs { padding-inline: 16px; }
  .sd-pdp h1.h1 { font-size: clamp(22px, 7vw, 28px); }
  .sd-pdp .images-container {
    display: flex;
    flex-direction: column;
  }
  .sd-pdp .product-cover { order: 1; }
  /* Cover is full-width and first here, so the badge goes back to the corner. */
  .sd-pdp ul.product-flags.js-product-flags,
  .sd-pdp .product-flags { left: 16px; }
  /* Thumbs wrap into a grid under the cover — show it whole, so there is no
     overflow and the arrows stay hidden. Capping it to the cover height (the
     desktop rail behaviour) would slice the last row in half and read as a
     rendering glitch, and vertical space is cheap here. */
  /* the container is a flex column here, so align-self is the horizontal axis —
     `start` (correct for the desktop grid's block axis) would shrink-wrap it */
  .sd-pdp .sd-thumbs-scroller { order: 2; align-self: stretch; }
  /* Every desktop cap has to be unwound here, including the `#main …` ones —
     those carry an id, so a plain `.sd-pdp …` override loses to them. */
  #main .sd-pdp .images-container .js-qv-mask.mask,
  #main .sd-pdp .images-container .js-qv-mask.scroll,
  #main .sd-pdp .images-container .sd-thumbs-scroller:not(.has-overflow) .js-qv-mask.mask,
  #main .sd-pdp .images-container .sd-thumbs-scroller:not(.has-overflow) .js-qv-mask.scroll {
    max-height: none;
    overflow: visible;
  }
  .sd-pdp .sd-thumbs-nav { display: none; }
  .sd-pdp .product-images {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 0;
  }
  .sd-pdp .product-images .thumb-container { width: 76px; }
  .sd-pdp .product-images .thumb { width: 76px; height: 76px; }
  .sd-pdp .tabs .nav-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px 18px;
    max-width: 100%;
  }
  .sd-pdp .tabs .nav-tabs .nav-link {
    font-size: 13px;
    letter-spacing: 1px;
    padding-bottom: 12px !important;
  }
  .sd-pdp .sd-buybar {
    flex-wrap: nowrap;
    height: auto !important;
    min-height: 56px !important;
    row-gap: 0;
    margin-bottom: 22px;
  }
  :is(.sd-pdp, .quickview) .sd-buybar {
    height: auto !important;
    min-height: 56px !important;
  }
  .sd-pdp .sd-add {
    flex: 1 1 auto;
    min-width: 0;
    order: 0;
  }
  .sd-pdp .sd-add .add-to-cart {
    padding-inline: 16px;
    font-size: 13px;
  }
  /* Pre-order / OOS: centered compact qty above a full-width CTA. The second
     52px column here used to hold the wishlist button, which no longer exists. */
  :is(.sd-pdp, .quickview) .js-product-add-to-cart.sd-oos .sd-buybar:not(.sd-buybar--warehouse-hidden) {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "qty"
      "cta";
    gap: 12px 10px;
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch;
  }
  :is(.sd-pdp, .quickview) .js-product-add-to-cart.sd-oos .sd-buybar:not(.sd-buybar--warehouse-hidden) > .sd-qty {
    grid-area: qty;
    justify-self: center;
    width: auto;
    flex: none;
    max-width: none;
    height: 56px !important;
    align-self: center;
  }
  :is(.sd-pdp, .quickview) .js-product-add-to-cart.sd-oos .sd-buybar:not(.sd-buybar--warehouse-hidden) > .sd-qty input[type="number"] {
    flex: none;
    width: 50px;
    max-width: 50px;
  }
  :is(.sd-pdp, .quickview) .js-product-add-to-cart.sd-oos .sd-buybar:not(.sd-buybar--warehouse-hidden) > .sd-add {
    grid-area: cta;
    flex: none;
    min-width: 0;
    height: 52px !important;
    min-height: 52px !important;
    align-self: stretch;
  }
  :is(.sd-pdp, .quickview) .js-product-add-to-cart.sd-oos .sd-buybar:not(.sd-buybar--warehouse-hidden) > .sd-add .add-to-cart {
    width: 100% !important;
    height: 100% !important;
    min-height: 52px !important;
    box-sizing: border-box;
    font-size: 14px;
    padding-block: 0;
    padding-inline: 20px;
  }
  .sd-pdp .product-additional-info { margin-top: 4px; }
  .sd-related-title { padding-inline: 16px; font-size: 24px; }
  .product-accessories .products.row,
  body#product .featured-products .products.row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  body#product .featured-products {
    padding-inline: 16px;
  }
  body#product .featured-products .products-section-title {
    font-size: 24px;
  }

  /* Stock table: stack location, then fit status/qty/stepper within viewport */
  :is(.sd-pdp, .quickview) .sd-stock__head {
    padding-inline: 12px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  :is(.sd-pdp, .quickview) .sd-stock__size {
    margin-left: 0;
    flex: 1 1 100%;
  }
  :is(.sd-pdp, .quickview) .sd-stock__row {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
  }
  :is(.sd-pdp, .quickview) .sd-stock__loc {
    flex: 1 1 100%;
  }
  :is(.sd-pdp, .quickview) .sd-stock--order-mode .sd-stock__status {
    min-width: 0;
    flex: 0 1 auto;
  }
  :is(.sd-pdp, .quickview) .sd-stock__avail {
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
    margin-right: 0;
  }
  :is(.sd-pdp, .quickview) .sd-stock__order {
    flex: 0 0 auto;
    margin-left: auto;
  }
  :is(.sd-pdp, .quickview) .sd-stock__qty {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
  }
  :is(.sd-pdp, .quickview) .sd-stock__total {
    padding-inline: 12px;
  }
}

/* ============================================================
   Quick-view modal (.quickview) — the AJAX product modal isn't wrapped in
   .sd-pdp, so the PDP gallery rules don't reach it. Give it an obvious close
   button and a clean thumbs→main gallery so images don't float/misalign.
   ============================================================ */
.quickview .modal-content { border: none; border-radius: 6px; overflow: hidden; }
.quickview .modal-body { padding: 28px; }

/* Obvious close X (Bootstrap default was opacity:0.2, ~invisible) */
.quickview .modal-header .close,
.quickview .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sd-gray-100);
  border: 1px solid var(--sd-gray-200);
  color: var(--sd-ink);
  opacity: 1;
  font-size: 24px;
  line-height: 1;
  text-shadow: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.quickview .close:hover {
  background: var(--sd-red);
  border-color: var(--sd-red);
  color: #fff;
  opacity: 1;
}
.quickview .close span { line-height: 1; }

/* Gallery: thumbs column + main image (mirrors the PDP, but unscoped from .sd-pdp) */
.quickview .images-container {
  display: grid;
  /* `auto` collapses to 0 for single-image products (e.g. the mug), so the main
     image isn't pushed off-centre by an empty 70px thumbs column. */
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.quickview .images-container .product-cover {
  order: 2;
  /* keep a single image from ballooning; centre it within the column */
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--sd-gray-200);
  border-radius: 6px;
  overflow: hidden;
  background: var(--sd-gray-100);
}
.quickview .images-container .product-cover img {
  width: 100%;
  height: auto;
  display: block;
}
/* The rail is wrapped in .sd-thumbs-scroller now, so it is the grid item —
   the cover's explicit order:2 still puts the thumbs first. Cap it against the
   modal so a 9-image product stops running off the bottom of the dialog, and
   let the same arrows page through it. */
.quickview .images-container .sd-thumbs-scroller {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  min-width: 0;
}
.quickview .images-container .sd-thumbs-scroller .js-qv-mask.mask {
  width: 100%;
  margin: 0;
  max-height: min(46vh, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sd-gray-300) transparent;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.quickview .images-container .js-qv-mask.mask::-webkit-scrollbar { width: 6px; }
.quickview .images-container .js-qv-mask.mask::-webkit-scrollbar-track { background: transparent; }
.quickview .images-container .js-qv-mask.mask::-webkit-scrollbar-thumb {
  background: var(--sd-gray-300);
  border-radius: 999px;
}
.quickview .images-container .product-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.quickview .images-container .product-images .thumb-container,
.quickview .images-container .product-images li { margin: 0; list-style: none; }
.quickview .images-container .product-images .thumb {
  width: 70px;
  height: auto;
  border: 1px solid var(--sd-gray-200);
  border-radius: 4px;
  cursor: pointer;
  display: block;
}
.quickview .images-container .product-images .thumb.selected,
.quickview .images-container .product-images .thumb.js-thumb-selected { border-color: var(--sd-ink); }
.quickview .scroll-box-arrows { display: none; }
/* The classic quickview ships its own .js-arrows pager, which theme.js drives by
   translating the <ul> — that fights the scroll-based rail. The rail's own
   .sd-thumbs-nav arrows replace it. */
.quickview .arrows.js-arrows { display: none; }

/* ============================================================
   Image-zoom modal (#product-modal) — the core PrestaShop full-image lightbox
   shown when the PDP cover is clicked. It shipped with no visible close button
   and the dialog wasn't centred. Centre it on screen, cap the image so it fits
   the viewport, and add an obvious round close X (markup added in
   product-images-modal.tpl).
   ============================================================ */
#product-modal.modal { padding: 0 !important; }
#product-modal .modal-dialog {
  /* Centre the dialog both axes regardless of Bootstrap's default top margin. */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  max-width: min(1100px, 94vw);
  margin: 24px auto;
}
#product-modal .modal-content {
  position: relative;
  border: none;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 24px 70px rgba(17, 19, 22, .35);
}
#product-modal .modal-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  /* Classic theme ships .modal-body { width:1485px; margin-left:-385px } for its
     old wide flipbook layout — that shoved the image off the left edge. Reset. */
  width: auto !important;
  margin: 0 !important;
}
/* Thumbs left, image right — same reading order as the PDP gallery. The aside
   follows the figure in the DOM, so flip them with `order` rather than
   reordering the markup (the core modal JS keys off that structure). */
#product-modal .modal-body figure { margin: 0; order: 2; flex: 1; min-width: 0; text-align: center; }
#product-modal .product-cover-modal {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
/* Stage: the big image plus its prev/next overlay buttons. */
#product-modal .sd-modal-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#product-modal .sd-modal-stage picture { display: block; max-width: 100%; }
/* A click anywhere on the image advances, so say so with the cursor. */
#product-modal .sd-modal-stage .product-cover-modal { cursor: pointer; }

#product-modal .sd-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--sd-gray-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--sd-ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
#product-modal .sd-modal-nav .material-icons { font-size: 26px; line-height: 1; }
#product-modal .sd-modal-nav:hover {
  background: var(--sd-ink);
  border-color: var(--sd-ink);
  color: #fff;
}
#product-modal .sd-modal-nav:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 2px;
}
#product-modal .sd-modal-nav--prev { left: 10px; }
#product-modal .sd-modal-nav--next { right: 10px; }

#product-modal .image-caption { margin-top: 14px; color: #42464b; font-size: 14px; }
/* Thumbnails: a fixed-width vertical column, first in the flex order. Without
   the fixed basis the <ul> lays its 148px thumbs out in a row, the aside's
   min-content width swallows the whole dialog and the figure collapses to 0 —
   exactly the "no large image, description in a sliver" breakage. Sitting on
   the left it clears the close X, so it aligns flush with the image top. */
#product-modal .thumbnails {
  order: 1;
  flex: 0 0 128px;
  min-width: 0;
  margin-top: 0;
}
/* Doubled selector to beat theme.css's `.modal-body .mask { margin-top: 2.188rem;
   overflow: hidden }`, which would otherwise push the rail off the image top and
   clip the overflow instead of scrolling it. */
#product-modal .modal-body .js-modal-mask,
#product-modal .modal-body .js-modal-mask.mask {
  width: 100%;
  margin-top: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--sd-gray-300) transparent;
  overscroll-behavior: contain;
}
#product-modal .js-modal-mask::-webkit-scrollbar { width: 6px; }
#product-modal .js-modal-mask::-webkit-scrollbar-track { background: transparent; }
#product-modal .js-modal-mask::-webkit-scrollbar-thumb {
  background: var(--sd-gray-300);
  border-radius: 999px;
}
#product-modal .js-modal-mask::-webkit-scrollbar-thumb:hover { background: var(--sd-gray-500); }
#product-modal .product-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#product-modal .product-images .thumb-container { margin: 0; }
#product-modal .product-images .thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--sd-gray-200);
  border-radius: 4px;
  background: var(--sd-gray-100);
  cursor: pointer;
  margin: 0;
  transition: border-color var(--t-fast);
}
#product-modal .product-images .thumb:hover { border-color: var(--sd-text); }
#product-modal .product-images .thumb.selected,
#product-modal .product-images .thumb.js-modal-thumb-selected {
  border-color: var(--sd-ink);
}
/* Native scroll replaces the legacy up/down arrow pager. */
#product-modal .arrows.js-modal-arrows { display: none; }

/* Obvious round close X (Bootstrap's default .close is opacity:.5, top-right
   inside the body — easy to miss). Pin it to the dialog corner. */
#product-modal .sd-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sd-gray-200);
  border-radius: 50%;
  background: #fff;
  color: var(--sd-ink);
  font-size: 26px;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
#product-modal .sd-modal-close:hover {
  background: var(--sd-red);
  border-color: var(--sd-red);
  color: #fff;
  opacity: 1;
}
#product-modal .sd-modal-close span { line-height: 1; }

@media (max-width: 640px) {
  #product-modal .modal-body { flex-direction: column; padding: 18px; }
  #product-modal .product-cover-modal { max-height: 60vh; }
  #product-modal .sd-modal-nav { width: 38px; height: 38px; }
  #product-modal .sd-modal-nav .material-icons { font-size: 22px; }
  #product-modal .sd-modal-nav--prev { left: 2px; }
  #product-modal .sd-modal-nav--next { right: 2px; }
  /* Thumbs become a horizontal scroll strip under the image — so the
     desktop left-column order is reversed back to image-first here. */
  #product-modal .modal-body figure { order: 1; }
  #product-modal .thumbnails { order: 2; flex: none; width: 100%; margin-top: 12px; }
  #product-modal .js-modal-mask { max-height: none; overflow-x: auto; overflow-y: hidden; }
  #product-modal .product-images { flex-direction: row; }
  #product-modal .product-images .thumb-container { flex: 0 0 64px; }
  #product-modal .product-images .thumb { width: 64px; height: 64px; }
}

/* On-demand volume pricing */
.sd-on-demand {
  margin: 0 0 20px;
  padding: clamp(16px, 2vw, 20px);
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.sd-on-demand__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-navy);
  margin-bottom: 8px;
}
.sd-on-demand__lead {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--sd-text-muted);
  line-height: 1.45;
}
.sd-on-demand__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.sd-on-demand__table th,
.sd-on-demand__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sd-gray-200);
  text-align: left;
}
.sd-on-demand__table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sd-text-muted);
}
.sd-on-demand__table tr.is-active td {
  background: var(--sd-red-soft);
  color: var(--sd-navy);
}
.sd-on-demand__table tr.is-active td strong {
  color: var(--sd-red);
}
.product-add-to-cart.sd-on-demand .sd-ondemand-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--sd-gray-100);
  border-left: 3px solid var(--sd-navy);
  font-size: 0.875rem;
  color: var(--sd-text);
  line-height: 1.45;
}

/* ============================================================
   PDP COLOUR SWATCHES
   Markup: product-variants.tpl already emits the colour form when a group is
   group_type='color' — <li class="input-container"> > label > input.input-color
   + <span class="color" style="background-color:#hex">. Nothing to template.

   These rules are deliberately generic (any ul[id^="group_"] that contains a
   colour input) rather than tied to an id. The previous rules in _legacy.css
   hardcoded `ul#group_2` — the original CSG "Barva" group — so the imported
   "Color" group (id 8, 45 shades) inherited no styling at all and would have
   rendered as unstyled squares once switched to a colour group.

   Sizing follows Runbott's own product pages, which is where these products and
   their hex values come from: 32px circles, a hairline ring so pale shades
   (White #FFFFFF, Cream #F1F0E2) still read as discs, and a ring with a white
   gap to mark the selection.
   ============================================================ */

.sd-pdp .product-variants-item ul[id^="group_"] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Undo the float + fixed box the legacy/Bootstrap rules impose */
.sd-pdp .product-variants-item ul[id^="group_"] > li.input-container {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
}

.sd-pdp .product-variants-item ul[id^="group_"] > li label {
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0;
  cursor: pointer;
  line-height: 0;
}

/* The radio stays reachable for keyboard and screen readers, but is not drawn. */
.sd-pdp .product-variants-item ul[id^="group_"] .input-color {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sd-pdp .product-variants-item ul[id^="group_"] .color {
  display: block;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 0;
  /* Hairline ring: without it #FFFFFF and #F1F0E2 vanish into the page. */
  box-shadow: inset 0 0 0 1px rgba(20, 26, 32, 0.18);
  background-size: cover;
  background-position: center;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.sd-pdp .product-variants-item ul[id^="group_"] label:hover .color {
  transform: scale(1.08);
  box-shadow: inset 0 0 0 1px rgba(20, 26, 32, 0.18),
              0 0 0 2px var(--sd-gray-300);
}

/* Selected: ring with a white gap, so it reads on both dark and pale shades.
   Overrides the legacy `border: 4px solid #232323`, which ate into the disc and
   made dark colours look like plain black circles. */
.sd-pdp .product-variants-item ul[id^="group_"] .input-color:checked + .color {
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(20, 26, 32, 0.18),
              0 0 0 2px #fff,
              0 0 0 4px var(--sd-ink);
  transform: none;
}

.sd-pdp .product-variants-item ul[id^="group_"] .input-color:focus-visible + .color {
  box-shadow: inset 0 0 0 1px rgba(20, 26, 32, 0.18),
              0 0 0 2px #fff,
              0 0 0 4px var(--sd-red);
}

/* The selected colour's name, shown next to the group label. */
.sd-pdp .product-variants-item .sd-pick { color: var(--sd-text-muted); }

@media (max-width: 575px) {
  .sd-pdp .product-variants-item ul[id^="group_"] { gap: 8px; }
  .sd-pdp .product-variants-item ul[id^="group_"] .color {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ============================================================
   Buy-box complements (product-complements.tpl) — compact
   accessory rows with a one-click Add, runbott-style.
   ============================================================ */
.sd-pdp .sd-complements {
  margin: 18px 0 4px;
}

.sd-pdp .sd-complements-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-text);
}

.sd-pdp .sd-complement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius);
  background: var(--sd-white);
}

.sd-pdp .sd-complement + .sd-complement { margin-top: 8px; }

.sd-pdp .sd-complement-thumb {
  flex: 0 0 auto;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--sd-surface);
  overflow: hidden;
}

.sd-pdp .sd-complement-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* melts the white photo background into the well */
}

.sd-pdp .sd-complement-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sd-pdp .sd-complement-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sd-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-pdp .sd-complement-name:hover { color: var(--sd-red); }

.sd-pdp .sd-complement-price {
  font-size: 0.9rem;
  color: var(--sd-text-muted);
}

.sd-pdp .sd-complement-add {
  flex: 0 0 auto;
  padding: 8px 22px;
  border: 1px solid var(--sd-ink);
  /* runbott uses a pill here, but this theme's token layer squares every
     .btn (2px !important in _tokens.css) — stay with the house style */
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--sd-ink);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}

.sd-pdp .sd-complement-add:hover:not(:disabled) {
  background: var(--sd-ink);
  color: var(--sd-white);
}

.sd-pdp .sd-complement-add.is-busy { opacity: 0.55; }

.sd-pdp .sd-complement-add.is-added {
  border-color: var(--sd-gray-300);
  background: var(--sd-gray-100);
  color: var(--sd-text-muted);
}

@media (max-width: 575px) {
  .sd-pdp .sd-complement { gap: 10px; padding: 8px 10px; }
  .sd-pdp .sd-complement-thumb { width: 52px; height: 52px; }
  .sd-pdp .sd-complement-add { padding: 7px 16px; }
}

/* "bez DPH" next to the cart and add-to-cart-modal totals. Same muted, smaller
   treatment as the product page label so the qualifier reads as a note on the
   figure rather than competing with it. */
.cart-summary-totals .sd-tax-label,
#blockcart-modal .product-total .sd-tax-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--sd-text-muted);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

/* "Pokud není uvedeno jinak, ceny nezahrnují…" — under the min-quantity line. */
.sd-pdp .sd-price-disclaimer {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sd-text-muted);
}

/* Add-to-cart popup: product name in the shop's navy display type, not the
   parent theme's cyan link colour (matches the cart page line items). */
#blockcart-modal .product-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--sd-navy);
}

/* ---- _suppliers.css ---- */
/* ============================================================
   CSG suppliers — list, detail contact card, PDP line
   ============================================================ */

.sd-suppliers-page {
  margin-bottom: 2rem;
}

.sd-supplier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

@media (min-width: 576px) {
  .sd-supplier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .sd-supplier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sd-supplier-card {
  list-style: none;
}

.sd-supplier-card-body {
  background: var(--sd-surface, #fff);
  border: 1px solid var(--sd-border, #e5e5e5);
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sd-supplier-name {
  font-size: 1.125rem;
  margin: 0;
}

.sd-supplier-name a {
  color: inherit;
  text-decoration: none;
}

.sd-supplier-name a:hover {
  color: var(--sd-accent, #c0392b);
}

.sd-supplier-company,
.sd-supplier-address {
  margin: 0;
  color: var(--sd-muted, #666);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sd-supplier-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sd-supplier-contact a {
  color: var(--sd-accent, #c0392b);
  text-decoration: none;
  word-break: break-word;
}

.sd-supplier-count {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--sd-muted, #666);
}

.sd-supplier-cta {
  margin-top: auto;
  align-self: flex-start;
}

.sd-supplier-detail-head {
  margin-bottom: 0;
}

body.sd-product-listing #js-product-list-header .sd-supplier-description {
  color: #c4c7cc !important;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 1rem !important;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-inline {
  margin-top: 0.5rem;
  max-width: 560px;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-red);
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-company,
body.sd-product-listing #js-product-list-header .sd-supplier-contact-address {
  margin: 0 0 0.35rem;
  color: #c4c7cc;
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-list li {
  margin-bottom: 0.25rem;
  color: #c4c7cc;
  font-size: 0.9375rem;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-list span {
  color: #9aa0a8;
  margin-right: 0.35rem;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-list a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.sd-product-listing #js-product-list-header .sd-supplier-contact-list a:hover {
  color: var(--sd-red);
}

.sd-supplier-description {
  margin-top: 0.75rem;
  color: var(--sd-muted, #666);
}

.sd-supplier-contact-card {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.sd-supplier-contact-card h2 {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sd-supplier-contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.sd-supplier-contact-list li {
  margin-bottom: 0.35rem;
}

.sd-supplier-contact-list span {
  color: var(--sd-muted, #666);
  margin-right: 0.35rem;
}

/* ── PDP brand line ("Značka: Clap Design") ──────────────────
   theme.css paints every bare <a> #24b9d7 — the classic theme's teal — and
   this link had no rule of its own, so the one piece of brand colour on the
   product page was a colour the shop does not use. Ink text with a hairline
   underline, red on hover: the same treatment product titles get in listings.
   ---------------------------------------------------------- */
.sd-supplier-line {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.sd-supplier-label {
  /* --sd-muted is not a token on this shop (it is --sd-text-muted); the old
     value only worked because of the #666 fallback. */
  color: var(--sd-text-muted);
  margin-right: 0.35rem;
}

.sd-supplier-line a {
  color: var(--sd-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 26, 32, 0.22);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.sd-supplier-line a:hover,
.sd-supplier-line a:focus-visible {
  color: var(--sd-red);
  border-bottom-color: currentColor;
}

/* ---- _customer-auth.css ---- */
/* ============================================================
   _customer-auth.css — CSG Customer Pages
   Covers:
     1. Login / Registration (original)
     2. Page-shell container constraints (account, cart, checkout)
     3. My Account page  (body#my-account)
     4. Cart page        (body#cart)
     5. Checkout page    (body#checkout)
   ============================================================ */


/* ============================================================
   1. LOGIN / REGISTRATION
   Match my-account / identity (osobní údaje) — navy heading,
   form card, navy/red links (no PrestaShop cyan).
   ============================================================ */

body#authentication #main,
body#registration #main {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(36px, 4.5vw, 60px);
}

body#authentication .page-header,
body#registration .page-header {
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding: 0;
  border: none;
  text-align: center;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

body#authentication .page-header::before,
body#registration .page-header::before {
  display: none;
}

body#authentication .page-header h1,
body#authentication .page-header .h1,
body#registration .page-header h1,
body#registration .page-header .h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sd-navy);
  line-height: 1.1;
  margin: 0;
}

/* Strip theme white card box — form carries its own card chrome */
body#authentication #content.page-content,
body#registration #content.page-content {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  margin: 0 auto !important;
  color: var(--sd-text) !important;
  font-size: 0.9375rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body#authentication #content.page-content > *,
body#registration #content.page-content > * {
  width: 100%;
  max-width: 640px;
}

/* Login / register form card — same treatment as identity */
body#authentication .login-form #login-form,
body#registration .register-form #customer-form {
  display: block;
  max-width: 640px;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body#authentication .login-form,
body#registration .register-form {
  margin-top: 0;
}

body#authentication #login-form .form-group,
body#registration #customer-form .form-group {
  margin-bottom: 16px;
}

body#authentication #login-form .form-control-label,
body#registration #customer-form .form-control-label,
body#registration #customer-form label.form-control-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--sd-text) !important;
}

body#authentication #login-form .form-control,
body#registration #customer-form .form-control,
body#registration #customer-form select.form-control {
  border: 1px solid var(--sd-gray-300) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--sd-white) !important;
  color: var(--sd-text) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  padding: 10px 12px !important;
  height: auto !important;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

body#authentication #login-form .form-control:focus,
body#registration #customer-form .form-control:focus {
  border-color: var(--sd-red) !important;
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
  outline: none !important;
}

body#authentication #login-form .input-group .btn,
body#registration #customer-form .input-group .btn {
  background: var(--sd-gray-100) !important;
  border: 1px solid var(--sd-gray-300) !important;
  color: var(--sd-text) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px !important;
}

body#authentication #login-form .input-group .btn:hover,
body#registration #customer-form .input-group .btn:hover {
  background: var(--sd-gray-200) !important;
  color: var(--sd-navy) !important;
}

body#authentication .forgot-password {
  margin-top: 4px;
  padding-bottom: 0;
  font-size: 0.875rem;
  text-align: right;
}

body#authentication #login-form .form-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sd-gray-200);
}

body#authentication #login-form .form-footer .btn-primary,
body#authentication #submit-login {
  background: var(--sd-red) !important;
  border-color: var(--sd-red) !important;
  border-radius: 2px !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 36px !important;
  box-shadow: var(--shadow-red) !important;
  transition: background var(--t-fast), box-shadow var(--t-fast) !important;
}

body#authentication #login-form .form-footer .btn-primary:hover,
body#authentication #submit-login:hover {
  background: var(--sd-red-dark) !important;
  border-color: var(--sd-red-dark) !important;
}

body#registration #customer-form .form-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sd-gray-200);
}

body#registration #customer-form .form-footer .btn-primary,
body#registration #customer-form .form-control-submit {
  background: var(--sd-red) !important;
  border-color: var(--sd-red) !important;
  border-radius: 2px !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 36px !important;
  box-shadow: var(--shadow-red) !important;
  transition: background var(--t-fast), box-shadow var(--t-fast) !important;
  float: none !important;
}

body#registration #customer-form .form-footer .btn-primary:hover,
body#registration #customer-form .form-control-submit:hover {
  background: var(--sd-red-dark) !important;
  border-color: var(--sd-red-dark) !important;
}

body#registration #customer-form .custom-radio input[type=radio]:checked + span {
  background-color: var(--sd-red) !important;
}

body#registration #customer-form .custom-checkbox input[type=checkbox]:checked + span {
  border-color: var(--sd-red) !important;
  background: var(--sd-red-soft) !important;
}

body#registration #customer-form .custom-checkbox input[type=checkbox]:checked + span .checkbox-checked {
  color: var(--sd-red) !important;
}

/* Secondary links — navy/red, not PrestaShop cyan */
body#authentication #content a:not(.btn),
body#registration #content a:not(.btn) {
  color: var(--sd-navy) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast);
}

body#authentication #content a:not(.btn):hover,
body#registration #content a:not(.btn):hover {
  color: var(--sd-red) !important;
}

body#authentication #content hr {
  max-width: 640px;
  width: 100%;
  margin: clamp(20px, 2.5vw, 28px) auto;
  border: none;
  border-top: 1px solid var(--sd-gray-200);
}

body#authentication .no-account {
  max-width: 640px;
  width: 100%;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--sd-text-muted);
}

body#registration .register-form > p {
  max-width: 640px;
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--sd-text-muted);
}


/* ============================================================
   2. PAGE-SHELL — constrain the main content .container for
   all customer-facing pages to the site --container width.
   The first .container (breadcrumb) is already handled in
   _tokens.css via #wrapper > .container:first-of-type.
   ============================================================ */

body#my-account    #wrapper > .container:not(:first-of-type),
body#history       #wrapper > .container:not(:first-of-type),
body#address       #wrapper > .container:not(:first-of-type),
body#addresses     #wrapper > .container:not(:first-of-type),
body#identity      #wrapper > .container:not(:first-of-type),
body#order-slip    #wrapper > .container:not(:first-of-type),
body#discount      #wrapper > .container:not(:first-of-type),
body#returns       #wrapper > .container:not(:first-of-type),
body#order-detail  #wrapper > .container:not(:first-of-type),
body#order-follow  #wrapper > .container:not(:first-of-type),
body#order-return  #wrapper > .container:not(:first-of-type),
body#guest-tracking #wrapper > .container:not(:first-of-type),
body#authentication #wrapper > .container:not(:first-of-type),
body#registration   #wrapper > .container:not(:first-of-type),
body#cart          #wrapper > .container:not(:first-of-type),
body#checkout         #wrapper > .container:not(:first-of-type) {
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: var(--gutter) !important;
}

/* Checkout page — the content section's inner row should not overflow */
body#checkout #content > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ============================================================
   3. SHARED CUSTOMER PAGE HEADINGS
   page.tpl wraps every customer page heading in .page-header h1.
   Apply display font, navy, uppercase — consistent with other
   section headings across the site.
   ============================================================ */

.page-header h1,
.page-header .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sd-navy);
}

/* Strip Bootstrap .card chrome from the #content wrapper on account-family pages
   where it adds an unwanted white box-shadow box around everything. */
body#my-account #content.page-content,
body#history    #content.page-content,
body#address    #content.page-content,
body#addresses  #content.page-content,
body#identity   #content.page-content,
body#order-slip #content.page-content,
body#discount   #content.page-content,
body#order-follow #content.page-content,
body#order-detail #content.page-content,
body#order-return #content.page-content,
body#guest-tracking #content.page-content {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


/* ============================================================
   4. MY ACCOUNT PAGE (body#my-account)
   ============================================================ */

/* #main fills the parent .container which is already capped at --container
   (1280px) with --gutter padding-inline — matching header nav & footer story. */
body#my-account #main {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(36px, 4.5vw, 60px);
}

/* Page header — clean heading, consistent with cart page */
body#my-account .page-header {
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding: 0;
  border: none;
}

body#my-account .page-header::before {
  display: none;
}

body#my-account .page-header h1,
body#my-account .page-header .h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0;
}

/* Account link tile GRID — override Bootstrap float/col with CSS Grid */
body#my-account .page-content .links {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  width: 100% !important;
}

/* The .row inside .links carries Bootstrap's negative margins; reset them */
body#my-account .page-content .links .row {
  display: contents !important;
  margin: 0 !important;
}

/* Each <a> tile: reset Bootstrap col classes */
body#my-account .links a[class*="col-"] {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  flex: none !important;
  text-decoration: none !important;
}

/* The visible card surface */
body#my-account .link-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-left: 4px solid var(--sd-navy);
  border-radius: var(--radius);
  color: var(--sd-text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition:
    border-left-color var(--t-fast),
    background-color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
  height: 100%;
  min-height: 76px;
}

body#my-account .links a:hover .link-item {
  border-left-color: var(--sd-red);
  background: var(--sd-gray-50);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

body#my-account .link-item i.material-icons {
  font-size: 26px;
  color: var(--sd-navy-2);
  flex-shrink: 0;
  /* Reset theme.css: .page-my-account #content .links a i { display:block; width:100%; padding-bottom:3.4rem } */
  display: inline-flex !important;
  width: auto !important;
  padding: 0 !important;
  transition: color var(--t-fast);
}

body#my-account .links a:hover .link-item i.material-icons {
  color: var(--sd-red);
}

/* ---- SIGN OUT BUTTON — obvious, red, prominent ----
   Classic theme renders it as a bare <a> inside .page-footer .text-sm-center.
   Give it a proper outlined button treatment with the CSG red. */
body#my-account .page-footer {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--sd-gray-200);
  text-align: center;
}

body#my-account .page-footer .text-sm-center a,
body#my-account .page-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  background: transparent;
  border: 2px solid var(--sd-red);
  border-radius: 2px;
  color: var(--sd-red) !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

body#my-account .page-footer .text-sm-center a:hover,
body#my-account .page-footer > a:hover {
  background: var(--sd-red);
  color: var(--sd-white) !important;
  box-shadow: var(--shadow-red);
}

/* Responsive grid */
@media (max-width: 640px) {
  body#my-account .page-content .links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  body#my-account .page-content .links {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   4b. ACCOUNT SUBPAGES (identity, addresses, history, …)
   Shared styling for all customer/page.tpl children except dashboard.
   ============================================================ */

:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) #main {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(36px, 4.5vw, 60px);
}

/* Heading — match my-account / cart */
:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-header {
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding: 0;
  border: none;
}

:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-header h1,
:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-header .h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sd-navy);
  line-height: 1.1;
  margin: 0;
}

/* Kill theme grey box on .page-customer-account #content */
:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) #content.page-content {
  color: var(--sd-text) !important;
  font-size: 0.9375rem !important;
}

/* Intro copy under heading */
:is(body#history, body#order-slip, body#discount, body#order-follow) #content > h6 {
  font-size: 0.9375rem;
  color: var(--sd-text-muted);
  margin: 0 0 20px;
  font-weight: 400;
}

/* ---- Forms (identity, address, guest-tracking) ---- */
:is(body#identity, body#address, body#guest-tracking) #customer-form,
:is(body#identity, body#address, body#guest-tracking) .js-address-form,
body#address .address-form form {
  display: block;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

:is(body#identity, body#address, body#guest-tracking) .form-group {
  margin-bottom: 16px;
}

:is(body#identity, body#address, body#guest-tracking) .form-control-label,
:is(body#identity, body#address, body#guest-tracking) label.form-control-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--sd-text) !important;
  text-align: right;
  padding-top: 10px;
}

:is(body#identity, body#address, body#guest-tracking) .form-control,
:is(body#identity, body#address, body#guest-tracking) select.form-control,
:is(body#identity, body#address, body#guest-tracking) textarea.form-control {
  border: 1px solid var(--sd-gray-300) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--sd-white) !important;
  color: var(--sd-text) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  padding: 10px 12px !important;
  height: auto !important;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

:is(body#identity, body#address, body#guest-tracking) .form-control:focus {
  border-color: var(--sd-red) !important;
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
  outline: none !important;
}

:is(body#identity, body#address, body#guest-tracking) .form-group .form-control-comment,
:is(body#identity, body#address, body#guest-tracking) .form-text {
  font-size: 0.75rem;
  color: var(--sd-text-muted);
}

/* Show-password / input-group addon */
:is(body#identity, body#address, body#guest-tracking) .input-group .btn,
:is(body#identity, body#address, body#guest-tracking) .input-group-btn .btn {
  background: var(--sd-gray-100) !important;
  border: 1px solid var(--sd-gray-300) !important;
  color: var(--sd-text) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px !important;
}

:is(body#identity, body#address, body#guest-tracking) .input-group .btn:hover {
  background: var(--sd-gray-200) !important;
  color: var(--sd-navy) !important;
}

/* Radio / checkbox on account forms */
:is(body#identity, body#address, body#guest-tracking) .custom-radio input[type=radio]:checked + span {
  background-color: var(--sd-red) !important;
}

:is(body#identity, body#address, body#guest-tracking) .custom-checkbox input[type=checkbox]:checked + span {
  border-color: var(--sd-red) !important;
  background: var(--sd-red-soft) !important;
}

:is(body#identity, body#address, body#guest-tracking) .custom-checkbox input[type=checkbox]:checked + span .checkbox-checked {
  color: var(--sd-red) !important;
}

/* Save / submit buttons */
:is(body#identity, body#address, body#guest-tracking) .form-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sd-gray-200);
}

:is(body#identity, body#address, body#guest-tracking) .form-footer .btn-primary,
:is(body#identity, body#address, body#guest-tracking) .form-control-submit {
  background: var(--sd-red) !important;
  border-color: var(--sd-red) !important;
  border-radius: 2px !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 36px !important;
  box-shadow: var(--shadow-red) !important;
  transition: background var(--t-fast), box-shadow var(--t-fast) !important;
  float: none !important;
}

:is(body#identity, body#address, body#guest-tracking) .form-footer .btn-primary:hover,
:is(body#identity, body#address, body#guest-tracking) .form-control-submit:hover {
  background: var(--sd-red-dark) !important;
  border-color: var(--sd-red-dark) !important;
}

/* ---- Footer nav links (back to account, home) ---- */
:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-footer {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--sd-gray-200);
}

:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-footer .account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  color: var(--sd-navy) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color var(--t-fast);
}

:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-footer .account-link:hover {
  color: var(--sd-red) !important;
}

:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .page-footer .account-link .material-icons {
  font-size: 18px;
  color: inherit;
}

/* Links inside subpage content */
:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) #content a:not(.btn) {
  color: var(--sd-navy) !important;
}

:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) #content a:not(.btn):hover {
  color: var(--sd-red) !important;
}

/* ---- Order history table ---- */
body#history .table {
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--sd-text);
}

body#history .table thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sd-navy);
  background: var(--sd-gray-50);
  border-bottom: 1px solid var(--sd-gray-200);
  padding: 12px 14px;
}

body#history .table tbody td,
body#history .table tbody th {
  padding: 12px 14px;
  vertical-align: middle;
  border-color: var(--sd-gray-100);
}

body#history .order-actions a {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

body#history .orders .order {
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

body#history .orders .order h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sd-navy);
  margin: 0 0 4px;
}

/* ---- Address list ---- */
body#addresses #content.page-content {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

body#addresses #content.page-content > .col-lg-4,
body#addresses #content.page-content > [class*="col-"] {
  flex: 1 1 280px;
  max-width: calc(33.333% - 10px);
  width: auto !important;
  padding: 0 !important;
  float: none !important;
}

body#addresses .page-addresses .address,
body#address .page-addresses .address {
  height: 100%;
  border: 1px solid var(--sd-gray-200) !important;
  border-left: 4px solid var(--sd-navy) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--sd-white) !important;
  color: var(--sd-text) !important;
  transition: border-left-color var(--t-fast), box-shadow var(--t-fast);
}

body#addresses .page-addresses .address:hover {
  border-left-color: var(--sd-red) !important;
  box-shadow: var(--shadow) !important;
}

body#addresses .page-addresses .address .address-body h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sd-navy);
}

body#addresses .page-addresses .address .address-footer {
  border-top: 1px solid var(--sd-gray-200) !important;
  background: var(--sd-gray-50);
}

body#addresses .page-addresses .address .address-footer a {
  color: var(--sd-text-muted) !important;
}

body#addresses .page-addresses .address .address-footer a:hover {
  color: var(--sd-red) !important;
}

body#addresses .addresses-footer {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--sd-gray-200);
}

body#addresses .addresses-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sd-navy) !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none !important;
}

body#addresses .addresses-footer a:hover {
  color: var(--sd-red) !important;
}

/* ---- Alerts ---- */
:is(
  body#identity,
  body#history,
  body#addresses,
  body#address,
  body#order-slip,
  body#discount,
  body#order-follow,
  body#order-detail,
  body#order-return,
  body#guest-tracking
) .alert-info {
  background: var(--sd-gray-50) !important;
  border: 1px solid var(--sd-gray-200) !important;
  border-left: 4px solid var(--sd-navy) !important;
  color: var(--sd-text) !important;
  border-radius: var(--radius-sm) !important;
}


/* ============================================================
   5. CART PAGE (body#cart)
   ============================================================ */

body#cart #main {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

/* Cart page heading */
body#cart h1.h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sd-navy);
  margin: 0;
}

/* Cart layout gap */
body#cart .cart-grid.row {
  gap: clamp(16px, 2vw, 24px);
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Cart items container (left col card) */
body#cart .cart-container.card {
  border: 1px solid var(--sd-gray-200) !important;
  border-top: 3px solid var(--sd-navy) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}

/* The card-block padding on cart container */
body#cart .cart-container .card-block {
  padding: 20px 24px !important;
}

/* Separator line inside cart card */
body#cart .cart-container hr.separator {
  border-color: var(--sd-gray-200);
  margin: 0;
}

/* Product lines */
body#cart .cart-items .cart-item {
  border-bottom: 1px solid var(--sd-gray-100);
}

body#cart .cart-items .cart-item:last-child {
  border-bottom: none;
}

/* Product name in cart */
body#cart .product-name,
body#cart .product-line-grid-left .product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.3px;
  color: var(--sd-navy);
  text-decoration: none;
}

body#cart .product-name:hover {
  color: var(--sd-red);
}

/* Qty input */
body#cart .input-group .form-control:focus,
body#cart input[name="qty"]:focus {
  border-color: var(--sd-red) !important;
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
  outline: none !important;
}

/* Remove link */
body#cart .remove-from-cart .material-icons {
  color: var(--sd-text-muted);
  transition: color var(--t-fast);
}

body#cart .remove-from-cart:hover .material-icons {
  color: var(--sd-red);
}

/* ---- CART SUMMARY PANEL (right column) ---- */
body#cart .cart-summary.card {
  border: 1px solid var(--sd-gray-200) !important;
  border-top: 4px solid var(--sd-navy) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--sd-gray-50) !important;
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h, 122px) + 16px);
}

/* Summary rows */
body#cart .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--sd-gray-100);
  font-size: 0.875rem;
}

body#cart .cart-summary-line:last-child {
  border-bottom: none;
}

/* Grand total */
body#cart .cart-summary-line.cart-total,
body#cart .cart-total-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sd-navy);
  border-top: 2px solid var(--sd-gray-200);
  padding-top: 12px;
  margin-top: 4px;
}

/* ---- CHECKOUT CTA BUTTON ---- */
body#cart .checkout .btn,
body#cart .checkout a.btn-primary,
body#cart .checkout .btn-primary,
body#cart .checkout [class*="btn"] {
  display: block !important;
  width: 100% !important;
  padding: 16px 28px !important;
  background: var(--sd-red) !important;
  border-color: var(--sd-red) !important;
  border-radius: 2px !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  box-shadow: var(--shadow-red) !important;
  transition: background var(--t-fast), box-shadow var(--t-fast) !important;
}

body#cart .checkout .btn:hover,
body#cart .checkout a.btn-primary:hover,
body#cart .checkout .btn-primary:hover {
  background: var(--sd-red-dark) !important;
  border-color: var(--sd-red-dark) !important;
  box-shadow: 0 14px 36px rgba(226, 0, 26, 0.36) !important;
}

/* Continue shopping */
body#cart .cart-grid-body > a.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: var(--sd-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--t-fast);
}

body#cart .cart-grid-body > a.label:hover {
  color: var(--sd-red);
}

/* Voucher / promo section */
body#cart .promo-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
}

body#cart input[name="discount_name"]:focus {
  border-color: var(--sd-red) !important;
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
}

/* Reassurance block */
body#cart .block-reassurance {
  border: 1px solid var(--sd-gray-200) !important;
  border-radius: var(--radius) !important;
  background: var(--sd-white) !important;
  margin-top: 16px;
  overflow: hidden;
}

body#cart .block-reassurance li {
  border-bottom: 1px solid var(--sd-gray-100);
}

body#cart .block-reassurance li:last-child {
  border-bottom: none;
}


/* ============================================================
   6. CHECKOUT PAGE (body#checkout)
   Templates: checkout.tpl / checkout-step.tpl / shipping.tpl / payment.tpl
   NOTE: checkout.tpl overrides header/footer to use the full
   site header + footer via _partials/header.tpl and _partials/footer.tpl.
   ============================================================ */

/* --- Outer shell vertical rhythm --- */
body#checkout #content-wrapper {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body#checkout #wrapper {
  padding-bottom: 0;
}

body#checkout #content {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: 16px;
}

/* Two-column layout — CSS grid for reliable gap between steps and summary.
   Bootstrap cols (8+4) sum to 100% so flex gap never appears. */
body#checkout #content > .row {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: start;
}

body#checkout .cart-grid-body[class*="col-"],
body#checkout .cart-grid-right[class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ================================================================
   CHECKOUT STEP CARDS
   Each <section class="checkout-step"> becomes a card panel.
   ================================================================ */

body#checkout .checkout-step {
  border: 1px solid var(--sd-gray-200) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 16px !important;
  overflow: hidden;
  background: var(--sd-white) !important;
  transition: box-shadow var(--t-fast);
}

body#checkout .cart-grid-body .checkout-step:last-child {
  margin-bottom: 0 !important;
}

/* Active step: prominent card with red top accent */
body#checkout .checkout-step.-current {
  border-top: 3px solid var(--sd-red) !important;
  box-shadow: 0 4px 20px rgba(20, 26, 32, 0.10) !important;
}

/* Completed (but not current) step: receded / muted */
body#checkout .checkout-step.-complete:not(.-current) {
  background: var(--sd-gray-50) !important;
  box-shadow: none !important;
  border-color: var(--sd-gray-100) !important;
}


/* ---- Step title header strip ---- */
body#checkout .checkout-step .step-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 15px 20px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: clamp(0.9rem, 1.6vw, 1.0625rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: var(--sd-navy) !important;
  border-bottom: 1px solid var(--sd-gray-200) !important;
  background: var(--sd-gray-50) !important;
  line-height: 1.2 !important;
}

/* Current step: white header strip (contrasts with card shadow) */
body#checkout .checkout-step.-current .step-title {
  background: var(--sd-white) !important;
  color: var(--sd-navy) !important;
  border-bottom-color: var(--sd-gray-200) !important;
}

/* Completed step: dimmed header, no bottom border (content hidden by PS JS) */
body#checkout .checkout-step.-reachable.-complete:not(.-current) .step-title,
body#checkout .checkout-step.-complete:not(.-current) .step-title {
  color: var(--sd-text-muted) !important;
  border-bottom-color: transparent !important;
  background: transparent !important;
  cursor: pointer;
}

/* Step number circle badge */
body#checkout .checkout-step .step-number {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 50% !important;
  background: var(--sd-navy) !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

body#checkout .checkout-step.-current .step-number {
  background: var(--sd-red) !important;
}

body#checkout .checkout-step.-complete .step-number {
  background: var(--sd-gray-300) !important;
}

/* Checkmark icon shown on completed steps */
body#checkout .checkout-step .step-title .done {
  font-size: 18px !important;
  color: var(--sd-red) !important;
  flex-shrink: 0 !important;
}

/* Edit link — pushed to the right */
body#checkout .checkout-step .step-edit {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--sd-text-muted) !important;
  cursor: pointer;
  transition: color var(--t-fast) !important;
}

body#checkout .checkout-step .step-edit .material-icons {
  font-size: 14px !important;
}

body#checkout .checkout-step.-complete:not(.-current) .step-title:hover .step-edit {
  color: var(--sd-red) !important;
}


/* ---- Step content body (form area) ---- */
body#checkout .checkout-step .content {
  padding: 20px 24px !important;
}

/* ---- Form groups ---- */
body#checkout .form-group {
  margin-bottom: 14px !important;
}

body#checkout .form-group > label,
body#checkout .form-group .label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--sd-text) !important;
  margin-bottom: 5px !important;
  display: block;
}

body#checkout .form-group .required {
  color: var(--sd-red) !important;
}

body#checkout .form-control {
  border: 1px solid var(--sd-gray-300) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--sd-white) !important;
  color: var(--sd-text) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  padding: 10px 12px !important;
  height: auto !important;
  transition: border-color var(--t-fast), box-shadow var(--t-fast) !important;
}

body#checkout .form-control:focus,
body#checkout input.form-control:focus,
body#checkout select.form-control:focus,
body#checkout textarea.form-control:focus {
  border-color: var(--sd-red) !important;
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
  outline: none !important;
}

/* Form footer row (button area at the bottom of each step form) */
body#checkout .form-footer {
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--sd-gray-100) !important;
  display: flex !important;
  justify-content: flex-end !important;
}


/* ================================================================
   CONTINUE / SUBMIT BUTTONS
   ================================================================ */

body#checkout .continue,
body#checkout button.continue,
body#checkout .btn-primary:not(.btn-default),
body#checkout button[type="submit"].btn {
  background: var(--sd-red) !important;
  border-color: var(--sd-red) !important;
  border-radius: 2px !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 13px 32px !important;
  transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast) !important;
  box-shadow: var(--shadow-red) !important;
}

body#checkout .continue:hover,
body#checkout button.continue:hover,
body#checkout .btn-primary:not(.btn-default):hover,
body#checkout button[type="submit"].btn:hover {
  background: var(--sd-red-dark) !important;
  border-color: var(--sd-red-dark) !important;
  box-shadow: 0 14px 36px rgba(226, 0, 26, 0.36) !important;
}


/* ================================================================
   DELIVERY OPTIONS (shipping step)
   ================================================================ */

body#checkout .delivery-option {
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--sd-gray-200) !important;
  border-radius: var(--radius) !important;
  background: var(--sd-white) !important;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast) !important;
  align-items: center !important;
}

body#checkout .delivery-option:hover {
  border-color: var(--sd-gray-300) !important;
  background: var(--sd-gray-50) !important;
}

body#checkout .delivery-option:has(input:checked) {
  border-color: var(--sd-red) !important;
  background: var(--sd-red-soft) !important;
}

body#checkout .carrier-name {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: var(--sd-navy) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

body#checkout .carrier-delay {
  font-size: 0.8125rem !important;
  color: var(--sd-text-muted) !important;
  line-height: 1.4 !important;
}

body#checkout .carrier-price {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  color: var(--sd-navy) !important;
}

body#checkout .order-options label {
  font-size: 0.8125rem !important;
  color: var(--sd-text-muted) !important;
  margin-top: 16px !important;
  margin-bottom: 6px !important;
  display: block;
}

body#checkout .order-options textarea {
  border: 1px solid var(--sd-gray-300) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 12px !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--sd-text) !important;
  width: 100% !important;
  resize: vertical;
}


/* ================================================================
   PAYMENT OPTIONS
   ================================================================ */

body#checkout .payment-option {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  border: 1px solid var(--sd-gray-200) !important;
  border-radius: var(--radius) !important;
  padding: 14px 18px !important;
  margin-bottom: 8px !important;
  background: var(--sd-white) !important;
  transition: border-color var(--t-fast), background var(--t-fast) !important;
}

body#checkout .payment-option:has(input:checked) {
  border-color: var(--sd-red) !important;
  background: var(--sd-red-soft) !important;
}

body#checkout .payment-option label {
  margin: 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: var(--sd-text) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* TOS / conditions area */
body#checkout .js-terms {
  font-size: 0.8125rem !important;
  color: var(--sd-text-muted) !important;
  line-height: 1.55 !important;
  display: block;
}

body#checkout #conditions-to-approve {
  margin: 12px 0 !important;
}

body#checkout #conditions-to-approve li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  list-style: none !important;
}

/* Place order button (payment confirmation) */
body#checkout #payment-confirmation {
  margin-top: 20px !important;
}

body#checkout #payment-confirmation .btn-primary {
  display: block !important;
  width: 100% !important;
  padding: 16px 28px !important;
  font-size: 15px !important;
  letter-spacing: 2px !important;
}


/* ================================================================
   ORDER SUMMARY CARD (right column)
   ================================================================ */

body#checkout #js-checkout-summary.card {
  border: 1px solid var(--sd-gray-200) !important;
  border-top: 4px solid var(--sd-navy) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--sd-gray-50) !important;
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h, 122px) + 16px);
}

/* Summary heading (hook displayCheckoutSummaryTop renders here) */
body#checkout #js-checkout-summary .card-block {
  padding: 18px 20px !important;
}

body#checkout .js-cart .cart-summary-heading,
body#checkout #js-checkout-summary .cart-summary-heading {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--sd-navy) !important;
  margin: 0 0 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--sd-gray-200) !important;
}

/* Product list */
body#checkout .cart-summary-product-list {
  max-height: 260px;
  overflow-y: auto;
  padding-bottom: 10px;
}

body#checkout .cart-summary-product-list::-webkit-scrollbar { width: 4px; }
body#checkout .cart-summary-product-list::-webkit-scrollbar-track { background: var(--sd-gray-100); }
body#checkout .cart-summary-product-list::-webkit-scrollbar-thumb {
  background: var(--sd-gray-300);
  border-radius: 2px;
}

/* Individual product line — 4-column grid so qty and price line up
   across rows regardless of title length:
   thumbnail (48px) | wrapping title (1fr) | qty (68px) | price (72px).
   theme.css used Bootstrap 3 media-object table cells; that shrinks the
   image and lets qty/price wander with the title. */
body#checkout .media.product-line,
body#checkout .cart-summary-products .media,
body#checkout .cart-summary-products li.media {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 68px 72px;
  grid-template-rows: auto;
  column-gap: 8px;
  align-items: start;
  overflow: visible !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--sd-gray-100) !important;
  font-size: 0.875rem !important;
}

body#checkout .media.product-line:last-child,
body#checkout .cart-summary-products .media:last-child {
  border-bottom: none !important;
}

body#checkout .cart-summary-products .media .media-left {
  display: block !important;
  grid-column: 1;
  width: 48px !important;
  max-width: 48px;
  padding-right: 0;
  flex: none;
}

body#checkout .cart-summary-products .media .media-object {
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-sm, 4px);
}

body#checkout .cart-summary-products .media .media-body {
  display: block !important;
  grid-column: 2;
  width: auto !important;
  min-width: 0;
  overflow: hidden;
  flex: none;
}

body#checkout .cart-summary-products .product-name {
  margin: 0;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  line-height: 1.35;
  color: var(--sd-navy) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body#checkout .cart-summary-products .product-name a {
  display: inline;
  color: inherit !important;
}

body#checkout .cart-summary-products .product-quantity {
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  margin-top: 0;
}

body#checkout .cart-summary-products .product-price {
  grid-column: 4;
  float: none !important;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  margin: 0;
  padding-top: 6px;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
  color: var(--sd-navy);
}

body#checkout .cart-summary-products .product-line-info {
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.3;
}

body#checkout .product-line .product-name {
  font-weight: 600 !important;
  color: var(--sd-navy) !important;
}

/* Subtotals block — hide the leftover padded box when Mezisoučet (and the
   other skipped lines) left it with no rows. */
body#checkout .cart-summary-subtotals-container:not(:has(.cart-summary-line)) {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

body#checkout .cart-summary-subtotals-container {
  padding: 10px 20px !important;
  border-top: 1px solid var(--sd-gray-200) !important;
  background: var(--sd-white) !important;
}

body#checkout .cart-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 5px 0 !important;
  font-size: 0.875rem !important;
  color: var(--sd-text) !important;
  border-bottom: 1px solid var(--sd-gray-100) !important;
}

body#checkout .cart-summary-line:last-child {
  border-bottom: none !important;
}

/* Grand total */
body#checkout .cart-summary-totals {
  padding: 0 20px 18px !important;
  background: var(--sd-gray-50) !important;
}

body#checkout .cart-summary-totals .cart-summary-line.cart-total,
body#checkout .cart-total-line {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.0625rem !important;
  color: var(--sd-navy) !important;
  border-top: 2px solid var(--sd-gray-200) !important;
  padding-top: 12px !important;
  margin-top: 6px !important;
  border-bottom: none !important;
}

/* Voucher input area */
body#checkout .cart-voucher {
  padding: 14px 20px !important;
  border-top: 1px solid var(--sd-gray-200) !important;
  background: var(--sd-white) !important;
}

body#checkout input[name="discount_name"]:focus {
  border-color: var(--sd-red) !important;
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
}

/* Reassurance block (below summary) */
body#checkout .block-reassurance {
  border: 1px solid var(--sd-gray-200) !important;
  border-radius: var(--radius) !important;
  background: var(--sd-white) !important;
  margin-top: 16px;
  overflow: hidden;
}

body#checkout .block-reassurance li {
  border-bottom: 1px solid var(--sd-gray-100);
}

body#checkout .block-reassurance li:last-child {
  border-bottom: none;
}


/* ================================================================
   CHECKOUT MODAL (PS TOS / dynamic panels)
   ================================================================ */

body#checkout .js-checkout-modal .modal-content {
  border-radius: var(--radius) !important;
  border: none !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ================================================================
   CHECKOUT — restore full CSG dark footer
   theme.css line ~7025 forces: body#checkout #footer { background:#fff;
   color:#7a7a7a; padding:.9375rem }. These rules share the same
   specificity (1 id + 1 element) but load later, so they win.
   _hero-layout.css navy/.custom-footer flex overrides are also
   beaten here via the longer body#checkout #footer … selectors.
   ================================================================ */
body#checkout #footer {
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  margin-top: 0 !important;
  border-top: none !important;
}

body#checkout #footer .footer-container {
  background-color: var(--sd-ink, #111316) !important;
  border-top: 4px solid var(--sd-red) !important;
  padding: 0 !important;
  margin-top: 0 !important;
  color: #aeb2b7 !important;
}

/* Beat _hero-layout.css: .footer-container .custom-footer { flex / center / navy-2 } */
body#checkout #footer .footer-container .custom-footer {
  display: block !important;
  text-align: left !important;
  background-color: var(--sd-ink, #111316) !important;
  flex-direction: unset !important;
  align-items: unset !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  gap: unset !important;
  position: static !important;
}

/* Restore light text colours for footer elements on checkout */
body#checkout #footer .footer-container .sd-foot-contact a,
body#checkout #footer .footer-container .sd-foot-bottom a,
body#checkout #footer .footer-container .custom-footer a {
  color: #aeb2b7 !important;
  text-decoration: none;
}

body#checkout #footer .footer-container .sd-foot-contact a:hover,
body#checkout #footer .footer-container .sd-foot-bottom a:hover,
body#checkout #footer .footer-container .custom-footer a:hover {
  color: #fff !important;
}

body#checkout #footer .footer-container .sd-foot-contact h4 {
  color: #fff !important;
}

body#checkout #footer .footer-container .sd-foot-contact p,
body#checkout #footer .footer-container .sd-foot-blurb {
  color: #aeb2b7 !important;
}

body#checkout #footer .footer-container .sd-foot-bottom,
body#checkout #footer .footer-container .sd-foot-bottom span {
  color: #80858b !important;
}

/* Override theme.css bare step panels (padding only, no card chrome) */
body#checkout section.checkout-step {
  padding: 0 !important;
}

/* ================================================================
   CHECKOUT — replace PrestaShop cyan/teal (#24b9d7, #1a8196) with CSG palette
   ================================================================ */

/* Scope link colour overrides to #wrapper so footer links keep their light-grey
   colour rather than being forced to navy. Footer sits outside #wrapper. */
body#checkout #wrapper a:hover {
  color: var(--sd-red) !important;
}

body#checkout #wrapper a:not(.btn):not(.btn-primary):not(.continue):not([class*="btn-"]) {
  color: var(--sd-navy) !important;
}

body#checkout #wrapper a:not(.btn):not(.btn-primary):not(.continue):not([class*="btn-"]):hover {
  color: var(--sd-red) !important;
}

body#checkout .js-show-details,
body#checkout .collapse-button,
body#checkout section.checkout-step .add-address a,
body#checkout .js-terms a,
body#checkout #conditions-to-approve a {
  color: var(--sd-navy) !important;
  text-decoration: none;
}

body#checkout .js-show-details:hover,
body#checkout .collapse-button:hover,
body#checkout section.checkout-step .add-address a:hover,
body#checkout .js-terms a:hover,
body#checkout #conditions-to-approve a:hover {
  color: var(--sd-red) !important;
}

body#checkout .js-show-details .material-icons {
  vertical-align: middle;
  font-size: 18px;
}

/* Compact TouchSpin qty in the summary and the review table.
   Legacy .product-quantity .bootstrap-touchspin is 64px (PDP leftover), so the
   32px input sat in a tall box with a gap and full-height chevrons. */

body#checkout .bootstrap-touchspin.input-group,
body#checkout .bootstrap-touchspin {
  display: inline-flex !important;
  float: none !important;
  flex-direction: row;
  align-items: stretch;
  width: auto !important;
  height: 32px !important;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sd-gray-300);
  border-radius: var(--radius-sm);
  background: var(--sd-white);
  box-sizing: border-box;
}

body#checkout .bootstrap-touchspin-prefix,
body#checkout .bootstrap-touchspin-postfix {
  display: none !important;
}

body#checkout .bootstrap-touchspin input,
body#checkout .sd-summary-qty,
body#checkout input.js-cart-line-product-quantity {
  float: none !important;
  width: 2.6rem !important;
  height: 30px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 30px;
  text-align: center;
  color: var(--sd-navy);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

body#checkout .bootstrap-touchspin input[type="number"]::-webkit-outer-spin-button,
body#checkout .bootstrap-touchspin input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

body#checkout .bootstrap-touchspin:focus-within {
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px var(--sd-red-soft);
}

body#checkout .bootstrap-touchspin .input-group-btn-vertical {
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: 22px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 1px solid var(--sd-gray-300);
  vertical-align: stretch;
}

body#checkout .bootstrap-touchspin .input-group-btn-vertical > .btn,
body#checkout .bootstrap-touchspin .btn-touchspin {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 15px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sd-white) !important;
  color: var(--sd-navy) !important;
  box-shadow: none !important;
  text-transform: none;
}

body#checkout .bootstrap-touchspin .bootstrap-touchspin-down {
  border-top: 1px solid var(--sd-gray-300) !important;
  margin-top: 0 !important;
}

body#checkout .bootstrap-touchspin .btn-touchspin:hover,
body#checkout .bootstrap-touchspin .input-group-btn-vertical > .btn:hover {
  background: var(--sd-gray-50) !important;
  color: var(--sd-red) !important;
}

body#checkout .bootstrap-touchspin .input-group-btn-vertical i,
body#checkout .bootstrap-touchspin .btn-touchspin i {
  position: static !important;
  top: auto !important;
  left: auto !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 400;
}

/* Address cards */
body#checkout section.checkout-step .address-item {
  border: 2px solid transparent !important;
  background: var(--sd-gray-50) !important;
  border-radius: var(--radius-sm) !important;
}

body#checkout section.checkout-step .address-item.selected {
  border-color: var(--sd-red) !important;
  background: var(--sd-white) !important;
}

/* Radio buttons */
body#checkout .custom-radio input[type=radio]:checked + span {
  background-color: var(--sd-red) !important;
}

body#checkout .custom-radio input[type=radio]:focus + span {
  box-shadow: 0 0 0 3px var(--sd-red-soft) !important;
}

/* Checkboxes (TOS, use-same-address, etc.) */
body#checkout .custom-checkbox input[type=checkbox]:checked + span {
  border-color: var(--sd-red) !important;
  background: var(--sd-red-soft) !important;
}

body#checkout .custom-checkbox input[type=checkbox]:checked + span .checkbox-checked {
  color: var(--sd-red) !important;
}

/* Review table: product name, prices and CELKEM share the same type size. */
body#checkout #order-items .card-title.h3,
body#checkout #order-summary-content #order-items h3.h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sd-navy) !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem;
}

body#checkout #order-items .order-confirmation-table,
body#checkout #order-summary-content .order-confirmation-table {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: 0;
}

body#checkout #order-items .order-line {
  margin-top: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--sd-gray-100);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sd-navy);
}

body#checkout #order-items .order-line .details,
body#checkout #order-items .order-line .qty {
  padding-top: 0.25rem;
}

body#checkout #order-items .sd-order-line-name,
body#checkout #order-items .order-line .details a,
body#checkout #order-items .sd-order-line-price,
body#checkout #order-items .sd-order-line-qty,
body#checkout #order-items .sd-order-line-total {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sd-navy);
}

body#checkout #order-items .order-line .details a {
  color: var(--sd-navy) !important;
}

body#checkout #order-items .sd-order-line-name {
  display: inline-block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body#checkout #order-items table {
  margin-top: 8px;
}

body#checkout #order-items table tr td {
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--sd-navy);
}

body#checkout #order-items table tr.total-value td {
  font-family: var(--font-body);
  font-size: 0.875rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sd-navy);
  text-transform: none;
}

body#checkout #order-items table tr.total-value td .text-uppercase {
  font-family: var(--font-body);
  font-size: 0.875rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sd-navy);
}

body#checkout #order-items table tr.total-value {
  background: transparent;
}

/* Price amounts keep native currency casing (Kč, €) even if a parent
   heading/label uses text-transform: uppercase. */
body#checkout .cart-summary-line .value,
body#checkout .cart-total .value,
body#checkout .sd-order-line-price,
body#checkout .sd-order-line-total,
body#checkout #order-items table td,
body#checkout #order-items table tr.total-value td:last-child {
  text-transform: none !important;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 991px) {
  body#checkout #content > .row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  body#checkout #js-checkout-summary.card {
    position: static !important;
  }

  body#checkout .cart-grid-right {
    margin-top: 8px !important;
  }
}

@media (max-width: 640px) {
  body#checkout .checkout-step .step-title {
    padding: 13px 16px !important;
  }

  body#checkout .checkout-step .content {
    padding: 16px !important;
  }

  body#checkout #js-checkout-summary .card-block,
  body#checkout .cart-summary-subtotals-container,
  body#checkout .cart-summary-totals,
  body#checkout .cart-voucher {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ---- _inquiry.css ---- */
/* ============================================================
   INQUIRY (poptávka) checkout.

   The inquiry submit form is supplied by the sdinquiry module, so it
   arrives with no theme markup of its own — these rules give the comment
   and attachment fields the same weight as the checkout's own inputs
   rather than leaving them as raw browser controls at the very last step.
   ============================================================ */

.sd-inquiry-note {
  margin: 0;
  color: var(--sd-text-muted);
  font-size: 0.9rem;
}

#sd-inquiry-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 26, 32, 0.08);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-inquiry-field + .sd-inquiry-field {
  margin-top: 18px;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sd-navy);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20, 26, 32, 0.18);
  border-radius: var(--radius-sm, 4px);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) textarea:focus {
  outline: none;
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.12);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone-heading {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sd-navy);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 216px;
  padding: 14px 16px;
  border: 1px dashed rgba(20, 26, 32, 0.28);
  border-radius: var(--radius-sm, 4px);
  background: rgba(20, 26, 32, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone:hover,
:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone:focus,
:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone:focus-within {
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.12);
  outline: none;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone.is-dragover {
  border-color: var(--sd-red);
  background: var(--sd-red-soft, rgba(226, 0, 26, 0.08));
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone.has-file {
  justify-content: flex-start;
  gap: 12px;
  border-style: solid;
  border-color: var(--sd-navy);
  background: var(--sd-white, #fff);
  cursor: default;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone [hidden] {
  display: none !important;
}

/* Native file input covers the zone so click, keyboard, and drop all
   go through the real control. Opacity keeps the dashed box as the UI. */
:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  font-size: 0;
}

/* With files, the native input only covers the add-more strip so remove
   buttons stay clickable and drop still adds rather than replacing. */
:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone.has-file .sd-dropzone__input {
  inset: auto 0 0 0;
  height: 88px;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--sd-text-muted);
  pointer-events: none;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__idle .material-icons {
  font-size: 28px;
  color: var(--sd-navy);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__prompt {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--sd-navy);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone.has-file .sd-dropzone__idle {
  min-height: 72px;
  padding: 10px 8px;
  border: 1px dashed rgba(20, 26, 32, 0.22);
  border-radius: var(--radius-sm, 4px);
  background: rgba(20, 26, 32, 0.02);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 2;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--sd-gray-200, #e6eaee);
  border-radius: var(--radius-sm, 4px);
  background: var(--sd-gray-50, #fafbfc);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  border: 1px solid var(--sd-gray-200, #e6eaee);
  border-radius: var(--radius-sm, 4px);
  background: #fff;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__chip {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 4px);
  background: var(--sd-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  text-transform: uppercase;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sd-navy);
  overflow-wrap: anywhere;
  word-break: break-word;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__remove {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sd-red);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__error {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: 0.82rem;
  color: var(--sd-red);
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .form-text {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--sd-text-muted);
}

/* Intro line on the personal-information step. */
.sd-inquiry-intro {
  margin-bottom: 22px;
  color: var(--sd-text-muted);
}


/* ------------------------------------------------------------
   One-step inquiry (SD_INQUIRY_ONESTEP): contact, consents, comment
   and attachments in one form, one submit, a way back to the cart.
   ------------------------------------------------------------ */

.sd-back-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sd-text);
  text-decoration: none;
}

.sd-back-to-cart:hover,
.sd-back-to-cart:focus {
  color: var(--sd-red);
  text-decoration: none;
}

.sd-back-to-cart .material-icons {
  font-size: 18px;
}

.sd-onestep .step-title {
  cursor: default;
}

.sd-onestep-form .sd-onestep-group {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sd-onestep-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sd-navy);
}

.sd-onestep-legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sd-gray-200);
}

.sd-onestep-form #sd-inquiry-extras {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Not .form-footer: the checkout forces that into a right-aligned flex row with
   !important (_customer-auth.css), built for a lone Continue button. */
body#checkout .sd-onestep-form .sd-onestep-footer {
  display: block;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--sd-gray-200);
  text-align: left;
}

body#checkout .sd-onestep-form #sd-inquiry-extras label {
  text-align: left;
}

.sd-onestep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

body#checkout .sd-onestep-actions .btn {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 46px;
  margin: 0;
  font-size: 14px;
}

.sd-onestep-back.btn-secondary {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sd-white);
  color: var(--sd-navy);
  border: 1px solid var(--sd-gray-300);
}

.sd-onestep-back.btn-secondary:hover,
.sd-onestep-back.btn-secondary:focus {
  background: var(--sd-white);
  color: var(--sd-navy);
  border-color: var(--sd-navy);
}

.sd-onestep-back .material-icons {
  font-size: 18px;
}

.sd-onestep-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--sd-text-muted);
}

@media (max-width: 575px) {
  /* Stacked: submit first, back underneath. */
  .sd-onestep-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body#checkout .sd-onestep-actions .btn {
    width: 100%;
  }
}

/* ---- Attachment upload progress (sd-checkout.js uploads on submit, in chunks) ---- */
:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__meta {
  flex: 1 1 auto;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__size {
  font-size: 0.78rem;
  color: var(--sd-text-muted, #6b7280);
  font-variant-numeric: tabular-nums;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__item.is-uploaded .sd-dropzone__size {
  color: #1e7a3c;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill, 999px);
  background: var(--sd-gray-200, #e4e8eb);
  overflow: hidden;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__bar[hidden] {
  display: none;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sd-red, #e2001a);
  transition: width 0.2s linear;
}

.sd-upload-progress {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--sd-gray-200, #e4e8eb);
  border-radius: var(--radius-sm, 4px);
  background: var(--sd-gray-50, #fafbfc);
}

.sd-upload-progress[hidden] {
  display: none;
}

.sd-upload-progress__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.sd-upload-progress__label {
  font-weight: 600;
  color: var(--sd-navy, #151a20);
}

.sd-upload-progress__value {
  color: var(--sd-text-muted, #6b7280);
  font-variant-numeric: tabular-nums;
}

.sd-upload-progress__bar {
  height: 8px;
  border-radius: var(--radius-pill, 999px);
  background: var(--sd-gray-200, #e4e8eb);
  overflow: hidden;
}

.sd-upload-progress__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sd-red, #e2001a);
  transition: width 0.2s linear;
}

form.is-uploading .sd-dropzone {
  pointer-events: none;
}

form.is-uploading .sd-dropzone__files {
  pointer-events: auto;
}

form.is-uploading button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: progress;
}

:is(#sd-inquiry-form, #sd-inquiry-extras, #sd-contact-form) .sd-dropzone__remove:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---- _how.css ---- */
/* ============================================================
   Inquiry atelier — "how it works" (dev preview)
   Print-studio language: crop marks, paper, ink, stamp red.
   ============================================================ */

.sd-how-strip,
.sd-how-band,
.sd-atelier {
  --sd-paper: #efe7d8;
  --sd-paper-2: #f7f1e6;
  --sd-ink: #121418;
  --sd-rule: rgba(255, 255, 255, 0.22);
}

/* ---- Homepage compact 1/2/3 (≈ 1/3 of hero height) ---- */
body#index .homeslider-container.sd-slider {
  margin-bottom: 0;
}

.sd-how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: clamp(148px, 12vw, 196px);
  background: var(--sd-ink, #111316);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

nav.sd-how-strip a.sd-how-strip__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 0 clamp(20px, 3vw, 48px);
  color: #fff;
  text-decoration: none;
  min-height: 0;
  transition: background var(--t-fast);
}

.sd-how-strip__step + .sd-how-strip__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

nav.sd-how-strip a.sd-how-strip__step:hover {
  background: rgba(226, 0, 26, 0.16);
  color: #fff;
}

.sd-how-strip__n {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--sd-red);
}

.sd-how-strip__t {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.35vw, 16px);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 16em;
  color: #fff;
}

/* Phone: the three steps stack as a list. Each step is a row — number, label,
   chevron — so the band stays short while every step is a comfortable tap target
   (≥ 64px). The padding rule repeats the desktop selector: the old
   `.sd-how-strip__step` rule lost to `nav.sd-how-strip a.sd-how-strip__step
   { padding: 0 … }`, which left the numbers jammed against the dividers. */
@media (max-width: 640px) {
  .sd-how-strip {
    height: auto;
    grid-template-columns: 1fr;
    padding-block: 8px;
  }
  nav.sd-how-strip a.sd-how-strip__step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 68px;
    padding: 18px var(--gutter);
  }
  nav.sd-how-strip a.sd-how-strip__step::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    flex-shrink: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.45);
    border-right: 2px solid rgba(255, 255, 255, 0.45);
    transform: rotate(45deg);
  }
  .sd-how-strip__n {
    flex: 0 0 2.2ch;
    font-size: 34px;
    line-height: 1;
  }
  .sd-how-strip__t {
    font-size: 14px;
    max-width: none;
  }
  .sd-how-strip__step + .sd-how-strip__step::before {
    top: 0;
    bottom: auto;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    height: 1px;
  }
}

/* ---- Detail page shell ---- */
body#module-sdstorefront-howitworks #left-column,
body#module-sdstorefront-howitworks #right-column,
body#module-sdstorefront-howitworks .breadcrumb {
  display: none !important;
}

body#module-sdstorefront-howitworks #content-wrapper {
  width: 100%;
  max-width: none;
  padding: 0;
  float: none;
}

body#module-sdstorefront-howitworks #wrapper > .container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.page-how,
#content.page-how {
  padding: 0 !important;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.page-how-featured {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px);
  background: #fff;
}

/* ---- Cinematic 3-step under hero ---- */
.sd-how-band {
  position: relative;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(226, 0, 26, 0.18), transparent 60%),
    var(--sd-ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
}

.sd-how-band__marks {
  pointer-events: none;
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-how-band__marks::before,
.sd-how-band__marks::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(226, 0, 26, 0.7);
}

.sd-how-band__marks::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.sd-how-band__marks::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.sd-how-band__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.sd-how-band__eyebrow,
.sd-atelier__kicker,
.sd-atelier__head .sd-how-band__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--sd-red);
}

.sd-how-band__title,
.sd-atelier__head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  font-size: clamp(32px, 5vw, 56px);
}

.sd-how-band__lead,
.sd-atelier__head p {
  margin: 0 0 40px;
  max-width: 46rem;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.sd-how-band__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}

.sd-how-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 22px 24px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.sd-how-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 0, 26, 0.7);
  background: rgba(226, 0, 26, 0.08);
  color: #fff;
}

.sd-how-card__n {
  position: absolute;
  top: -18px;
  right: 8px;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.sd-how-card:hover .sd-how-card__n {
  -webkit-text-stroke-color: rgba(226, 0, 26, 0.55);
}

.sd-how-card__stage {
  position: relative;
  height: 168px;
  margin: 8px 0 22px;
  background: #0b0d10;
  overflow: hidden;
}

.sd-how-card__stage--pick {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.95fr;
  grid-template-rows: 1fr;
  gap: 4px;
  min-height: 0;
}

.sd-how-card__stage img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

/* Jacket packshot fills ~92% of its frame vs ~80% for the bottle.
   Keep the tile full-height, shrink the photo so the product matches. */
.sd-how-card__stage--pick .sd-how-card__tile--jacket {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  background: #e8ebef;
  overflow: hidden;
}

.sd-how-card__stage--pick .sd-how-card__tile--jacket img {
  width: 100%;
  height: 88%;
  object-fit: cover;
  object-position: center 40%;
}

.sd-how-card__stage--logo img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  padding: 10px 14px 10px 36%;
  background:
    radial-gradient(circle at 70% 40%, rgba(226, 0, 26, 0.25), transparent 50%),
    #16181c;
}

.sd-how-card__badge {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  padding: 10px 12px;
  border: 2px solid var(--sd-red);
  color: var(--sd-red);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(18, 20, 24, 0.72);
}

.sd-how-card__stage--quote {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -12deg,
      #16181c,
      #16181c 12px,
      #14161a 12px,
      #14161a 24px
    );
}

.sd-how-quote {
  width: 78%;
  padding: 14px 16px 12px;
  background: var(--sd-paper);
  color: var(--sd-ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.sd-how-quote__k {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sd-red);
}

.sd-how-quote__t {
  display: block;
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.sd-how-quote__l {
  display: block;
  font-size: 12px;
  color: #5c6168;
}

.sd-how-quote__cta {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sd-red);
}

.sd-how-card__h {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.sd-how-card__p {
  display: block;
  flex: 1 1 auto;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.sd-how-card__go {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sd-red);
}

@media (max-width: 900px) {
  .sd-how-band__grid { grid-template-columns: 1fr; }
  .sd-how-card__n { font-size: 72px; }
}

/* ---- Comprehensive chapters ---- */
/* The chapters sit on the site's own white surface, not on the print-studio
   cream: the cream band read as a different site once the page was linked from
   the storefront. --sd-paper stays defined above for .sd-how-quote, which is a
   paper chit on the dark band and still wants it. */
.sd-atelier {
  background: var(--sd-white);
  color: var(--sd-ink);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}

.sd-atelier__head {
  max-width: var(--container);
  margin: 0 auto 64px;
}

.sd-atelier__head h2 {
  color: var(--sd-ink);
}

.sd-atelier__head p {
  color: #4a4f57;
  margin-bottom: 0;
}

.sd-atelier__krok {
  scroll-margin-top: 120px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  gap: 40px 48px;
  align-items: center;
}

.sd-atelier__krok:last-child { margin-bottom: 0; }

.sd-atelier__krok--flip .sd-atelier__copy { order: 3; }
.sd-atelier__krok--flip .sd-atelier__visual { order: 2; }

.sd-atelier__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sd-red);
  align-self: start;
  padding-top: 6px;
}

.sd-atelier__kicker {
  color: var(--sd-red);
}

.sd-atelier__copy h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.sd-atelier__copy p,
.sd-atelier__copy li {
  font-size: 16px;
  line-height: 1.6;
  color: #3d424a;
}

.sd-atelier__copy ul {
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.sd-atelier__copy li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
}

.sd-atelier__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 1px;
  background: var(--sd-red);
}

.sd-atelier__cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  background: var(--sd-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--t-fast), transform var(--t-fast);
}

.sd-atelier__cta:hover {
  background: var(--sd-red);
  color: #fff;
  transform: translateY(-2px);
}

.sd-atelier__visual {
  position: relative;
  min-height: 340px;
}

.sd-atelier__visual--mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(280px, 32vw, 420px);
  max-height: 420px;
}

.sd-atelier__visual--mosaic figure:first-child {
  grid-row: 1 / span 2;
}

.sd-atelier__visual--mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--sd-gray-100);
  min-height: 0;
}

.sd-atelier__visual--mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.sd-atelier__visual--mosaic figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  padding: 5px 9px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  color: #121418;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(18, 20, 24, 0.18);
}

.sd-atelier__stamp {
  position: absolute;
  right: -8px;
  top: 18px;
  z-index: 2;
  padding: 8px 12px;
  border: 2px solid var(--sd-red);
  color: var(--sd-red);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transform: rotate(8deg);
  background: rgba(255, 255, 255, 0.92);
}

.sd-atelier__visual--brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-drop {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  background: #1a1d22;
  overflow: hidden;
}

.sd-drop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px 16px 18px 8%;
  background: #f3f1ec;
}

.sd-drop__logo {
  position: absolute;
  left: 28px;
  top: 42%;
  transform: rotate(-7deg);
  padding: 16px 14px;
  border: 3px solid var(--sd-red);
  color: var(--sd-red);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.05;
  text-align: center;
  background: rgba(18, 20, 24, 0.55);
}

.sd-drop__file {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #121418;
  background: rgba(255, 255, 255, 0.94);
}

.sd-atelier__visual--offer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-sheet {
  width: min(100%, 420px);
  padding: 28px 28px 22px;
  background: #fff;
  box-shadow:
    18px 22px 0 rgba(226, 0, 26, 0.12),
    0 24px 50px rgba(18, 20, 24, 0.12);
}

.sd-sheet header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7a8088;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece7de;
}

.sd-sheet__h {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sd-sheet ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sd-sheet li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e4ddd0;
  font-size: 14px;
}

.sd-sheet footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: #5c6168;
}

.sd-sheet__ok {
  font-family: var(--font-display);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sd-red);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .sd-atelier__krok,
  .sd-atelier__krok--flip .sd-atelier__copy,
  .sd-atelier__krok--flip .sd-atelier__visual {
    grid-template-columns: 1fr;
    order: unset;
  }
  .sd-atelier__num { grid-row: 1; }
  .sd-atelier__copy { grid-row: 2; }
  .sd-atelier__visual { grid-row: 3; min-height: 260px; }
}

/* ---- _contact.css ---- */
/* ============================================================
   CSG / Senza — contact page (/cs/napiste-nam)
   Full-width two-column shell: info card + message form.
   Matches product/category: white surfaces, navy type, red CTA.
   ============================================================ */

body#contact #main {
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

body#contact #wrapper > .container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

body#contact #left-column,
body#contact #right-column {
  display: none !important;
}

body#contact #content.page-content,
body#contact #content.sd-contact {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: none;
}

/* ---- Page header ---- */
body#contact .sd-contact__head {
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  padding: 0;
  border: none;
  text-align: left;
  max-width: 40rem;
}

body#contact .sd-contact__head::before {
  display: none;
}

body#contact .sd-contact__head h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--sd-navy);
}

body#contact .sd-contact__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--sd-text-muted);
}

/* ---- Grid ---- */
body#contact .sd-contact__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 900px) {
  body#contact .sd-contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Shared card chrome ---- */
body#contact .sd-contact-info,
body#contact .sd-contact-form {
  background: var(--sd-white);
  border: 1px solid var(--sd-gray-200);
  border-top: 3px solid var(--sd-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 32px);
  color: var(--sd-text);
}

/* ---- Info card ---- */
body#contact .sd-contact-info__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sd-navy);
  line-height: 1.2;
}

body#contact .sd-contact-info__block + .sd-contact-info__block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--sd-gray-200);
}

body#contact .sd-contact-info__label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sd-text-muted);
}

body#contact .sd-contact-info__data {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--sd-text);
}

body#contact .sd-contact-info__data a {
  color: var(--sd-navy);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t-fast);
}

body#contact .sd-contact-info__data a:hover {
  color: var(--sd-red);
}

/* Kill Classic Material-icon leftovers if any */
body#contact .contact-rich .icon,
body#contact .contact-rich hr {
  display: none;
}

/* ---- Form card ---- */
body#contact .sd-contact-form {
  width: 100%;
}

body#contact .sd-contact-form__head {
  margin-bottom: 22px;
}

body#contact .sd-contact-form__head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sd-navy);
  line-height: 1.2;
}

body#contact .sd-contact-form__head p {
  margin: 0;
  color: var(--sd-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

body#contact .sd-contact-form__field + .sd-contact-form__field {
  margin-top: 18px;
}

body#contact .sd-contact-form__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sd-navy);
}

body#contact .sd-contact-form__optional {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sd-text-muted);
}

body#contact .sd-contact-form .form-control,
body#contact .sd-contact-form select.form-control,
body#contact .sd-contact-form textarea.form-control {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  padding: 12px 14px;
  border: 1px solid var(--sd-gray-300);
  border-radius: var(--radius-sm);
  background: var(--sd-white);
  color: var(--sd-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: none;
  appearance: none;
}

body#contact .sd-contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

body#contact .sd-contact-form .form-control:focus,
body#contact .sd-contact-form select.form-control:focus,
body#contact .sd-contact-form textarea.form-control:focus {
  outline: none;
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px var(--sd-red-soft);
  background: var(--sd-white);
}

body#contact .sd-contact-form__file {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed var(--sd-gray-300);
  border-radius: var(--radius-sm);
  background: var(--sd-gray-50);
  font: inherit;
  color: var(--sd-text);
  cursor: pointer;
}

body#contact .sd-contact-form__file:focus {
  outline: none;
  border-color: var(--sd-red);
  box-shadow: 0 0 0 3px var(--sd-red-soft);
}

body#contact .sd-contact-form__hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--sd-text-muted);
}

/* Hide Bootstrap filestyle chrome if module JS still injects it */
body#contact .sd-contact-form .bootstrap-filestyle,
body#contact .sd-contact-form .group-span-filestyle {
  display: none !important;
}

body#contact .sd-contact-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body#contact .sd-contact-form__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sd-gray-200);
  text-align: left;
}

body#contact .sd-contact-form__submit,
body#contact .sd-contact-form .btn-primary {
  background: var(--sd-red) !important;
  border-color: var(--sd-red) !important;
  border-radius: 2px !important;
  color: var(--sd-white) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 36px !important;
  box-shadow: var(--shadow-red) !important;
  transition: background var(--t-fast), box-shadow var(--t-fast) !important;
  float: none !important;
  width: auto;
  cursor: pointer;
}

body#contact .sd-contact-form__submit:hover,
body#contact .sd-contact-form .btn-primary:hover {
  background: var(--sd-red-dark) !important;
  border-color: var(--sd-red-dark) !important;
  color: var(--sd-white) !important;
}

/* Alerts */
body#contact .sd-contact-form__alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

body#contact .sd-contact-form__alert ul {
  margin: 0;
  padding-left: 1.1em;
}

body#contact .sd-contact-form__alert--ok {
  background: #f0faf3;
  border-color: #b7e0c2;
  color: #1a5c2e;
}

body#contact .sd-contact-form__alert--error {
  background: #fff5f5;
  border-color: #f0c2c2;
  color: #8a1f1f;
}

/* "Rychlá poptávka" / "Napište nám" link to #sd-contact-form. The header is sticky
   (123px desktop, 111px phone), so without this the form's top landed under it. */
#sd-contact-form { scroll-margin-top: 140px; }

/* ---- _confirmation.css ---- */
/* ============================================================
   INQUIRY CONFIRMATION — body#order-confirmation
   Template: checkout/order-confirmation.tpl
   Follows the one-step checkout: white cards, red top accent,
   Oswald uppercase labels, content column + summary sidebar.
   ============================================================ */

/* The page's content container is otherwise full-bleed (see the
   customer-page list in _customer-auth.css, which predates this page). */
body#order-confirmation #wrapper > .container:not(:first-of-type) {
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: var(--gutter) !important;
}

body#order-confirmation #wrapper > .container:not(:first-of-type) > .row {
  margin-inline: 0;
}

body#order-confirmation #content-wrapper {
  padding-inline: 0;
}

.sd-confirm {
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(40px, 5vw, 72px);
  color: var(--sd-text);
}

/* ---- Hero ---- */
.sd-confirm-hero {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.sd-confirm-hero__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 50%;
  background: var(--sd-red);
  color: var(--sd-white);
  box-shadow: var(--shadow-red);
}

.sd-confirm-hero__icon .material-icons {
  font-size: clamp(26px, 3vw, 32px);
}

.sd-confirm-hero__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-red);
}

.sd-confirm-hero__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--sd-navy);
}

.sd-confirm-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sd-text-muted);
}

.sd-confirm-hero__lead strong {
  color: var(--sd-navy);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---- Grid ---- */
.sd-confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.sd-confirm-main,
.sd-confirm-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sd-confirm-side {
  position: sticky;
  top: 24px;
}

/* ---- Cards ---- */
.sd-confirm-card {
  border: 1px solid var(--sd-gray-200);
  border-radius: var(--radius);
  background: var(--sd-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sd-confirm-card--accent {
  border-top: 3px solid var(--sd-red);
  box-shadow: 0 4px 20px rgba(20, 26, 32, 0.10);
}

.sd-confirm-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 20px;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.6vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sd-navy);
  border-bottom: 1px solid var(--sd-gray-200);
}

.sd-confirm-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--sd-gray-100);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--sd-text-muted);
}

/* ---- Next steps ---- */
.sd-confirm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-confirm-steps__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.sd-confirm-steps__item + .sd-confirm-steps__item {
  border-left: 1px solid var(--sd-gray-200);
}

.sd-confirm-steps__n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sd-red);
}

.sd-confirm-steps__h {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sd-navy);
}

.sd-confirm-steps__p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sd-text-muted);
}

/* ---- Items ---- */
.sd-confirm-items {
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.sd-confirm-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.sd-confirm-item + .sd-confirm-item {
  border-top: 1px solid var(--sd-gray-200);
}

.sd-confirm-item__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--sd-surface);
  overflow: hidden;
}

.sd-confirm-item__img img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sd-confirm-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sd-confirm-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--sd-navy);
  overflow-wrap: anywhere;
}

.sd-confirm-item__ref {
  font-size: 0.78rem;
  color: var(--sd-text-muted);
}

.sd-confirm-item__qty {
  font-size: 0.875rem;
  color: var(--sd-text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sd-confirm-item__total {
  min-width: 90px;
  text-align: right;
  font-weight: 700;
  color: var(--sd-navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sd-confirm-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 20px;
  padding: 16px 0 6px;
  border-top: 2px solid var(--sd-navy);
}

.sd-confirm-total__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sd-navy);
}

.sd-confirm-total__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sd-navy);
  font-variant-numeric: tabular-nums;
}

.sd-confirm-total__value small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--sd-text-muted);
}

.sd-confirm-note {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.8rem;
  color: var(--sd-text-muted);
}

/* ---- Summary sidebar ---- */
.sd-confirm-dl {
  margin: 0;
  padding: 8px 20px;
}

.sd-confirm-dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.sd-confirm-dl > div + div {
  border-top: 1px solid var(--sd-gray-100);
}

.sd-confirm-dl dt {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--sd-text-muted);
}

.sd-confirm-dl dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sd-navy);
  overflow-wrap: anywhere;
}

.sd-confirm-dl__ref {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.sd-confirm-block {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--sd-gray-200);
}

.sd-confirm-block__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sd-navy);
}

.sd-confirm-block__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sd-text);
  overflow-wrap: anywhere;
}

.sd-confirm-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-confirm-files li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--sd-text);
  overflow-wrap: anywhere;
}

.sd-confirm-files .material-icons {
  font-size: 18px;
  color: var(--sd-text-muted);
}

.sd-confirm-continue.btn {
  width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .sd-confirm-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-confirm-side {
    position: static;
  }
}

@media (max-width: 767px) {
  body#order-confirmation #wrapper > .container:not(:first-of-type) {
    padding-inline: 16px !important;
  }

  .sd-confirm-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-confirm-steps__item + .sd-confirm-steps__item {
    border-left: 0;
    border-top: 1px solid var(--sd-gray-200);
  }

  .sd-confirm-steps__item {
    padding: 16px;
  }

  .sd-confirm-items {
    padding: 0 16px;
  }

  .sd-confirm-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "img body body"
      "img qty total";
    gap: 4px 12px;
  }

  .sd-confirm-item__img { grid-area: img; width: 56px; height: 56px; }
  .sd-confirm-item__body { grid-area: body; }
  .sd-confirm-item__qty { grid-area: qty; }
  .sd-confirm-item__total { grid-area: total; min-width: 0; }

  .sd-confirm-total { margin: 0 16px; }
  .sd-confirm-note { padding: 0 16px 16px; }
  .sd-confirm-card__title { padding: 14px 16px; }
  .sd-confirm-dl { padding: 6px 16px; }
  .sd-confirm-block { padding: 14px 16px 16px; }
}

/* Featured-products band from displayOrderConfirmation2: breathing room above it. */
.sd-confirm #content-hook-order-confirmation-footer:not(:empty) {
  margin-top: clamp(40px, 5vw, 64px);
}

/* ============================================================
   404 — body#pagenotfound (templates/errors/404.tpl)
   ============================================================ */
body#pagenotfound #wrapper > .container:not(:first-of-type) {
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: var(--gutter) !important;
}

body#pagenotfound #wrapper > .container:not(:first-of-type) > .row {
  margin-inline: 0;
}

body#pagenotfound #content-wrapper {
  padding-inline: 0;
}

.sd-notfound {
  max-width: 680px;
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 9vw, 120px);
}

.sd-notfound__code {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--sd-red);
}

.sd-notfound__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--sd-navy);
}

.sd-notfound__lead {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sd-text-muted);
}

.sd-notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 767px) {
  body#pagenotfound #wrapper > .container:not(:first-of-type) {
    padding-inline: 16px !important;
  }

  .sd-notfound__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---- _related.css ---- */
/* ── Related products (cross-gender, same-category recommendations) ── */
.sd-related-products {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Force heading to match the "featured-products" layout used by the
   next section (PRODUKTY VE STEJNÉ KATEGORII). Browsers may keep stale
   cached CSS, so this uses !important to win the cascade. */
.sd-related-products > h2.products-section-title {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Our injected block may make the next featured-products block feel too
   spaced (double top margin). Keep only one spacing rhythm. */
.sd-related-products + .featured-products {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── Related chips (Proposal 3 — compact links in buy box) ── */
.sd-related-chips {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
.sd-related-chips__label {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
  color: #0f172a;
}
.sd-related-chips__list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.sd-related-chips__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.sd-related-chips__item:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(59,130,246,.1);
  text-decoration: none;
  color: inherit;
}
.sd-related-chips__item img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.sd-related-chips__item span {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

/* ---- _seo-content.css ---- */
/* ============================================================
   _seo-content.css — Senza Dubbio
   Editorial content from the SEO plan (docs/PLAN_SEO_CONTENT.md), in the shop's
   brand language (dark ink band + red edge bar, Oswald uppercase titles with the
   red underline bar, navy text):
   - editorial CMS pages (.sd-ed-hero band + .sd-ed-body), cms/page.tpl
   - category text under the products (.category-additional-description)
   - components: tiers, cards, numbered steps, client logos, quote, FAQ, CTA
   - product grids inside CMS pages (.sd-cms-products, sdstorefront)
   - placeholders for client material (.sd-ph) on the Reference page
   - "Personalizace" note under the PDP buy box (.sd-branding-note)
   - footer column + homepage-intro links to the editorial pages
   ============================================================ */

/* accent palette for the editorial components (brand red, the shop's on-demand blue, plus
   a green and an amber) so the pages do not read as black-and-navy only */
:root {
  --sd-ed-accent-1: var(--sd-red);
  --sd-ed-accent-2: var(--sd-on-demand);
  --sd-ed-accent-3: #2e8b57;
  --sd-ed-accent-4: #e0a100;
  --sd-ed-tint-1: rgba(226, 0, 26, 0.06);
  --sd-ed-tint-2: rgba(30, 95, 170, 0.07);
  --sd-ed-tint-3: rgba(46, 139, 87, 0.08);
  --sd-ed-tint-4: rgba(224, 161, 0, 0.1);
}

/* ---------- header band (same as the category header) ---------- */
.sd-ed-hero {
  position: relative;
  background: var(--sd-ink);
  color: #fff;
}

.sd-ed-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--sd-red);
}

.sd-ed-hero-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 46px var(--gutter) 40px;
  box-sizing: border-box;
}

.sd-ed-hero .eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sd-red);
  margin: 0;
}

.sd-ed-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  color: #fff;
  margin: 10px 0 16px;
  max-width: 900px;
}

.sd-ed-hero .sd-ed-lead {
  color: #c4c7cc;
  font-size: 17px;
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}

.sd-ed-hero .sd-ed-lead a {
  color: #fff;
}

.sd-ed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- body ---------- */
#content.page-cms.sd-ed-body,
.category-additional-description {
  text-align: left;
}

/* CMS pages render outside the 1280px container (stock O nás too): keep the body in the
   shop's content column like every other page; only the header band is full-bleed. */
body#cms #content.page-cms {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

#content.page-cms.sd-ed-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-top: 8px;
  padding-bottom: 24px;
}

.page-cms,
.category-additional-description {
  color: var(--sd-text);
  font-size: 16px;
  line-height: 1.7;
}

.page-cms p,
.page-cms li,
.category-additional-description p,
.category-additional-description li {
  color: var(--sd-text);
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.page-cms > p,
.page-cms > ul,
.page-cms > ol:not(.sd-ed-steps),
.page-cms > h3,
.category-additional-description > p,
.category-additional-description > ul,
.category-additional-description > h3 {
  max-width: 780px;
}

/* section titles — the home/listing section title with its red underline bar */
.sd-ed-body > h2,
.sd-ed-body > .sd-faq > h2,
.category-additional-description > h2,
.category-additional-description > .sd-faq > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--sd-navy);
  margin: 56px 0 22px;
}

.sd-ed-body > h2::after,
.sd-ed-body > .sd-faq > h2::after,
.category-additional-description > h2::after,
.category-additional-description > .sd-faq > h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 12px 0 0;
  background: var(--sd-red);
  border-radius: var(--radius-pill);
}

.sd-ed-body > h2:first-child,
.category-additional-description > h2:first-child {
  margin-top: 32px;
}

.sd-ed-body > h3,
.sd-ed-card > h3,
.category-additional-description > h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--sd-navy);
  margin: 32px 0 14px;
}

.page-cms ul,
.category-additional-description ul {
  padding-left: 1.2em;
  list-style: disc;
}

.page-cms li,
.category-additional-description li {
  margin-bottom: 6px;
}

.page-cms li::marker,
.category-additional-description li::marker {
  color: var(--sd-red);
}

.category-additional-description {
  padding-top: 8px;
}

#js-product-list-footer .card {
  border: 0;
  box-shadow: none;
  background: transparent;
}

#js-product-list-footer .card-block {
  padding: 24px 0 0;
}

/* text links only — not the product cards of an embedded grid */
.page-cms p a:not(.btn),
.page-cms li a:not(.btn),
.category-additional-description p a:not(.btn),
.category-additional-description li a:not(.btn) {
  color: var(--sd-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-cms .product-miniature p,
.page-cms .product-miniature a {
  text-decoration: none;
}

/* ---------- tiers (budget levels, client levels, packaging) ---------- */
.page-cms ul.sd-ed-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: none;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.page-cms ul.sd-ed-tiers li {
  margin: 0;
  padding: 22px 22px 20px;
  background: var(--sd-surface);
  border-top: 4px solid var(--sd-red);
  font-size: 15px;
}

.page-cms ul.sd-ed-tiers li strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--sd-navy);
}

.page-cms ul.sd-ed-tiers li:nth-child(4n+1) { border-top-color: var(--sd-ed-accent-1); background: var(--sd-ed-tint-1); }
.page-cms ul.sd-ed-tiers li:nth-child(4n+2) { border-top-color: var(--sd-ed-accent-2); background: var(--sd-ed-tint-2); }
.page-cms ul.sd-ed-tiers li:nth-child(4n+3) { border-top-color: var(--sd-ed-accent-3); background: var(--sd-ed-tint-3); }
.page-cms ul.sd-ed-tiers li:nth-child(4n+4) { border-top-color: var(--sd-ed-accent-4); background: var(--sd-ed-tint-4); }

/* tier CTA (price-filtered Produkty) under the tier text */
.page-cms ul.sd-ed-tiers li a.sd-ed-tier-link {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #a30013;
}

.page-cms ul.sd-ed-tiers li:nth-child(4n+2) a.sd-ed-tier-link { color: #17487f; }
.page-cms ul.sd-ed-tiers li:nth-child(4n+3) a.sd-ed-tier-link { color: #1e6b41; }
.page-cms ul.sd-ed-tiers li:nth-child(4n+4) a.sd-ed-tier-link { color: #7a5500; }

.page-cms ul.sd-ed-tiers li a.sd-ed-tier-link:hover,
.page-cms ul.sd-ed-tiers li a.sd-ed-tier-link:focus-visible {
  text-decoration: underline;
}

/* ---------- cards (branding techniques, reference cases) ---------- */
.sd-ed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0 8px;
}

.sd-ed-cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sd-ed-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(17, 19, 22, 0.1);
  border-top: 4px solid var(--sd-navy);
  transition: box-shadow var(--t-fast);
}

.sd-ed-card:nth-child(4n+1) { border-top-color: var(--sd-ed-accent-1); }
.sd-ed-card:nth-child(4n+2) { border-top-color: var(--sd-ed-accent-2); }
.sd-ed-card:nth-child(4n+3) { border-top-color: var(--sd-ed-accent-3); }
.sd-ed-card:nth-child(4n+4) { border-top-color: var(--sd-ed-accent-4); }

.sd-ed-card:hover {
  box-shadow: 0 10px 28px rgba(17, 19, 22, 0.08);
}

.sd-ed-body .sd-ed-card > h3 {
  margin: 0 0 10px;
}

.page-cms .sd-ed-card p,
.page-cms .sd-ed-card li {
  font-size: 15px;
  line-height: 1.6;
}

.page-cms .sd-ed-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.page-cms .sd-ed-card li {
  padding: 8px 0 0;
  border-top: 1px solid rgba(17, 19, 22, 0.08);
}

.sd-ed-card .sd-ph {
  order: -1;
  margin: -24px -24px 18px;
  min-height: 200px;
}

/* ---------- numbered steps (order process) — like the "Jak to funguje" page ---------- */
.page-cms ol.sd-ed-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2px;
  margin: 24px 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: sd-step;
  background: var(--sd-ink);
  border-left: 8px solid var(--sd-red);
}

.page-cms ol.sd-ed-steps li {
  position: relative;
  margin: 0;
  padding: 64px 22px 24px;
  background: var(--sd-ink);
  color: #c4c7cc;
  font-size: 15px;
  line-height: 1.6;
  counter-increment: sd-step;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}

.page-cms ol.sd-ed-steps li::before {
  content: counter(sd-step, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.page-cms ol.sd-ed-steps li:nth-child(4n+1)::before { -webkit-text-stroke-color: var(--sd-ed-accent-1); }
.page-cms ol.sd-ed-steps li:nth-child(4n+2)::before { -webkit-text-stroke-color: #6fa8e8; }
.page-cms ol.sd-ed-steps li:nth-child(4n+3)::before { -webkit-text-stroke-color: #4cc38a; }
.page-cms ol.sd-ed-steps li:nth-child(4n+4)::before { -webkit-text-stroke-color: var(--sd-ed-accent-4); }

.page-cms ol.sd-ed-steps li strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- client logos + quote (Reference) ---------- */
.sd-ed-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.sd-ed-logos .sd-ph--logo {
  width: auto;
  margin: 0;
}

.sd-ed-quote {
  max-width: 820px;
  margin: 20px 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--sd-red);
}

.page-cms .sd-ed-quote p {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--sd-navy);
}

.sd-ed-quote footer {
  color: var(--sd-text-muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.sd-faq {
  max-width: 780px;
  margin: 40px 0 0;
}

.sd-faq details {
  border-top: 1px solid rgba(17, 19, 22, 0.12);
  padding: 0;
}

.sd-faq details:last-of-type {
  border-bottom: 1px solid rgba(17, 19, 22, 0.12);
}

.sd-faq summary {
  color: var(--sd-navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  line-height: 1.4;
}

.sd-faq summary::-webkit-details-marker {
  display: none;
}

.sd-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--sd-red);
}

.sd-faq details[open] summary::after {
  content: "\2212";
}

.page-cms .product-miniature p,
.page-cms .product-miniature a {
  text-decoration: none;
}

.sd-faq details > p {
  margin: 0 0 16px;
  color: var(--sd-text);
}

/* ---------- CTA — dark band with the red edge, like the header band ---------- */
.sd-cta {
  position: relative;
  margin: 56px 0 8px;
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 32px) calc(clamp(24px, 3.5vw, 40px) + 8px);
  background: var(--sd-ink);
  color: #fff;
}

.sd-cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--sd-red);
}

.page-cms .sd-cta p,
.category-additional-description .sd-cta p {
  max-width: 720px;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.sd-cta .btn {
  margin: 0 10px 10px 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sd-cta .btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.sd-cta .btn-secondary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--sd-ink);
}

/* ---------- product grid inside CMS ---------- */
/* Always full rows: the cards are col-sm-6 / col-lg-4 / col-xl-3 (2 / 3 / 4 per row), so at
   each breakpoint the first card of an incomplete last row and everything after it is hidden
   (nth-child(Nn+1) that is also among the last N-1). A grid smaller than one row stays as is. */
@media (min-width: 576px) and (max-width: 991.98px) {
  .sd-cms-products .products > .product:nth-child(2n+1):last-child:not(:first-child) {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .sd-cms-products .products > .product:nth-child(3n+1):nth-last-child(-n+2):not(:first-child),
  .sd-cms-products .products > .product:nth-child(3n+1):nth-last-child(-n+2):not(:first-child) ~ .product {
    display: none;
  }
}

@media (min-width: 1200px) {
  .sd-cms-products .products > .product:nth-child(4n+1):nth-last-child(-n+3):not(:first-child),
  .sd-cms-products .products > .product:nth-child(4n+1):nth-last-child(-n+3):not(:first-child) ~ .product {
    display: none;
  }
}

.sd-cms-products {
  margin: 8px 0 24px;
}

.sd-cms-products .products {
  margin-bottom: 0;
}

/* vertical gap between card rows (the theme's columns only have a horizontal gutter) */
.sd-cms-products .products > .product {
  margin-bottom: 24px;
}

/* ---------- placeholders (Reference page) ---------- */
.sd-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  margin: 16px 0;
  padding: 16px;
  background: repeating-linear-gradient(45deg, var(--sd-surface), var(--sd-surface) 12px, #eceef0 12px, #eceef0 24px);
  border: 1px dashed rgba(17, 19, 22, 0.25);
  color: var(--sd-text-muted);
  font-size: 14px;
}

.sd-ph--logo {
  display: inline-flex;
  min-height: 72px;
  width: 160px;
  margin: 6px 8px 6px 0;
  vertical-align: middle;
}

@media (max-width: 767px) {
  .sd-ed-hero-inner {
    padding: 32px var(--gutter) 28px;
  }

  .sd-ed-body > h2,
  .category-additional-description > h2 {
    margin-top: 40px;
  }

  .page-cms ol.sd-ed-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- PDP personalisation note ---------- */
.sd-branding-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--sd-surface);
  font-size: 14px;
  line-height: 1.5;
}

.sd-branding-note .material-icons {
  font-size: 20px;
  color: var(--sd-red);
  flex: 0 0 auto;
}

.sd-branding-note p {
  margin: 0;
}

.sd-branding-note a {
  color: var(--sd-red);
  text-decoration: underline;
  white-space: nowrap;
}

/* ---------- footer column with the editorial pages ---------- */
.footer-container .custom-footer .sd-foot-top:has(.sd-foot-links) {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-container .custom-footer .sd-foot-links h4 {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}

.footer-container .custom-footer .sd-foot-links p {
  margin: 0 0 10px;
  line-height: 1.7;
  font-size: 0.875rem;
}

.footer-container .custom-footer .sd-foot-links a {
  color: #aeb2b7;
  text-decoration: none;
}

.footer-container .custom-footer .sd-foot-links a:hover {
  color: #fff;
}

@media (max-width: 767px) {
  .footer-container .custom-footer .sd-foot-top:has(.sd-foot-links) {
    grid-template-columns: 1fr;
  }
}

/* ---------- homepage intro: links to the landing pages ---------- */
.sd-home-intro .sd-home-intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
}

.sd-home-intro .sd-home-intro-links a {
  color: var(--sd-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- brand cards (Dárky pro klienty → Prémiové značky) ---------- */
.sd-ed-brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 8px;
}

.sd-ed-brand {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 19, 22, 0.1);
  border-top: 4px solid var(--sd-ed-accent-1);
  transition: box-shadow var(--t-fast);
}

.sd-ed-brand:nth-child(4n+2) { border-top-color: var(--sd-ed-accent-2); }
.sd-ed-brand:nth-child(4n+3) { border-top-color: var(--sd-ed-accent-3); }
.sd-ed-brand:nth-child(4n+4) { border-top-color: var(--sd-ed-accent-4); }

.sd-ed-brand:hover {
  box-shadow: 0 12px 32px rgba(17, 19, 22, 0.1);
}

.sd-ed-brand-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid rgba(17, 19, 22, 0.06);
}

.sd-ed-brand-media a,
.sd-ed-brand-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sd-ed-brand-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.sd-ed-brand:hover .sd-ed-brand-media a img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .sd-ed-brand:hover .sd-ed-brand-media a img {
    transform: none;
  }
}

.sd-ed-brand > h3,
.sd-ed-brand > p {
  margin-left: 22px;
  margin-right: 22px;
}

.sd-ed-body .sd-ed-brand > h3 {
  margin-top: 20px;
  margin-bottom: 2px;
  font-size: 22px;
}

.page-cms .sd-ed-brand > p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-cms .sd-ed-brand > p.sd-ed-brand-origin {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--sd-text-muted);
  margin-bottom: 10px;
}

.page-cms .sd-ed-brand > p.sd-ed-brand-badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--sd-ed-tint-2);
  color: var(--sd-on-demand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* badge text colours darkened for 4.5:1 contrast on the tints; the top borders keep the accents */
.sd-ed-brand:nth-child(4n+1) > p.sd-ed-brand-badge { background: var(--sd-ed-tint-1); color: #a30013; }
.sd-ed-brand:nth-child(4n+3) > p.sd-ed-brand-badge { background: var(--sd-ed-tint-3); color: #1e6b41; }
.sd-ed-brand:nth-child(4n+4) > p.sd-ed-brand-badge { background: var(--sd-ed-tint-4); color: #7a5500; }

.page-cms .sd-ed-brand > p.sd-ed-brand-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(17, 19, 22, 0.08);
}

.page-cms p.sd-ed-brand-links a {
  text-decoration: none;
}

.page-cms p.sd-ed-brand-links a.sd-ed-brand-product {
  color: var(--sd-navy);
  font-weight: 600;
}

.page-cms p.sd-ed-brand-links a.sd-ed-brand-all {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sd-red);
}

.page-cms p.sd-ed-brand-links a:hover,
.page-cms p.sd-ed-brand-links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .sd-ed-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .sd-ed-brands {
    grid-template-columns: 1fr;
  }
}

/* ---------- example product photo in CMS content ([sd_product_image]) ---------- */
.sd-ed-figure {
  margin: 0 0 16px;
}

.sd-ed-figure a {
  display: block;
}

.sd-ed-figure picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 19, 22, 0.08);
}

.sd-ed-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-cms .sd-ed-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sd-text-muted);
}

.page-cms .sd-ed-figure figcaption a {
  color: var(--sd-navy);
  font-weight: 600;
  text-decoration: none;
}

.page-cms .sd-ed-card p.sd-ed-tab-more {
  margin: 14px 0 0;
}

.page-cms .sd-ed-card p.sd-ed-tab-more a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #a30013;
}

/* ---------- tabs (desktop) / accordion (mobile) — sd-tabs.js ---------- */
.sd-ed-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

.sd-ed-tab {
  padding: 9px 18px;
  border: 1px solid rgba(17, 19, 22, 0.25);
  border-radius: 30px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sd-navy);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.sd-ed-tab:hover {
  border-color: var(--sd-navy);
}

.sd-ed-tab[aria-selected="true"] {
  background: var(--sd-red);
  border-color: var(--sd-red);
  color: #fff;
}

.sd-ed-tab:focus-visible,
.sd-ed-acc-toggle:focus-visible {
  outline: 3px solid var(--sd-on-demand);
  outline-offset: 2px;
}

.sd-ed-tabs.is-enhanced {
  display: block;
}

.sd-ed-tabs.is-enhanced > .sd-ed-card {
  display: block;
  padding: 28px;
}

.sd-ed-acc-toggle {
  all: inherit;
  display: block;
  width: 100%;
  cursor: pointer;
}

@media (min-width: 768px) {
  .sd-ed-tabs.is-enhanced > .sd-ed-card:not(.is-active) {
    display: none;
  }

  /* the tab label is the heading on desktop; keep the h3 for screen readers / SEO */
  .sd-ed-tabs.is-enhanced > .sd-ed-card > h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sd-ed-tabs.is-enhanced .sd-ed-tab-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 32px;
    align-items: start;
  }

  .sd-ed-tabs.is-enhanced .sd-ed-tab-body .sd-ed-figure {
    margin: 0;
  }

  .page-cms .sd-ed-tabs.is-enhanced .sd-ed-tab-text > p:first-child {
    margin-top: 0;
    font-size: 17px;
    font-weight: 500;
  }
}

@media (max-width: 767.98px) {
  .sd-ed-tablist {
    display: none;
  }

  .sd-ed-tabs.is-enhanced > .sd-ed-card {
    padding: 0;
    margin-bottom: 10px;
  }

  .sd-ed-body .sd-ed-tabs.is-enhanced > .sd-ed-card > h3 {
    margin: 0;
  }

  .sd-ed-tabs.is-enhanced .sd-ed-acc-toggle {
    position: relative;
    padding: 16px 48px 16px 18px;
  }

  .sd-ed-tabs.is-enhanced .sd-ed-acc-toggle::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    color: var(--sd-red);
  }

  .sd-ed-tabs.is-enhanced > .sd-ed-card.is-active .sd-ed-acc-toggle::after {
    content: "\2212";
  }

  .sd-ed-tabs.is-enhanced > .sd-ed-card:not(.is-active) .sd-ed-tab-body {
    display: none;
  }

  .sd-ed-tabs.is-enhanced .sd-ed-tab-body {
    padding: 0 18px 18px;
  }
}
