/* Sephora Argentina — clone visual sephora.com */
:root {
  --black: #000;
  --white: #fff;
  --red: #cf112c;
  --red-dark: #a80e24;
  --promo-red: #ed001f;
  --promo-h: 32px;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #9b9b9b;
  --gray-600: #666;
  --gray-800: #333;
  --near-white: #f6f6f8;
  --input-placeholder: #666;
  --container: 1280px;
  --header-h: 85px;
  --header-h-mobile: 56px;
  --nav-h: 36px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 4px;
  --offer-card-w: 282px;
  --offer-body-min-h: 200px;
  --page-gutter: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
}
body.nav-open { overflow: hidden; }
html.shop-scroll-lock,
body.shop-scroll-lock { overflow: hidden; }
body.shop-scroll-lock {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
.show-mobile-only { display: none; }
.icon-btn.show-mobile-only,
.header-icon.show-mobile-only { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--page-gutter); }

/* Promo bar — Sephora global banner (#ED001F), solo visible arriba del todo */
.promo-bar {
  background: var(--promo-red);
  color: var(--white);
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  min-height: var(--promo-h);
  max-height: var(--promo-h);
  padding: 0 16px;
  letter-spacing: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: max-height .22s ease, min-height .22s ease, opacity .18s ease;
}
.promo-bar.is-collapsed {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.promo-bar a { color: inherit; text-decoration: none; }
.promo-bar strong {
  font-weight: 700;
  text-decoration: none;
}
.promo-bar .promo-cta::after {
  content: ' ▸';
  font-weight: 400;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  overflow: visible;
  padding-top: env(safe-area-inset-top, 0px);
  contain: layout style;
}
.header-main { border-bottom: none; }
.header-main .container.header-top {
  padding-left: 16px;
  padding-right: 16px;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  min-height: var(--header-h);
  width: 100%;
}
.header-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  flex-shrink: 0;
  line-height: 0;
  display: block;
}
.logo img {
  display: block;
  width: 152px;
  height: 20px;
  max-width: none;
}
.search-wrap svg.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--black);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  pointer-events: none;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.header-search-block {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 16px;
  margin-left: 0;
}
.search-wrap {
  flex: 0 1 340px;
  width: 340px;
  max-width: 340px;
  min-width: 180px;
  position: relative;
  margin-left: 24px;
  overflow: visible;
}
.header-util-cluster {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-left: 0;
  gap: 20px;
  justify-content: flex-end;
}
.search-wrap input {
  display: block;
  width: 100%;
  height: 38px;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 0 14px 0 38px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  background: var(--near-white);
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.search-wrap input::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}
.search-wrap input:focus {
  border-color: var(--black);
  background: var(--near-white);
  box-shadow: none;
}
.search-wrap input::-webkit-search-cancel-button,
.search-wrap input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.header-actions {
  display: contents;
}
.header-icons-end {
  display: contents;
}
.header-icons-end .header-icon {
  padding: 6px 6px;
}
.util-icon-img {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.header-util {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  text-align: left;
  border-radius: 0;
  color: var(--black);
  flex-shrink: 0;
}
.header-util:hover { opacity: 0.75; }
.header-util-ai {
  padding: 0;
  margin: 0;
  gap: 0;
  flex-shrink: 0;
  align-self: center;
}
.ai-beauty-chat-img {
  display: block;
  height: 77px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}
.util-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  white-space: nowrap;
}
.util-line-bold {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.util-line-sub {
  font-size: 11px;
  font-weight: 400;
  color: #666;
  line-height: 1.25;
}
.util-line-inline {
  display: flex;
  align-items: center;
  gap: 5px;
}
.util-truck {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.util-truck-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  color: #666;
}
.header-icon-img {
  width: 27px;
  height: 27px;
  display: block;
}
.header-icon-svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}
#cartToggle .header-icon-img {
  width: 33px;
  height: 33px;
  display: block;
}
#cartToggle .cart-badge {
  top: 2px;
  right: 0;
}
.header-icon {
  margin-left: 0;
  padding: 6px 10px;
}
.icon-btn {
  position: relative;
  width: auto;
  height: auto;
  min-width: 41px;
  min-height: 41px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: var(--black);
}
.icon-btn:hover { opacity: 0.75; background: transparent; }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

/* Nav */
.nav-bar {
  background: var(--black);
  position: relative;
  min-height: var(--nav-h);
}
.nav-bar .container { padding: 0; max-width: 100%; }
.main-nav {
  display: flex;
  gap: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-item-wrap {
  position: relative;
  flex-shrink: 0;
}
.main-nav a {
  flex-shrink: 0;
  display: block;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}
.main-nav a:hover,
.nav-item-wrap.is-mega-active > a {
  text-decoration: underline;
  border-bottom-color: transparent;
}
.nav-item-wrap.is-mega-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--white);
  z-index: 160;
  pointer-events: none;
}

/* Mega menu — dropdown estilo sephora.com */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 150;
  padding: 18px 0 22px;
}
.mega-menu.is-open { display: block; }
.mega-menu-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.mega-menu-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.mega-col {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 168px;
}
.mega-section { margin-bottom: 14px; }
.mega-section:last-child { margin-bottom: 0; }
.mega-heading {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.35;
  text-decoration: none;
}
.mega-heading:hover { text-decoration: underline; }
.mega-heading-plain {
  font-weight: 700;
  margin-bottom: 8px;
}
.mega-chevron {
  font-weight: 400;
  margin-left: 1px;
}
.mega-link {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  padding: 3px 0;
  line-height: 1.4;
  text-decoration: none;
}
.mega-link:hover { text-decoration: underline; }
.mega-promo {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}
.mega-promo-head {
  background: var(--promo-red);
  color: var(--white);
  padding: 8px 10px 6px;
  font-size: 10px;
  line-height: 1.25;
  flex-shrink: 0;
}
.mega-promo-head strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mega-promo-head p { margin: 0 0 4px; }
.mega-promo-cta {
  font-weight: 700;
  font-size: 10px;
}
.mega-promo-img {
  background: var(--gray-100);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.mega-promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-promo-foot {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 6px;
  flex-shrink: 0;
}
.mega-promo-row {
  display: flex;
  gap: 12px;
  margin-left: 8px;
  flex-shrink: 0;
  align-self: flex-start;
}
.mega-promo-tile {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  display: block;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}
.mega-promo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Hero — 3 tarjetas visibles como sephora.com */
.hero-carousel { background: var(--white); padding: 12px 0 12px; }
.hero-container { position: relative; }
.hero-strip { position: relative; width: 100%; }
.hero-tiles {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 1px;
}
.hero-tiles::-webkit-scrollbar { display: none; }
.hero-banner {
  flex: 0 0 calc((100% - 8px) / 3);
  min-width: calc((100% - 8px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: inherit;
  line-height: 1.35;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}
.hero-banner-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  line-height: 0;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.hero-banner-foot {
  flex: 1;
  padding: 14px 16px 16px;
  min-height: 96px;
}
.hero-banner-foot strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}
.hero-banner-foot p {
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 10px;
  opacity: 0.95;
}
.hero-banner-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-strip-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.82);
  color: var(--white);
  font-size: 18px;
  display: grid;
  place-items: center;
  z-index: 4;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hero-strip-nav:disabled { opacity: 0 !important; pointer-events: none; }
.hero-strip-prev { left: 4px; display: none; }
.hero-strip-next { right: 4px; }
.hero-strip { position: relative; }
.hero-dots {
  display: none;
  position: absolute;
  top: 10px;
  right: 24px;
  z-index: 5;
  gap: 5px;
  pointer-events: none;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}
.hero-dot.active { background: rgba(0, 0, 0, 0.65); }
.home-mobile-strip { display: none; }
.home-signin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #d4d4d4;
  border-radius: 0;
  background: #e6e6e6;
}
.home-signin-text {
  flex: 1;
  min-width: 0;
}
.home-signin-headline {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}
.home-signin-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--black);
}
.home-signin-link {
  padding: 0;
  border: none;
  background: none;
  color: #0056b3;
  text-decoration: underline;
  text-underline-offset: 1px;
  font-size: inherit;
  font-weight: 400;
  cursor: pointer;
  line-height: inherit;
}
.home-signin-link:hover { color: #003d80; }
.home-signin-btn {
  flex: 0 0 auto;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
}
.home-signin-btn:hover { opacity: 0.88; }
.home-category-chips {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-bottom: 1px solid #ebebeb;
}
.home-category-chips::-webkit-scrollbar { display: none; }
.home-category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: var(--white);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.home-category-chip:hover { border-color: #a3a3a3; }
.home-category-chip--store {
  gap: 8px;
  padding: 8px 14px 8px 10px;
  min-height: 44px;
  background: #f5f5f5;
  justify-content: flex-start;
}
.home-chip-store-icon {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.home-chip-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}
.home-chip-store-line {
  font-size: 10px;
  font-weight: 400;
  color: #666;
}
.home-chip-store-bold {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

/* Mobile bottom nav — Sephora app-style */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--white);
  border-top: 1px solid #e0e0e0;
  padding: 6px max(var(--page-gutter), env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(var(--page-gutter), env(safe-area-inset-right, 0px));
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0;
  contain: layout style;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 2px 2px 0;
  min-height: 48px;
  border: none;
  background: none;
  color: var(--black);
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.mobile-nav-icon {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
.mobile-nav-icon--ai {
  width: 39px;
  height: 27px;
  margin-top: -2px;
}
.mobile-nav-label {
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  white-space: nowrap;
}
.mobile-nav-item.active .mobile-nav-label { font-weight: 700; }
.mobile-nav-item--ai {
  padding-top: 0;
}

/* Mobile Shop overlay — Sephora-style category menu */
.mobile-shop-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding-bottom: var(--mobile-nav-stack, 0);
  z-index: 125;
  flex-direction: column;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-shop-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-shop-header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px var(--page-gutter) 12px;
  border-bottom: 1px solid #e5e5e5;
  background: var(--white);
}
.mobile-shop-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
}
.mobile-shop-close {
  position: absolute;
  top: 50%;
  right: max(8px, calc(var(--page-gutter) - 4px), env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.mobile-shop-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px var(--page-gutter) max(24px, var(--mobile-nav-clearance, 12px));
}
.mobile-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mobile-shop-card {
  position: relative;
  display: block;
  min-height: 80px;
  padding: 14px 10px 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.mobile-shop-card:active,
.mobile-shop-card:hover {
  border-color: #bdbdbd;
}
.mobile-shop-card-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  padding-right: 46px;
}
.mobile-shop-card-icon {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 44px;
  height: 44px;
  pointer-events: none;
}
.mobile-shop-card-icon img {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  object-position: bottom right;
}
.mobile-shop-card-icon--text {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #4A90D9;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mobile-shop-featured {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
}
.mobile-shop-featured-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.mobile-shop-featured-link {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: var(--black);
  cursor: pointer;
}
.mobile-shop-featured-link:active,
.mobile-shop-featured-link:hover {
  color: var(--gray-800);
}

.home-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--gray-600);
  min-height: 120px;
}

/* Skeleton placeholders — non-blocking perceived load */
.home-section-skeleton { pointer-events: none; }
.skeleton-line {
  background: var(--gray-100);
  border-radius: 4px;
  animation: pulse 1.2s ease-in-out infinite;
}
.skeleton-title {
  width: min(220px, 55%);
  height: 20px;
  margin-bottom: 16px;
}
.skeleton-carousel-row {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 8px;
}
.skeleton-product-card {
  flex: 0 0 calc((100% - 16px) / 2.2);
  min-width: calc((100% - 16px) / 2.2);
  aspect-ratio: 3 / 4.2;
  background: var(--gray-100);
  border-radius: 8px;
  animation: pulse 1.2s ease-in-out infinite;
}
.skeleton-offer-card {
  flex: 0 0 calc((100% - 16px) / 1.25);
  min-width: calc((100% - 16px) / 1.25);
  min-height: 280px;
  background: var(--gray-100);
  border-radius: 8px;
  animation: pulse 1.2s ease-in-out infinite;
}
.products-row.is-loading .skeleton-product-card,
.catalog-full-grid.is-loading .skeleton-product-card {
  flex: unset;
  min-width: 0;
}
#catalogGrid.is-loading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Off-screen home sections skip layout/paint until near viewport */
.home-carousel-section,
.home-banner-row,
.home-guidance,
.home-bi-rewards,
.home-bottom-carousel,
.home-beauty-offers,
.home-sections-deferred,
.home-sections-deferred > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
#homeSections > .home-carousel-section:first-of-type,
#homeSections > .home-recap:first-child,
#homeSections > .home-beauty-offers:first-child {
  content-visibility: visible;
}
.hero-carousel:has(.hero-tiles) .hero-skeleton {
  display: none;
}
.hero-skeleton {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 4px;
}
.hero-skeleton-card {
  flex: 0 0 calc((100% - 8px) / 3);
  aspect-ratio: 3 / 2;
  background: var(--gray-100);
  border-radius: 2px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-product-card,
  .skeleton-offer-card,
  .hero-skeleton-card {
    animation: none;
  }
}
#viewHome.active { min-height: 60vh; }

