/* Modern retail web template — B/W organic shoe shop (fork of base).
   Active only when body.shop-tpl-modern is set from retail_web_template=modern. */

body.shop-tpl-modern {
  --accent: #111111;
  --accent-dark: #000000;
  --accent-dim: rgba(0, 0, 0, 0.06);
  --accent-warm: #c45c26;
  --sale: #e11d48;
  --ink: #111111;
  --ink-muted: #6b6b6b;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e8e8e8;
  --surface-soft: #f5f5f5;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--ink);
}

body.shop-tpl-modern::before,
body.shop-tpl-modern::after {
  display: none !important;
}

/* --- Top trust strip: hide (modern is quieter) --- */
body.shop-tpl-modern .trust-bar {
  display: none !important;
}

/* Announcement strip sits above overlay header */
body.shop-tpl-modern .shop-announce {
  background: #2a2a2a;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.shop-tpl-modern .shop-announce-text {
  font-weight: 500;
}

/* --- Header: overlay on hero, logo center, hover reveals bar --- */
body.shop-tpl-modern .site-header {
  position: absolute;
  top: var(--shop-announce-h, 0px);
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

body.shop-tpl-modern .site-header::before,
body.shop-tpl-modern .site-header::after {
  display: none !important;
}

body.shop-tpl-modern .site-header .header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "nav brand actions";
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 28px;
}

body.shop-tpl-modern #headerNav {
  grid-area: nav;
  justify-self: start;
  align-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

body.shop-tpl-modern #brand {
  grid-area: brand;
  justify-self: center;
  max-width: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.shop-tpl-modern #brand .brand-mark {
  display: none;
}

body.shop-tpl-modern #brand .tagline {
  display: none !important;
}

body.shop-tpl-modern #brand img {
  height: 40px;
  max-width: 160px;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.25));
}

body.shop-tpl-modern .header-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

body.shop-tpl-modern .header-categories {
  flex: 0 0 auto;
}

body.shop-tpl-modern .header-categories-btn .menu-label {
  display: none;
}

body.shop-tpl-modern #headerNav .header-nav-link {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
}

body.shop-tpl-modern #headerNav .header-nav-link:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.shop-tpl-modern #cartBtn {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  border-radius: 0;
  gap: 6px;
  padding: 8px 4px;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

body.shop-tpl-modern #cartBtn .cart-btn-label {
  display: none;
}

body.shop-tpl-modern #cartLabel {
  background: #111;
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

body.shop-tpl-modern .header-categories-btn {
  background: transparent;
  border: none;
  color: #fff;
  box-shadow: none;
}

body.shop-tpl-modern .header-search-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

body.shop-tpl-modern .header-search-btn:hover,
body.shop-tpl-modern .site-header.is-search-open .header-search-btn {
  background: transparent;
  border: none;
  color: #fff;
}

body.shop-tpl-modern .header-search-row {
  display: none !important;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

body.shop-tpl-modern .site-header.is-search-open .header-search-row {
  display: block !important;
}

body.shop-tpl-modern .site-header.is-search-open {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #111;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

body.shop-tpl-modern .site-header.is-search-open #brand {
  color: #111;
  text-shadow: none;
}

body.shop-tpl-modern .site-header.is-search-open #brand img {
  filter: none;
}

body.shop-tpl-modern .site-header.is-search-open #headerNav .header-nav-link,
body.shop-tpl-modern .site-header.is-search-open #cartBtn,
body.shop-tpl-modern .site-header.is-search-open .header-search-btn,
body.shop-tpl-modern .site-header.is-search-open .header-categories-btn {
  color: #111;
}

body.shop-tpl-modern .header-search input {
  border-radius: 0;
  border-color: #111;
  background: #fff;
  box-shadow: none;
}

body.shop-tpl-modern .header-search input:focus {
  border-color: #111;
  box-shadow: none;
}

/* Hover / focus: bordered bar (desktop) */
@media (hover: hover) and (pointer: fine) {
  body.shop-tpl-modern .site-header:hover,
  body.shop-tpl-modern .site-header:focus-within,
  body.shop-tpl-modern .site-header.is-nav-open {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #111;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  }

  body.shop-tpl-modern .site-header:hover #brand,
  body.shop-tpl-modern .site-header:focus-within #brand,
  body.shop-tpl-modern .site-header.is-nav-open #brand {
    color: #111;
    text-shadow: none;
  }

  body.shop-tpl-modern .site-header:hover #brand img,
  body.shop-tpl-modern .site-header:focus-within #brand img,
  body.shop-tpl-modern .site-header.is-nav-open #brand img {
    filter: none;
  }

  body.shop-tpl-modern .site-header:hover #headerNav .header-nav-link,
  body.shop-tpl-modern .site-header:focus-within #headerNav .header-nav-link,
  body.shop-tpl-modern .site-header.is-nav-open #headerNav .header-nav-link,
  body.shop-tpl-modern .site-header:hover #cartBtn,
  body.shop-tpl-modern .site-header:focus-within #cartBtn,
  body.shop-tpl-modern .site-header.is-nav-open #cartBtn,
  body.shop-tpl-modern .site-header:hover .header-search-btn,
  body.shop-tpl-modern .site-header:focus-within .header-search-btn,
  body.shop-tpl-modern .site-header.is-nav-open .header-search-btn,
  body.shop-tpl-modern .site-header:hover .header-categories-btn,
  body.shop-tpl-modern .site-header:focus-within .header-categories-btn,
  body.shop-tpl-modern .site-header.is-nav-open .header-categories-btn {
    color: #111;
  }

  body.shop-tpl-modern .site-header:hover #cartLabel,
  body.shop-tpl-modern .site-header:focus-within #cartLabel,
  body.shop-tpl-modern .site-header.is-nav-open #cartLabel {
    background: #111;
    color: #fff;
  }
}

