/* ═══════════════════════════════════════════════
   Mani Agro — Client CSS (Mobile-First Premium)
   Complete UI Overhaul v2
   ═══════════════════════════════════════════════ */

/* ─── Header Especial Cliente ─────────────────── */
.client-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.client-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-weight: 800;
    font-size: var(--text-lg); color: var(--primary);
}
.client-logo svg { color: var(--primary); width: 24px; height: 24px; }
.client-cart-btn {
    position: relative; background: none; border: none;
    color: var(--text); padding: 8px; cursor: pointer;
    transition: transform var(--transition-base);
}
.client-cart-btn:active { transform: scale(0.9); }
.client-cart-btn .badge {
    position: absolute; top: 0; right: 0;
    background: var(--primary); color: white;
    font-size: 10px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.client-cart-btn .badge.bounce { transform: scale(1.3); }

/* Desktop-only sidebar elements — hidden on mobile */
.sidebar-brand,
.sidebar-cart-btn,
.sidebar-user,
.header-search-container {
    display: none;
}

/* ─── Catálogo Hero (iFood-inspired) ──────────── */
.catalog-hero {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--radius-2xl);
    margin-bottom: 28px;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.catalog-hero__left {
    flex: 1;
    background: #F5F8F0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.catalog-hero__eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.catalog-hero__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

.catalog-hero__title span {
    color: var(--primary);
    position: relative;
}

.catalog-hero__btn {
    align-self: flex-start;
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(15,90,49,0.25);
}

.catalog-hero__btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(15,90,49,0.35);
    transform: translateY(-1px);
}

.catalog-hero__btn:active { transform: scale(0.97); }

.catalog-hero__right {
    flex-shrink: 0;
    width: 140px;
    background: #E8F0E2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.catalog-hero__right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.12));
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.catalog-hero:hover .catalog-hero__right img {
    transform: scale(1.06) translateY(-4px);
}

.catalog-hero__price-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(15,90,49,0.3);
}

/* ─── Seção Categorias (grid estilo iFood) ─────── */
.catalog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.catalog-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.catalog-see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity var(--transition-fast);
}

.catalog-see-all:hover { opacity: 0.7; }

/* ─── Categories Carousel Wrapper ─── */
.catalog-categories-wrap {
    position: relative;
    margin-bottom: 28px;
}

.catalog-categories-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition-fast);
}
.catalog-categories-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-60%) scale(1.08);
}
.catalog-categories-arrow--prev { left: -16px; }
.catalog-categories-arrow--next { right: -16px; }

.catalog-categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.catalog-categories-scroll::-webkit-scrollbar { display: none; }

.catalog-cat-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--transition-base);
    width: 76px;
}

.catalog-cat-card:hover { transform: translateY(-3px); }
.catalog-cat-card:active { transform: scale(0.95); }

.catalog-cat-card__img-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.catalog-cat-card.active .catalog-cat-card__img-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,90,49,0.12);
}

.catalog-cat-card__img-wrap img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

/* Upload button shown when category has no image */
.catalog-cat-card__upload-btn {
    position: absolute;
    inset: 0;
    background: rgba(15,90,49,0.06);
    border: 2px dashed var(--primary-200);
    border-radius: calc(var(--radius-xl) - 2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-align: center;
    padding: 4px;
}

.catalog-cat-card__upload-btn:hover {
    background: rgba(15,90,49,0.12);
}

.catalog-cat-card__upload-btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.catalog-cat-card__upload-btn input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.catalog-cat-card__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    white-space: normal;
    transition: color var(--transition-fast);
}

.catalog-cat-card.active .catalog-cat-card__label {
    color: var(--primary);
    font-weight: 700;
}

