/* =====================================================
   BARBIE SHOP - MOCKUP CSS
   Basado en el template Sleek de Shopify
   Optimizado para futura integración Liquid
   ===================================================== */

/* ─── CSS Variables (root) ─── */
:root {
  /* Colores */
  --color-background: 255,255,255;
  --color-secondary-background: 247,247,247;
  --color-primary: 214,58,47;
  --color-text-heading: 0,0,0;
  --color-foreground: 0,0,0;
  --color-border: 230,230,230;
  --color-button: 0,0,0;
  --color-button-text: 255,255,255;
  --color-secondary-button: 233,233,233;
  --color-secondary-button-text: 0,0,0;
  --color-button-hover-background: 0,0,0;
  --color-button-hover-text: 255,255,255;
  --color-product-price-sale: 214,58,47;
  --color-foreground-lighten-60: #666666;
  --color-foreground-lighten-19: #cfcfcf;

  /* Animaciones exactas del template Sleek */
  --animation-nav: .5s cubic-bezier(.6, 0, .4, 1);
  --animation-default: .5s cubic-bezier(.3, 1, .3, 1);
  --animation-fast: .3s cubic-bezier(.7, 0, .3, 1);
  --transform-origin-start: left;
  --transform-origin-end: right;
  --duration-default: 200ms;
  --duration-image: 1000ms;

  /* Tipografía */
  --font-body-family: "DM Sans", sans-serif;
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-body-weight-bolder: 500;
  --font-body-weight-bold: 700;
  --font-body-size: 1.6rem;
  --font-body-line-height: 1.625;

  --font-heading-family: "DM Sans", sans-serif;
  --font-heading-style: normal;
  --font-heading-weight: 500;
  --font-heading-letter-spacing: -0.02em;
  --font-heading-transform: none;
  --font-heading-scale: 1.0;
  --font-heading-mobile-scale: 0.8;

  --font-button-family: "DM Sans", sans-serif;
  --font-button-weight: 500;
  --buttons-letter-spacing: 0.0em;
  --buttons-transform: capitalize;
  --buttons-height: 4.8rem;
  --buttons-border-width: 1px;

  /* Tamaños tipográficos */
  --font-h1-size: clamp(3.2rem, calc(1.559454vw + 2.003899rem), 4.0rem);
  --font-h2-size: clamp(2.56rem, calc(1.247563vw + 1.603119rem), 3.2rem);
  --font-h3-size: clamp(2.24rem, calc(1.091618vw + 1.402729rem), 2.8rem);
  --font-h4-size: clamp(1.76rem, calc(0.8577vw + 1.102144rem), 2.2rem);
  --font-hd1-size: clamp(4.8rem, calc(2.339181vw + 3.005848rem), 6.0rem);
  --font-hd2-size: clamp(3.84rem, calc(1.871345vw + 2.404678rem), 4.8rem);
  --font-hd3-size: clamp(2.88rem, calc(1.403509vw + 1.803509rem), 3.6rem);
  --font-h5-size: calc(var(--font-heading-scale) * 1.8rem);
  --font-h6-size: calc(var(--font-heading-scale) * 1.6rem);

  /* Border radius */
  --buttons-radius: 2.4rem;
  --inputs-radius: 2.4rem;
  --blocks-radius: 2.0rem;
  --blocks-radius-mobile: 1.6rem;
  --pcard-radius: 2.0rem;
  --pcard-inner-radius: 1.0rem;
  --badges-radius: 0.5rem;

  /* Layout */
  --page-width: 1410px;
  --page-width-margin: 0rem;
  --header-padding-bottom: 4rem;
  --header-padding-bottom-mobile: 3.2rem;

  /* Colores de badges */
  --color-badge-sale: #D63A2F;
  --color-badge-sale-text: #FFFFFF;
  --color-badge-new: #559B60;
  --color-badge-new-text: #FFFFFF;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 62.5%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body-family);
  font-weight: var(--font-body-weight);
  font-size: var(--font-body-size);
  line-height: var(--font-body-line-height);
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--font-heading-letter-spacing);
  text-transform: var(--font-heading-transform);
  margin: 0 0 1.5rem;
  color: rgb(var(--color-text-heading));
}

