:root {
    --bg: #07090a;
    --bg-2: #0b0e0f;
    --surface: #11181b;
    --surface-2: #161e22;
    --surface-3: #1d262b;
    --text: #f7f7f2;
    --muted: #9ea7a3;
    --muted-2: #6f7773;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #34d27a;
    --accent-2: #6df09a;
    --accent-strong: #1eab5d;
    --accent-soft: rgba(52, 210, 122, 0.14);
    --accent-glow: rgba(52, 210, 122, 0.45);
    --gold: #f5c265;
    --gold-soft: rgba(245, 194, 101, 0.16);
    --warning: #f5b955;
    --danger: #ef6a5b;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --header-height: 78px;
    --grad-accent: linear-gradient(135deg, #34d27a 0%, #1eab5d 100%);
    --grad-dark: linear-gradient(180deg, #0b0e0f 0%, #07090a 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(52, 210, 122, 0.08), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(52, 210, 122, 0.05), transparent 60%);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.cart-open,
body.auth-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent);
    color: #06100a;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    transform: translateY(-140%);
    z-index: 5000;
    background: var(--accent);
    color: #06100a;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    transition: transform 200ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ===== HEADER ===== */
.app-header {
    min-height: var(--header-height);
    padding: 14px clamp(16px, 4vw, 56px);
    display: grid;
    grid-template-columns: auto minmax(210px, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 10, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 68px;
    transition: transform 200ms ease;
}

.brand:hover {
    transform: scale(1.03);
}

.header-logo {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.delivery-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.delivery-status strong {
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.delivery-status span:last-child {
    display: block;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
    flex: 0 0 auto;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 5px var(--accent-soft); }
    50% { box-shadow: 0 0 0 9px rgba(52, 210, 122, 0.05); }
}

.desktop-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.desktop-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.icon-link,
.cart-icon-container,
.customer-button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    position: relative;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-link {
    text-decoration: none;
    font-size: 1.05rem;
}

.icon-link:hover,
.cart-icon-container:hover,
.customer-button:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--accent);
}

.customer-button {
    width: auto;
    min-width: 44px;
    gap: 8px;
    padding: 0 16px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
}

.customer-button.logged {
    border-color: rgba(52, 210, 122, 0.5);
    background: var(--accent-soft);
    color: var(--accent);
}

.cart-icon-container {
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #06100a;
    font-size: 0.7rem;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(52, 210, 122, 0.18);
}

.cart-count.visible {
    display: flex;
}

main {
    overflow: hidden;
}

/* ===== HERO ===== */
.storefront {
    position: relative;
    min-height: calc(86svh - var(--header-height));
    padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    background:
        radial-gradient(900px 600px at 85% 20%, rgba(245, 194, 101, 0.22), transparent 60%),
        radial-gradient(700px 500px at 15% 85%, rgba(52, 210, 122, 0.18), transparent 65%),
        radial-gradient(500px 400px at 50% 50%, rgba(245, 158, 11, 0.06), transparent 70%),
        linear-gradient(135deg, #0a1410 0%, #060a0c 45%, #0a0805 100%);
    overflow: hidden;
}

.storefront::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 75%);
    pointer-events: none;
    opacity: 0.6;
}

.storefront-bg-glow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.storefront-bg-glow::before,
.storefront-bg-glow::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: float 14s ease-in-out infinite;
}

.storefront-bg-glow::before {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(52, 210, 122, 0.35), transparent 70%);
    top: -120px;
    left: -80px;
}

.storefront-bg-glow::after {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 70%);
    bottom: -180px;
    right: -120px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

.storefront::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.storefront-copy {
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-heading span {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    padding: 6px 12px;
    background: var(--accent-soft);
    border: 1px solid rgba(52, 210, 122, 0.28);
    border-radius: 999px;
}

.storefront h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.2rem, 6vw, 5.4rem);
    line-height: 0.96;
    max-width: 100%;
    font-weight: 800;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: manual;
    -webkit-hyphens: manual;
    background: linear-gradient(180deg, #ffffff 0%, #cfd6cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.storefront p {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    max-width: 520px;
    margin: 0 0 30px;
    line-height: 1.55;
}