/* ─── Promo Banners Duplos (estilo referência) ─── */
.catalog-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.catalog-promo-card {
    border-radius: var(--radius-2xl);
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.catalog-promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.catalog-promo-card:active { transform: scale(0.98) translateY(-1px); }

.catalog-promo-card--green {
    background: linear-gradient(135deg, #F0F7EE 0%, #E3F2DF 100%);
    border-color: rgba(214, 234, 210, 0.5);
}

.catalog-promo-card--warm {
    background: linear-gradient(135deg, #FFF9F3 0%, #FFF2E5 100%);
    border-color: rgba(255, 227, 204, 0.5);
}

.catalog-promo-card--teal {
    background: linear-gradient(135deg, #F0F7F7 0%, #E2EFF0 100%);
    border-color: rgba(212, 230, 231, 0.5);
}

.catalog-promo-card--purple {
    background: linear-gradient(135deg, #F6F3F9 0%, #EEE7F5 100%);
    border-color: rgba(225, 213, 237, 0.5);
}

.catalog-promo-card__discount {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
}

.catalog-promo-card--warm .catalog-promo-card__discount {
    color: #d97706;
}

.catalog-promo-card--teal .catalog-promo-card__discount {
    color: #0d9488;
}

.catalog-promo-card--purple .catalog-promo-card__discount {
    color: #7c3aed;
}

.catalog-promo-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #1f2937;
    max-width: 55%;
}

.catalog-promo-card__btn {
    align-self: flex-start;
    margin-top: 14px;
    padding: 8px 18px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
}

.catalog-promo-card--green .catalog-promo-card__btn { background: #16a34a; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15); }
.catalog-promo-card--warm .catalog-promo-card__btn { background: #d97706; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15); }
.catalog-promo-card--teal .catalog-promo-card__btn { background: #0d9488; box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15); }
.catalog-promo-card--purple .catalog-promo-card__btn { background: #7c3aed; box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15); }

.catalog-promo-card__btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.catalog-promo-card__btn:active {
    transform: scale(0.97);
}

.catalog-promo-card__img {
    position: absolute;
    right: 8px;
    bottom: 8px;
    top: 8px;
    width: 42%;
    height: calc(100% - 16px);
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.08));
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.catalog-promo-card:hover .catalog-promo-card__img {
    transform: scale(1.06) translateY(-2px);
}

/* Price in promo card */
.catalog-promo-card__price {
    font-size: 15px;
    font-weight: 800;
    color: #4b5563;
    margin-top: 4px;
}

.catalog-promo-card__weight {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
}

/* ─── Promo Carousel (Destaques) ─────────────────── */
.catalog-promo-wrap {
    margin-bottom: 28px;
    overflow: hidden; /* Prevent horizontal scrollbar on parent if any */
}

/* Section header counter (1/3) */
.catalog-promo-nav {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.catalog-promo-carousel {
    position: relative;
    overflow: visible; /* Allow peeking cards to render outside the container bounds */
    touch-action: pan-y;
}

.catalog-promo-carousel__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 4px; /* Account for card shadows */
}

.catalog-promo-carousel__track::-webkit-scrollbar {
    display: none;
}

.catalog-promo-carousel__slide {
    flex: 0 0 300px;
    max-width: 85vw;
    min-width: 0;
    scroll-snap-align: start;
}

.catalog-promo-carousel__slide .catalog-promo-card {
    min-height: 160px;
    height: 100%;
}

/* Arrow buttons — hidden, handled by touch scroll and dots */
.catalog-promo-carousel__btn {
    display: none;
}

/* Dot indicators */
.catalog-promo-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.catalog-promo-carousel__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.catalog-promo-carousel__dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* ─── Página de Categoria (inline view) ─────────── */
.category-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}
.category-back-btn:hover {
    color: var(--primary);
    background: var(--surface-hover);
}
.category-back-btn svg {
    transition: transform var(--transition-base);
}
.category-back-btn:hover svg {
    transform: translateX(-4px);
}

.category-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #E8F5E3 0%, #D4EDCA 100%);
    border-radius: var(--radius-2xl);
    padding: 32px var(--space-6);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}
.category-hero-banner__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}
.category-hero-banner__breadcrumb {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}
.category-hero-banner__breadcrumb span {
    color: var(--text-muted);
}
.category-hero-banner__breadcrumb span.active {
    color: var(--primary);
}
.category-hero-banner__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.category-hero-banner__subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}
.category-hero-banner__img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}
.category-hero-banner:hover .category-hero-banner__img {
    transform: scale(1.06) rotate(3deg);
}

@media (max-width: 768px) {
    .category-hero-banner {
        padding: 24px var(--space-4);
        min-height: 120px;
    }
    .category-hero-banner__title {
        font-size: 24px;
    }
    .category-hero-banner__img {
        max-height: 80px;
    }
}


.client-search {
    position: relative;
    margin-bottom: var(--space-5);
}

.client-search input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: var(--text-sm);
    color: var(--text);
    transition: all var(--transition-base);
}

.client-search input:focus {
    box-shadow: 0 8px 24px rgba(15,90,49,0.06);
    border-color: var(--primary);
    outline: none;
}

.client-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.client-search input:focus + svg {
    color: var(--primary);
}

/* Active filter pill (used inside search results) */
.catalog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--primary-50);
    border: 1.5px solid var(--primary-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.catalog-filter-pill__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.catalog-filter-pill__remove:hover { opacity: 1; }

/* ─── Product Grid — Premium Cards ────────────── */
.client-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.client-product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(225,230,227,0.5);
    padding: 12px;
    gap: 12px;
}

.client-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.client-product-card:active {
    transform: scale(0.98) translateY(-2px);
}

.client-product-card__img-wrap {
    width: 100%;
    aspect-ratio: 1; 
    background: #F4F6F5;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.client-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.04));
}

