/**
 * Conectado em Sergipe - Storefront Styles
 * Versão otimizada com suporte a carregamento assíncrono e Anti-FOUC
 */

/* ==========================================================================
   Storefront Page Loader - 5 Estrelas Azuis Pulsantes Horizontais
   ========================================================================== */
.storefront-page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #071630;
    background: radial-gradient(circle at 50% 45%, #0b2247 0%, #061226 100%);
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.storefront-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.storefront-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
}

.storefront-loader-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.storefront-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #1265f5;
    text-shadow: 0 0 16px rgba(18, 101, 245, 0.8), 0 0 32px rgba(56, 189, 248, 0.5);
    animation: storefrontStarPulse 1.4s ease-in-out infinite;
    animation-delay: calc(var(--star-idx, 0) * 0.18s);
    transform-origin: center;
}

@keyframes storefrontStarPulse {
    0%, 100% {
        transform: scale(0.72);
        opacity: 0.3;
        color: #0d4dbb;
        text-shadow: 0 0 6px rgba(18, 101, 245, 0.3);
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
        color: #38bdf8;
        text-shadow: 0 0 22px #38bdf8, 0 0 42px #1265f5, 0 0 60px rgba(18, 101, 245, 0.95);
    }
}

.storefront-loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.storefront-loader-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-loader-sub {
    font-size: 0.82rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: storefrontLoaderTextFade 1.4s ease-in-out infinite alternate;
}

@keyframes storefrontLoaderTextFade {
    0% { opacity: 0.45; }
    100% { opacity: 1; }
}

/* ==========================================================================
   Storefront Modals & Dialogs
   ========================================================================== */
.storefront-map-dialog {
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    width: 90vw;
    max-width: 800px;
    height: 70vh;
    max-height: 800px;
    margin: auto;
    overflow: visible;
}
.storefront-map-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.storefront-map-dialog-content {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.storefront-map-dialog-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}
.storefront-map-close {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 20;
    background: #fff;
    border: 1px solid #ccc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.storefront-map-dialog-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

/* ==========================================================================
   Storefront Layout & Shell
   ========================================================================== */
.storefront-page {
    min-height: 70vh;
    padding: 0 0 4rem;
    color: var(--foreground);
    background: var(--background);
}
.storefront-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
}
.storefront-breadcrumb {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    padding: 1rem 2px;
    color: var(--muted-foreground);
    font-size: .82rem;
}
.storefront-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #1265f5;
    font-weight: 700;
    text-decoration: none;
}
.storefront-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.storefront-breadcrumb > i { font-size: .6rem; }

/* ==========================================================================
   Storefront Hero & Identity
   ========================================================================== */
.storefront-hero {
    position: relative;
    min-height: 236px;
    overflow: hidden;
    isolation: isolate;
    background: #071630;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}
.storefront-hero-background {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-position: center right;
    background-size: cover;
    opacity: 1;
    transform: scale(1.01);
    transition: opacity .45s ease;
}
.storefront-hero-background.is-changing { opacity: 0; }
.storefront-hero-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 17, 43, .85) 0%, rgba(7, 24, 57, .52) 48%, rgba(7, 22, 48, .2) 100%),
        linear-gradient(0deg, rgba(5, 14, 34, .6) 0%, transparent 60%);
}
.storefront-owner-tools {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    gap: .5rem;
}
.storefront-owner-tools a,
.storefront-owner-tools button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: 0 13px;
    color: #fff;
    background: rgba(7, 20, 45, .58);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    backdrop-filter: blur(9px);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.storefront-owner-tools button { cursor: pointer; }