#homeSections > .home-carousel-section:first-child,
#homeSections > .home-recap:first-child {
  padding-top: 28px;
}

/* Sections */
.section { padding: 32px 0; }
.section-alt { background: var(--gray-50); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.section-head h2,
.home-recap-head h2,
.home-guidance-head h2 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}
.section-head h2.serif-title {
  font-family: var(--font);
  font-size: inherit;
  font-weight: 700;
}
.section-head a { font-size: 12px; font-weight: 600; text-decoration: underline; }

/* Product grid */
.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: none;
  overflow: visible;
  position: relative;
}
.product-card.compact {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}
.product-card.compact:hover {
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
}
.product-img-wrap {
  position: relative;
  background: var(--white);
}
.product-card.compact .product-img-wrap {
  border-bottom: none;
}
.product-quicklook {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
@media (hover: hover) {
  .product-card.compact .love-btn {
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .product-card.compact:hover .love-btn {
    opacity: 1;
  }
  .product-card.compact .product-quicklook {
    opacity: 0;
    transform: translateY(4px);
  }
  .product-card.compact:hover .product-quicklook {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (hover: none) {
  .product-card.compact .love-btn,
  .product-card.compact .product-quicklook {
    opacity: 1;
    transform: none;
  }
}
.love-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--gray-400);
  display: grid;
  place-items: center;
}
.love-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.love-btn.active svg { fill: var(--red); stroke: var(--red); }
.love-btn.large {
  position: static;
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.product-card:hover .product-name { text-decoration: underline; }
.product-img {
  aspect-ratio: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
  overflow: hidden;
}
.product-card.compact .product-img {
  padding: 16px 16px 8px;
  background: var(--white);
}
.product-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--gray-50);
  transition: opacity 0.15s ease;
}
.product-img img.img-deferred,
.product-img img.img-loading {
  opacity: 0;
}
.product-img img.img-loaded,
.product-img img:not(.img-deferred):not(.img-loading) {
  opacity: 1;
}
.product-detail-img img.img-deferred,
.product-detail-img img.img-loading {
  opacity: 0;
}
.product-detail-img img.img-loaded,
.product-detail-img img:not(.img-deferred):not(.img-loading) {
  opacity: 1;
}
.product-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 11px;
}
.product-stars .stars { color: var(--black); letter-spacing: -1px; font-size: 12px; }
.product-stars .review-count { color: var(--gray-600); font-size: 11px; font-weight: 400; }
.product-img .brand-initial,
.product-detail-img .brand-initial,
.product-img-placeholder {
  font-size: 32px;
  font-weight: 800;
  color: #9b9b9b;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-img-placeholder {
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fafafa 0%, #f0f0f0 50%, #e8e8e8 100%);
  border-radius: 2px;
}
.brand-initial-lg,
.product-detail-img .product-img-placeholder { font-size: 64px; }
.product-detail-img .product-img-placeholder { border-radius: var(--radius); }
.product-img .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  letter-spacing: .04em;
  border-radius: 2px;
}
.badge-new { background: var(--black); color: var(--white); }
.badge-sale { background: var(--red); color: var(--white); }
.badge-limited { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.badge-limited-ed {
  background: var(--black);
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  padding: 4px 6px;
  letter-spacing: 0.06em;
  border-radius: 0;
  line-height: 1;
}
.badge-rewards { background: #d4af37; color: var(--black); }
.badge-online { background: var(--gray-800); color: var(--white); }
.product-body { padding: 8px 4px 12px; flex: 1; display: flex; flex-direction: column; }
.product-card.compact .product-body {
  padding: 0 16px 16px;
  gap: 0;
}
.product-brand { font-size: 11px; font-weight: 700; color: var(--black); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .02em; }
.product-card.compact .product-brand {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.product-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 4px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--black);
}
.product-card.compact .product-name {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 32px;
  flex: 0;
}
.product-price { font-size: 14px; font-weight: 700; line-height: 1.3; }
.product-card.compact .product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 13px;
  margin-bottom: 8px;
}
.product-price .price-current { font-weight: 700; color: var(--black); }
.product-price .price-sale { color: #cf1124; font-weight: 700; line-height: 1.25; }
.product-price .price-was { line-height: 1.2; }
.product-price .price-was s {
  color: var(--black);
  font-weight: 400;
  font-size: 12px;
  text-decoration: line-through;
}
.product-price s { color: var(--black); font-weight: 400; font-size: 12px; text-decoration: line-through; margin-left: 0; }
.product-rating { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-sm {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--black);
  letter-spacing: .04em;
}
.btn-sm.primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-sm.primary:hover { background: var(--gray-800); }
.btn-sm:hover { background: var(--gray-100); }

/* Offers */
.home-beauty-offers { padding-top: 0; overflow: visible; }
.home-beauty-offers .container { overflow: visible; }
.home-beauty-offers .section-head { margin-bottom: 16px; }
.home-beauty-offers .offers-row {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}
.home-beauty-offers .offers-row::-webkit-scrollbar { display: none; }
.offer-card {
  flex: 0 0 var(--carousel-card-w, var(--offer-card-w));
  width: var(--carousel-card-w, var(--offer-card-w));
  min-width: var(--carousel-card-w, var(--offer-card-w));
  max-width: var(--carousel-card-w, var(--offer-card-w));
  scroll-snap-align: start;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.offer-card-visual {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  line-height: 0;
  background: var(--white);
}
.offer-card-visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.offer-card-body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: var(--offer-body-min-h);
}
.offer-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--black);
}
.offer-card-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--black);
  margin: 0;
  line-height: 1.45;
}
.offer-card-fine {
  font-size: 11px;
  color: #767676;
  margin: 8px 0 0;
  line-height: 1.4;
  flex: 1;
  min-height: 28px;
}
.offer-card-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
}
.offer-card .offer-cta {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.offer-card .offer-cta:hover { background: var(--gray-100); }
.offer-details-link {
  font-size: 12px;
  font-weight: 600;
  color: #1369d3;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}
.offer-card-fine strong {
  font-weight: 700;
  color: var(--black);
}

/* Home promo banner rows (Fila A reassurance + Fila B marketing) */
.home-banner-row { padding-top: 8px; padding-bottom: 8px; }
.home-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-promo-tile {
  display: grid;
  grid-template-columns: 45% 55%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--promo-color, #fff);
  background: var(--promo-bg, #000);
  transition: opacity 0.18s ease;
}
.home-promo-tile:hover { opacity: 0.92; }
.home-promo-tile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 12px 16px 16px;
  min-width: 0;
}
.home-promo-tile-copy h3 {
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}
.home-promo-tile-copy p {
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 10px;
  opacity: 0.92;
}
.home-promo-tile-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: auto;
}
.home-promo-tile-visual {
  overflow: hidden;
  min-height: 0;
}
.home-promo-tile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .home-banner-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-promo-tile { aspect-ratio: 3 / 2; }
  .home-promo-tile-copy { padding: 20px 16px; }
  .home-promo-tile-copy h3 { font-size: 16px; }
  .home-promo-tile-copy p { font-size: 12px; }
}