h1 { font-size: var(--font-h1-size); }
h2 { font-size: var(--font-h2-size); }
h3 { font-size: var(--font-h3-size); }
h4 { font-size: var(--font-h4-size); }
h5 { font-size: var(--font-h5-size); }
h6 { font-size: var(--font-h6-size); }

p { margin: 0 0 1.5rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--animation-fast);
}

img { max-width: 100%; height: auto; display: block; }

button {
  font-family: var(--font-button-family);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ─── Container ─── */
.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 2.4rem;
}

@media (min-width: 1280px) {
  .page-width { padding: 0 4rem; }
}

/* ─── Scrollbar styling ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgb(var(--color-secondary-background)); }
::-webkit-scrollbar-thumb { background: var(--color-foreground-lighten-19); border-radius: 3px; }

/* =====================================================
   ANIMATIONS (exactas del template Sleek)
   ===================================================== */

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translate3d(0,30px,0); }
  100% { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes zoom-fade {
  0% { opacity: 0; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes zoom-fade-short {
  0% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes scrolling-left {
  0% { transform: translateZ(0); }
  100% { transform: translate3d(-100%,0,0); }
}

@keyframes scrolling-right {
  0% { transform: translate3d(-100%,0,0); }
  100% { transform: translateZ(0); }
}

@keyframes text-underlined {
  0% { transform: scaleX(1); transform-origin: var(--transform-origin-end); }
  50% { transform: scaleX(0); transform-origin: var(--transform-origin-end); }
  51% { transform-origin: var(--transform-origin-start); }
  100% { transform: scaleX(1); transform-origin: var(--transform-origin-start); }
}

@keyframes move-up-down {
  0%, 100% { transform: translateY(0.8rem); }
  50% { transform: translateY(-0.8rem); }
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgb(var(--color-background));
  border-bottom: 1px solid rgb(var(--color-border));
  transition: background-color var(--animation-default), box-shadow var(--animation-default);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: 3.2rem;
}

.header__nav-link {
  font-family: var(--font-body-family);
  font-weight: var(--font-body-weight-bolder);
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--animation-fast);
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

.header__icons {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__icon-btn {
  position: relative;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--animation-fast);
}

.header__icon-btn:hover {
  background-color: rgb(var(--color-secondary-background));
}

.header__icon-btn svg {
  width: 2.4rem;
  height: 2.4rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.header__cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-badge-sale);
  color: var(--color-badge-sale-text);
  font-size: 1rem;
  font-weight: 700;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.header__mobile-toggle span {
  display: block;
  width: 2.4rem;
  height: 1.8rem;
  position: relative;
}

.header__mobile-toggle span::before,
.header__mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--animation-fast), opacity var(--animation-fast);
}

.header__mobile-toggle span::before { top: 2px; }
.header__mobile-toggle span::after { bottom: 2px; }

@media (min-width: 768px) {
  .header__nav { display: block; }
  .header__mobile-toggle { display: none; }
}

/* ─── Mobile menu overlay ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--animation-default), visibility var(--animation-default);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 32rem;
  height: 100%;
  background-color: rgb(var(--color-background));
  padding: 2.4rem;
  transform: translateX(-100%);
  transition: transform var(--animation-nav);
  overflow-y: auto;
}

.mobile-menu.active .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.mobile-menu__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-menu__nav-link {
  font-size: 2rem;
  font-weight: var(--font-body-weight-bolder);
  padding: 0.8rem 0;
  display: block;
  border-bottom: 1px solid rgb(var(--color-border));
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-family: var(--font-button-family);
  font-weight: var(--font-button-weight);
  font-size: 1.4rem;
  letter-spacing: var(--buttons-letter-spacing);
  text-transform: var(--buttons-transform);
  height: var(--buttons-height);
  padding: 0 3.2rem;
  border-radius: var(--buttons-radius);
  border: var(--buttons-border-width) solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--animation-fast), border-color var(--animation-fast), transform var(--animation-fast);
}

.btn--primary {
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  border-color: rgb(var(--color-button));
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-button-before, #333333);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--animation-default);
  z-index: 0;
}

.btn--primary:hover::before {
  transform: scaleX(1);
}

.btn--primary span,
.btn--primary svg {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background-color: rgb(var(--color-secondary-button));
  color: rgb(var(--color-secondary-button-text));
  border-color: rgb(var(--color-secondary-button-border));
}

.btn--secondary:hover {
  background-color: rgb(var(--color-button-hover-background));
  color: rgb(var(--color-button-hover-text));
  border-color: rgb(var(--color-button-hover-background));
}

.btn--outline {
  background-color: transparent;
  color: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
}

.btn--outline:hover {
  background-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
}

.btn--large {
  height: 5.6rem;
  padding: 0 4rem;
  font-size: 1.5rem;
}

/* =====================================================
   SCROLLING PROMOTION (Marquee)
   ===================================================== */
.scrolling-promotion {
  overflow: hidden;
  white-space: nowrap;
  background-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  padding: 1.2rem 0;
}

.scrolling-promotion__track {
  display: inline-flex;
  animation: scrolling-left 30s linear infinite;
}

.scrolling-promotion__item {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0 3.2rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scrolling-promotion__item::before {
  content: '✦';
  font-size: 1rem;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--blocks-radius-mobile);
  margin: 2.4rem;
}

@media (min-width: 768px) {
  .hero {
    min-height: 70vh;
    border-radius: var(--blocks-radius);
    margin: 4rem auto;
    max-width: calc(var(--page-width) - 8rem);
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom-fade-short 1.5s cubic-bezier(.3,1,.3,1) forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2.4rem;
  max-width: 70rem;
  animation: fade-in-up 1s cubic-bezier(.3,1,.3,1) 0.3s both;
}

.hero__title {
  font-size: var(--font-hd1-size);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #fff;
}

.hero__subtitle {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 3.2rem;
  opacity: 0.95;
}

/* =====================================================
   SECTION HEADING
   ===================================================== */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading__title {
  font-size: var(--font-h2-size);
  margin-bottom: 1.2rem;
}

.section-heading__text {
  font-size: 1.6rem;
  color: var(--color-foreground-lighten-60);
  max-width: 50rem;
  margin: 0 auto;
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    gap: 3.2rem;
  }
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--animation-default), box-shadow var(--animation-default);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--pcard-radius);
  background-color: #fff;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__media img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform var(--duration-image) ease-out;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

/* Image swap on hover */
.product-card__img-primary,
.product-card__img-secondary {
  position: absolute;
  inset: 0;
  transition: opacity var(--animation-default);
}

.product-card__img-secondary {
  opacity: 0;
}

.product-card:hover .product-card__img-primary {
  opacity: 0;
}

.product-card:hover .product-card__img-secondary {
  opacity: 1;
}

/* Badge */
.product-card__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  padding: 0.6rem 1.2rem;
  border-radius: var(--badges-radius);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: fade-in 0.5s ease forwards;
}

