/* ==========================================================================
   BRASA MARKET - APP DESIGN SYSTEM (Apple & Uber Eats UX Engine)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette - Warm Premium Grocery Delivery Theme */
    --color-primary: #FF5A00;
    --color-primary-light: #FF7A00;
    --color-primary-dark: #D44A00;
    --color-primary-soft: #FFF3E8;
    --color-primary-soft-dark: #FFEBD8;
    --color-success: #00CC66;
    --color-success-soft: #E5F9EE;
    --color-bg-desktop: #121214;
    --color-bg-app: #FFFFFF;
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-text-muted: #83766B;
    --color-border: #F3E8DC;
    --color-red-mpesa: #E60000;
    --color-orange-emola: #FF7A00;
    
    /* Soft Appetizing Elevation Layering */
    --shadow-sm: 0 2px 6px rgba(212, 74, 0, 0.02);
    --shadow-md: 0 6px 18px rgba(212, 74, 0, 0.04);
    --shadow-lg: 0 14px 36px rgba(212, 74, 0, 0.06);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
    background-color: var(--color-bg-desktop);
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

button:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* APP-CONTAINER (Centered Mockup on Desktop, Full-Screen on Mobile) */
.app-container {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-app);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 440px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0 !important;
        border: none !important;
    }
}

@media (min-width: 441px) {
    body {
        background: radial-gradient(circle at center, #242428 0%, #0d0d0f 100%) !important;
    }
    .app-container {
        border: 11px solid #2B2C30;
        border-radius: 36px;
        height: 92vh;
        max-height: 860px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    }
}

/* Native Physics Scroll Area */
main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    padding-bottom: 76px; /* Space for bottom nav + breathing room */
}

/* Hide scrollbars but keep functionality */
main::-webkit-scrollbar,
.categories-scroll::-webkit-scrollbar,
.products-scroll::-webkit-scrollbar,
.promos-scroll::-webkit-scrollbar,
.quick-actions-scroll::-webkit-scrollbar {
    display: none;
}

main,
.categories-scroll,
.products-scroll,
.promos-scroll,
.quick-actions-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* URGENCY STICKY BAR */
.urgency-sticky-bar {
    background: #090A0C;
    color: #FFFFFF;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.urgency-sticky-bar i {
    color: var(--color-primary-light);
    font-size: 0.8rem;
}

/* HEADER / NAVBAR */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 74, 0, 0.02);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.header-left a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.menu-hamburger-btn {
    width: 24px;
    height: 36px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.6rem;
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.menu-hamburger-btn:active {
    transform: scale(0.92);
    opacity: 0.7;
}

.header-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.header-title-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--color-dark);
}

.header-widgets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-card {
    background: #1E1E22; /* Graphite dark soft */
    border-radius: 20px;
    padding: 0.45rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFFFFF; /* Soft premium white */
    border: 1.5px solid rgba(255, 255, 255, 0.06);
}

.pin-orange {
    color: #FF5A00; /* Subtle primary orange locator pin */
    font-size: 0.9rem;
}

.cart-card-header {
    background: var(--color-primary-soft);
    border: 1px solid rgba(255, 90, 0, 0.15);
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 34px;
}

.cart-card-header:hover {
    background: var(--color-primary-soft-dark);
    border-color: var(--color-primary);
}

.cart-card-header:active {
    transform: scale(0.94);
}

.cart-icon-box {
    position: relative;
    font-size: 1.2rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-white);
    box-shadow: 0 2px 5px rgba(255, 90, 0, 0.2);
    padding: 0 2px;
}

.cart-info-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.cart-price-amount {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary);
}

.cart-action-text {
    font-size: 0.5rem;
    color: var(--color-text-muted);
}