/* Scrolled / non-hero pages: solid white sticky bar (readable on white content) */
body.shop-tpl-modern.shop-scrolled .site-header,
body.shop-tpl-modern.pdp .site-header,
body.shop-tpl-modern.checkout-view .site-header,
body.shop-tpl-modern.info-page .site-header,
body.shop-tpl-modern.search-page .site-header,
body.shop-tpl-modern.category-page .site-header {
  position: sticky;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
}

body.shop-tpl-modern.shop-scrolled #brand,
body.shop-tpl-modern.pdp #brand,
body.shop-tpl-modern.checkout-view #brand,
body.shop-tpl-modern.info-page #brand,
body.shop-tpl-modern.search-page #brand,
body.shop-tpl-modern.category-page #brand {
  color: #111;
  text-shadow: none;
}

body.shop-tpl-modern.shop-scrolled #brand img,
body.shop-tpl-modern.pdp #brand img,
body.shop-tpl-modern.checkout-view #brand img,
body.shop-tpl-modern.info-page #brand img,
body.shop-tpl-modern.search-page #brand img,
body.shop-tpl-modern.category-page #brand img {
  filter: none;
}

body.shop-tpl-modern.shop-scrolled #headerNav .header-nav-link,
body.shop-tpl-modern.pdp #headerNav .header-nav-link,
body.shop-tpl-modern.checkout-view #headerNav .header-nav-link,
body.shop-tpl-modern.info-page #headerNav .header-nav-link,
body.shop-tpl-modern.search-page #headerNav .header-nav-link,
body.shop-tpl-modern.category-page #headerNav .header-nav-link,
body.shop-tpl-modern.shop-scrolled #cartBtn,
body.shop-tpl-modern.pdp #cartBtn,
body.shop-tpl-modern.checkout-view #cartBtn,
body.shop-tpl-modern.info-page #cartBtn,
body.shop-tpl-modern.search-page #cartBtn,
body.shop-tpl-modern.category-page #cartBtn,
body.shop-tpl-modern.shop-scrolled .header-categories-btn,
body.shop-tpl-modern.pdp .header-categories-btn,
body.shop-tpl-modern.checkout-view .header-categories-btn,
body.shop-tpl-modern.info-page .header-categories-btn,
body.shop-tpl-modern.search-page .header-categories-btn,
body.shop-tpl-modern.category-page .header-categories-btn {
  color: #111;
}