/* Product page — block padding only; horizontal gutter comes from .container */
.product-page { padding-block: 32px 64px; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail > * {
  min-width: 0;
  max-width: 100%;
}
.product-detail-info {
  overflow-wrap: break-word;
}
.product-detail-img {
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
  font-size: 64px;
  font-weight: 800;
  color: var(--gray-400);
}
.product-detail-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-gallery-main {
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}
.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-thumb:hover { border-color: var(--gray-400); }
.gallery-thumb.active {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}
.gallery-thumb img,
.gallery-thumb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-gallery-main img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pdp-sale-badge { display: inline-block; margin-bottom: 8px; }
.product-detail-price .price-sale { color: #cf1124; font-weight: 800; }
.product-detail-price .price-was s {
  font-size: 18px;
  color: var(--gray-400);
  font-weight: 400;
}
.product-detail-price .price-current { font-weight: 800; }
.product-detail-info h1 { font-size: 28px; font-weight: 800; margin: 8px 0 16px; }
.product-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-detail-brand { font-size: 14px; font-weight: 700; color: var(--gray-600); }
.product-detail-price { font-size: 24px; font-weight: 800; margin: 16px 0; }
.product-detail-price s { font-size: 18px; color: var(--gray-400); font-weight: 400; margin-left: 8px; }
.variant-group { margin: 20px 0; }
.variant-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.swatch-row, .size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background-size: cover;
  background-position: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-600);
}
.swatch-btn.active { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.swatch-btn.oos { opacity: .45; position: relative; }
.size-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.size-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.size-btn.oos { opacity: .5; text-decoration: line-through; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.qty-row label { font-size: 13px; font-weight: 600; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 600;
}
.qty-control button:hover { background: var(--gray-100); }
.qty-control span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  padding: 0 8px;
}
.qty-control.small button { width: 28px; height: 28px; font-size: 14px; }
.qty-control.small span { min-width: 28px; font-size: 13px; }
.product-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.product-actions-row .btn-lg.outline { margin-left: 0; }
.pdp-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.pdp-sticky-bar:not([hidden]) { display: flex; }
.pdp-sticky-price { font-size: 15px; font-weight: 800; line-height: 1.2; }
.pdp-sticky-bar .btn-sm { flex-shrink: 0; min-height: 44px; padding: 10px 16px; }
.cart-item-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cart-item-thumb .product-img-placeholder { font-size: 14px; min-height: 100%; border-radius: var(--radius); }
.cart-item-variant { font-size: 11px; color: var(--gray-600); margin-top: 2px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.cart-remove { font-size: 11px; margin-top: 6px; text-decoration: underline; color: var(--gray-600); }
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-box {
  background: var(--white);
  width: min(420px, 100%);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  position: relative;
}
.modal-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; }
.modal-note { font-size: 11px; color: var(--gray-400); margin-top: 16px; text-align: center; }
.modal-box label { display: block; font-size: 13px; font-weight: 600; }
.modal-box input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
}
.modal-close { position: absolute; top: 12px; right: 12px; }
.loves-drawer { z-index: 201; }
.product-detail-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-lang-bar {
  margin: 0 0 16px;
}
.product-lang-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.product-lang-btn {
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-lang-btn:hover {
  color: var(--black);
}
.product-lang-btn.active {
  background: var(--black);
  color: var(--white);
}
.product-lang-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-lang-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.product-detail-meta { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.product-detail-meta a { color: var(--red); text-decoration: underline; }
.btn-lg {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 32px;
  letter-spacing: .06em;
  border: none;
  cursor: pointer;
}
.btn-lg:hover { background: var(--gray-800); }
.btn-lg.outline { background: transparent; color: var(--black); border: 1px solid var(--black); margin-left: 12px; }
.back-link { font-size: 13px; font-weight: 600; margin-bottom: 24px; display: inline-block; }
.back-link:hover { text-decoration: underline; }

/* Catalog page */
.catalog-header { padding-block: 32px 16px; }
.catalog-header h1 { font-size: 28px; font-weight: 800; }
.catalog-count { color: var(--gray-600); font-size: 14px; margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.filter-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
}
.filter-btn.active,
.filter-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 24px;
  font-size: 13px;
}
.pagination span { text-align: center; line-height: 1.35; }

.catalog-scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}
.catalog-infinite-hint {
  text-align: center;
  color: var(--gray-600);
  font-size: 13px;
  margin: 20px 0 8px;
  padding: 0 16px;
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100dvh;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .3s;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--page-gutter);
  border-bottom: 1px solid var(--gray-200);
}
.drawer-head h3 { font-size: 18px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--page-gutter); }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-brand { font-size: 11px; color: var(--gray-600); }
.cart-item-price { font-size: 13px; font-weight: 700; margin-top: 4px; }
.cart-empty { text-align: center; padding: 48px 16px; color: var(--gray-600); }
.drawer-empty {
  text-align: center;
  padding: 48px 20px 32px;
  color: var(--gray-600);
}
.drawer-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--gray-400);
}
.drawer-empty-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.drawer-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.drawer-empty-sub {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.drawer-empty-cta,
.drawer-empty-secondary {
  width: 100%;
  margin-bottom: 10px;
}
.drawer-empty-secondary { margin-left: 0; }
.cart-shipping-note {
  font-size: 12px;
  color: var(--green, #2d5a3d);
  font-weight: 600;
  margin-bottom: 12px;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.cart-discount-note { font-weight: 400; color: var(--gray-600); }
.loves-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.loves-item-actions .btn-sm { flex: 0 0 auto; padding: 8px 12px; }
.drawer-foot {
  padding: var(--page-gutter);
  padding-bottom: calc(var(--page-gutter) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gray-200);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Footer — estilo sephora.com */
.site-footer {
  background: var(--black);
  color: var(--white);
  margin-top: 48px;
}
.footer-feedback {
  background: #ececec;
  color: var(--black);
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
}
.footer-feedback a { color: inherit; text-decoration: none; }
.footer-feedback a:hover { text-decoration: underline; }
.footer-services {
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-services-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 16px;
}
.footer-service {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.footer-service:hover strong { text-decoration: underline; }
.footer-service-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.footer-service span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.footer-service strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.footer-service small {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.78);
  line-height: 1.25;
}
.footer-main {
  padding: 36px 0 28px;
}
.footer-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.footer-col a {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }
.footer-region-list {
  list-style: none;
}
.footer-region-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 8px;
  color: rgba(255,255,255,.92);
}
.footer-region-list li.is-active::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
}
.footer-flag { font-size: 14px; line-height: 1; }
.footer-signup { padding-top: 4px; }
.footer-tagline {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.footer-signup-form { margin-bottom: 22px; }
.footer-signup-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-signup-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-signup-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--black);
  background: var(--white);
}
.footer-signup-row input::placeholder { color: #666; }
.footer-signup-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.footer-signup-btn:hover { background: rgba(255,255,255,.08); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0 28px;
}
.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer-copy,
.footer-phone,
.footer-fine {
  font-size: 11px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0;
}
.footer-legal-links a {
  font-size: 11px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
}
.footer-legal-links a:hover { text-decoration: underline; }
.footer-privacy-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.privacy-icon {
  width: 30px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -2px;
  object-fit: contain;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-top: 5px;
}
.footer-social a {
  color: var(--white);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-social img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.footer-social svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.footer-social svg [fill="none"] {
  fill: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: transform .3s, opacity .2s, visibility .2s;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Hidden views */
.view { display: none; }
.view.active { display: block; }

/* Mobile */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--black); }

@media (max-width: 1100px) {
  .header-actions { display: none; }
  .header-util-cluster { gap: 8px; }
  .ai-beauty-chat-img { height: 61px; }
}

@media (max-width: 1200px) {
  .search-wrap {
    flex-basis: 240px;
    width: 240px;
    max-width: 240px;
    min-width: 160px;
    margin-left: 16px;
  }
  .header-util-cluster { gap: 12px; }
  .header-util { padding: 4px 6px; }
  .util-line-sub { display: none; }
}

@media (max-width: 768px) {
  :root {
    --promo-h: 36px;
    /* 6px pad + 48px items + 6px pad + label */
    --mobile-nav-h: 68px;
    --screen-w: 100vw;
    --safari-ui-buffer: 8px;
    --mobile-nav-stack: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + var(--safari-ui-buffer));
    --mobile-nav-clearance: calc(var(--mobile-nav-stack) + 12px);
    --mobile-toast-offset: calc(var(--mobile-nav-stack) + 12px);
  }
  @supports (width: 100svw) {
    :root { --screen-w: 100svw; }
  }
  html {
    overscroll-behavior-y: none;
  }
  body {
    padding-bottom: var(--mobile-nav-clearance);
    overscroll-behavior-y: contain;
  }
  /* Evita el auto-zoom de iOS al enfocar inputs (cualquier tamaño < 16px lo dispara) */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px;
  }
  .toast {
    bottom: var(--mobile-toast-offset);
    z-index: 125;
  }
  .mobile-bottom-nav {
    z-index: 130;
  }
  .mobile-bottom-nav.show-mobile-only {
    display: grid;
  }
  .mobile-shop-modal {
    top: calc(env(safe-area-inset-top, 0px) + var(--promo-h) + var(--header-h-mobile));
  }
  body:has(.promo-bar.is-collapsed) .mobile-shop-modal {
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h-mobile));
  }
  .mobile-shop-modal.show-mobile-only {
    display: flex;
  }
  .hero-dots.show-mobile-only {
    display: flex;
  }
  .hamburger { display: none !important; }
  .header-main { padding-block: 0; }
  .header-brand { flex: 0 0 auto; gap: 0; }
  .header-top {
    display: flex;
    gap: 10px;
    height: var(--header-h-mobile);
    min-height: var(--header-h-mobile);
    max-height: var(--header-h-mobile);
    padding-top: 0;
    padding-bottom: 0;
  }
  .logo img { width: 112px; height: auto; }
  .header-search-block {
    flex: 1;
    margin-left: 0;
    gap: 6px;
    min-width: 0;
    overflow: visible;
  }
  .header-util-cluster {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
    margin-left: 0;
    gap: 0;
    justify-content: flex-end;
  }
  .search-wrap {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: 0;
  }
  .header-actions { display: none; }
  .header-icons-end {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
  }
  .header-icons-end .header-icon {
    padding: 6px 4px;
    min-width: 36px;
    min-height: 36px;
  }
  .product-lang-btn {
    padding: 10px 14px;
    font-size: 12px;
    min-height: 40px;
  }
  #signInBtnMobile { display: none; }
  .show-mobile-only { display: flex; }
  .icon-btn.show-mobile-only,
  .header-icon.show-mobile-only { display: grid; }
  .carousel-next { display: none; }
  .carousel-wrap { padding-right: var(--page-gutter); }
  .hero-strip-nav {
    min-width: 44px;
    min-height: 44px;
  }
  .main-nav.open a,
  .main-nav.open .nav-mobile-toggle {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-item-wrap { width: 100%; }
  .nav-item-wrap .nav-mobile-toggle::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    opacity: 0.7;
  }
  .nav-item-wrap.nav-mobile-open .nav-mobile-toggle::after { content: '−'; }
  .nav-mobile-sub {
    background: rgba(255,255,255,.06);
    padding: 4px 0 8px;
  }
  .nav-mobile-sub-link {
    display: block;
    padding: 10px 16px 10px 28px;
    font-size: 13px;
    color: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-mobile-sub-link:hover { background: rgba(255,255,255,.08); }
  .header-icons-end .header-icon-img {
    width: 25px;
    height: 25px;
  }
  #cartToggle .header-icon-img {
    width: 29px;
    height: 29px;
  }
  .header-util.hide-mobile { display: none; }
  .header-util-ai { display: none; }
  .search-wrap { min-width: 0; }
  .search-wrap input {
    height: 36px;
    font-size: 13px;
    padding: 0 12px 0 36px;
  }
  .search-wrap svg.search-icon {
    left: 11px;
    width: 15px;
    height: 15px;
  }
  .home-mobile-strip.show-mobile-only { display: block; }
  #homeSections > .home-carousel-section:first-child,
  #homeSections > .home-recap:first-child {
    padding-top: 16px;
  }
  .section-head h2,
  .home-recap-head h2,
  .home-guidance-head h2 { font-size: 18px; }
  .product-card.compact .product-body { padding: 0 10px 12px; }
  .product-card.compact .product-img { padding: 10px 10px 6px; }
  .product-card.compact .product-brand { font-size: 10px; margin-bottom: 3px; }
  .product-card.compact .product-name { font-size: 11px; min-height: 28px; margin-bottom: 6px; -webkit-line-clamp: 2; }
  .product-card.compact .product-price { font-size: 12px; margin-bottom: 4px; }
  .product-card.compact .love-btn { width: 24px; height: 24px; top: 2px; right: 2px; }
  .product-card.compact .love-btn svg { width: 14px; height: 14px; }
  .product-card.compact .product-quicklook { font-size: 10px; padding: 8px 6px; }
  .hero-carousel {
    padding: 8px 0 10px;
  }
  .hero-carousel .hero-container.container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  .hero-tiles {
    gap: 8px;
    padding: 0 16px;
    scroll-padding-inline: 16px;
  }
  .hero-banner {
    flex: 0 0 calc(var(--screen-w, 100vw) - 56px);
    min-width: calc(var(--screen-w, 100vw) - 56px);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  }
  .hero-banner-visual {
    border-radius: 6px 6px 0 0;
  }
  .hero-skeleton {
    padding: 0 16px;
    gap: 8px;
    max-width: none;
  }
  .hero-skeleton-card:not(:first-child) {
    display: none;
  }
  .hero-skeleton-card {
    flex: 0 0 calc(var(--screen-w, 100vw) - 56px);
    min-width: calc(var(--screen-w, 100vw) - 56px);
    border-radius: 6px;
  }
  .hero-strip-nav { display: none; }
  .carousel-row {
    gap: 8px;
    padding: 8px 0 calc(16px + var(--safari-ui-buffer, 0px));
    scroll-padding-inline: var(--page-gutter);
  }
  .carousel-row .product-card,
  .carousel-row .bi-reward-tile {
    flex: 0 0 var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 2.2));
    min-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 2.2));
    max-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 2.2));
  }
  .carousel-row .offer-card {
    flex: 0 0 var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
    width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
    min-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
    max-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
  }
  .carousel-row .product-card.compact {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: none;
    contain: layout style paint;
  }
  .product-card.compact--slim .product-quicklook {
    display: none;
  }
  .bi-reward-tile {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    transition: none;
    contain: layout style paint;
  }
  .offer-card {
    box-shadow: none;
    contain: layout style paint;
  }
  .hero-banner {
    box-shadow: none;
    border: 1px solid #e8e8e8;
  }
  .home-beauty-offers .offers-row {
    gap: 8px;
    padding: 4px 0 16px;
    scroll-padding-inline: var(--page-gutter);
  }
  .offer-card-body {
    min-height: 220px;
    padding: 14px 14px 16px;
  }
  .home-carousel-section .section-head,
  .home-beauty-offers .section-head,
  .home-bi-rewards-head,
  .home-recap-head,
  .home-guidance-head {
    padding-inline: 0;
  }
  .home-guidance { padding: 24px 0 32px; }
  .home-guidance-tile {
    flex: 0 0 112px;
    width: 112px;
    height: 144px;
  }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-info h1 { font-size: 22px; }
  .products-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .landing-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .promo-bar {
    --promo-h: 36px;
    min-height: 36px;
    max-height: 36px;
    font-size: 10px;
    line-height: 1.3;
    padding: 4px 12px;
  }
  .promo-bar a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .skeleton-line,
  .skeleton-product-card,
  .skeleton-offer-card,
  .hero-skeleton-card {
    animation: none;
  }
  .product-name { font-size: 12px; }
  .product-body { padding: 6px 8px 10px; }
  .product-actions { flex-direction: column; }
  .nav-bar {
    height: 0;
    min-height: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: none;
  }
  .nav-bar .container {
    height: 0;
    min-height: 0;
    padding: 0;
  }
  .nav-bar .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--promo-h) + var(--header-h-mobile));
    left: 0;
    right: 0;
    background: var(--black);
    z-index: 101;
    max-height: calc(100dvh - var(--promo-h) - var(--header-h-mobile));
    overflow-y: auto;
    padding: 0;
  }
  .site-header:has(.promo-bar.is-collapsed) .main-nav.open {
    top: var(--header-h-mobile);
    max-height: calc(100dvh - var(--header-h-mobile));
  }
  .nav-dropdown { display: none !important; }
  .carousel-row .product-card { scroll-snap-align: start; }
  .section { padding: 24px 0; }
  .section-head h2 { font-size: 18px; }
  .catalog-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reviews-header { grid-template-columns: 1fr; gap: 20px; }
  .landing-hero {
    padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px));
  }
  .catalog-header h1 { font-size: 22px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .sort-wrap, .price-filter { width: 100%; flex-wrap: wrap; }
  .price-filter input { flex: 1; min-width: 60px; }
  .filters { margin: 12px 0; }
  .site-footer { margin-top: 0; }
  .footer-feedback {
    background: #eeeeee;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.35;
  }
  .footer-services-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-block: 0;
    padding-inline: 0;
  }
  .footer-service {
    padding: 16px var(--page-gutter);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: flex-start;
  }
  .footer-service-icon {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }
  .footer-service strong { font-size: 13px; }
  .footer-service small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
  }
  .footer-accordions { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .footer-accordion { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .footer-accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--white);
  }
  .footer-accordion summary::-webkit-details-marker { display: none; }
  .footer-accordion summary::after {
    content: '∨';
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
  }
  .footer-accordion[open] summary::after { content: '∧'; }
  .footer-accordion-panel {
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .footer-accordion-panel a {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
  }
  .footer-accordion-panel a:hover { text-decoration: underline; }
  .hide-mobile-only { display: none !important; }
  .home-bottom-carousel.show-mobile-only { display: block; }
  .home-bottom-carousel {
    padding: 0 0 8px;
    background: var(--white);
  }
  .home-bottom-carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .home-bottom-carousel-track::-webkit-scrollbar { display: none; }
  .home-bottom-card {
    flex: 0 0 calc(var(--screen-w, 100vw) - 56px);
    min-width: calc(var(--screen-w, 100vw) - 56px);
    scroll-snap-align: start;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--card-foot-color, #fff);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  }
  .home-bottom-card-visual {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #000;
    line-height: 0;
  }
  .home-bottom-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .home-bottom-card-foot {
    background: var(--card-foot-bg, #000);
    padding: 14px 16px 16px;
    flex: 1;
  }
  .home-bottom-card-foot strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .home-bottom-card-foot p {
    font-size: 11px;
    line-height: 1.45;
    margin: 0 0 10px;
    opacity: 0.95;
  }
  .home-bottom-card-cta {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .footer-main-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-tagline { font-size: 24px; }
  .footer-legal-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { flex-wrap: wrap; }
  .btn-lg { width: 100%; text-align: center; }
  .product-actions-row { flex-direction: column; }
  .product-actions-row .btn-lg.outline { margin-left: 0; }
  .product-page { padding-block-end: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .gc-quicklook { opacity: 1; transform: none; }
  .review-filter:not(.active) { opacity: 0.55; cursor: default; }
  .pagination { font-size: 12px; }
  .pagination .btn-sm { flex: 0 0 auto; min-width: 88px; }
}

@media (max-width: 380px) {
  .products-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .logo { font-size: 20px; }
}

.product-card.compact .product-actions { display: none; }
.carousel-row {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding: 10px 8px 18px;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  contain: layout style;
}
.carousel-row::-webkit-scrollbar { display: none; }
.carousel-row .product-card {
  flex: 0 0 var(--carousel-card-w, 168px);
  min-width: var(--carousel-card-w, 168px);
  max-width: var(--carousel-card-w, 168px);
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel-row .product-card.compact { margin: 0; }
.carousel-wrap {
  position: relative;
  margin-left: calc(-1 * var(--page-gutter));
  margin-right: calc(-1 * var(--page-gutter));
  padding-left: var(--page-gutter);
  padding-right: 44px;
  overflow: hidden;
}
@media (min-width: 769px) {
  .carousel-next {
    position: absolute;
    right: 0;
    top: calc(50% - 18px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.18s ease;
  }
  .carousel-next:hover { background: rgba(0, 0, 0, 0.72); }
  .carousel-next svg { width: 18px; height: 18px; }
}
.home-carousel-section { padding-top: 0; overflow: visible; }
.home-carousel-section .container { overflow: visible; }
.home-carousel-section .section-head { margin-bottom: 16px; }

.home-bi-rewards { padding-top: 8px; padding-bottom: 8px; }
.bi-rewards-row.carousel-row { padding-top: 4px; }
.bi-reward-tile {
  flex: 0 0 var(--carousel-card-w, 168px);
  min-width: var(--carousel-card-w, 168px);
  max-width: var(--carousel-card-w, 168px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}
.bi-reward-tile:hover { box-shadow: 0 0 14px rgba(0, 0, 0, 0.1); }
.bi-reward-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--white);
  padding: 16px 16px 8px;
  overflow: hidden;
}
.bi-reward-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.bi-reward-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 10px 12px;
  gap: 2px;
}
.bi-reward-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bi-reward-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 4px;
}
.bi-reward-name:hover { text-decoration: underline; }
.bi-reward-pts {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  margin: 2px 0 8px;
}
.bi-reward-tile .reward-redeem-btn {
  width: 100%;
  margin-top: auto;
  font-size: 11px;
  padding: 8px 10px;
}
.bi-reward-tile .reward-redeem-btn--guest {
  white-space: normal;
  line-height: 1.25;
  min-height: 40px;
}

.home-recap { padding-top: 0; overflow: visible; }
.home-recap-head { margin-bottom: 16px; }
.home-recap-head h2 { margin: 0 0 6px; }
.home-recap-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-600);
}
.home-recap-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-recap-tabs::-webkit-scrollbar { display: none; }
.home-recap-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.home-recap-tab:hover { color: var(--black); }
.home-recap-tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
}
.home-recap-panel { display: none; }
.home-recap-panel.active { display: block; }
.home-recap-panel-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.home-recap-panel-head a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