.product-card__badge--new {
  background-color: var(--color-badge-new);
  color: var(--color-badge-new-text);
}

.product-card__badge--sale {
  background-color: var(--color-badge-sale);
  color: var(--color-badge-sale-text);
}

/* Quick add button */
.product-card__quick-add {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  z-index: 2;
  transition: opacity var(--animation-default), transform var(--animation-default);
  white-space: nowrap;
}

.product-card:hover .product-card__quick-add {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Product info */
.product-card__info {
  padding: 0 0.4rem;
}

.product-card__title {
  font-family: var(--font-body-family);
  font-weight: var(--font-body-weight-bolder);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: rgb(var(--color-text-heading));
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.product-card__price-compare {
  text-decoration: line-through;
  color: var(--color-foreground-lighten-60);
  font-size: 1.3rem;
}

.product-card__price-sale {
  color: var(--color-product-price-sale);
}

/* =====================================================
   PRODUCT DETAIL PAGE (PDP)
   ===================================================== */
.pdp {
  padding-top: 2.4rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .pdp {
    padding-top: 4rem;
    padding-bottom: 8rem;
  }
}

.pdp__grid {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

@media (min-width: 768px) {
  .pdp__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .pdp__grid {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    gap: 6rem;
  }
}

.pdp-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ─── PDP Gallery ─── */
.pdp-gallery {
  position: sticky;
  top: 9rem;
}

.pdp-gallery__main {
  position: relative;
  border-radius: var(--blocks-radius);
  overflow: hidden;
  background-color: #fff;
  cursor: crosshair;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-gallery__main img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  transition: opacity var(--animation-fast);
}

/* Al hacer hover, ocultamos la imagen original */
.pdp-gallery__main:hover img {
  opacity: 0;
}

/* Zoom lens - ahora cubre TODO el contenedor */
.pdp-gallery__zoom {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 200%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--animation-fast);
  z-index: 2;
  background-position: center center;
}

.pdp-gallery__main:hover .pdp-gallery__zoom {
  opacity: 1;
}

/* Thumbnails */
.pdp-gallery__thumbs {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .pdp-gallery__thumbs {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
}

.pdp-gallery__thumb {
  flex-shrink: 0;
  width: 7rem;
  height: 7rem;
  border-radius: var(--small-blocks-radius, 0.6rem);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--animation-fast), transform var(--animation-fast);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-gallery__thumb:hover,
.pdp-gallery__thumb.active {
  border-color: rgb(var(--color-foreground));
  transform: scale(1.05);
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── PDP Info ─── */
.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}

.pdp-info > * {
  max-width: 100%;
}

.pdp-info form {
  width: 100%;
}

.pdp-info__title {
  font-size: var(--font-h2-size);
  margin-bottom: 0.8rem;
}

.pdp-info__price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.pdp-info__description {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-foreground-lighten-60);
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.quantity-selector__wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgb(var(--color-border));
  border-radius: var(--inputs-radius);
  overflow: hidden;
  height: 4.8rem;
}

.quantity-selector__btn {
  width: 4.4rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  transition: background-color var(--animation-fast);
}

.quantity-selector__btn:hover {
  background-color: rgb(var(--color-secondary-background));
}

.quantity-selector__input {
  width: 5rem;
  height: 100%;
  text-align: center;
  border: none;
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  font-weight: 500;
  -moz-appearance: textfield;
}

.quantity-selector__input::-webkit-outer-spin-button,
.quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-info__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 0.8rem;
  width: 100%;
}

.pdp-info__actions .btn {
  width: 100%;
  padding: 0 1.6rem;
  font-size: 1.4rem;
  height: 5rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .pdp-info__actions {
    grid-template-columns: 1fr 1fr;
  }
  .pdp-info__actions .btn {
    padding: 0 2.4rem;
    font-size: 1.5rem;
    height: 5.6rem;
  }
}

/* Tabs */
.pdp-tabs {
  margin-top: 2.4rem;
  border-top: 1px solid rgb(var(--color-border));
}

.pdp-tabs__nav {
  display: flex;
  gap: 2.4rem;
  padding: 1.6rem 0;
  overflow-x: auto;
  border-bottom: 1px solid rgb(var(--color-border));
  user-select: none;
  scrollbar-width: none;
}

.pdp-tabs__nav::-webkit-scrollbar { display: none; }

.pdp-tabs__btn {
  font-family: var(--font-body-family);
  font-weight: var(--font-body-weight-bolder);
  font-size: 1.5rem;
  padding-bottom: 0.4rem;
  position: relative;
  white-space: nowrap;
  transition: color var(--animation-fast);
  opacity: 0.6;
}

.pdp-tabs__btn:hover { opacity: 1; }

.pdp-tabs__btn.active {
  opacity: 1;
}

.pdp-tabs__btn.active::after {
  content: '';
  position: absolute;
  bottom: -1.7rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(var(--color-foreground));
}

.pdp-tabs__panel {
  display: none;
  padding: 2.4rem 0;
  font-size: 1.5rem;
  line-height: 1.7;
  animation: fade-in 0.4s ease;
}

.pdp-tabs__panel.active {
  display: block;
}

.pdp-tabs__panel h4 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.pdp-tabs__panel p {
  margin-bottom: 1.2rem;
  color: var(--color-foreground-lighten-60);
}

.pdp-tabs__panel ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.6rem;
}

