/*
 Theme Name:   Blocksy Child – NostalG
 Theme URI:    https://example.local/
 Description:  Child theme for Blocksy with NostalG palette and basics.
 Author:       NostalG
 Template:     blocksy
 Version:      0.1.0
 Text Domain:  blocksy-child
*/

/* Base palette derived from NostalG mark: */
:root {
  /* Brand accents */
  --nostalg-gold: #d4af37; /* signature gold */
  --nostalg-gold-strong: #b8860b; /* hover/focus gold */
  --nostalg-gold-soft: #f4daa0; /* gradient helper */

  /* Legacy alias so existing vars keep working */
  --nostalg-pink: var(--nostalg-gold);
  --nostalg-pink-strong: var(--nostalg-gold-strong);
  --nostalg-pink-soft: var(--nostalg-gold-soft);

  /* Supporting tones */
  --nostalg-yellow: var(--nostalg-gold);
  --nostalg-black: #0e0e0e;
  --nostalg-white: #ffffff;
  --nostalg-gray-100: #f7fbff;
  --nostalg-gray-300: #e1e8ed;
  --nostalg-critical: #571c1c;
  --nostalg-critical-soft: #fff1f1;

  --nostalg-button-black: #050505;
  --nostalg-button-black-hover: #151515;

  /* Derived helpers */
  --nostalg-primary: var(--nostalg-gold);
  --nostalg-primary-strong: var(--nostalg-gold-strong);
  --nostalg-primary-soft: var(--nostalg-gold-soft);
}

/* Map to Blocksy palette variables for quick theming */
:root {
  --theme-palette-color-1: var(--nostalg-primary);
  --theme-palette-color-2: var(--nostalg-primary-soft);
  --theme-palette-color-3: var(--nostalg-black);
  --theme-palette-color-4: #0f0f0d; /* deep neutral for contrast */
  --theme-palette-color-5: var(--nostalg-gray-300);
  --theme-palette-color-6: #f2f5f7;
  --theme-palette-color-7: #fafbfc;
  --theme-palette-color-8: var(--nostalg-white);

  --theme-link-initial-color: var(--nostalg-primary);
  --theme-link-hover-color: var(--nostalg-primary-strong);
  --theme-link-active-color: var(--nostalg-primary-strong);
  --theme-selection-text-color: var(--nostalg-black);
  --theme-selection-background-color: var(--nostalg-primary);

  --theme-button-background-initial-color: var(--nostalg-button-black);
  --theme-button-background-hover-color: var(--nostalg-button-black-hover);
  --theme-button-text-initial-color: #ffffff;
  --theme-button-text-hover-color: #ffffff;
  --theme-button-border: 1px solid transparent;
  --theme-button-border-hover-color: transparent;

  --wp--preset--color--primary: var(--nostalg-primary);
  --wp--preset--color--secondary: var(--nostalg-yellow);
  --wp--preset--color--contrast: var(--nostalg-black);
}

::selection {
  background: var(--nostalg-primary);
  color: var(--nostalg-black);
}

a,
a:visited {
  color: var(--nostalg-primary);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--nostalg-primary-strong);
}

a:focus-visible {
  outline: 3px solid var(--nostalg-primary);
  outline-offset: 2px;
}

/* Square everything out */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

/* Buttons */
.wp-element-button,
.wp-block-button__link,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wpforms-submit,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background: var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  border: 1px solid var(--nostalg-black) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wpforms-submit:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background: var(--nostalg-primary-strong) !important;
  border-color: var(--nostalg-primary-strong) !important;
  color: var(--nostalg-white) !important;
}
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
.button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.wpforms-submit:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible {
  outline: 3px solid var(--nostalg-primary) !important;
  outline-offset: 2px;
}

.added_to_cart,
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--nostalg-button-black) !important;
  border-color: var(--nostalg-button-black) !important;
  color: var(--nostalg-white) !important;
  text-decoration: none !important;
}

.added_to_cart:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.added_to_cart:focus-visible,
.add_to_cart_button:focus-visible,
.single_add_to_cart_button:focus-visible,
.woocommerce #respond input#submit:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible {
  background-color: var(--nostalg-button-black-hover) !important;
  border-color: var(--nostalg-button-black-hover) !important;
  color: var(--nostalg-white) !important;
}

.single-product .nostalg-top-rated-products {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--theme-palette-color-7);
}

.single-product .nostalg-top-rated-products__inner {
  width: 100%;
  margin: 0;
}

.single-product .nostalg-top-rated-products__title {
  text-align: center;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  word-break: normal;
  hyphens: manual;
}

.single-product .nostalg-top-rated-products__grid .products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.single-product .nostalg-top-rated-products__grid .product {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.single-product .nostalg-top-rated-products__grid .product:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.single-product .nostalg-top-rated-products__grid figure,
.single-product .nostalg-top-rated-products__grid .ct-media-container {
  flex: 0 0 92px;
  max-width: 92px;
  margin: 0;
}

.single-product .nostalg-top-rated-products__grid img {
  width: 100%;
  height: auto;
}

.single-product .nostalg-top-rated-products__grid .woocommerce-loop-product__title,
.single-product .nostalg-top-rated-products__grid h2 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
  text-transform: none;
  letter-spacing: normal;
}

