@font-face {
  font-family: 'Inter';
  src: url('/static/webfonts/inter_5.2.6_latin-wght-normal.woff2') format('woff2-variations'),
       url('/static/webfonts/inter_5.2.6_latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/static/webfonts/outfit_5.2.7_latin-wght-normal.woff2') format('woff2-variations'),
       url('/static/webfonts/outfit_5.2.7_latin-wght-normal.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}


:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme color palette - Clean Retail White with Navy #053A6B Accents */
  --bg-primary: #ffffff;
  --bg-secondary: #fbfcff;
  --bg-tertiary: #fafbfc;
  --bg-gray: #f0f1f2;/

  --text-primary: #03325e;
  --text-tittle: #03325e;
  --text-secondary: #5b6675;
  --text-muted: #828d9c;

  --color-primary: #0a2540;       /* Navy oscuro: botón buscar, CTAs sólidos */
  --color-primary-hover: #123a63;
  --color-primary-glow: rgba(5, 58, 107, 0.12);

  --color-accent: #053A6B;        /* Navy: links, precios destacados, foco */
  --color-accent-hover: #073f73;
  --color-accent-glow: rgba(5, 58, 107, 0.12);

  --color-success: #1a8754;       /* Verde apagado, no fosforescente */
  --color-warning: #c47f0a;
  --color-danger: #d32f2f;

  --border-color: #dfe3ea;
  --border-focus: rgba(5, 58, 107, 0.4);
  
  --shadow-menu: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(249, 249, 249, 0.1);
  --shadow-md: 0 6px 18px rgba(8, 28, 51, 0.09);
  --shadow-lg: 0 16px 40px rgba(8, 28, 51, 0.14);

  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;

  --max-width: 1400px;  /* era 1200px */
  --header-height: 80px;

  /* Ancho de la franja reservada para el logo flotante en el header.
     El logo mide ~100px de alto; ajusta este valor si cambia su ancho
     real para que la reserva de espacio siga calzando. */
  --logo-reserved-width: 180px;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

input, select, textarea, button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

.container {
  width: 80%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation Styles */
.header {
  height: var(--header-height);
  background-color: var(--bg-primary);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  align-content: center;
  position: relative;
}

/* Espacio reservado: esta franja es "intocable" para el resto del menú.
   Ajusta --logo-reserved-width si cambias el tamaño del logo. */
.header__logo {
  width: var(--logo-reserved-width);
  min-width: var(--logo-reserved-width);
  flex-shrink: 0;
  height: 80%;
  position: relative;
}

.nav-brand{
    position: relative;
    top: 0px;
    left: 2px;
    z-index: -1; /* por encima del contenido del header, no del documento entero */
    display: flex;
    align-items: center;
}

.header__logo-img {

    height: 80px;
    width: auto;
    object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-accent);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-menu);
  transform: translateY(-1px);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0px;
}

/* Search Box styling */
.search-box {
  position: relative;
  background-color: var(--bg-secondary);
  border: 0.5px solid var(--border-color);
  border-radius: 0px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-accent-glow);
  background-color: var(--bg-primary);
}

.search-box__icon {
  position: absolute;
  right: 2px;
  color: var(--text-secondary);
  font-size: 22px;
}

.search-box__input {
  width: 100px;
  left:0px;
  font-size: 14px;
  outline: none;
  transition: width 0.3s ease;
  color: var(--text-primary);
  align-items: left;
}

.search-box__input:focus {
  width: 160px;
}

/* Icons and Badges */
.icon-btn {
  font-size: 20px;
  color: var(--text-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-glow);
}

#cart-button {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

/* Redes Sociales (header) */
.list-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.list-social__item {
  display: flex;
}

.list-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.list-social__link:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-glow);
}

.list-social__link .svg-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-social__link .icon {
  width: 16px;
  height: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* Banner / Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  z-index: 1;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-tittle);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: white;
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 10px;

  transition:
    background .2s ease,
    transform .2s ease;
}

.btn--secondary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.hero__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-height: 420px;
  object-fit: cover;
}

/* Sections General */
.section {
  padding: 5px 0;
}

.section--dark {
  background-color: var(--bg-secondary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0px;
}

.category-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__image-container {
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  font-size: 32px;
  color: var(--color-accent);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.category-card__count {
  font-size: 13px;
  color: var(--text-secondary);
}



/* Product Cards and Grid */
/* Product Cards and Grid */
/* Product Cards and Grid */
/* Product Cards and Grid */

/* ===========================
   PRODUCT GRID
   =========================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

/* ===========================
   PRODUCT CARD
   =========================== */

.product-card {
  display: flex;
  flex-direction: column;

  background: var(--bg-primary);
  border-radius: 14px;
  overflow: hidden;

  /* Sin borde */
  box-shadow:
    0 1px 3px rgba(5, 58, 107, 0.05),
    0 4px 12px rgba(5, 58, 107, 0.04);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}


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

  border-color: rgba(5, 58, 107, 0.20);

  box-shadow:
    0 10px 24px rgba(5, 58, 107, 0.12);
}
/* ===========================
   IMAGE
   =========================== */

.product-card__image-wrapper {
  display: block;
  position: relative;
  aspect-ratio: 1;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f4f6f8 100%
    );
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  padding: 12px;

  transition:
    transform .35s ease;
}
.product-card:hover .product-card__image {
  transform: scale(1.04);
}