.cart-header-total {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

/* HERO SECTION */
.hero-section {
    padding: 0.8rem 0.8rem 1rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.hero-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.hero-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.hero-bullets li i {
    color: var(--color-success);
    font-size: 0.8rem;
}

.hero-image-container {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.basket-wrapper {
    position: relative;
    width: 100%;
    max-width: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.basket-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.delivery-badge-floating {
    position: absolute;
    bottom: -6px;
    right: 4px;
    background: #090A0C;
    color: var(--color-white);
    padding: 3px 7px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.55rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
}

.delivery-badge-floating i {
    color: var(--color-primary);
}

/* STICKY SEARCH SYSTEM & LIVE SUGGESTIONS */
.search-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    padding: 0.6rem 0.8rem;
    border-bottom: 1.5px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(212, 74, 0, 0.01);
}

.search-input-wrapper {
    flex: 1;
    background: var(--color-primary-soft);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    background: var(--color-white);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.08);
}

.search-icon {
    color: var(--color-primary);
    font-size: 1.15rem;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-dark);
    width: 100%;
}

.search-input-wrapper input::placeholder {
    color: #A3968C;
}

.search-btn {
    width: 38px;
    height: 38px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: transform 0.1s;
    box-shadow: var(--shadow-sm);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Search Suggestions */
.search-suggestions-container {
    position: absolute;
    top: calc(100% + 4px);
    left: 8px;
    right: 8px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 0.4rem 0;
    border: 1px solid var(--color-border);
}

.search-suggestions-container.active {
    display: flex;
}

.suggestion-item {
    padding: 0.65rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: #FFF9F4;
}

.suggestion-item:active {
    transform: scale(0.98);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #FFFBF7;
    border: 1px solid var(--color-border);
    padding: 2px;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.suggestion-name {
    font-size: 0.75rem;
    font-weight: 750;
    color: var(--color-dark);
}

.suggestion-price {
    font-size: 0.72rem;
    font-weight: 950;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

/* QUICK ACTIONS BAR (Pills Style) */
.quick-actions-container {
    background: var(--color-white);
    padding: 0.6rem 0.8rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.quick-actions-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.quick-pill {
    padding: 0.5rem 0.95rem;
    background: #FFF5ED; /* Warm sand background */
    border: 1.5px solid #F3E8DC;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.quick-pill:active {
    transform: scale(0.95);
}

.quick-pill.active {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(255, 90, 0, 0.06);
}

.hero-actions-compact {
    display: none; /* Removed redundant buttons */
}

/* PAYMENTS SECTION */
.section-payments {
    padding: 0.6rem 0.8rem;
    background: var(--color-white);
    margin: 0.4rem 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.payments-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.5rem;
}

.payments-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
    z-index: 1;
}

.divider-text {
    background: var(--color-white);
    padding: 0 8px;
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--color-text-muted);
    z-index: 2;
    letter-spacing: 0.8px;
}

.payments-grid {
    display: flex;
    gap: 0.4rem;
}

.payment-card {
    flex: 1;
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.65rem;
}

.red-mpesa {
    background: var(--color-red-mpesa);
}

.orange-emola {
    background: var(--color-orange-emola);
}

.emola-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.emola-title {
    font-size: 0.65rem;
    font-weight: 800;
}

.emola-subtitle {
    font-size: 0.3rem;
    font-weight: 600;
    opacity: 0.95;
    text-transform: none;
}

/* BENEFITS ROW */
.benefits-row-section {
    padding: 0.6rem 0.5rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.benefits-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.benefit-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}

.benefit-item i {
    font-size: 1rem;
    color: var(--color-primary);
}

.benefit-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.benefit-text strong {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--color-dark);
}

.benefit-text span {
    font-size: 0.5rem;
    color: var(--color-text-muted);
}

.benefit-divider {
    width: 1px;
    height: 20px;
    background: var(--color-border);
}

/* SECTIONS AND GRID SYSTEM */
.app-section {
    padding: 0.8rem;
    background: transparent;
}

.section-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 0.2rem;
}

.section-header-compact h2 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 850;
    color: var(--color-dark);
    letter-spacing: -0.1px;
}

.see-all-btn {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* CATEGORIES ROW */
.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 0.4rem 0.2rem;
}

.category-item-card {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-item-card:hover {
    transform: translateY(-2px);
}

.category-item-card:active {
    transform: scale(0.92);
}

.cat-img-wrapper {
    width: 64px;
    height: 64px;
    background: #FFF3E8; /* Warm peach background */
    border-radius: 50%;
    border: 1.5px solid #FFEBD8;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.45rem;
    transition: all 0.2s ease;
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.category-item-card:hover .cat-img-wrapper img {
    transform: scale(1.08);
}

.category-item-card span {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    letter-spacing: -0.1px;
}

.category-item-card:active .cat-img-wrapper {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.12);
}

/* PRODUCT CARDS - NATIVE UI SYSTEM (Instashop/Uber Eats Style) */
.products-scroll,
.promos-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.6rem;
    padding: 0.2rem 0;
}

.app-product-card,
.product-card {
    width: 145px;
    min-width: 145px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
    min-height: 190px;
    height: auto;
}

.app-product-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 90, 0, 0.22);
}

.app-product-card:active,
.product-card:active {
    transform: translateY(-1px) scale(0.97);
}

.prod-img-box,
.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: 85px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    overflow: hidden;
    position: relative;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.prod-img-box img,
.card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-product-card:hover .prod-img-box img,
.product-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.badge-promo,
.discount-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.58rem;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 5;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 8px rgba(255, 90, 0, 0.25);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    margin-top: 0;
}

.card-description {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.1rem;
}

.prod-name,
.card-title {
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.35;
    margin-bottom: 0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.0rem; /* Locked height for 2 lines */
}

.prod-meta-detail {
    font-size: 0.58rem;
    color: var(--color-text-muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.15rem;
}

.price-info,
.card-price-row,
.promo-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.prod-price,
.price-current,
.promo-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.price-old,
.promo-old-price,
.prod-old-price {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-weight: 600;
    margin-top: 0.05rem;
}

.prod-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.02rem;
    margin-bottom: 0.1rem;
}

.stars {
    display: flex;
    gap: 1px;
    color: #FFB300;
    font-size: 0.58rem;
}

