@import url('cart-mobile.css');

#category .active-filters,
#category section#products {
  background: #fff;
}

/* SIZE SIDEBAR */
.size-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(11, 11, 9, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  cursor: pointer;
}
.size-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.size-drawer {
  position: fixed;
  top: var(--banner-h);
  right: 0;
  bottom: 0;
  z-index: 999999;
  width: clamp(340px, 38vw, 520px) !important;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition:
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.3s ease;
}
@media (max-width: 900px) {
  .size-drawer {
    width: max(82vw, 300px) !important;
  }
}
.size-drawer.open {
  transform: translateX(0);
}
.size-drawer__head {
  flex-shrink: 0;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.size-drawer__title {
  font: 400 10px/1 var(--fb);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dk);
}
.size-drawer__close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--dk);
  font-size: 26px;
  line-height: 1;
  transition: opacity 0.16s;
}
.size-drawer__close:hover {
  opacity: 0.4;
}
.size-drawer__body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0;
  position: relative;
}
/* Premium size Drawer Loading Overlay */
.size-drawer.loading .size-drawer__body {
  pointer-events: none;
}
.size-drawer.loading .size-drawer__body > * {
  opacity: 0.44;
  filter: blur(1.5px);
  transition:
    opacity 0.25s ease,
    filter 0.25s ease;
}
.size-drawer.loading .size-drawer__body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(26, 25, 22, 0.15);
  border-top-color: var(--dk);
  border-radius: 50%;
  animation: pmSpinner 0.6s linear infinite;
  z-index: 10;
}
@keyframes pmSpinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.size-drawer__footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* SIZE WIDGET */
.size-widget {
  margin: 0 auto;
  background: var(--dk);
  padding: clamp(79px, 8vw, 110px) var(--g);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
}
.size-widget__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.size-widget__text {
  font-family: var(--fi);
  font-size: clamp(14px, 1.3vw, 16px);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.32);
  line-height: 2.1;
  letter-spacing: 0.01em;
}
.size-widget__text em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.58);
}
.size-widget__sep {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 22px auto;
}

/* SIZE WIDGET DEV */

.sz-wrap {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.sz-hd {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  position: relative;
}
.sz-title {
  font-family: var(--fd);
  font-size: 40px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 7px;
}
.sz-tagline {
  font: 300 italic 12px/1 var(--fi);
  color: rgba(255, 255, 255, 0.42);
}
.sz-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}
@media (min-width: 770px) {
  .h-sz-toggle-wrap {
    position: absolute;
    top: 4px;
    right: 0;
  }
}
@media (max-width: 769px) {
  .size-widget__text {
    font-size: 15px !important;
  }

  .sz-tagline {
    margin-bottom: 10px;
  }

  .sz-toggle-wrap {
    justify-content: center;
  }
}

.pp-sz-toggle-wrap {
  margin-bottom: 12px;
  justify-content: end;
}

.sz-lang-lbl {
  font: 400 8px/1 var(--fb);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.22s;
}

.pp-sz-lang-lbl {
  opacity: 0.25;
  color: #000 !important;
}

.sz-lang-lbl.active {
  color: rgba(255, 255, 255, 0.85);
}

.pp-sz-lang-lbl.active {
  opacity: 0.55;
}