body.shop-tpl-modern .header-nav-dropdown {
  background: #fff;
  border: 1px solid #111;
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body.shop-tpl-modern .header-nav-dropdown a {
  color: #111;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Hero: full-bleed landscape (ideal asset ~2400×1200 / 2:1) --- */
body.shop-tpl-modern .hero {
  padding: 0;
  border-bottom: none;
  background: #1a1a1a;
  min-height: clamp(420px, 62vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 0 !important;
}

body.shop-tpl-modern .hero.has-banner {
  background-size: cover;
  background-position: center;
  margin-bottom: 0 !important;
}

body.shop-tpl-modern .hero-banners {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.shop-tpl-modern .hero-banner-slide {
  position: absolute;
  background-size: cover;
  background-position: center;
}

body.shop-tpl-modern .hero-banner-slide.is-active {
  pointer-events: auto;
}

body.shop-tpl-modern .hero-banner-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

body.shop-tpl-modern .hero-banner-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 36px;
  z-index: 3;
  max-width: min(92vw, 560px);
  pointer-events: none;
}

body.shop-tpl-modern .hero-banner-copy > * {
  pointer-events: auto;
}

body.shop-tpl-modern .hero-banner-eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

body.shop-tpl-modern .hero-banner-copy.eyebrow-sm .hero-banner-eyebrow {
  font-size: 11px;
}

body.shop-tpl-modern .hero-banner-copy.eyebrow-md .hero-banner-eyebrow {
  font-size: 13px;
}

body.shop-tpl-modern .hero-banner-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

body.shop-tpl-modern .hero-banner-copy.title-sm .hero-banner-title {
  font-size: clamp(22px, 3vw, 30px);
}

body.shop-tpl-modern .hero-banner-copy.title-md .hero-banner-title {
  font-size: clamp(28px, 4vw, 42px);
}

body.shop-tpl-modern .hero-banner-copy.title-lg .hero-banner-title {
  font-size: clamp(34px, 5vw, 54px);
}

body.shop-tpl-modern .hero-banner-copy.color-white .hero-banner-eyebrow,
body.shop-tpl-modern .hero-banner-copy.color-white .hero-banner-title {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

body.shop-tpl-modern .hero-banner-copy.color-black .hero-banner-eyebrow,
body.shop-tpl-modern .hero-banner-copy.color-black .hero-banner-title {
  color: #111;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.35);
}

body.shop-tpl-modern .hero-banner-copy.color-accent .hero-banner-eyebrow,
body.shop-tpl-modern .hero-banner-copy.color-accent .hero-banner-title {
  color: var(--accent, #111);
  text-shadow: none;
}

body.shop-tpl-modern .hero-banner-slide a.hero-banner-cta,
body.shop-tpl-modern .home-mid-hero-slide a.hero-banner-cta,
body.shop-tpl-modern .hero-banner-cta {
  position: relative;
  z-index: 4;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-height: 42px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-indent: 0 !important;
  overflow: visible !important;
  border-radius: 0;
  letter-spacing: 0.02em;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

body.shop-tpl-modern .hero-banner-cta.cta-light {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

body.shop-tpl-modern .hero-banner-cta.cta-light:hover {
  background: transparent;
  color: #fff;
}

body.shop-tpl-modern .hero-banner-cta.cta-dark {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

body.shop-tpl-modern .hero-banner-cta.cta-dark:hover {
  background: #333;
}

body.shop-tpl-modern .hero-banner-cta.cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

body.shop-tpl-modern .hero-banner-copy.color-black .hero-banner-cta.cta-outline {
  color: #111;
  border-color: #111;
}

body.shop-tpl-modern .hero-banner-cta.cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.shop-tpl-modern .hero.has-slide-copy > .wrap .hero-copy {
  display: none;
}

body.shop-tpl-modern .hero.has-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.08) 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

body.shop-tpl-modern .hero > .wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 28px 40px;
  text-align: left;
  z-index: 2;
}

body.shop-tpl-modern .hero-copy {
  max-width: min(92vw, 520px);
  margin: 0;
}

body.shop-tpl-modern .hero-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

body.shop-tpl-modern #heroTitle {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: none;
}

body.shop-tpl-modern #heroSubtitle {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 18px;
  max-width: 36ch;
}

body.shop-tpl-modern .hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 0;
  letter-spacing: 0.02em;
  transition: background 140ms ease, color 140ms ease;
}

body.shop-tpl-modern .hero-cta-btn:hover {
  background: transparent;
  color: #fff;
}

/* Category strip — sibling under hero (not absolute overlay inside banner) */
body.shop-tpl-modern .hero-categories--modern,
body.shop-tpl-modern #heroCategories.hero-categories--modern {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 40px 0 44px;
  background: #fff;
  animation: none !important;
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

body.shop-tpl-modern .hero-categories-head {
  padding: 0 28px 20px;
  text-align: right;
}

body.shop-tpl-modern .hero-categories-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

body.shop-tpl-modern .hero-categories-row {
  position: relative;
  display: block;
}

body.shop-tpl-modern .hero-categories-track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 28px 4px 72px;
}

body.shop-tpl-modern .hero-categories-track::-webkit-scrollbar {
  display: none;
}

body.shop-tpl-modern .hero-categories-next {
  position: absolute;
  top: 50%;
  left: 20px;
  right: auto;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
}

body.shop-tpl-modern .hero-categories-next .ti {
  font-size: 20px;
  line-height: 1;
}

body.shop-tpl-modern .hero-categories--modern .hero-cat {
  scroll-snap-align: start;
  position: relative;
  flex: 0 0 auto;
  width: min(300px, 48vw);
  height: auto;
  aspect-ratio: 3 / 4;
  display: block;
  min-height: 0 !important;
  border-radius: 20px;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  animation: none !important;
  will-change: auto !important;
  background: #e8e8e8;
  transform: none !important;
  text-decoration: none;
}

body.shop-tpl-modern .hero-categories--modern .hero-cat::before {
  display: none !important;
}

body.shop-tpl-modern .hero-categories--modern .hero-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.shop-tpl-modern .hero-cat-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 48%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

body.shop-tpl-modern .hero-categories--modern .hero-cat-name {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  right: 18px;
  width: auto;
  height: auto;
  display: block;
  padding: 0;
  margin: 0;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-end;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

body.shop-tpl-modern.pdp #heroCategories,
body.shop-tpl-modern.pdp #heroCategories.hero-categories--modern,
body.shop-tpl-modern.category-page #heroCategories,
body.shop-tpl-modern.category-page #heroCategories.hero-categories--modern,
body.shop-tpl-modern.search-page #heroCategories,
body.shop-tpl-modern.search-page #heroCategories.hero-categories--modern,
body.shop-tpl-modern.checkout-view #heroCategories,
body.shop-tpl-modern.checkout-view #heroCategories.hero-categories--modern,
body.shop-tpl-modern.info-page #heroCategories,
body.shop-tpl-modern.info-page #heroCategories.hero-categories--modern,
body.pdp #heroCategories,
body.category-page #heroCategories,
body.search-page #heroCategories,
body.checkout-view #heroCategories,
body.info-page #heroCategories {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* --- Benefits / trust: keep structure, quiet B/W --- */
body.shop-tpl-modern .benefits,
body.shop-tpl-modern .trust-badges-section,
body.shop-tpl-modern #main {
  background: #fff;
}

/* Film-strip badges directly under hero */
body.shop-tpl-modern .benefits.benefits--marquee {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: visible;
}

/* Vertical padding lives INSIDE overflow:hidden so pill borders aren't clipped */
body.shop-tpl-modern .benefits--marquee .benefits-marquee {
  padding: 18px 0;
  box-sizing: border-box;
}

body.shop-tpl-modern .benefits--marquee .benefits-marquee-track {
  padding: 6px 0;
  align-items: center;
  justify-content: flex-start;
}

body.shop-tpl-modern .benefits--marquee .benefits-marquee-set {
  gap: var(--benefits-marquee-gap, 12px);
}

/* Default: pill chips (matches Baskèts-style film strip) */
body.shop-tpl-modern .benefits--marquee .benefit-item,
body.shop-tpl-modern .benefits--marquee.benefits--style-pills .benefit-item,
body.shop-tpl-modern .benefits--marquee[data-benefits-style="pills"] .benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  box-shadow: none;
  box-sizing: border-box;
  line-height: 1.2;
}

body.shop-tpl-modern .benefits--marquee.benefits--style-plain .benefit-item,
body.shop-tpl-modern .benefits--marquee[data-benefits-style="plain"] .benefit-item {
  padding: 4px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
}

body.shop-tpl-modern .benefits--marquee .benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #111;
  color: #111;
  flex-shrink: 0;
}

body.shop-tpl-modern .benefits--marquee .benefit-icon .ti {
  font-size: 13px;
  color: #111;
  line-height: 1;
}

body.shop-tpl-modern .benefits--marquee .benefit-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