/* ===========================
   BADGES
   =========================== */

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;

  padding: 4px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.product-card__badge--sale {
  background: var(--color-danger);
  color: white;
}

.product-card__badge--new {
  background: var(--color-accent);
  color: white;
}

/* Inline badge variant used in pricing area */
.product-card__badge--inline {
  position: static;
  top: auto;
  left: auto;
  display: inline-block;
  margin-left: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

/* ===========================
   CONTENT
   =========================== */

.product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 12px;
}

/* ===========================
   BRAND
   =========================== */

.product-card__brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ===========================
   NAME
   =========================== */

.product-card__name {
  margin: 0 0 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}


.product-card__name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color .2s ease;
}


.product-card__name a:hover {
  color: var(--color-primary);
}


/* ===========================
   PRICING
   =========================== */

.product-card__pricing {
  margin-top: auto;
  margin-bottom: 12px;
}

.product-card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card__price-old {
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__price--discount {
  color: var(--color-accent);
}



/* ===========================
   FOOTER
   =========================== */
   
.product-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.product-card__footer .btn {
  width: 100%;
}
















/* Related section */
.benefits-bar {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.benefits-bar__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-item__icon {
  font-size: 28px;
  color: var(--color-primary);
}

.benefit-item__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-item__desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Footer Section */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  color: var(--text-secondary);
}


.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}

.footer__grid form {
  min-width: 0;
}

.footer__grid input.form-control {
  min-width: 0;
  flex: 1;
}

.footer__logo {
  margin-bottom: 24px;
}