.storefront-actions,
.location-section .map-btn {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-action,
.secondary-action {
    min-height: 52px;
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: transform 180ms ease, box-shadow 220ms ease, background 180ms ease, border-color 180ms ease;
    cursor: pointer;
}

.primary-action {
    background: var(--grad-accent);
    color: #06100a;
    box-shadow: 0 12px 28px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.secondary-action {
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
}

.secondary-action:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(52, 210, 122, 0.08);
}

.hero-search {
    width: min(100%, 540px);
    min-height: 58px;
    margin-top: 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(11, 14, 15, 0.72);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 46px;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
    transition: border-color 180ms ease, box-shadow 220ms ease;
}

.hero-search:focus-within,
.search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft), 0 16px 38px rgba(0, 0, 0, 0.3);
}

.hero-search i {
    color: var(--muted);
}

.hero-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.96rem;
}

.hero-search input::placeholder {
    color: var(--muted-2);
}

.hero-search button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--grad-accent);
    color: #06100a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease;
}

.hero-search button:hover {
    transform: scale(1.05);
}

.hero-search button i {
    color: currentColor;
}

/* ===== HERO SHOWCASE ===== */
.hero-showcase {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 14px;
    min-height: 440px;
}

.showcase-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%),
        var(--surface);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    width: 100%;
}

.showcase-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.showcase-card:active {
    transform: translateY(-2px) scale(0.99);
}

.showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(52, 210, 122, 0.14), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 210, 122, 0.45);
    box-shadow: 0 28px 60px -18px rgba(52, 210, 122, 0.3), var(--shadow);
}

.showcase-featured {
    padding: 18px 18px 20px;
}

.showcase-featured .showcase-img {
    flex: 1;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 14px;
    position: relative;
    z-index: 1;
}

.showcase-featured .showcase-img img {
    width: auto;
    height: 100%;
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 32px 28px rgba(0, 0, 0, 0.55));
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-card:hover .showcase-img img {
    transform: translateY(-6px) scale(1.04);
}

.showcase-tag {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c265, #e09a3c);
    color: #1b1304;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 18px rgba(245, 194, 101, 0.35);
}

.showcase-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.showcase-cat {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.showcase-info strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.showcase-price {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
}

.showcase-price b {
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
}

.showcase-price i {
    color: var(--accent);
    margin-right: 4px;
}

.showcase-cta {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.showcase-cta i {
    transition: transform 220ms ease;
}

.showcase-card:hover .showcase-cta i {
    transform: translateX(4px);
}

.showcase-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    min-height: 0;
}

.showcase-small {
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
}

.showcase-small .showcase-img {
    grid-column: 2;
    grid-row: 1 / -1;
    height: 100%;
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.showcase-small .showcase-img img {
    width: 100%;
    height: 100%;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5));
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-small:hover .showcase-img img {
    transform: scale(1.06);
}

.showcase-small .showcase-info {
    grid-column: 1;
    grid-row: 1 / -1;
    padding-left: 4px;
}

/* ===== SECTIONS ===== */
.quick-rules,
.promocoes-section,
.products-section,
.location-section {
    padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 70px);
}

.quick-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    background: transparent;
    padding-top: clamp(30px, 4vw, 56px);
    padding-bottom: clamp(30px, 4vw, 56px);
}

.quick-rules > div {
    background: var(--surface);
    padding: clamp(22px, 3vw, 32px);
    min-height: 140px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 220ms ease, border-color 220ms ease;
}

.quick-rules > div:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.quick-rules span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
    font-size: 0.95rem;
    margin-bottom: 16px;
    border: 1px solid rgba(52, 210, 122, 0.22);
}

.quick-rules strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.quick-rules p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.promocoes-section {
    background: var(--surface);
    position: relative;
}

.promocoes-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 300px at 50% 0%, rgba(52, 210, 122, 0.06), transparent);
    pointer-events: none;
}

.promocoes-section > * {
    position: relative;
}

.weekly-section {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
}