.home-guidance { padding: 32px 0 40px; }
.home-guidance .container { overflow: visible; }
.home-guidance-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}
.home-guidance-head {
  flex: 0 0 auto;
  text-align: left;
  width: 100%;
}
.home-guidance-head h2 {
  margin: 0 0 4px;
}
.home-guidance-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black);
}
.home-guidance-track {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-guidance-track::-webkit-scrollbar { display: none; }
.home-guidance-grid {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0 auto;
  padding-bottom: 2px;
}
.home-guidance-tile {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 124px;
  height: 152px;
  padding: 12px 10px 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: var(--white);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.home-guidance-tile:hover { border-color: #bdbdbd; }
.home-guidance-tile:hover .home-guidance-label { text-decoration: underline; }
.home-guidance-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  max-width: 100%;
}
.home-guidance-icon {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 52px;
  height: 52px;
  pointer-events: none;
}
.home-guidance-icon img {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  object-position: bottom right;
}
@media (min-width: 1240px) {
  .home-guidance-layout {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .home-guidance-head {
    flex: 0 0 220px;
    max-width: 220px;
    width: auto;
  }
  .home-guidance-track {
    flex: 1;
    min-width: 0;
    overflow: visible;
  }
  .home-guidance-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: space-between;
    gap: 0;
  }
  .home-guidance-tile {
    flex: 0 0 124px;
    width: 124px;
  }
}
@media (max-width: 1239px) {
  .home-guidance-track {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }
  .home-guidance-grid {
    margin: 0;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .mega-menu { display: none !important; }
}
.catalog-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 16px 0; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.sort-wrap select { padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; }
.static-page { padding-top: 32px; padding-bottom: 64px; max-width: 720px; }
.static-page.has-hero,
.static-page-wide.has-hero { max-width: var(--container); }
.static-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.static-page.has-hero > .page-body { max-width: 720px; }
.static-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.static-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.static-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient, linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.25)));
  pointer-events: none;
}
.static-hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  max-width: 640px;
}
.static-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 8px;
}
.static-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}
.static-hero-lead {
  font-size: 15px;
  line-height: 1.55;
  opacity: .92;
  max-width: 560px;
  color: var(--white);
}
.page-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.page-contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.page-contact-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}
.page-contact-icon { font-size: 24px; margin-bottom: 4px; }
.page-contact-card strong { font-size: 14px; font-weight: 800; }
.page-contact-card span:last-child { font-size: 12px; color: var(--gray-600); }
.bi-hero-banner { margin-bottom: 40px; align-items: flex-end; }
.bi-hero-banner .bi-status-card { margin-top: 16px; }
.bi-hero-banner .btn-lg { margin-top: 12px; }
.track-page .static-hero { margin-bottom: 24px; }
.track-page .track-form-enhanced { max-width: 480px; }
.page-body { font-size: 15px; line-height: 1.7; color: var(--gray-800); }
.page-body ul { margin: 16px 0 16px 0; padding-left: 20px; }
.page-body a { color: var(--red); text-decoration: underline; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.brand-chip { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.brand-chip:hover { box-shadow: var(--shadow); }
.brand-chip span { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.related-section, .reviews-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.related-section h2, .reviews-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.reviews-header {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}
.reviews-score-block { text-align: center; }
.reviews-avg {
  display: block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.reviews-stars-row { color: #f5a623; font-size: 16px; margin: 8px 0 4px; letter-spacing: 2px; }
.reviews-count { display: block; font-size: 13px; color: var(--gray-600); margin-top: 4px; }
.reviews-recommend {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.reviews-recommend strong { color: var(--black); font-size: 15px; }
.reviews-filters-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--gray-600);
}
.reviews-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.review-filter {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  cursor: default;
}
.review-filter.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.reviews-list { display: grid; gap: 20px; }
.review-card {
  border: 1px solid var(--gray-200);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.review-card .stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; }
.review-verified {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}
.review-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.review-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.review-card p { font-size: 14px; line-height: 1.55; color: var(--gray-800); }

/* Collection landing pages */
.landing-page-wrap { max-width: 1248px; padding-bottom: 48px; }
.landing-hero {
  margin: 8px 0 32px;
  padding: 48px 40px;
  border-radius: var(--radius);
  color: var(--white);
}
.landing-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 12px;
}
.landing-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.landing-hero p { font-size: 15px; opacity: .92; max-width: 560px; line-height: 1.5; }
.landing-hero-clean { background: linear-gradient(135deg, #2d5a3d, #1a3d28); }
.landing-hero-exclusive { background: linear-gradient(135deg, #4a1942, #7b2d5e); }
.landing-hero-summer { background: linear-gradient(135deg, #c0392b, #e67e22); }
.landing-hero-mini { background: linear-gradient(135deg, #1a1a2e, #533483); }
.landing-hero-gifts { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.landing-products .section-head { margin-bottom: 16px; }
.landing-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.landing-loading {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--gray-600);
}
.landing-fallback-notice {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--gray-600);
  padding: 8px 0 4px;
  margin: 0;
}
.landing-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.landing-empty-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.landing-empty-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 20px;
}
.landing-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.landing-empty-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--black);
  transition: background .15s;
}
.landing-empty-link:hover {
  background: var(--black);
  color: var(--white);
}
.shipping-info { font-size: 13px; color: var(--gray-600); margin: 16px 0; padding: 12px; background: var(--gray-50); border-radius: var(--radius); }
.product-rating-link { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; }
.product-rating-link a { text-decoration: underline; }
.track-form label { display: block; margin: 16px 0; font-weight: 600; }
.track-form input { width: 100%; padding: 12px; margin-top: 6px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.track-result { margin-top: 16px; font-weight: 600; color: var(--red); }
.nav-dropdown a { display: block; font-size: 12px; padding: 8px 0; color: var(--black); font-weight: 600; }
.nav-dropdown a:hover { color: var(--red); }
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
}
.search-suggestions:empty {
  display: none;
}
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--gray-100); font-size: 12px; }
.suggest-item:hover { background: var(--gray-50); }
.suggest-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.suggest-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.suggest-thumb .brand-initial,
.suggest-thumb .product-img-placeholder { font-size: 11px; min-height: 100%; border-radius: var(--radius); }
.price-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.price-filter input { width: 72px; padding: 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; }
.promo-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-row input { flex: 1; padding: 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; }
.promo-msg { font-size: 11px; color: var(--red); margin-bottom: 8px; min-height: 16px; }
.store-list {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.store-option {
  display: flex; flex-direction: column; align-items: flex-start; padding: 14px;
  border: 1px solid var(--gray-200); border-radius: var(--radius); text-align: left; width: 100%;
}
.store-option.active { border-color: var(--black); background: var(--gray-50); }
.store-option span { font-size: 12px; color: var(--gray-600); margin-top: 2px; }
.hide { display: none !important; }

/* Gift Cards page — sephora.com/beauty/giftcards */
.gift-cards-page-wrap {
  max-width: 1248px;
}
.gift-cards-page-wrap.static-page,
.gift-cards-page-wrap {
  max-width: 1248px;
}
.gift-cards-page {
  padding: 8px 0 64px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
}
.gc-breadcrumb {
  font-size: 12px;
  color: var(--gray-600);
  padding: 8px 0 16px;
  line-height: 1.25;
}
.gc-breadcrumb a { color: var(--gray-600); text-decoration: underline; }
.gc-breadcrumb a:hover { color: var(--black); }
.gc-hero {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fed7ac;
}
.gc-hero--banner { min-height: 220px; }
.gc-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-hero--banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(254,215,172,.88) 0%, rgba(200,120,80,.55) 100%);
}
.gc-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
}
.gc-hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.gc-hero p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}
.gc-quick-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scrollbar-width: none;
}
.gc-quick-links::-webkit-scrollbar { display: none; }
.gc-pill {
  flex: 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  background: var(--white);
  text-decoration: none;
  color: var(--black);
}
.gc-pill span {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.gc-pill:hover { opacity: 0.85; }
.gc-section { margin-bottom: 32px; }
.gc-section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 24px 0 16px;
}
.gc-section-title--plain {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
}
.gc-egift-grid {
  display: flex;
  gap: 24px;
  list-style: none;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gc-egift-grid::-webkit-scrollbar { display: none; }
.gc-egift-card {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-egift-img-link {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.gc-egift-img-link img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 290 / 174;
  object-fit: cover;
}
.gc-buy-now {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
}
.gc-buy-now:hover { text-decoration: underline; }
.gc-physical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}
.gc-physical-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 12px;
  position: relative;
}
.gc-physical-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  line-height: 0;
}
.gc-physical-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gc-physical-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 10px;
  color: var(--black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gc-physical-name:hover { text-decoration: underline; }
.gc-quicklook {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 52px;
  padding: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
  cursor: pointer;
}
.gc-physical-card:hover .gc-quicklook { opacity: 1; }
.gc-corporate {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 32px 0;
  background: var(--white);
}
.gc-corporate-media {
  flex: 0 0 50%;
  line-height: 0;
}
.gc-corporate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.gc-corporate-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
}
.gc-corporate-copy h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.gc-corporate-copy p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.gc-cta-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}
.gc-cta-link:hover { text-decoration: underline; }
.gc-balance {
  background: var(--near-white);
  padding: 24px;
  border-radius: 4px;
}
.gc-balance-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.gc-balance-head h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gc-balance-head p {
  font-size: 14px;
  color: var(--gray-600);
}
.gc-balance-icon { flex-shrink: 0; }
.gc-balance-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}
.gc-balance-field {
  flex: 0 0 272px;
  max-width: 100%;
}
.gc-balance-field label {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.gc-balance-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--gray-200);
  font-size: 14px;
  outline: none;
}
.gc-balance-field input:focus { border-color: var(--black); }
.gc-balance-btn {
  height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gc-balance-btn:hover { opacity: 0.88; }
.gc-balance-note {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}
.gc-balance-note.is-error { color: var(--red); font-weight: 600; }
.gc-balance-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}
.gc-balance-disclaimer a { color: var(--black); text-decoration: underline; }
.gc-faq-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fed7ac;
  border-radius: 4px;
  padding: 24px 32px;
  margin: 32px 0;
  text-decoration: none;
  color: var(--black);
}
.gc-faq-banner:hover { opacity: 0.95; }
.gc-faq-banner img { flex-shrink: 0; width: 100px; height: auto; }
.gc-faq-copy h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gc-faq-copy p {
  font-size: 14px;
  margin-bottom: 8px;
}
.gc-redeem-section { margin-top: 8px; }
.gc-redeem-wrap {
  position: relative;
  padding-right: 28px;
}
.gc-redeem-row.carousel-row { padding-left: 0; }
.gc-seo {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
}
.gc-faq-page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.gc-faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.gc-faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gc-faq-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
}
.gc-faq-item a { color: var(--red); text-decoration: underline; }