.client-product-card:hover .client-product-card__img {
    transform: scale(1.08) rotate(1deg);
}

.client-product-card__price-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-100);
    backdrop-filter: blur(4px);
}

.client-product-card__heart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.client-product-card__heart:hover {
    transform: scale(1.15);
    background: white;
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239,68,68,0.15);
}

.client-product-card__heart.active {
    color: #ef4444;
}

.client-product-card__heart.active svg {
    fill: #ef4444;
    stroke: #ef4444;
    animation: heartBeat 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.client-product-card__body {
    padding: 4px 2px 2px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.client-product-card__weight {
    display: inline-block;
    padding: 3px 8px;
    background: #F1F4F0;
    color: #4a5a4c;
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    align-self: flex-start;
}

.client-product-card__name { 
    font-family: var(--font-heading);
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text); 
    line-height: 1.3; 
    margin-bottom: 6px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    height: 36px;
}

/* ─── Product Card: In-Cart state & Add Row ───── */
.client-product-card.in-cart {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.client-product-card__add-row {
    margin-top: auto;
}

/* Add button — default state */
.client-product-card__add {
    width: 100%;
    padding: 10px;
    background: var(--primary-50);
    color: var(--primary);
    border: 1.5px solid var(--primary-100);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.client-product-card__add:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15,90,49,0.15);
}

.client-product-card__add:active {
    transform: scale(0.97);
}

/* Inline qty stepper — appears after first add */
.client-qty-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 38px;
    background: white;
    box-shadow: 0 2px 8px rgba(15,90,49,0.06);
    animation: scaleIn var(--transition-spring) both;
}

.client-qty-inline .client-qty-btn {
    width: 38px;
    height: 36px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.client-qty-inline .client-qty-btn:hover {
    background: var(--primary-50);
}

.client-qty-inline .client-qty-btn:active {
    background: var(--primary-100);
}

.client-qty-inline .client-qty-val {
    flex: 1; text-align: center; font-weight: 800; font-size: 14px;
    color: var(--primary); min-width: 28px;
}

/* ═══════════════════════════════════════════════
   Full Page View (Stack Navigation)
   ═══════════════════════════════════════════════ */
/* ─── PDP & Cart Overhaul ────────────────────── */
.client-full-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 450;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform var(--transition-spring), opacity var(--transition-base);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.client-full-page.open {
    transform: translateX(0);
}
.client-full-page__header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px var(--space-4);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    min-height: 56px;
    flex-shrink: 0;
    position: sticky; top: 0; z-index: 10;
}
.client-full-page__back {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: var(--surface-active);
    border: none; cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    color: var(--text);
}
.client-full-page__back:hover {
    background: var(--border);
    transform: scale(1.05);
}
.client-full-page__back:active {
    transform: scale(0.95);
}
.client-full-page__back svg { width: 20px; height: 20px; }
.client-full-page__title {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 700;
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client-full-page__body {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.client-full-page__footer {
    padding: 16px;
    background: white;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.03);
    flex-shrink: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
}

/* ─── Product Detail (Full Page) ─────────────── */
.pdp-gallery {
    width: 100%;
    background: white;
    position: relative;
    overflow: hidden;
}
.pdp-gallery__scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pdp-gallery__scroll::-webkit-scrollbar { display: none; }
.pdp-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1.1;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    padding: 24px;
}
.pdp-gallery__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.05));
}
.pdp-gallery__dots {
    display: flex; justify-content: center; gap: 8px;
    padding: 16px 0;
    position: absolute; bottom: 0; left: 0; right: 0;
    background: transparent;
    pointer-events: none;
    z-index: 15;
}
.pdp-gallery__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none; padding: 0; cursor: pointer;
    pointer-events: all;
}
.pdp-gallery__dot:hover {
    background: rgba(0,0,0,0.3);
}
.pdp-gallery__dot.active {
    background: var(--primary);
    width: 24px; border-radius: 4px;
}

/* Gallery Arrows */
.pdp-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.pdp-gallery__arrow:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}
.pdp-gallery__arrow--left {
    left: 16px;
}
.pdp-gallery__arrow--right {
    right: 16px;
}

/* Show arrows on gallery hover on desktop */
@media (min-width: 992px) {
    .pdp-gallery:hover .pdp-gallery__arrow {
        opacity: 1;
        pointer-events: all;
        transform: translateY(-50%) scale(1);
    }
}