.reviews-count {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.add-to-cart-btn,
.btn-add,
.add-promo-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(255, 90, 0, 0.12);
    z-index: 5;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.15s;
    border: none;
    outline: none;
    flex-shrink: 0;
}

.add-to-cart-btn:hover,
.btn-add:hover,
.add-promo-btn:hover {
    background: var(--color-primary-light);
    transform: scale(1.05);
}

.add-to-cart-btn:active,
.btn-add:active,
.add-promo-btn:active {
    transform: scale(0.92);
}

.esgotado-label {
    background: var(--color-text-muted);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    text-align: center;
    flex-shrink: 0;
    margin-left: auto;
}

/* SOCIAL PROOF (Cro Upgrade - Static Premium Cards) */
.testimonials-carousel-container {
    padding: 0 0.2rem;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    animation: none;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
}

.test-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: none; /* Remove redundant images for speed */
}

.test-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.test-name {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-dark);
}

.test-stars {
    display: flex;
    gap: 1px;
    color: #FFB300;
    font-size: 0.45rem;
}

.test-text {
    font-size: 0.58rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.buying-now-indicator {
    display: none !important; /* Remove AI fake element */
}

/* WHATSAPP SUPPORT CARD */
.whatsapp-support-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    margin: 0 0.8rem;
}

.wa-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.wa-icon-circle {
    width: 26px;
    height: 26px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.wa-text h3 {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-dark);
}

.wa-text p {
    font-size: 0.58rem;
    color: var(--color-text-muted);
}

.wa-btn {
    background: var(--color-success);
    color: var(--color-white);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* FOOTER */
.main-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 1rem 0.8rem;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--color-dark);
}

.footer-contact {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid rgba(255, 90, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    box-shadow: 0 -8px 32px rgba(212, 74, 0, 0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    padding: 0.25rem 0;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-item i {
    font-size: 1.35rem;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active {
    color: var(--color-primary);
    font-weight: 850;
}

.nav-item.active i {
    transform: translateY(-2px) scale(1.1);
}

.nav-item::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes orangePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.6);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 90, 0, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 0, 0);
        transform: scale(1);
    }
}

.floating-cart-btn {
    position: fixed;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.4);
    border: none;
    z-index: 1005;
    animation: orangePulse 2.5s infinite ease-in-out;
}

.floating-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.55rem;
    font-weight: 800;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SIDE DRAWERS & MODALS */
.side-drawer-overlay,
.modal-overlay,
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 10, 12, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-drawer-overlay.active,
.modal-overlay.active,
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    z-index: 2001;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.side-drawer.active {
    transform: translateX(280px);
}

