/* ================================
   THE CLUB THEME
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');

/* --------------------------------
   VARIABILI — SISTEMA CONDIVISO
   -------------------------------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --bg: #f5f5f5;
  --gray: #f5f5f5;
  --gray-line: rgba(0, 0, 0, 0.08);

  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-logo: 'Unbounded', sans-serif;

  --fs-display: clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-h1: 1.05rem;
  --fs-h2: 0.9rem;
  --fs-h3: 0.8rem;
  --fs-nav-sub: 0.7rem;
  --fs-body: 13px;
  --fs-label: 11px;
  --fs-micro: 10px;

  --logo-fs: 20px;
  --logo-fs-desktop: 19px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --spacing: var(--space-5);

  --ease-out: cubic-bezier(0.65, 0, 0.35, 1);

  --tc-hero-blur-max: 40px;
  --tc-hero-tint-max: 0.20;
  --tc-hero-fg-shift-max: 60px;
  --tc-hero-scroll-range: 100vh;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
}

button,
[role="button"],
.tc-trigger,
.tc-search-btn,
.tc-action-link,
.tc-filter-btn,
.tc-price-toggle,
.tc-mega__close,
.tc-header-nav__link,
.tc-mega__column-header,
.tc-facet__toggle,
.tc-facets__clear-btn,
.tc-filters__close {
  cursor: pointer;
}

body {
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  font-weight: 400;
  color: var(--black);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-title) !important;
  font-weight: 800 !important;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--black);
  font-size: var(--fs-h2) !important;
}

h1, .h1 { font-size: var(--fs-h1) !important; }

a { color: var(--black); text-decoration: none; }
a:hover { color: var(--black); text-decoration: none; }
p { font-size: var(--fs-body); line-height: 1.6; }

.container,
.container-md,
.container-fluid {
  padding-left: var(--spacing) !important;
  padding-right: var(--spacing) !important;
  max-width: 100% !important;
}

main, #main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* La pagina prodotto e' esclusa: l'hero gestisce da solo lo spazio
   sotto l'header trasparente (va full-bleed, sotto l'header stesso) */
body:not(.page-index):not(.page-product) #wrapper {
  padding-top: 72px !important;
}

.header-top,
.header-nav,
.ps-mainmenu--desktop,
.ps-mainmenu__mobile-toggle,
#_desktop_top_menu,
.ps-searchbar,
.ps-searchbar__form {
  display: none !important;
}

.header-bottom {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 200 !important;
  background: transparent !important;
  border-bottom: none !important;
  height: auto !important;
  padding: var(--space-5) 0 !important;
}

.header-bottom__container {
  max-width: 100% !important;
  padding: 0 var(--spacing) !important;
}

.header-bottom__row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: auto;
  position: relative;
  z-index: 210;
}

.header-bottom__logo {
  grid-column: 2;
  justify-self: center;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 110;
}

.header-bottom__logo img {
  width: auto;
}

.header-bottom__h1 {
  height: 100%;
  display: flex;
  align-items: center;
}

.header-bottom__right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  z-index: 100;
}

.tc-header-nav {
  display: none;
  position: relative;
  z-index: 100;
}

@media (min-width: 992px) {
  .header-bottom__row {
    grid-template-columns: auto 1fr;
  }

  .tc-trigger { display: none !important; }

  .header-bottom__logo {
    grid-column: 1;
    justify-self: start;
  }

  .header-bottom__right {
    grid-column: 2;
  }

  .tc-header-nav { display: flex; align-items: center; }
}

.tc-header-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.tc-header-nav__link {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--black);
  padding: var(--space-2) 0;
  position: relative;
  transition: opacity 0.3s ease;
}

.tc-header-nav__link::first-letter {
  text-transform: uppercase;
}

.tc-header-nav__link:hover,
.tc-header-nav__link[aria-expanded="true"] {
  opacity: 0.6;
}

.tc-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 34px;
  height: 20px;
  background: transparent;
  border: none;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
  position: relative;
  z-index: 120;
}

.tc-trigger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--black);
  transition: all 0.3s ease;
  transform-origin: center;
}

body.tc-mega-open .tc-trigger span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
body.tc-mega-open .tc-trigger span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.tc-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  z-index: 100;
}

