@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
@import url("./components/header.css");
@import url("./components/hero.css");
@import url("./components/card-product.css");
@import url("./components/categories.css");
@import url("./components/featured-products.css");
@import url("./components/flash-deals.css");
@import url("./components/offers.css");
@import url("./components/quick-buy.css");
@import url("./components/why-choose.css");
@import url("./components/cta-banner.css");
@import url("./components/resources.css");
@import url("./components/footer.css");
@import url("./components/archive-products.css");
@import url("./components/single-product.css");
@import url("./components/purchase-flow.css?ver=1.0.15");
@import url("./components/page.css");
@import url("./components/account.css?ver=1.0.19");
@import url("./components/error-page.css");
@import url("./components/libro-reclamaciones.css");

:root {
  --color-bg: #f4f1ea;
  --color-surface: #ffffff;
  --color-surface-soft: #f6f7fa;
  --color-text: #1b1a18;
  --color-muted: #5e5950;
  --color-border: #d8d2c8;
  --color-accent: #2f5d50;
  --color-accent-strong: #1f3f36;
  --color-brand-red: #EE1C25;
  --color-brand-blue: #000F40;
  --color-brand-blue-soft: #98a2bf;
  --font-family-base: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-100: 0.75rem;
  --font-size-200: 0.875rem;
  --font-size-300: 1rem;
  --font-size-400: 1.125rem;
  --font-size-500: 1.5rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.35;
  --line-height-relaxed: 1.45;
  --type-label-sm: 0.78rem;
  --type-body-sm: clamp(0.9rem, 0.22vw + 0.86rem, 1rem);
  --type-body-md: clamp(0.95rem, 0.24vw + 0.9rem, 1.04rem);
  --type-heading-sm: clamp(1.02rem, 0.3vw + 0.95rem, 1.22rem);
  --type-heading-md: clamp(1.18rem, 0.42vw + 1.04rem, 1.4rem);
  --type-heading-lg: clamp(1.3rem, 1.5vw + 1rem, 2rem);
  --type-display: clamp(2rem, 3.2vw + 1rem, 3.2rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 6px rgb(12 20 42 / 8%);
  --shadow-md: 0 10px 24px rgb(12 20 42 / 10%);
  --shadow-soft-inset: inset 0 1px 0 rgb(255 255 255 / 75%);
  --focus-ring: 0 0 0 3px rgb(248 21 37 / 22%);
  --container-max: 1400px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* Accesibilidad: ocultar visualmente pero mantener para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@keyframes tradisa-button-spin {
  to {
    transform: rotate(360deg);
  }
}

img {
  max-width: 100%;
}

.l-container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* Base global Swiper (configuracion basica y estable) */
.swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  min-width: 0;
  height: auto;
}

/* Front page ecommerce refresh */
body.front-page {
  background: #fff;
}

body.ecommerce-shell .thin-banner {
  position: relative;
  background: var(--color-brand-blue);
}

body.ecommerce-shell .thin-banner__slide {
  display: block;
  height: 65px;
  overflow: hidden;
}

body.ecommerce-shell .thin-banner__image {
  width: 100%;
  height: 65px;
  display: block;
  object-fit: cover;
  object-position: center;
}

body.front-page .hero {
  height: clamp(320px, 31vw, 400px);
  max-height: 400px;
  min-height: 0;
}

body.front-page .hero__slide {
  min-height: 0;
  height: 100%;
  padding-block: clamp(1.6rem, 2.4vw, 2.4rem);
}

body.front-page .hero__content {
  max-width: 35rem;
  gap: 0.75rem;
}

body.front-page .hero__title {
  font-size: clamp(1.5rem, 1.65vw + 0.75rem, 2.25rem);
  line-height: 1.02;
}

body.front-page .hero__description {
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

body.front-page .hero__actions {
  margin-top: 0.15rem;
}

body.front-page .hero__cta {
  min-height: 44px;
  padding-inline: 1.35rem;
  font-size: 0.92rem;
}

body.front-page .hero .swiper-pagination {
  bottom: 1.1rem !important;
}

body.front-page .hero__cta--primary,
body.front-page .fp-card__action--add,
body.front-page .cta-banner__btn {
  background: var(--color-brand-red);
  color: #fff;
}

body.front-page .flash-deals,
body.front-page .offers,
body.front-page .featured-products {
  padding-block: clamp(2rem, 4vw, 3.6rem);
  background: #fff;
}

body.front-page .flash-deals {
  padding-top: clamp(1.8rem, 3vw, 2.5rem);
}

body.front-page .flash-deals__layout {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 1.5rem;
}

body.front-page .flash-deals__banner {
  min-height: 100%;
  background: var(--color-brand-blue);
}

body.front-page .flash-deals__banner-subeyebrow {
  margin: 0.3rem 0 1.2rem;
  color: rgb(255 255 255 / 72%);
  font-size: var(--font-size-100);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

body.front-page .featured-products__title,
body.front-page .offers__title {
  text-align: center;
  color: var(--color-brand-blue);
}

body.front-page .featured-products__header,
body.front-page .offers__header {
  justify-content: center;
  margin-bottom: 1.6rem;
}

body.front-page .featured-products__footer {
  display: none;
}

body.front-page .fp-card {
  border: 1px solid rgb(0 15 64 / 9%);
  box-shadow: 0 8px 18px rgb(0 15 64 / 5%);
}

body.front-page .fp-card__badge {
  background: var(--color-brand-red);
  color: #fff;
}

body.front-page .fp-card__media {
  background: #f7f7f7;
}

body.front-page .fp-card__title {
  color: var(--color-brand-blue);
}

body.front-page .offers__grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

body.front-page .offer-card {
  min-height: 350px;
}

body.front-page .offer-card--wide {
  grid-column: span 4;
}

body.front-page .offer-card--tall {
  grid-column: span 2;
  grid-row: span 1;
}

body.front-page .offer-card--left,
body.front-page .offer-card--mid,
body.front-page .offer-card--compact {
  grid-column: span 2;
}

body.front-page .offer-card__overlay {
  background: linear-gradient(180deg, rgb(0 15 64 / 20%) 0%, rgb(0 15 64 / 72%) 100%);
}

body.front-page .offer-card__body {
  min-height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.front-page .offer-card__link {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  color: #fff;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-100);
  font-weight: 800;
}

body.front-page .cta-banner {
  background: var(--color-brand-blue);
}

body.front-page .cta-banner__inner {
  align-items: center;
  justify-items: center;
  text-align: center;
}

body.front-page .cta-banner__title {
  max-width: 48rem;
}

@media (max-width: 980px) {
  body.front-page .flash-deals__layout {
    grid-template-columns: 1fr;
  }

  body.front-page .offers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.front-page .offer-card,
  body.front-page .offer-card--wide,
  body.front-page .offer-card--tall,
  body.front-page .offer-card--left,
  body.front-page .offer-card--mid,
  body.front-page .offer-card--compact {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  body.ecommerce-shell .thin-banner__image {
    width: auto;
    min-width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  body.front-page .hero {
    height: 360px;
    max-height: 400px;
    min-height: 0;
  }

  body.front-page .hero__slide {
    min-height: 0;
    padding-block: 1.65rem;
  }

  body.front-page .hero__title {
    font-size: clamp(1.5rem, 4.5vw + 0.45rem, 2rem);
  }

  body.front-page .hero__description {
    font-size: 0.94rem;
  }

  body.front-page .hero__cta {
    min-height: 44px;
  }

  body.front-page .flash-deals,
  body.front-page .offers,
  body.front-page .featured-products {
    padding-block: 2rem;
  }

  body.front-page .offers__grid {
    grid-template-columns: 1fr;
  }

  body.front-page .offer-card {
    min-height: 180px;
  }
}
