/* Escaparate vivo — exclusivamente tienda.html y tema Lotigox.
   Las variables de marca siguen siendo las configuradas por la tienda. */
.storefront-gallery, .storefront-modal-scroll, .storefront-reserve-actions { display: contents; }
.storefront-thumbnails, .storefront-description-label, .storefront-reserve-help,
.storefront-sidebar-close, .storefront-explore-btn, .storefront-scroll-arrows { display: none; }
#storefront-read-more[hidden], #storefront-reserve-help[hidden] { display: none !important; }
body.theme-lotigox { background: var(--bg-app) !important; background-image: none !important; }
body.theme-lotigox .header-container { max-width: 1320px; gap: 20px; }
body.theme-lotigox .app-header { background: rgba(255,255,255,.96) !important; }
body.theme-lotigox .brand-logo { min-width: 0; flex: 1; gap: 14px; isolation: isolate; }
body.theme-lotigox #store-menu-toggle-btn {
    width: 44px; height: 44px; flex: 0 0 44px; margin: 0 !important;
    border-radius: 12px; background: var(--primary-light) !important; color: var(--primary) !important;
}
body.theme-lotigox .store-icon-animation-container { flex: 0 0 46px; margin: 0 !important; }
body.theme-lotigox .store-icon-animation-container::before,
body.theme-lotigox .store-icon-animation-container::after { display: none; }
body.theme-lotigox .store-icon-animation-container .icon {
    background: linear-gradient(140deg, #a56aff, var(--primary)); color: white; box-shadow: none;
}
body.theme-lotigox #bazar-title-header {
    font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
    font-size: clamp(1.8rem, 3vw, 2.65rem) !important; font-weight: 700 !important;
    letter-spacing: -.055em; line-height: 1.12; padding: 6px 0 !important;
    margin: 0 !important; max-width: 100%; overflow-wrap: anywhere;
    background: linear-gradient(110deg, var(--primary), #9a56f6, var(--primary)) !important;
    background-clip: text !important; -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-lotigox #bazar-title-header::after { display: none !important; }
body.theme-lotigox .brand-logo::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    left: 125px; top: 12%; width: min(360px, 65%); height: 70%;
    border-radius: 50%; background: linear-gradient(120deg, transparent, #d6b9fa88, #eee0ff22);
    filter: blur(10px); transform: rotate(-7deg); animation: storefront-light 10s ease-in-out infinite alternate;
}
@keyframes storefront-light { to { transform: translateX(22px) rotate(7deg) scaleY(.65); opacity: .55; } }
body.theme-lotigox #header-admin-back-btn {
    background: var(--primary) !important; color: #fff !important;
    border: 1px solid var(--primary) !important; min-height: 44px;
    padding: 10px 16px; box-shadow: 0 4px 12px #6a38e326 !important;
}
body.theme-lotigox #header-admin-back-btn span {
    color: #fff !important; -webkit-text-fill-color: #fff !important; opacity: 1;
}
body.theme-lotigox .catalog-section { max-width: 1280px; margin: auto; padding: 24px 24px 0; }
body.theme-lotigox .lotigox-cover-banner {
    margin: 0 0 24px; width: 100%; height: auto; aspect-ratio: 4 / 1;
    background-size: cover; background-repeat: no-repeat; background-position: center;
    background-color: var(--primary-light); border-radius: 18px; box-shadow: none;
}
body.theme-lotigox .lotigox-search-row { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
body.theme-lotigox .lotigox-topbar-search { flex: 1 1 40%; margin: 0; min-width: 0; }
body.theme-lotigox .lotigox-topbar-search .search-box-container { max-width: none !important; min-width: 0 !important; }
body.theme-lotigox .lotigox-topbar-search #store-search-input { border-radius: 14px !important; font-size: .95rem !important; padding: 14px 18px !important; }
body.theme-lotigox .lotigox-collections-strip { flex: 1 1 50%; min-width: 0; margin: 0; padding: 4px 0; gap: 9px; }
body.theme-lotigox .lotigox-coll-chip { flex-direction: row; gap: 7px; border-radius: 24px; padding: 11px 16px; background: var(--primary-light); min-height: 44px; }
body.theme-lotigox .lotigox-coll-chip-icon { width: 18px; height: 18px; background: transparent; color: var(--primary); }
body.theme-lotigox .lotigox-coll-chip-icon svg { width: 18px; height: 18px; }
body.theme-lotigox .lotigox-coll-chip-label { max-width: 180px; font-size: .83rem; color: var(--text-main); }
body.theme-lotigox .lotigox-coll-chip.active { background: var(--primary); }
body.theme-lotigox .lotigox-coll-chip.active .lotigox-coll-chip-label,
body.theme-lotigox .lotigox-coll-chip.active .lotigox-coll-chip-icon { color: #fff; background: transparent; }
body.theme-lotigox .lotigox-novedades { margin: 0 0 30px; }
body.theme-lotigox .lotigox-novedades-header { gap: 12px; }
body.theme-lotigox .lotigox-novedades-header h3 { flex: 1; }
body.theme-lotigox .storefront-scroll-arrows { display: flex; gap: 6px; }
body.theme-lotigox .storefront-scroll-arrows button { border: 1px solid var(--border-color); background: white; color: var(--primary); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
body.theme-lotigox .lotigox-novedades-scroll { gap: 16px; padding-bottom: 12px; }
body.theme-lotigox .lotigox-novedad-card { flex: 0 0 calc((100% - 64px)/5); min-width: 180px; }
body.theme-lotigox .product-grid { grid-template-columns: repeat(auto-fill,minmax(205px,1fr)); gap: 18px; }
body.theme-lotigox .product-card { border-radius: 14px !important; box-shadow: 0 4px 14px #47227a08 !important; overflow: hidden; }
body.theme-lotigox .product-image-box { aspect-ratio: 4 / 5; }
body.theme-lotigox .product-info { padding: 12px; gap: 0; }
body.theme-lotigox .lotigox-price { color: var(--primary); font-size: 1.22rem; }
body.theme-lotigox .product-info h4 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; min-height: 0; margin: 0 0 6px; }
body.theme-lotigox .product-tags { margin-top: 10px; }
body.theme-lotigox .product-info .info-tag { font-size: .7rem; border-radius: 7px; }
body.theme-lotigox .catalog-header { margin-bottom: 12px !important; }
body.theme-lotigox .lotigox-catalog-controls { margin-bottom: 18px; }
body.theme-lotigox .buyer-sidebar { width: 300px; left: -340px; padding: 56px 22px 24px; height: 100dvh; }
body.theme-lotigox .buyer-sidebar-card { border: none; border-radius: 0; box-shadow: none; background: none; padding: 16px 0; margin-bottom: 12px; }
body.theme-lotigox .buyer-sidebar-card + .buyer-sidebar-card { border-top: 1px solid var(--border-color); }
body.theme-lotigox .sidebar-item-link { border-radius: 9px; padding: 12px; }
body.theme-lotigox .sidebar-item-link.active { border-left: 3px solid var(--primary); }
body.theme-lotigox .social-contact-grid { display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap; }
body.theme-lotigox .storefront-sidebar-close { display: block; position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: var(--primary-light); color: var(--primary); border-radius: 10px; font-size: 24px; cursor: pointer; }
body.theme-lotigox .cart-overlay, body.theme-lotigox #product-modal { backdrop-filter: blur(2px); }
body.theme-lotigox .cart-drawer { background: white; }
body.theme-lotigox .storefront-explore-btn { display: inline-block; border: 0; border-radius: 12px; padding: 12px 20px; margin-top: 20px; background: var(--primary); color: white; font: inherit; cursor: pointer; }
/* Ficha: conserva los mismos nodos y eventos de reserva/Turnstile. */
body.theme-lotigox #product-modal > .modal-content { max-width: 1040px; background: white; border-radius: 22px; padding: 0; }
body.theme-lotigox #product-modal .modal-body-grid { padding: 54px 28px 24px; gap: 28px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
body.theme-lotigox .storefront-gallery { display: block; min-width: 0; }
body.theme-lotigox #product-modal .modal-image-box { aspect-ratio: 1; max-height: none; min-height: 0 !important; background: #faf8fc !important; }
body.theme-lotigox #modal-product-img { min-height: 0 !important; height: 100% !important; }
body.theme-lotigox #modal-carousel-dots { display: none !important; }
body.theme-lotigox .storefront-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 2px; }
body.theme-lotigox .storefront-thumbnails:empty { display: none; }
body.theme-lotigox .storefront-thumbnails button { width: 82px; height: 70px; flex: 0 0 82px; padding: 2px; border: 2px solid transparent; border-radius: 10px; background: var(--primary-light); cursor: pointer; }
body.theme-lotigox .storefront-thumbnails button.active { border-color: var(--primary); }
body.theme-lotigox .storefront-thumbnails img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
body.theme-lotigox #product-modal .modal-details-box { padding: 0 !important; min-width: 0; justify-content: flex-start; }
body.theme-lotigox #product-modal .modal-nav-back-btn { position: absolute; top: 18px; left: 28px; color: var(--primary) !important; }
body.theme-lotigox #modal-product-title { font-family: 'Space Grotesk',sans-serif; font-size: 1.7rem; line-height: 1.2; }
body.theme-lotigox #modal-product-final-price { color: var(--primary); font-size: 2rem; }
body.theme-lotigox #modal-product-discount-badge { background: var(--primary-light) !important; color: var(--primary) !important; }
body.theme-lotigox #modal-product-sale-spec { background: var(--primary-light) !important; color: var(--primary) !important; border: 0 !important; }
body.theme-lotigox #product-modal .info-badges { gap: 8px; margin-bottom: 18px; }
body.theme-lotigox #product-modal .info-tag { font-size: .83rem; padding: 10px 12px; border: none; border-radius: 9px; }
body.theme-lotigox .storefront-description-label { display: block; font-size: .9rem; margin-bottom: 5px; }
body.theme-lotigox #modal-product-desc { font-size: .9rem; line-height: 1.65; color: var(--text-main); margin-bottom: 8px; white-space: pre-line; }
body.theme-lotigox .storefront-desc-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-lotigox .storefront-read-more { background: none; border: 0; text-decoration: underline; color: var(--primary); align-self: flex-start; padding: 4px 0 12px; font: inherit; font-size: .85rem; cursor: pointer; }
body.theme-lotigox .storefront-reserve-actions { display: block; margin-top: 18px; }
body.theme-lotigox #btn-reserve-product { width: 100%; border-radius: 14px; box-shadow: 0 5px 14px #7035ef22; background: linear-gradient(120deg,#9850fa,var(--primary)); font-size: .95rem; }
body.theme-lotigox #btn-reserve-product.remove-btn { background: #c74457; }
body.theme-lotigox #btn-reserve-product:disabled { opacity: .6; box-shadow: none; }
body.theme-lotigox .storefront-reserve-help { display: block; text-align: center; font-size: .72rem; color: var(--text-muted); margin: 7px 0 0; }
body.theme-lotigox #turnstile-widget { max-width: 100%; min-width: 0; }
body.theme-lotigox #related-products-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
body.theme-lotigox #related-products-grid > div { text-align: left !important; }
body.theme-lotigox #related-products-grid > div > div:last-child { color: var(--primary) !important; font-size: .95rem !important; }
body.theme-lotigox #related-products-grid > div > div:nth-child(2) { white-space: normal !important; font-size: .8rem !important; }
body.theme-lotigox :is(button,a,input,select):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 900px) {
    body.theme-lotigox .lotigox-search-row { flex-direction: column; align-items: stretch; gap: 12px; }
    body.theme-lotigox .lotigox-collections-strip { flex-basis: auto; }
    body.theme-lotigox .storefront-scroll-arrows { display: none; }
}
@media (max-width: 600px) {
    body.theme-lotigox .header-container { padding: 0 12px; gap: 8px; flex-wrap: nowrap; }
    body.theme-lotigox .brand-logo { gap: 8px; }
    body.theme-lotigox #store-menu-toggle-btn { width: 36px; height: 38px; flex-basis: 36px; font-size: 1.15rem !important; }
    body.theme-lotigox .store-icon-animation-container { flex-basis: 34px; width: 34px !important; height: 34px !important; }
    body.theme-lotigox .store-icon-animation-container :is(img,.icon) { width: 34px !important; height: 34px !important; max-width: 34px !important; border-radius: 9px !important; }
    body.theme-lotigox #bazar-title-header { font-size: clamp(1.15rem,5.8vw,1.65rem) !important; }
    body.theme-lotigox .brand-logo::before { left: 85px; width: 65%; }
    body.theme-lotigox .header-actions { flex: 0 0 auto; gap: 6px !important; }
    body.theme-lotigox #header-admin-back-btn, body.theme-lotigox #header-lotigox-back-btn { font-size: 0 !important; padding: 7px !important; }
    body.theme-lotigox #header-admin-back-btn span, body.theme-lotigox #header-lotigox-back-btn span { font-size: .6rem; max-width: 42px; }
    body.theme-lotigox #header-admin-back-btn { padding: 8px 10px !important; }
    body.theme-lotigox #header-admin-back-btn span { font-size: .78rem; max-width: 64px; line-height: 1.2; }
    body.theme-lotigox .catalog-section { padding: 14px 12px 0; }
    body.theme-lotigox .lotigox-cover-banner { aspect-ratio: 2 / 1; margin-bottom: 16px; border-radius: 12px; }
    body.theme-lotigox .lotigox-coll-chip { padding: 10px 14px; }
    body.theme-lotigox .lotigox-coll-chip-icon { display: none; }
    body.theme-lotigox .lotigox-coll-chip-label { font-size: .8rem; }
    body.theme-lotigox .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px; }
    body.theme-lotigox .lotigox-novedades-scroll { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-height: none; overflow: visible; }
    body.theme-lotigox .lotigox-novedad-card { min-width: 0; width: auto; }
    body.theme-lotigox .lotigox-novedad-card:nth-child(n+5) { display: none; }
    body.theme-lotigox .product-info { padding: 10px; }
    body.theme-lotigox .product-info h4 { font-size: .83rem; }
    body.theme-lotigox .lotigox-price { font-size: 1.1rem; }
    body.theme-lotigox .product-info .info-tag { font-size: .64rem; }
    body.theme-lotigox .floating-cart-btn { display: none !important; }
    body.theme-lotigox #product-modal { padding: 0 !important; }
    body.theme-lotigox #product-modal > .modal-content { height: 100dvh; max-height: 100dvh !important; width: 100%; border-radius: 0; display: flex; flex-direction: column; overflow: hidden !important; transform: none; }
    body.theme-lotigox .storefront-modal-scroll { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 46px; }
    body.theme-lotigox #product-modal .modal-body-grid { padding: 12px 16px 18px; gap: 18px; grid-template-columns: 1fr; }
    body.theme-lotigox #product-modal .modal-image-box { height: auto !important; aspect-ratio: 1 !important; min-height: 0 !important; }
    body.theme-lotigox #product-modal .modal-nav-back-btn { left: 16px; top: 16px; }
    body.theme-lotigox #product-modal #close-modal-btn { top: 8px !important; }
    body.theme-lotigox #modal-product-title { font-size: 1.45rem; }
    body.theme-lotigox #product-modal > .modal-content > .storefront-reserve-actions { flex: 0 0 auto; margin: 0; padding: 12px 16px max(12px,env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--border-color); box-shadow: 0 -4px 16px #7035ef08; }
    body.theme-lotigox #related-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (prefers-reduced-motion: reduce) {
    body.theme-lotigox .brand-logo::before { animation: none; }
    body.theme-lotigox *, body.theme-lotigox *::before, body.theme-lotigox *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