.tc-action-link {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--black);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.tc-action-link::first-letter {
  text-transform: uppercase;
}

.tc-action-link:hover { opacity: 0.6; }

.tc-action-link--cart {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.tc-action-link--search,
.tc-action-link--account {
  display: none;
}

@media (min-width: 992px) {
  .tc-action-link--search,
  .tc-action-link--account {
    display: inline-block;
  }
}

.tc-logo-link {
  display: inline-block;
  text-decoration: none;
}

.tc-logo-liquid {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: var(--logo-fs);
  letter-spacing: -1px;
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
  will-change: filter;
}

@media (min-width: 992px) {
  .tc-logo-liquid {
    font-size: var(--logo-fs-desktop);
    letter-spacing: -1.2px;
  }
}

.tc-search-panel {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: var(--space-4) var(--spacing);
  z-index: 998;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tc-search-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.tc-search-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.tc-search-input {
  flex: 1;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  outline: none;
}

.tc-search-submit {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--black);
}

.tc-search-panel__close {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  opacity: 0.6;
  flex-shrink: 0;
}

.tc-search-panel__close:hover { opacity: 1; }

.tc-mega {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  width: 100%;
  max-height: 100vh;
  background: rgba(245, 245, 245, 0.3);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease, visibility 0s linear 0.3s;
}

.tc-mega.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease, visibility 0s linear 0s;
}

.tc-mega__inner {
  display: flex;
  align-items: stretch;
  min-height: 100%;
  padding-top: 75px;
}

.tc-mega__image {
  order: 2;
  flex: 0 0 320px;
  align-self: stretch;
  display: block;
}

.tc-mega__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-mega__columns {
  order: 1;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  align-items: start;
  padding: 0 var(--space-5) var(--space-5);
}

/* Colonna impilata (es. Sales/Optical/Sun): solo titoli, niente sottocategorie */
.tc-mega__column--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tc-mega__col-title--stacked {
  display: block;
}

.tc-mega__col-title--sale {
  color: #d62828;
}

/* Ultime voci come immagini (es. New collection/New in): non troppo grandi,
   riempiono l'altezza del pannello, rispettano lo stesso padding del resto del menu */
.tc-mega__images {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  gap: var(--space-3);
  align-self: stretch;
  padding: 0 var(--spacing) var(--space-5) 0;
}

.tc-mega__image-item {
  position: relative;
  display: block;
  width: 170px;
  overflow: hidden;
}

.tc-mega__image-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-mega__image-label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  color: #fff;
  mix-blend-mode: difference;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
}

.tc-mega__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
  padding: var(--space-2);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.tc-mega__close:hover { opacity: 1; }

.tc-mega__column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tc-mega__col-title {
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black);
  text-decoration: none;
}

.tc-mega__accordion-icon {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.tc-mega__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tc-mega__link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--black);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: opacity 0.2s ease;
}

.tc-mega__link:hover { opacity: 0.5; }

.tc-mega__link--all {
  font-weight: 700;
}

.tc-mega__sublinks {
  list-style: none;
  padding-left: var(--space-4);
  margin-top: var(--space-1);
  margin-bottom: var(--space-2);
}

.tc-mega__sublinks .tc-mega__link {
  font-size: var(--fs-micro);
  opacity: 0.6;
}

.tc-mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

body.tc-mega-open .tc-mega-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

body.tc-mega-open {
  overflow: hidden;
}

/* Nota: .tc-mega non viene forzato a display:none sotto i 992px.
   Le voci categoria restano comunque irraggiungibili su mobile (nav nascosta,
   c'e l'hamburger), ma il pannello account usa lo stesso componente ed e
   raggiungibile anche li (le azioni cerca/account/carrello restano visibili). */

.tc-mmenu {
  display: none;
}

@media (max-width: 991px) {
  .tc-mmenu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 90;
    background: rgba(245, 245, 245, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 76px;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease, visibility 0s linear 0.5s;
  }

  .tc-mmenu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease, visibility 0s linear 0s;
  }
}

.tc-mmenu__inner {
  padding: var(--space-4) var(--spacing) var(--space-7);
}

.tc-mmenu__list { list-style: none; }