.single-product .nostalg-top-rated-products__grid .price {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Remove redundant PhotoSwipe actions so only one close button remains. */
.pswp__top-bar .pswp__button--share,
.pswp__top-bar .pswp__button--zoom,
.pswp__top-bar .pswp__button--fs {
  display: none !important;
}

/* Header cart badge tweaks */
.ct-header-cart .ct-icon-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-header-cart .ct-dynamic-count-cart {
  position: absolute;
  top: -14px;
  right: -14px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 50% !important;
  background: var(--nostalg-gold);
  color: var(--nostalg-black);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ct-header-cart .ct-dynamic-count-cart[data-count="0"] {
  opacity: 0;
  transform: scale(0.4);
}

/* Mini cart flyout */
.ct-cart-content {
  width: min(360px, calc(100vw - 20px));
  margin-top: var(--dropdownTopOffset);
  padding: 24px;
  border: 1px solid var(--nostalg-black);
  border-radius: 0;
  background: var(--nostalg-white) !important;
  color: var(--nostalg-black) !important;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

.ct-cart-content .woocommerce-mini-cart {
  max-height: 55vh;
  overflow-y: auto;
  margin: 0 -8px 0 0;
  padding-right: 8px;
}

.ct-cart-content .woocommerce-mini-cart li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.ct-cart-content .woocommerce-mini-cart li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ct-cart-content .product-title,
.ct-cart-content .woocommerce-mini-cart__empty-message {
  color: var(--nostalg-black);
  font-weight: 600;
}

.ct-cart-content .quantity,
.ct-cart-content .amount,
.ct-cart-content .woocommerce-Price-amount {
  color: var(--nostalg-black);
  font-weight: 600;
}

.ct-cart-content .woocommerce-mini-cart__total {
  color: var(--nostalg-black);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 18px;
  margin-top: 18px;
  letter-spacing: 0.05em;
}

.ct-cart-content .woocommerce-mini-cart__buttons {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 18px;
  margin-top: 18px;
  grid-column-gap: 12px;
}

.ct-cart-content .woocommerce-mini-cart__buttons .button {
  border-radius: 0 !important;
  border: 1px solid transparent !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.ct-cart-content .woocommerce-mini-cart__buttons .button.wc-forward {
  background: var(--nostalg-gold) !important;
  color: var(--nostalg-black) !important;
  border-color: var(--nostalg-gold) !important;
}

.ct-cart-content .woocommerce-mini-cart__buttons .button:first-child:not(.wc-forward) {
  background: transparent !important;
  color: var(--nostalg-black) !important;
  border-color: rgba(0, 0, 0, 0.35) !important;
}

.ct-cart-content .woocommerce-mini-cart__buttons .button:first-child:not(.wc-forward):hover,
.ct-cart-content .woocommerce-mini-cart__buttons .button:first-child:not(.wc-forward):focus-visible {
  border-color: var(--nostalg-black) !important;
  color: var(--nostalg-black) !important;
}

.single-product .nostalg-top-rated-products__grid .entry-meta,
.single-product .nostalg-top-rated-products__grid .ct-woo-card-actions,
.single-product .nostalg-top-rated-products__grid .wc-gzd-additional-info {
  display: none !important;
}

.cleanslate .components-button,
.cleanslate .components-button.is-button,
.cleanslate .components-button.is-primary {
  border-radius: 0 !important;
  background: var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  border-color: var(--nostalg-black) !important;
}
.cleanslate .components-button:hover,
.cleanslate .components-button.is-button:hover,
.cleanslate .components-button.is-primary:hover {
  background: var(--nostalg-primary-strong) !important;
  border-color: var(--nostalg-primary-strong) !important;
  color: var(--nostalg-white) !important;
}

.swiper-button-next,
.swiper-button-prev {
  background: var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  border: 1px solid var(--nostalg-black) !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  color: currentColor !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--nostalg-primary) !important;
  border-color: var(--nostalg-primary) !important;
  color: var(--nostalg-white) !important;
}

.nostalg-cat-slider-nav {
  background: var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  border: 1px solid var(--nostalg-black) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nostalg-cat-slider-nav svg,
.nostalg-cat-slider-nav svg path {
  fill: currentColor !important;
}
.nostalg-cat-slider-nav:hover,
.nostalg-cat-slider-nav:focus-visible {
  background: var(--nostalg-primary) !important;
  border-color: var(--nostalg-primary) !important;
  color: var(--nostalg-white) !important;
}

.nostalg-cat-slide-button {
  background: var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  border: 1px solid var(--nostalg-black) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nostalg-cat-slide-button:hover,
.nostalg-cat-slide-button:focus-visible {
  background: var(--nostalg-primary-strong) !important;
  border-color: var(--nostalg-primary-strong) !important;
  color: var(--nostalg-white) !important;
}
.nostalg-cat-slide-button:focus-visible {
  outline: 3px solid var(--nostalg-primary) !important;
  outline-offset: 2px;
}

/* Hero helper */
.nostalg-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.4), transparent 55%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.96), rgba(20, 20, 20, 0.9));
  color: #fff;
  padding: clamp(3rem, 6vw, 6rem) 1rem;
  border-radius: 0;
}

/* Category cards */
.nostalg-cat-grid .wp-block-cover { border-radius: 0; overflow: hidden; }
.nostalg-cat-grid .wp-block-cover__inner-container h3 { color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35); }

/* Trust icons */
.nostalg-trust .wp-block-column { text-align:center; }
.nostalg-trust .nostalg-icon { font-size: 28px; color: var(--nostalg-yellow); display:inline-block; margin-bottom:.5rem; }

/* Woo badges */
.woocommerce span.onsale,
.wc-block-grid__product .wc-block-grid__product-onsale {
  background: var(--nostalg-primary);
  color: #fff;
}
.woocommerce .out-of-stock,
.wc-block-components-product-image .wc-block-components-product-badge--out-of-stock {
  background: var(--nostalg-gray-300);
  color: var(--nostalg-black);
}

/* WooCommerce Blocks – Price filter buttons */
.wp-block-woocommerce-price-filter .wc-block-filter-submit-button,
.wp-block-woocommerce-price-filter .wc-block-components-filter-submit-button {
  background: var(--nostalg-black) !important;
  border: 1px solid var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  border-radius: 0 !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wp-block-woocommerce-price-filter .wc-block-filter-submit-button:hover,
.wp-block-woocommerce-price-filter .wc-block-filter-submit-button:focus-visible,
.wp-block-woocommerce-price-filter .wc-block-components-filter-submit-button:hover,
.wp-block-woocommerce-price-filter .wc-block-components-filter-submit-button:focus-visible {
  background: var(--nostalg-primary) !important;
  border-color: var(--nostalg-primary) !important;
  color: var(--nostalg-white) !important;
  outline: 3px solid var(--nostalg-primary) !important;
  outline-offset: 2px;
}

/* Home layout overhaul */
.nostalg-home-hero {
  position: relative;
  overflow: hidden;
  background: #050505;
  color: #fff;
  border-radius: 0;
  padding: clamp(6.5rem, 12vw, 9rem) clamp(3rem, 10vw, 7rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin: 0;
  box-shadow: none;
}
.nostalg-home-hero,
.hero-section {
  scroll-margin-top: calc(var(--ionso-nav-safe, 120px) + 20px);
}
body.has-ionso-navbar--transparent .nostalg-home-hero {
  padding-top: calc(
    clamp(6.5rem, 12vw, 9rem)
    + max(var(--ionso-nav-safe, 120px) - 80px, 0px)
  );
}
.nostalg-home-hero.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.nostalg-home-hero > .wp-block-group__inner-container {
  width: min(100%, 1200px);
  margin: 0 auto;
}
.nostalg-home-hero .wp-block-columns {
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.nostalg-home-hero .wp-block-column:first-child {
  max-width: 520px;
}
.nostalg-home-hero .wp-block-column:last-child {
  flex-grow: 1;
}
.nostalg-home-hero .wp-element-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nostalg-home-hero .wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nostalg-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--nostalg-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.nostalg-home-hero .nostalg-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.nostalg-hero-title {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #fff;
}
.nostalg-accent {
  color: var(--nostalg-primary);
}
.nostalg-home-hero p,
.nostalg-home-hero li {
  color: rgba(255, 255, 255, 0.82);
}
.nostalg-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}
.nostalg-feature-list li {
  padding-left: 1.75rem;
  position: relative;
}
.nostalg-feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--nostalg-primary);
  font-size: 0.85rem;
  transform: translateY(0.15rem);
}
.nostalg-home-hero .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}
.nostalg-home-hero .wp-element-button {
  font-size: 0.95rem;
  font-weight: 600;
}