.sz-toggle {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.pp-sz-toggle {
  opacity: 0.35;
  background: #000;
  border: 1px solid var(--border);
}
.sz-toggle.on {
  background: rgba(255, 255, 255, 0.85);
}
.sz-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.pp-sz-toggle::after {
  top: 2px;
}
.sz-toggle.on::after {
  transform: translateX(18px);
  background: var(--dk);
}
.sz-fields {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
}
.sz-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sz-step {
  font: 400 9px/1 var(--fb);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.15);
}
.sz-inp-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.sz-inp-imperial {
  display: none;
  align-items: center;
  gap: 0;
}
.sz-inp-imperial.show {
  display: flex;
}
.sz-inp {
  width: 58px;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  font-family: var(--fd);
  font-size: 30px;
  letter-spacing: 0.03em;
  text-align: right;
  color: #fff;
  background: transparent;
  outline: none;
  padding: 4px 0 6px;
  transition: border-color 0.16s;
}
.sz-inp:focus {
  border-bottom-color: #fff;
}
.sz-inp-unit {
  font-family: var(--fd);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 6px;
  line-height: 1;
}
#sz-ft {
  width: 20px;
  font-size: 26px;
  text-align: right;
}
#sz-in {
  width: 30px;
  font-size: 26px;
  text-align: right;
}
.sz-inp-imperial .sz-inp-unit {
  font-size: 17px;
  padding-bottom: 4px;
}
#sz-ft::-webkit-inner-spin-button,
#sz-ft::-webkit-outer-spin-button,
#sz-in::-webkit-inner-spin-button,
#sz-in::-webkit-outer-spin-button {
  display: none;
}
#sz-ft,
#sz-in {
  -moz-appearance: textfield;
  appearance: textfield;
}
.sz-ht-step {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.sz-ht-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 18px;
  height: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  transition:
    color 0.12s,
    background 0.12s;
}
.sz-ht-btn + .sz-ht-btn {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.sz-ht-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.sz-ht-btn svg {
  width: 7px;
  height: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sz-coupe-lbl {
  font: 400 8px/1 var(--fb);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 9px;
}
.sz-fits {
  display: flex;
  max-width: 300px;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sz-fit {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font: 300 8.5px/1 var(--fb);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.14s,
    color 0.14s;
  user-select: none;
}
.sz-fit:last-child {
  border-right: none;
}
.sz-fit.on {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}
.sz-fit:hover:not(.on) {
  background: rgba(255, 255, 255, 0.06);
}
.sz-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sz-cta::before,
.sz-cta::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.sz-btn {
  padding: 11px 26px;
  background: #fff;
  color: var(--dk);
  border: 1px solid #fff;
  font: 400 9px/1 var(--fb);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.18s,
    color 0.18s;
}
.sz-btn:hover {
  background: transparent;
  color: #fff;
}
.sz-result {
  display: none;
  padding-top: 24px;
}
.sz-result.show {
  display: block;
  animation: szIn 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes szIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sz-res-num {
  font-family: var(--fd);
  font-size: clamp(64px, 10vw, 88px);
  color: #fff;
  line-height: 0.85;
  margin-bottom: 6px;
  display: inline-block;
  animation: szStamp 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes szStamp {
  0% {
    opacity: 0;
    transform: scale(1.6);
  }
  60% {
    transform: scale(0.93);
  }
  80% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.sz-res-cat {
  font: 300 italic 14px/1 var(--fi);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}
.sz-res-detail {
  font: 300 9px/1 var(--fb);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 14px;
}
.sz-res-link {
  font: 300 9px/1 var(--fb);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition:
    border-color 0.16s,
    color 0.16s;
  text-decoration: none;
}
.sz-res-link:hover {
  color: #fff;
  border-color: #fff;
}

/* SIZE WIDGET HEADER ICON */
.nav__size-btn {
  position: relative;
}
.nav__size-hd-badge.filled {
  display: block;
}
.nav__size-hd-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  font-family: var(--fd);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  display: none;
}
@media (max-width: 768px) {
  .nav__size-hd-badge {
    top: 6px;
    right: 6px;
  }
}
:not(.page-index) .nav__size-hd-badge {
  color: inherit;
}
#mollie-applepay-direct-button {
  padding: 0;
}
@supports (-webkit-appearance: -apple-pay-button) {
  .apple-pay-button {
    -webkit-appearance: unset;
  }
}

/* =============================================
   ZOOM INLINE FULL COVER
   Identique au comportement jQuery Zoom
   ============================================= */

.gallery__photo {
  position: relative;
  overflow: hidden; /* ← coupe l'image HD qui dépasse */
  cursor: crosshair;
}

.gallery__photo img {
  display: block;
  width: 100%;
}

/* Image HD zoomée — identique à .zoomImg de jQuery Zoom */
.pm-zoom-cover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  max-width: none; /* ← crucial : pas de contrainte de taille */
  max-height: none;
  display: block;
  border: none;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

@media (max-width: 767px) {
  .gallery__photo {
    cursor: default;
  }
  .pm-zoom-cover {
    display: none !important;
  }
}