@media (max-width: 992px) {
  .gc-physical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-corporate { flex-direction: column; }
  .gc-corporate-media { flex: none; }
}
@media (max-width: 768px) {
  #viewPage #pageContainer.container,
  #viewPage .gift-cards-page-wrap,
  #viewPage .buying-guides-wrap,
  #viewPage .buying-guide-wrap,
  #viewPage .services-page-wrap,
  #viewPage .stores-page-wrap,
  #viewPage .bopis-page-wrap,
  #viewPage .landing-page-wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  #viewProduct .container.product-page {
    padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  }
  .static-page { padding-top: 24px; padding-bottom: 48px; }
  .static-hero { margin-left: 0; margin-right: 0; border-radius: var(--radius); }
  .static-hero-inner {
    padding: 28px max(16px, env(safe-area-inset-left, 0px)) 28px max(16px, env(safe-area-inset-right, 0px));
  }
  .static-hero h1 { font-size: 24px; }
  .page-body,
  .track-page,
  .services-page,
  .stores-page,
  .bopis-page,
  .buying-guide-page,
  .gift-cards-page,
  .gc-corp-page {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-hero { padding: 24px 16px; }
  .gc-hero-copy { padding: 24px 16px; }
  .gc-hero h1 { font-size: 20px; }
  .gc-pill span { font-size: 14px; padding: 0 12px; }
  .gc-egift-card { flex-basis: 240px; }
  .gc-balance-form { flex-direction: column; align-items: stretch; }
  .gc-balance-field { flex: 1 1 auto; }
  .gc-faq-banner { flex-direction: column; text-align: center; padding: 24px 16px; }
  .gc-corporate-copy { padding: 24px 20px; }
}

/* ── Servicios & Eventos ── */
.services-page-wrap,
.stores-page-wrap,
.bopis-page-wrap {
  max-width: 1100px;
}
.services-page-wrap.static-page,
.stores-page-wrap.static-page,
.bopis-page-wrap.static-page {
  max-width: 1100px;
}
.services-hero,
.stores-hero,
.bopis-hero {
  text-align: center;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
}
.services-eyebrow,
.bopis-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.services-hero h1,
.stores-hero h1,
.bopis-hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.services-lead,
.stores-lead,
.bopis-lead {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s;
}
.service-card:hover { box-shadow: var(--shadow); }
.service-card-icon { font-size: 32px; margin-bottom: 4px; }
.service-card h2 { font-size: 18px; font-weight: 800; }
.service-card-sub { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.service-card-desc { font-size: 13px; color: var(--gray-800); line-height: 1.55; flex: 1; }
.service-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.service-price { color: var(--red); }
.service-card .btn-lg { width: 100%; text-align: center; font-size: 12px; padding: 12px 16px; }
.services-faq { margin-bottom: 32px; }
.services-faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.services-faq-list { display: grid; gap: 8px; }
.services-faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.services-faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.services-faq-item summary::-webkit-details-marker { display: none; }
.services-faq-item summary::after { content: '+'; float: right; font-weight: 400; }
.services-faq-item[open] summary::after { content: '−'; }
.services-faq-item p {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.services-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.services-cta-bar p { font-size: 14px; font-weight: 600; }

/* ── Localizador de tiendas ── */
.stores-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: stretch;
}
.stores-map-wrap {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.stores-map {
  flex: 1;
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  z-index: 0;
}
.stores-map .leaflet-control-zoom a {
  color: var(--black);
  border-color: var(--gray-200);
}
.stores-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, .85);
}
.stores-map-marker {
  background: none;
  border: none;
}
.stores-map-pin {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.stores-map-pin.is-active {
  background: var(--red, #cf112c);
  transform: rotate(-45deg) scale(1.15);
}
.stores-map-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.stores-map-popup .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.stores-map-popup strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}
.stores-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}
.store-card.is-map-active {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}
.stores-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.stores-filter label { font-size: 13px; font-weight: 700; }
.stores-filter select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
}
.stores-list { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; }
.store-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}
.store-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.store-card h3 { font-size: 15px; font-weight: 800; }
.store-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--black);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.store-badge-soon {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.bopis-coming-soon { margin-bottom: 24px; }
.store-address,
.store-hours,
.store-phone { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; line-height: 1.5; }
.store-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── BOPIS / Comprá en tu tienda ── */
.bopis-steps,
.bopis-benefits,
.bopis-faq { margin-bottom: 40px; }
.bopis-steps h2,
.bopis-benefits h2,
.bopis-faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.bopis-step-list {
  padding-left: 20px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
}
.bopis-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.bopis-benefit {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.bopis-benefit span { font-size: 28px; display: block; margin-bottom: 8px; }
.bopis-benefit h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.bopis-benefit p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.bopis-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-bottom: 32px;
}

/* ── Store modal mejorado ── */
.modal-box-store {
  width: min(480px, 100%);
  max-height: min(90dvh, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.store-modal-head { flex-shrink: 0; }
.store-modal-head .modal-sub { margin-bottom: 12px; }
.store-coming-soon-banner {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 16px;
  line-height: 1.45;
}
#storeModal .store-list {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.store-option-hours { font-size: 11px !important; color: var(--gray-400) !important; }
.store-all-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  margin-top: 12px;
  padding: 8px;
}
.store-all-link:hover { color: var(--red-dark); }

/* ── AI Beauty Chat drawer ── */
.ai-chat-drawer { z-index: 202; width: min(420px, 100vw); }
.ai-chat-head .ai-chat-sub { font-size: 11px; color: var(--gray-600); font-weight: 400; margin-top: 2px; }
.ai-chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
}
.ai-msg { display: flex; gap: 8px; align-items: flex-end; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ai-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.ai-msg-bot .ai-msg-bubble {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.ai-msg-bubble a { color: inherit; text-decoration: underline; }
.ai-msg-bot .ai-msg-bubble a { color: var(--red); }
.ai-typing .ai-msg-bubble {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
}
.ai-typing .ai-msg-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: ai-dot 1.2s infinite;
}
.ai-typing .ai-msg-bubble span:nth-child(2) { animation-delay: .2s; }
.ai-typing .ai-msg-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-dot {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}
.ai-chat-suggestions {
  flex-shrink: 0;
  max-height: min(38vh, 280px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--gray-100);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ai-chat-suggestions::-webkit-scrollbar { width: 4px; }
.ai-chat-suggestions::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}
.ai-chat-suggest-category + .ai-chat-suggest-category {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}
.ai-chat-suggest-category-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.ai-chat-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-chat-suggest {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ai-chat-suggest:hover,
.ai-chat-suggest:focus-visible {
  background: var(--gray-100);
  border-color: var(--gray-300);
  outline: none;
}
.ai-chat-foot { padding: 12px 16px; flex-shrink: 0; }
.ai-chat-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-chat-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  outline: none;
}
.ai-chat-form input:focus { border-color: var(--black); }
.ai-chat-disclaimer { font-size: 10px; color: var(--gray-400); line-height: 1.4; }
.ai-chat-disclaimer a { color: var(--red); text-decoration: underline; }

/* ── Modal reserva servicios ── */
.reserve-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.reserve-form input,
.reserve-form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
}
.reserve-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
}
.reserve-checkbox input { width: auto; margin: 0; }
.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.reserve-actions .btn-lg { flex: 1; min-width: 140px; text-align: center; }