.pdp-info {
    padding: 24px 24px 100px;
}
.pdp-info__weight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-100);
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid var(--primary-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdp-info__weight:hover {
    transform: translateY(-1px);
    background: var(--primary-50);
    border-color: var(--primary-300);
    box-shadow: 0 4px 12px rgba(15, 90, 49, 0.08);
}
.pdp-info__weight svg {
    color: var(--primary);
    transition: transform 0.3s ease;
}
.pdp-info__weight:hover svg {
    transform: scale(1.1);
}
.pdp-info__weight strong {
    font-weight: 800;
    color: var(--primary-darker);
}
.pdp-info__name {
    font-family: var(--font-heading);
    font-size: 26px; font-weight: 800;
    color: #0d1e13; line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.pdp-info__price {
    font-family: var(--font-heading);
    font-size: 34px; font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}
.pdp-tag-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.pdp-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    background: #F1F6EE; color: #2E5A1E;
    border: 1px solid #E2EFE0;
}
.pdp-info .client-product-card__heart {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}
.pdp-info .client-product-card__heart:hover {
    color: #ef4444;
    border-color: #fca5a5 !important;
    transform: scale(1.05);
}
.pdp-info .client-product-card__heart.active {
    background: #fef2f2 !important;
    border-color: #fee2e2 !important;
    color: #ef4444;
}
.pdp-info__divider {
    height: 1px; background: var(--border-light);
    margin: 20px 0;
}
.pdp-info__section-title {
    font-family: var(--font-heading);
    font-size: 12px; font-weight: 700;
    color: var(--primary); margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.8px;
    display: flex; align-items: center; gap: 8px;
}
.pdp-info__section-title::before {
    content: '';
    display: inline-block;
    width: 4px; height: 12px;
    background: var(--primary);
    border-radius: 2px;
}
.pdp-info__desc {
    font-size: 14px; color: #4b5563;
    line-height: 1.7;
    background: #F8FAF7;
    padding: 16px 20px;
    border-radius: var(--radius-xl);
    border-left: 4px solid #C4D6BD;
}

/* PDP Footer (sticky add to cart) */
.pdp-footer {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.pdp-footer__qty {
    display: flex; align-items: center;
    border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-full);
    overflow: hidden; height: 48px; background: #F1F3F0; flex-shrink: 0;
    padding: 3px;
}
.pdp-footer__qty button {
    width: 42px; height: 42px; background: white; border: none;
    font-size: 18px; font-weight: 600; color: var(--primary-dark);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}
.pdp-footer__qty button:hover {
    background: var(--primary); color: white;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}
.pdp-footer__qty button:active { transform: scale(0.95); }
.pdp-footer__qty span {
    width: 38px; text-align: center; font-weight: 800; font-size: 16px;
    color: #0d1e13;
}
.pdp-footer__add-btn {
    flex: 1; height: 48px; padding: 0 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none; border-radius: var(--radius-full);
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all var(--transition-base);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 18px rgba(15,90,49,0.25);
}
.pdp-footer__add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,90,49,0.35);
}
.pdp-footer__add-btn:active { transform: translateY(0) scale(0.98); }