.storefront-owner-tools .storefront-follow-button {
    color: #fff;
    text-decoration: none;
}
.storefront-owner-tools .storefront-follow-button.is-following {
    color: #fff;
    background: rgba(217, 39, 85, .82);
    border-color: rgba(255, 255, 255, .55);
}
.storefront-follow-button small {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: .58rem;
}
.storefront-identity {
    position: absolute;
    right: 28px;
    bottom: 22px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
}
.storefront-logo {
    width: 114px;
    height: 114px;
    flex: 0 0 114px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 3px solid #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .2);
}
.storefront-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}
.storefront-identity-copy { min-width: 0; }
.storefront-category {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
    padding: 4px 9px;
    color: #d9e8ff;
    background: rgba(18, 101, 245, .36);
    border: 1px solid rgba(126, 174, 255, .4);
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
}
.storefront-featured {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0 0 .35rem .3rem;
    padding: 4px 9px;
    color: #fff2bd;
    background: rgba(151, 101, 0, .58);
    border: 1px solid rgba(255, 211, 74, .52);
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
}
.storefront-identity h1 {
    max-width: 760px;
    margin: 0 0 .3rem;
    color: #fff;
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.storefront-location {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    color: #dbe5f6;
    font-size: .9rem;
}
.storefront-address {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    color: #e2e8f0;
    font-size: .84rem;
    opacity: .95;
}
.storefront-address i {
    color: #60a5fa;
    font-size: .78rem;
}
.storefront-rating {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: #fff;
    font-size: .84rem;
    text-decoration: none;
}
.storefront-rating i { color: #ffbd15; }
.storefront-rating span { color: #dbe5f6; }

/* ==========================================================================
   Storefront Stats Bar
   ========================================================================== */
.storefront-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}
.storefront-stats > div,
.storefront-stat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-width: 0;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease;
}
.storefront-stat-link:hover {
    background: rgba(37, 211, 102, .06);
}
.storefront-stats > div + div,
.storefront-stats > div + a,
.storefront-stats > a + div { border-left: 1px solid var(--border); }
.storefront-stat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    color: #1265f5;
    background: color-mix(in srgb, #1265f5 10%, var(--card));
    border-radius: 11px;
}
.storefront-stat-icon.is-wa {
    color: #179653;
    background: rgba(37, 211, 102, .14);
}
.storefront-stats p { display: grid; min-width: 0; margin: 0; line-height: 1.2; }
.storefront-stats strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.storefront-stats small { margin-top: 3px; color: var(--muted-foreground); font-size: .7rem; }

/* ==========================================================================
   Storefront Top Contact Bar
   ========================================================================== */
.storefront-top-contact-bar {
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--card);
    border: 1.5px solid rgba(18, 101, 245, 0.16);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.storefront-top-contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.storefront-top-contact-title {
    color: var(--foreground);
    font-size: .84rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.storefront-top-contact-title i { color: #1265f5; }
.storefront-top-contact-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
}
.storefront-top-contact-status.is-open {
    color: #15803d;
    background: rgba(34, 197, 94, .12);
}
.storefront-top-contact-status.is-closed {
    color: #b91c1c;
    background: rgba(239, 68, 68, .12);
}
.storefront-top-contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.storefront-top-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 0 14px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
    transition: all .2s ease-in-out;
    border: 1px solid var(--border);
    background: var(--muted-bg);
    color: var(--foreground);
}
.storefront-top-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}
.storefront-top-btn.is-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(37, 211, 102, .3);
}
.storefront-top-btn.is-whatsapp:hover {
    background: linear-gradient(135deg, #2ce06e 0%, #0e7a6e 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
}
.storefront-top-btn.is-whatsapp i { font-size: 1rem; }
.storefront-top-btn.is-phone:hover {
    border-color: #1265f5;
    color: #1265f5;
    background: rgba(18, 101, 245, .06);
}
.storefront-top-btn.is-phone i { color: #1265f5; }
.storefront-top-btn.is-instagram:hover {
    border-color: #E1306C;
    color: #E1306C;
    background: rgba(225, 48, 108, .06);
}
.storefront-top-btn.is-instagram i { color: #E1306C; }
.storefront-top-btn.is-website:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, .06);
}
.storefront-top-btn.is-website i { color: #6366f1; }
.storefront-top-btn.is-directions:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: rgba(2, 132, 199, .06);
}
.storefront-top-btn.is-directions i { color: #0284c7; }

/* ==========================================================================
   Storefront Gallery
   ========================================================================= */
.storefront-gallery {
    margin-top: 22px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.storefront-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 14px;
}
.storefront-gallery-heading span { color: #1265f5; font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.storefront-gallery-heading h2 { margin: 2px 0 0; color: var(--foreground); font-size: 1.1rem; font-weight: 850; }
.storefront-gallery-heading > strong { color: var(--muted-foreground); font-size: .7rem; }
.storefront-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}
.storefront-gallery-grid button {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: var(--muted-bg);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
}
.storefront-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}
.storefront-gallery-grid button:hover img { transform: scale(1.035); }
.storefront-gallery-dialog {
    width: min(1040px, calc(100% - 28px));
    max-width: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    position: relative;
}
.storefront-gallery-dialog::backdrop {
    background: rgba(3, 9, 23, .92);
    backdrop-filter: blur(10px);
}
.storefront-gallery-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}
.storefront-gallery-top-bar > * {
    pointer-events: auto;
}
.storefront-gallery-autoplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #fff;
    background: rgba(7, 20, 45, .82);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    transition: all .2s ease;
}
.storefront-gallery-autoplay-btn:hover {
    background: rgba(13, 110, 253, .85);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, .4);
}
.storefront-gallery-autoplay-btn.is-paused {
    background: rgba(23, 37, 66, .85);
    border-color: rgba(255, 255, 255, .15);
    opacity: .85;
}
.storefront-gallery-autoplay-btn.is-paused:hover {
    opacity: 1;
    background: rgba(13, 110, 253, .85);
}
.storefront-gallery-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    z-index: 5;
}
.storefront-gallery-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0d6efd, #38bdf8);
    box-shadow: 0 0 10px rgba(56, 189, 248, .7);
    transition: width .05s linear;
}
.storefront-gallery-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #050b17;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.storefront-gallery-dialog-image {
    width: 100%;
    max-height: 82vh;
    display: block;
    object-fit: contain;
    background: #050b17;
    border-radius: 16px;
    transition: opacity .28s ease, transform .28s ease;
}
.storefront-gallery-dialog-image.is-changing {
    opacity: 0.15;
    transform: scale(0.985);
}
.storefront-gallery-close,
.storefront-gallery-nav {
    position: absolute;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(7, 20, 45, .82);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    transition: all .2s ease;
}
.storefront-gallery-close:hover,
.storefront-gallery-nav:hover {
    background: rgba(13, 110, 253, .85);
    border-color: rgba(255, 255, 255, .5);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(13, 110, 253, .4);
}
.storefront-gallery-close {
    position: static;
}
.storefront-gallery-nav {
    top: 50%;
    transform: translateY(-50%);
}
.storefront-gallery-nav:hover {
    transform: translateY(-50%) scale(1.08);
}
.storefront-gallery-nav.is-previous { left: 14px; }
.storefront-gallery-nav.is-next { right: 14px; }
.storefront-gallery-footer {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}
.storefront-gallery-dialog #storefront-gallery-counter {
    display: inline-block;
    padding: 6px 14px;
    color: #fff;
    background: rgba(7, 20, 45, .82);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   Storefront Layout (Catalog & Sidebar)
   ========================================================================== */
