/* ====================================================
   VERMIN CLOTHING — Public Theme
   Based on: ext/inspo/styles.css
   ==================================================== */

/* ----- Design Tokens ----- */
:root {
  --bg: #000000;
  --surface: #262626;
  --surface-soft: rgba(38, 38, 38, 0.30);
  --text: hsl(0 0% 98%);
  --muted: hsl(0 0% 62%);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --max-w: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0px;
  --header-height: 6.5rem;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

ul,
ol {
  list-style: none;
}

/* ----- SVG Icon Sprite (ocultar del flujo del documento) ----- */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* ----- Accessibility ----- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: .6rem 1rem;
  font-weight: 700;
  transition: top .2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ----- Loading Screen ----- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s var(--ease), transform .8s var(--ease);
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
}

.loading-screen__inner {
  text-align: center;
}

.loading-screen__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.08em;
  margin-bottom: 1rem;
}

.loading-screen__bar {
  width: min(12rem, 70vw);
  height: .35rem;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.loading-screen__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #fff 35%, transparent 100%);
  animation: loading-slide 1.5s linear infinite;
}

.loading-screen__copy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .35em;
}

@keyframes loading-slide {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

/* ----- Noise Overlay ----- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

/* ----- Scroll Progress ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: .25rem;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #fff;
}

/* ----- Custom Cursor ----- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}

.cursor-ring.is-visible {
  opacity: 1;
}

/* ----- Mobile Drawer ----- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: minmax(0, 22rem) 1fr;
  visibility: hidden;
}

.mobile-drawer.is-open {
  visibility: visible;
}

.mobile-drawer__backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.mobile-drawer__panel {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: rgba(0, 0, 0, .96);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
}

.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__close {
  margin-left: auto;
  display: block;
  color: var(--text);
  padding: .5rem;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
}

.mobile-drawer__nav a {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  transition: opacity .25s;
}

.mobile-drawer__nav a:hover {
  opacity: .6;
}

/* ----- Site Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  padding: 1.4rem 1.5rem;
  background: transparent;
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-scrolled {
  padding-top: .85rem;
  padding-bottom: .85rem;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-shell__left,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  transition: opacity .25s;
  text-transform: uppercase;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  opacity: .5;
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.08em;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--text);
}

.icon-button svg,
.section-link svg,
.button svg,
.support-cta__button svg,
.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-actions__optional {
  display: none;
}

.cart-button {
  position: relative;
}

.cart-button span {
  position: absolute;
  top: .1rem;
  right: .05rem;
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: .62rem;
  font-weight: 700;
}

/* User menu in nav */
.nav-user-menu {
  position: relative;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 180px;
  display: none;
  z-index: 200;
}

.nav-user-dropdown.is-open {
  display: block;
}

.nav-user-dropdown a {
  display: block;
  padding: .75rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}

.nav-user-dropdown a:hover {
  background: rgba(255, 255, 255, .05);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: calc(100vh + var(--header-height) + 2rem);
  min-height: calc(100svh + var(--header-height) + 2rem);
  margin-top: calc((var(--header-height) + 2rem) * -1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  transition: transform .18s linear, opacity .18s linear;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .55;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, #000 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: calc(var(--header-height) + 4rem) 1.5rem 4rem;
  text-align: center;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: .82;
  letter-spacing: -.08em;
  word-break: break-word;
}

.hero p {
  max-width: 40rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ----- Buttons ----- */
.button,
.support-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 3.9rem;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  text-transform: uppercase;
}

.button:hover,
.support-cta__button:hover {
  transform: translateY(-2px);
}

.button--light,
.support-cta__button {
  background: #fff;
  color: #000;
}

.button--light:hover,
.support-cta__button:hover {
  background: #e0e0e0;
}

.button--ghost {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .02);
  color: #fff !important;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.button--outline {
  border-color: #fff;
  color: #fff;
}

.button--outline:hover {
  background: #fff;
  color: #000;
}

/* ----- Marquee ----- */
.marquee {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  overflow: hidden;
  background: #fff;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: .8rem 0;
  animation: marquee 22s linear infinite;
}

.marquee__track span {
  color: #000;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .28em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ----- Sections ----- */
.section {
  padding: 10rem 1.5rem;
}

.section--wide,
.story-block__wrap,
.site-footer__grid,
.site-footer__bottom {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 639px) {
    .section--wide, 
    .container,
    .pd-section,
    .hero__content,
    .pd-breadcrumb {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .28em;
}

.section-heading h2,
.story-block h2,
.support-cta h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: .96;
  letter-spacing: -.08em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: opacity .25s;
}

.section-link:hover {
  opacity: .6;
}

/* ----- Product Grid ----- */
.product-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product-card,
.category-card {
  position: relative;
  overflow: hidden;
}

.product-card {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card__media,
.category-card__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}

.product-card__media img,
.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s ease;
}

.product-card:hover .product-card__media img,
.category-card:hover .category-card__media img {
  transform: scale(1.06);
}

.category-card__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.4s var(--ease);
}