/* ─── Carrinho (Bottom Sheet) ─────────────────── */
.client-cart-sheet {
    position: fixed; inset: 0; z-index: var(--z-overlay);
    pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end;
}
.client-cart-sheet__overlay {
    position: absolute; inset: 0; background: rgba(11, 26, 18, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0; transition: opacity var(--transition-base);
}
.client-cart-sheet.open { pointer-events: auto; }
.client-cart-sheet.open .client-cart-sheet__overlay { opacity: 1; }

.client-cart-sheet__content {
    position: relative; background: white; border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0)); transform: translateY(100%);
    transition: transform var(--transition-spring);
    max-height: 85vh; display: flex; flex-direction: column;
    box-shadow: 0 -8px 32px rgba(15, 90, 49, 0.08);
}
.client-cart-sheet.open .client-cart-sheet__content { transform: translateY(0); }
.client-cart-sheet__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.client-cart-sheet__title { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text); }
.client-cart-sheet__close {
    background: var(--bg); border: none; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.client-cart-sheet__close:hover { background: var(--surface-active); color: var(--text); transform: scale(1.05); }
.client-cart-sheet__close:active { transform: scale(0.95); }

.client-cart-items { flex: 1; overflow-y: auto; padding-right: 4px; margin-bottom: 20px; }
.client-cart-item {
    display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.client-cart-item__img {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    background: var(--bg); object-fit: contain; padding: 4px;
}
.client-cart-item__info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.client-cart-item__name { font-family: var(--font-heading); font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; color: var(--text); }
.client-cart-item__price { font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: var(--primary); }

.client-cart-footer { padding-top: 20px; border-top: 1.5px solid var(--border); }
.client-cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.client-cart-total__label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.client-cart-total__val { font-family: var(--font-heading); font-size: 24px; font-weight: 900; color: var(--primary); }

.client-qty-selector {
    display: flex; align-items: center; border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; background: white;
}
.client-qty-btn {
    width: 36px; height: 36px; background: none; border: none;
    font-size: 18px; font-weight: 600; color: var(--text-secondary); cursor: pointer;
    transition: background var(--transition-fast);
}
.client-qty-btn:hover { background: var(--surface-hover); color: var(--text); }
.client-qty-btn:active { background: var(--surface-active); }
.client-qty-val { width: 36px; text-align: center; font-weight: 800; font-size: 14px; color: var(--text); }

/* ─── Pedidos (Redesigned) ────────────────────── */
.client-order-card {
    background: white; border-radius: var(--radius-xl);
    padding: 16px; margin-bottom: 12px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}
.client-order-card:active { transform: scale(0.99); box-shadow: none; }
.client-order-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.client-order-card__num { font-size: 13px; font-weight: 800; font-family: var(--font-mono, monospace); color: var(--primary); }
.client-order-card__date { font-size: 11px; color: var(--text-muted); }
.client-order-card__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.client-order-card__total { font-size: 16px; font-weight: 900; }

/* ─── Order Detail (Full Page) ────────────────── */
.order-detail-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 16px;
    margin: 0 16px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.order-detail-section__title {
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.order-detail-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.order-detail-item:last-child { border-bottom: none; }
.order-detail-item__img {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: var(--bg); object-fit: cover; flex-shrink: 0;
}
.order-detail-item__info { flex: 1; }
.order-detail-item__name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.order-detail-item__qty { font-size: 12px; color: var(--text-muted); }
.order-detail-item__price { font-size: 14px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.order-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 13px;
}
.order-detail-row__label { color: var(--text-muted); }
.order-detail-row__value { font-weight: 600; }
.order-detail-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0 0; margin-top: 8px; border-top: 2px solid var(--border);
    font-size: 16px; font-weight: 800;
}
.order-detail-total__value { color: var(--primary); font-size: 20px; }

/* ─── Notifications (Premium) ─────────────────── */
.client-notif-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.client-notif-card:active { transform: scale(0.99); }
.client-notif-card--unread {
    border-left: 3px solid var(--primary);
    background: var(--primary-50);
}
.client-notif-card__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.client-notif-card__icon--success { background: var(--success-light); color: #059669; }
.client-notif-card__icon--info { background: var(--info-light); color: #2563EB; }
.client-notif-card__icon--warning { background: var(--warning-light); color: #D97706; }
.client-notif-card__icon--danger { background: var(--danger-light); color: #DC2626; }
.client-notif-card__content { flex: 1; min-width: 0; }
.client-notif-card__title {
    font-size: 14px; font-weight: 700; color: var(--text);
    margin-bottom: 4px; line-height: 1.3;
}
.client-notif-card__msg {
    font-size: 12px; color: var(--text-secondary); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.client-notif-card__time {
    font-size: 11px; color: var(--text-muted); margin-top: 6px;
}
.client-notif-card__arrow {
    color: var(--text-muted);
    flex-shrink: 0; align-self: center;
}

/* ─── Perfil / Account ────────────────────────── */
.client-profile-box { text-align: center; padding: var(--space-6) 0; }
.client-profile-img {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--primary-50); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px; font-weight: 800; color: var(--primary); overflow: hidden;
}
.client-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.client-profile-name { font-size: 20px; font-weight: 800; }
.client-profile-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.client-section-title { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 24px 0 12px; }

/* Custom file upload button */
.client-upload-area {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
}
.client-upload-area:hover, .client-upload-area:focus-within {
    border-color: var(--primary); background: var(--primary-50);
}
.client-upload-area__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); flex-shrink: 0;
}
.client-upload-area__text {
    flex: 1;
}
.client-upload-area__title {
    font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 2px;
}
.client-upload-area__hint {
    font-size: 11px; color: var(--text-muted);
}
.client-upload-area input[type="file"] {
    position: absolute; width: 1px; height: 1px; opacity: 0;
    overflow: hidden; clip: rect(0,0,0,0);
}

/* Logout button */
.client-logout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px;
    background: none; color: var(--danger);
    border: 1.5px solid var(--danger-light);
    border-radius: var(--radius-xl);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 32px; margin-bottom: 40px;
}
.client-logout-btn:active {
    background: var(--danger-light);
}
.client-logout-btn svg { width: 18px; height: 18px; }

/* ─── Status Badges (Compact, Inline) ─────────── */
.client-status {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700;
}
.client-status--pending { background: var(--warning-light); color: #92400E; }
.client-status--confirmed { background: var(--success-light); color: #065F46; }
.client-status--delivered { background: var(--info-light); color: #1E40AF; }
.client-status--cancelled { background: var(--danger-light); color: #991B1B; }
.client-status--paid { background: var(--success-light); color: #065F46; }

/* ═══════════════════════════════════════════════
   Desktop Optimizations (Responsive)
   ═══════════════════════════════════════════════ */
@media (min-width: 992px) {

    /* ─── Hide mobile-only header ─── */
    .client-header {
        display: none;
    }

    /* ─── Main App Layout (header + content) ─── */
    .app-shell {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .app-content {
        padding: 40px 56px !important;
        max-width: 100%;
        width: 100%;
        background: var(--bg);
        min-height: calc(100vh - 76px);
    }

    .app-content .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }

    /* ─── Top Header Navigation ─── */
    .bottom-nav {
        order: -1;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 76px;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0 40px;
        border-bottom: 1px solid var(--border-light);
        border-top: none;
        box-shadow: var(--shadow-sm);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 400;
        overflow: visible;
        gap: 0;
    }

    /* Show desktop-only header elements */
    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 28px;
        order: 1;
        padding: 0;
        border-bottom: none;
        background: transparent;
    }

    .header-search-container {
        display: flex;
        position: relative;
        align-items: center;
        width: 300px;
        order: 2;
        margin-right: 28px;
    }

    .header-search-container input {
        width: 100%;
        height: 42px;
        padding: 8px 16px 8px 42px;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-full);
        background: #F4F6F5;
        font-family: var(--font-body);
        font-size: var(--text-sm);
        font-weight: 500;
        color: var(--text);
        transition: all var(--transition-base);
    }

    .header-search-container input:focus {
        border-color: var(--primary);
        background: white;
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
        outline: none;
    }

    .header-search-container svg {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--text-muted);
        transition: color var(--transition-fast);
        pointer-events: none;
    }

    .header-search-container input:focus + svg {
        color: var(--primary);
    }

    .sidebar-cart-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: var(--primary);
        color: white;
        border-radius: var(--radius-full);
        border: none;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        order: 4;
        margin-left: auto; /* Push cart and profile to the right! */
        box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
        transition: all var(--transition-base);
    }

    .sidebar-cart-btn:hover {
        background: var(--primary-600);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
    }

    .sidebar-user {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0;
        margin-left: 24px;
        order: 5;
        border-top: none;
        background: transparent;
    }

    /* Nav items area */
    .bottom-nav__item {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        height: 76px;
        gap: 8px;
        order: 3;
        color: var(--text-secondary);
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        margin: 0;
        transition: all var(--transition-base);
        font-size: 14px;
        background: transparent;
        min-height: auto;
    }

    .bottom-nav__item:first-child {
        margin-top: 0;
    }

    .bottom-nav__item:hover {
        background: transparent;
        color: var(--primary);
        border-bottom-color: var(--primary-200);
        transform: none;
    }

    .bottom-nav__item svg {
        width: 18px;
        height: 18px;
        stroke-width: 1.8;
        flex-shrink: 0;
    }

    .bottom-nav__item span {
        font-size: 14px;
        font-weight: 600;
    }

    .bottom-nav__item.active {
        background: transparent;
        color: var(--primary);
        border-bottom-color: var(--primary);
        font-weight: 700;
    }

    .bottom-nav__item.active svg {
        stroke-width: 2.2;
    }

    .bottom-nav__item.active::before {
        display: none;
    }

    .bottom-nav__badge {
        position: static;
        transform: none;
        margin-left: 6px;
        background: var(--primary);
        color: white;
        font-size: 10px;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
    }

    /* ─── Header: Branding block details ─── */
    .sidebar-brand__icon {
        width: 40px;
        height: 40px;
        background: var(--primary);
        border-radius: var(--radius-xl);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    }

    .sidebar-brand__icon svg {
        width: 22px;
        height: 22px;
        color: white;
        stroke: white;
    }

    .sidebar-brand__text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sidebar-brand__name {
        font-family: var(--font-heading);
        font-size: 17px;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .sidebar-brand__tagline {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 500;
        line-height: 1.2;
    }

    /* ─── Header: Cart button details ─── */
    .sidebar-cart-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .sidebar-cart-btn__label {
        font-weight: 700;
    }

    .sidebar-cart-btn__badge {
        background: rgba(255,255,255,0.25);
        border-radius: var(--radius-full);
        font-size: 11px;
        font-weight: 800;
        padding: 2px 8px;
        border: 1.5px solid rgba(255,255,255,0.4);
    }

    /* ─── Header: User card details ─── */
    .sidebar-user__avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--primary-50);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 800;
        color: var(--primary);
        flex-shrink: 0;
        border: 2px solid var(--primary-100);
        overflow: hidden;
    }

    .sidebar-user__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sidebar-user__info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sidebar-user__name {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        line-height: 1.2;
    }

    .sidebar-user__role {
        font-size: 10px;
        color: var(--text-muted);
        line-height: 1.2;
    }

    /* ─── Catalog Page ─── */

    #catalog-search-container {
        display: none !important;
    }

    /* Search bar */
    .client-search {
        max-width: 600px;
        margin-bottom: 36px;
    }

    /* Hero: full-width, bigger */
    .catalog-hero {
        min-height: 280px;
        margin-bottom: 48px;
        border-radius: var(--radius-2xl);
    }

    .catalog-hero__left {
        padding: 48px 56px;
        gap: 16px;
    }

    .catalog-hero__eyebrow {
        font-size: 12px;
    }

    .catalog-hero__title {
        font-size: 36px;
        max-width: 400px;
    }

    .catalog-hero__btn {
        padding: 12px 28px;
        font-size: 13px;
    }

    .catalog-hero__right {
        width: 280px;
    }

    /* Section headers */
    .catalog-section-header {
        margin-bottom: 20px;
    }

    .catalog-section-title {
        font-size: 20px;
    }

    /* Categories header centering */
    .catalog-section-header--categories {
        justify-content: center;
        margin-bottom: 28px;
    }

    .catalog-section-header--categories .catalog-section-title {
        font-size: 24px;
        font-weight: 800;
        text-align: center;
    }

    /* Categories: single horizontal scroll row on all screens */
    .catalog-categories-wrap {
        margin-bottom: 48px;
    }

    .catalog-categories-arrow {
        display: flex;
    }

    .catalog-categories-scroll {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 0;
        scrollbar-width: none;
    }
    .catalog-categories-scroll::-webkit-scrollbar { display: none; }

    .catalog-cat-card {
        width: 130px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        background: transparent;
        padding: 0;
        transition: transform var(--transition-base);
    }

    .catalog-cat-card:hover {
        background: transparent;
        transform: translateY(-5px);
    }

    .catalog-cat-card__img-wrap {
        width: 120px;
        height: 120px;
        border-radius: 20px;
        background: #F2F4F7; /* light premium gray */
        border: 2px solid transparent;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-base);
        margin: 0 auto;
    }

    .catalog-cat-card:hover .catalog-cat-card__img-wrap {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
        border-color: var(--primary-200);
        background: #E8EBF0;
    }

    .catalog-cat-card__img-wrap img {
        width: 75%;
        height: 75%;
        transition: transform var(--transition-base);
    }

    .catalog-cat-card:hover .catalog-cat-card__img-wrap img {
        transform: scale(1.08);
    }

    .catalog-cat-card__label {
        max-width: 100%;
        font-size: 14px;
        font-weight: 700;
        color: #344054;
        transition: color var(--transition-fast);
        white-space: normal;
    }

    .catalog-cat-card:hover .catalog-cat-card__label {
        color: var(--primary);
    }

    /* Promo grid: desktop layout overrides (2 columns side-by-side) */
    .catalog-promo-wrap {
        margin-bottom: 48px;
    }

    .catalog-promo-carousel__btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 12px rgba(0,0,0,0.12);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 3;
        transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
        color: var(--text);
    }

    .catalog-promo-carousel__btn:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
        transform: translateY(-50%) scale(1.08);
    }

    .catalog-promo-carousel__btn--prev { left: -20px; }
    .catalog-promo-carousel__btn--next { right: -20px; }

    .catalog-promo-carousel__track {
        display: flex;
        gap: 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 4px;
    }

    .catalog-promo-carousel__track::-webkit-scrollbar {
        display: none;
    }

    .catalog-promo-carousel__slide {
        flex: 0 0 calc(50% - 12px);
        max-width: none;
        scroll-snap-align: start;
    }

    .catalog-promo-carousel__slide .catalog-promo-card {
        min-height: 180px;
        padding: 24px 28px;
        border-radius: var(--radius-2xl);
    }

    .catalog-promo-card__title {
        font-size: 24px;
        max-width: 55%;
    }

    .catalog-promo-card__discount {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .catalog-promo-card__btn {
        padding: 10px 24px;
        font-size: 12px;
        margin-top: 20px;
    }

    .catalog-promo-card__img {
        width: 40%;
        height: calc(100% - 24px);
        right: 16px;
        bottom: 12px;
        top: 12px;
    }
    
    .catalog-promo-carousel__dots {
        display: flex;
    }

    /* Product grid */
    .client-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 48px;
    }

    /* Product cards — desktop polish */
    .client-product-card__img-wrap {
        height: 200px;
    }

    .client-full-page {
        inset: 50% auto auto 50%;
        width: 900px;
        max-width: 94vw;
        height: 84vh;
        max-height: 680px;
        transform: translate(-50%, -46%) scale(0.96);
        opacity: 0;
        pointer-events: none;
        border-radius: 24px;
        box-shadow: var(--shadow-xl);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.7);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }

    .client-full-page.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: all;
        box-shadow: 0 0 0 100vmax rgba(11, 26, 18, 0.65), var(--shadow-xl);
    }

    .client-full-page__header {
        position: absolute;
        top: 0; left: 0; right: 0;
        z-index: 100;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        padding: 24px 24px 0;
        min-height: auto;
        pointer-events: none;
    }

    .client-full-page__header > * {
        pointer-events: all;
    }

    .client-full-page__title {
        display: none;
    }

    .client-full-page__back {
        width: 44px; height: 44px;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: var(--shadow-sm);
        display: flex; align-items: center; justify-content: center;
        border-radius: var(--radius-full);
        color: var(--text-secondary);
    }

    /* Split Layout for Product Details */
    .client-full-page__body:has(.pdp-gallery) {
        display: flex;
        flex-direction: row;
        overflow: hidden;
        height: 100%;
    }

    .client-full-page:has(.pdp-gallery) .client-full-page__footer {
        margin-left: 50%;
        width: 50%;
        border-left: 1px solid var(--border-light);
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 50;
        box-shadow: 0 -8px 24px rgba(0,0,0,0.02);
    }

    .pdp-gallery {
        width: 50%;
        height: 100%;
        border-right: 1px solid var(--border-light);
        display: block; /* Normal block to let scroll container size correctly */
    }

    .pdp-gallery__scroll { width: 100%; height: 100%; }
    
    .pdp-gallery__slide {
        height: 100%;
        width: 100%;
        flex: 0 0 100%;
        aspect-ratio: auto; /* Remove mobile aspect-ratio stretch on desktop */
        padding: 60px 40px 40px;
        background: radial-gradient(circle at center, #F8FAF6 0%, #FFFFFF 100%);
    }

    .pdp-info {
        width: 50%;
        padding: 50px 40px 110px;
        overflow-y: auto;
        height: 100%;
        background: #FFFFFF;
    }

    /* Layout for Order Details inside Full Page */
    .client-full-page__body:not(:has(.pdp-gallery)) {
        padding: 40px;
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }

    /* Cart Sheet */
    .client-cart-sheet {
        align-items: center;
        justify-content: center;
    }

    .client-cart-sheet__content {
        width: 480px;
        max-height: 80vh;
        border-radius: var(--radius-2xl);
        transform: translateY(30px) scale(0.95);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }

    .client-cart-sheet.open .client-cart-sheet__content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* Orders List */
    #orders-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .emp-page-header {
        margin-top: 32px;
        margin-bottom: 32px;
    }
}