.tc-mmenu__item {
}

.tc-mmenu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* .tc-mmenu__link/.tc-mmenu__sublink sono a volte <a>, a volte <button>
   (bottone quando la voce ha figli/azione e deve solo aprire, non navigare) —
   stesso identico aspetto in entrambi i casi, stessa dimensione per tutte le voci
   (categorie, Account, Search compresi). */
.tc-mmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  padding: var(--space-4) 0;
}

.tc-mmenu__link-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Chevron al posto del vecchio "+": centrato dal flex della riga stessa (align-items:center),
   niente margini negativi (causavano il taglio visivo lamentato). */
.tc-mmenu__chevron {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.tc-mmenu__item.is-expanded > .tc-mmenu__row .tc-mmenu__chevron {
  transform: rotate(-135deg);
}

.tc-mmenu__chevron--sub {
  width: 6px;
  height: 6px;
}

.tc-mmenu__subitem.is-expanded > .tc-mmenu__subrow .tc-mmenu__chevron--sub {
  transform: rotate(-135deg);
}

/* Apri/chiudi diretto — niente altezze stimate o calcolate: elimina alla radice
   qualsiasi possibilità che il contenuto resti tagliato a metà. */
.tc-mmenu__body {
  display: none;
}

.tc-mmenu__item.is-expanded > .tc-mmenu__body {
  display: block;
}

.tc-mmenu__sublist {
  list-style: none;
  padding-left: var(--space-2);
  padding-bottom: var(--space-4);
}

.tc-mmenu__subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-left: var(--space-2);
}

.tc-mmenu__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  padding: var(--space-3) 0;
}

.tc-mmenu__subbody {
  display: none;
  padding-left: var(--space-4);
}

.tc-mmenu__subitem.is-expanded > .tc-mmenu__subbody {
  display: block;
}

.tc-mmenu__subbody .tc-mega__links {
  padding-bottom: var(--space-3);
}

/* Barra di ricerca inline dentro il menu mobile (ultima voce, ad accordion) */
.tc-mmenu__search-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-5);
}

.tc-mmenu__search-input {
  flex: 1;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  outline: none;
}

.tc-mmenu__search-submit {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--black);
  cursor: pointer;
}

.active-search-filters,
#js-active-search-filters {
  display: none !important;
}

.products-selection {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-3) 0 !important;
  border: none !important;
  margin-bottom: 0 !important;
}

.products-selection .total-products { display: none !important; }

#js-product-list-top { margin: var(--space-5) 0; }

.sort-by-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sort-by-row label {
  font-family: var(--font-body) !important;
  font-size: var(--fs-label) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  color: var(--black) !important;
}

.sort-by-row select {
  font-family: var(--font-body) !important;
  font-size: var(--fs-label) !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  border: none !important;
  border-bottom: 1px solid var(--black) !important;
  background: transparent !important;
  color: var(--black) !important;
  padding: 0.2rem var(--space-5) 0.2rem 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  outline: none !important;
}

.product-miniature { padding: 0 !important; }

.tc-product { position: relative; }

.tc-product__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--black);
}

.tc-product__image {
  position: relative;
  overflow: hidden;
  background: #efefef;
  aspect-ratio: 3 / 4;
}

.tc-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: var(--space-5);
}

@media (max-width: 991px) {
  .tc-product__image img {
    padding: 0;
  }
}

.tc-product__image-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-flags .product-flag,
.tc-product .discount,
.tc-product .on-sale,
.tc-product .new {
  background: var(--black) !important;
  color: var(--white) !important;
  border: none !important;
}

.tc-product__corner {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
}

.tc-product__corner--tl { top: 0; left: 0; align-items: flex-start; }
.tc-product__corner--tr { top: 0; right: 0; align-items: flex-end; }
.tc-product__corner--bl { bottom: 0; left: 0; align-items: flex-start; }
.tc-product__corner--br { bottom: 0; right: 0; align-items: flex-end; }

.tc-product__brand,
.tc-product__title,
.tc-product__status,
.tc-product__price {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.tc-product__brand { opacity: 1; }

.tc-product__price--old {
  text-decoration: line-through;
  opacity: 0.4;
  margin-right: var(--space-1);
}

.tc-product__swatches {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-2);
}