.footer__desc {
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__list {
  list-style: none;
}

.footer__list-item {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer__list-item a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* Footer: mobile layout - stack columns vertically for small screens */
@media (max-width: 768px) {
  .footer {
    padding: 40px 16px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .footer__logo,
  .footer__desc,
  .footer__title,
  .footer__list {
    margin-bottom: 12px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Catalog View Filters */
.catalog-layout {
  display: grid;
  grid-template-columns: 200px 1fr;  /* era 280px */
  gap: 20px;                          /* era 40px */
  padding-top: 16px;
  padding-bottom: 80px;
}

.catalog-sidebar {
  background-color: transparent;  /* quita el fondo */
  border: none;                   /* quita el borde */
  border-right: 1px solid var(--border-color);  /* solo línea derecha */
  border-radius: 0;
  padding: 0 16px 24px 0;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.filter-group__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.filter-list {
  list-style: none;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
}

.filter-item input[type="checkbox"] {
  accent-color: var(--color-primary);
}

.filter-item:hover {
  color: var(--text-primary);
}

/* Detail page styles */
.product-detail {
  padding-top: calc(var(--header-height) + 0px);
  padding-bottom: 1px;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-bottom: 60px;
}

.gallery__main {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery__main img {
  max-height: 480px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery__thumbs {
  display: flex;
  gap: 12px;
}

.gallery__thumb-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 80px;
  height: 80px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.gallery__thumb-btn--active,
.gallery__thumb-btn:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.gallery__thumb-btn img {
  max-height: 100%;
  object-fit: contain;
}

.product-info__brand {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.product-info__name {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.product-info__price-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.product-info__price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-info__price--sale {
  color: var(--color-danger);
}

.product-info__price-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info__discount-badge {
  background-color: var(--color-danger);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.variant-picker {
  margin-bottom: 30px;
}

.variant-picker__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-option {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.variant-option:hover {
  border-color: var(--text-secondary);
}

.variant-option--active {
  border-color: var(--color-accent);
  background-color: var(--color-accent-glow);
  color: var(--color-accent);
  font-weight: 600;
}

.variant-option--out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Cart & Checkout Views */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.cart-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
}

.cart-table td {
  padding: 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-item__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-secondary);
}

.cart-summary {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding-top: 5;
  padding-bottom: 80px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* Success page */
.success-card {
  text-align: center;
  max-width: 600px;
  margin: 120px auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 60px 40px;
}

/* Botón Agregar al Carrito — hover especial */
#add-to-cart-btn {
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

#add-to-cart-btn:hover {
    background: #c0392b;
    border-color: #a93226;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.3);
}

/* Botón Agregar al Carrito — product-card grid */

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
    letter-spacing: 0.2px;
    text-decoration: none;
}

#add-to-cart-btn:hover,
[id^="add-to-cart-btn"]:hover {
    background: #c0392b;
    border-color: #a93226;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.add-to-cart-btn i {
    font-size: 14px;
}

/* Botón Comprar (checkout) - estilo profesional */
.btn--buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn--buy:hover {
  background: var(--color-danger); /* rojo al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(208, 34, 41, 0.18);
}

.btn--buy:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Formulario inline sin márgenes en product-card */
.add-to-cart-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.success-card__icon {
  font-size: 64px;
  color: var(--color-success);
  margin-bottom: 24px;
}

/* ==========================================================================
   Página de Política / Términos y Condiciones
   ========================================================================== */

.policy-page {
  padding-top: 5;
}

.policy-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.policy-header__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: var(--color-accent-glow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.policy-header__title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-tittle);
  margin-bottom: 16px;
}

.policy-header__intro {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.policy-list {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.policy-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.policy-item__number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-accent-glow);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-item__body {
  padding-top: 4px;
}

.policy-item__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.policy-item__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.policy-item__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-item__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.policy-item__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.policy-contact {
  max-width: 820px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: var(--color-accent-glow);
  border-radius: var(--border-radius-md);
  padding: 20px 28px;
  text-align: center;
}

.policy-contact__icon {
  font-size: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.policy-contact__text {
  font-size: 14px;
  color: var(--text-primary);
}

.policy-contact__text a {
  color: var(--color-accent);
  font-weight: 600;
}

.policy-contact__text a:hover {
  text-decoration: underline;
}
.policy-footnote {
  max-width: 820px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .policy-list {
    padding: 24px;
  }
  .policy-header__title {
    font-size: 26px;
  }
  .policy-item {
    gap: 14px;
  }
}

/* ==========================================================================
   PDP Gallery Carousel — clases nuevas con prefijo "pdp-" para no chocar
   con las reglas .gallery__* existentes (que sigue usando otras vistas).
   ========================================================================== */

.pdp-gallery-wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

/* Thumbnails al costado (desktop) */
.pdp-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80px;
  flex-shrink: 0;
  max-height: 600px;
  overflow-y: auto;
}

.pdp-gallery-thumb-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 80px;
  height: 80px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pdp-gallery-thumb-btn--active,
.pdp-gallery-thumb-btn:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.pdp-gallery-thumb-btn img {
  max-height: 100%;
  object-fit: contain;
}

/* Carrusel principal */
.pdp-gallery-main {
  position: relative;
  flex: 1;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  min-height: 480px;
}

.pdp-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdp-gallery-track::-webkit-scrollbar {
  display: none;
}

.pdp-gallery-slide {
  position: relative;
  min-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

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

/* Flechas prev/next */
.pdp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.15s ease, background 0.15s ease;
}

.pdp-gallery-arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.pdp-gallery-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.pdp-gallery-arrow--prev {
  left: 16px;
}

.pdp-gallery-arrow--next {
  right: 16px;
}

/* Contador "1 / N" */
.pdp-gallery-counter {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.pdp-gallery-counter::before {
  content: attr(data-text);
  background: #fff;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Dots indicadores (desktop + mobile) */
.pdp-gallery-dots {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin-top: 19px;
}

.pdp-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background-color: #fff;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.pdp-gallery-dot--active {
  background-color: var(--color-accent);
}

/* Responsive adjust */
@media (max-width: 992px) {
  .hero__container, .product-detail__grid, .checkout-grid, .catalog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header__nav {
    display: none;
  }
}


.NM_mobile-menu-btn {
  display: none; /* se activa por media query abajo */
}

@media (max-width: 992px) {
  .NM_mobile-menu-btn {
    display: flex;
  }
}

.NM_mobile-menu-dropdown {
  position: absolute;
  top: calc(var(--header-height) - 6px);
  right: 16px;
  min-width: 200px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.NM_mobile-menu-dropdown.NM_is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.NM_mobile-menu-dropdown a {
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.NM_mobile-menu-dropdown a:hover,
.NM_mobile-menu-dropdown a.header__nav-link--active {
  background-color: var(--bg-secondary);
  color: var(--color-accent);
}

/* Header/logo/acciones a mínimo estándar en mobile */
@media (max-width: 576px) {
  .header__logo {
    gap: 6px;
  }
  .header__container {
    gap: 0px;
  }
  .search-box {
    padding: 6px 12px 6px 6px;
  }
  .search-box__input {
    width: 60px;
    font-size: 13px;
  }
  .search-box__input:focus {
    width: 100px;
  }
  .list-social {
    display: none; /* redes sociales se ocultan primero en mobile */
  }
  .section {
    padding: 48px 0;
  }
  .container {
    padding: 0 16px;
  }
}



.media-card-img-wrap {
  background-color: #ffffff;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive adjust */
@media (max-width: 992px) {
  .hero__container, .product-detail__grid, .checkout-grid, .catalog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header__nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
      left:0px;
      padding: 0 0px;
    }
  .header__logo {
    left:0px;
    gap: 2px;
    position:relative;
  }
  .header__logo-img {
      height: 90px;
      object-fit: contain;
  }
  .pdp-gallery-wrapper {
    flex-direction: column;
  }
  .pdp-gallery-thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    order: 2;
  }
  .pdp-gallery-main {
    order: 1;
  }
  .pdp-gallery-arrow {
    display: none;
  }
  .pdp-gallery-counter {
    display: none;
  }
}