.drawer-header {
    padding: 1rem;
    background: var(--color-bg-app);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drawer-logo img {
    height: 24px;
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.close-drawer-btn {
    font-size: 1.4rem;
    color: var(--color-dark);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.drawer-nav-item {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-dark);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.drawer-nav-item i {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-app);
}

.btn-checkout {
    background: var(--color-primary);
    color: var(--color-white);
    width: 100%;
    padding: 0.7rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    display: block;
}

/* AUTH MODALS */
.auth-modal {
    background: var(--color-white);
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.close-modal {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input {
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.78rem;
    background: var(--color-bg-app);
    outline: none;
}

.form-input:focus {
    background: var(--color-white);
    border-color: var(--color-primary-light);
}

/* SKELETON LOADERS Framework */
.skeleton-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 145px;
    min-width: 145px;
    height: 190px;
    border: 1px solid var(--color-border);
}

.skel-img {
    width: 100%;
    height: 85px;
    border-radius: var(--radius-sm);
    animation: shimmerAnim 1.6s infinite linear;
    background: linear-gradient(90deg, #EAECEF 25%, #F4F6F8 50%, #EAECEF 75%);
    background-size: 200% 100%;
}

.skel-text {
    height: 8px;
    border-radius: 4px;
    animation: shimmerAnim 1.6s infinite linear;
    background: linear-gradient(90deg, #EAECEF 25%, #F4F6F8 50%, #EAECEF 75%);
    background-size: 200% 100%;
    width: 90%;
}

.skel-text.short {
    width: 55%;
}

.skel-btn {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    animation: shimmerAnim 1.6s infinite linear;
    background: linear-gradient(90deg, #EAECEF 25%, #F4F6F8 50%, #EAECEF 75%);
    background-size: 200% 100%;
    align-self: flex-end;
    margin-top: auto;
}

/* PWA INSTALL BANNER */
#pwa-banner {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-200px);
    width: calc(100% - 24px);
    max-width: 380px;
    background: #090A0C;
    color: #FFFFFF;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 9999;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

#pwa-banner.show {
    transform: translateX(-50%) translateY(0);
}

#pwa-btn-close {
    position: absolute;
    top: 4px;
    right: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.pwa-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pwa-title {
    font-size: 0.72rem;
    font-weight: 800;
}

.pwa-sub {
    font-size: 0.55rem;
    color: var(--color-text-muted);
}

#pwa-btn-install {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* STEPPER AND RASTREAMENTO */
.order-stepper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-left: 1.4rem;
    margin: 0.8rem 0;
}

.order-stepper::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--color-border);
}

.stepper-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stepper-bubble {
    position: absolute;
    left: -19px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: 2px solid var(--color-white);
}

.stepper-step.active .stepper-bubble {
    background: var(--color-primary);
}

.stepper-step.completed .stepper-bubble {
    background: var(--color-success);
}

.stepper-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.stepper-step.active .stepper-title {
    color: var(--color-primary);
}

.stepper-step.completed .stepper-title {
    color: var(--color-dark);
}

.stepper-desc {
    font-size: 0.58rem;
    color: var(--color-text-muted);
}

/* Badges */
.pedido-status-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-pendente { background: rgba(255, 90, 0, 0.08); color: var(--color-primary); }
.badge-confirmado { background: rgba(0, 200, 83, 0.08); color: var(--color-success); }
.badge-preparando { background: rgba(0, 122, 255, 0.08); color: #007AFF; }
.badge-a-caminho { background: rgba(88, 86, 214, 0.08); color: #5856D6; }
.badge-entregue { background: rgba(52, 199, 89, 0.08); color: #34C759; }
.badge-cancelado { background: rgba(255, 59, 48, 0.08); color: #FF3B30; }

/* Micro elements & speed enhancements */
.smart-lazy-img {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.smart-lazy-img.loaded {
    opacity: 1;
}

.smart-lazy-img.skeleton-loading {
    animation: shimmerAnim 1.6s infinite linear;
    background: linear-gradient(90deg, #EAECEF 25%, #F4F6F8 50%, #EAECEF 75%);
    background-size: 200% 100%;
}

.premium-splash {
    display: none !important; /* Block splash screens entirely */
}

.page-loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Drawer layouts and sheets */
.filter-drawer {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    height: 70vh;
    background: var(--color-white);
    z-index: 3000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1rem;
    transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.filter-drawer.active {
    bottom: 0;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.filter-opt {
    padding: 0.5rem;
    background: var(--color-bg-app);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
}

.filter-opt.active {
    background: rgba(255, 90, 0, 0.05);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.drawer-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Product list full layout */
.produtos-layout {
    padding: 0.6rem;
}

.products-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.products-grid-full .product-card,
.products-grid-full .app-product-card {
    width: 100% !important;
    min-width: unset !important;
}

/* ==========================================================================
   BRASA MARKET - SPA ROUTING VIEWS
   ========================================================================== */
.app-view {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    animation: fadeView 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-view.active {
    display: block;
}

@keyframes fadeView {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   BANNERS HERO SLIDER
   ========================================================================== */
.banners-slider-container {
    margin: 0.8rem;
    height: 150px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background: #090A0C;
    box-shadow: var(--shadow-md);
}

.banners-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    z-index: 1;
    background: linear-gradient(135deg, #FF6A00 0%, #D43A00 100%); /* Warm Orange fallback */
}

/* Alternate premium gradients to look rich and delicious */
.banner-slide:nth-child(2n) {
    background: linear-gradient(135deg, #1E1B18 0%, #4A2B18 100%); /* Deep chocolate/premium dark */
}

.banner-slide:nth-child(3n) {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%); /* Fresh forest green */
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-content {
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #FFFFFF;
    text-align: left;
    z-index: 5; /* Ensure text is always above the floating image */
}

.banner-badge {
    font-size: 0.58rem;
    font-weight: 850;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 20px;
    align-self: flex-start;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.banner-content h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.banner-content p {
    font-size: 0.62rem;
    opacity: 0.9;
    line-height: 1.2;
}

.banner-cta {
    align-self: flex-start;
    background: var(--color-white);
    color: var(--color-primary-dark);
    font-size: 0.68rem;
    font-weight: 850;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background-color 0.2s;
}

.banner-cta:hover {
    background: #FFF0E5;
    transform: scale(1.04);
}

.banner-cta:active {
    transform: scale(0.96);
}

.banner-img {
    height: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    transform: scale(1.0) translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-slide picture {
    position: absolute;
    right: 12px; /* Add some right padding so it's not glued to the very edge */
    bottom: 0;
    height: 100%;
    width: 45%;
    overflow: visible;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}

.banner-slide:hover .banner-img {
    transform: scale(1.08) translateY(-2%);
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 1.2rem;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.slider-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--color-primary);
    width: 12px;
    border-radius: 3px;
}

/* ==========================================================================
   LOYALTY CARD & USER STYLING
   ========================================================================== */
.profile-summary-card {
    transition: transform 0.2s;
}

.profile-summary-card:active {
    transform: scale(0.98);
}

.loyalty-card-box {
    position: relative;
    overflow: hidden;
}

.loyalty-card-box::after {
    content: '⭐';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.08;
    transform: rotate(-15deg);
}

/* Esgotado style */
.esgotado-label {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    background: #CCD2DA;
    color: var(--color-text-muted);
    font-size: 0.5rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
}

.prod-placeholder-premium {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-app);
    color: var(--color-text-muted);
    font-size: 2rem;
    border-radius: var(--radius-sm);
}

/* Stepper responsive path line */
.stepper-step::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 14px;
    bottom: -12px;
    width: 2px;
    background: var(--color-border);
    z-index: 1;
}

.stepper-step:last-of-type::after {
    display: none;
}

.stepper-step.completed::after {
    background: var(--color-success);
}

.stepper-step.active::after {
    background: linear-gradient(to bottom, var(--color-primary) 50%, var(--color-border) 50%);
}

.stepper-bubble {
    z-index: 2;
}

/* Form items in login/registration cards */
.auth-card-wrapper {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.25s;
}

.auth-input-wrapper .form-input {
    padding-left: 2.6rem !important;
    padding-right: 2.6rem !important;
}

.toggle-pass-icon {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.25s;
    z-index: 10;
}

.toggle-pass-icon:hover {
    color: var(--color-primary);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--color-primary);
}

/* Wiggle animation keyframe definition */
@keyframes wiggle {
    0% { transform: scale(1) rotate(0deg); }
    15% { transform: scale(1.1) rotate(-8deg); }
    30% { transform: scale(1.1) rotate(6deg); }
    45% { transform: scale(1.1) rotate(-4deg); }
    60% { transform: scale(1.1) rotate(3deg); }
    75% { transform: scale(1.1) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   BRASA MARKET - UBER EATS CHECKOUT STYLING
   ========================================================================== */
.checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 0;
}

.checkout-form-container,
.checkout-summary {
    background: var(--color-white) !important;
    padding: 1.25rem !important;
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--color-border) !important;
    margin: 0 0.8rem 0.6rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow 0.2s ease;
}

.checkout-form-container:hover,
.checkout-summary:hover {
    box-shadow: var(--shadow-md) !important;
}

.form-section-title {
    font-family: var(--font-heading) !important;
    font-size: 0.88rem !important;
    font-weight: 850 !important;
    color: var(--color-dark) !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.2px !important;
}

.form-section-title i {
    font-size: 1.15rem;
}

/* Styled Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem !important;
}

.form-group label {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: var(--color-dark) !important;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.9rem !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--color-dark) !important;
    background: #FFFBF7 !important; /* Warm inner background */
    transition: all 0.25s ease !important;
}

.form-input:focus {
    background: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.08) !important;
    outline: none !important;
}

/* Payment Method Buttons */
.payment-methods {
    display: flex;
    gap: 0.6rem !important;
    margin-bottom: 0.4rem;
}

.payment-method {
    flex: 1;
    border: 1.5px solid var(--color-border) !important;
    padding: 0.8rem 0.5rem !important;
    border-radius: var(--radius-md) !important;
    text-align: center;
    cursor: pointer;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-method i {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.payment-method div {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: var(--color-text-muted);
}

.payment-method.active {
    border-color: var(--color-primary) !important;
    background: var(--color-primary-soft) !important;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.08);
}

.payment-method.active i {
    color: var(--color-primary) !important;
}

.payment-method.active div {
    color: var(--color-primary-dark) !important;
}

.payment-method:active {
    transform: scale(0.96);
}

/* Items details in summary */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0 !important;
    border-bottom: 1.5px solid var(--color-border) !important;
}

.summary-item:last-child {
    border-bottom: none !important;
}

.summary-item img {
    width: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
    object-fit: contain;
    background: #FFFBF7 !important;
    border: 1px solid var(--color-border) !important;
    padding: 2px;
}

.summary-item div {
    font-size: 0.75rem !important;
    font-weight: 750 !important;
    color: var(--color-dark) !important;
}

.summary-item div span {
    font-weight: 600 !important;
    color: var(--color-text-muted) !important;
}

.summary-item .price-current {
    font-size: 0.8rem !important;
    font-weight: 900 !important;
    color: var(--color-primary-dark) !important;
    font-family: var(--font-heading);
}

/* Calculation Table */
.cart-summary-row {
    font-size: 0.75rem !important;
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 0.35rem !important;
    color: var(--color-text-muted) !important;
    font-weight: 600;
}

.cart-summary-row span:last-child {
    font-weight: 800;
    color: var(--color-dark);
}

.cart-total-row {
    display: flex !important;
    justify-content: space-between !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    padding-top: 0.6rem !important;
    border-top: 1.5px solid var(--color-border) !important;
    margin-top: 0.6rem !important;
    color: var(--color-dark) !important;
    font-family: var(--font-heading);
}

.cart-total-row span:last-child {
    color: var(--color-primary-dark) !important;
}

#coupon-alert-msg {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    margin-top: 0.2rem;
}

#store-closed-warning {
    background: rgba(255, 59, 48, 0.08) !important;
    border: 1.5px solid rgba(255, 59, 48, 0.18) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem !important;
    font-size: 0.72rem !important;
    color: #FF3B30 !important;
    font-weight: 800 !important;
    line-height: 1.35;
}

.checkout-summary button.btn-checkout {
    border: none !important;
    height: 42px !important;
    font-weight: 850 !important;
    border-radius: var(--radius-md) !important;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(255, 90, 0, 0.2);
    transition: all 0.2s;
}

.checkout-summary button.btn-checkout:active {
    transform: scale(0.96);
    box-shadow: 0 3px 8px rgba(255, 90, 0, 0.15);
}

/* ==========================================================================
   PREMIUM CLIENT ACCOUNT & BOTTOM SHEET SETTINGS UI (Nubank & Uber Eats Style)
   ========================================================================== */
.premium-profile-card {
    position: relative;
    background: var(--color-white);
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-soft-dark) 0%, var(--color-primary-soft) 100%);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-heading);
    border: 2px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(255, 90, 0, 0.1);
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: pulseAvatar 3s infinite;
    z-index: 1;
}

@keyframes pulseAvatar {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.8; }
}

.profile-info-wrapper {
    flex: 1;
}

.premium-profile-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--color-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.premium-profile-email, .premium-profile-phone {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin: 1px 0 0 0;
    font-weight: 500;
}

.premium-vip-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 0.35rem;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 90, 0, 0.2);
}

.premium-gear-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.45rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.premium-gear-btn:hover {
    color: var(--color-primary);
    transform: rotate(30deg);
}

/* VIP Card Premium style */
.vip-card-premium {
    position: relative;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #111111 100%);
    color: var(--color-white);
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden;
}

.vip-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.vip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vip-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 1px;
    opacity: 0.95;
}

.vip-icon-spin {
    color: var(--color-primary);
    font-size: 0.9rem;
    animation: rotateVip 6s linear infinite;
}

@keyframes rotateVip {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vip-card-level-tag {
    font-size: 0.62rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.vip-score-section {
    margin-bottom: 1.2rem;
}

.vip-score-label {
    font-size: 0.55rem;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.vip-score-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-top: 0.1rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD0B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-progress-section {
    margin-bottom: 1rem;
}

.vip-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.vip-progress-container-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
}

.vip-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #FF9E00 100%);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}

.vip-benefits-label {
    font-size: 0.52rem;
    font-weight: 750;
    opacity: 0.7;
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
}

.vip-benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.vip-tag {
    font-size: 0.55rem;
    font-weight: 800;
    background: rgba(255, 90, 0, 0.15);
    border: 1px solid rgba(255, 90, 0, 0.25);
    color: #FFB38A;
    padding: 1px 6px;
    border-radius: 4px;
}

/* KPIs grid styles */
.kpis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.kpi-card {
    background: var(--color-white);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.kpi-card:active {
    transform: scale(0.97);
}

.kpi-icon {
    font-size: 1.3rem;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-content {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-top: 0.05rem;
}

/* Account card sections */
.account-card-section {
    background: var(--color-white);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.section-title-compact {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.4rem;
}

.section-title-compact i {
    font-size: 1.05rem;
}

.rewards-points-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.rewards-points-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    min-width: 80px;
    border: 1px dashed var(--color-primary);
}

.rewards-points-large span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
}

.rewards-points-large small {
    font-size: 0.52rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.rewards-points-description {
    font-size: 0.66rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    font-weight: 500;
}

.points-ledger-container {
    background: var(--color-bg-app);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.ledger-title {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.points-ledger-list {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px dashed var(--color-border);
}

.ledger-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ledger-gain { color: var(--color-success); font-weight: 800; }
.ledger-loss { color: var(--color-primary-dark); font-weight: 800; }

/* Timeline orders styles */
.orders-timeline-container {
    position: relative;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.orders-timeline-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 4px;
    bottom: 5px;
    width: 2px;
    background: var(--color-border);
}

.timeline-node {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -20px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary-soft-dark);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-id {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-dark);
}

.timeline-date {
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.timeline-body {
    background: var(--color-bg-app);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-top: 0.4rem;
}

.timeline-products {
    font-size: 0.68rem;
    color: var(--color-dark);
    line-height: 1.35;
}

.timeline-price-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 0.3rem;
}

.timeline-total {
    color: var(--color-primary-dark);
    font-weight: 900;
}

.timeline-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.timeline-btn {
    flex: 1;
    border: none;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.timeline-btn-buy {
    background: var(--color-primary);
    color: var(--color-white);
}

.timeline-btn-buy:active {
    background: var(--color-primary-dark);
}

.timeline-btn-detail {
    background: #EAECEF;
    color: var(--color-dark);
}

/* Address List premium styling */
.addresses-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-card-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg-app);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.address-card-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.address-card-info strong {
    font-size: 0.72rem;
    color: var(--color-dark);
}

.address-card-info span {
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.address-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-principal-tag {
    font-size: 0.55rem;
    font-weight: 850;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-primary-soft-dark);
}

.address-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.address-type-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    transition: all 0.2s;
    background: var(--color-white);
}

.address-type-option input {
    display: none;
}

.address-type-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

/* Payment premium grid */
.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-card-premium {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-bg-app);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-card-premium.active-pay {
    border-color: var(--color-border);
    background: var(--color-white);
}

.pay-icon {
    font-size: 1.4rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mpesa-color { background: rgba(230,0,0,0.08); color: var(--color-red-mpesa); }
.emola-color { background: rgba(255,122,0,0.08); color: var(--color-orange-emola); }
.cash-color { background: rgba(0,204,102,0.08); color: var(--color-success); }

.pay-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.pay-info strong {
    font-size: 0.72rem;
    color: var(--color-dark);
}

.pay-info span {
    font-size: 0.58rem;
    color: var(--color-text-muted);
}

.payment-card-premium .check-icon {
    position: absolute;
    right: 0.8rem;
    font-size: 1.1rem;
    color: var(--color-success);
}

/* Bottom Sheet Settings premium layout */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 480px;
    background: var(--color-white);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    z-index: 10001;
    box-shadow: 0 -10px 35px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    transform: translate(-50%, 0);
}

.bottom-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin: 8px auto 4px;
}

.bottom-sheet-header {
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.bottom-sheet-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 850;
    color: var(--color-dark);
}

.bottom-sheet-header .close-sheet-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.bottom-sheet-content {
    overflow-y: auto;
    padding: 0.8rem 1.2rem 2.5rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.4rem;
    border-bottom: 1.5px solid var(--color-bg-app);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: background 0.2s;
}

.settings-item:active {
    background: var(--color-bg-app);
}

.settings-item .item-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.settings-item i {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.settings-item .item-left i {
    color: var(--color-primary);
}

.settings-item .bx-chevron-right {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Settings Form elements */
.settings-form-row {
    margin-bottom: 0.8rem;
}

.settings-form-row label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.settings-form-row .form-input {
    width: 100%;
    height: 38px;
    padding: 0 0.8rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    outline: none;
}

.settings-form-row .form-input:focus {
    border-color: var(--color-primary);
}

.back-settings-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

/* Hide desktop nav by default on mobile */
.desktop-header-nav {
    display: none;
}

/* ==========================================================================
   BRASA MARKET - DESKTOP MODE (width > 1024px)
   ========================================================================== */
@media (min-width: 1025px) {
    body {
        background: radial-gradient(circle at center, #2B2C30 0%, #121214 100%) !important;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        user-select: auto;
        -webkit-user-select: auto;
    }

    .app-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: relative;
    }

    /* Top Desktop Nav bar formatting */
    .desktop-header-nav {
        display: flex !important;
        gap: 1.5rem;
        align-items: center;
        margin-left: 2rem;
    }

    .desktop-header-nav .nav-item {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--color-dark);
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
        transition: color 0.2s, background-color 0.2s;
        cursor: pointer;
    }

    .desktop-header-nav .nav-item:hover {
        color: var(--color-primary);
        background-color: var(--color-primary-soft);
    }

    .desktop-header-nav .nav-item.active {
        color: var(--color-primary);
        background-color: var(--color-primary-soft);
        border-bottom: 2px solid var(--color-primary);
        border-radius: 6px 6px 0 0;
    }

    /* Hide Hamburger icon and Mobile bottom nav on Desktop */
    .menu-hamburger-btn {
        display: none !important;
    }

    .bottom-nav {
        display: none !important;
    }

    .floating-cart-btn {
        display: none !important;
    }

    /* Slide-in Right Sidebar Cart on Desktop */
    .cart-sidebar {
        position: fixed !important;
        width: 380px !important;
        height: 100vh !important;
        border-left: 1px solid var(--color-border) !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05) !important;
        z-index: 1000 !important;
    }

    /* Expanded Product scrolls into wide responsive grids */
    .products-scroll,
    .promos-scroll {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
        gap: 1.2rem !important;
        overflow-x: visible !important;
        padding: 0.5rem 0 !important;
    }

    .app-product-card,
    .product-card {
        width: 100% !important;
        min-width: unset !important;
    }

    /* Expand other sections nicely */
    .produtos-layout .products-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 1.2rem !important;
    }

    .kpis-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Center view layouts with dynamic padding */
    #app-main-content {
        padding: 1rem 2rem 5rem 2rem !important;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    /* Centered Modals for Bottom Sheets / Drawers on Desktop */
    .bottom-sheet,
    .filter-drawer {
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        border-radius: var(--radius-xl) !important;
        max-width: 480px !important;
        max-height: 80vh !important;
        box-shadow: 0 15px 45px rgba(0,0,0,0.3) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .bottom-sheet.active,
    .filter-drawer.active {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .bottom-sheet-drag-handle {
        display: none !important;
    }
}

/* ==========================================================================
   BRASA MARKET - VIP PREMIUM ESTILO C (HYBRID PREMIUM)
   ========================================================================== */
.vip-hero-card {
    background: linear-gradient(135deg, #1E1B18 0%, #321A0C 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: #FFFFFF;
    box-shadow: 0 8px 30px rgba(50, 26, 12, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.vip-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.15) 0%, rgba(255, 90, 0, 0) 70%);
    pointer-events: none;
}

.vip-badge-tag {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255, 90, 0, 0.2);
    border: 1px solid rgba(255, 90, 0, 0.4);
    color: #FF5A00;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.vip-badge-tag.diamond {
    background: rgba(160, 0, 255, 0.2);
    border-color: rgba(160, 0, 255, 0.4);
    color: #A000FF;
}

.vip-badge-tag.platinum {
    background: rgba(0, 195, 255, 0.2);
    border-color: rgba(0, 195, 255, 0.4);
    color: #00C3FF;
}

.vip-badge-tag.gold {
    background: rgba(255, 185, 0, 0.2);
    border-color: rgba(255, 185, 0, 0.4);
    color: #FFB900;
}

.vip-badge-tag.silver {
    background: rgba(168, 168, 168, 0.2);
    border-color: rgba(168, 168, 168, 0.4);
    color: #A8A8A8;
}

.vip-progressbar-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-progressbar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Leaderboard custom lists */
.leaderboard-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.leaderboard-row-item.is-me {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.08);
}

.leaderboard-row-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.leaderboard-rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--color-dark);
}

.leaderboard-rank-badge.rank-1 { background: #FFEAA7; color: #D48C00; }
.leaderboard-rank-badge.rank-2 { background: #DFE6E9; color: #636E72; }
.leaderboard-rank-badge.rank-3 { background: #FFE8D6; color: #A05A2C; }

/* Stat mini dashboard cards */
.vip-mini-stat-card {
    background: #FFF9F4;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
}

.vip-mini-stat-card h4 {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0;
}

.vip-mini-stat-card .stat-val {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-dark);
}

/* Weekly missions item checklist */
.mission-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    background: #FAFBFD;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.mission-checkbox-item.completed {
    background: var(--color-success-soft);
    border-color: rgba(0, 204, 102, 0.2);
}

.mission-info-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mission-title-txt {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-dark);
}

.mission-checkbox-item.completed .mission-title-txt {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.mission-reward-badge {
    font-size: 0.55rem;
    font-weight: 800;
    background: rgba(255, 90, 0, 0.1);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
}

.mission-checkbox-item.completed .mission-reward-badge {
    background: rgba(0, 204, 102, 0.1);
    color: var(--color-success);
}

/* ==========================================================================
   BRASA MARKET - HOMEPAGE OPTIMIZATION & CONVERSION STYLES
   ========================================================================== */
.social-proof-horizontal {
    overflow: hidden;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 0.6rem 0;
    width: 100%;
}

.social-proof-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: marqueeScrollRight 25s linear infinite;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-dark);
    white-space: nowrap;
    padding: 0.1rem 0.5rem;
}