.pdp-tabs__panel li {
  margin-bottom: 0.8rem;
  color: var(--color-foreground-lighten-60);
}

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--animation-default), visibility var(--animation-default);
}

.cart-sidebar.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

.cart-sidebar__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 44rem;
  height: 100%;
  background-color: rgb(var(--color-background));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--animation-nav);
}

.cart-sidebar.active .cart-sidebar__panel {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.4rem;
  border-bottom: 1px solid rgb(var(--color-border));
}

.cart-sidebar__title {
  font-size: 1.8rem;
  font-weight: 700;
}

.cart-sidebar__close {
  padding: 0.8rem;
}

.cart-sidebar__close svg {
  width: 2.4rem;
  height: 2.4rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 2.4rem;
}

.cart-item {
  display: flex;
  gap: 1.6rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgb(var(--color-border));
}

.cart-item__image {
  width: 8rem;
  height: 8rem;
  border-radius: var(--small-blocks-radius);
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgb(var(--color-secondary-background));
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-item__title {
  font-weight: 500;
  font-size: 1.4rem;
}

.cart-item__price {
  font-size: 1.4rem;
  font-weight: 700;
}

.cart-item__remove {
  align-self: flex-start;
  font-size: 1.2rem;
  text-decoration: underline;
  opacity: 0.6;
  transition: opacity var(--animation-fast);
}

.cart-item__remove:hover { opacity: 1; }

.cart-sidebar__footer {
  padding: 2rem 2.4rem;
  border-top: 1px solid rgb(var(--color-border));
  background-color: rgb(var(--color-background));
}

.cart-sidebar__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.cart-sidebar__empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-foreground-lighten-60);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background-color: rgb(var(--color-secondary-background));
  padding: 6rem 0 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand img {
  height: 4rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.6rem;
}