.tc-product__swatches a.color {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: none;
  background-size: cover;
  background-position: center;
}

.tc-product__swatches a.color.selected {
  height: 28px;
}

.tc-wishlist-btn {
  background: transparent;
  border: none;
  padding: 0;
  line-height: 0;
}

.tc-wishlist-btn__icon {
  display: block;
  width: auto;
  height: 22px;
  overflow: visible;
}

.tc-wishlist-btn__icon path {
  fill: none;
  stroke: var(--black);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill 0.25s ease;
}

.tc-wishlist-btn.is-active .tc-wishlist-btn__icon path {
  fill: var(--black);
}

#js-product-list .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-3);
  align-items: start;
  background: transparent !important;
}

@media (min-width: 992px) {
  #js-product-list .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

#js-product-list .products > * { background: var(--white); }

#content-wrapper {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

#products { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
#js-product-list { width: 100% !important; max-width: 100% !important; padding: 0 !important; }

#main .row > #left-column + #content-wrapper { flex: 0 0 100% !important; max-width: 100% !important; }

.columns-container .row {
  margin: 0 !important;
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

.columns-container #left-column { display: none !important; padding: 0 !important; }

.columns-container #center-column {
  padding: 0 !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.tc-category-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

canvas#tcGridCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tc-category-header__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: 8rem;
  padding-bottom: var(--space-4);
}

.tc-category-header__row--top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: flex-start;
}

.tc-category-header__title {
  font-family: var(--font-title) !important;
  font-size: var(--fs-display) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em;
  text-align: left;
}

.tc-category-header__count {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: 500;
  text-transform: none;
  vertical-align: super;
  margin-left: var(--space-1);
}

.tc-category-header__col-right {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.tc-category-header__description {
  max-width: 320px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1;
  color: var(--black);
  text-align: left;
}

.tc-category-header__row--bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: center;
}

.tc-price-toggle {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--black);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.tc-price-toggle:hover,
.tc-price-toggle.is-active {
  opacity: 1;
}

.tc-category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.tc-chip {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-h1);
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.tc-chip:hover,
.tc-chip.is-active {
  opacity: 1;
}

.tc-filter-btn {
  position: relative;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
  transition: letter-spacing 0.3s var(--ease-out);
}

.tc-filter-btn:hover { letter-spacing: 0.18em; }

.tc-filters {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  max-width: 420px !important;
  height: 100vh !important;
  background: var(--bg) !important;
  transform: translateX(110%) !important;
  transition: transform 0.5s var(--ease-out) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.tc-filters.is-open { transform: translateX(0) !important; }

.tc-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  flex-shrink: 0;
}

.tc-filters__title {
  font-family: var(--font-title) !important;
  font-size: var(--fs-h1);
  line-height: 1;
}

.tc-filters__close {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--black);
  transition: letter-spacing 0.3s var(--ease-out);
}

.tc-filters__close:hover { letter-spacing: 0.2em; }

.tc-filters__body { flex: 1; overflow-y: auto; }

.tc-facets__clear { padding: var(--space-3) var(--space-5); }

.tc-facets__clear-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--black);
  transition: letter-spacing 0.3s var(--ease-out);
}

.tc-facets__clear-btn:hover { letter-spacing: 0.2em; }

.tc-facets__list { padding: 0 var(--space-5); }

.tc-facet {
}

.tc-facet__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--black);
  text-align: left;
  transition: opacity 0.3s ease;
}

.tc-facet__toggle:hover { opacity: 0.6; }

.tc-facet__icon {
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.tc-facet__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease-out);
}

.tc-facet__body.show {
  max-height: 800px;
  padding-bottom: var(--space-4);
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.tc-facet__options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tc-facet__option { display: flex; align-items: center; }

.tc-facet__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tc-facet__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--black);
  position: relative;
  padding-left: var(--space-5);
}

.tc-facet__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 1px solid var(--black);
  background: transparent;
  transition: background 0.15s ease;
}

.tc-facet__input:checked + .tc-facet__label::before { background: var(--black); }
.tc-facet__option.is-active .tc-facet__label { font-weight: 600; }
.tc-facet__label a { color: var(--black); text-decoration: none; flex: 1; }
.tc-facet__label a:hover { opacity: 0.6; }