.products-section {
    background: var(--bg);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 22px;
    align-items: end;
    margin-bottom: 8px;
}

.search-wrap {
    height: 54px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    transition: border-color 180ms ease;
}

.search-wrap i {
    color: var(--muted);
}

.search-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    min-width: 0;
    font-size: 0.95rem;
}

.search-wrap input::placeholder {
    color: var(--muted-2);
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    background: linear-gradient(var(--bg) 70%, rgba(7, 9, 10, 0));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.filters::-webkit-scrollbar {
    height: 6px;
}

.filters::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 999px;
}

.category-btn {
    white-space: nowrap;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 180ms ease;
}

.category-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.category-btn.active {
    background: var(--text);
    color: #101410;
    border-color: var(--text);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.results-count {
    color: var(--muted);
    margin: 4px 0 20px;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.promo-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
    position: relative;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-card:hover {
    border-color: rgba(52, 210, 122, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -18px rgba(52, 210, 122, 0.25), 0 12px 28px rgba(0, 0, 0, 0.4);
}

.product-image {
    background: linear-gradient(160deg, #fbfbf8 0%, #e9ede7 100%);
    aspect-ratio: 1 / 0.88;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 130%, rgba(52, 210, 122, 0.1), transparent 60%);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.06) translateY(-3px);
}

.product-image.no-image {
    background: #f5f7f2;
}

.image-fallback .product-image {
    background: var(--surface-2);
}

.badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
    z-index: 2;
}

.promo-badge,
.age-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    text-transform: uppercase;
}

