/* BigHome · Tienda 2026. Capa visual de la tienda pública; conserva la API y sus selectores. */
body.storefront {
  color-scheme: light;
  --color-primary: #D01423;
  --color-primary-hover: #A90F1C;
  --color-on-primary: #fff;
  --color-background: #fff;
  --color-surface: #fff;
  --color-foreground: #20201f;
  --color-muted: #f6f5f3;
  --color-muted-foreground: #64635f;
  --color-border: #e7e5e1;
  --color-border-strong: #cfccc6;
  --color-ring: #D01423;
  --color-brand-bg: #fcebed;
  --color-brand-fg: #a90f1c;
  --color-shell: #20201f;
  --color-shell-foreground: #fff;
  --color-success: #047857;
  --color-success-bg: #dcfce7;
  --color-success-fg: #166534;
  --color-danger: #b91c1c;
  --color-danger-bg: #fee2e2;
  --color-danger-fg: #b91c1c;
  --color-neutral-bg: #f6f5f3;
  --color-neutral-fg: #64635f;
  --color-ink: var(--color-foreground);
  --color-ink-soft: var(--color-foreground);
  --color-gray: var(--color-muted-foreground);
  --color-line: var(--color-border);
  --color-line-soft: var(--color-border);
  --color-bg: var(--color-background);
  --color-bg-alt: var(--color-muted);
  --color-white: var(--color-surface);
  --color-primary-dark: var(--color-primary-hover);
  --color-primary-darker: var(--color-primary-hover);
  --color-primary-tint: var(--color-brand-bg);
  --font-sans: 'Nunito Sans', 'Segoe UI', sans-serif;
  --font-heading: 'Rubik', 'Segoe UI', sans-serif;
  --font-body: var(--font-sans);
  --font-mono: var(--font-sans);
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --store-cream: #f6f3ee;
  --store-title: clamp(2.25rem, 4.3vw, 4rem);
  --transition: 200ms ease-out;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
}
.storefront h1, .storefront h2, .storefront h3 { font-family: var(--font-heading); }
.storefront .container { width: min(calc(100% - 64px), var(--container-max)); padding-inline: 0; }
.storefront .topbar { background: var(--color-shell); color: var(--color-shell-foreground); padding: 0; }
.storefront .topbar__item .icon { color: var(--color-shell-foreground); }
.storefront .topbar__inner { min-height: 20px; }
.storefront .topbar__item { font-size: var(--text-xs); letter-spacing: .025em; }
.storefront .header { background: var(--color-surface); box-shadow: none !important; border-bottom: 1px solid var(--color-border); }
.storefront .nav { display: grid; height: auto; min-height: 76px; grid-template-columns: 180px minmax(0, 1fr) auto auto; gap: 0 var(--space-6); padding-top: var(--space-5); padding-bottom: 0; }
.storefront .nav__logo { grid-area: 1 / 1; }
.storefront .nav__logo-img { width: 156px; height: auto; max-height: 48px; object-fit: contain; }
.storefront .nav__actions { display: contents; }
.storefront .nav__search { display: flex; grid-area: 1 / 2; width: 100%; max-width: 660px; position: relative; }
.storefront .nav__search-input { width: 100%; min-height: 48px; padding-left: var(--space-5); padding-right: var(--space-12); border-radius: var(--radius-full); background: var(--color-muted); border-color: transparent; font-size: var(--text-sm); }
.storefront .nav__search-icon { right: var(--space-1); top: 2px; color: var(--color-on-primary); background: var(--color-primary); border-radius: var(--radius-full); width: 44px; height: 44px; }
.storefront .nav__cart { grid-area: 1 / 3; }
.storefront .nav__user { grid-area: 1 / 4; }
.storefront .nav__menu { grid-area: 2 / 1 / 3 / -1; width: 100%; margin: 0; padding: var(--space-3) 0 0; }
.storefront .nav__list { width: 100%; justify-content: center; gap: var(--space-10); }
.storefront .nav__link { min-height: 48px; padding: var(--space-3) 0; font-weight: 600; font-size: var(--text-sm); }
.storefront .nav__link > .icon:not(.dropdown-icon) { display: none; }
.storefront .nav__link::after { bottom: 0; border-radius: 0; height: 3px; }
.storefront .nav__toggle { display: none; }
.storefront .btn { min-height: 48px; padding: var(--space-3) var(--space-6); font-size: var(--text-sm); box-shadow: none; }
.storefront .btn-primary { background: var(--color-primary); }
.storefront .btn-primary:hover { background: var(--color-primary-hover); }
.storefront .btn-secondary { background: var(--color-surface); color: var(--color-foreground); border: 1px solid var(--color-border-strong); }
.storefront .btn:focus-visible, .storefront a:focus-visible, .storefront button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.storefront .skip-link { position: fixed; top: 8px; left: 16px; z-index: 1100; padding: 12px 20px; background: var(--color-surface); color: var(--color-primary); transform: translateY(-150%); }
.storefront .skip-link:focus { transform: translateY(0); }
.storefront .hero { background: var(--color-surface); padding: var(--space-8) 0 0; border: 0; }
.storefront .hero__container { grid-template-columns: .92fr 1.08fr; gap: 0; align-items: stretch; background: var(--store-cream); border-radius: var(--radius-lg); overflow: hidden; }
.storefront .hero__content { padding: var(--space-12) var(--space-10); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.storefront .hero__eyebrow { padding: 0; border-radius: 0; background: transparent; color: var(--color-primary); letter-spacing: .14em; text-transform: uppercase; font-size: var(--text-xs); font-weight: 800; margin-bottom: var(--space-5); }
.storefront .hero__eyebrow .icon { display: none; }
.storefront .hero__title { font-size: var(--store-title); letter-spacing: -.045em; line-height: 1.08; margin-bottom: var(--space-5); font-weight: 600; }
.storefront .hero__description { font-size: var(--text-base); max-width: 26rem; line-height: 1.75; margin-bottom: var(--space-6); }
.storefront .hero__buttons { order: 1; gap: var(--space-3); }
.storefront .hero__buttons .btn:last-child { display: none; }
.storefront .hero__buttons .btn-whatsapp { border: 0; background: transparent; padding-inline: var(--space-3); }
.storefront .hero__search { order: 2; margin-top: var(--space-6); margin-bottom: 0; width: 100%; max-width: 26rem; background: transparent; border: 0; border-bottom: 1px solid var(--color-border-strong); box-shadow: none; border-radius: 0; padding: 0 0 var(--space-1); }
.storefront .hero__search-input { padding-left: 0; font-size: var(--text-sm); }
.storefront .hero__search-btn { background: transparent; color: var(--color-primary); padding: var(--space-2); }
.storefront .hero__visual { display: block; padding: 0; border: 0; border-radius: 0; background: var(--store-cream); box-shadow: none; max-width: none; min-height: 490px; }
.storefront .hero__photo { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 53% center; }
.storefront .hero__caption { position: absolute; bottom: var(--space-6); left: var(--space-6); right: var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: rgba(255,255,255,.95); border-radius: var(--radius-md); color: var(--color-foreground); }
.storefront .hero__caption small { display: block; color: var(--color-muted-foreground); font-size: var(--text-xs); margin-bottom: var(--space-1); }
.storefront .hero__caption strong { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 500; }
.storefront .hero__caption .icon { color: var(--color-primary); flex-shrink: 0; }
.storefront .hero__stats { margin-top: var(--space-6); border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; box-shadow: none; background: var(--color-surface); gap: 0; grid-template-columns: repeat(4, 1fr); }
.storefront .stat { padding: var(--space-6); justify-content: center; }
.storefront .stat + .stat { border-left: 1px solid var(--color-border); }
.storefront .stat__number { font-family: var(--font-heading); font-size: var(--text-lg); }
.storefront .stat__text { font-size: var(--text-xs); }
.storefront .section__header { text-align: left; max-width: none; margin: 0 0 var(--space-8); }
.storefront .section__title { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -.025em; }
.storefront .section__title::after { display: none; }
.storefront .section__subtitle { margin: var(--space-2) 0 0; font-size: var(--text-base); }
.storefront .section-kicker { display: block; color: var(--color-primary); text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-xs); font-weight: 800; margin-bottom: var(--space-2); }
.storefront .categories { padding: var(--space-12) 0; background: var(--color-surface); }
.storefront .categories__grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-4); }
.storefront .category-card { padding: var(--space-6) var(--space-5); border: 1px solid var(--color-border); background: var(--color-muted); border-radius: var(--radius-md); box-shadow: none; position: relative; text-align: left; }
.storefront .category-card:hover { background: var(--color-brand-bg); border-color: var(--color-primary); transform: translateY(-3px); box-shadow: none; }
.storefront .category-card__icon { margin: 0 0 var(--space-4); width: 48px; height: 48px; background: var(--color-surface); border-radius: var(--radius-md); color: var(--color-primary); }
.storefront .category-card__title { font-size: var(--text-base); font-weight: 500; margin-bottom: var(--space-2); }
.storefront .category-card__link { min-height: 44px; justify-content: space-between; width: 100%; font-size: var(--text-xs); color: var(--color-muted-foreground); }
.storefront .category-card__link::after { content: ''; position: absolute; inset: 0; }
.storefront .category-card:focus-within { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.storefront .products { background: var(--color-muted); padding: var(--space-12) 0; }
.storefront .products__grid { gap: var(--space-5); }
.storefront .product-card { min-width: 0; border: 1px solid var(--color-border); box-shadow: none; border-radius: var(--radius-md); background: var(--color-surface); }
.storefront .product-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-2); transform: translateY(-4px); }
.storefront .product-card__image { aspect-ratio: 1; background: var(--color-surface); padding: var(--space-5); border-bottom: 1px solid var(--color-border); }
.storefront .product-card__image img { object-fit: contain; }
.storefront .product-card__content { padding: var(--space-5); }
.storefront .product-card__brand { font-size: var(--text-xs); color: var(--color-muted-foreground); letter-spacing: .07em; }
.storefront .product-card__title { font-size: var(--text-base); line-height: 1.5; font-weight: 500; }
.storefront .product-card__title a { color: inherit; }
.storefront .product-card__title a:hover { color: var(--color-primary); }
.storefront .product-card__sku { font-size: var(--text-xs); color: var(--color-muted-foreground); }
.storefront .price-current { font-size: var(--text-xl); font-family: var(--font-body); font-weight: 800; font-variant-numeric: tabular-nums; }
.storefront .btn-add-cart { min-height: 44px; border-radius: var(--radius-sm); }
.storefront .products__cta { margin-top: var(--space-6); }
.storefront .offers { padding: var(--space-12) 0; }
.storefront .offer-banner { min-height: 260px; border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: none; }
.storefront .offer-banner--primary { background: var(--color-primary); color: var(--color-on-primary); border: 0; }
.storefront .offer-banner--primary .offer-banner__title, .storefront .offer-banner--primary .offer-banner__text, .storefront .offer-banner--primary .offer-banner__label { color: var(--color-on-primary); }
.storefront .offer-banner--primary .btn { background: var(--color-surface); color: var(--color-primary); }
.storefront .offer-banner--primary .offer-banner__icon { color: var(--color-on-primary); opacity: .13; }
.storefront .offer-banner--secondary { background: var(--store-cream); }
.storefront .offer-banner--tertiary { background: var(--color-muted); }
.storefront .offer-banner__title { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 500; }
.storefront .offer-banner__label { background: transparent; padding: 0; letter-spacing: .08em; }
.storefront .offer-banner__label::before { display: none; }
.storefront .services__grid { border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.storefront .about { background: var(--store-cream); }
.storefront .page-header { padding: var(--space-8) 0; border-bottom: 1px solid var(--color-border); }
.storefront .page-header__title { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; font-weight: 500; }
.storefront .catalog { grid-template-columns: 240px minmax(0,1fr); gap: var(--space-8); }
.storefront .filters { box-shadow: none; background: var(--color-muted); border: 0; top: 170px; }
.storefront .filters__item { min-height: 44px; }
.storefront .catalog-toolbar { border: 0; padding: 0 0 var(--space-4); border-bottom: 1px solid var(--color-border); border-radius: 0; box-shadow: none; }
.storefront .catalog-toolbar__count { font-weight: 500; }
.storefront .footer { background: var(--color-shell); color: var(--color-shell-foreground); }
.storefront .footer__text, .storefront .footer__list a, .storefront .footer__bottom { color: #d0ceca; }
.storefront .footer__title { color: var(--color-shell-foreground); }
.storefront .footer__logo { background: var(--color-surface); padding: var(--space-2); border-radius: var(--radius-sm); width: 140px; height: auto; }
.storefront .error-box, .storefront .empty { width: 100%; grid-column: 1 / -1; }
@media (min-width: 1200px) {
  .storefront #productos-destacados { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .storefront .nav__list { gap: var(--space-6); }
  .storefront .hero__content { padding: var(--space-8); }
  .storefront .hero__visual { min-height: 460px; }
  .storefront .hero__buttons .btn { padding-inline: var(--space-4); }
  .storefront .catalog { gap: var(--space-5); grid-template-columns: 220px minmax(0,1fr); }
}
@media (max-width: 900px) {
  .storefront .container { width: calc(100% - 40px); }
  .storefront .nav { grid-template-columns: minmax(0,1fr) auto auto auto; gap: var(--space-3); padding: var(--space-3) 0; position: relative; }
  .storefront .nav__logo-img { width: 132px; }
  .storefront .nav__cart { grid-area: 1 / 2; }
  .storefront .nav__user { grid-area: 1 / 3; }
  .storefront .nav__toggle { grid-area: 1 / 4; display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .storefront .nav__search, .storefront .nav__menu.show ~ .nav__actions .nav__search { grid-area: 2 / 1 / 3 / -1; display: flex; position: relative; inset: auto; z-index: auto; width: 100%; max-width: none; }
  .storefront .nav__menu { display: none; position: absolute; top: 100%; left: -20px; right: -20px; bottom: auto; width: auto; height: auto; max-height: 65vh; overflow-y: auto; border-bottom: 1px solid var(--color-border); padding: var(--space-4) var(--space-6); background: var(--color-surface); box-shadow: var(--shadow-2); visibility: visible; opacity: 1; transform: none; }
  .storefront .nav__menu.show { display: block; }
  .storefront .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .storefront .nav__link { width: 100%; }
  .storefront .hero__container { grid-template-columns: 1fr 1fr; }
  .storefront .hero__content { padding: var(--space-8) var(--space-6); }
  .storefront .hero__title { font-size: 2.5rem; }
  .storefront .hero__visual { min-height: 440px; }
  .storefront .hero__caption { inset: auto var(--space-4) var(--space-4); padding: var(--space-3); }
  .storefront .stat { padding: var(--space-5) var(--space-3); gap: var(--space-2); }
  .storefront .stat__number { font-size: var(--text-base); }
  .storefront .categories__grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-3); }
  .storefront .category-card { padding: var(--space-4); }
  .storefront .catalog { grid-template-columns: minmax(0,1fr); }
  .storefront .filters { top: 0; }
}
@media (max-width: 640px) {
  .storefront .container { width: calc(100% - 32px); }
  .storefront .topbar__inner { justify-content: center; }
  .storefront .nav { gap: var(--space-2); }
  .storefront .nav__menu { left: -16px; right: -16px; }
  .storefront .hero { padding-top: var(--space-4); }
  .storefront .hero__container { grid-template-columns: minmax(0,1fr); }
  .storefront .hero__content { padding: var(--space-8) var(--space-6); }
  .storefront .hero__title { font-size: clamp(2.35rem, 10vw, 3.5rem); }
  .storefront .hero__eyebrow { font-size: .65rem; margin-bottom: var(--space-4); }
  .storefront .hero__description { font-size: var(--text-sm); margin-bottom: var(--space-5); }
  .storefront .hero__buttons { flex-direction: row; align-items: center; gap: var(--space-2); }
  .storefront .hero__buttons .btn { width: auto; font-size: var(--text-xs); padding-inline: var(--space-4); }
  .storefront .hero__buttons .btn-whatsapp { padding-inline: var(--space-2); }
  .storefront .hero__search { margin-top: var(--space-4); flex-wrap: nowrap; }
  .storefront .hero__search-input { flex: 1; min-width: 0; }
  .storefront .hero__search-btn { flex: 0; }
  .storefront .hero__visual { min-height: 290px; }
  .storefront .hero__stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: var(--space-3); }
  .storefront .stat { padding: var(--space-4) var(--space-2); justify-content: flex-start; }
  .storefront .stat + .stat { border: 0; }
  .storefront .stat:nth-child(even) { border-left: 1px solid var(--color-border); padding-left: var(--space-4); }
  .storefront .stat:nth-child(n+3) { border-top: 1px solid var(--color-border); }
  .storefront .categories, .storefront .products, .storefront .offers { padding: var(--space-8) 0; }
  .storefront .section__header { margin-bottom: var(--space-6); }
  .storefront .section__subtitle { font-size: var(--text-sm); }
  .storefront .categories__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .storefront .products__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
  .storefront .product-card__image { padding: var(--space-3); }
  .storefront .product-card__content { padding: var(--space-3); }
  .storefront .product-card__title { font-size: var(--text-sm); }
  .storefront .price-current { font-size: var(--text-lg); }
  .storefront .offer-banner { padding: var(--space-6); min-height: 220px; }
  .storefront .page-header { padding-block: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  .storefront *, .storefront *::before, .storefront *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
