﻿/**
 * VIP mobile storefront styles — independent from desktop.
 *
 * Contract:
 * - Edit THIS file for phone/tablet look & layout (max-width: 991px).
 * - Do NOT retune shared desktop rules in vip-design.css to "fix mobile".
 * - Desktop (≥992px) is owned by vip-design.css; this sheet must not change it.
 * - Mobile-only chrome (.vip-header-mobile, .vip-mnav) may be unscoped;
 *   homepage/product overrides must stay inside @media (max-width: 991px).
 */

/* --------------------------------------------------------------------------
   Mobile chrome (hidden on desktop via .hidden-lg-up)
   -------------------------------------------------------------------------- */

.vip-header-mobile__menu-btn .material-icons {
  font-size: 28px;
}

.vip-header-mobile {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: #fff;
}

.vip-header-mobile__actions {
  justify-content: flex-end;
  min-width: 0;
}

.vip-header-mobile__actions .user-info,
.vip-header-mobile__actions .blockcart,
.vip-header-mobile__actions .header {
  margin: 0;
}

/*
 * True optical centering: equal 1fr side tracks. Logo stays in the middle
 * column; sides are content-sized within their tracks (start / end).
 */
.vip-header-mobile__bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
  overflow: visible;
}

.vip-header-mobile__menu-btn {
  justify-self: start;
  padding: 0.15rem;
  flex-shrink: 0;
}

.vip-header-mobile__logo {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  line-height: 0;
  min-width: 0;
  max-width: min(168px, 46vw);
  overflow: hidden;
}

.vip-header-mobile__logo a {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.vip-header-mobile__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 32px;
}

.vip-header-mobile__actions {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  /* Keep cart badge inside the viewport under overflow-x: clip */
  padding-right: 0.35rem;
}

/* Icon-only tools on mobile — frees width so the logo cannot collide */
#header .vip-header-mobile .vip-header-user__link,
#header .vip-header-mobile .vip-header-cart__link {
  position: relative;
  gap: 0;
  min-width: 2.25rem;
  height: auto;
  min-height: 2.25rem;
  padding: 0.2rem 0.25rem;
  overflow: visible;
}

#header .vip-header-mobile .vip-header-user__icon {
  font-size: 1.35rem;
}

#header .vip-header-mobile .vip-header-cart__icon {
  width: 1.35rem;
  height: 1.35rem;
}

#header .vip-header-mobile .vip-header-user__label,
#header .vip-header-mobile .vip-header-cart__label {
  display: none;
}

/* Keep the cart badge on the cart icon — not floating into the tan strip */
#header .vip-header-mobile .vip-header-cart,
#header .vip-header-mobile .vip-header-cart__block,
#header .vip-header-mobile .vip-header-cart__header {
  position: relative;
  overflow: visible;
}

#header .vip-header-mobile .vip-header-cart__count {
  top: -0.15rem;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 3;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--vip-header-tan-dark, #b88d5f) !important;
  color: #fff !important;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  box-shadow: 0 0 0 2px #fff;
}