body.shop-tpl-modern .benefits--marquee .benefit-text strong {
  color: #111;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

body.shop-tpl-modern .benefits--marquee.benefits--show-sub .benefit-text span,
body.shop-tpl-modern .benefits--marquee[data-benefits-show-sub="1"] .benefit-text span {
  display: block;
  font-size: 10.5px;
  color: #666;
  line-height: 1.2;
  margin-top: 1px;
}

/* Speed is primarily --benefits-marquee-duration from JS; class fallbacks below */
body.shop-tpl-modern .benefits--marquee.benefits--speed-slow .benefits-marquee-track,
body.shop-tpl-modern .benefits--marquee[data-benefits-speed="slow"] .benefits-marquee-track {
  --benefits-marquee-duration: 56s;
}
body.shop-tpl-modern .benefits--marquee.benefits--speed-normal .benefits-marquee-track,
body.shop-tpl-modern .benefits--marquee[data-benefits-speed="normal"] .benefits-marquee-track {
  --benefits-marquee-duration: 38s;
}
body.shop-tpl-modern .benefits--marquee.benefits--speed-fast .benefits-marquee-track,
body.shop-tpl-modern .benefits--marquee[data-benefits-speed="fast"] .benefits-marquee-track {
  --benefits-marquee-duration: 22s;
}

body.shop-tpl-modern.shop-scrolled .site-header,
body.shop-tpl-modern.pdp .site-header,
body.shop-tpl-modern.checkout-view .site-header,
body.shop-tpl-modern.info-page .site-header,
body.shop-tpl-modern.search-page .site-header,
body.shop-tpl-modern.category-page .site-header {
  top: 0;
}

body.shop-tpl-modern.shop-scrolled .header-search-btn,
body.shop-tpl-modern.pdp .header-search-btn,
body.shop-tpl-modern.checkout-view .header-search-btn,
body.shop-tpl-modern.info-page .header-search-btn,
body.shop-tpl-modern.search-page .header-search-btn,
body.shop-tpl-modern.category-page .header-search-btn {
  color: #111;
}

/* Full-bleed main content — no centered 1180px column */
body.shop-tpl-modern #main > .wrap {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.shop-tpl-modern .benefits > .wrap,
body.shop-tpl-modern .trust-badges-section > .wrap {
  max-width: none;
  width: 100%;
  padding-left: 28px;
  padding-right: 28px;
}

body.shop-tpl-modern .product-grid,
body.shop-tpl-modern .category-section,
body.shop-tpl-modern .category-landing,
body.shop-tpl-modern .pdp,
body.shop-tpl-modern .search-results,
body.shop-tpl-modern .empty-shop {
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

body.shop-tpl-modern .category-section > h2,
body.shop-tpl-modern .category-landing-back {
  padding-left: 0;
  padding-right: 0;
}

body.shop-tpl-modern .benefits:not(.benefits--marquee) .benefit-item,
body.shop-tpl-modern .trust-badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

/* --- Product grid / cards --- */
body.shop-tpl-modern .product-grid {
  gap: 36px 20px;
}

@media (min-width: 1000px) {
  body.shop-tpl-modern .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.shop-tpl-modern .product-card,
body.shop-tpl-modern .product-card--modern {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

body.shop-tpl-modern .product-card:hover {
  transform: none;
  box-shadow: none;
}

body.shop-tpl-modern .product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  border-radius: 0;
  border: none;
  overflow: hidden;
}

body.shop-tpl-modern .product-card-img img,
body.shop-tpl-modern .product-card-img .product-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
}

body.shop-tpl-modern .product-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  padding: 0;
}

body.shop-tpl-modern .product-card-nav .ti {
  font-size: 18px;
  line-height: 1;
}

body.shop-tpl-modern .product-card-nav--prev {
  left: 10px;
}

body.shop-tpl-modern .product-card-nav--next {
  right: 10px;
}

@media (hover: hover) and (pointer: fine) {
  body.shop-tpl-modern .product-card:hover .product-card-nav {
    display: inline-flex;
  }
}

body.shop-tpl-modern .product-card h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 2px 0 0;
  line-height: 1.35;
  color: #111;
}

body.shop-tpl-modern .product-card .desc,
body.shop-tpl-modern .product-card .product-card-sub {
  display: none !important;
}

body.shop-tpl-modern .product-card .variant-select,
body.shop-tpl-modern .product-card .open-link {
  display: none !important;
}

body.shop-tpl-modern .product-card .price-row {
  margin: 0;
  align-items: baseline;
  gap: 8px;
}

body.shop-tpl-modern .product-card .price {
  font-size: 13px;
  font-weight: 500;
  color: #111;
}

body.shop-tpl-modern .product-card .stock {
  display: none;
}

body.shop-tpl-modern .product-card .add-btn,
body.shop-tpl-modern .product-card .product-card-atc,
body.shop-tpl-modern .home-rail-card .product-card-atc {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 40px);
  margin: 0;
  min-height: 28px;
  padding: 5px 14px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  transform: translate(-50%, 4px);
  cursor: pointer;
}