.social-proof-item i {
    font-size: 0.95rem;
    color: var(--color-primary);
}

@keyframes marqueeScrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.mini-beneficios-section {
    padding: 0.8rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.benefit-card-premium {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.benefit-card-premium i {
    font-size: 1.35rem;
    color: var(--color-primary);
}

.benefit-card-premium span {
    font-size: 0.62rem;
    font-weight: 850;
    color: var(--color-dark);
    line-height: 1.25;
}

.badge-custom {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    background: rgba(9, 10, 12, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.55rem;
    font-weight: 850;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   BRASA MARKET - CATEGORIES PREMIUM REDESIGN
   ========================================================================== */
.quick-actions-container {
    position: relative;
    padding-top: 0.1rem;
    padding-bottom: 0.5rem;
    overflow: hidden;
}

.quick-actions-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
}

.quick-actions-container.scrolled::after {
    opacity: 0; /* Hide indicator when user scrolls */
}

.categories-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem 0.4rem;
    background: var(--color-white);
}

.categories-header-block h2 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0;
}

.categories-header-block .see-all-cats-btn {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.15rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.categories-header-block .see-all-cats-btn:hover {
    color: var(--color-primary-dark);
}

/* Premium bottom sheet search input */
.sheet-search-wrapper {
    margin: 0.5rem 0 1rem;
    position: relative;
    width: 100%;
}

.sheet-search-wrapper i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1rem;
}

.sheet-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.2rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #FFFBF7;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-dark);
    outline: none;
    transition: border-color 0.2s;
}

.sheet-search-input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
}

/* Categories Grid inside Bottom Sheet */
.categories-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding-bottom: env(safe-area-inset-bottom, 1.5rem);
}

.category-sheet-card {
    background: #FFFBF7;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 94px;
}

.category-sheet-card:hover, .category-sheet-card:active {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.category-sheet-card.active {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.05);
}

.category-sheet-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.category-sheet-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.category-sheet-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
}

.category-sheet-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-dark);
    word-break: break-word;
}

.category-sheet-count {
    font-size: 0.58rem;
    color: var(--color-text-muted);
    font-weight: 700;
}