.vip-header-mobile__drawer {
  padding: 0.35rem 0 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-height: min(75vh, 40rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vip-header-mobile__drawer .js-top-menu-bottom {
  display: none;
}

.vip-mnav {
  display: block;
  padding: 0.35rem 0 0;
}

.vip-mnav__search {
  margin: 0 0 0.85rem;
}

.vip-mnav__search #search_widget,
.vip-mnav__search .search-widgets.vip-header-search {
  float: none !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex-basis: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none;
}

.vip-mnav__search .vip-header-search .search-widget,
.vip-mnav__search .vip-header-search form,
.vip-mnav__search .vip-header-search__form {
  width: 100%;
  margin: 0 !important;
}

/* Same pill as desktop header search — button stays inside the field */
.vip-mnav__search .vip-header-search__form {
  display: flex;
  align-items: center;
  height: 2.6rem;
  border: 1px solid var(--vip-header-tan, #d5a17d);
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  box-sizing: border-box;
  box-shadow: none;
}

.vip-mnav__search .vip-header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 1%;
  height: 100%;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0.35rem 0 1.05rem;
  font-family: var(--vip-font-body);
  font-size: 1rem;
  line-height: 1;
  color: var(--vip-text, #1d1d1d);
  background: transparent !important;
  appearance: none;
}

.vip-mnav__search .vip-header-search__input::placeholder {
  color: rgba(111, 111, 111, 0.85);
}

.vip-mnav__search .vip-header-search__input:focus,
.vip-mnav__search .vip-header-search__input:focus-visible,
.vip-mnav__search .vip-header-search__submit:focus,
.vip-mnav__search .vip-header-search__submit:focus-visible,
.vip-mnav__search .vip-header-search__submit:active {
  outline: none !important;
  box-shadow: none !important;
}

.vip-mnav__search .vip-header-search__submit {
  position: static !important;
  flex: 0 0 2.75rem;
  display: grid;
  place-items: center;
  align-self: stretch !important;
  width: 2.75rem;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--vip-header-nav, #7a7a7a);
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
  transform: none !important;
  box-shadow: none !important;
}

.vip-mnav__search .vip-header-search__submit .material-icons {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.vip-mnav__list,
.vip-mnav__sub,
.vip-mnav__flyout {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vip-mnav__item {
  border-bottom: 1px solid rgba(126, 97, 74, 0.12);
}

.vip-mnav__row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.vip-mnav__row .vip-mnav__link {
  flex: 1 1 auto;
  min-width: 0;
}

.vip-mnav__toggle {
  flex: 0 0 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--vip-header-tan, #d5a17d);
  padding: 0;
  cursor: pointer;
}

.vip-mnav__toggle .material-icons {
  font-size: 1.5rem;
  transition: transform 0.15s ease;
}

.vip-mnav__item--parent.is-open > .vip-mnav__row > .vip-mnav__toggle .material-icons,
.vip-mnav__subitem--parent.is-open > .vip-mnav__row > .vip-mnav__toggle .material-icons {
  transform: rotate(180deg);
}

.vip-mnav__link {
  display: block;
  padding: 0.85rem 0.15rem;
  font-family: var(--vip-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vip-figma-brown, #7e614a);
  text-decoration: none;
}

.vip-mnav__link--accent {
  color: var(--vip-header-tan, #d5a17d);
  font-weight: 700;
}

.vip-mnav__link--sub {
  font-size: 0.95rem;
  font-weight: 600;
  padding-left: 0.75rem;
}

.vip-mnav__link--fly {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.15rem 0.55rem 1.35rem;
  color: #5c4a3a;
}

.vip-mnav__sub {
  padding: 0 0 0.35rem;
  background: rgba(126, 97, 74, 0.04);
}

.vip-mnav__subitem {
  border-bottom: 1px solid rgba(126, 97, 74, 0.08);
}

.vip-mnav__subitem:last-child {
  border-bottom: none;
}

.vip-mnav__flyout {
  padding: 0 0 0.25rem;
  background: rgba(255, 255, 255, 0.55);
}

.vip-mnav__flyout .vip-mnav__flyout {
  padding-left: 0.35rem;
  background: rgba(251, 248, 245, 0.9);
}

.vip-mnav__flyout .vip-mnav__link--fly {
  padding-left: 2rem;
}

.vip-mariano-mnav {
  padding: 0.15rem 0 0.5rem;
  font-family: var(--vip-font-body);
}

.vip-mariano-mnav__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0 0 0.85rem;
}

#header .vip-mariano-mnav__intro a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--vip-header-tan, #d5a17d);
  border-radius: 8px;
  color: var(--vip-figma-brown, #7e614a);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.vip-mariano-mnav__list,
.vip-mariano-mnav__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vip-mariano-mnav__item {
  border-top: 1px solid rgba(126, 97, 74, 0.13);
}

.vip-mariano-mnav__item:last-child {
  border-bottom: 1px solid rgba(126, 97, 74, 0.13);
}

.vip-mariano-mnav__row {
  display: flex;
  align-items: stretch;
}

#header .vip-mariano-mnav__link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 3.1rem;
  padding: 0.72rem 0.25rem;
  color: var(--vip-figma-brown, #7e614a);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.vip-mariano-mnav__toggle {
  flex: 0 0 3rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--vip-header-tan-dark, #b88d5f);
  cursor: pointer;
}

.vip-mariano-mnav__toggle .material-icons {
  font-size: 1.5rem;
  transition: transform 0.15s ease;
}

.vip-mariano-mnav__item.is-open .vip-mariano-mnav__toggle .material-icons {
  transform: rotate(180deg);
}

.vip-mariano-mnav__sub {
  padding: 0.25rem 0 0.55rem;
  background: #f8f4f0;
}

.vip-mariano-mnav__sub li + li {
  border-top: 1px solid rgba(126, 97, 74, 0.08);
}

#header .vip-mariano-mnav__sub a {
  display: block;
  padding: 0.68rem 1rem;
  color: #5c4a3a;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

#header .vip-mariano-mnav__quick {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  margin-top: 0.85rem;
  border-radius: 8px;
  background: var(--vip-header-tan, #d5a17d);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Phone / tablet layout overrides — must not apply at ≥992px
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  html[data-vip-nav-variant="mariano"] .vip-header-mobile__drawer {
    max-height: calc(100vh - 7rem);
  }

  .vip-nav-preview-switch {
    min-height: 1.8rem;
    padding: 0.2rem var(--vip-shell-gutter);
    font-size: 0.67rem;
  }

  .vip-nav-preview-switch__choice {
    min-height: 1.35rem;
    padding: 0.15rem 0.55rem;
  }

  html,
  body {
    overflow-x: clip;
  }

  /*
   * Desktop Figma locks content to ~70.75vw. On phone/tablet that leaves huge
   * side letterboxing on Tienda, product, CMS, account, etc. Use full width
   * with a tight shell gutter instead.
   */
  :root {
    --vip-shell-gutter: 0.75rem;
    --vip-home-feature-width: 100%;
    --vip-figma-content-width: 100%;
  }

  #header,
  .vip-header-shell,
  .vip-header-shell__inner,
  .header-top,
  #wrapper,
  #main,
  #content-wrapper,
  .container {
    max-width: 100%;
    min-width: 0;
  }

  #header {
    z-index: 2000;
    background: #fff;
    isolation: isolate;
  }

  #wrapper > .container,
  .vip-tienda__container,
  #category #wrapper .container,
  #search #wrapper .container,
  #manufacturer #wrapper .container,
  #supplier #wrapper .container,
  #new-products #wrapper .container,
  #prices-drop #wrapper .container,
  #best-sales #wrapper .container,
  #product #wrapper .container,
  #registration #wrapper .container,
  #authentication #wrapper .container,
  #cms #wrapper .container,
  body.page-customer-account #wrapper .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--vip-shell-gutter);
    padding-right: var(--vip-shell-gutter);
    box-sizing: border-box;
  }

  /*
   * Kill the white gulf under the mobile bar:
   * 1) desktop header can still reserve height if .hidden-md-down is missing
   * 2) homepage .page-home padding-top
   */
  #header .vip-header-main {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  .page-home {
    padding-top: 0;
  }

  #index #wrapper,
  #index #main,
  #index #content-wrapper,
  #index #content.page-home {
    padding-top: 0;
    margin-top: 0;
  }

  #index .vip-hero {
    margin-top: 0;
  }

  #notifications,
  .notifications {
    margin: 0;
    padding: 0;
  }

  /* Compact announcement strip + slow seamless auto-roll */
  .vip-header-announcement {
    position: relative;
    z-index: 1;
    font-size: 0.65rem;
    line-height: 1;
    overflow: hidden;
  }

  .vip-header-announcement__inner {
    display: flex;
    align-items: center;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    overflow: hidden;
  }

  .vip-header-announcement__marquee {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: vip-announce-marquee 48s linear infinite;
  }

  .vip-header-announcement__list,
  .vip-header-announcement__list.vip-header-announcement__list--clone {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0 1.25rem 0 0;
    list-style: none;
    overflow: visible;
  }

  .vip-header-announcement__item {
    flex: 0 0 auto;
    align-items: center;
    line-height: 1;
  }

  .vip-header-announcement__icon {
    font-size: 0.95rem;
    line-height: 1;
    width: 1em;
    height: 1em;
    transform: translateY(0.06em);
  }

  .vip-header-announcement__text {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
  }

  @keyframes vip-announce-marquee {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(-50%, 0, 0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .vip-header-announcement__marquee {
      animation: none;
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .vip-header-announcement__list.vip-header-announcement__list--clone {
      display: none;
    }
  }

  #header .vip-header-main #search_widget,
  #header .vip-header-main .search-widgets.vip-header-search,
  #header .vip-mnav__search #search_widget,
  #header .vip-mnav__search .search-widgets.vip-header-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-basis: auto !important;
  }

  .vip-hero,
  .vip-category-strip,
  .vip-home-curated,
  .vip-home-bestsellers,
  .vip-home-brands,
  .vip-home-favorites,
  .vip-home-brand,
  .vip-home-magic,
  .vip-home-cta {
    max-width: 100%;
  }

  /*
   * Hero stack for phone + tablet (< lg). Fixes cascade bug where desktop
   * `.vip-hero__visual { margin-left }` overrode an earlier mobile reset,
   * leaving a white void and only a sliver of the slide on the right.
   */
  .vip-hero {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .vip-hero__copy {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  .vip-hero__visual {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .vip-hero__visual-inner--photo {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .vip-hero__slider,
  .vip-hero__slider-track,
  .vip-hero__slide,
  .vip-hero__slide-link {
    width: 100%;
    max-width: 100%;
  }

  .vip-hero__photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .vip-hero__slider-nav {
    width: 40px;
    height: 40px;
  }

  .vip-hero__slider-nav img {
    width: 28px;
    height: 28px;
  }

  /* Product gallery: stack cover + thumbs on tablet/phone */
  .vip-product__gallery-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .vip-product__gallery-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
  }

  .vip-product__gallery-thumb {
    flex: 0 0 4.75rem;
    width: 4.75rem;
  }

  #product .vip-product-related-carousel {
    gap: 1rem;
  }

  /*
   * Mejores marcas — phone/tablet: one column, taller cards, clamp copy so
   * Explorar is never clipped by overflow:hidden + short grid rows.
   */
  .vip-home-section-title--brands {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--vip-shell-gutter);
    padding-right: var(--vip-shell-gutter);
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.2;
  }

  .vip-home-brands-band {
    padding: 1.5rem 0 1.75rem;
  }

  .vip-home-brands-band__inner {
    width: 100%;
    max-width: 100%;
    padding-left: var(--vip-shell-gutter);
    padding-right: var(--vip-shell-gutter);
  }

  .vip-home-brands__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 0.85rem;
  }

  .vip-brand-tile--wide,
  .vip-brand-tile--narrow {
    grid-column: span 1;
  }

  .vip-home-brands__grid .vip-brand-tile {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    min-height: 15.5rem;
  }

  .vip-brand-tile__body {
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.1rem;
    justify-content: flex-end;
  }

  .vip-brand-tile .vip-brand-tile__name {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .vip-brand-tile .vip-brand-tile__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.35;
    max-height: none;
  }

  .vip-brand-tile .vip-btn--pill-peach {
    flex-shrink: 0;
    margin-top: 0.15rem;
  }

  /*
   * Group 14 category tiles (tan band) — phone/tablet: one column, taller
   * cards, clamp copy so titles are not clipped by overflow:hidden + short
   * grid rows (e.g. Inciensos title cut at the top).
   */
  .vip-curated-grid--cats {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 0.85rem;
  }

  .vip-curated-grid--cats .vip-curated-tile--wide,
  .vip-curated-grid--cats .vip-curated-tile--narrow {
    grid-column: span 1 !important;
  }

  .vip-home-band .vip-curated-tile--cat,
  .vip-curated-grid--cats .vip-curated-tile--cat {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    min-height: 15.5rem;
  }

  .vip-home-band .vip-curated-tile--cat .vip-curated-tile__body {
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.1rem;
  }

  .vip-home-band .vip-curated-tile--cat .vip-curated-tile__content {
    max-width: 100%;
  }

  .vip-home-band .vip-curated-tile--cat .vip-curated-tile__title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.15;
  }

  .vip-home-band .vip-curated-tile--cat .vip-curated-tile__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .vip-home-band .vip-curated-tile--cat .vip-btn--explore-tan {
    flex-shrink: 0;
    margin-top: 0.15rem;
  }

  /*
   * Group 16 — desktop Figma keeps 135px bottom padding + shell padding;
   * on phone that leaves a huge empty band after the last Explorar.
   */
  .vip-home-magic {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 0;
  }

  .vip-home-magic__shell {
    padding: 0;
    border-radius: 0;
  }

  .vip-home-magic__lead {
    margin-bottom: 2.5rem;
  }

  .vip-home-magic__row--1,
  .vip-home-magic__row--2,
  .vip-home-magic__row--3,
  .vip-home-magic__row--4 {
    margin-bottom: 2.5rem;
  }

  /*
   * Group 10 — desktop card keeps ~135px bottom padding; last row still gets
   * 4rem margin on ≤991. Both leave a huge empty band before the newsletter.
   */
  .vip-home-brand {
    margin-bottom: 0;
  }

  .vip-home-brand__card {
    padding: 1.75rem 1.1rem 1.5rem;
  }

  .vip-home-brand__lead {
    margin-bottom: 2.5rem;
  }

  .vip-home-brand__row--1,
  .vip-home-brand__row--2 {
    margin-bottom: 2.5rem;
  }

  .vip-home-brand__row--3,
  .vip-home-brand__row--4,
  .vip-home-brand__row--5 {
    margin-bottom: 0;
  }

  .vip-home-blog-placeholder {
    margin-bottom: 0;
  }

  /*
   * Newsletter — equal white air above/below (Group 10 ↔ logo). Zero every
   * inherited gap, then use the same token on both sides.
   */
  .page-home {
    padding-bottom: 0;
  }

  .vip-footer-newsletter {
    margin-top: 2.5rem;
    margin-bottom: 0;
  }

  .vip-footer-main {
    padding-top: 2.5rem;
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }

  /* Payment marks — need display:flex for justify-content to take effect. */
  .vip-footer-col--contact .vip-payment-strip,
  .vip-footer-col--contact .vip-payment-strip__inner {
    width: 100%;
  }

  .vip-footer-col--contact .vip-payment-strip__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  /*
   * Footer — more air above each section title than below it (titles bind
   * to their own list, not to the block above). Phone-only so md 2-col
   * layout is not skewed by sibling padding.
   */
  .vip-footer-main__grid {
    row-gap: 0;
  }

  .vip-footer-col + .vip-footer-col {
    padding-top: 2.25rem;
  }

  .vip-footer-col .vip-footer-col__title {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .vip-category-strip__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
    padding: 0 0.35rem;
  }

  .vip-category-strip__label {
    font-size: clamp(0.62rem, 2.7vw, 0.8rem);
    line-height: 1.15;
  }

  .vip-hero__display {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    line-height: 1.12;
    max-width: none;
  }

  .vip-hero__lead {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: none;
  }

  .vip-btn--outline,
  .vip-hero__copy .vip-btn--outline {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    min-height: 48px;
    font-size: 1rem;
    box-sizing: border-box;
  }
}

/* Carousel sizing — use cqi (viewport container), never % against max-content list */
@media (max-width: 991px) {
  /*
   * Homepage container has padding 0 (#index #wrapper > .container), so a
   * 100% bordered card kisses the viewport. Size the stroke box to the
   * viewport minus a side gutter — do not use inner padding for this.
   */
  body#index #vip-home-novedades.vip-home-novedades,
  body#index .vip-home-favorites.vip-home-novedades,
  body#index .vip-home-bestsellers .vip-home-bestsellers__panel,
  body#index .vip-home-brand .vip-home-brand__card {
    width: calc(100% - 2.5rem);
    max-width: calc(100% - 2.5rem);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .vip-home-novedades,
  .vip-home-favorites.vip-home-novedades {
    padding-left: var(--vip-shell-gutter);
    padding-right: var(--vip-shell-gutter);
  }

  .vip-bestsellers-carousel {
    gap: 0.5rem;
  }

  .vip-bestsellers-carousel__viewport {
    container-type: inline-size;
    container-name: vip-bestsellers;
    min-width: 0;
  }

  .vip-bestsellers-carousel__item {
    flex: 0 0 calc((100cqi - var(--vip-bestsellers-gap)) / 2);
    flex-basis: calc((100cqi - var(--vip-bestsellers-gap)) / 2);
    width: calc((100cqi - var(--vip-bestsellers-gap)) / 2);
    max-width: calc((100cqi - var(--vip-bestsellers-gap)) / 2);
  }

  .vip-bestsellers-carousel--rows-2 .vip-bestsellers-carousel__viewport > .vip-bestsellers-carousel__list {
    grid-auto-columns: calc((100cqi - var(--vip-bestsellers-gap)) / 2);
  }
}

@media (max-width: 575px) {
  .vip-bestsellers-carousel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    container-type: inline-size;
    container-name: vip-bestsellers;
  }

  .vip-bestsellers-carousel__viewport {
    min-width: 0;
    width: 100%;
    container-type: unset;
  }

  .vip-bestsellers-carousel__nav {
    position: absolute;
    top: 0;
    z-index: 4;
    width: 40px;
    min-width: 40px;
    height: 100cqi;
    max-height: 100cqi;
    flex-basis: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .vip-bestsellers-carousel__nav--prev {
    left: 0;
  }

  .vip-bestsellers-carousel__nav--next {
    right: 0;
  }

  .vip-bestsellers-carousel__arrow {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
  }

  .vip-bestsellers-carousel__item {
    box-sizing: border-box;
    flex: 0 0 calc(100vw - 2.5rem);
    flex-basis: calc(100vw - 2.5rem);
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
    flex: 0 0 100cqi;
    flex-basis: 100cqi;
    width: 100cqi;
    max-width: 100cqi;
  }

  .vip-bestsellers-carousel--rows-2 .vip-bestsellers-carousel__viewport > .vip-bestsellers-carousel__list {
    display: flex;
    grid-template-rows: none;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
  }

  .vip-bestsellers-carousel .vip-product-card--bestsellers .vip-product-card__name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .vip-home-section-title--novedades {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.15;
  }

  .vip-home-bestsellers h2.vip-home-section-title--bestsellers,
  .vip-home-bestsellers__panel .vip-home-section-title,
  .vip-home-section-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .vip-home-cta__content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .vip-home-cta__mark {
    width: clamp(88px, 22vw, 160px);
  }

  .vip-home-cta__tagline {
    width: auto;
    max-width: 100%;
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .vip-home-cta {
    height: auto;
    min-height: 280px;
  }

  .vip-home-cta__inner {
    padding-block: 1.75rem;
  }

  /*
   * Product buy box — controls row, then express checkout band below.
   */
  #product .vip-product__purchase-row--primary {
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 0.65rem;
  }

  #product .vip-product__purchase-row--primary > .vip-product__qty {
    flex: 0 0 auto;
    border-radius: 0;
  }

  #product .vip-product__purchase-row--primary > .vip-product__add,
  #product .vip-product__purchase-row--primary > .add {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
  }

  #product .vip-product__wishlist-slot .wishlist-button,
  #product .vip-product__wishlist-slot .wishlist-button-add,
  #product .vip-product__wishlist-slot [data-link-action="add-to-wishlist"],
  #product .vip-product__wishlist-slot .compare-button,
  #product .vip-product__wishlist-slot [data-link-action="add-to-compare"] {
    border-radius: 0;
  }

  #product .vip-product__add-btn {
    width: 100%;
    border-radius: 0;
    white-space: normal;
  }

  #product .vip-product__express-checkout {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    gap: 0.65rem;
  }

  #product .vip-product__purchase,
  #product .product-actions {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .vip-product__price-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.85rem;
  }

  /* Heart icon in the buy row replaces the large italic label on narrow screens. */
  .vip-product__favorites {
    display: none;
  }

  .vip-product__related {
    padding-inline: var(--vip-shell-gutter);
  }

  .vip-product__related-title {
    font-size: clamp(1.5rem, 6vw, 37px);
    line-height: 1.2;
  }

  /*
   * Compra rápida — search-first on phone/tablet. Desktop keeps the spreadsheet
   * table + catalog grid unchanged.
   */
  .vip-quickorder__mobile-search {
    display: block;
    margin-bottom: 1.15rem;
  }

  .vip-quickorder__mobile-search-label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--vip-font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vip-figma-tan);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .vip-quickorder__mobile-search-field {
    position: relative;
  }

  .vip-quickorder__mobile-search-input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(213, 161, 125, 0.55);
    border-radius: 999px;
    background: #fff;
    color: var(--vip-figma-brown);
    font-family: var(--vip-font-body);
    font-size: 1rem;
    box-sizing: border-box;
  }

  .vip-quickorder__mobile-search-input:focus {
    outline: none;
    border-color: var(--vip-figma-tan);
    box-shadow: 0 0 0 3px rgba(213, 161, 125, 0.22);
  }

  .vip-quickorder__mobile-search-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #878787;
  }

  .vip-quickorder__mobile-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 20;
    max-height: min(55vh, 22rem);
    overflow: auto;
    border: 1px solid rgba(213, 161, 125, 0.45);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(29, 29, 29, 0.12);
  }

  .vip-quickorder__mobile-suggest-list {
    margin: 0;
    padding: 0.35rem;
    list-style: none;
  }

  .vip-quickorder__mobile-suggest-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
  }

  .vip-quickorder__mobile-suggest-btn:hover,
  .vip-quickorder__mobile-suggest-btn:focus-visible {
    border-color: var(--vip-figma-tan);
    background: rgba(213, 161, 125, 0.08);
  }

  .vip-quickorder__mobile-suggest-img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
  }

  .vip-quickorder__mobile-suggest-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }

  .vip-quickorder__mobile-suggest-ref {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--vip-figma-tan);
  }

  .vip-quickorder__mobile-suggest-name {
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--vip-figma-brown);
  }

  .vip-quickorder__mobile-suggest-empty {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: #878787;
  }

  .vip-quickorder__catalog {
    display: none;
  }

  .vip-quickorder__add-rows {
    display: none !important;
  }

  .vip-quickorder__table-wrap {
    overflow: visible;
    margin-bottom: 1rem;
  }

  .vip-quickorder__table {
    min-width: 0;
    width: 100%;
    display: block;
  }

  .vip-quickorder__table thead {
    display: none;
  }

  .vip-quickorder__table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .vip-quickorder__table tr[data-vip-qo-row]:not(.is-filled) {
    display: none !important;
  }

  .vip-quickorder__table tr[data-vip-qo-row].is-filled {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "img name actions"
      "img combo actions"
      "img qty price";
    gap: 0.45rem 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(213, 161, 125, 0.45);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
  }

  .vip-quickorder__table tr.is-filled td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: none;
    vertical-align: middle;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--image {
    grid-area: img;
    align-self: start;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--name {
    grid-area: name;
    min-width: 0;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: auto;
  }

  /* Reference is already shown via search; hide duplicate clipped field on cards. */
  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--ref {
    display: none !important;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--combo {
    grid-area: combo;
    min-width: 0;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--qty {
    grid-area: qty;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__cell--price {
    grid-area: price;
    text-align: right;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__name-input {
    display: block;
    width: 100%;
    max-width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--vip-figma-brown);
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__combo-select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(213, 161, 125, 0.45);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background: #fff;
  }

  /* Per-row “add to cart” looked like qty + and opened the cart — hide on mobile;
   * use steppers + sticky “Crear pedido” instead. */
  .vip-quickorder__table tr.is-filled .vip-quickorder__row-cart {
    display: none !important;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__qty-stepper {
    width: 100%;
    justify-content: flex-start;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__qty-btn {
    width: 40px;
    height: 40px;
    background: var(--vip-figma-tan);
    border-color: var(--vip-figma-tan);
    color: #fff;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__qty-btn:hover:not(:disabled),
  .vip-quickorder__table tr.is-filled .vip-quickorder__qty-btn:focus-visible:not(:disabled) {
    background: #c8926a;
    border-color: #c8926a;
    color: #fff;
  }

  .vip-quickorder__table tr.is-filled .vip-quickorder__qty-input {
    flex: 1 1 auto;
    min-width: 3rem;
    min-height: 40px;
    border: 1px solid rgba(213, 161, 125, 0.45);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background: #fff;
  }

  .vip-quickorder__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
  }

  .vip-quickorder__actions .vip-btn {
    flex: 1 1 auto;
    min-height: 48px;
  }

  /*
   * Mi cuenta / identity / login / register — desktop uses a 3-col field grid
   * (label | input | optional) that crushes tan pills on phone. Stack full-width.
   */
  .vip-account__title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    line-height: 1.15;
  }

  .vip-account__card {
    padding: 1.15rem 1rem 1.35rem;
  }

  #registration .vip-account__fields,
  #authentication .vip-account__fields,
  body.page-customer-account .vip-account__fields {
    gap: 1.1rem;
  }

  #registration .vip-account__field:not(.vip-account__field--checkbox):not(.vip-account__field--legal),
  #authentication .vip-account__field:not(.vip-account__field--checkbox):not(.vip-account__field--legal),
  body.page-customer-account .vip-account__field:not(.vip-account__field--checkbox):not(.vip-account__field--legal) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  #registration .vip-account__field:not(.vip-account__field--checkbox):not(.vip-account__field--legal) > [class*="col-"],
  #authentication .vip-account__field:not(.vip-account__field--checkbox):not(.vip-account__field--legal) > [class*="col-"],
  body.page-customer-account .vip-account__field:not(.vip-account__field--checkbox):not(.vip-account__field--legal) > [class*="col-"] {
    width: 100%;
    max-width: 100%;
  }

  #registration .vip-account__field .vip-account__label,
  #authentication .vip-account__field .vip-account__label,
  body.page-customer-account .vip-account__field .vip-account__label {
    min-height: 0;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.3;
  }

  #registration .vip-account__optional,
  #authentication .vip-account__optional,
  body.page-customer-account .vip-account__optional {
    display: none;
  }

  #registration .vip-account__field .form-control,
  #registration .vip-account__field .vip-account__input,
  #authentication .vip-account__field .form-control,
  #authentication .vip-account__field .vip-account__input,
  body.page-customer-account .vip-account__field .form-control,
  body.page-customer-account .vip-account__field .vip-account__input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #registration .vip-account__password-row,
  #authentication .vip-account__password-row,
  body.page-customer-account .vip-account__password-row {
    width: 100%;
  }

  #registration .vip-account__field--radio .vip-account__control,
  #authentication .vip-account__field--radio .vip-account__control,
  #identity .vip-account__field--radio .vip-account__control,
  body.page-customer-account .vip-account__field--radio .vip-account__control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #registration .vip-account__field .vip-account__control > .form-control-comment,
  #registration .vip-account__field .vip-account__control > .vip-account__hint,
  #authentication .vip-account__field .vip-account__control > .form-control-comment,
  #authentication .vip-account__field .vip-account__control > .vip-account__hint,
  body.page-customer-account .vip-account__field .vip-account__control > .form-control-comment,
  body.page-customer-account .vip-account__field .vip-account__control > .vip-account__hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
  }

  #registration .vip-account__field--birthday .js-parent-focus,
  #authentication .vip-account__field--birthday .js-parent-focus,
  body.page-customer-account .vip-account__field--birthday .js-parent-focus {
    width: 100%;
  }

  /* Opt-in / legal checkboxes still used the desktop 3-col grid (control in
     column 2), so they sat indented vs stacked fields and Recargo below. */
  #registration .vip-account__field--checkbox,
  #authentication .vip-account__field--checkbox,
  #registration .vip-account__field--legal,
  #authentication .vip-account__field--legal,
  body.page-customer-account .vip-account__field--checkbox,
  body.page-customer-account .vip-account__field--legal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 0.1rem;
    margin-bottom: 0.45rem;
    column-gap: 0;
    row-gap: 0;
  }

  #registration .vip-account__field--checkbox .vip-account__control,
  #authentication .vip-account__field--checkbox .vip-account__control,
  #registration .vip-account__field--legal .vip-account__control,
  #authentication .vip-account__field--legal .vip-account__control,
  body.page-customer-account .vip-account__field--checkbox .vip-account__control,
  body.page-customer-account .vip-account__field--legal .vip-account__control {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  #registration .vip-account__field--checkbox .custom-checkbox,
  #authentication .vip-account__field--checkbox .custom-checkbox,
  #registration .vip-account__field--legal .custom-checkbox,
  #authentication .vip-account__field--legal .custom-checkbox,
  body.page-customer-account .vip-account__field--checkbox .custom-checkbox,
  body.page-customer-account .vip-account__field--legal .custom-checkbox {
    width: 100%;
    max-width: 100%;
  }

  #registration .vip-account__field--checkbox .custom-checkbox label,
  #authentication .vip-account__field--checkbox .custom-checkbox label,
  #registration .vip-account__field--legal .custom-checkbox label,
  #authentication .vip-account__field--legal .custom-checkbox label,
  body.page-customer-account .vip-account__field--checkbox .custom-checkbox label,
  body.page-customer-account .vip-account__field--legal .custom-checkbox label {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 0.55rem;
  }

  #registration .vip-account__field--checkbox .custom-checkbox input[type="checkbox"],
  #authentication .vip-account__field--checkbox .custom-checkbox input[type="checkbox"],
  #registration .vip-account__field--legal .custom-checkbox input[type="checkbox"],
  #authentication .vip-account__field--legal .custom-checkbox input[type="checkbox"],
  body.page-customer-account .vip-account__field--checkbox .custom-checkbox input[type="checkbox"],
  body.page-customer-account .vip-account__field--legal .custom-checkbox input[type="checkbox"],
  #registration .vip-account__field--checkbox .custom-checkbox input[type="checkbox"] + span,
  #authentication .vip-account__field--checkbox .custom-checkbox input[type="checkbox"] + span,
  #registration .vip-account__field--legal .custom-checkbox input[type="checkbox"] + span,
  #authentication .vip-account__field--legal .custom-checkbox input[type="checkbox"] + span,
  body.page-customer-account .vip-account__field--checkbox .custom-checkbox input[type="checkbox"] + span,
  body.page-customer-account .vip-account__field--legal .custom-checkbox input[type="checkbox"] + span {
    flex: 0 0 auto;
    margin-top: 0.2em;
  }

  body.page-customer-account .vip-account__card .form-footer,
  #registration .vip-account__card .form-footer,
  #authentication .vip-account__card .form-footer {
    margin-top: 0.5rem;
  }

  body.page-customer-account .vip-account__card .form-footer .btn,
  #registration .vip-account__card .form-footer .btn,
  #authentication .vip-account__card .form-footer .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 379px) {
  .vip-header-mobile__logo img {
    max-height: 28px;
    max-width: min(100%, 148px);
  }
}

/* Tienda / category hero banner — square corners on mobile (desktop keeps 20px in vip-design.css). */
@media (max-width: 991px) {
  .vip-tienda__hero {
    border-radius: 0;
  }

  /* /categorias mosaic: stacked hero tiles used desktop title + full FIGMA lead. */
  .vip-categorias__tile-name {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .vip-categorias__tile--hero .vip-categorias__tile-name {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .vip-categorias__tile-desc {
    max-width: none;
    font-size: 13px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
}

@media (max-width: 575px) {
  .vip-categorias__tile {
    min-height: 13.5rem;
  }

  .vip-categorias__tile--hero .vip-categorias__tile-name {
    font-size: 1.2rem;
  }

  .vip-categorias__tile-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 767px) {
  body#order-confirmation .vip-order-confirmation__table-head,
  body.page-order-confirmation .vip-order-confirmation__table-head {
    display: block;
  }

  body#order-confirmation .vip-order-confirmation__table-title--col,
  body.page-order-confirmation .vip-order-confirmation__table-title--col {
    display: none;
  }
}