body.shop-tpl-modern .product-card:hover .product-card-atc,
body.shop-tpl-modern .product-card:focus-within .product-card-atc,
body.shop-tpl-modern .home-rail-card:hover .product-card-atc,
body.shop-tpl-modern .home-rail-card:focus-within .product-card-atc {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body.shop-tpl-modern .product-card .product-card-atc:hover:not([disabled]),
body.shop-tpl-modern .home-rail-card .product-card-atc:hover:not([disabled]) {
  background: #222;
  color: #fff;
}

body.shop-tpl-modern .product-card .product-card-atc[disabled],
body.shop-tpl-modern .home-rail-card .product-card-atc[disabled] {
  opacity: 0;
  pointer-events: none;
  background: #999;
}

body.shop-tpl-modern .badge-sale {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 2;
  display: inline-block;
  width: max-content;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  margin: 0;
  padding: 4px 8px;
  background: var(--sale);
  color: #fff;
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

body.shop-tpl-modern .badge-last {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 2;
  display: inline-block;
  width: max-content;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  margin: 0;
  padding: 4px 8px;
  background: #111;
  color: #fff;
  border-radius: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.shop-tpl-modern .product-card .product-card-atc:not([disabled]),
  body.shop-tpl-modern .home-rail-card .product-card-atc:not([disabled]) {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  body.shop-tpl-modern .product-card-nav {
    display: inline-flex;
    width: 30px;
    height: 30px;
    opacity: 0.9;
  }
}

/* --- Quick view modal --- */
body.qv-open {
  overflow: hidden;
}

.qv {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.qv[hidden] {
  display: none !important;
}

.qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(2px);
}

.qv-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.qv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.qv-close .ti {
  font-size: 18px;
  line-height: 1;
}

.qv-gallery {
  position: relative;
  background: #f3f3f3;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.qv-gallery.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

.qv-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f3f3;
}

.qv-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 4px 10px;
}

.qv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.qv-nav[hidden] {
  display: none !important;
}

.qv-nav--prev { left: 12px; }
.qv-nav--next { right: 12px; }

.qv-body {
  padding: 18px 20px 20px;
}

.qv-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.qv-brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

.qv-details {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qv-details:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qv-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.qv-price {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.qv-size-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
}

.qv-size-label {
  flex: 0 0 auto;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.qv-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qv-size-btn {
  appearance: none;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.qv-size-btn.is-selected {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
}

.qv-size-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.qv-err {
  margin: 0 0 12px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
}

.qv-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qv-btn {
  min-height: 48px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.qv-btn--primary {
  background: #1f1f1f;
  border: 1px solid #1f1f1f;
  color: #fff;
}

.qv-btn--primary:hover:not([disabled]) {
  background: #333;
}

.qv-btn--secondary {
  background: #fff;
  border: 1px solid #1f1f1f;
  color: #111;
}

.qv-btn--secondary:hover:not([disabled]) {
  background: #f5f5f5;
}

.qv-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .qv {
    padding: 10px;
    align-items: flex-end;
  }

  .qv-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 10px 10px;
  }

  .qv-actions {
    grid-template-columns: 1fr;
  }
}

/* --- PDP --- */
body.shop-tpl-modern.pdp .hero,
body.shop-tpl-modern.pdp .benefits {
  display: none;
}

body.shop-tpl-modern.pdp #main {
  padding-top: 4px;
  padding-bottom: 56px;
}

body.shop-tpl-modern.pdp .pdp-crumb {
  margin: 0 0 8px;
  padding: 0 28px;
}

body.shop-tpl-modern .pdp-layout,
body.shop-tpl-modern .pdp-layout--modern {
  gap: 20px 40px;
  align-items: start;
  padding: 0 28px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  body.shop-tpl-modern .pdp-layout,
  body.shop-tpl-modern .pdp-layout--modern {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  body.shop-tpl-modern .pdp-info {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
  }
}

body.shop-tpl-modern .pdp-media,
body.shop-tpl-modern .pdp-media--stack {
  background: transparent;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
  min-height: 0;
  overflow: visible;
}

body.shop-tpl-modern .pdp-media-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

body.shop-tpl-modern .pdp-shot {
  position: relative;
  margin: 0;
  background: #f3f3f3;
  overflow: hidden;
}

body.shop-tpl-modern .pdp-shot--hero {
  aspect-ratio: 1 / 1;
  width: 100%;
}

body.shop-tpl-modern .pdp-shot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  min-height: 360px;
}

body.shop-tpl-modern .pdp-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 0;
}

body.shop-tpl-modern .pdp-shot--hero img {
  object-fit: contain;
  background: #f7f7f7;
  padding: 4%;
}

body.shop-tpl-modern .pdp-shot .badge-last {
  top: 14px;
  left: 14px;
  right: auto;
}

body.shop-tpl-modern .pdp-shot .badge-sale {
  top: 14px;
  right: 14px;
  left: auto;
}

body.shop-tpl-modern .pdp-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

body.shop-tpl-modern .pdp-shot-grid .pdp-shot {
  aspect-ratio: 1 / 1;
}

/* Legacy carousel styles unused on modern stack, keep harmless */
body.shop-tpl-modern .pdp-gallery {
  display: none;
}

body.shop-tpl-modern .pdp-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #111;
}

body.shop-tpl-modern .pdp-brand {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 6px;
}

body.shop-tpl-modern .pdp-info h1 {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #111;
}

body.shop-tpl-modern .pdp-colorway {
  font-size: 13px;
  font-weight: 400;
  color: #111;
  margin: 0 0 10px;
}

body.shop-tpl-modern .pdp-price {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111;
}

body.shop-tpl-modern .pdp-desc {
  margin: 0 0 22px;
  padding: 0;
  border: none;
  font-size: 14px;
  line-height: 1.55;
  color: #222;
}

body.shop-tpl-modern .pdp-related-variants {
  margin: 0 0 14px;
}

body.shop-tpl-modern .pdp-related-variants-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

body.shop-tpl-modern .pdp-size-block {
  margin: 0 0 12px;
}

body.shop-tpl-modern .pdp-size-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: #111;
}

body.shop-tpl-modern .pdp-size-chart {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #111;
  cursor: pointer;
}

body.shop-tpl-modern .pdp-size-chart:hover {
  opacity: 0.65;
}

body.shop-tpl-modern .pdp-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