.nostalg-hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: clamp(1.4rem, 3vw, 1.8rem);
}
.nostalg-hero-gallery figure {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.2rem, 4vw, 2.8rem);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.38);
}
.nostalg-hero-gallery figure:nth-child(odd) {
  transform: translateY(14px);
}
.nostalg-hero-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateZ(0);
}

.nostalg-category-grid {
  text-align: center;
}
.nostalg-category-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.nostalg-category-columns > .wp-block-column {
  margin: 0;
}
.nostalg-category-card {
  min-height: 320px;
  border-radius: 0;
  overflow: hidden;
}
.nostalg-category-card .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.72) 75%);
}
.nostalg-category-card .wp-block-cover__inner-container {
  align-items: flex-start;
  text-align: left;
}
.nostalg-cat-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}
.nostalg-category-card .wp-element-button {
  border-radius: 0;
  font-size: 0.8rem;
  padding: 0.6rem 1.5rem;
}

.nostalg-section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.nostalg-product-section {
  background: var(--theme-palette-color-8, #ffffff);
  border-radius: 0;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.nostalg-product-section p {
  max-width: 560px;
  margin: 0 auto 2rem;
}

.nostalg-story {
  gap: clamp(1.5rem, 5vw, 3rem);
}
.nostalg-highlight-card {
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.95), rgba(24, 24, 24, 0.85));
  border-radius: 0;
  padding: 1.75rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  margin-bottom: 1.5rem;
}
.nostalg-highlight-card ul {
  margin: 0;
}
.nostalg-highlight-card li + li {
  margin-top: 0.6rem;
}

.nostalg-cta {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%), linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(10, 10, 10, 0.95));
  border-radius: 0;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.75rem);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.nostalg-cta.alignfull {
  width: min(100%, var(--wp--style--global--wide-size, 1100px));
  max-width: var(--wp--style--global--wide-size, 1100px);
  margin-left: auto !important;
  margin-right: auto !important;
}
.nostalg-cta p {
  max-width: 540px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.82);
}
.nostalg-cta .wp-element-button {
  padding: 0.9rem 2.6rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.nostalg-cta .wp-element-button:hover {
  transform: translateY(-1px);
}

.nostalg-faq {
  background: var(--theme-palette-color-8);
  border-radius: 0;
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
.nostalg-faq-item {
  background: #fff;
  border-radius: 0;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(12, 18, 27, 0.06);
}
.nostalg-faq-item + .nostalg-faq-item {
  margin-top: 1.5rem;
}
.nostalg-faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.nostalg-faq-item p {
  margin: 0;
  color: #1f2933;
}

@media (max-width: 1024px) {
  .nostalg-category-columns {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 782px) {
  .nostalg-home-hero {
    padding: clamp(2.5rem, 8vw, 3.5rem) clamp(1rem, 6vw, 2rem);
  }
  .nostalg-home-hero .wp-block-columns {
    flex-direction: column;
  }
  .nostalg-hero-gallery {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
  .nostalg-product-section {
    padding: 2.5rem 1.5rem;
  }
  .nostalg-story {
    flex-direction: column;
  }
  .nostalg-highlight-card {
    margin-bottom: 1rem;
  }
  .nostalg-faq {
    padding: 2.5rem 1.5rem;
  }
  .nostalg-faq-item {
    padding: 1.5rem;
  }
}

/* Remove default Blocksy page hero so custom hero sits under navigation */
.page-id-38 .hero-section,
.page-id-130 .hero-section {
  display: none;
}

/* Transparent header overlay on home */
body.page-id-38 #header,
body.page-id-130 #header,
body.page-id-38 .ct-header,
body.page-id-130 .ct-header {
  background: transparent !important;
  position: fixed !important;
  left: 0;
  right: 0;
  z-index: 50;
  top: 0;
  width: 100%;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.page-id-38,
body.page-id-130 {
  --has-transparent-header: 1;
}
body.page-id-38 .ct-header .ct-container,
body.page-id-130 .ct-header .ct-container,
body.page-id-38 #header > [data-device],
body.page-id-130 #header > [data-device],
body.page-id-38 .ct-header [data-row],
body.page-id-130 .ct-header [data-row],
body.page-id-38 .ct-header [data-row] > .ct-container,
body.page-id-130 .ct-header [data-row] > .ct-container {
  background: transparent !important;
  box-shadow: none !important;
}
body.page-id-38 #header [data-row="top"],
body.page-id-130 #header [data-row="top"] {
  display: none !important;
}
body.page-id-38 #header,
body.page-id-130 #header {
  color: #f5f5f5 !important;
}
body.page-id-38 .ct-header a,
body.page-id-130 .ct-header a,
body.page-id-38 .ct-header .ct-icon,
body.page-id-130 .ct-header .ct-icon {
  color: #f5f5f5 !important;
  fill: #f5f5f5 !important;
}
body.page-id-38 .ct-header svg,
body.page-id-130 .ct-header svg,
body.page-id-38 .ct-header svg path,
body.page-id-130 .ct-header svg path {
  fill: currentColor;
  stroke: currentColor;
}
body.page-id-38 .ct-header .ct-menu-link:hover,
body.page-id-130 .ct-header .ct-menu-link:hover {
  color: var(--nostalg-primary) !important;
}
body.page-id-38 .ct-header [data-row] > .ct-container,
body.page-id-130 .ct-header [data-row] > .ct-container {
  padding-block: clamp(8px, 1vw, 14px);
  transition: padding 0.25s ease, min-height 0.25s ease;
}
body.page-id-38 .ct-header [data-row="middle"] > .ct-container,
body.page-id-130 .ct-header [data-row="middle"] > .ct-container {
  min-height: clamp(64px, 5.2vw, 98px) !important;
  gap: clamp(12px, 2vw, 32px);
}
body.page-id-38 .ct-sticky-container,
body.page-id-130 .ct-sticky-container {
  transition: height 0.3s ease;
}
body.page-id-38 .ct-header .site-logo-container img,
body.page-id-130 .ct-header .site-logo-container img {
  max-height: 52px;
  transition: max-height 0.25s ease;
}
body.page-id-38 #header [data-device="desktop"] nav.menu-container > ul > li > a,
body.page-id-130 #header [data-device="desktop"] nav.menu-container > ul > li > a {
  padding: 10px 12px;
  letter-spacing: 0.1em;
  transition: padding 0.2s ease, font-size 0.2s ease;
}
body.page-id-38 .ct-header [data-id="cart"] .ct-icon-container,
body.page-id-130 .ct-header [data-id="cart"] .ct-icon-container,
body.page-id-38 .ct-header [data-id="trigger"] .ct-icon,
body.page-id-130 .ct-header [data-id="trigger"] .ct-icon,
body.page-id-38 .ct-header [data-id="search"] .ct-icon,
body.page-id-130 .ct-header [data-id="search"] .ct-icon {
  width: 32px;
  height: 32px;
  transition: width 0.2s ease, height 0.2s ease;
}

body:not(.page-id-38):not(.page-id-130) #header [data-row="middle"] > .ct-container,
body:not(.page-id-38):not(.page-id-130) .ct-header [data-row="middle"] > .ct-container {
  min-height: clamp(56px, 4.6vw, 84px) !important;
}
body:not(.page-id-38):not(.page-id-130) #header [data-device="desktop"] nav.menu-container > ul > li > a {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 8px 10px;
}
body:not(.page-id-38):not(.page-id-130) #header [data-device="desktop"] nav.menu-container > ul > li > a:hover {
  letter-spacing: 0.08em;
}
body:not(.page-id-38):not(.page-id-130) .ct-header .ct-icon,
body:not(.page-id-38):not(.page-id-130) .ct-header .ct-icon-container {
  width: 32px;
  height: 32px;
  min-height: 32px;
}
body:not(.page-id-38):not(.page-id-130) #header [data-row="middle"] > .ct-container [data-column] {
  gap: clamp(10px, 1.8vw, 26px);
}

