/* Thin overrides on top of mirrored retail CSS — brand/fonts/path fixes only. */

@font-face {
  font-family: "Mundial Demibold";
  src: url("/assets/wye_fonts/MundialDemibold.woff2") format("woff2"),
       url("/assets/wye_fonts/MundialDemibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mundial Light";
  src: url("/assets/wye_fonts/MundialLight.woff2") format("woff2"),
       url("/assets/wye_fonts/MundialLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Wordmark logo (no external brand asset) */
.retail-logo-img,
.footer-logo img,
.pd-wordmark {
  height: 36px;
  width: auto;
  display: block;
}
.pd-wordmark {
  font-family: "Mundial Demibold", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #111;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.footer-logo .pd-wordmark {
  color: #111;
  font-size: 1.35rem;
}

/* Category slider without slick runtime */
.pd-cat-slider {
  position: relative;
}
.pd-cat-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.15rem 1rem;
  scrollbar-width: thin;
}
.pd-cat-track .pd-cat-slide {
  flex: 0 0 calc(14.285% - 0.85rem);
  min-width: 140px;
  scroll-snap-align: start;
}
@media (max-width: 1199px) {
  .pd-cat-track .pd-cat-slide { flex-basis: calc(30% - 0.75rem); }
}
@media (max-width: 767px) {
  .pd-cat-track .pd-cat-slide { flex-basis: calc(45% - 0.5rem); }
}
.pd-cat-slider .slick-arrow {
  z-index: 2;
}
.mg-collection-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 12% 10% 18%;
  position: relative;
  z-index: 1;
}

/* Hero crossfade without Next/slick runtime */
.retail-hero-slider.mg-hero-crossfade {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 56vw, 620px);
  background: #0c0e11;
}
.retail-hero-slider .mg-hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.retail-hero-slider .mg-hero-layer.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.retail-hero-slider .hero-bg {
  position: absolute;
  inset: 0;
}
.retail-hero-slider .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.retail-hero-slider .mg-hero-dots {
  z-index: 3;
}

/* Product images without next/image fill */
.mg-product-card .product-image-wrapper img.mg-card-main-img,
.mg-product-card .product-image-wrapper img.mg-card-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}
.retail-card-wishlist-btn.active svg,
.retail-card-wishlist-btn.is-active svg {
  color: #dc2626 !important;
}

/* FAQ accordion */
.pd-faq-item {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 12px;
}
.pd-faq-item > button {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Mundial Demibold", sans-serif;
  color: #111;
}
.pd-faq-item > button .pd-faq-icon {
  font-size: 20px;
  margin-left: 12px;
  font-weight: 400;
}
.pd-faq-item .pd-faq-panel {
  display: none;
  padding: 0 0 16px;
  color: #555;
  font-family: "Mundial Light", serif;
  line-height: 1.55;
}
.pd-faq-item.open .pd-faq-panel { display: block; }

/* Utility pages (cart / checkout / legal) — keep functional within retail chrome */
.pd-page {
  padding: 2.5rem 0 4rem;
}
.pd-page-hero h1 {
  font-family: "Mundial Demibold", sans-serif;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
  margin: 0 0 0.75rem;
}
.pd-page-hero p { color: #757575; margin: 0 0 1.5rem; }
.pd-prose {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  max-width: 860px;
}
.pd-prose h2 {
  font-family: "Mundial Demibold", sans-serif;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.6rem;
}
.pd-prose .form-grid {
  display: grid;
  gap: 0.85rem;
  max-width: 480px;
}
.pd-prose label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.pd-prose input,
.pd-prose textarea {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #12151a;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: "Mundial Demibold", sans-serif;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
}
.pd-btn-ghost {
  background: transparent;
  color: #111 !important;
  border: 1px solid #ddd;
}
.pd-cart-layout,
.pd-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .pd-cart-layout,
  .pd-checkout-layout { grid-template-columns: 1fr; }
}
.pd-summary {
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  height: fit-content;
}
.pd-banner-fail {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.pd-processing {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.pd-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: #111;
  margin: 0 auto 1rem;
  animation: pdspin 0.8s linear infinite;
}
@keyframes pdspin { to { transform: rotate(360deg); } }

.pd-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0 4rem;
}
@media (max-width: 900px) {
  .pd-pdp { grid-template-columns: 1fr; }
}
.pd-pdp-gallery {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
}
.pd-pdp-gallery img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}
.pd-pdp-info h1 {
  font-family: "Mundial Demibold", sans-serif;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 0;
}
.pd-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.pd-specs th,
.pd-specs td {
  border-bottom: 1px solid #eee;
  text-align: left;
  padding: 0.55rem 0.2rem;
}
.pd-specs th { width: 38%; color: #666; font-weight: 500; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pd-chip {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin: 0.2rem 0.25rem 0 0;
  cursor: pointer;
}
.pd-chip.is-selected { border-color: #111; }

/* Search overlay-ish page results reuse product cards */
#search-results.row { margin-top: 1rem; }

/* Icon badge counts */
.retail-icon-link,
.retail-icon-button,
.header-cart {
  position: relative;
}
.pd-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #12151a;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-family: "Mundial Demibold", sans-serif;
}

/* Mobile header search link */
a.retail-icon-button { color: inherit; }