@media (min-width: 640px) {
  .category-card__content {
    padding: 2rem;
  }
}

.category-card:hover .category-card__content {
  background: rgba(0, 0, 0, 0.1);
}

.category-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}

.category-card:hover .category-card__title {
  transform: translateY(-5px);
}

.product-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .55rem .85rem;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
}

@media (max-width: 639px) {
  .product-card__tag {
    padding: .35rem .55rem;
    font-size: .62rem;
    letter-spacing: .1em;
    top: .65rem;
    left: .65rem;
  }
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  transition: opacity .3s ease;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__quick-add {
  padding: 1rem 1.4rem;
  background: #fff;
  color: #000;
  font-weight: 800;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease);
  letter-spacing: .08em;
}

.product-card__quick-add:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  border: 1px solid #fff;
}

.product-card__body {
  padding-top: 1rem;
}

.product-card__category {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.product-card__name {
  font-family: "Space Grotesk", sans-serif;
  margin: .4rem 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  transition: color .25s;
}

@media (min-width: 640px) {
  .product-card__name {
    font-size: 1.15rem;
  }
}

.product-card:hover .product-card__name {
  color: rgba(255, 255, 255, .7);
}

.product-card__price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

@media (min-width: 640px) {
  .product-card__price {
    font-size: 1.25rem;
  }
}

/* ----- Story Block ----- */
.story-block {
  padding: 6rem 1.5rem;
  background: var(--surface-soft);
  overflow: hidden;
}

.story-block__wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.story-block__media {
  position: relative;
}

.story-block__image-frame {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface);
}

.story-block__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-block__frame-border {
  position: absolute;
  inset: 0;
  border: 1.25rem solid rgba(0, 0, 0, .2);
}

.story-block__stamp {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  color: #000;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 700;
}

.story-block__copy p,
.support-cta p,
.site-footer__brand p {
  color: var(--muted);
  line-height: 1.8;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
}

/* ----- Category Grid ----- */
.category-grid {
  /* Inherits 2 columns from base, updated in media queries */
}

.category-card {
  aspect-ratio: 3/4;
  cursor: pointer;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  transition: background .35s ease;
}

.category-card:hover::after {
  background: rgba(0, 0, 0, .18);
}

.category-card__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.category-card__title {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .5s var(--ease);
}

@media (min-width: 640px) {
  .category-card__title {
    font-size: 1.8rem;
    letter-spacing: .12em;
  }
}

.category-card:hover .category-card__title {
  transform: scale(1.07);
}

/* ----- Support CTA ----- */
.support-cta {
  position: relative;
  margin-top: 4rem;
  padding: 12rem 1.5rem;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-cta * {
  color: #000 !important;
}

.support-cta__content {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin: 0 auto;
  text-align: center;
}

.support-cta__tag {
  display: inline-block;
  padding: .55rem .9rem;
  background: #000;
  color: #fff !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .3em;
}

.support-cta p {
  max-width: 42rem;
  margin: 1.7rem auto 0;
  color: rgba(0, 0, 0, .7) !important;
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
}

.support-cta__button {
  margin-top: 2.5rem;
  padding: 1.4rem 2rem;
  font-size: clamp(1rem, 2.6vw, 1.55rem);
  box-shadow: var(--shadow);
}

.support-cta__button:hover {
  background: #000 !important;
  color: #fff !important;
}

.support-cta__backdrop {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, .05) !important;
  font-size: clamp(8rem, 34vw, 28rem);
  font-weight: 800;
  letter-spacing: -.08em;
  pointer-events: none;
  font-family: "Space Grotesk", sans-serif;
}