/* Sticky header + compact top bar outside the hero pages */
body:not(.page-id-38):not(.page-id-130) #header,
body:not(.page-id-38):not(.page-id-130) .ct-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
}
body.admin-bar:not(.page-id-38):not(.page-id-130) #header,
body.admin-bar:not(.page-id-38):not(.page-id-130) .ct-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar:not(.page-id-38):not(.page-id-130) #header,
  body.admin-bar:not(.page-id-38):not(.page-id-130) .ct-header {
    top: 46px;
  }
}

#header [data-row="top"],
.ct-header [data-row="top"] {
  border-bottom: 1px solid rgba(12, 22, 32, 0.08);
}
#header [data-row="top"] > .ct-container,
.ct-header [data-row="top"] > .ct-container {
  padding-block: clamp(6px, 0.9vw, 12px);
  min-height: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 48px);
  flex-wrap: wrap;
  transition: padding 0.25s ease;
}
#header [data-row="top"] .ct-top-bar,
.ct-header [data-row="top"] .ct-top-bar {
  width: 100%;
}
#header [data-row="top"] .ct-text-block,
.ct-header [data-row="top"] .ct-text-block,
#header [data-row="top"] .ct-top-bar-item,
.ct-header [data-row="top"] .ct-top-bar-item,
#header [data-row="top"] .ct-menu-link,
.ct-header [data-row="top"] .ct-menu-link {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
#header [data-row="top"] .ct-inline-flex,
.ct-header [data-row="top"] .ct-inline-flex {
  gap: clamp(8px, 2vw, 18px);
}
#header [data-row="top"] .ct-header-socials a,
.ct-header [data-row="top"] .ct-header-socials a {
  width: 32px;
  height: 32px;
  min-height: 32px;
  font-size: 0.85rem;
}

/* Global sticky header scaling */
#header [data-row] > .ct-container,
.ct-header [data-row] > .ct-container {
  padding-block: clamp(10px, 1.2vw, 16px);
  padding-inline: clamp(24px, 3vw, 56px);
  transition: padding 0.25s ease, min-height 0.25s ease;
}
#header [data-row="top"],
.ct-header [data-row="top"] {
  transition: opacity 0.2s ease, visibility 0.2s ease, height 0.2s ease;
}
#header [data-row="middle"] > .ct-container,
.ct-header [data-row="middle"] > .ct-container {
  min-height: clamp(68px, 5.2vw, 100px) !important;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
}
#header [data-row="middle"] > .ct-container [data-column],
.ct-header [data-row="middle"] > .ct-container [data-column] {
  display: flex;
  align-items: center;
  min-height: auto;
}
#header [data-device="desktop"] nav.menu-container > ul,
.ct-header [data-device="desktop"] nav.menu-container > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 40px);
  margin: 0;
  padding: 0;
}
#header [data-device="desktop"] nav.menu-container > ul > li,
.ct-header [data-device="desktop"] nav.menu-container > ul > li {
  flex: 0 0 auto;
  list-style: none;
}
#header [data-device="desktop"] nav.menu-container > ul > li > a,
.ct-header [data-device="desktop"] nav.menu-container > ul > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
}
#header [data-row="middle"] > .ct-container [data-column="middle"],
.ct-header [data-row="middle"] > .ct-container [data-column="middle"] {
  flex: 1 1 auto;
  justify-content: center;
}
#header [data-row="middle"] > .ct-container [data-column="start"],
.ct-header [data-row="middle"] > .ct-container [data-column="start"],
#header [data-row="middle"] > .ct-container [data-column="end"],
.ct-header [data-row="middle"] > .ct-container [data-column="end"] {
  flex: 0 0 auto;
}
.ct-sticky-container {
  transition: height 0.3s ease;
}
#header [data-device="desktop"] [data-row="middle"] > .ct-container,
.ct-header [data-device="desktop"] [data-row="middle"] > .ct-container {
  position: relative;
}
@media (min-width: 1025px) {
  #header [data-device="desktop"] [data-row="middle"] > .ct-container,
  .ct-header [data-device="desktop"] [data-row="middle"] > .ct-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  #header [data-device="desktop"] [data-row="middle"] > .ct-container [data-column="start"],
  .ct-header [data-device="desktop"] [data-row="middle"] > .ct-container [data-column="start"] {
    justify-self: flex-start;
  }
  #header [data-device="desktop"] [data-row="middle"] > .ct-container [data-column="middle"],
  .ct-header [data-device="desktop"] [data-row="middle"] > .ct-container [data-column="middle"] {
    justify-self: center;
  }
  #header [data-device="desktop"] [data-row="middle"] > .ct-container [data-column="end"],
  .ct-header [data-device="desktop"] [data-row="middle"] > .ct-container [data-column="end"] {
    justify-self: flex-end;
  }
}
#header .site-logo-container img,
.ct-header .site-logo-container img {
  max-height: 52px;
  transition: max-height 0.25s ease;
}
.ct-header .site-branding {
  display: flex;
  align-items: center;
  line-height: 1;
  min-height: 0;
}
#header [data-device="desktop"] nav.menu-container > ul > li > a,
.ct-header [data-device="desktop"] nav.menu-container > ul > li > a {
  letter-spacing: 0.12em;
  transition: padding 0.2s ease, font-size 0.2s ease;
}
#header [data-id="cart"] .ct-icon-container,
#header [data-id="trigger"] .ct-icon,
#header [data-id="search"] .ct-icon,
.ct-header [data-id="cart"] .ct-icon-container,
.ct-header [data-id="trigger"] .ct-icon,
.ct-header [data-id="search"] .ct-icon {
  width: 32px;
  height: 32px;
  transition: width 0.2s ease, height 0.2s ease;
}
html.is-scrolled #header,
html.is-scrolled .ct-header,
body.is-scrolled #header,
body.is-scrolled .ct-header,
.ct-header[data-sticky-state="stuck"],
#header[data-sticky-state="stuck"] {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  color: #050505 !important;
}
html.is-scrolled #header .ct-sticky-container,
html.is-scrolled .ct-sticky-container,
#header[data-sticky-state="stuck"] .ct-sticky-container,
.ct-header[data-sticky-state="stuck"] .ct-sticky-container {
  height: 56px !important;
}
html.is-scrolled #header [data-row] > .ct-container,
html.is-scrolled .ct-header [data-row] > .ct-container,
#header[data-sticky-state="stuck"] [data-row] > .ct-container,
.ct-header[data-sticky-state="stuck"] [data-row] > .ct-container {
  padding-block: clamp(6px, 0.8vw, 12px);
  padding-inline: clamp(14px, 2.5vw, 32px);
}
html.is-scrolled #header [data-row="top"],
html.is-scrolled .ct-header [data-row="top"],
.ct-header[data-sticky-state="stuck"] [data-row="top"] {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}
html.is-scrolled #header [data-row="middle"],
html.is-scrolled .ct-header [data-row="middle"],
#header[data-sticky-state="stuck"] [data-row="middle"],
.ct-header[data-sticky-state="stuck"] [data-row="middle"] {
  --shrink-height: clamp(44px, 3.2vw, 56px) !important;
}
html.is-scrolled #header [data-row="middle"] > .ct-container,
html.is-scrolled .ct-header [data-row="middle"] > .ct-container,
#header[data-sticky-state="stuck"] [data-row="middle"] > .ct-container,
.ct-header[data-sticky-state="stuck"] [data-row="middle"] > .ct-container {
  --shrink-height: clamp(44px, 3.2vw, 56px) !important;
  min-height: clamp(44px, 3.2vw, 56px) !important;
  gap: clamp(10px, 2.2vw, 28px);
}
#header[data-sticky-state="stuck"] .site-logo-container img,
.ct-header[data-sticky-state="stuck"] .site-logo-container img,
html.is-scrolled #header .site-logo-container img,
html.is-scrolled .ct-header .site-logo-container img {
  max-height: 44px;
}
#header[data-sticky-state="stuck"] [data-device="desktop"] nav.menu-container > ul > li > a,
.ct-header[data-sticky-state="stuck"] [data-device="desktop"] nav.menu-container > ul > li > a,
html.is-scrolled #header [data-device="desktop"] nav.menu-container > ul > li > a,
html.is-scrolled .ct-header [data-device="desktop"] nav.menu-container > ul > li > a {
  padding: 10px 12px;
  font-size: 0.9rem;
}
#header[data-sticky-state="stuck"] [data-device="desktop"] nav.menu-container > ul,
.ct-header[data-sticky-state="stuck"] [data-device="desktop"] nav.menu-container > ul,
html.is-scrolled #header [data-device="desktop"] nav.menu-container > ul,
html.is-scrolled .ct-header [data-device="desktop"] nav.menu-container > ul {
  gap: clamp(10px, 1.8vw, 26px);
}
#header[data-sticky-state="stuck"] [data-id="cart"] .ct-icon-container,
#header[data-sticky-state="stuck"] [data-id="trigger"] .ct-icon,
#header[data-sticky-state="stuck"] [data-id="search"] .ct-icon,
.ct-header[data-sticky-state="stuck"] [data-id="cart"] .ct-icon-container,
.ct-header[data-sticky-state="stuck"] [data-id="trigger"] .ct-icon,
.ct-header[data-sticky-state="stuck"] [data-id="search"] .ct-icon,
html.is-scrolled #header [data-id="cart"] .ct-icon-container,
html.is-scrolled #header [data-id="trigger"] .ct-icon,
html.is-scrolled #header [data-id="search"] .ct-icon,
html.is-scrolled .ct-header [data-id="cart"] .ct-icon-container,
html.is-scrolled .ct-header [data-id="trigger"] .ct-icon,
html.is-scrolled .ct-header [data-id="search"] .ct-icon {
  width: 28px;
  height: 28px;
}
html.is-scrolled #header a,
html.is-scrolled #header .ct-icon,
html.is-scrolled .ct-header a,
html.is-scrolled .ct-header .ct-icon,
#header[data-sticky-state="stuck"] a,
#header[data-sticky-state="stuck"] .ct-icon,
.ct-header[data-sticky-state="stuck"] a,
.ct-header[data-sticky-state="stuck"] .ct-icon {
  color: #050505 !important;
  fill: #050505 !important;
}
html.is-scrolled #header svg,
html.is-scrolled #header svg path,
html.is-scrolled .ct-header svg,
html.is-scrolled .ct-header svg path {
  fill: currentColor;
  stroke: currentColor;
}
html.is-scrolled #header .ct-menu-link,
body.is-scrolled #header .ct-menu-link,
html.is-scrolled .ct-header .ct-menu-link,
body.is-scrolled .ct-header .ct-menu-link {
  color: #050505 !important;
}
html.is-scrolled #header .ct-menu-link:hover,
body.is-scrolled #header .ct-menu-link:hover,
html.is-scrolled .ct-header .ct-menu-link:hover,
body.is-scrolled .ct-header .ct-menu-link:hover {
  color: var(--nostalg-primary) !important;
}
html.is-scrolled #header [data-id="cart"] .ct-icon-container,
html.is-scrolled #header [data-id="trigger"] .ct-icon,
html.is-scrolled #header [data-id="search"] .ct-icon,
html.is-scrolled .ct-header [data-id="cart"] .ct-icon-container,
html.is-scrolled .ct-header [data-id="trigger"] .ct-icon,
html.is-scrolled .ct-header [data-id="search"] .ct-icon,
#header[data-sticky-state="stuck"] [data-id="cart"] .ct-icon-container,
#header[data-sticky-state="stuck"] [data-id="trigger"] .ct-icon,
#header[data-sticky-state="stuck"] [data-id="search"] .ct-icon,
.ct-header[data-sticky-state="stuck"] [data-id="cart"] .ct-icon-container,
.ct-header[data-sticky-state="stuck"] [data-id="trigger"] .ct-icon,
.ct-header[data-sticky-state="stuck"] [data-id="search"] .ct-icon {
  color: #050505 !important;
  fill: #050505 !important;
}
html.is-scrolled #header .ct-menu-link,
html.is-scrolled .ct-header .ct-menu-link {
  color: #050505 !important;
}
body.is-scrolled #header .ct-menu-link,
body.is-scrolled .ct-header .ct-menu-link {
  color: #050505 !important;
}