body.shop-tpl-modern .pdp-size-btn {
  appearance: none;
  background: #fff;
  border: 1px solid #111;
  color: #111;
  width: 38px;
  height: 38px;
  min-height: 38px;
  min-width: 38px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 5px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body.shop-tpl-modern .pdp-size-eu {
  font-size: 13px;
  font-weight: 600;
}

body.shop-tpl-modern .pdp-size-qty {
  display: none;
}

body.shop-tpl-modern .pdp-size-btn.is-selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

body.shop-tpl-modern .pdp-size-btn:hover:not(:disabled):not(.is-selected) {
  background: #f5f5f5;
}

body.shop-tpl-modern .pdp-size-btn:disabled {
  opacity: 0.32;
  text-decoration: line-through;
  cursor: not-allowed;
}

body.shop-tpl-modern .pdp-size-btn:disabled .pdp-size-eu {
  text-decoration: line-through;
}

body.shop-tpl-modern .pdp-info .variant-select {
  display: none;
}

body.shop-tpl-modern .pdp-actions {
  display: block;
  margin: 0 0 8px;
}

body.shop-tpl-modern .pdp-actions .qty-row {
  display: none;
}

body.shop-tpl-modern .pdp-add {
  width: 100%;
  flex: none;
  min-height: 44px;
  padding: 11px 18px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

body.shop-tpl-modern .pdp-add:hover:not([disabled]) {
  background: #222;
}

body.shop-tpl-modern .pdp-add[disabled] {
  background: #d0d0d0;
  border-color: #d0d0d0;
  color: #666;
  cursor: not-allowed;
}

body.shop-tpl-modern .pdp-online-badge {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #39ff14;
}

body.shop-tpl-modern .pdp-online-badge.is-out {
  color: #c0392b;
}

/* Baskèts-style product detail accordion — compact when closed */
body.shop-tpl-modern .pdp-accordion {
  margin: 10px 0 0;
  border-top: 1px solid #111;
}

body.shop-tpl-modern .pdp-acc-item {
  border-bottom: 1px solid #111;
}

body.shop-tpl-modern .pdp-acc-trigger {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 2px;
  background: none;
  border: 0;
  color: #111;
  cursor: pointer;
  text-align: left;
}

body.shop-tpl-modern .pdp-acc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

body.shop-tpl-modern .pdp-acc-item[data-acc="discover"] .pdp-acc-title {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 500;
}

body.shop-tpl-modern .pdp-acc-item:not([data-acc="discover"]) .pdp-acc-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

body.shop-tpl-modern .pdp-acc-icon {
  flex-shrink: 0;
  width: 1.1em;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #111;
  transition: transform 160ms ease;
}

body.shop-tpl-modern .pdp-acc-item.is-open .pdp-acc-icon {
  transform: rotate(45deg);
}

body.shop-tpl-modern .pdp-acc-panel {
  padding: 0 2px 12px;
}

body.shop-tpl-modern .pdp-acc-panel[hidden] {
  display: none !important;
}

body.shop-tpl-modern .pdp-acc-panel-inner {
  position: relative;
  font-size: 12.5px;
  line-height: 1.5;
  color: #666;
  max-width: 42em;
  max-height: 7.5em;
  overflow: hidden;
}

body.shop-tpl-modern .pdp-acc-panel-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
}

body.shop-tpl-modern .pdp-acc-lead {
  margin: 0 0 8px;
  color: #555;
}

body.shop-tpl-modern .pdp-acc-panel-inner ul {
  margin: 0;
  padding: 0 0 2px 1.15em;
}

body.shop-tpl-modern .pdp-acc-panel-inner li {
  margin: 0 0 6px;
}

body.shop-tpl-modern .pdp-acc-panel-inner p {
  margin: 0 0 10px;
}

body.shop-tpl-modern .pdp-acc-panel-inner a {
  color: #111;
  text-underline-offset: 2px;
}

/* Legacy tab markup safety (if cached HTML) */
body.shop-tpl-modern .pdp-tabs {
  display: none !important;
}

body.shop-tpl-modern .pdp-meta .stock.out,
body.shop-tpl-modern .pdp-meta .stock.last_pieces {
  color: var(--sale);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

body.shop-tpl-modern.pdp .pdp-related {
  width: min(92%, 1180px);
  margin: 40px auto 0;
  padding: 0 36px 8px;
  box-sizing: border-box;
}

body.shop-tpl-modern.pdp .pdp-related .product-grid {
  padding-left: 0;
  padding-right: 0;
  gap: 22px 14px;
}

body.shop-tpl-modern .pdp-related h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

body.shop-tpl-modern.pdp .pdp-related .product-card--modern .product-card-img {
  aspect-ratio: 1 / 1;
}

body.shop-tpl-modern.pdp .pdp-related .product-card--modern h3 {
  font-size: 12px;
}

body.shop-tpl-modern.pdp .pdp-related .product-card--modern .price {
  font-size: 12px;
}

/* --- Homepage rails: Odporúčame + feature category (~85% page width) --- */
body.shop-tpl-modern .home-rail {
  margin: 0 auto 40px;
  padding: 28px 0 8px;
  width: 85%;
  max-width: none;
  box-sizing: border-box;
}

body.shop-tpl-modern .home-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

body.shop-tpl-modern .home-rail-title {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

body.shop-tpl-modern .home-rail-discover {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  white-space: nowrap;
}

body.shop-tpl-modern .home-rail-discover:hover {
  opacity: 0.65;
}

body.shop-tpl-modern .home-rail-viewport {
  position: relative;
}

body.shop-tpl-modern .home-rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.shop-tpl-modern .home-rail-track::-webkit-scrollbar {
  display: none;
}

body.shop-tpl-modern .home-rail-card {
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 180px;
  max-width: none;
  scroll-snap-align: start;
  cursor: pointer;
  background: transparent;
  border: none;
}

body.shop-tpl-modern .home-rail-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f3f3f3;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
}

body.shop-tpl-modern .home-rail-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

body.shop-tpl-modern .home-rail-card:hover .home-rail-card-img img {
  transform: scale(1.03);
}

body.shop-tpl-modern .home-rail-card-img .badge-sale {
  top: 10px;
  right: 10px;
  left: auto;
}

body.shop-tpl-modern .home-rail-card-body h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.shop-tpl-modern .home-rail-card-body .price {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

body.shop-tpl-modern .home-rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body.shop-tpl-modern .home-rail-viewport:hover .home-rail-nav,
body.shop-tpl-modern .home-rail-viewport:focus-within .home-rail-nav {
  opacity: 1;
  pointer-events: auto;
}

body.shop-tpl-modern .home-rail-nav:hover {
  background: #fff;
}

body.shop-tpl-modern .home-rail-nav--prev {
  left: 8px;
}

body.shop-tpl-modern .home-rail-nav--next {
  right: 8px;
}

body.shop-tpl-modern .home-rail-nav .ti {
  font-size: 20px;
  line-height: 1;
}

/* --- Mid hero banner (~15% shorter than top hero) --- */
body.shop-tpl-modern .home-mid-hero {
  position: relative;
  width: 85%;
  margin: 8px auto 40px;
  min-height: clamp(340px, 52vh, 600px);
  background: #1a1a1a;
  overflow: hidden;
}

body.shop-tpl-modern .home-mid-hero-slides {
  position: absolute;
  inset: 0;
}

body.shop-tpl-modern .home-mid-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

body.shop-tpl-modern .home-mid-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.shop-tpl-modern .home-mid-hero-slide .hero-banner-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

body.shop-tpl-modern .home-mid-hero-copy {
  left: 24px;
  right: 24px;
  bottom: 28px;
}

/* --- Featured collections bento (4 tiles, ~85% page width) --- */
body.shop-tpl-modern .home-bento {
  margin: 0 auto 56px;
  padding: 8px 0 20px;
  width: 85%;
  max-width: none;
  box-sizing: border-box;
}

body.shop-tpl-modern .home-bento-title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

body.shop-tpl-modern .home-bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: minmax(210px, 26vw) minmax(210px, 26vw);
  gap: 12px;
  width: 100%;
}

body.shop-tpl-modern .home-bento-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ececec;
  color: #fff;
  text-decoration: none;
  min-height: 150px;
}

body.shop-tpl-modern .home-bento-tile--1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

body.shop-tpl-modern .home-bento-tile--2 {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

body.shop-tpl-modern .home-bento-tile--3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

body.shop-tpl-modern .home-bento-tile--4 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

body.shop-tpl-modern .home-bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease;
}

body.shop-tpl-modern .home-bento-tile:hover img {
  transform: scale(1.04);
}

body.shop-tpl-modern .home-bento-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

body.shop-tpl-modern .home-bento-tile.is-empty {
  background: #111;
}

body.shop-tpl-modern .home-bento-tile.is-empty .home-bento-label {
  color: #fff;
  text-shadow: none;
}

/* --- Cart accents (structure unchanged) --- */
body.shop-tpl-modern #cartDrawer .cart-checkout-btn,
body.shop-tpl-modern .cart-panel .checkout-btn,
body.shop-tpl-modern button.checkout-primary {
  background: #111;
  border-color: #111;
  border-radius: 0;
}

/* --- Homepage product feed (initial batch + click to load more) --- */
body.shop-tpl-modern .home-feed {
  width: 85%;
  max-width: none;
  margin: 24px auto 72px;
  padding: 8px 0 0;
  box-sizing: border-box;
}

body.shop-tpl-modern .home-feed-title {
  margin: 0 0 22px;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

body.shop-tpl-modern .home-feed-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.shop-tpl-modern .home-feed-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.shop-tpl-modern .home-feed-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

body.shop-tpl-modern .home-feed-more {
  display: flex;
  justify-content: center;
  padding: 32px 0 8px;
}

body.shop-tpl-modern .home-feed-more-btn {
  appearance: none;
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

body.shop-tpl-modern .home-feed-more-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
}

body.shop-tpl-modern .home-feed-more-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

body.shop-tpl-modern.category-page .home-feed {
  width: 100%;
  padding: 0 28px;
  margin: 8px auto 64px;
}

/* --- Footer dark (Baskèts-like orientation) --- */
body.shop-tpl-modern .site-footer,
body.shop-tpl-modern .site-footer.site-footer--modern {
  background: #111;
  border-top: none;
  color: #f5f5f5;
  padding: 56px 0 28px;
}

body.shop-tpl-modern .site-footer::before,
body.shop-tpl-modern .site-footer::after {
  display: none !important;
}

body.shop-tpl-modern .site-footer > .wrap {
  max-width: none;
  width: min(100% - 56px, 1280px);
  margin: 0 auto;
  padding: 0;
}

body.shop-tpl-modern .site-footer .footer-grid {
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 780px) {
  body.shop-tpl-modern .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.shop-tpl-modern .site-footer .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
  }
}

body.shop-tpl-modern .site-footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}