.storefront-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
    margin-top: 30px;
}
.storefront-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
}

/* Promotions */
.storefront-promotions {
    padding: 22px;
    color: var(--foreground);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.storefront-promotions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}
.storefront-promotion-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, #1265f5 8%, var(--card)), var(--card));
    border: 1px solid color-mix(in srgb, #1265f5 22%, var(--border));
    border-radius: 14px;
}
.storefront-promotion-discount {
    width: 72px;
    min-height: 72px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #fff;
    background: linear-gradient(145deg, #1265f5, #084ac3);
    border-radius: 12px;
    text-align: center;
}
.storefront-promotion-discount i { font-size: .72rem; }
.storefront-promotion-discount strong { font-size: .72rem; line-height: 1.1; }
.storefront-promotion-content { min-width: 0; }
.storefront-promotion-content h3 {
    margin: 0;
    color: var(--foreground);
    font-size: .82rem;
    font-weight: 850;
}
.storefront-promotion-content > p,
.storefront-promotion-content details p {
    margin: 5px 0 0;
    color: var(--muted-foreground);
    font-size: .66rem;
    line-height: 1.45;
}
.storefront-promotion-content > small {
    display: block;
    margin-top: 7px;
    color: var(--muted-foreground);
    font-size: .58rem;
}
.storefront-promotion-content details { margin-top: 5px; }
.storefront-promotion-content summary {
    color: #1265f5;
    font-size: .58rem;
    font-weight: 750;
    cursor: pointer;
}
.storefront-coupon-copy {
    grid-column: 1 / -1;
    min-height: 39px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    color: var(--foreground);
    background: var(--card);
    border: 1px dashed #1265f5;
    border-radius: 10px;
    cursor: pointer;
}
.storefront-coupon-copy span { color: var(--muted-foreground); font-size: .58rem; }
.storefront-coupon-copy strong {
    overflow: hidden;
    color: #1265f5;
    font-size: .72rem;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.storefront-coupon-copy i { color: #1265f5; }

/* Catalog */
.storefront-catalog,
.storefront-info-card,
.storefront-hours-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
}
.storefront-catalog { padding: 24px; }
.storefront-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 20px;
}
.storefront-section-heading span,
.storefront-card-eyebrow {
    color: #1265f5;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .08em;
}
.storefront-section-heading h2,
.storefront-info-card h2,
.storefront-hours-card h2 {
    margin: 3px 0;
    color: var(--foreground);
    font-size: 1.35rem;
    font-weight: 850;
}
.storefront-section-heading p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: .83rem;
}
.storefront-section-heading > strong {
    flex: 0 0 auto;
    color: #1265f5;
    font-size: .78rem;
}
.storefront-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 155px auto;
    gap: 9px;
    margin-bottom: 17px;
}
.storefront-search label {
    position: relative;
    min-width: 0;
    margin: 0;
}
.storefront-search-query > i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--muted-foreground);
    transform: translateY(-50%);
}
.storefront-search input,
.storefront-search select {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    color: var(--foreground);
    background: var(--muted-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font-size: .82rem;
}
.storefront-search input { padding-left: 41px; }
.storefront-search input:focus,
.storefront-search select:focus {
    border-color: #1265f5;
    box-shadow: 0 0 0 3px rgba(18, 101, 245, .1);
}
.storefront-search > button {
    height: 44px;
    padding: 0 17px;
    color: #fff;
    background: #1265f5;
    border: 0;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 800;
}
.storefront-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 17px;
    color: var(--muted-foreground);
    font-size: .72rem;
}
.storefront-filter-summary strong {
    padding: 5px 9px;
    color: var(--foreground);
    background: var(--muted-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.storefront-filter-summary a { margin-left: auto; color: #1265f5; font-weight: 700; }
#produtos { scroll-margin-top: 24px; }

/* Products Grid */
.storefront-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.storefront-product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.storefront-product-card:hover {
    border-color: color-mix(in srgb, #1265f5 48%, var(--border));
    box-shadow: 0 12px 24px rgba(15, 23, 42, .09);
    transform: translateY(-3px);
}
.storefront-product-image {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted-foreground);
    background: var(--muted-bg);
    text-decoration: none;
}
.storefront-product-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}
.storefront-product-card:hover .storefront-product-image > img { transform: scale(1.035); }
.storefront-product-image > span { font-size: 2rem; }
.storefront-product-image > small {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 8px;
    overflow: hidden;
    color: #fff;
    background: rgba(8, 23, 50, .78);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.storefront-product-body { padding: 14px; }
.storefront-product-body > a { color: var(--foreground); text-decoration: none; }
.storefront-product-body h3 {
    min-height: 2.5em;
    margin: 0 0 8px;
    display: -webkit-box;
    overflow: hidden;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.storefront-product-body > p {
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted-foreground);
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.storefront-product-body > p i { color: #1265f5; }
.storefront-product-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .5rem;
    padding-top: 11px;
    border-top: 1px solid var(--border);
}
.storefront-product-footer strong {
    color: #1265f5;
    font-size: .92rem;
    line-height: 1.2;
}
.storefront-product-footer a {
    flex: 0 0 auto;
    color: var(--foreground);
    font-size: .68rem;
    font-weight: 750;
    text-decoration: none;
}

.storefront-product-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.storefront-product-actions form {
    margin: 0;
}

.storefront-product-actions a.storefront-wa-btn {
    border: 0;
    border-radius: 999px;
    padding: .5rem .85rem;
    color: #fff !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.storefront-product-actions a.storefront-wa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    filter: brightness(1.05);
    color: #fff !important;
}
.storefront-product-actions button {
    border: 0;
    border-radius: 999px;
    padding: .5rem .7rem;
    color: #fff;
    background: #256c2b;
    font-size: .72rem;
    font-weight: 800;
}
.storefront-pagination { margin-top: 22px; }
.storefront-empty {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 35px;
    text-align: center;
    background: var(--muted-bg);
    border: 1px dashed var(--border);
    border-radius: 16px;
}
.storefront-empty > span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: #1265f5;
    background: color-mix(in srgb, #1265f5 10%, var(--card));
    border-radius: 18px;
    font-size: 1.55rem;
}
.storefront-empty h3 { margin: 0; color: var(--foreground); font-size: 1rem; font-weight: 800; }
.storefront-empty p { max-width: 430px; margin: 6px 0 15px; color: var(--muted-foreground); font-size: .8rem; }
.storefront-empty a {
    padding: 9px 15px;
    color: #fff;
    background: #1265f5;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
    text-decoration: none;
}

/* ==========================================================================
   Storefront Sidebar
   ========================================================================== */
.storefront-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
}
.storefront-info-card,
.storefront-hours-card { padding: 22px; }
.storefront-info-card > p {
    margin: 10px 0 17px;
    color: var(--foreground, #1e293b);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.storefront-info-card dl { margin: 0; }
.storefront-info-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: .8rem;
}
.storefront-info-card dt { color: var(--foreground, #334155); font-weight: 600; }
.storefront-info-card dd { margin: 0; text-align: right; font-weight: 750; }
.storefront-open-status {
    display: grid;
    gap: 3px;
    margin: 12px 0 14px;
    padding: 10px 11px;
    color: var(--muted-foreground);
    background: var(--muted-bg);
    border: 1px solid var(--border);
    border-radius: 11px;
}
.storefront-open-status span {
    color: var(--foreground);
    font-size: .72rem;
    font-weight: 800;
}
.storefront-open-status span i { margin-right: 4px; font-size: .48rem; }
.storefront-open-status small { font-size: .6rem; }
.storefront-open-status.is-open span,
.storefront-open-status.is-open span i { color: #16834b; }
.storefront-open-status.is-closed span,
.storefront-open-status.is-closed span i { color: #c2414f; }
.storefront-hours-list {
    display: grid;
    gap: 0;
}
.storefront-hours-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    color: var(--muted-foreground);
    border-top: 1px solid var(--border);
    font-size: .62rem;
}
.storefront-hours-list > div strong {
    color: var(--foreground);
    font-size: .62rem;
    text-align: right;
}
.storefront-hours-list > div.is-today span,
.storefront-hours-list > div.is-today strong {
    color: #1265f5;
    font-weight: 850;
}
.storefront-report-action {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.storefront-reviews .reviews-section { margin-top: 30px !important; }

/* Share Feedback */
.store-share-feedback {
    position: fixed;
    z-index: 1090;
    right: 20px;
    bottom: 80px;
    padding: 10px 15px;
    color: #fff;
    background: #1265f5;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
    font-size: .78rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: .2s ease;
}
.store-share-feedback.is-visible { opacity: 1; transform: translateY(0); }

/* Quick Product Modal */
.storefront-quick-product {
    width: min(920px, calc(100% - 32px));
    max-height: 88vh;
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
    overflow: auto;
}
.storefront-quick-product::backdrop { background: rgba(15, 23, 42, .64); backdrop-filter: blur(3px); }
.storefront-quick-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 1.35rem;
}
.storefront-quick-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); }
.storefront-quick-grid > div:last-child { padding: 34px; }
.storefront-quick-media { min-width: 0; background: #f1f5f9; }
.storefront-quick-image { min-height: 480px; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; font-size: 3rem; }
.storefront-quick-image img { width: 100%; height: 100%; object-fit: cover; }
.storefront-quick-thumbnails { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.storefront-quick-thumbnails button { flex: 0 0 62px; width: 62px; height: 62px; padding: 2px; border: 2px solid transparent; border-radius: 10px; background: #fff; overflow: hidden; }
.storefront-quick-thumbnails button.is-active { border-color: #1265f5; }
.storefront-quick-thumbnails img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.storefront-quick-rating { display: flex; align-items: center; gap: 5px; margin: 7px 0 12px; color: #64748b; font-size: .86rem; }
.storefront-quick-rating i { color: #f59e0b; }
.storefront-quick-rating strong { color: #334155; }
.storefront-quick-price { display: block; margin: 18px 0; color: #1265f5; font-size: 1.65rem; }
.storefront-quick-product form { display: grid; gap: 12px; }
.storefront-quick-product form > label:not(.storefront-quick-addon) { display: grid; gap: 5px; font-weight: 700; }
.storefront-quick-product select,
.storefront-quick-product textarea,
.storefront-quick-product input[type="number"] { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.storefront-quick-addon { display: flex; gap: 8px; align-items: center; }
.storefront-quick-stock { min-height: 20px; margin: 0; color: #16834b; font-size: .82rem; font-weight: 800; }
.storefront-quick-stock.is-low { color: #b45309; }
.storefront-quick-stock.is-out { color: #c2414f; }
.storefront-quick-delivery { display: grid; gap: 7px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #f8fafc; color: #475569; font-size: .78rem; }
.storefront-quick-delivery strong { color: #334155; }
.storefront-quick-delivery i { width: 17px; color: #1265f5; text-align: center; }
.storefront-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.storefront-quick-actions button,
.storefront-quick-full { padding: 11px; border: 0; border-radius: 10px; background: #1265f5; color: #fff; font-weight: 800; text-align: center; text-decoration: none; }
.storefront-quick-actions button.storefront-quick-wa-btn {
    grid-column: span 2;
    padding: 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: .96rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.storefront-quick-actions button.storefront-quick-wa-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.storefront-quick-actions button.storefront-quick-wa-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}
.storefront-quick-actions button:disabled { cursor: not-allowed; opacity: .55; }
.storefront-quick-full { display: block; margin-top: 12px; background: #eef2ff; color: #1e40af; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1400px) {
    .storefront-hero { min-height: 220px !important; }
    .storefront-logo { width: 104px !important; height: 104px !important; flex-basis: 104px !important; border-radius: 20px !important; border-width: 3px !important; }
    .storefront-identity h1 { font-size: 1.45rem !important; }
}
@media (max-width: 1199.98px) {
    .storefront-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .storefront-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-search { grid-template-columns: minmax(200px, 1fr) 180px; }
    .storefront-search > button { grid-column: span 2; }
}
@media (max-width: 991.98px) {
    .storefront-layout { grid-template-columns: 1fr; }
    .storefront-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .storefront-shell { width: 100%; padding: 0 12px; }
    .storefront-breadcrumb { padding: .75rem 2px; }
    .storefront-hero { 
        position: relative; 
        min-height: auto; 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        gap: 6px;
        padding: 8px 10px 10px; 
        border-radius: 14px 14px 0 0; 
        border-bottom: 0;
    }
    .storefront-hero-overlay {
        background:
            linear-gradient(180deg, rgba(5, 14, 34, .38) 0%, rgba(5, 17, 43, .75) 45%, rgba(5, 17, 43, .92) 100%),
            linear-gradient(90deg, rgba(5, 17, 43, .65) 0%, rgba(7, 24, 57, .35) 100%);
    }
    .storefront-owner-tools { 
        position: static; 
        display: flex; 
        justify-content: flex-end; 
        width: 100%; 
        margin: 0; 
        z-index: 2; 
    }
    .storefront-owner-tools a,
    .storefront-owner-tools button { min-height: 26px; padding: 0 8px; font-size: .64rem; gap: .3rem; }
    .storefront-identity { 
        position: static; 
        display: flex; 
        align-items: center; 
        gap: 10px; 
        width: 100%; 
        z-index: 2; 
    }
    .storefront-logo { 
        width: 64px; 
        height: 64px; 
        flex: 0 0 64px; 
        border-radius: 14px; 
        padding: 0;
        border: 2.5px solid #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    }
    .storefront-logo img { border-radius: inherit; object-fit: cover; }
    .storefront-identity-copy {
        flex: 1;
        min-width: 0;
    }
    .storefront-category,
    .storefront-featured {
        padding: 1.5px 6px;
        font-size: .5rem;
        margin-bottom: 2px;
    }
    .storefront-identity h1 { 
        font-size: 0.95rem !important; 
        line-height: 1.18; 
        margin: 0 0 2px 0; 
        font-weight: 800;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .5); 
    }
    .storefront-location,
    .storefront-address,
    .storefront-rating {
        font-size: .62rem;
        gap: .22rem;
    }
    .storefront-address {
        margin-top: -1px;
        margin-bottom: 2px;
    }
    .storefront-stats { 
        margin: 0; 
        border-radius: 0 0 14px 14px;
        border: 1px solid var(--border);
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .storefront-stats > div,
    .storefront-stat-link { padding: 12px 9px; }
    .storefront-stat-icon { display: none; }
    .storefront-stats p { text-align: center; }
    .storefront-stats strong { font-size: .75rem; }
    .storefront-stats small { font-size: .6rem; }
    .storefront-top-contact-bar {
        margin-top: 12px;
        padding: 11px 13px;
        gap: 8px;
    }
    .storefront-top-contact-header {
        width: 100%;
        justify-content: space-between;
    }
    .storefront-top-contact-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
        gap: 6px;
    }
    .storefront-top-btn {
        min-height: 35px;
        justify-content: center;
        padding: 0 8px;
        font-size: .72rem;
    }
    .storefront-layout { margin-top: 20px; }
    .storefront-gallery { margin-top: 15px; padding: 14px; }
    .storefront-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .storefront-catalog { padding: 17px; border-radius: 17px; }
    .storefront-promotions { padding: 17px; border-radius: 17px; }
    .storefront-promotions-grid { grid-template-columns: 1fr; }
    .storefront-section-heading { align-items: start; }
    .storefront-section-heading h2 { font-size: 1.15rem; }
    .storefront-section-heading p { display: none; }
    .storefront-search { grid-template-columns: 1fr; }
    .storefront-search > button { grid-column: auto; }
    .storefront-sidebar { grid-template-columns: 1fr; }
    .storefront-quick-product {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }
    .storefront-quick-grid { grid-template-columns: 1fr; }
    .storefront-quick-image { min-height: 230px; max-height: 34vh; }
    .storefront-quick-grid > div:last-child { padding: 22px; }
    .storefront-quick-actions { position: sticky; bottom: 0; z-index: 1; padding: 8px 0; background: #fff; }
}
@media (max-width: 479.98px) {
    .storefront-hero { min-height: auto; padding: 7px 8px 8px; gap: 4px; border-radius: 12px 12px 0 0; border-bottom: 0; }
    .storefront-owner-tools { margin: 0; }
    .storefront-owner-tools a,
    .storefront-owner-tools button { min-height: 23px; padding: 0 6px; font-size: .58rem; }
    .storefront-identity { align-items: center; gap: 8px; }
    .storefront-identity-copy { flex: 1; min-width: 0; }
    .storefront-logo { width: 56px; height: 56px; flex: 0 0 56px; padding: 0; border-radius: 12px; border: 2px solid #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
    .storefront-logo img { border-radius: inherit; object-fit: cover; }
    .storefront-category,
    .storefront-featured { padding: 1px 4px; font-size: .46rem; margin-bottom: 1px; }
    .storefront-identity h1 { font-size: 0.86rem !important; line-height: 1.14; margin: 0; }
    .storefront-location,
    .storefront-address,
    .storefront-rating { font-size: .58rem; }
    .storefront-address { margin-top: 0; margin-bottom: 1px; }
    .storefront-stats > div:nth-child(3),
    .storefront-stats > a:nth-child(3) { display: none; }
    .storefront-stats { grid-template-columns: repeat(2, 1fr); border-radius: 0 0 12px 12px; margin: 0; }
    .storefront-top-contact-bar {
        margin-top: 8px;
        padding: 9px 10px;
        border-radius: 12px;
    }
    .storefront-top-contact-title { font-size: .74rem; }
    .storefront-top-contact-actions {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
    .storefront-top-btn {
        min-height: 32px;
        font-size: .68rem;
        padding: 0 6px;
    }
    .storefront-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .storefront-product-image { height: 142px; }
    .storefront-product-body { padding: 10px; }
    .storefront-product-body h3 { font-size: .78rem; }
    .storefront-product-footer { align-items: start; flex-direction: column; }
    .storefront-product-footer strong { font-size: .76rem; }
    .storefront-product-footer a { font-size: .62rem; }
    .storefront-product-image > small { font-size: .52rem; }
    .storefront-promotion-card { padding: 11px; }
    .storefront-promotion-discount { width: 64px; min-height: 64px; }
}