body.page-id-38 #main,
body.page-id-130 #main {
  padding-top: 0;
}
body.page-id-38 .ct-container-full[data-content="normal"],
body.page-id-130 .ct-container-full[data-content="normal"] {
  padding-top: 0;
}
body.page-id-38 .ct-header [data-id="cart"] .ct-icon-container,
body.page-id-130 .ct-header [data-id="cart"] .ct-icon-container,
body.page-id-38 .ct-header [data-id="trigger"] .ct-icon,
body.page-id-130 .ct-header [data-id="trigger"] .ct-icon {
  color: #f5f5f5 !important;
  fill: #f5f5f5 !important;
}

/* Products overview page */
.products-overview {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.products-overview__inner {
  display: grid;
  grid-template-columns: clamp(18rem, 28vw, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
}
.products-overview__filters {
  position: sticky;
  top: clamp(1rem, 4vw, 2rem);
  align-self: start;
}
.products-overview__filters-backdrop {
  display: none;
}
.products-overview__filters-drawer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.products-overview__filters-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.products-overview__filters-close {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(12, 22, 32, 0.16);
  border-radius: 999px;
  color: rgba(12, 22, 32, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 400;
  height: 2.25rem;
  width: 2.25rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.products-overview__filters-close:hover,
.products-overview__filters-close:focus-visible {
  background: rgba(12, 22, 32, 0.08);
  border-color: rgba(12, 22, 32, 0.24);
  color: var(--nostalg-black);
}
.products-overview__filters-close:focus-visible {
  outline: 2px solid var(--nostalg-blue-400);
  outline-offset: 3px;
}
.products-overview__filters-toggle {
  align-items: center;
  background: var(--nostalg-black) !important;
  border: 1px solid var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  cursor: pointer;
  display: flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.products-overview__filters-toggle:focus-visible {
  outline: 3px solid var(--nostalg-primary);
  outline-offset: 2px;
}
.products-overview__filters-toggle-icon::before {
  content: '\25BE';
  display: block;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.products-overview__filters-toggle:hover {
  background: var(--nostalg-primary-strong) !important;
  border-color: var(--nostalg-primary-strong) !important;
  color: #fff !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}
.products-overview__filters.is-collapsed .products-overview__filters-toggle-icon::before {
  transform: rotate(-90deg);
}
.products-overview__filters-panel {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 0;
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  box-shadow: 0 16px 40px rgba(12, 22, 32, 0.08);
}
.products-overview__filters.is-collapsed .products-overview__filters-panel {
  display: none;
}
.products-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.products-filter__separator {
  width: 100%;
  border-bottom: 1px solid rgba(12, 22, 32, 0.08);
  margin: clamp(1rem, 3vw, 1.75rem) 0;
}
.products-filter__sections-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.products-filter--section {
  border-bottom: 1px solid rgba(12, 22, 32, 0.08);
  padding: 1.25rem 0;
}
.products-filter--section:first-child {
  padding-top: 0;
}
.products-filter--section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.products-filter__header {
  margin-bottom: 0.75rem;
}
.products-filter__toggle {
  align-items: center;
  background: var(--nostalg-black) !important;
  border: 1px solid var(--nostalg-black) !important;
  color: var(--nostalg-white) !important;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  width: 100%;
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.products-filter__toggle:focus-visible {
  outline: 3px solid var(--nostalg-primary);
  outline-offset: 2px;
}
.products-filter__toggle:hover {
  background: var(--nostalg-primary-strong) !important;
  border-color: var(--nostalg-primary-strong) !important;
  color: var(--nostalg-white) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}
.products-filter__toggle-icon::before {
  content: '\25BE';
  display: block;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}
.products-filter.is-collapsed .products-filter__toggle-icon::before {
  transform: rotate(-90deg);
}
.products-filter__summary {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: auto;
}
.products-filter__panel {
  display: block;
  padding: 0.35rem 0 0;
}
.products-filter.is-collapsed .products-filter__panel {
  display: none;
}
.products-filter--price .products-filter__panel {
  background: rgba(14, 14, 14, 0.03);
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(12, 22, 32, 0.06);
  margin-top: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.products-filter__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.products-filter__controls input {
  width: 100%;
}
.products-filter__dash {
  font-size: 1.25rem;
  opacity: 0.6;
}
.products-filter__list {
  display: grid;
  gap: 0.5rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.products-filter__size-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.products-filter__size-group-title {
  margin: 0.65rem 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.72);
}
.products-filter__list--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.products-filter__list--wrap .products-filter__item {
  flex: 1 1 230px;
  min-width: 180px;
}
.products-filter__list--wrap .products-filter__option {
  width: 100%;
}
@media (max-width: 768px) {
  .products-filter__list--wrap .products-filter__item {
    flex-basis: 100%;
    min-width: auto;
  }
}
.products-filter__item {
  margin: 0;
}
.products-filter__option {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  font-size: 0.95rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.products-filter__option:hover,
.products-filter__option:focus-within {
  background: rgba(12, 22, 32, 0.06);
  box-shadow: 0 6px 16px rgba(12, 22, 32, 0.08);
}
.products-filter__option input {
  accent-color: var(--nostalg-black);
  margin: 0;
  flex-shrink: 0;
}
.products-filter__label-text {
  flex: 1;
  min-width: 0;
}
.products-filter__count {
  align-items: center;
  background: var(--nostalg-white);
  border-radius: 0;
  color: rgba(14, 14, 14, 0.65);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.5rem;
  margin-left: auto;
}
.products-price-slider {
  --slider-min-percent: 0%;
  --slider-max-percent: 100%;
  --slider-min-label: 0%;
  --slider-max-label: 100%;
  --slider-track-bg: rgba(14, 14, 14, 0.18);
  --slider-track-active: rgba(14, 14, 14, 0.9);
  --slider-track-active-highlight: var(--nostalg-blue-400);
  position: relative;
}
.products-price-slider__range {
  position: relative;
  padding: 1.85rem 0 1.35rem;
}
.products-price-slider__track {
  background: linear-gradient(
    to right,
    var(--slider-track-bg) 0%,
    var(--slider-track-bg) calc(var(--slider-min-percent) * 1%),
    var(--slider-track-active) calc(var(--slider-min-percent) * 1%),
    var(--slider-track-active) calc(var(--slider-max-percent) * 1%),
    var(--slider-track-bg) calc(var(--slider-max-percent) * 1%),
    var(--slider-track-bg) 100%
  );
  border-radius: 0;
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(50% - 3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.products-price-slider__input {
  -webkit-appearance: none;
  background: none;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 2;
}
.products-price-slider__input--min {
  z-index: 3;
}
.products-price-slider__input:focus-visible {
  outline: none;
}
.products-price-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--nostalg-black);
  border-radius: 0;
  box-shadow: 0 8px 16px rgba(12, 22, 32, 0.35);
  height: 20px;
  pointer-events: auto;
  width: 20px;
}
.products-price-slider__input::-moz-range-thumb {
  background: var(--nostalg-black);
  border: none;
  border-radius: 0;
  box-shadow: 0 8px 16px rgba(12, 22, 32, 0.35);
  height: 20px;
  pointer-events: auto;
  width: 20px;
}
.products-price-slider__input::-ms-thumb {
  background: var(--nostalg-black);
  border: none;
  border-radius: 0;
  box-shadow: 0 8px 16px rgba(12, 22, 32, 0.35);
  height: 20px;
  pointer-events: auto;
  width: 20px;
}
.products-price-slider__value {
  background: var(--nostalg-black);
  border-radius: 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  left: 0;
  padding: 0.3rem 0.75rem;
  position: absolute;
  top: 0;
  transform: translate(-50%, -115%);
  white-space: nowrap;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(12, 22, 32, 0.25);
}
.products-price-slider__value--min {
  left: calc(var(--slider-min-label) * 1%);
}
.products-price-slider__value--max {
  left: calc(var(--slider-max-label) * 1%);
}
.products-price-slider__value--edge-start {
  transform: translate(-5%, -115%);
}
.products-price-slider__value--edge-end {
  transform: translate(-95%, -115%);
}
.products-price-slider__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.15rem;
}
.products-price-slider__hint {
  color: rgba(14, 14, 14, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}
.products-price-slider__fields {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
}
.products-price-slider__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.15rem;
}
.products-price-slider__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.products-price-slider__field input {
  background: var(--nostalg-white);
  border: 1px solid rgba(14, 14, 14, 0.12);
  border-radius: 0;
  font-size: 0.95rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.95rem 0.25rem 2.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.products-price-slider__field input:focus {
  border-color: var(--nostalg-blue-400);
  box-shadow: 0 0 0 4px rgba(45, 133, 255, 0.18);
  outline: none;
}
.products-price-slider__field-prefix {
  color: rgba(14, 14, 14, 0.55);
  font-size: 0.9rem;
  font-weight: 600;
  left: 0.9rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.products-price-slider__dash {
  flex: 0 0 auto;
}
.products-price-slider__field input::-webkit-outer-spin-button,
.products-price-slider__field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.products-price-slider__field input[type="number"] {
  -moz-appearance: textfield;
}
.products-price-slider__dash {
  color: rgba(14, 14, 14, 0.5);
  font-size: 1.25rem;
  font-weight: 600;
}
.products-price-slider__reset {
  align-self: stretch;
  background: var(--nostalg-black) !important;
  border: 1px solid var(--nostalg-black) !important;
  border-radius: 0;
  color: var(--nostalg-white) !important;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1.05rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  width: 100%;
}
.products-price-slider__reset:hover {
  background: var(--nostalg-primary-strong) !important;
  border-color: var(--nostalg-primary-strong) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.products-price-slider__reset:focus-visible {
  outline: 3px solid var(--nostalg-primary);
  outline-offset: 2px;
}
.products-price-slider__reset:disabled,
.products-price-slider__reset:disabled:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed;
  box-shadow: none;
}
.products-price-slider__apply {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--nostalg-black);
  border: 1px solid var(--nostalg-black);
  border-radius: 0;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.35rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  width: 100%;
}
.products-price-slider__apply.is-visible {
  display: flex;
}
.products-price-slider__apply:hover,
.products-price-slider__apply:focus-visible {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(12, 22, 32, 0.24);
}
.products-price-slider__apply:focus-visible {
  outline: 2px solid var(--nostalg-blue-400);
  outline-offset: 3px;
}
.products-price-slider__apply:disabled,
.products-price-slider__apply:disabled:hover {
  cursor: not-allowed;
  box-shadow: none;
}
.products-filter--actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.products-overview__filters--autosubmit .products-filter__apply {
  display: none;
}
.products-overview__filters--autosubmit .products-filter--actions {
  align-items: flex-end;
  flex-direction: row;
  justify-content: space-between;
}
.products-filter__apply {
  width: 100%;
}
.products-filter__reset {
  font-weight: 600;
  text-align: center;
}
.products-overview__heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.products-overview__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.products-overview__meta {
  margin: 0;
  color: rgba(14, 14, 14, 0.65);
}
.products-overview__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.products-overview__ordering {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.products-overview__ordering-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.products-overview__ordering select {
  min-width: 160px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  padding: 0.35rem 1.75rem 0.35rem 0.75rem;
  font-size: 0.9rem;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.5) 50%), linear-gradient(135deg, rgba(0, 0, 0, 0.5) 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% + 2px), calc(100% - 10px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}
.products-overview__pagination {
  width: 100%;
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.products-overview__pagination--top {
  margin-top: 0;
}
.products-overview__pagination-container {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.products-overview__pagination-summary {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.72);
}
.products-overview__pagination .page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.products-overview__pagination .page-numbers li {
  list-style: none;
}
.products-overview__pagination a,
.products-overview__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0;
  padding: 0 0.75rem;
  background: var(--nostalg-gray-300);
  color: var(--nostalg-black);
  font-weight: 600;
}
.products-overview__pagination .prev.page-numbers,
.products-overview__pagination .next.page-numbers {
  padding: 0 1.25rem;
}
.products-overview__pagination .current {
  background: var(--nostalg-primary);
  color: #fff;
}

/* WooCommerce cards (Blocksy type 2) */
[data-products] .ct-woo-card-actions {
  background: var(--nostalg-black) !important;
  border-block: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--nostalg-white) !important;
}

[data-products] .ct-woo-card-actions .price,
[data-products] .ct-woo-card-actions .price * {
  color: var(--nostalg-white) !important;
}

[data-products] .ct-woo-card-actions .price:not(:only-child)::after {
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-products] .ct-woo-card-actions .button,
[data-products] .ct-woo-card-actions .added_to_cart {
  color: var(--nostalg-white) !important;
  background-color: transparent !important;
  border: none !important;
  transition: color 0.2s ease;
}

[data-products] .ct-woo-card-actions .button:hover,
[data-products] .ct-woo-card-actions .button:focus-visible,
[data-products] .ct-woo-card-actions .added_to_cart:hover,
[data-products] .ct-woo-card-actions .added_to_cart:focus-visible {
  color: var(--nostalg-primary) !important;
}

[data-products="type-2"] .ct-woo-card-actions {
  background: var(--nostalg-black) !important;
  border-block: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--nostalg-white) !important;
}

[data-products="type-2"] .ct-woo-card-actions .price,
[data-products="type-2"] .ct-woo-card-actions .price * {
  color: var(--nostalg-white) !important;
}

[data-products="type-2"] .ct-woo-card-actions .price:not(:only-child)::after {
  background: rgba(255, 255, 255, 0.12);
}

[data-products="type-2"] .ct-woo-card-actions .button,
[data-products="type-2"] .ct-woo-card-actions .added_to_cart {
  color: var(--nostalg-white) !important;
  background-color: transparent !important;
  border: none !important;
  transition: color 0.2s ease;
}

[data-products="type-2"] .ct-woo-card-actions .button:hover,
[data-products="type-2"] .ct-woo-card-actions .button:focus-visible,
[data-products="type-2"] .ct-woo-card-actions .added_to_cart:hover,
[data-products="type-2"] .ct-woo-card-actions .added_to_cart:focus-visible {
  color: var(--nostalg-primary) !important;
}

@media (max-width: 1024px) {
  .products-overview__inner {
    grid-template-columns: 1fr;
  }
  .products-overview__filters {
    position: relative;
    order: -1;
    z-index: 1;
  }
  .products-overview__filters-toggle {
    justify-content: space-between;
  }
  .products-overview__filters-toggle,
  .products-overview__filters-close,
  .products-overview__filters-panel .products-filter__toggle,
  .products-overview__filters-panel .products-filter__apply,
  .products-overview__filters-panel .products-price-slider__reset {
    background: var(--nostalg-button-black) !important;
    color: #ffffff !important;
    border-color: var(--nostalg-button-black) !important;
  }
  .products-overview__filters-panel .products-filter__header {
    background: var(--nostalg-button-black);
    border-radius: 6px;
    padding: 0.35rem;
    margin-bottom: 0.75rem;
  }
  .products-overview__filters-panel .products-filter__header + .products-filter__panel {
    margin-top: 0;
  }
  .products-overview__filters-toggle:hover,
  .products-overview__filters-toggle:focus-visible,
  .products-overview__filters-close:hover,
  .products-overview__filters-close:focus-visible,
  .products-overview__filters-panel .products-filter__toggle:hover,
  .products-overview__filters-panel .products-filter__toggle:focus-visible,
  .products-overview__filters-panel .products-filter__apply:hover,
  .products-overview__filters-panel .products-filter__apply:focus-visible,
  .products-overview__filters-panel .products-price-slider__reset:hover,
  .products-overview__filters-panel .products-price-slider__reset:focus-visible {
    background: var(--nostalg-button-black-hover) !important;
    border-color: var(--nostalg-button-black-hover) !important;
    color: #ffffff !important;
  }
  .products-overview__filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(90vw, 360px);
    max-width: 400px;
    margin-top: 0;
    padding: calc(clamp(1.5rem, 5vw, 2.25rem) + env(safe-area-inset-top, 0px)) clamp(1.5rem, 5vw, 2.25rem) clamp(2.5rem, 6vw, 3rem);
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 3001;
    box-shadow: 0 32px 80px rgba(12, 22, 32, 0.3);
    background: #ffffff;
    color: var(--nostalg-black);
  }
  .products-overview__filters.is-collapsed .products-overview__filters-panel {
    display: block;
  }
  .products-overview__filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 22, 32, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3000;
  }
  .products-overview__filters-drawer-header {
    display: flex;
  }
  .products-overview__filters-title {
    font-size: 1.2rem;
  }
  .products-overview__filters.is-drawer-active .products-overview__filters-panel {
    transform: translateX(0);
  }
  .products-overview__filters.is-drawer-active .products-overview__filters-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .products-filter__sections-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .products-filter--actions {
    flex-direction: row;
  }
  .products-filter__apply {
    width: auto;
    flex: 1;
  }
  .products-overview__filters--autosubmit .products-filter--actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .products-filter__sections-grid {
    gap: 1rem;
  }
  .products-filter__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .products-filter--actions {
    flex-direction: column;
  }
  .products-filter__list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .products-filter__summary {
    font-size: 0.8rem;
    max-width: 60%;
    text-align: right;
  }
  .products-filter__option {
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
  }
  .products-filter__count {
    margin-left: auto;
  }
  .products-price-slider__fields {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .products-price-slider__dash {
    display: none;
  }
  .products-price-slider__field--max input {
    text-align: left;
    padding-right: 1rem;
  }
  .products-price-slider__field--max .products-price-slider__field-prefix {
    right: auto;
    left: 0.9rem;
  }
  .products-price-slider__reset {
    justify-self: flex-start;
  }
  .products-price-slider__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .products-price-slider__reset {
    align-self: flex-start;
  }
  .products-price-slider__actions {
    justify-content: flex-start;
  }
}

/* Product card hover swap */
.nostalg-image-stack {
  position: relative;
  display: block;
}

.nostalg-image-stack img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.28s ease-in-out;
  will-change: opacity;
}

.nostalg-image-stack img.nostalg-hover-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.nostalg-image-stack:focus-within img.nostalg-hover-image,
.nostalg-image-stack:hover img.nostalg-hover-image {
  opacity: 1;
}

.nostalg-image-stack:focus-within a img,
.nostalg-image-stack:hover a img {
  opacity: 0;
}
.has-filter-drawer-open {
  overflow: hidden;
  touch-action: none;
}
.has-filter-drawer-open .ct-header,
.has-filter-drawer-open #header {
  pointer-events: none;
}

/* Stock badges */
.single-product .product .stock,
.products .product .stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px !important;
  border: 1px solid transparent;
  margin: 1.1rem 0 0;
  line-height: 1;
}

.single-product .product .stock.out-of-stock,
.products .product .stock.out-of-stock {
  background: var(--nostalg-critical-soft);
  color: var(--nostalg-critical);
  border-color: rgba(87, 28, 28, 0.2);
}

.single-product .product .stock.out-of-stock::before,
.products .product .stock.out-of-stock::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px !important;
  background: var(--nostalg-critical);
  display: inline-block;
}