body.shop-tpl-modern .site-footer .footer-col,
body.shop-tpl-modern .site-footer .footer-hours,
body.shop-tpl-modern .site-footer #footerContact {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

body.shop-tpl-modern .site-footer .footer-col ul a,
body.shop-tpl-modern .site-footer #footerContact a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

body.shop-tpl-modern .site-footer .footer-col ul a:hover,
body.shop-tpl-modern .site-footer #footerContact a:hover {
  color: #fff;
}

body.shop-tpl-modern .site-footer .footer-social {
  display: none;
}

body.shop-tpl-modern .footer-mid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 22px;
}

body.shop-tpl-modern .footer-mid[hidden] {
  display: none !important;
}

body.shop-tpl-modern .footer-mid-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

body.shop-tpl-modern .footer-mid-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.shop-tpl-modern .footer-pay-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

body.shop-tpl-modern .footer-mid-social {
  display: flex;
  gap: 10px;
}

body.shop-tpl-modern .footer-mid-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

body.shop-tpl-modern .footer-mid-social a:hover {
  background: #fff;
  color: #111;
}

body.shop-tpl-modern .footer-mid-brand {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  text-transform: lowercase;
}

body.shop-tpl-modern .site-footer .footer-legal-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  border-top: none;
  padding-top: 0;
}