/* ----- Site Footer ----- */
.site-footer {
  padding: 10rem 1.5rem 5rem;
  background: var(--bg);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.site-footer h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 1rem;
  font-size: 2.2rem;
  letter-spacing: -.08em;
}

.site-footer h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 1.4rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .25em;
}

.site-footer li+li {
  margin-top: 1rem;
}

.site-footer li a,
.site-footer__brand p {
  color: var(--muted);
  font-size: .9rem;
  transition: color .25s;
}

.site-footer li a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--muted);
  transition: color .25s;
}

.social-links a:hover {
  color: var(--text);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ----- Reveal Animations ----- */
.reveal {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal--left {
  transform: translateX(-3rem);
}

.reveal--right {
  transform: translateX(3rem);
}

.reveal--fade {
  transform: scale(.96);
}

.reveal--up {
  transform: translateY(2rem);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----- Page Hero (internal pages) ----- */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.08em;
}

.page-hero p {
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Flash messages ----- */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.alert--success {
  background: rgba(68, 221, 170, .1);
  border: 1px solid rgba(68, 221, 170, .4);
  color: #44ddaa;
}

.alert--error {
  background: rgba(255, 68, 68, .1);
  border: 1px solid rgba(255, 68, 68, .4);
  color: #ff4444;
}

/* ----- Forms ----- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.form-field label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .85rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  width: 100%;
  appearance: none;
  transition: border-color .25s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .4);
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: .4rem;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* ----- Responsive ----- */
@media (min-width: 640px) {

  .product-grid,
  .category-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }

  .nav-actions__optional {
    display: inline-grid;
  }
}

@media (min-width: 900px) {
  .nav-mobile-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-block__wrap {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 899px) {
  .brand {
    position: static;
    transform: none;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .mobile-drawer {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-drawer__panel {
    width: min(100vw, 22rem);
  }

  .hero__actions,
  .button,
  .support-cta__button {
    width: 100%;
  }

  .story-block__stamp {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .cursor-ring,
  .noise-overlay {
    display: none;
  }
}

/* ====================================================
   DETALLE DE PRODUCTO
   ==================================================== */

/* ----- Breadcrumb ----- */
.pd-breadcrumb {
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 0;
}

.pd-breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-breadcrumb__inner a {
  color: var(--muted);
  transition: color .25s;
}

.pd-breadcrumb__inner a:hover {
  color: var(--text);
}

.pd-breadcrumb__inner span:last-child {
  color: var(--text);
}

/* ----- Layout ----- */
.pd-section {
  padding: 2.5rem 1.5rem 5rem;
}

.pd-layout {
  display: grid;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

/* ----- Galería ----- */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

@media (min-width: 900px) {
  .pd-gallery {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* Imagen principal */
.pd-gallery__main {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}

.pd-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
  cursor: zoom-in;
}

.pd-gallery__main:hover .pd-gallery__main-img {
  transform: scale(1.04);
}

/* Placeholder sin imagen */
.pd-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .3em;
}

/* Badge estado */
.pd-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .5rem .9rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.pd-badge--out {
  background: #333;
  color: #fff;
}

.pd-badge--import {
  background: #fff;
  color: #000;
}

/* Miniaturas */
.pd-gallery__thumbs {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

.pd-gallery__thumb {
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color .25s;
  cursor: pointer;
  background: var(--surface);
  padding: 0;
}

.pd-gallery__thumb:hover {
  border-color: rgba(255,255,255,.4);
}

.pd-gallery__thumb.is-active {
  border-color: #fff;
}

.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .4s var(--ease);
}

.pd-gallery__thumb:hover img {
  transform: scale(1.08);
}

/* ----- Info producto ----- */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pd-info__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.pd-info__cat,
.pd-info__brand {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.pd-info__sep {
  color: var(--muted);
}

.pd-info__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 700;
}

.pd-info__price {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

.pd-info__desc {
  color: var(--muted);
  line-height: 1.85;
  font-size: .95rem;
  border-left: 2px solid var(--line);
  padding-left: 1.25rem;
}

/* Stock badge */
.pd-stock {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pd-stock__dot {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-stock--in   .pd-stock__dot { background: #44ddaa; box-shadow: 0 0 8px #44ddaa88; }
.pd-stock--out  .pd-stock__dot { background: #ff4444; }
.pd-stock--import .pd-stock__dot { background: #ffcc44; }

.pd-stock--in   { color: #44ddaa; }
.pd-stock--out  { color: #ff4444; }
.pd-stock--import { color: #ffcc44; }

/* Regla adelanto */
.pd-info__payment-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}

.pd-info__payment-rule strong {
  color: var(--text);
}

/* ----- Acciones ----- */
.pd-info__actions {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

/* Selector de cantidad */
.pd-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  width: fit-content;
}

.pd-qty__btn {
  width: 3rem;
  height: 3.4rem;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s;
  display: grid;
  place-items: center;
}

.pd-qty__btn:hover {
  background: var(--surface);
}

.pd-qty__input {
  width: 3.5rem;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  -moz-appearance: textfield;
}

.pd-qty__input::-webkit-inner-spin-button,
.pd-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

.pd-info__add-btn {
  width: 100%;
  justify-content: center;
}

.pd-info__wa-btn {
  width: 100%;
  justify-content: center;
}

/* ----- Galería completa (grid) ----- */
.pd-gallery-full {
  border-top: 1px solid var(--line);
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}

@media (min-width: 640px) {
  .pd-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .pd-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pd-gallery-grid__item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  padding: 0;
  border: none;
  display: block;
}

.pd-gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .4s ease;
}

.pd-gallery-grid__item:hover img {
  transform: scale(1.08);
}

/* ----- Lightbox ----- */

/* Garantiza que [hidden] funcione aunque el CSS defina display:grid/flex */
.pd-lightbox[hidden],
.pd-lightbox__overlay[hidden] {
  display: none !important;
}

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.pd-lightbox__overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, .92);
}

.pd-lightbox__img-wrap {
  position: relative;
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(90vw, 900px);
  max-height: 90vh;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.pd-lightbox__counter {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .3em;
}

.pd-lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 210;
  width: 3rem;
  height: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}

.pd-lightbox__close:hover {
  background: #fff;
  color: #000;
}

.pd-lightbox__close svg { width: 1.25rem; height: 1.25rem; }

.pd-lightbox__prev,
.pd-lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 3rem;
  height: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.pd-lightbox__prev:hover,
.pd-lightbox__next:hover {
  background: #fff;
  color: #000;
}

.pd-lightbox__prev { left: 1rem; }
.pd-lightbox__next { right: 1rem; }

@media (max-width: 639px) {
  .pd-lightbox__prev { left: .5rem; }
  .pd-lightbox__next { right: .5rem; }
  .pd-lightbox__close { top: 1rem; right: 1rem; }
}

/* ----- Toasts ----- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  background: #fff;
  color: #000 !important;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: toast-in 0.5s var(--ease) forwards;
  position: relative;
  overflow: hidden;
}

.toast * { color: #000 !important; }

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #000;
  width: 100%;
  animation: toast-progress 3.5s linear forwards;
}

.toast--success::before { background: #44ddaa; }

@keyframes toast-in {
  from { transform: translateX(100%) skewX(-5deg); opacity: 0; }
  to { transform: translateX(0) skewX(0); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  .toast {
    min-width: auto;
  }
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.is-updated {
  transform: scale(1.4);
  background: #44ddaa;
}

