/* CatalogoCode storefront design system v1
   Loaded after legacy styles: this is the single professional compatibility
   layer for storefronts and public authentication screens. */

.store-page {
  --cc-primary: var(--accent, #0f766e);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 82%, #000);
  --cc-surface: #ffffff;
  --cc-surface-soft: #f8fafc;
  --cc-canvas: #f6f7f9;
  --cc-text: #172033;
  --cc-text-soft: #5f6f85;
  --cc-border: #dfe5ec;
  --cc-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --cc-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --cc-card-radius: 18px;
  --cc-control-radius: 12px;
  --cc-shadow: 0 8px 28px rgba(15, 23, 42, .09);
  background: var(--cc-canvas) !important;
  color: var(--cc-text);
  font-family: var(--cc-body);
  font-size: 16px;
  line-height: 1.5;
}

.store-profile--floral {
  --cc-primary: var(--accent, #35624a);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #f7f5ef;
  --cc-surface: #fffdf8;
  --cc-surface-soft: #f0f4ec;
  --cc-text: #243228;
  --cc-text-soft: #687269;
  --cc-border: #dce4d7;
  --cc-display: 'Playfair Display', Georgia, serif;
  --cc-card-radius: 16px;
}

.store-profile--fragrance {
  --cc-primary: var(--accent, #b69345);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #11110f;
  --cc-surface: #1a1916;
  --cc-surface-soft: #24221e;
  --cc-text: #f7f1e4;
  --cc-text-soft: #c5bba8;
  --cc-border: #39342a;
  --cc-display: 'Playfair Display', Georgia, serif;
  --cc-card-radius: 10px;
  --cc-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.store-profile--beauty {
  --cc-primary: var(--accent, #9a4f67);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #faf6f4;
  --cc-surface: #fffefd;
  --cc-surface-soft: #f6ecee;
  --cc-text: #352d31;
  --cc-text-soft: #76686e;
  --cc-border: #eadcdf;
  --cc-display: 'Playfair Display', Georgia, serif;
  --cc-card-radius: 20px;
}

.store-profile--food {
  --cc-primary: var(--accent, #b54825);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #f6efe3;
  --cc-surface: #fffaf2;
  --cc-surface-soft: #f2e4d2;
  --cc-text: #2d2119;
  --cc-text-soft: #745f50;
  --cc-border: #e5d4c0;
  --cc-display: 'Playfair Display', Georgia, serif;
  --cc-card-radius: 14px;
}

/* Gastronomia: composicion editorial propia, inspirada en menus premium.
   En movil cada producto es una sola decision horizontal: foto + detalle. */
.store-profile--food .catalog:not(.catalog--list) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  gap: 22px;
  max-width: 1180px;
}
.store-profile--food .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(230px, .94fr);
  min-height: 330px;
  border: 0 !important;
  border-radius: 26px !important;
  background: #161b12 !important;
  box-shadow: 0 18px 42px rgba(62, 39, 20, .18) !important;
}
.store-profile--food .product-card__media {
  aspect-ratio: auto;
  min-height: 330px;
  background: #161b12;
}
.store-profile--food .product-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 68%, rgba(22,27,18,.34));
  pointer-events: none;
}
.store-profile--food .product-card__media img { transform: scale(1.015); }
.store-profile--food .product-card__body {
  position: relative;
  z-index: 2;
  align-content: center;
  padding: 30px 28px 26px 34px;
  border-radius: 58px 0 0 58px;
  background: var(--cc-surface);
  margin-left: -22px;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.store-profile--food .food-card__eyebrow {
  color: var(--cc-primary);
  font-family: var(--cc-display);
  font-size: .82rem;
  font-style: italic;
  font-weight: 700;
}
.store-profile--food .product-card__body > small { order: 2; }
.store-profile--food .product-card__name {
  order: 3;
  margin: 0;
  font-family: 'Oswald', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.store-profile--food .product-card__rating { order: 4; margin: 0; }
.store-profile--food .product-card__price { order: 5; margin: 3px 0 0; }
.store-page.store-profile--food .product-card__price strong {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 10px 3px 10px 3px;
  background: #263218;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
}
.store-profile--food .food-card__benefits {
  order: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--cc-border);
  color: var(--cc-text-soft);
  font-size: .72rem;
  font-weight: 700;
}
.store-profile--food .food-card__benefits span { display: inline-flex; align-items: center; gap: 5px; }
.store-profile--food .food-card__benefits b { color: var(--cc-primary); font-size: .9rem; }
.store-profile--food .food-card__cta {
  order: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  border: 0;
  border-radius: 12px;
  background: var(--cc-primary);
  color: var(--cc-on-primary, #fff);
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--cc-primary) 25%, transparent);
}
.store-profile--food .food-card__cta span { font-size: 1.35rem; line-height: 1; }
.store-profile--food .product-card__add { display: none; }
.store-profile--food .product-card__wish { background: #fff8ed; color: #934322; }

@media (max-width: 680px) {
  .store-profile--food .catalog:not(.catalog--list) { grid-template-columns: 1fr; padding-inline: 14px; }
  .store-profile--food .product-card { width: 100%; max-width: 100%; min-width: 0; grid-template-columns: 1fr; min-height: 0; border-radius: 22px !important; }
  .store-profile--food .product-card__media { min-height: 245px; aspect-ratio: 16 / 11; }
  .store-profile--food .product-card__media::after { background: linear-gradient(0deg, rgba(22,27,18,.34), transparent 42%); }
  .store-profile--food .product-card__body { margin: -34px 14px 14px; padding: 27px 22px 20px; border-radius: 38px 38px 15px 15px; gap: 8px; box-shadow: 0 -8px 24px rgba(45,33,25,.08); }
  .store-profile--food .product-card__name { font-size: clamp(1.45rem, 7vw, 1.85rem); }
  .store-profile--food .food-card__benefits { display: flex; gap: 8px 14px; }
  .store-profile--food .food-card__cta { min-height: 48px; padding: 10px; font-size: .84rem; }
  .store-profile--food .food-card__cta::after { content: none; }
  .store-profile--food .food-card__cta span { font-size: 1.2rem; }
  .store-profile--food .product-card__price strong { font-size: 1.08rem; }
  .store-profile--food .product-card__compare { display: none; }
}

@media (max-width: 390px) {
  .store-profile--food .product-card__body { padding-inline: 19px; }
  .store-profile--food .product-card__body > small { display: none; }
}

.store-profile--architecture {
  --cc-primary: var(--accent, #087e9f);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #f3f7f9;
  --cc-surface: #ffffff;
  --cc-surface-soft: #eaf3f6;
  --cc-text: #142631;
  --cc-text-soft: #5c707c;
  --cc-border: #d5e2e8;
  --cc-card-radius: 14px;
  --cc-control-radius: 10px;
}

.store-profile--fashion {
  --cc-primary: var(--accent, #202020);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #f5f2ed;
  --cc-surface: #ffffff;
  --cc-surface-soft: #ede8e0;
  --cc-text: #1f1e1c;
  --cc-text-soft: #6c6862;
  --cc-border: #ddd8d0;
  --cc-display: 'Playfair Display', Georgia, serif;
  --cc-card-radius: 6px;
  --cc-control-radius: 8px;
}

.store-profile--technology {
  --cc-primary: var(--accent, #2259d6);
  --cc-primary-strong: color-mix(in srgb, var(--cc-primary) 78%, #000);
  --cc-canvas: #f3f6fb;
  --cc-surface: #ffffff;
  --cc-surface-soft: #edf2fb;
  --cc-text: #142038;
  --cc-text-soft: #5c6980;
  --cc-border: #d8e0ef;
  --cc-card-radius: 14px;
}

/* Common hierarchy and theme propagation. */
.store-page .store-header__name,
.store-page .banner__title,
.store-page .bestsellers-strip__head h2,
.store-page .product-card__name,
.store-page .pmodal__name {
  font-family: var(--cc-display);
  color: var(--cc-text);
  text-wrap: balance;
}
.store-page .product-card__name {
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  line-height: 1.28;
  letter-spacing: -.012em;
  text-transform: none;
}
.store-page .product-card__body small,
.store-page .product-card__cat,
.store-page .muted { color: var(--cc-text-soft) !important; }
.store-page .product-card__price strong { color: var(--cc-text); }

.store-page .product-card {
  background: var(--cc-surface) !important;
  border: 1px solid var(--cc-border) !important;
  border-radius: var(--cc-card-radius) !important;
  box-shadow: var(--cc-shadow) !important;
  overflow: hidden;
}
.store-page .product-card:hover {
  border-color: color-mix(in srgb, var(--cc-primary) 45%, var(--cc-border)) !important;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--cc-primary) 13%, transparent) !important;
}
.store-page .product-card__media {
  margin: 0;
  border-radius: 0;
  background: var(--cc-surface-soft);
  box-shadow: none;
}
.store-page .product-card__body { padding: 12px 13px 15px; gap: 6px; }
.store-page .product-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 92px;
  padding: 0 13px;
  background: var(--cc-primary) !important;
  color: var(--cc-on-primary, #fff) !important;
  border-radius: 12px !important;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--cc-primary) 32%, transparent) !important;
}
.store-page .product-card__add-label { font-size: .72rem; font-weight: 800; line-height: 1; }

/* Badge lane: left is reserved for labels; right is reserved for favorite. */
.store-page .product-card__badge--tl,
.store-page .product-card__badge--featured,
.store-page .product-card__badge--custom {
  left: 10px !important;
  right: auto !important;
  max-width: calc(100% - 64px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 4;
}
.store-page .product-card__badge--tl { top: var(--badge-top, 10px) !important; }
.store-page .product-card__badge--featured { top: var(--badge-featured-top, 10px) !important; }
.store-page .product-card__badge--custom { top: var(--badge-top, 10px) !important; }
.store-page .product-card__badge--tl + .product-card__badge--featured,
.store-page .product-card:has(.product-card__badge--tl) .product-card__badge--featured {
  top: var(--badge-featured-top, 42px) !important;
}
.store-page .product-card__badge--custom {
  background: var(--badge-color, var(--cc-primary)) !important;
  color: #fff !important;
}
.store-page .product-card__badge--tr {
  top: 54px !important;
  right: 10px !important;
  left: auto !important;
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 4;
}
.store-page .product-card__wish {
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  color: var(--cc-text-soft);
  background: color-mix(in srgb, var(--cc-surface) 92%, transparent);
  border: 1px solid var(--cc-border);
  z-index: 5;
}

/* Sections use one accent; semantic WhatsApp remains green only. */
.store-page .bestsellers-strip__head h2 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--cc-primary);
}
.store-page .category-tabs__tab.is-active,
.store-page .cat-menu .cat-pill.is-active,
.store-page .subcat-pill.is-active,
.store-page .view-toggle__btn.is-active {
  background: var(--cc-primary) !important;
  border-color: var(--cc-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.store-page .cat-menu .cat-pill,
.store-page .store-action,
.store-page .view-toggle__btn,
.store-page .catalog-search {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
  color: var(--cc-text) !important;
}

/* Product modal follows the category instead of using the old navy shell. */
.store-page .pmodal__card {
  background: var(--cc-surface);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
}
.store-page .pmodal__media { background: var(--cc-surface-soft); }
.store-page .pmodal__name { text-transform: none; letter-spacing: -.02em; }
.store-page .pmodal__cat,
.store-page .pmodal__label,
.store-page .pmodal__desc { color: var(--cc-text-soft); }
.store-page .pmodal__price strong,
.store-page .pmodal__more { color: var(--cc-primary); }
.store-page .pmodal__reviews {
  color: var(--cc-text);
  border-color: var(--cc-border);
  background: var(--cc-surface-soft);
}
.store-page .pmodal__close {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--cc-text) 86%, transparent);
  color: #fff;
}

/* Checkout: coherent light/dark surface, compact footer, no hidden last field. */
.store-page .cart-drawer {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
  border-left: 1px solid var(--cc-border);
}
.store-page .cart-drawer__head,
.store-page .cart-drawer__foot {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}
.store-page .cart-drawer__head h2,
.store-page .cart-item__name,
.store-page .cart-item__qty span { color: var(--cc-text) !important; }
.store-page .cart-drawer__scroll {
  padding-bottom: 32px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.store-page .cart-drawer__foot {
  padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
  flex-shrink: 0;
}
.store-page .cart-drawer__total { margin-bottom: 4px; }
.store-page .cart-drawer__total span,
.store-page .cart-drawer__note { color: var(--cc-text-soft); }
.store-page .cart-drawer__total strong { color: var(--cc-text); font-size: 1.35rem; }
.store-page .cart-drawer__note { margin: 3px 0 9px; }
.store-page .btn-cart-send {
  min-height: 50px;
  padding: 13px 20px;
  background: var(--cc-primary);
  color: var(--cc-on-primary, #fff);
  border-radius: var(--cc-control-radius);
  letter-spacing: .04em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--cc-primary) 25%, transparent);
}
.store-page .cart-item,
.store-page .cart-input,
.store-page .cart-item__qty {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page .cart-input {
  min-height: 52px;
  border-radius: var(--cc-control-radius);
}
.store-page .cart-input input,
.store-page .cart-input select,
.store-page .cart-input textarea {
  color: var(--cc-text) !important;
  font-size: 16px;
}
.store-page .cart-input input::placeholder,
.store-page .cart-input textarea::placeholder { color: var(--cc-text-soft); opacity: .85; }
.store-page .cart-input textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 0;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font-family: inherit;
  line-height: 1.45;
}
.store-page .cart-input:focus-within {
  border-color: var(--cc-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc-primary) 17%, transparent);
}
.store-page .cart-crosssell__track {
  gap: 12px;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cc-border) transparent;
}
.store-page .crosssell-card {
  width: clamp(168px, 68vw, 210px);
  padding: 8px;
  background: var(--cc-surface-soft);
  border-color: var(--cc-border);
  border-radius: var(--cc-control-radius);
  scroll-snap-align: start;
}
.store-page .crosssell-card img { height: 110px; }
.store-page .crosssell-card__body strong,
.store-page .crosssell-card__body span { color: var(--cc-text); }
.store-page .crosssell-card__add { min-height: 40px; background: var(--cc-primary); border-radius: 9px; }
.store-page .crosssell-card__add { color: var(--cc-on-primary, #fff); }

/* Premium command bar: secondary actions stay compact and the business goal
   becomes a wide, explicit central action. */
.store-page .catalog { padding-bottom: 132px !important; }
.store-page .bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 22px));
  min-height: 74px;
  padding: 9px 12px;
  gap: 8px;
  background: color-mix(in srgb, var(--cc-surface) 91%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--cc-border) 75%, transparent) !important;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .2), inset 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--cc-text);
}
.store-page .bottom-nav__item,
.store-page .bottom-nav__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 58px;
  min-width: 52px;
  min-height: 54px;
  height: 54px;
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  border-radius: 18px;
  color: var(--cc-text-soft) !important;
  background: transparent;
  box-shadow: none;
  border: 0;
  margin: 0;
}
.store-page .bottom-nav__cart {
  color: var(--cc-on-primary, #fff) !important;
  background: var(--cc-primary) !important;
  order: 2;
  flex: 1 1 190px;
  min-width: 148px;
  width: auto;
  max-width: 245px;
  padding-inline: 20px;
  flex-direction: row;
  gap: 10px;
  border-radius: 18px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cc-primary) 32%, transparent);
}
.store-page .bottom-nav__item--search,
.store-page [data-search] { order: 1; }
.store-page .bottom-nav__item--wishlist,
.store-page [data-wishlist-open] { order: 3; }
.store-page .bottom-nav__item[href*="maps.google"] { order: 0; }
.store-page .bottom-nav__item[href*="whatsapp.com"] { order: 4; }
.store-page .bottom-nav__item:hover,
.store-page .bottom-nav__item.is-active {
  color: var(--cc-primary) !important;
  background: var(--cc-surface-soft) !important;
  transform: none;
  box-shadow: none;
}
.store-page .bottom-nav__label,
.store-page .bottom-nav__item .bottom-nav__label {
  display: block;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.store-page .bottom-nav__cart .bottom-nav__label {
  max-width: none;
  overflow: visible;
  font-size: .82rem;
  letter-spacing: .01em;
  text-overflow: clip;
}
.store-page .bottom-nav__cart svg { width: 21px; height: 21px; flex: 0 0 auto; }
.store-page .bottom-nav__item[href^="https://wa.me/"],
.store-page .bottom-nav__item[href^="https://api.whatsapp.com/"] { color: #168a56 !important; }

.store-page .bottom-nav {
  display: grid !important;
  grid-template-columns: minmax(70px, 1fr) minmax(190px, 245px) minmax(70px, 1fr);
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  place-items: center;
}

.store-page .bottom-nav__item,
.store-page .bottom-nav__cart {
  justify-self: center;
}

.store-page .bottom-nav__cart {
  grid-column: 2;
  width: 100%;
}

.store-page .bottom-nav__item[href*="maps.google"],
.store-page .bottom-nav__item[href^="https://maps.google.com/"] {
  grid-column: 1;
  justify-self: center;
}

.store-page .bottom-nav__item[href*="whatsapp.com"] {
  grid-column: 3;
  justify-self: center;
}

/* Navigation personality follows the catalog category. */
.store-profile--fragrance .bottom-nav {
  background: rgba(22,21,18,.94) !important;
  border-color: #4a4233 !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06);
}
.store-profile--fragrance .bottom-nav__cart { border: 1px solid #d6b96d; background: linear-gradient(135deg,#c7a955,#806526) !important; }
.store-profile--floral .bottom-nav { border-radius: 34px; box-shadow: 0 18px 44px rgba(35,71,53,.2); }
.store-profile--beauty .bottom-nav { border-radius: 32px; background: rgba(255,249,249,.94) !important; }
.store-profile--fashion .bottom-nav { border-radius: 8px; box-shadow: 0 16px 38px rgba(20,20,20,.2); }
.store-profile--fashion .bottom-nav__cart { border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
.store-profile--architecture .bottom-nav { border-radius: 24px; background: rgba(244,250,252,.95) !important; }
.store-profile--technology .bottom-nav { border-radius: 22px; border-color: #c6d4ee !important; box-shadow: 0 18px 48px rgba(34,89,214,.18); }

/* Premium compositions per category. The purchase model remains identical,
   while photography, spacing and silhouette communicate the business. */
.store-profile--floral .product-card { border-color: #d8dfd2 !important; }
.store-profile--floral .product-card__media { aspect-ratio: 4 / 5; }
.store-profile--floral .product-card__body { position: relative; margin: -28px 12px 12px; padding: 20px 17px 17px; border-radius: 22px 22px 12px 12px; background: rgba(255,253,248,.95); box-shadow: 0 10px 30px rgba(48,75,58,.13); }
.store-profile--floral .product-card__name { font-size: 1.18rem; }

.store-profile--fragrance .product-card { border-color: #39342a !important; }
.store-profile--fragrance .product-card__media { aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 42%,#353128,#171612 70%); }
.store-profile--fragrance .product-card__body { padding: 18px 16px 20px; border-top: 1px solid #4b422f; }
.store-profile--fragrance .product-card__body::before { content: 'Maison selection'; color: #b69345; font-family: var(--cc-display); font-size: .72rem; font-style: italic; }
.store-profile--fragrance .product-card__name { font-size: 1.16rem; letter-spacing: .01em; }

.store-profile--beauty .product-card { border: 0 !important; border-radius: 28px !important; }
.store-profile--beauty .product-card__media { aspect-ratio: 1 / 1.15; border-radius: 0 0 44% 0; }
.store-profile--beauty .product-card__body { padding: 17px 18px 22px; }
.store-profile--beauty .product-card__name { font-size: 1.15rem; }

.store-profile--architecture .product-card,
.store-profile--fashion .product-card,
.store-profile--technology .product-card { transition: transform .2s ease, box-shadow .2s ease; }
.store-profile--architecture .product-card__media { aspect-ratio: 16 / 11; }
.store-profile--architecture .product-card__body { border-top: 4px solid var(--cc-primary); padding: 17px; }
.store-profile--architecture .product-card__name { font-size: 1.05rem; font-weight: 800; }

.store-profile--fashion .product-card { border-radius: 4px !important; }
.store-profile--fashion .product-card__media { aspect-ratio: 3 / 4; }
.store-profile--fashion .product-card__body { padding: 17px 5px 20px; }
.store-profile--fashion .product-card__name { font-size: 1.25rem; font-weight: 500; }

.store-profile--technology .product-card { border-color: #cfdaed !important; }
.store-profile--technology .product-card__media { aspect-ratio: 1 / 1; background: radial-gradient(circle,#fff,#e8effa); }
.store-profile--technology .product-card__body { padding: 16px; }
.store-profile--technology .product-card__name { font-size: 1.06rem; font-weight: 800; }
.store-profile--technology .product-card__price { padding-top: 8px; border-top: 1px solid var(--cc-border); }

/* Keyboard and reduced-motion guarantees. */
.store-page :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cc-primary) 72%, #fff);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .store-page *, .auth-shell * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 600px) {
  .store-page .catalog { gap: 12px; padding-inline: 10px; }
  .store-page .bottom-nav {
    grid-template-columns: minmax(54px, 1fr) minmax(140px, 1.45fr) minmax(54px, 1fr);
    width: min(560px, calc(100% - 18px));
    gap: 6px;
    padding-inline: 10px;
  }
  .store-page .bottom-nav__item {
    flex: 0 0 44px;
    min-width: 44px;
    max-width: 44px;
    padding-inline: 2px;
  }
  .store-page .bottom-nav__cart {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding-inline: 12px;
  }
  .store-page .bottom-nav__cart .bottom-nav__label { font-size: .74rem; }
  .store-page .product-card__body { padding: 10px 10px 13px; }
  .store-page .cart-drawer__scroll { padding: 16px 18px 28px; }
  .store-page .cart-drawer__foot { padding-inline: 18px; }
  .store-page .pmodal__card { border-radius: 18px; }
  .store-page .pmodal__body { padding: 20px 18px; }
}

@media (max-width: 360px) {
  .store-page .bottom-nav__label { font-size: 8.5px; }
  .store-page .bottom-nav__item { min-width: 42px; }
  .store-page .bottom-nav__cart { min-width: 132px; padding-inline: 12px; }
  .store-page .bottom-nav__cart .bottom-nav__label { font-size: .72rem; }
}

/* Storefront stability: this file loads after legacy styles, so keep the
   catalog grid, action bar and food cards inside the viewport. */
.store-page,
.store-page * {
  box-sizing: border-box;
}

.store-page {
  overflow-x: clip;
}

.store-page .store-actions-row {
  width: 100%;
  max-width: none;
  padding-inline: clamp(10px, 3vw, 24px);
  gap: 12px;
}

.store-page .store-actions {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  justify-content: center;
  scrollbar-width: none;
}

.store-page .store-actions::-webkit-scrollbar {
  display: none;
}

.store-page .store-action,
.store-page .view-toggle__btn {
  flex: 0 0 auto;
}

.store-page .catalog {
  width: 100%;
  min-width: 0;
}

.store-page .product-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.store-page .product-card__media,
.store-page .product-card__body {
  min-width: 0;
}

.store-profile--food .catalog:not(.catalog--list) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  align-items: stretch;
}

.store-profile--food .product-card {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(260px, 1.05fr);
  min-height: 300px;
  background: var(--cc-surface) !important;
  border: 1px solid var(--cc-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--cc-shadow) !important;
}

.store-profile--food .product-card__media {
  min-height: 300px;
  aspect-ratio: auto;
}

.store-profile--food .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-profile--food .product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 0;
  background: var(--cc-surface);
  box-shadow: none;
  overflow: visible;
}

.store-profile--food .product-card__name {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0;
}

.store-profile--food .product-card__price strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .store-page .store-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .store-page .store-actions {
    justify-content: flex-start;
  }

  .store-profile--food .catalog:not(.catalog--list) {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .store-profile--food .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .store-profile--food .product-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .store-profile--food .product-card__body {
    margin: 0;
    padding: 18px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .store-page .store-actions-row {
    padding: 8px 10px;
    gap: 8px;
  }

  .store-page .store-actions {
    gap: 6px;
  }

  .store-page .catalog {
    padding-inline: 10px;
  }
}

/* Public authentication: calm, explicit and consistent. */
.auth-shell {
  --auth-primary: #075e54;
  --auth-primary-strong: #064a43;
  --auth-text: #172033;
  --auth-muted: #65748a;
  --auth-border: #d9e2e8;
  --auth-surface: rgba(255,255,255,.96);
  background:
    radial-gradient(circle at 12% 12%, rgba(18,140,126,.13), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(7,94,84,.1), transparent 32%),
    #f4f7f5;
  padding: clamp(18px, 4vw, 48px);
}
.auth-shell::before, .auth-shell::after { display: none; }
.auth-card {
  max-width: 480px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  background: var(--auth-surface);
  box-shadow: 0 24px 70px rgba(17, 35, 31, .12);
}
.auth-card--wide { max-width: 680px; }
.auth-card h1 {
  margin-top: 26px;
  color: var(--auth-text);
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.auth-card .muted { color: var(--auth-muted); }
.auth-card .form > label { color: var(--auth-text); font-weight: 700; gap: 7px; }
.auth-card input,
.auth-card select {
  min-height: 52px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fff;
  color: var(--auth-text);
  font-size: 16px;
}
.auth-card input:focus,
.auth-card select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(7,94,84,.13);
}
.auth-card .btn--public-primary,
.auth-card .btn--primary {
  min-height: 52px;
  border-radius: 12px;
  background: var(--auth-primary);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(7,94,84,.18);
}
.auth-card .btn--public-primary:hover,
.auth-card .btn--primary:hover { background: var(--auth-primary-strong); }
.auth-password { position: relative; display: block; }
.auth-password > input { width: 100%; padding-right: 54px; }
.auth-password__toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.auth-password__toggle:hover { background: #edf5f2; color: var(--auth-primary); }
.password-guide { margin: 8px 0 2px; }
.password-guide__bar { height: 6px; overflow: hidden; border-radius: 999px; background: #e5e9ee; }
.password-guide__fill { width: 0; height: 100%; background: #b91c1c; transition: width .2s, background .2s; }
.password-guide__status { margin: 7px 0 6px; color: var(--auth-muted); font-size: 12px; font-weight: 700; }
.password-guide__rules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 12px; margin: 0; padding: 0; list-style: none; }
.password-guide__rules li { color: var(--auth-muted); font-size: 12px; }
.password-guide__rules li::before { content: '○'; display: inline-block; width: 18px; font-weight: 900; }
.password-guide__rules li.is-valid { color: #087447; }
.password-guide__rules li.is-valid::before { content: '✓'; }
.auth-field-message { display: block; margin-top: 6px; color: #b42318; font-size: 12px; font-weight: 700; }
.auth-field-message.is-success { color: #087447; }
.auth-card #passStrength[data-enhanced="true"] { display: none !important; }
.auth-card__alert { border-radius: 12px !important; }

@media (max-width: 560px) {
  .auth-card--wide { max-width: 480px; }
  .password-guide__rules { grid-template-columns: 1fr; }
  .auth-card { border-radius: 18px; }
}

/* Dashboard theme recommendation card. */
.theme-recommendation { display: block; margin-top: 6px; color: #64748b; font-size: 12px; line-height: 1.4; }
.theme-picker-v2__recommendation {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b7ddcf;
  border-radius: 12px;
  background: #edf8f1;
  color: #173c32;
}
.theme-picker-v2__recommendation[hidden] { display: none; }
.theme-picker-v2__recommendation > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #075e54; color: #fff; }
.theme-picker-v2__recommendation strong,
.theme-picker-v2__recommendation small { display: block; }
.theme-picker-v2__recommendation small { margin-top: 2px; color: #526b64; font-size: 11px; line-height: 1.35; }
@media (max-width: 560px) {
  .theme-picker-v2__recommendation { grid-template-columns: 34px 1fr; }
  .theme-picker-v2__recommendation .btn { grid-column: 1 / -1; width: 100%; }
}

/* Catalog menu layout: keep "carta" compact and readable even when a visual
   store profile, such as food, would normally turn cards into image panels. */
.store-page.catalog-layout--carta .catalog {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  max-width: min(100%, 980px);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 24px);
}

.store-page.catalog-layout--carta .product-card {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: clamp(18px, 2.8vw, 24px) 0 !important;
  border: 0 !important;
  border-bottom: 1px dotted var(--cc-border, var(--border-color, #e5d8c8)) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.store-page.catalog-layout--carta .product-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.store-page.catalog-layout--carta .product-card__media {
  display: none !important;
}

.store-page .product-card__add--inline {
  display: none;
}

.store-page.catalog-layout--carta .product-card__body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 8px clamp(18px, 5vw, 42px);
  align-items: baseline;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.store-page.catalog-layout--carta .product-card__body > .muted {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  line-height: 1.2;
}

.store-page.catalog-layout--carta .product-card__name {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-page.catalog-layout--carta .product-card__price {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin: 0 !important;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-page.catalog-layout--carta .product-card__compare {
  margin: 0 !important;
  color: color-mix(in srgb, var(--cc-muted, #6f6257) 82%, transparent);
  font-size: .8rem;
  line-height: 1;
}

.store-page.catalog-layout--carta .product-card__rating {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0 !important;
}

.store-page.catalog-layout--carta .product-card__add--inline {
  display: inline-flex !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  grid-column: 1 / -1;
  grid-row: 4;
  width: min(100%, 320px);
  height: auto !important;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 18px !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 800;
}

.store-page.catalog-layout--carta .product-card__add--inline:hover {
  transform: none !important;
}

@media (max-width: 560px) {
  .store-page.catalog-layout--carta .catalog {
    padding-inline: 12px;
  }

  .store-page.catalog-layout--carta .product-card {
    padding-inline: 14px !important;
  }

  .store-page.catalog-layout--carta .product-card__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .store-page.catalog-layout--carta .product-card__price {
    grid-column: 1;
    grid-row: 4;
    text-align: left;
  }

  .store-page.catalog-layout--carta .product-card__add--inline {
    grid-row: 5;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKOUT UX IMPROVEMENTS — Fase 1
   Spinner anti-doble-envío, errores visuales por campo, botón disabled.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1.1 — Loading spinner for submit button */
.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cart-spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes cart-spin { to { transform: rotate(360deg); } }

.btn-cart-send[disabled] {
  opacity: .65;
  pointer-events: none;
  cursor: not-allowed;
}

/* 1.2 — Visual error indicators on form fields */
.cart-input--error input,
.cart-input--error select,
.cart-input--error textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}
.cart-input--error svg {
  color: #dc2626;
}
.cart-input__error-msg {
  color: #dc2626;
  font-size: 12px;
  margin: 4px 0 8px 42px;
  line-height: 1.3;
  animation: cart-error-in .25s ease-out;
}
@keyframes cart-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STOREFRONT UX IMPROVEMENTS — Fase 2
   Touch targets 44px, contraste, logo rendering, product-card polish.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 2.1 — Category pills: min 44px touch target on mobile (WCAG 2.5.8) */
@media (max-width: 768px) {
  .store-page .cat-menu .cat-pill {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 12px;
    scroll-snap-align: start;
  }
  .store-page .subcat-pill {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
  }
  /* Nav arrows also 44px */
  .store-page .cat-menu-nav {
    min-width: 44px;
    min-height: 44px;
  }
}

/* 2.2 — Improved contrast for muted/secondary text (4.5:1 min ratio) */
.store-page .product-card__cat {
  color: var(--cc-text-soft, #64748b); /* was #94a3b8 (3.2:1) → now 4.6:1 */
}

/* 2.3 — Logo image: prevent layout shift + crisp rendering */
.store-header__logo img,
.store-header__logo--ring img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 2.4 — Product card media: aspect-ratio for consistent grid */
.store-page .product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cc-surface-soft, #f8fafc);
}
.store-page .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2.5 — Smooth category switching transition */
.store-page .catalog {
  transition: opacity .2s ease;
}

/* 2.6 — Bottom nav: ensure 44px min touch targets */
@media (max-width: 768px) {
  .store-page .bottom-nav__item {
    min-height: 48px;
    min-width: 48px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 6b — Fix: perfiles del design system ganan sobre store-page--light.
   
   store-page--light usa colores hardcoded con !important (#fff, #0f172a).
   Eso aplasta los tokens oscuros de fragrance y las tonalidades cálidas
   de beauty/food. La doble clase (.store-page--light.store-profile--X)
   tiene mayor especificidad y restaura los colores correctos.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── FRAGRANCE: dark luxury gold ────────────────────────────────────── */

/* Cart drawer */
.store-page--light.store-profile--fragrance .cart-drawer {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .cart-drawer__head,
.store-page--light.store-profile--fragrance .cart-drawer__foot {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .cart-drawer__head h2,
.store-page--light.store-profile--fragrance .cart-item__name,
.store-page--light.store-profile--fragrance .cart-item__qty span,
.store-page--light.store-profile--fragrance .cart-item__qty button {
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .cart-drawer__head button {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .cart-item,
.store-page--light.store-profile--fragrance .cart-item__qty {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .cart-input {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .cart-input input,
.store-page--light.store-profile--fragrance .cart-input select,
.store-page--light.store-profile--fragrance .cart-input textarea {
  color: var(--cc-text) !important;
  background: transparent !important;
}
.store-page--light.store-profile--fragrance .cart-input input::placeholder,
.store-page--light.store-profile--fragrance .cart-input textarea::placeholder {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .cart-input svg {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .cart-section-label {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .cart-drawer__total span,
.store-page--light.store-profile--fragrance .cart-drawer__note {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .cart-drawer__total strong {
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .cart-breakdown__row {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .cart-breakdown__row strong {
  color: var(--cc-text) !important;
}

/* Bottom nav */
.store-page--light.store-profile--fragrance .bottom-nav {
  background: rgba(26, 25, 22, .96) !important;
  border-color: var(--cc-border) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .4) !important;
}
.store-page--light.store-profile--fragrance .bottom-nav__item {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .bottom-nav__item:hover,
.store-page--light.store-profile--fragrance .bottom-nav__item.is-active {
  color: var(--cc-primary) !important;
}

/* Product modal */
.store-page--light.store-profile--fragrance .pmodal__card {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .pmodal__media {
  background: var(--cc-surface-soft) !important;
}
.store-page--light.store-profile--fragrance .pmodal__reviews {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .pmodal__review-nav {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .pmodal__review-who {
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .pmodal__review-who strong {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .pmodal__review-dot {
  background: var(--cc-border) !important;
}

/* Promo bar */
.store-page--light.store-profile--fragrance .promo-bar__chunk {
  color: var(--cc-text) !important;
}

/* All reviews modal */
.store-page--light.store-profile--fragrance .rvall {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
}

/* ── BEAUTY: restaurar calidez rosada ───────────────────────────────── */
.store-page--light.store-profile--beauty .cart-drawer {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--beauty .cart-drawer__head,
.store-page--light.store-profile--beauty .cart-drawer__foot {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--beauty .cart-item {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--beauty .cart-input {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}

/* ── FOOD: restaurar calidez crema ──────────────────────────────────── */
.store-page--light.store-profile--food .cart-drawer {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--food .cart-drawer__head,
.store-page--light.store-profile--food .cart-drawer__foot {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--food .cart-item {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--food .cart-input {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}

/* ── FRAGRANCE cont'd: product cards, toolbar, filters, pills ───── */

/* Product cards */
.store-page--light.store-profile--fragrance .product-card {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .product-card:hover {
  border-color: var(--cc-primary) !important;
}
.store-page--light.store-profile--fragrance .product-card__media {
  background: var(--cc-surface-soft) !important;
}
.store-page--light.store-profile--fragrance .product-card__name {
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .product-card__body small {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .product-card__price strong {
  color: var(--cc-primary) !important;
}
.store-page--light.store-profile--fragrance .product-card__compare {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .product-card__add {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .product-card__add:hover {
  background: var(--cc-primary) !important;
  color: #fff !important;
}

/* Category menu & pills */
.store-page--light.store-profile--fragrance .cat-menu-nav {
  background: var(--cc-surface) !important;
  color: var(--cc-text-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .cat-menu .cat-pill {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .cat-menu .cat-pill:hover {
  color: var(--cc-text) !important;
  border-color: var(--cc-primary) !important;
}
.store-page--light.store-profile--fragrance .cat-menu .cat-pill.is-active {
  background: var(--cc-primary) !important;
  color: #fff !important;
}

/* Subcategory pills */
.store-page--light.store-profile--fragrance .subcat-pill {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .subcat-pill:hover {
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .subcat-pill.is-active {
  color: var(--cc-primary) !important;
}
.store-page--light.store-profile--fragrance .subcat-nav {
  border-color: var(--cc-border) !important;
}

/* Search bar */
.store-page--light.store-profile--fragrance .catalog-search {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .catalog-search:focus-within {
  border-color: var(--cc-primary) !important;
}

/* Toolbar & sort */
.store-page--light.store-profile--fragrance .catalog-toolbar__btn,
.store-page--light.store-profile--fragrance .catalog-toolbar__sort {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .catalog-toolbar__btn:hover,
.store-page--light.store-profile--fragrance .catalog-toolbar__sort:hover {
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .catalog-toolbar__sort option {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
}

/* Filter panel */
.store-page--light.store-profile--fragrance .catalog-filter-panel {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .catalog-filter-panel__label {
  color: var(--cc-text-soft) !important;
}
.store-page--light.store-profile--fragrance .filter-chip {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .filter-chip:hover {
  background: var(--cc-surface) !important;
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .catalog-filter-panel__reset {
  color: var(--cc-primary) !important;
}
.store-page--light.store-profile--fragrance .catalog-filter-panel input[type="range"] {
  background: var(--cc-border) !important;
}

/* View toggle (grid/list) */
.store-page--light.store-profile--fragrance .view-toggle__btn {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .view-toggle__btn:hover {
  color: var(--cc-text) !important;
}
.store-page--light.store-profile--fragrance .view-toggle__btn.is-active {
  background: var(--cc-primary) !important;
  color: #fff !important;
}

/* Store actions row (share, whatsapp, etc.) */
.store-page--light.store-profile--fragrance .store-actions-row {
  background: rgba(26, 25, 22, .9) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .store-action {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text-soft) !important;
  border-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .store-action:hover {
  color: var(--cc-primary) !important;
}

/* Promo bar */
.store-page--light.store-profile--fragrance .promo-bar {
  background: var(--cc-surface-soft) !important;
  border-color: var(--cc-border) !important;
}

/* Payment instructions (checkout) */
.store-page--light.store-profile--fragrance .pm-instructions {
  background: var(--cc-surface-soft) !important;
  color: var(--cc-text) !important;
  border-color: var(--cc-border) !important;
}

/* Bottom nav cart button */
.store-page--light.store-profile--fragrance .bottom-nav__cart {
  border-color: var(--cc-primary) !important;
  background: linear-gradient(135deg, #c7a955, #806230) !important;
  color: #fff !important;
}

/* Page background */
.store-page--light.store-profile--fragrance {
  background: var(--cc-canvas) !important;
  color: var(--cc-text) !important;
}

/* Store header */
.store-page--light.store-profile--fragrance .store-header {
  background: var(--cc-canvas) !important;
  border-bottom-color: var(--cc-border) !important;
}
.store-page--light.store-profile--fragrance .store-header__name {
  color: #fff !important; /* White text over banner photo */
}
.store-page--light.store-profile--fragrance .store-header__desc {
  color: rgba(255,255,255,.88) !important;
}

/* Send button — keep accent, just fix disabled state */
.store-page--light.store-profile--fragrance .btn-cart-send {
  background: var(--cc-primary) !important;
  color: #fff !important;
}
.store-page--light.store-profile--fragrance .btn-cart-send:hover {
  background: var(--cc-primary-strong) !important;
}

/* Cart breakdown container */
.store-page--light.store-profile--fragrance .cart-breakdown {
  border-color: var(--cc-border) !important;
}

/* Empty reviews state */
.store-page--light.store-profile--fragrance .pmodal__reviews-empty {
  color: var(--cc-text-soft) !important;
}

/* Final storefront polish: compact catalog rows should read like a menu, not a
   crowded promo card. Keep the offer badge as the visual signal and preserve
   the price column for the actionable price only. */
.store-page.catalog-layout--carta .product-card__compare {
  display: none !important;
}

.store-page.catalog-layout--carta .product-card__price strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.store-page.catalog-layout--carta .product-card__body {
  min-height: 132px;
  align-content: center;
}

.store-page .product-card__badge--tl,
.store-page .product-card__badge--featured,
.store-page .product-card__badge--custom {
  max-width: calc(100% - 74px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile list-view correction: the list layout reuses card markup where the
   media CTA is absolutely positioned for grid cards. In list mode that made
   the red CTA cover the thumbnail and squeezed "Agregar al pedido" into a
   broken multi-line label. */
.store-page.catalog-layout--lista .product-card {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px !important;
}

.store-page.catalog-layout--lista .product-card__media {
  order: 1 !important;
  width: 112px !important;
  height: 112px !important;
  min-height: 112px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.store-page.catalog-layout--lista .product-card__body {
  order: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 6px 12px !important;
  align-items: center !important;
  padding: 0 !important;
}

.store-page.catalog-layout--lista .product-card__body > .muted,
.store-page.catalog-layout--lista .product-card__name,
.store-page.catalog-layout--lista .product-card__rating {
  grid-column: 1 / -1;
  min-width: 0;
}

.store-page.catalog-layout--lista .product-card__price {
  grid-column: 1;
  margin: 2px 0 0 !important;
}

.store-page.catalog-layout--lista .product-card__add--inline {
  grid-column: 2;
  grid-row: 3 / span 2;
  display: inline-flex !important;
  width: 112px;
  min-width: 112px;
  min-height: 46px;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: .76rem;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.store-page.catalog-layout--lista .product-card__media .product-card__add {
  display: none !important;
}

.store-page.catalog-layout--lista .product-card__wish {
  top: 8px !important;
  right: 8px !important;
  width: 42px !important;
  height: 42px !important;
}

@media (max-width: 420px) {
  .store-page.catalog-layout--lista .product-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    padding: 10px !important;
  }

  .store-page.catalog-layout--lista .product-card__media {
    width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
  }

  .store-page.catalog-layout--lista .product-card__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-page.catalog-layout--lista .product-card__add--inline {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 184px);
    min-width: 0;
    justify-self: start;
  }
}

.store-page .cat-menu-nav {
  min-width: 0;
  max-width: 100%;
  padding-inline: 12px;
}

.store-page .cat-menu {
  min-width: 0;
  scroll-padding-inline: 12px;
}

.store-page .cat-menu .cat-pill {
  flex: 0 0 auto;
  max-width: min(72vw, 180px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-page .cat-menu-wrap {
  position: relative;
  gap: 10px !important;
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)) !important;
}

.store-page .cat-menu-nav,
.store-page .subcat-nav {
  position: relative;
  z-index: 4;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 42px;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  border: 1px solid color-mix(in srgb, var(--cc-border, #d8cbbd) 82%, #fff) !important;
  border-radius: 50% !important;
  background: var(--cc-surface, #fffaf1) !important;
  color: var(--cc-text, #1f2937) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  opacity: 1 !important;
}

.store-page .cat-menu-nav:hover,
.store-page .subcat-nav:hover {
  background: var(--cc-primary, var(--accent)) !important;
  border-color: var(--cc-primary, var(--accent)) !important;
  color: var(--cc-on-primary, #fff) !important;
}

.store-page .cat-menu-nav[hidden],
.store-page .subcat-nav[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .store-page .cat-menu-wrap {
    gap: 8px !important;
    padding-inline: 10px !important;
  }

  .store-page .cat-menu-nav,
  .store-page .subcat-nav {
    flex-basis: 38px;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    font-size: 22px !important;
  }
}

/* The customer-facing toggle adds .catalog--list to the catalog itself. Keep
   it as stable as the admin-selected list layout above. */
.store-page .catalog.catalog--list {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding-inline: clamp(10px, 3vw, 16px) !important;
}

.store-page .catalog.catalog--list .product-card {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 13px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 11px !important;
  padding-right: 11px !important;
  overflow: hidden !important;
}

.store-page .catalog.catalog--list .product-card__media {
  width: 104px !important;
  height: 104px !important;
  max-width: 104px !important;
  min-height: 104px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.store-page .catalog.catalog--list .product-card__media .product-card__add {
  display: none !important;
}

.store-page .catalog.catalog--list .product-card__body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.store-page .catalog.catalog--list .product-card__body > .muted,
.store-page .catalog.catalog--list .product-card__name,
.store-page .catalog.catalog--list .product-card__rating {
  grid-column: 1 / -1;
  min-width: 0;
}

.store-page .catalog.catalog--list .product-card__price {
  grid-column: 1;
  margin: 2px 0 0 !important;
  overflow: visible !important;
}

.store-page .catalog.catalog--list .product-card__add--inline {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  grid-column: 2;
  grid-row: 3 / span 2;
  display: inline-flex !important;
  width: 104px !important;
  min-width: 104px !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.store-page .catalog.catalog--list .product-card__add--inline::after {
  content: "Agregar";
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
}

.store-page .catalog.catalog--list .product-card:hover .product-card__add--inline,
.store-page .catalog.catalog--list .product-card__add--inline:active {
  transform: none !important;
}

@media (max-width: 380px) {
  .store-page .catalog.catalog--list .product-card {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 9px !important;
  }

  .store-page .catalog.catalog--list .product-card__media {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    min-height: 88px !important;
  }

  .store-page .catalog.catalog--list .product-card__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-page .catalog.catalog--list .product-card__add--inline {
    grid-column: 1;
    grid-row: auto;
    width: 116px !important;
    min-width: 0 !important;
    justify-self: start;
  }
}