@media (max-width: 768px) {
  #storeModal {
    place-items: end center;
    padding: 0;
  }
  #storeModal .modal-box-store {
    width: 100%;
    max-height: calc(100dvh - var(--header-h-mobile) - 8px);
    border-radius: 12px 12px 0 0;
    padding: 24px 16px 12px;
  }
  .services-hero h1,
  .stores-hero h1,
  .bopis-hero h1 { font-size: 26px; }
  .stores-layout { grid-template-columns: 1fr; }
  .stores-map-wrap { min-height: 280px; }
  .stores-map { min-height: 280px; }
  .services-cta-bar { flex-direction: column; text-align: center; }
  .bopis-cta { flex-direction: column; align-items: stretch; }
  .bopis-cta .btn-lg { text-align: center; }
  .reserve-actions { flex-direction: column; }
}

/* Beauty Insider & account ecosystem */
.static-page-wide { max-width: var(--container); }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}
.modal-box-wide { width: min(720px, 100%); padding: 28px; }
.modal-box-checkout { width: min(480px, 100%); }
.modal-box-checkout-full {
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: 28px 32px 32px;
}
.checkout-stepper {
  position: relative;
  margin-bottom: 28px;
  padding: 0 4px;
}
.checkout-stepper-list {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.checkout-stepper-track {
  position: absolute;
  top: 16px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.checkout-stepper-progress {
  display: block;
  height: 100%;
  width: 0;
  background: var(--black);
  transition: width .35s ease;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
  min-width: 0;
}
.checkout-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: border-color .25s, background .25s, color .25s;
}
.checkout-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.checkout-step--active .checkout-step-num {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.checkout-step--active .checkout-step-label { color: var(--black); }
.checkout-step--done .checkout-step-num {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.checkout-step--done .checkout-step-num::after { content: '✓'; font-size: 14px; }
.checkout-step--done .checkout-step-num { font-size: 0; }
.checkout-step--done .checkout-step-label { color: var(--black); }
.checkout-step-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.checkout-step-sub { margin-bottom: 20px; }
.checkout-payment-options { display: grid; gap: 10px; }
.checkout-fieldset label.checkout-pay-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 108px;
  padding: 12px 16px 14px;
  margin-bottom: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.checkout-fieldset label.checkout-pay-option:has(input:checked) {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}
.checkout-fieldset label.checkout-pay-option input[type="radio"] {
  margin: 0;
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
  accent-color: var(--black);
}
.checkout-pay-option-body {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex: 1;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}
.checkout-pay-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 4px;
}
.checkout-pay-option-body strong {
  display: block;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 0;
  flex-shrink: 0;
}
.checkout-pay-head strong {
  display: inline-block;
  white-space: nowrap;
}
.checkout-pay-brands {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
}
.checkout-pay-brands img {
  height: 27px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
}
@media (max-width: 480px) {
  .checkout-pay-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .checkout-pay-brands {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
  }
  .checkout-pay-brands img {
    height: 24px;
    max-width: 42px;
  }
}
.checkout-card-type-fieldset { margin-bottom: 16px; }
.checkout-card-type-pills {
  display: flex;
  gap: 10px;
  width: 100%;
}
.checkout-fieldset label.checkout-card-type-pill {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 0;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.checkout-fieldset label.checkout-card-type-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.checkout-fieldset label.checkout-card-type-pill:has(input:checked) {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
  box-shadow: 0 0 0 1px var(--black);
}
.checkout-fieldset label.checkout-card-type-pill:has(input:focus-visible) {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.checkout-debit-note {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.checkout-debit-note[hidden],
#checkoutInstallmentsWrap[hidden] { display: none !important; }
.checkout-pay-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.checkout-installment-preview {
  font-size: 13px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 4px;
}
.checkout-transfer-box {
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.checkout-transfer-box h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}
.checkout-transfer-box > p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 16px;
}
.checkout-transfer-data {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.checkout-transfer-data > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}
.checkout-transfer-data dt {
  font-weight: 700;
  color: var(--gray-600);
}
.checkout-transfer-data dd { margin: 0; }
.checkout-transfer-data code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  word-break: break-all;
}
.checkout-transfer-note {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.checkout-transfer-note a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}
.checkout-transfer-note a:hover { color: var(--red); }
.checkout-installment-line { font-weight: 600; color: var(--black); }
.checkout-payment-summary {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 28px;
  align-items: start;
}
.checkout-form-col { min-width: 0; }
.checkout-summary-col {
  position: sticky;
  top: 0;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.checkout-summary-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}
.checkout-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.checkout-fieldset legend {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  padding: 0;
}
.checkout-fieldset label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.checkout-fieldset label:last-child { margin-bottom: 0; }
.checkout-fieldset input,
.checkout-fieldset select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
}
.checkout-fieldset input:focus,
.checkout-fieldset select:focus {
  outline: none;
  border-color: var(--black);
}
.checkout-fieldset input.is-invalid,
.checkout-fieldset select.is-invalid {
  border-color: var(--red);
}
.checkout-row { display: grid; gap: 12px; }
.checkout-row-2 { grid-template-columns: 1fr 1fr; }
.checkout-shipping-options { display: grid; gap: 10px; }
.checkout-ship-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.checkout-ship-option:has(input:checked) {
  border-color: var(--black);
  background: var(--gray-50);
}
.checkout-ship-option input {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
}
.checkout-ship-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}
.checkout-ship-option-body strong {
  font-size: 14px;
  color: var(--black);
}
.checkout-ship-option-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.checkout-soon-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.checkout-ship-option--disabled {
  cursor: not-allowed;
  opacity: .72;
  background: var(--gray-50);
}
.checkout-ship-option--disabled:has(input:checked) {
  border-color: var(--gray-200);
  background: var(--gray-50);
}
.checkout-pickup-wrap { margin-top: 12px; }
.checkout-pickup-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.checkout-pickup-wrap select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
}
.checkout-form-error {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}
.checkout-shipping-address {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.signin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.signin-benefits h2 { font-size: 22px; margin-bottom: 4px; }
.bi-perks-list {
  list-style: none;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
.bi-perks-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.bi-perks-list li:last-child { border-bottom: 0; }
.bi-learn-more { font-size: 13px; font-weight: 700; text-decoration: underline; }
.signin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 16px; }
.signin-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.signin-tab.active { color: var(--black); border-bottom-color: var(--black); }
.signin-panel label + label { margin-top: 12px; }
.signin-bonus-note { font-size: 12px; color: var(--red); margin-top: 12px; font-weight: 600; }
.account-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.account-quick-links a { text-decoration: underline; }
.account-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.account-modal-bi { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.bi-tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 10px;
  border: 1px solid var(--tier-color, var(--gray-600));
  color: var(--tier-color, var(--gray-600));
  border-radius: 999px;
}
.bi-page { padding-bottom: 32px; }
.bi-hero { margin-bottom: 40px; }
.bi-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.bi-hero-sub { font-size: 16px; color: var(--gray-600); max-width: 560px; line-height: 1.6; }
.bi-status-card {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  max-width: 400px;
}
.bi-status-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bi-status-points { font-size: 15px; margin-bottom: 12px; }
.bi-status-points strong { font-size: 28px; font-weight: 800; }
.bi-tiers, .bi-earn, .bi-faq { margin-top: 48px; }
.bi-tiers h2, .bi-earn h2, .bi-faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.bi-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bi-tier-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}
.bi-tier-card.is-current { border-color: var(--black); box-shadow: var(--shadow); }
.bi-tier-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bi-tier-head h3 { font-size: 20px; font-weight: 800; color: var(--tier-color, var(--black)); }
.bi-current-tag { font-size: 10px; font-weight: 700; background: var(--black); color: var(--white); padding: 3px 8px; border-radius: 999px; }
.bi-tier-req { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.bi-tier-card ul { list-style: none; font-size: 13px; line-height: 1.7; }
.bi-tier-card li::before { content: '✓ '; color: var(--red); font-weight: 700; }
.bi-earn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bi-earn-item {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 13px;
}
.bi-earn-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.bi-earn-item strong { display: block; margin-bottom: 4px; font-size: 14px; }
.bi-earn-item p { color: var(--gray-600); line-height: 1.5; }
.bi-faq-list { display: grid; gap: 0; }
.bi-faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.bi-faq-item summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.bi-faq-item p { margin-top: 10px; font-size: 14px; color: var(--gray-800); line-height: 1.6; }
.rewards-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.rewards-intro { font-size: 15px; color: var(--gray-600); margin-bottom: 8px; }
.rewards-balance { font-size: 15px; margin-bottom: 24px; }
.rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.rewards-loading, .rewards-empty, .orders-empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--gray-600); }
.reward-points-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  margin: 6px 0;
}
.reward-card .reward-redeem-btn { width: 100%; margin-top: 6px; }
.orders-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.orders-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 24px; }
.orders-guest-cta {
  padding: 32px;
  background: var(--gray-50);
  border-radius: var(--radius);
  text-align: center;
  max-width: 480px;
}
.orders-guest-cta p { margin-bottom: 16px; font-size: 15px; line-height: 1.6; }
.orders-guest-note { font-size: 13px; color: var(--gray-600); margin-top: 12px; }
.orders-list { display: grid; gap: 16px; max-width: 640px; }
.order-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.order-date { display: block; font-size: 12px; color: var(--gray-600); font-weight: 400; margin-top: 2px; }
.order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.order-status-delivered { background: #e8f5e9; color: #2e7d32; }
.order-status-shipped, .order-status-out_for_delivery { background: #e3f2fd; color: #1565c0; }
.order-status-preparing { background: #fff3e0; color: #e65100; }
.order-status-confirmed { background: var(--gray-100); color: var(--gray-800); }
.order-items { list-style: none; font-size: 13px; color: var(--gray-800); margin-bottom: 12px; }
.order-items li { padding: 4px 0; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; }
.account-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.account-sidebar {
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.account-profile-mini { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.account-points-mini { font-size: 13px; margin-top: 12px; color: var(--gray-600); }
.account-form h2 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.account-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.account-form input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
}
.account-bi-summary {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}
.account-bi-summary h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.account-bi-summary a { color: var(--red); text-decoration: underline; }
.track-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.track-intro { font-size: 15px; color: var(--gray-600); margin-bottom: 8px; line-height: 1.6; }
.track-form-enhanced { max-width: 400px; }
.track-result-wrap { margin-top: 32px; }
.track-error { color: var(--red); font-weight: 600; font-size: 14px; }
.track-found {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 560px;
}
.track-found-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.track-found-head span { display: block; font-size: 13px; color: var(--gray-600); font-weight: 400; margin-top: 4px; }
.track-carrier { font-size: 13px; margin-bottom: 20px; color: var(--gray-600); }
.track-timeline {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.track-step {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
  font-size: 14px;
}
.track-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.track-step.is-done:not(:last-child)::before { background: var(--black); }
.track-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}
.track-step.is-done .track-dot { border-color: var(--black); background: var(--black); }
.track-step.is-active .track-dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 3px rgba(207,17,44,.2); }
.track-step p { font-size: 13px; color: var(--gray-600); margin-top: 4px; line-height: 1.5; }
.track-help { font-size: 13px; margin-top: 16px; }
.track-help a { color: var(--red); text-decoration: underline; }
.checkout-summary { margin-bottom: 20px; }
.checkout-lines { display: grid; gap: 8px; font-size: 14px; }
.checkout-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.checkout-line-item {
  align-items: center;
  gap: 12px;
}
.checkout-item-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.checkout-item-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.checkout-item-thumb .product-img-placeholder { font-size: 12px; min-height: 100%; border-radius: var(--radius); }
.checkout-item-desc {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}
.checkout-item-price {
  font-weight: 700;
  white-space: nowrap;
}
.checkout-subtotal { font-size: 13px; color: var(--gray-600); }
.checkout-line span:first-child { flex: 1; min-width: 0; }
.checkout-meta { font-size: 12px; color: var(--gray-600); }
.checkout-discount { color: var(--red); }
.checkout-total { border-bottom: 0; font-size: 16px; padding-top: 12px; }
.checkout-bi-note { font-size: 13px; color: var(--gray-600); margin-bottom: 16px; }
.checkout-scroll-dir {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  width: max-content;
  max-width: calc(100vw - 32px);
  z-index: 260;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}
.checkout-scroll-dir.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.checkout-scroll-dir[hidden] { display: none !important; }
#checkoutModal:not(.open) .checkout-scroll-dir,
#checkoutModal:not(.open) .checkout-scroll-top {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.checkout-scroll-dir-track {
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
}
.checkout-scroll-dir-progress {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--black);
  transition: width 0.12s ease-out;
}
.checkout-scroll-dir-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .checkout-scroll-dir-btn {
    border-top: 0;
    background: var(--white);
    color: var(--black);
  }
}
@media (max-width: 768px) {
  .checkout-scroll-dir-track {
    display: none;
  }
}
.checkout-scroll-dir-btn:hover {
  background: var(--black);
  color: var(--white);
}
.checkout-scroll-dir-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.checkout-scroll-dir-icon {
  flex-shrink: 0;
}
.checkout-scroll-dir--up .checkout-scroll-dir-btn {
  background: var(--black);
  color: var(--white);
}
.checkout-scroll-dir--up .checkout-scroll-dir-btn:hover {
  background: var(--white);
  color: var(--black);
}
.checkout-scroll-dir--up .checkout-scroll-dir-track {
  background: rgba(255, 255, 255, 0.2);
}
.checkout-scroll-dir--up .checkout-scroll-dir-progress {
  background: var(--white);
}
@media (min-width: 769px) {
  .checkout-scroll-dir {
    left: auto;
    right: 24px;
    width: min(360px, calc(100vw - 48px));
    max-width: none;
    bottom: 24px;
    border-radius: var(--radius);
    transform: translateY(8px);
  }
  .checkout-scroll-dir.is-visible {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-scroll-dir {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }
  .checkout-scroll-dir.is-visible { transform: none; }
  .checkout-scroll-dir-progress { transition: none; }
}
.checkout-scroll-top {
  position: fixed;
  left: 50%;
  bottom: calc(var(--mobile-nav-stack, 0px) + 16px);
  z-index: 260;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, background 0.15s ease;
}
.checkout-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.checkout-scroll-top:hover {
  background: var(--black);
  color: var(--white);
}
.checkout-scroll-top:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
@media (min-width: 769px) {
  .checkout-scroll-top {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-scroll-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: translateX(-50%);
  }
  .checkout-scroll-top.is-visible {
    transform: translateX(-50%);
  }
}
.checkout-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.checkout-actions[hidden] { display: none !important; }
.checkout-actions-stack { flex-direction: column; }
.checkout-actions-stack .btn-lg { width: 100%; text-align: center; margin-left: 0; }
.checkout-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.checkout-order-id { margin-bottom: 16px; font-size: 14px; }
.checkout-order-id span { display: block; font-size: 12px; color: var(--gray-600); margin-bottom: 4px; }
.checkout-order-id strong { font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.checkout-confirmed-items { list-style: none; font-size: 13px; margin-bottom: 12px; color: var(--gray-800); }
.checkout-confirmed-items li { padding: 4px 0; }
.checkout-confirmed-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 8px; }
.checkout-points-earned { font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.checkout-estimate { font-size: 13px; color: var(--gray-600); }

.checkout-payment-state {
  padding: 8px 0 4px;
  text-align: center;
}
.checkout-payment-state[hidden] { display: none !important; }
.checkout-payment-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px 16px;
}
.checkout-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: checkout-spin 0.85s linear infinite;
  margin-bottom: 24px;
}
@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}
.checkout-payment-processing .checkout-step-title {
  margin-bottom: 8px;
}
.checkout-payment-processing .checkout-step-sub {
  max-width: 320px;
  margin: 0 auto;
}
.checkout-declined-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fce8ec;
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.checkout-declined-sub {
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.checkout-declined-actions {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

/* Visa 3D Secure flow */
.checkout-visa3ds-state {
  text-align: left;
  padding: 0;
}
.visa-processing-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px 24px;
}
.visa-processing-logo {
  width: 120px;
  height: auto;
  margin-bottom: 32px;
}
.visa-processing-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8eaf0;
  border-top-color: #1a1f71;
  border-radius: 50%;
  animation: checkout-spin 0.85s linear infinite;
  margin-bottom: 20px;
}
.visa-processing-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1f71;
  margin: 0;
}
.visa3ds-screen {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.visa3ds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8eaf0;
}
.visa3ds-logo {
  width: 72px;
  height: auto;
  display: block;
}
.visa3ds-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #8c919a;
  cursor: pointer;
  padding: 4px 6px;
  margin: -4px -6px -4px 0;
}
.visa3ds-close:hover { color: #4a4f57; }
.visa3ds-body {
  padding: 20px 20px 24px;
}
.visa3ds-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1f71;
  margin: 0 0 16px;
  line-height: 1.25;
}
.visa3ds-intro,
.visa3ds-merchant {
  font-size: 14px;
  line-height: 1.55;
  color: #4a4f57;
  margin: 0 0 12px;
}
.visa3ds-merchant strong {
  color: #1a1f71;
  font-weight: 700;
}
.visa3ds-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1f71;
  margin: 20px 0 8px;
}
.visa3ds-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #c5cad3;
  border-radius: 8px;
  color: #1a1f71;
  background: #fff;
  box-sizing: border-box;
}
.visa3ds-input::placeholder { color: #a0a5ae; }
.visa3ds-input:focus {
  outline: none;
  border-color: #1a1f71;
  box-shadow: 0 0 0 2px rgba(26, 31, 113, 0.12);
}
.visa3ds-input.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.12);
}
.visa3ds-field-error {
  font-size: 12px;
  color: var(--red);
  margin: 6px 0 0;
}
.visa3ds-help {
  margin: 16px 0 24px;
}
.visa3ds-help-trigger {
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.visa3ds-help-trigger::-webkit-details-marker { display: none; }
.visa3ds-help-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #1565c0;
  transition: transform 0.2s ease;
}
.visa3ds-help[open] .visa3ds-help-trigger::after {
  transform: rotate(180deg);
}
.visa3ds-help-panel {
  margin-top: 12px;
  padding: 14px 16px;
  background: #f4f5f7;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a4f57;
}
.visa3ds-help-panel p { margin: 0 0 10px; }
.visa3ds-help-panel p:last-child { margin-bottom: 0; }
.visa3ds-help-panel ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.visa3ds-help-panel li { margin-bottom: 4px; }
.visa3ds-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #1a1f71;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.visa3ds-submit:hover { background: #14185c; }
.visa3ds-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .signin-layout { grid-template-columns: 1fr; }
  .signin-benefits { display: none; }
  .bi-tier-grid { grid-template-columns: 1fr; }
  .bi-earn-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .rewards-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-actions { flex-direction: column; }
  .checkout-actions .btn-lg { width: 100%; margin-left: 0; }
  .modal-box-checkout-full {
    padding: 20px var(--page-gutter) calc(88px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
  }
  .checkout-layout { grid-template-columns: 1fr; gap: 20px; }
  .checkout-summary-col { position: static; order: -1; }
  .checkout-row-2 { grid-template-columns: 1fr; }
  .checkout-stepper { margin-bottom: 20px; }
  .checkout-step-label { font-size: 10px; }
  .checkout-step-num { width: 28px; height: 28px; font-size: 12px; }
  .checkout-stepper-track { top: 14px; left: 12%; right: 12%; }
  .checkout-step-title { font-size: 20px; }
  .checkout-transfer-data > div { grid-template-columns: 1fr; gap: 2px; }
  .checkout-payment-processing { min-height: 240px; padding: 24px 8px; }
  .checkout-declined-sub { padding: 0 4px; }
  .checkout-declined-actions { max-width: none; }
  .visa-processing-screen { min-height: 260px; padding: 32px 16px; }
  .visa3ds-body { padding: 18px 16px 20px; }
  .visa3ds-title { font-size: 20px; }
  .visa3ds-header { padding: 14px 16px 10px; }
}