body.shop-tpl-modern .site-footer .footer-legal-note a {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Mobile --- */
@media (max-width: 760px) {
  body.shop-tpl-modern .site-header .header-main {
    padding: 12px 16px;
    min-height: 60px;
  }

  body.shop-tpl-modern #headerNav {
    display: none;
  }

  body.shop-tpl-modern .hero {
    min-height: clamp(360px, 54vh, 560px);
  }

  body.shop-tpl-modern .hero > .wrap {
    padding: 0 16px 28px;
  }

  body.shop-tpl-modern .hero-categories--modern {
    padding: 28px 0 32px;
  }

  body.shop-tpl-modern .hero-categories-head {
    padding: 0 16px 16px;
  }

  body.shop-tpl-modern .hero-categories-track {
    padding: 0 16px 4px 56px;
    gap: 10px;
  }

  body.shop-tpl-modern .hero-categories--modern .hero-cat {
    width: min(210px, 64vw);
  }

  body.shop-tpl-modern .hero-categories-next {
    left: 10px;
    right: auto;
    width: 38px;
    height: 38px;
  }

  body.shop-tpl-modern .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  body.shop-tpl-modern .benefits > .wrap,
  body.shop-tpl-modern .trust-badges-section > .wrap,
  body.shop-tpl-modern .product-grid,
  body.shop-tpl-modern .category-section,
  body.shop-tpl-modern .category-landing,
  body.shop-tpl-modern .search-results,
  body.shop-tpl-modern .empty-shop {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.shop-tpl-modern.pdp .pdp-crumb,
  body.shop-tpl-modern .pdp-layout,
  body.shop-tpl-modern .pdp-layout--modern {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.shop-tpl-modern.pdp #main {
    padding-top: 8px;
  }

  body.shop-tpl-modern.pdp .pdp-related {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  body.shop-tpl-modern .home-feed {
    width: 92%;
    margin-bottom: 48px;
  }

  body.shop-tpl-modern.category-page .home-feed {
    padding: 0 16px;
  }

  body.shop-tpl-modern .site-footer > .wrap {
    width: min(100% - 32px, 1280px);
  }

  body.shop-tpl-modern .footer-mid-brand {
    width: 100%;
    order: -1;
  }

  body.shop-tpl-modern .home-rail {
    width: 92%;
    margin: 0 auto 28px;
    padding: 24px 0 8px;
  }

  body.shop-tpl-modern .home-rail-card {
    flex: 0 0 calc((100% - 12px) / 2.15);
    min-width: 140px;
  }

  body.shop-tpl-modern .home-rail-nav {
    opacity: 1;
    pointer-events: auto;
    width: 38px;
    height: 38px;
  }

  body.shop-tpl-modern .home-mid-hero {
    width: 92%;
    min-height: clamp(300px, 46vh, 480px);
    margin: 8px auto 28px;
  }

  body.shop-tpl-modern .home-bento {
    width: 92%;
    margin: 0 auto 40px;
    padding: 8px 0 20px;
  }

  body.shop-tpl-modern .home-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  body.shop-tpl-modern .home-bento-tile--1,
  body.shop-tpl-modern .home-bento-tile--2,
  body.shop-tpl-modern .home-bento-tile--3,
  body.shop-tpl-modern .home-bento-tile--4 {
    grid-column: auto;
    grid-row: auto;
    min-height: 180px;
    aspect-ratio: 1 / 1;
  }

  body.shop-tpl-modern .home-bento-tile--1 {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 10;
  }
}

/* Category filters + sort (modern) */
body.shop-tpl-modern .cat-browse {
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

body.shop-tpl-modern .cat-thin-banner {
  margin-left: -28px;
  margin-right: -28px;
  width: calc(100% + 56px);
  min-height: 200px;
  max-height: 260px;
}

body.shop-tpl-modern .cat-banner-back {
  margin-bottom: 12px;
}

body.shop-tpl-modern .cat-thin-banner-copy h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.shop-tpl-modern .cat-thin-banner-desc {
  font-size: 13px;
  font-weight: 400;
}

body.shop-tpl-modern .cat-browse-layout {
  gap: 36px 40px;
  margin-top: 28px;
}

body.shop-tpl-modern .cat-browse-filters-head strong {
  letter-spacing: 0.12em;
  font-weight: 600;
}

body.shop-tpl-modern .cat-filter-group-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #111;
}

body.shop-tpl-modern .cat-filter-check {
  font-size: 13px;
  color: #222;
}

body.shop-tpl-modern .cat-browse-sort span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

body.shop-tpl-modern .cat-browse-sort select {
  border-radius: 0;
  border-color: #d0d0d0;
  background: #fff;
  min-width: 220px;
}

body.shop-tpl-modern.category-page .cat-browse .home-feed {
  width: 100%;
  padding: 0;
  margin: 0 0 48px;
}

body.shop-tpl-modern .cat-browse-filter-toggle {
  border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

@media (max-width: 900px) {
  body.shop-tpl-modern .cat-browse {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.shop-tpl-modern .cat-thin-banner {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
}