.tc-facet__count { font-size: var(--fs-micro); opacity: 0.4; margin-left: var(--space-2); }

.tc-facet__color-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

.tc-facet__swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
  background-size: cover;
}

.tc-facet__swatch.is-active {
  border: 2px solid var(--black);
  box-shadow: inset 0 0 0 1px var(--white);
}

.tc-facet__slider { padding: var(--space-2) 0 var(--space-4); }
.tc-facet__slider-values { font-family: var(--font-body); font-size: var(--fs-micro); margin-top: var(--space-2); text-align: center; }

.tc-facet__dropdown-toggle {
  background: transparent;
  border: 1px solid var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  color: var(--black);
}

:root {
  --bs-primary: #000000;
  --bs-primary-rgb: 0, 0, 0;
  --bs-link-color: #000000;
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color: #000000;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-focus-ring-color: rgba(0, 0, 0, 0.15);
}

a, a:hover, a:visited, a:active,
.text-primary {
  color: var(--black) !important;
}

a:focus,
input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--black) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--black);
}

.badge.bg-primary,
.bg-primary {
  background-color: var(--black) !important;
}

#footer {
  padding-top: var(--space-6);
  margin-top: var(--space-7);
}

.footer-container { font-size: var(--fs-body); }

body.tc-hide-prices .tc-product__price {
  display: none;
}

/* --------------------------------
   ACCOUNT — accordion "categoria/sottocategorie", niente icone, niente righe
   -------------------------------- */
.tc-account {
  padding-top: var(--space-4);
  max-width: 480px;
}

.tc-account__list { list-style: none; }

.tc-account__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  cursor: pointer;
}

.tc-account__link {
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--black);
}

.tc-account__toggle {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.tc-account__item.is-expanded .tc-account__toggle {
  transform: rotate(45deg);
}

.tc-account__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.tc-account__item.is-expanded .tc-account__body {
  max-height: 800px;
  padding-bottom: var(--space-4);
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.tc-account__sublist {
  list-style: none;
  padding-left: var(--space-2);
}

.tc-account__sublink {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--black);
  text-decoration: none;
  padding: var(--space-2) 0;
  text-transform: lowercase;
  transition: opacity 0.2s ease;
}

.tc-account__sublink:hover { opacity: 0.5; }

.tc-account__signout {
  display: inline-block;
  margin-top: var(--space-6);
  font-family: var(--font-title);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--black);
  transition: opacity 0.3s ease;
}

.tc-account__signout:hover { opacity: 0.6; }

.breadcrumb__wrapper {
  display: none;
}

/* --------------------------------
   EMPTY STATE (collezione vuota / pagina non trovata)
   -------------------------------- */
.tc-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.tc-empty-state__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
}

.tc-empty-state__text {
  margin-bottom: var(--space-6);
}

.tc-empty-state__text .h3,
.tc-empty-state__text h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fs-h1);
  margin-bottom: var(--space-2);
}

.tc-empty-state__text p {
  font-size: var(--fs-body);
  opacity: 0.7;
  line-height: 1.5;
}

.tc-empty-state__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* --------------------------------
   BOTTONI — pill grigio chiaro, testo nero uppercase bold,
   il liquido e sulla SCRITTA (come il logo), non sullo sfondo
   -------------------------------- */
.btn.btn-primary {
  --bs-btn-color: #000;
  --bs-btn-bg: #d9d9d9;
  --bs-btn-border-color: #d9d9d9;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #c9c9c9;
  --bs-btn-hover-border-color: #c9c9c9;
  --bs-btn-active-bg: #bcbcbc;
  --bs-btn-active-border-color: #bcbcbc;
  --bs-btn-disabled-bg: #d9d9d9;
  --bs-btn-disabled-border-color: #d9d9d9;
  --bs-btn-border-radius: 999px;

  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.75rem;
  background-color: var(--bs-btn-bg);
  transition: background-color 0.2s ease;
}

.btn.btn-primary:hover {
  background-color: var(--bs-btn-hover-bg);
}

/* Colore forzato qui, cosi il testo resta sempre nero indipendentemente
   dal contesto/sezione in cui il bottone si trova */