@media (min-width: 1280px) {

    .app-content {
        padding: 52px 72px !important;
    }

    .client-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .catalog-hero__title {
        font-size: 40px;
    }

    .catalog-hero__right {
        width: 320px;
    }

    .catalog-categories-scroll {
        gap: 32px;
    }
}

@media (min-width: 1600px) {
    .client-product-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    #orders-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-hero__title {
        font-size: 44px;
    }
}

/* ==========================================================================
   Stock Badges & Urgency — Client Catalog (Shopping Neuro-psychology)
   ========================================================================== */

/* Pulsing Indicator Dot */
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Image Overlay Badges */
.stock-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: var(--radius-lg);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.stock-badge-overlay--critical {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.stock-badge-overlay--warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.stock-badge-overlay--out {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

.stock-badge-overlay--out .pulse-dot {
    background-color: #94a3b8;
}

/* Card dimmed when out of stock */
.client-product-card--out-of-stock {
    opacity: 0.65;
}

.client-product-card--out-of-stock .client-product-card__add {
    background: var(--border) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* PDP Urgency & Scarcity Glassmorphism Box */
.pdp-urgency-box {
    margin: 16px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.55) 0%, rgba(254, 215, 170, 0.45) 100%);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.08);
}

.pdp-urgency-box--out {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(226, 232, 240, 0.6) 100%);
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.pdp-urgency-title {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #78350f;
    font-weight: 700;
    margin-bottom: 8px;
    gap: 6px;
}

.pdp-urgency-title strong {
    color: #dc2626;
}

.pdp-urgency-box--out .pdp-urgency-title {
    color: #475569;
}

.pdp-urgency-bar {
    height: 6px;
    background-color: rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.pdp-urgency-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-urgency-meta {
    font-size: 11px;
    color: #9a3412;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Auto-complete suggestions styles for client portal */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}
.suggestion-item {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
    text-align: left;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: var(--surface-hover);
}
.suggestion-item .suggestion-title {
    font-weight: var(--font-semibold);
    color: var(--text);
    margin-bottom: 2px;
}
.suggestion-item .suggestion-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