.promo-badge {
    background: linear-gradient(135deg, #f5c265, #e09a3c);
    color: #1b1304;
}

.age-badge {
    background: rgba(15, 18, 15, 0.92);
    color: var(--text);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-name {
    margin: 10px 0 18px;
    font-size: 1rem;
    line-height: 1.3;
    min-height: 2.6em;
    font-weight: 600;
}

.product-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.price-wrap {
    min-width: 0;
}

.product-price {
    display: block;
    color: var(--accent);
    font-size: 1.22rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.price-wrap small {
    color: var(--muted);
    font-size: 0.72rem;
}

.purchase-control {
    min-height: 44px;
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 6px;
}

.add-to-cart-btn {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 0;
    background: var(--grad-accent);
    color: #06100a;
    font-weight: 800;
    padding: 0 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px -8px var(--accent-glow);
    transition: transform 180ms ease, box-shadow 200ms ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -8px var(--accent-glow);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 120ms ease;
}

.qty-btn:hover {
    border-color: var(--accent);
    background: var(--surface-2);
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    display: inline-block;
    font-weight: 900;
}

.empty-state {
    grid-column: 1 / -1;
    min-height: 200px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.015);
}

/* ===== CART ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-overlay[hidden] {
    display: none;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100vw);
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transform: translateX(102%);
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    outline: 0;
}

.cart-modal.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.cart-header span {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.cart-header h2 {
    margin: 4px 0 0;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.close-cart {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: border-color 180ms ease, transform 150ms ease;
}

.close-cart:hover {
    border-color: var(--accent);
    transform: rotate(90deg);
}

.cart-items {
    padding: 18px 22px;
    overflow-y: auto;
}

.cart-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
}

.cart-empty i {
    color: var(--accent);
    font-size: 2.4rem;
    opacity: 0.6;
}

.cart-empty strong {
    color: var(--text);
}

.cart-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #eef2ed;
    padding: 6px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h3 {
    margin: 0 0 5px;
    font-size: 0.94rem;
    line-height: 1.25;
    font-weight: 600;
}

.cart-item-info p {
    margin: 0;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-controls .qty-btn {
    width: 32px;
    height: 32px;
}

.checkout-panel {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--surface-2);
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checkout-panel input,
.checkout-panel select,
.checkout-panel textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    outline: 0;
    margin-top: 6px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field-wide,
.cart-message {
    grid-column: 1 / -1;
}

.cart-message {
    min-height: 18px;
    margin: 0;
    color: var(--warning);
    font-weight: 700;
    font-size: 0.84rem;
}

.cart-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.cart-total-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 1.02rem;
    margin-bottom: 6px;
    color: var(--muted);
}

.cart-total-wrap strong {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cart-footer small {
    display: block;
    color: var(--muted);
    margin-bottom: 14px;
    font-size: 0.8rem;
}

.minimum-order-note {
    display: none;
    margin: 10px 0 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 185, 85, 0.4);
    background: rgba(245, 185, 85, 0.1);
    color: var(--warning);
    font-size: 0.86rem;
    font-weight: 800;
}

.minimum-order-note.visible {
    display: block;
}

.checkout-btn {
    width: 100%;
    min-height: 54px;
    border-radius: var(--radius-sm);
    border: 0;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55);
    transition: transform 180ms ease, box-shadow 200ms ease;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(37, 211, 102, 0.7);
}

.checkout-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1600;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(6px);
    animation: fadeIn 200ms ease;
}

.auth-overlay[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100vw - 32px));
    max-height: min(92dvh, 760px);
    overflow-y: auto;
    z-index: 1700;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: 0;
}

.auth-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.auth-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.auth-header span,
.auth-kicker {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.auth-header h2 {
    margin: 4px 0 0;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 18px 22px 0;
}

.auth-tab {
    min-height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    transition: all 180ms ease;
}

.auth-tab:hover {
    color: var(--text);
}

.auth-tab.active {
    background: var(--text);
    color: #101410;
    border-color: var(--text);
}

.auth-form {
    padding: 18px 22px 0;
    display: grid;
    gap: 12px;
}

.auth-form[hidden],
.auth-tabs[hidden],
.account-panel[hidden] {
    display: none;
}

.auth-modal input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: 0;
    margin-top: 6px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-modal input:focus,
.checkout-panel input:focus,
.checkout-panel select:focus,
.checkout-panel textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.check-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
}

.check-field input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.auth-submit {
    margin-top: 4px;
}

.auth-message {
    min-height: 22px;
    margin: 14px 22px 20px;
    color: var(--warning);
    font-weight: 700;
    font-size: 0.88rem;
}

.auth-message.success {
    color: var(--accent);
}

.account-panel {
    margin: 18px 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.account-panel strong {
    display: block;
    margin-top: 6px;
    font-size: 1.1rem;
}

.account-panel p {
    margin: 4px 0 14px;
    color: var(--muted);
}

.secondary-auth-action {
    min-height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    padding: 0 16px;
    transition: border-color 180ms ease;
}

.secondary-auth-action:hover {
    border-color: var(--accent);
}

/* ===== LOCATION ===== */
.location-section {
    background: var(--surface);
}

.location-text {
    color: var(--muted);
    max-width: 620px;
    font-size: 1rem;
}

.map-container {
    margin: 22px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.map-container iframe {
    border: 0;
    display: block;
    filter: grayscale(0.2) contrast(1.05);
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 900;
    box-shadow: 0 18px 36px -8px rgba(37, 211, 102, 0.55), 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 200ms ease, box-shadow 220ms ease;
}

.floating-whatsapp::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.35);
    z-index: -1;
    animation: ringPulse 2.4s ease-out infinite;
}

@keyframes ringPulse {
    0% { transform: scale(0.85); opacity: 0.65; }
    100% { transform: scale(1.4); opacity: 0; }
}

.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ===== FOOTER ===== */
footer {
    padding: 40px clamp(20px, 5vw, 70px);
    border-top: 1px solid var(--line);
    background: #050606;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-content img {
    height: 54px;
    object-fit: contain;
    opacity: 0.95;
}

.footer-content p {
    margin: 0;
    text-align: right;
    max-width: 520px;
    line-height: 1.55;
}

.bump {
    animation: bump 320ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .app-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .desktop-nav {
        display: none;
    }

    .storefront {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 68px;
    }

    .app-header {
        padding: 10px 14px;
        gap: 10px;
    }

    .header-logo {
        height: 40px;
    }

    .delivery-status {
        padding: 6px 10px;
        gap: 8px;
    }

    .delivery-status span:last-child {
        max-width: 140px;
    }

    .icon-link,
    .cart-icon-container {
        width: 42px;
        height: 42px;
    }

    .customer-button {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
    }

    .storefront {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 36px 20px 40px;
        gap: 30px;
        text-align: left;
    }

    .storefront h1 {
        font-size: clamp(2rem, 9.5vw, 3.6rem);
        margin: 18px 0 14px;
        line-height: 1.02;
    }

    .storefront p {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .storefront-actions {
        gap: 10px;
    }

    .primary-action,
    .secondary-action {
        flex: 1;
        min-width: 0;
    }

    .hero-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 12px;
    }

    .showcase-featured .showcase-img {
        min-height: 200px;
    }

    .showcase-featured .showcase-img img {
        max-height: 220px;
    }

    .showcase-side {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }

    .showcase-small {
        grid-template-columns: minmax(0, 1fr) 80px;
        padding: 12px;
    }

    .showcase-small .showcase-img {
        width: 80px;
    }

    .showcase-small .showcase-img img {
        max-height: 90px;
    }

    .showcase-info strong {
        font-size: 0.95rem;
    }

    .quick-rules {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .quick-rules > div {
        min-height: auto;
        padding: 20px;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .search-wrap {
        height: 50px;
        padding: 0 16px;
    }

    .products-grid,
    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        padding: 14px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        margin: 8px 0 14px;
        font-size: 0.9rem;
        min-height: 3.6em;
        line-height: 1.32;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-footer {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .badges {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .promo-badge,
    .age-badge {
        padding: 4px 8px;
        font-size: 0.66rem;
    }

    .add-to-cart-btn {
        height: 42px;
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .purchase-control,
    .add-to-cart-btn {
        width: 100%;
        min-width: 0;
    }

    .purchase-control {
        justify-content: stretch;
    }

    .purchase-control .qty-btn {
        flex: 1;
    }

    .filters {
        gap: 6px;
        padding: 10px 12px 14px;
        margin: 0 -12px;
    }

    .category-btn {
        font-size: 0.82rem;
        padding: 0 14px;
        min-height: 36px;
    }

    .section-heading h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .eyebrow,
    .section-heading span {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .cart-modal {
        top: auto;
        bottom: 0;
        width: 100vw;
        height: min(92dvh, 780px);
        border-left: 0;
        border-top: 1px solid var(--line);
        border-radius: 20px 20px 0 0;
        transform: translateY(104%);
    }

    .cart-modal::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: var(--line-strong);
    }

    .cart-header {
        padding: 22px 20px 14px;
    }

    .cart-items {
        padding: 14px 20px;
    }

    .cart-modal.active {
        transform: translateY(0);
    }

    .auth-modal {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-height: 92dvh;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(104%);
    }

    .auth-modal.active {
        transform: translateY(0);
    }

    .auth-modal::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: var(--line-strong);
    }

    .auth-header {
        padding: 22px 20px 14px;
    }

    .checkout-panel {
        grid-template-columns: 1fr;
        padding: 14px 20px;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-content p {
        text-align: left;
    }

    .quick-rules,
    .promocoes-section,
    .products-section,
    .location-section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 430px) {
    .delivery-status {
        display: none;
    }

    .app-header {
        grid-template-columns: auto 1fr;
        padding: 10px 12px;
        gap: 8px;
    }

    .header-actions {
        grid-column: 2;
        gap: 8px;
    }

    .customer-button span {
        display: none;
    }

    .customer-button {
        padding: 0;
        width: 42px;
    }

    .storefront {
        padding: 28px 16px 32px;
    }

    .storefront h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.6rem);
        line-height: 1.04;
    }

    .storefront-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-search {
        min-height: 52px;
        padding: 5px 5px 5px 14px;
    }

    .hero-search button {
        width: 42px;
        height: 42px;
    }

    .showcase-side {
        grid-template-columns: 1fr;
    }

    .showcase-small {
        grid-template-columns: minmax(0, 1fr) 70px;
    }

    .showcase-small .showcase-img {
        width: 70px;
    }

    .products-grid,
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-image {
        aspect-ratio: 1 / 0.7;
    }

    .product-name {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