.btn.btn-primary .tc-btn-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #000 !important;
  font-family: var(--font-logo) !important;
  letter-spacing: 0;
}


/* ================================
   PAGINA PRODOTTO — HERO full-bleed con reveal allo scroll
   ================================
   La pagina prodotto e' esclusa dal padding-top standard di #wrapper
   (vedi regola body:not(.page-index):not(.page-product) sopra), cosi'
   l'hero puo' andare davvero sotto l'header trasparente.
   Il layer immagine (sfondo sfocato DADADA + foto nitida piccola) e'
   dentro catalog/_partials/product-cover-thumbnails.tpl, quindi viene
   rigenerato correttamente dall'AJAX nativo di PrestaShop ad ogni
   cambio variante (core.js -> selectors.product.imageContainer).

   Scroll: .product__hero-row e' "sticky" dentro un wrapper piu alto
   (.product__hero-scroll-range = 100vh hero + --tc-hero-scroll-range di corsa).
   base.js calcola il progresso dello scroll e imposta le custom properties
   --tc-hero-blur / --tc-hero-tint / --tc-hero-fg-opacity / --tc-hero-fg-shift,
   che blur+tint+foto nitida+info leggono per sparire tutti insieme.
   ================================ */
@media (min-width: 992px) {
  .page-product .product__hero-scroll-range {
    position: relative;
    height: calc(100vh + var(--tc-hero-scroll-range));
  }

  .page-product .product__hero-row {
    position: sticky;
    top: 0;
    width: calc(100% + (2 * var(--spacing)));
    margin-left: calc(-1 * var(--spacing));
    margin-right: calc(-1 * var(--spacing));
    height: 100vh;
    overflow: hidden;
  }

  .page-product .product__images.js-images-container {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .page-product .product__hero-photo {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .page-product .product__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #dadada;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .page-product .product__hero-bg-image {
    width: 40vw;
    height: auto;
    max-width: 40vw;
    object-fit: contain;
    display: block;
  }

  /* Blur + tint: partono dal valore massimo, spariscono con lo scroll */
  .page-product .product__hero-blur {
    position: absolute;
    inset: 0;
    z-index: 1;
    backdrop-filter: blur(var(--tc-hero-blur, var(--tc-hero-blur-max)));
    -webkit-backdrop-filter: blur(var(--tc-hero-blur, var(--tc-hero-blur-max)));
    background: rgba(218, 218, 218, var(--tc-hero-tint, var(--tc-hero-tint-max)));
    pointer-events: none;
    will-change: backdrop-filter, background-color;
  }

  /* Foto nitida: fade + leggero spostamento verso l'alto con lo scroll */
  .page-product .product__hero-fg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: var(--space-8);
    pointer-events: none;
    opacity: var(--tc-hero-fg-opacity, 1);
    transform: translateY(var(--tc-hero-fg-shift, 0px));
    will-change: opacity, transform;
  }

  .page-product .product__hero-fg-image {
    pointer-events: auto;
    width: 40%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    background: #efefef70;
  }

  .page-product .product__hero-fg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Info: stesso fade + spostamento, in sincrono con la foto nitida */
  .page-product .product__hero-info-wrapper {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--spacing);
    pointer-events: none;
    opacity: var(--tc-hero-fg-opacity, 1);
    transform: translateY(var(--tc-hero-fg-shift, 0px));
    will-change: opacity, transform;
  }

  .page-product .product__hero-fg-info {
    pointer-events: auto;
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .page-product .product__hero-fg-info::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .page-product .product__hero-scroll-range {
    height: auto;
  }

  .page-product .product__hero-row {
    position: static;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    padding: var(--space-4);
    overflow: visible;
  }

  .page-product .product__images.js-images-container {
    position: relative;
    inset: auto;
  }

  .page-product .product__hero-photo {
    height: 60vh;
  }

  .page-product .product__hero-fg-wrapper,
  .page-product .product__hero-info-wrapper {
    position: static;
    display: block;
    padding-left: 0;
    padding-right: 0;
    opacity: 1 !important;
    transform: none !important;
  }

  .page-product .product__hero-fg-info {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

.alert-dismissible.alert-info {
  display: none !important;
}