.footer__brand p {
  font-size: 1.5rem;
  color: var(--color-foreground-lighten-60);
  line-height: 1.7;
  max-width: 30rem;
}

.footer__heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__link {
  font-size: 1.5rem;
  color: var(--color-foreground-lighten-60);
  transition: color var(--animation-fast);
}

.footer__link:hover {
  color: rgb(var(--color-foreground));
}

.footer__newsletter-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.footer__input {
  flex: 1;
  height: 4.8rem;
  border: 1px solid rgb(var(--color-border));
  border-radius: var(--inputs-radius);
  padding: 0 2rem;
  font-family: var(--font-body-family);
  font-size: 1.5rem;
  background-color: rgb(var(--color-background));
  transition: border-color var(--animation-fast);
}

.footer__input:focus {
  outline: none;
  border-color: rgb(var(--color-foreground));
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(var(--color-border));
  font-size: 1.3rem;
  color: var(--color-foreground-lighten-60);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  padding: 2rem 0;
  font-size: 1.3rem;
  color: var(--color-foreground-lighten-60);
}

.breadcrumb__sep {
  margin: 0 0.8rem;
  opacity: 0.4;
}

.breadcrumb__link {
  transition: color var(--animation-fast);
}

.breadcrumb__link:hover {
  color: rgb(var(--color-foreground));
}

.breadcrumb__current {
  color: rgb(var(--color-foreground));
}

/* =====================================================
   UTILITIES
   ===================================================== */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

.text-center { text-align: center; }
.mt-8 { margin-top: 8rem; }
.mb-8 { margin-bottom: 8rem; }

/* =====================================================
   ANIMATION UTILITIES
   ===================================================== */
.animate-fade-in {
  animation: fade-in 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(.3,1,.3,1) forwards;
}

.animate-zoom-fade {
  animation: zoom-fade-short 1.2s cubic-bezier(.3,1,.3,1) forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