/* Buying Guides hub & pages */
.buying-guides-wrap,
.buying-guide-wrap {
  max-width: 1248px;
}
.bg-breadcrumb {
  font-size: 12px;
  color: var(--gray-600);
  padding: 8px 0 16px;
  line-height: 1.25;
}
.bg-breadcrumb a { color: var(--gray-600); text-decoration: underline; }
.bg-breadcrumb a:hover { color: var(--black); }
.bg-hub-hero {
  text-align: center;
  padding: 0 0 40px;
  max-width: 100%;
  margin: 0 auto 8px;
}
.bg-hub-hero--banner { padding-bottom: 40px; }
.bg-hub-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 3 / 1;
  max-height: 320px;
  background: var(--gray-100);
}
.bg-hub-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bg-hub-hero-copy {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.bg-hub-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.bg-hub-hero p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}
.bg-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.bg-guide-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.bg-guide-card:hover { box-shadow: var(--shadow); }
.bg-guide-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.bg-guide-card-img {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--gray-100);
}
.bg-guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bg-guide-card-body {
  padding: 20px;
}
.bg-guide-card-body h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.bg-guide-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}
.bg-guide-cta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red);
}
.bg-hub-footer {
  text-align: center;
  padding: 40px 16px 64px;
  border-top: 1px solid var(--gray-200);
}
.bg-hub-footer h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.bg-hub-footer p {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 16px;
}
.bg-hub-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.buying-guide-page {
  padding: 8px 0 64px;
}
.bg-guide-hero {
  margin-bottom: 32px;
}
.bg-guide-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.bg-guide-hero-copy h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.bg-guide-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-800);
}
.bg-guide-body {
  max-width: 720px;
}
.bg-guide-body p {
  margin-bottom: 16px;
}
.bg-guide-shop {
  margin-top: 32px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.bg-guide-shop h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.bg-guide-shop ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bg-guide-shop li {
  margin-bottom: 8px;
}
.bg-guide-shop a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
}
.bg-guide-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.bg-guide-nav a {
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: underline;
}
.bg-guide-nav a:hover { color: var(--black); }

/* Corporate Gift Cards page */
.gc-corp-page {
  padding: 8px 0 64px;
}
.gc-corp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.gc-corp-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.gc-corp-hero--banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
}
.gc-corp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-corp-hero--banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.65) 0%, rgba(40,40,40,.3) 100%);
}
.gc-corp-hero-copy {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  color: var(--white);
}
.gc-corp-hero--banner h1,
.gc-corp-hero--banner p { color: var(--white); }
.gc-corp-hero p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 32px;
}
.gc-corp-hero--banner p { color: rgba(255,255,255,.92); margin-bottom: 0; }
.gc-corp-benefits,
.gc-corp-tiers,
.gc-corp-contact {
  margin-bottom: 32px;
}
.gc-corp-benefits h2,
.gc-corp-tiers h2,
.gc-corp-contact h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.gc-corp-benefits ul,
.gc-corp-contact ul {
  padding-left: 20px;
  line-height: 1.8;
}
.gc-corp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.gc-corp-table th,
.gc-corp-table td {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  text-align: left;
}
.gc-corp-table th {
  background: var(--gray-50);
  font-weight: 700;
}
.gc-corp-sidebar img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.gc-corp-sidebar-box {
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.gc-corp-sidebar-box h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}
.gc-corp-sidebar-box ul {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
}
.gc-corp-faq-link {
  display: block;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  margin-top: 8px;
}

/* FAQ Gift Cards anchors */
.gc-faq-nav {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.gc-faq-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gc-faq-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
}
.gc-faq-item {
  scroll-margin-top: 80px;
}

/* Press room */
.press-page .press-lead {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.press-releases {
  display: grid;
  gap: 20px;
  margin: 24px 0 32px;
}
.press-release {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.press-release time {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.press-release h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 8px 0;
}
.press-release p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* Legal & footer pages */
.page-body h2 { font-size: 20px; font-weight: 800; margin: 28px 0 12px; }
.page-section { margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.page-section:first-of-type { border-top: none; padding-top: 0; margin-top: 16px; }
.page-section h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.page-section ol { margin: 12px 0; padding-left: 20px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; margin-top: 24px; }
.sitemap-col h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.sitemap-col ul { list-style: none; padding: 0; margin: 0; }
.sitemap-col li { margin-bottom: 8px; font-size: 14px; }
.sitemap-col a { color: var(--black); text-decoration: none; font-weight: 600; }
.sitemap-col a:hover { color: var(--red); text-decoration: underline; }
.privacy-form { margin: 24px 0; display: grid; gap: 12px; max-width: 420px; }
.privacy-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.privacy-toggle input { width: 18px; height: 18px; accent-color: var(--red); }
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.app-badge {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--black);
}
.app-badge:hover { border-color: var(--black); }
.track-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

@media (max-width: 992px) {
  .bg-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-corp-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bg-guide-grid { grid-template-columns: 1fr; }
  .bg-hub-hero h1 { font-size: 24px; }
  .bg-guide-hero-copy h1 { font-size: 24px; }
}

/* Mobile carousel sizing — must follow base .carousel-row rules */
@media (max-width: 768px) {
  .carousel-next,
  .home-beauty-offers .carousel-next {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .carousel-wrap,
  .home-beauty-offers .carousel-wrap {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    overflow-x: clip;
  }
  .carousel-row {
    gap: 8px;
    padding: 8px 0 calc(16px + var(--safari-ui-buffer, 0px));
    scroll-padding-inline: var(--page-gutter);
  }
  .carousel-row .product-card,
  .carousel-row .bi-reward-tile {
    flex: 0 0 var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 2.2));
    min-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 2.2));
    max-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 2.2));
  }
  .carousel-row .offer-card,
  .home-beauty-offers .offer-card {
    flex: 0 0 var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
    width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
    min-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
    max-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 48px) / 1.25));
  }
  .home-beauty-offers .offers-row {
    gap: 8px;
    padding: 4px 0 16px;
    scroll-padding-inline: var(--page-gutter);
  }
}

/* Desktop beauty offers — fixed card width, arrow visible */
@media (min-width: 769px) {
  .home-beauty-offers .carousel-wrap {
    padding-right: 44px;
    overflow: visible;
  }
  .home-beauty-offers .offer-card {
    flex: 0 0 var(--carousel-card-w, 282px);
    width: var(--carousel-card-w, 282px);
    min-width: var(--carousel-card-w, 282px);
    max-width: var(--carousel-card-w, 282px);
  }
}

/* ── Added to bag modal ── */
.modal-box-added-bag {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 0;
  border-radius: 8px;
}
.atb-header {
  position: relative;
  padding: 20px 48px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}
.atb-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}
.modal-box-added-bag .modal-close {
  top: 16px;
  right: 16px;
  font-size: 18px;
}
.atb-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px 32px;
  padding: 24px 32px;
  align-items: start;
}
.atb-item {
  display: flex;
  gap: 16px;
  min-width: 0;
}
.atb-item-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
}
.atb-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.atb-item-thumb .product-img-placeholder {
  font-size: 11px;
  padding: 4px;
  text-align: center;
}
.atb-item-body { flex: 1; min-width: 0; }
.atb-item-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.atb-item-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.atb-item-meta {
  font-size: 11px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.atb-item-variant {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.4;
}
.atb-item-price {
  font-size: 14px;
  font-weight: 700;
}
.atb-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.atb-subtotal {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.atb-subtotal-amount {
  font-size: 16px;
  font-weight: 700;
  margin-left: auto;
}
.atb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.atb-actions .btn-lg {
  width: 100%;
  text-align: center;
  margin: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.atb-actions .btn-lg.outline {
  border-width: 1.5px;
}
.atb-checkout {
  background: var(--red) !important;
  color: var(--white) !important;
  border: none !important;
}
.atb-checkout:hover { background: var(--red-dark) !important; }
.atb-info-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 32px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.atb-info-col {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
  padding: 0 8px;
}
.atb-info-col + .atb-info-col {
  border-left: 1px solid var(--gray-200);
}
.atb-info-col strong { color: var(--black); font-weight: 700; }
.atb-inbasket-link {
  color: #0066cc;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}
.atb-recommendations {
  padding: 24px 32px 28px;
}
.atb-rec-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px;
}
.atb-carousel-wrap {
  position: relative;
  padding: 0 36px;
}
.atb-carousel-wrap .carousel-prev,
.atb-carousel-wrap .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--black);
  border: none;
  cursor: pointer;
  padding: 0;
}
.atb-carousel-wrap .carousel-prev { left: 0; }
.atb-carousel-wrap .carousel-next { right: 0; }
.atb-carousel-wrap .carousel-prev svg,
.atb-carousel-wrap .carousel-next svg {
  width: 22px;
  height: 22px;
}
.atb-carousel-row {
  padding-left: 0;
  gap: 12px;
}
.atb-carousel-row .product-card.compact {
  scroll-snap-align: start;
}
.atb-recommendations.is-empty { display: none; }
@media (max-width: 768px) {
  .atb-top {
    grid-template-columns: 1fr;
    padding: 20px var(--page-gutter);
    gap: 20px;
  }
  .atb-summary { order: -1; }
  .atb-info-banner {
    grid-template-columns: 1fr;
    padding: 16px var(--page-gutter);
    gap: 12px;
  }
  .atb-info-col + .atb-info-col {
    border-left: none;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
  }
  .atb-recommendations { padding: 20px var(--page-gutter) 24px; }
  .atb-header { padding: 16px 40px 14px; }
  .atb-carousel-wrap {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
  .atb-carousel-wrap .carousel-prev,
  .atb-carousel-wrap .carousel-next { display: none; }
  .modal-box-added-bag {
    width: min(960px, calc(100vw - var(--page-gutter) * 2));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--page-gutter) * 2);
  }
}

/* ── Mobile padding & safe-area (global) ── */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--page-gutter);
  }

  .modal {
    padding: max(var(--page-gutter), env(safe-area-inset-top, 0px)) var(--page-gutter) max(var(--page-gutter), env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
    overflow-y: auto;
  }

  #checkoutModal.modal {
    place-items: start center;
    padding-bottom: max(var(--page-gutter), env(safe-area-inset-bottom, 0px));
  }

  .modal-box,
  .modal-box-wide,
  .modal-box-checkout,
  .modal-box-checkout-full {
    width: 100%;
  }

  .modal-box-checkout,
  .modal-box-checkout-full {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  /* Checkout en mobile: full-screen, sin bordes redondeados ni gaps */
  #checkoutModal {
    padding: 0;
  }
  #checkoutModal .modal-box-checkout-full {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }
  body:has(#checkoutModal.open) .mobile-bottom-nav {
    display: none !important;
  }

  .cart-drawer,
  .loves-drawer,
  .ai-chat-drawer {
    width: 100%;
    max-width: 100%;
  }

  .ai-chat-suggestions {
    max-height: min(42vh, 320px);
    padding: 8px var(--page-gutter) 10px;
  }

  .ai-chat-foot {
    padding: 12px var(--page-gutter);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .drawer-head {
    padding: 16px var(--page-gutter);
    padding-top: max(16px, env(safe-area-inset-top, 0px));
  }

  .footer-accordions.show-mobile-only {
    display: block;
  }

  .footer-legal.hide-mobile-only {
    display: block !important;
    padding: 20px 0 max(var(--mobile-nav-clearance), 20px);
  }

  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 10px;
    margin: 4px 0;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-service {
    padding: 16px var(--page-gutter);
  }

  .footer-services .footer-services-inner.container {
    padding-inline: 0;
  }

  .footer-accordion summary {
    padding: 16px var(--page-gutter);
  }

  .footer-accordion-panel {
    padding: 0 var(--page-gutter) 14px;
  }

  .catalog-toolbar,
  .filters {
    padding-inline: 0;
  }

  .container.catalog-header {
    padding-inline: var(--page-gutter);
  }

  .catalog-full-grid,
  .landing-products-grid,
  .products-row:not(.carousel-row) {
    padding-inline: 0;
  }

  .hero-tiles,
  .hero-skeleton,
  .home-bottom-carousel-track {
    padding-inline: var(--page-gutter);
    scroll-padding-inline: var(--page-gutter);
  }

  .home-category-chips {
    padding-inline: var(--page-gutter);
    scroll-padding-inline: var(--page-gutter);
  }

  .home-signin-banner {
    padding-inline: var(--page-gutter);
  }

  .carousel-wrap,
  .home-beauty-offers .carousel-wrap {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    overflow-x: clip;
  }

  .home-guidance-track {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
  }

  .home-recap-tabs {
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    scroll-padding-inline: var(--page-gutter);
  }

  .promo-bar {
    padding-inline: var(--page-gutter);
  }

  .header-main .container.header-top {
    padding-inline: var(--page-gutter);
  }
}

/* iPhone 12/13/14 width — tighter gutter, less paint work */
@media (max-width: 390px) {
  :root {
    --page-gutter: 14px;
  }

  .section {
    padding: 20px 0;
  }

  .home-carousel-section,
  .home-banner-row,
  .home-guidance,
  .home-bi-rewards,
  .home-bottom-carousel,
  .home-beauty-offers,
  .home-sections-deferred > .section {
    contain-intrinsic-size: auto 240px;
  }

  .skeleton-product-card {
    flex: 0 0 calc((100% - 14px) / 2.15);
    min-width: calc((100% - 14px) / 2.15);
  }

  .skeleton-offer-card {
    flex: 0 0 calc((100% - 14px) / 1.2);
    min-width: calc((100% - 14px) / 1.2);
    min-height: 260px;
  }

  .hero-skeleton-card {
    flex: 0 0 calc(var(--screen-w, 100vw) - 52px);
    min-width: calc(var(--screen-w, 100vw) - 52px);
  }

  .hero-banner {
    flex: 0 0 calc(var(--screen-w, 100vw) - 52px);
    min-width: calc(var(--screen-w, 100vw) - 52px);
  }

  .carousel-row .product-card,
  .carousel-row .bi-reward-tile {
    flex: 0 0 var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 2.2));
    min-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 2.2));
    max-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 2.2));
  }

  .carousel-row .offer-card,
  .home-beauty-offers .offer-card {
    flex: 0 0 var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 1.25));
    width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 1.25));
    min-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 1.25));
    max-width: var(--carousel-card-w, calc((var(--screen-w, 100vw) - 44px) / 1.25));
  }

  .product-card.compact,
  .bi-reward-tile,
  .offer-card {
    contain: strict;
  }

  .offer-card-body {
    min-height: 200px;
    padding: 12px 12px 14px;
  }

  .section-head h2,
  .home-recap-head h2,
  .home-guidance-head h2 {
    font-size: 17px;
  }
}
