:root {
    --primary: #e8521a;
    --primary-light: #ff7043;
    --primary-dark: #c0390d;
    --primary-glow: rgba(232, 82, 26, 0.18);
    --primary-soft: #fff2ec;
    --accent: #f59e0b;
    --accent-light: #fef3c7;

    --bg: #f7f3ef;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --surface: #fdf8f5;

    --text-primary: #1a1410;
    --text-secondary: #5c4a3a;
    --text-muted: #9b8575;
    --text-on-primary: #ffffff;

    --success: #16a34a;
    --success-soft: #dcfce7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;

    --border: #e8ddd4;
    --border-focus: var(--primary);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 16px rgba(232, 82, 26, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font-display: 'Sora', 'Noto Sans Bengali', sans-serif;
    --font-body: 'Noto Sans Bengali', 'Sora', sans-serif;

    --nav-height: 64px;
    --header-height: 56px;

    /* Legacy compat */
    --primary-color: var(--primary);
    --secondary-color: #ffccbc;
    --bg-color: var(--bg);
    --card-bg: var(--primary-soft);
    --shadow: var(--shadow-sm);
    --border-radius: var(--radius-md);
    --text-color: var(--text-primary);
    --muted-color: var(--text-muted);
    --success-color: var(--success);
    --danger-color: var(--danger);
}

/* ───────────────── Reset & Base ───────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.55;
    padding-bottom: calc(var(--nav-height) + 24px);
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────────
   APP HEADER
───────────────────────────────────────────────── */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--primary);
    z-index: 200;
    box-shadow: 0 2px 12px rgba(232, 82, 26, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 680px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.header-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-store-name {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.header-tagline {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-call-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.15em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    animation: callPulse 2s ease-in-out infinite;
}

.header-call-btn:active {
    transform: scale(0.93);
}

/* ─────────────────────────────────────────────────
   BOTTOM NAVIGATION
───────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-card);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    flex: 1;
    height: 100%;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    transition: color 0.2s;
    position: relative;
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.nav-icon {
    font-size: 1.45em;
}

.nav-label {
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-tab-cart .nav-icon {
    font-size: 1.55em;
}

.nav-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(2px);
    background: var(--danger, #f44336);
    color: #fff;
    font-size: 0.62em;
    font-weight: 800;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full, 999px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* ─────────────────────────────────────────────────
   PROMO BANNER
───────────────────────────────────────────────── */
#promoBanner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e0d4c8;
    height: 200px;
    transition: height 0.3s ease;
    z-index: 100;
}

@media (max-width: 600px) {
    #promoBanner:not(.custom-mode) {
        min-height: 30vw;
    }
}

#promoBanner.hidden {
    display: none;
}

#promoBanner.custom-mode {
    background: transparent;
    height: auto;
    overflow: visible;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--anim-speed, 1s) ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    z-index: 1;
}

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

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .banner-slide img {
        object-fit: contain;
        background: #111;
    }
}

.banner-slide p {
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.15em;
    box-shadow: var(--shadow-md);
    z-index: 10;
    color: var(--text-primary);
}

/* ─────────────────────────────────────────────────
   SECTION BASE
───────────────────────────────────────────────── */
.section {
    display: none;
    animation: fadeUp 0.3s ease-out;
}

.section.show {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 16px 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.title-bn {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--text-secondary);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* ─────────────────────────────────────────────────
   PROFILE CARDS
───────────────────────────────────────────────── */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    border: 1px solid var(--border);

}

.cart-card {
    border-top: 3px solid var(--primary);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 14px;

}

/* ─────────────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.field-label {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.label-bn {
    font-size: 0.95em;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    margin: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%239b8575' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 36px;
}

/* ─────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────── */
.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    font-family: var(--font-body);
    width: 100%;
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
    box-shadow: var(--shadow-primary);
    letter-spacing: 0.01em;
}

.action:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(232, 82, 26, 0.35);
}

.action:active {
    transform: scale(0.975);
}

.action-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    box-shadow: none;
}

.action-outline:hover {
    background: var(--primary-soft);
    box-shadow: none;
}

.action.small {
    padding: 7px 12px;
    font-size: 0.85em;
    width: auto;
    border-radius: var(--radius-sm);
}

.checkout-btn {
    font-size: 1.05em;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.02em;
}

.add-all-fav-btn {
    margin-bottom: 18px;
    font-size: 1em;
    padding: 13px 20px;
}

/* ─────────────────────────────────────────────────
   CART ELEMENTS
───────────────────────────────────────────────── */
.cart-total-block {
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 14px 0;
    border: 1px solid #fdd5c2;
}

.cart-total-text {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15em;
    color: var(--primary-dark);
    font-weight: 700;
}

.min-order-warning {
    color: var(--danger);
    font-size: 0.88em;
    font-weight: 600;
    margin: 6px 0 0;
}

.cart-calc-row {
    margin: 4px 0;
}

.cart-calc-expr {
    font-size: 0.92em;
    color: var(--text-secondary);
}

.cart-calc-price {
    font-weight: 700;
    color: var(--primary-dark);
}

/* ─────────────────────────────────────────────────
   HELP BLOCK
───────────────────────────────────────────────── */
.help-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #7c3aed11, #7c3aed06);
    border: 1px solid #ddd4f8;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 14px;
}

.help-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-title {
    font-weight: 600;
    font-size: 0.9em;
    color: #5b21b6;
}

.help-bn {
    font-size: 0.8em;
    color: #7c3aed;
}

.help-call-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    border: none;
    font-size: 1.4em;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: callPulse 1.8s ease-in-out infinite;
}

.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    padding: 13px;
    /* box-shadow: var(--shadow-sm); */
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    /* transition: box-shadow 0.2s, transform 0.2s; */
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.product-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: var(--surface);
}

.product-info h4 {
    font-size: 1em;
    font-weight: 700;
    margin: 5px 0;
    color: var(--text-primary);
}

.product-info .price-section {
    margin: 8px 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.88em;
    margin-right: 5px;
}

.discounted-price {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.1em;
}

.saved-amount {
    display: block;
    color: var(--success);
    font-size: 0.78em;
    font-weight: 700;
    background: var(--success-soft);
    display: inline-block;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    margin-top: 3px;
}

/* ─────────────────────────────────────────────────
   BADGES & OVERLAYS
───────────────────────────────────────────────── */
.fav-btn {
    position: absolute;
    top: 20px;
    right: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
    z-index: 5;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.fav-btn:active {
    transform: scale(0.88);
}

.cart-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success);
    color: #fff;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.72em;
    font-weight: 700;
    z-index: 5;
    box-shadow: var(--shadow-xs);
}

.cart-icon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--success);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 3px 6px;
    font-size: 0.65em;
    font-weight: 700;
    min-width: 20px;
    max-width: 80px;
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    text-overflow: ellipsis;
}

.discount-badge {
    position: absolute;
    bottom: 10px;
    left: 5px;
    background: var(--danger);
    color: #fff;
    padding: 3px 9px;
    font-weight: 700;
    font-size: 0.72em;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    border-radius: var(--radius-lg);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────
   SHOP LAYOUT & SIDEBAR
───────────────────────────────────────────────── */
#shopSection {
    padding: 0 !important;
}

#shopSection.show {
    display: block;
    animation: fadeUp 0.3s ease-out;
    padding: 0;
}

#productSection {
    padding: 0 !important;
}

#productSection.show {
    display: block;
    animation: fadeUp 0.3s ease-out;
    padding: 0;
}

.shop-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
}

/* Sidebar */
.shop-cat-sidebar {
    width: 0;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 76px;
    /* Adjusted to sit under header + sticky category strip */
    height: calc(100vh - 76px);
    /* Adjusted to prevent bottom overflow */
    align-self: flex-start;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
    opacity: 0;
    overflow-y: hidden;
    scroll-behavior: smooth;
    z-index: 10;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-cat-sidebar.sidebar-visible {
    width: 88px;
    opacity: 1;
    overflow-y: auto;
}

.shop-cat-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 11px 4px 9px;
    cursor: pointer;
    border-bottom: 1px solid #f0e8e0;
    text-align: center;
    gap: 5px;
    position: relative;
    transition: background 0.2s;
    opacity: 0;
    transform: translateX(-8px);
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item {
    animation: sidebarItemIn 0.3s ease forwards;
}

@keyframes sidebarItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(1) {
    animation-delay: 0.04s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(2) {
    animation-delay: 0.08s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(3) {
    animation-delay: 0.12s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(4) {
    animation-delay: 0.16s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(5) {
    animation-delay: 0.20s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(6) {
    animation-delay: 0.24s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(7) {
    animation-delay: 0.28s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(8) {
    animation-delay: 0.32s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(9) {
    animation-delay: 0.36s;
}

.shop-cat-sidebar.sidebar-visible .sidebar-cat-item:nth-child(10) {
    animation-delay: 0.40s;
}

.sidebar-cat-item:active {
    transform: scale(0.94);
}

.sidebar-cat-item.active {
    background: var(--primary-soft);
}

.sidebar-cat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-cat-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--surface);
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.sidebar-cat-item.active .sidebar-cat-img {
    border-color: var(--primary);
}

.sidebar-cat-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc80, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.sidebar-cat-item.active .sidebar-cat-placeholder {
    border-color: var(--primary);
}

.sidebar-cat-name {
    font-size: 0.59em;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.2;
    word-break: break-word;
    max-width: 74px;
}

.sidebar-cat-item.active .sidebar-cat-name {
    color: var(--primary);
}

.sidebar-subcat-drawer {
    background: #fff9f5;
    border-top: 1px dashed #ffd4b8;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.sidebar-subcat-drawer.open {
    max-height: 600px;
}

.sidebar-subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    font-size: 0.58em;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #fce8d8;
    transition: background 0.15s;
    line-height: 1.3;
    gap: 5px;
    position: relative;
}

.sidebar-subcat-item:hover,
.sidebar-subcat-item:active {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-subcat-item.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.sidebar-subcat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-subcat-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--surface);
    border: 1.5px solid var(--border);
    transition: border-color 0.2s;
    padding: 3px;
}

.sidebar-subcat-item.active .sidebar-subcat-img {
    border-color: var(--primary);
}

.sidebar-subcat-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffcc80, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
}

.sidebar-subcat-name {
    font-size: 1em;
    font-weight: 700;
    color: inherit;
    line-height: 1.25;
    word-break: break-word;
    max-width: 74px;
}

.sidebar-all-subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    font-size: 0.6em;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    border-bottom: 2px dashed #ffd4b8;
    transition: background 0.15s;
    gap: 5px;
    background: var(--primary-soft);
}

.sidebar-all-subcat-item.active {
    background: #ffe8d6;
}

.sidebar-doubletap-hint {
    font-size: 0.52em;
    color: #ccc;
    line-height: 1;
}

/* ─────────────────────────────────────────────────
   SHOP MAIN CONTENT
───────────────────────────────────────────────── */
.shop-main-content {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-header-block {
    padding: 14px 16px 6px;
}

.search-block {
    padding: 0 16px 10px;
}

.search-field-group {
    margin-bottom: 12px;
}

.shop-main-content h3 {
    margin-top: 10px;
    margin-bottom: 4px;
}

.search-input-wrap {
    position: relative;
}

.search-icon-inner {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    pointer-events: none;
    z-index: 1;
}

.search-with-icon {
    padding-left: 36px !important;
}

/* ─────────────────────────────────────────────────
   CATEGORY SEARCH
───────────────────────────────────────────────── */
.cat-search-wrap {
    position: relative;
    margin-bottom: 4px;
}

.cat-search-wrap input {
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin: 0;
}

.cat-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid #ffd4b8;
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    max-height: 260px;
    overflow-y: auto;
}

.cat-search-results.open {
    display: block;
}

.cat-result-item {
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.15s;
}

.cat-result-item:hover,
.cat-result-item:active {
    background: var(--primary-soft);
}

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

.cat-result-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.88em;
}

.cat-result-name {
    font-size: 0.95em;
    color: var(--text-primary);
}

.cat-result-count {
    font-size: 0.78em;
    color: var(--text-muted);
}

.cat-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 0.82em;
    font-weight: 700;
    margin: 6px 0 4px;
    cursor: pointer;
}

.cat-active-badge::after {
    content: " ✕";
    opacity: 0.75;
}

/* ══════════════════════════════════════════════
           CATEGORY BROWSE — Blinkit-style Grid Layout
        ══════════════════════════════════════════════ */

/* Wrapper */
.cat-browse-wrap {
    margin: 10px 0 6px;
}

/* One category block */
.cat-section-block {
    margin-bottom: 24px;
}

/* Bold category heading */
.cat-section-heading {
    font-family: var(--font-display);
    font-size: 1.08em;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, var(--primary-soft) 0%, transparent 80%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.cat-section-heading:hover {
    background: linear-gradient(90deg, #fde0cf 0%, transparent 80%);
}

/* 4-column subcategory grid */
.cat-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Each subcategory tile */
.cat-subcat-tile {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.cat-subcat-tile:active {
    transform: scale(0.94);
}

.cat-subcat-tile.active {
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
    background: var(--primary-soft);
}

/* Image wrapper — square */
.cat-tile-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-tile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-tile-placeholder {
    font-size: 1.8em;
    color: var(--primary);
    opacity: 0.65;
}

/* Subcategory name label */
.cat-tile-name {
    font-size: 0.6em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    padding: 5px 4px 6px;
    text-align: center;
    word-break: break-word;
    width: 100%;
}

/* ══════════════════════════════════════════════
           CATEGORY BROWSE — Step 1: uniform grid of ALL categories
           (every tile the same size, name + image only)
        ══════════════════════════════════════════════ */
.cat-uniform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 10px 0 6px;
}

.cat-uniform-tile {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.12s, box-shadow 0.15s;
}

.cat-uniform-tile:active {
    transform: scale(0.97);
}

.cat-uniform-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-uniform-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-uniform-ph {
    font-size: 2.4em;
    color: var(--primary);
    opacity: 0.65;
}

.cat-uniform-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.92em;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.25;
    padding: 10px 8px;
    word-break: break-word;
    background: linear-gradient(180deg, transparent, var(--primary-soft) 140%);
}

/* ══════════════════════════════════════════════
           CATEGORY BROWSE — Step 2: sub-categories of a selected category
        ══════════════════════════════════════════════ */
.cat-back-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
}

.cat-back-btn {
    flex: 0 0 auto;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
}

.cat-back-btn:active {
    transform: scale(0.96);
}

.cat-back-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1em;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-viewall-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(90deg, var(--primary-soft), transparent);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 0.85em;
    color: var(--primary-dark);
    cursor: pointer;
}

.cat-viewall-tile:active {
    transform: scale(0.98);
}

.cat-viewall-arrow {
    font-size: 1.1em;
    flex: 0 0 auto;
}

.cat-subcat-only-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cat-tile-bn {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9em;
}

.cat-empty-msg {
    padding: 30px 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Horizontal category strip (always-visible under search) */
.cat-hstrip {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 14px;
}

.cat-hstrip::-webkit-scrollbar {
    display: none;
}

.cat-hstrip-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 6px 8px 5px;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    min-width: 60px;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.cat-hstrip-chip:active {
    transform: scale(0.94);
}

.cat-hstrip-chip.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.cat-hstrip-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
    border: 1.5px solid var(--border);
}

.cat-hstrip-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.cat-hstrip-name {
    font-size: 0.58em;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-hstrip-chip.active .cat-hstrip-name {
    color: var(--primary);
}

/* Legacy kept for compatibility */
.cat-quick-name {
    font-size: 0.69em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

/* ─────────────────────────────────────────────────
   CATEGORY GRID
───────────────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────
   BLINKIT-STYLE CATEGORY BROWSE
───────────────────────────────────────────────── */
.cat-grid-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    text-align: center;
}

.cat-grid-item:active {
    transform: scale(0.95);
}

.cat-grid-item.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.cat-grid-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--surface);
    margin-bottom: 6px;
    border: 2px solid var(--border);
}

.cat-grid-img-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc80, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin-bottom: 6px;
}

.cat-grid-name {
    font-size: 0.69em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

.cat-grid-other .cat-grid-img-placeholder,
.cat-grid-other-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    font-size: 1.05em !important;
    font-weight: 700;
}

.cat-grid-other {
    border: 2px dashed var(--primary) !important;
    background: #fff9f5 !important;
}

.cat-grid-toggle {
    background: transparent;
    text-align: center;
    margin: 4px 0 10px;
}

.cat-grid-toggle button {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-full);
    padding: 5px 18px;
    font-size: 0.83em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.cat-grid-toggle button:hover {
    background: var(--primary-soft);
}

/* ─────────────────────────────────────────────────
   SHOP CLOSED MESSAGE
───────────────────────────────────────────────── */
.shop-closed-msg {
    text-align: center;
    padding: 48px 24px;
    background: var(--danger-soft);
    border-radius: var(--radius-xl);
    margin: 16px;
    border: 2px dashed var(--danger);
    box-shadow: var(--shadow-sm);
}

.closed-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.closed-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.closed-sub {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.closed-bn {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────
   FLOATING BUTTONS
───────────────────────────────────────────────── */
#floatingBtnCluster {
    position: fixed;
    bottom: 100px;
    left: 0;
    right: 0;
    width: 38px;
    height: 38px;
    margin: 0 auto;
    display: none;
    z-index: 400;
}

#fixedCartBtn {
    position: fixed;
    bottom: 150px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.4em;
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    animation: cartAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        cartPulse 2s ease-in-out 0.4s infinite;
}

@keyframes cartAppear {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cartPulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(232, 82, 26, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(232, 82, 26, 0.75);
    }
}

/* goTopBtn / goBottomBtn are stacked absolutely on top of each other inside
   the fixed-size cluster so only one ever occupies layout space — this lets
   opacity/transform transitions play smoothly with no jump or shift. */
#goTopBtn,
#goBottomBtn {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
    width: 38px;
    height: 38px;
    background: rgba(232, 82, 26, 0.88);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95em;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: scale(0.5) translateY(8px);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.2s;
}

#goTopBtn.scroll-btn-visible,
#goBottomBtn.scroll-btn-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

#goTopBtn:hover,
#goBottomBtn:hover {
    background: var(--primary-dark);
}

/* ─────────────────────────────────────────────────
   CALL BUTTON (legacy #fixedCallBtn inside orders-header)
───────────────────────────────────────────────── */
#fixedCallBtn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    border: none;
    font-size: 1.4em;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    animation: callPulse 1.8s ease-in-out infinite;
}

@keyframes callPulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(124, 58, 237, 0.75);
    }
}

/* The header version */
.header-call-btn {
    display: none;
}

/* ─────────────────────────────────────────────────
   PER-KG CARDS
──────��────────────────────────────────────────── */
.pkg-card-collapsed {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.pkg-card-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
}

.pkg-card-img-wrap {
    width: 76px;
    height: 76px;
    position: relative;
    flex-shrink: 0;
}

.pkg-card-img-wrap img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin: 0;
    border-radius: var(--radius-md);
    background: var(--surface);
}

.pkg-card-info {
    flex: 1;
    min-width: 0;
}

.pkg-card-name {
    font-weight: 700;
    font-size: 1em;
    color: var(--text-primary);
}

.pkg-card-name-bn {
    font-size: 0.88em;
    color: var(--text-secondary);
}

.pkg-card-cat {
    font-size: 0.72em;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
}

.pkg-card-expanded {
    padding: 0;
    overflow: hidden;
}

.pkg-expanded-img-wrap {
    background: var(--surface);
    padding: 14px;
    text-align: center;
    height: 130px;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-expanded-img-wrap img {
    /* Fixed width AND height (not width:auto) so the card doesn't jump
       big/small every time it's re-rendered (tapping +/-, Add, expand/
       collapse all rebuild this <img> node from scratch). */
    width: 130px;
    height: 130px;
    object-fit: contain;
    display: block;
}

.pkg-expanded-body {
    padding: 14px;
    background: var(--surface);
}

.pkg-cat-label {
    font-size: 0.78em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.pkg-weight-row {
    background: var(--bg-card);
    border: 1.5px solid #fddcc8;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
}

.pkg-weight-label-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pkg-weight-price {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.05em;
}

.pkg-pieces {
    font-size: 0.82em;
    color: var(--text-muted);
    font-weight: normal;
}

.pkg-weight-controls-large {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 6px;
}

.pkg-qty-input-lg {
    width: 100%;
    min-width: 0;
    height: 40px;
    text-align: center;
    font-size: 1em;
    font-weight: 700;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0 4px;
    margin: 0;
}

.pkg-weight-total-lg {
    grid-column: 1 / 4;
    grid-row: 2;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.92em;
    text-align: center;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    padding: 5px 4px;
}

.pkg-add-btn-lg {
    grid-column: 1 / 4;
    grid-row: 3;
    background: var(--primary) !important;
    width: 100%;
    height: 42px;
    font-weight: 700 !important;
    font-size: 0.88em;
    padding: 0 8px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.pkg-minus-lg,
.pkg-plus-lg {
    width: 42px !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 1.25em !important;
    font-weight: 700 !important;
    min-width: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-collapse-btn {
    width: 100%;
    padding: 10px;
    background: var(--danger);
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: background 0.2s;
}

.pkg-collapse-btn:hover {
    background: #b91c1c;
}

.pkg-total-cart-summary {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--success-soft);
    border: 1.5px solid #86efac;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: #15803d;
    font-size: 0.95em;
    text-align: center;
}

/* ─────────────────────────────────────────────────
   QTY CONTROLS
───────────────────────────────────────────────── */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 9px;
    width: 100%;
}

.qty-controls .action.small {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-controls input[type="number"] {
    text-align: center;
}

.customer-buttons {
    width: 100%;
    margin-top: 8px;
}

.customer-buttons .action {
    display: block;
    width: 100%;
    font-size: 0.88em;
    padding: 10px 6px;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-total-display {
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1.5px solid #fddcc8;
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    margin: 6px 0;
    font-size: 0.88em;
    word-break: break-all;
}

/* --- NEW SUBCATEGORY GRID DESIGN --- */
#subCatContainer {
    /* Replace the old flex/scroll properties with a Grid */
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    /* Forces 4 items per row */
    gap: 15px 10px;
    padding: 15px;
    justify-items: center;
    align-items: start;
    background: #fff;
    overflow: hidden;
    /* Stops horizontal scrolling */
}

.sub-cat-pill {
    /* Completely rewrite the item style */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    /* Remove old pill background */
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 8px;
    width: 100%;
}

/* The new circular image */
.sub-cat-pill img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

/* Active State (Highlighted) */
.sub-cat-pill.active img {
    border-color: var(--primary);
    /* Puts your orange theme color around the active image */
}

/* The text below the image */
.sub-cat-pill span {
    font-size: 0.75rem;
    color: #333;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    /* Allows long words to wrap */
}

/* ─────────────────────────────────────────────────
   RECENT ORDERS
───────────────────────────────────────────────── */
.category-list-item {
    background: var(--bg-card);
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}

.category-header {
    padding: 12px 14px;
    background: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-weight: 600;
}

.category-content {
    display: none;
    padding: 10px;
}

.category-content.expanded {
    display: block;
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--bg);
}

.order-details-container {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-out;
}

.order-details-container.expanded {
    max-height: none;
}

.order-toggle-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 10px 0;
    display: block;
    width: 100%;
    text-align: center;
}

.order-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

/* ─────────────────────────────────────────────────
   IMAGE MODAL
───────────────────────────────────────────────── */
.order-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

/* ─────────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.7;
}

.empty-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────
   HIDDEN PRODUCTS FADE
───────────────────────────────────────────────── */
.hidden-products {
    /* Card count is already limited by JS (PRODUCTS_TO_SHOW), so no
       max-height crop here — that was cutting the last card off mid-way. */
    position: relative;
}

/* fade-out overlay removed — no blur/gradient on hidden product list */

/* ─────────────────────────────────────────────────
   MISC UTILITY
───────────────────────────────────────────────── */
.muted {
    color: var(--text-muted);
    font-size: 0.88em;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.row {
    display: flex;
    gap: 10px;
}

.col {
    flex: 1;
}

/* Loading spinner (legacy) */
.loading-btn {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Nav button ID selectors — ensure they work with JS that checks IDs */
#profileNavBtn,
#shopNavBtn,
#favNavBtn {
    /* Handled by .nav-tab */
}

/* ─────────────────────────────────────────────────
   BANNER — SWIPE, DOTS & ARROWS
───────────────────────────────────────────────── */

/* Prevent text selection while dragging */
#promoBanner {
    user-select: none;
    -webkit-user-select: none;
}

/* Dot indicators */
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 20;
    padding: 4px 9px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.25s, border-radius 0.25s, transform 0.2s;
    flex-shrink: 0;
}

.banner-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

.banner-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.25);
}

/* Arrow buttons */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.30);
    color: #fff;
    font-size: 1.55em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
    padding: 0;
    opacity: 0;
}

/* Show on hover (desktop) */
#promoBanner:hover .banner-arrow {
    opacity: 1;
}

/* Always visible on touch/mobile */
@media (hover: none) {
    .banner-arrow {
        opacity: 0.65;
    }
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.banner-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.banner-arrow-prev {
    left: 10px;
}

.banner-arrow-next {
    right: 10px;
}

/* ─────────────────────────────────────────────────
   FIRST-TIME LOGIN OVERLAY
───────────────────────────────────────────────── */
#firstTimeLoginOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: url('logo.png') center/cover no-repeat;
    overflow-y: auto;
    padding: 20px 16px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#firstTimeLoginOverlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, rgba(180, 30, 0, 0.82) 0%, rgba(232, 82, 26, 0.75) 50%, rgba(0, 0, 0, 0.70) 100%);
    z-index: 0;
}

#firstTimeLoginOverlay>* {
    position: relative;
    z-index: 1;
}

#firstTimeLoginOverlay.show {
    display: flex;
}

.ftl-store-header {
    text-align: center;
    margin-bottom: 18px;
    width: 100%;
}

.ftl-store-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ftl-store-name {
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.ftl-store-tagline {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.ftl-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    padding: 26px 24px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.ftl-logo-row {
    text-align: center;
    margin-bottom: 16px;
}

.ftl-logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 16px rgba(232, 82, 26, 0.25);
    margin-bottom: 8px;
}

.ftl-title {
    font-family: var(--font-display);
    font-size: 1.15em;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 4px;
}

.ftl-sub {
    font-size: 0.85em;
    color: var(--text-muted);
    margin: 0;
}

.ftl-label {
    display: block;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 12px 0 4px;
}

.ftl-input {
    width: 100%;
    padding: 12px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text-primary);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ftl-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #fff;
}

.ftl-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1em;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: background 0.2s, transform 0.1s;
}

.ftl-btn:active {
    transform: scale(0.98);
}

.ftl-error {
    color: var(--danger);
    font-size: 0.85em;
    margin: 8px 0 0;
    display: none;
}

.ftl-notice {
    color: #1565c0;
    background: #e8f2ff;
    border: 1px solid #bcdcff;
    border-radius: var(--radius-sm);
    font-size: 0.78em;
    line-height: 1.5;
    padding: 9px 11px;
    margin: 14px 0 0;
}

.ftl-loc-btn {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    background: #fff;
    color: #1565c0;
    border: 1.5px solid #1565c0;
    border-radius: var(--radius-md);
    font-size: 0.92em;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.ftl-loc-btn:active {
    transform: scale(0.98);
}

.ftl-loc-btn.ftl-loc-ok {
    background: #e8f7ee;
    border-color: #2e7d32;
    color: #2e7d32;
}

.ftl-loc-btn.ftl-loc-fail {
    background: #fdecea;
    border-color: var(--danger);
    color: var(--danger);
}

.ftl-loc-status {
    color: #777;
    font-size: 0.78em;
    line-height: 1.5;
    margin: 6px 0 0;
}

.ftl-loc-status.ftl-loc-status-ok {
    color: #2e7d32;
    font-weight: 600;
}

.ftl-loc-status.ftl-loc-status-fail {
    color: var(--danger);
    font-weight: 600;
}

.ftl-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    cursor: pointer;
    user-select: none;
}

.ftl-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #1565c0;
    cursor: pointer;
}

.ftl-consent span {
    color: #1565c0;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.4;
}

.ftl-consent.ftl-shake {
    animation: ftlConsentShake 0.4s;
}

@keyframes ftlConsentShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}



/* ─────────────────────────────────────────���───────
   STICKY HORIZONTAL CATEGORY STRIP
───────────────────────────────────────────────── */
/* Bottom-anchored promotional slide bar (sits above bottom nav) */
#stickyCatStrip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--nav-height);
    z-index: 120;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: none;
}

#stickyCatStrip.strip-visible {
    display: block;
}

.sticky-cat-list {
    display: flex;
    gap: 8px;
    background-color: #ff7043;
    overflow: hidden;
    padding: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    will-change: transform;
}

.sticky-cat-list::-webkit-scrollbar {
    display: none;
}

.sticky-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 6px 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    min-width: 64px;
    text-align: center;
}

.sticky-cat-chip.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.sticky-cat-chip-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
    border: 1.5px solid var(--border);
}

.sticky-cat-chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.sticky-cat-chip-name {
    font-size: 0.65em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticky-cat-all-chip {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sticky-cat-all-chip .sticky-cat-chip-name {
    color: #fff;
}

/* ─────────────────────────────────────────────────
   SIDEBAR — ONLY SELECTED CAT'S SUB-CATS
───────────────────────────────────────────────── */
.sidebar-subcat-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    border-radius: var(--radius-sm);
    margin: 2px 4px;
}

.sidebar-subcat-item:active {
    background: var(--primary-soft);
}

.sidebar-subcat-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-all-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────
   COUPON SECTION
───────────────────────────────────────────────── */
.coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.coupon-row input {
    flex: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.coupon-apply-btn {
    padding: 11px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.coupon-apply-btn:hover {
    background: var(--primary-dark);
}

.coupon-remove-btn {
    padding: 5px 12px;
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82em;
    cursor: pointer;
    font-family: var(--font-body);
}

.coupon-success {
    color: var(--success);
    font-size: 0.9em;
    font-weight: 600;
}

.coupon-error {
    color: var(--danger);
    font-size: 0.9em;
    font-weight: 600;
}

.coupon-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--success-soft);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-top: 8px;
    border: 1px solid #86efac;
}

/* Sort bar */
.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px 8px;
}

.product-list-title {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--text-secondary);
}

.sort-select {
    width: auto !important;
    padding: 6px 28px 6px 10px !important;
    font-size: 0.8em !important;
    border-radius: var(--radius-full) !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    background-color: var(--primary-soft) !important;
    font-weight: 700 !important;
    cursor: pointer;
    margin: 0 !important;
}

/* Buy Again button */
.buy-again-btn {
    background: linear-gradient(135deg, #9668e6, #5b21b6);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.buy-again-btn:hover {
    background: linear-gradient(135deg, #7641cc, #4c1d95) !important;
}

/* ─────────────────────────────────────────────────
   HOME SECTION
───────────────────────────────────────────────── */
/* Global promo banner — sits below fixed header, above all sections */
.global-promo-banner {
    width: 100%;
}

/* Shop Status Colors */
#homeShopStatusPill {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8em;
    font-weight: 700;
    color: white;
    /* Text color */
}

/* Green background when shop is open */
#homeShopStatusPill:not(.closed) {
    background-color: rgb(18, 204, 18);
    /* Uses your existing green #16a34a */
}

/* Red background when shop is closed */
#homeShopStatusPill.closed {
    background-color: var(--danger);
    /* Uses your existing red #dc2626 */
}

#homeSection {
    padding-top: 0;
}

.home-banner-wrap {
    position: relative;
}

/* Greeting strip */
.home-greeting {
    background-color: #ff7043;
    height: 90px;
    color: #fff;
    padding: 14px 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-greeting-text h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
}

.home-greeting-text h4 {
    position: absolute;
    top: 220px;
}

.home-greeting-text p {
    margin: 2px 0 0;
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.85);
}

.home-shop-now-btn {
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 7px 16px;
    font-size: 0.82em;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.home-shop-now-btn:active {
    background: rgba(255, 255, 255, 0.35);
}

/* Offers section */
.home-offers-section {
    padding: 14px 0 10px;
    background: var(--bg);
}

.home-offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
}

.home-offers-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.offers-live-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.62em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

/* ── Offer Carousel ── */
.home-offers-scroll {
    position: relative;
    overflow: hidden;
    padding: 2px 0 14px;
}

.offers-track {
    display: flex;
    height: 250px;
    gap: 14px;
    padding: 0 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.offer-card {
    flex-shrink: 0;
    width: calc(75vw);
    max-width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 128px;
}

@media (min-width: 480px) {
    .offer-card {
        width: 260px;
    }
}

.offer-card:active {
    transform: scale(0.96);
}

/* Carousel dots */
.offers-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 0;
}

.offers-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
}

.offers-dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

.offer-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.offer-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.offer-card-content {
    position: relative;
    z-index: 1;
    padding: 14px 14px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 0.62em;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    width: fit-content;
    text-transform: uppercase;
}

.offer-card-emoji {
    font-size: 2em;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}

.offer-card-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    margin: 0 0 3px;
}

.offer-card-subtitle {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 0 0 10px;
}

.offer-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1410;
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.75em;
    font-weight: 700;
    width: fit-content;
}

.home-no-offers {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Quick nav tiles on home */
.home-quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 16px 16px;
}

.home-quick-tile {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    box-shadow: var(--shadow-xs);
}

.home-quick-tile:active {
    transform: scale(0.94);
    background: var(--primary-soft);
}

.home-quick-tile-icon {
    font-size: 1.8em;
    line-height: 1;
}

.home-quick-tile-label {
    font-size: 0.72em;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

/* ── Top Banner Image ── */
.top {
    width: 100%;
    height: 200px;
    overflow: hidden;
    line-height: 0;
}

.top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: inline;
}

/* ─────────────────────────────────────────────────
           HOME GREETING V2 — Welcome + Time + Status + Sign out
        ───────────────────────────────────────────────── */
.home-greeting-v2 {
    flex-direction: column;
    padding: 16px 18px 14px;
    gap: 8px;
}

.home-greeting-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.home-greeting-v2 .home-greeting-text h2 {
    font-size: 1.15em;
    margin-bottom: 4px;
}

.home-greeting-v2 .home-greeting-text p {
    margin: 2px 0 0;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.92);
}

.home-greeting-tagline {
    font-weight: 400;
    opacity: 0.85;
}

.home-greeting-status {
    position: absolute;
    right: 100px;
    top: 250px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px !important;
}

.home-shop-status-pill {
    position: absolute;
    right: 30px;
    top: 250px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px !important;
    background: var(--success);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    font-size: 0.78em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.home-shop-status-pill.closed {
    background: var(--danger);
    border-color: rgba(255, 255, 255, 0.4);
}

.home-signout-btn {
    background: var(--danger);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 7px 14px;
    font-size: 0.78em;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.home-signout-btn:active {
    background: var(--primary-dark);
}

/* ─────────────────────────────────────────────────
           HOME ADVERTISED PRODUCTS
        ───────────────────────────────────────────────── */
.home-advertised-section {
    padding: 14px 0 10px;
    background: var(--bg);
}

.home-advertised-header {
    padding: 0 16px 10px;
}

.home-advertised-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.advertised-bn {
    font-size: 0.75em;
    font-weight: 500;
    color: var(--text-muted);
}

.home-advertised-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
}

.ad-product-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.12s, box-shadow 0.15s;
}

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

.ad-product-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--surface);
}

.ad-product-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ad-product-card-name {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--text-primary);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-product-card-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92em;
    margin-top: 2px;
}

.home-advertised-slider {
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    padding: 4px 0 8px;
}

.advertised-slider-track {
    height: 210px;
    display: flex;
    gap: 10px;
    padding: 0 16px;
    overflow: hidden;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
}

.advertised-slider-track::-webkit-scrollbar {
    display: none;
}

.advertised-slide-card {
    flex-shrink: 0;
    width: 60vw;
    max-width: 220px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

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

.advertised-slide-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    background: var(--surface);
}

.advertised-slide-body {
    padding: 8px 10px;
}

.advertised-slide-name {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--text-primary);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.advertised-slide-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85em;
}

.advertised-slide-price.disc {
    color: var(--danger);
}

.advertised-slide-orig-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.78em;
    margin-right: 2px;
}

.advertised-slide-name-bn {
    font-size: 0.78em;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.advertised-slide-container {
    font-size: 0.73em;
    color: var(--text-muted);
    margin-top: 2px;
}

.advertised-slide-price-row {
    margin-top: 4px;
}

.advertised-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 0;
}

.advertised-slider-dots .ad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s, width 0.3s;
}

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

.home-advertised-empty {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.home-help-block {
    margin: 12px 16px 18px;
}

/* ─────────────────────────────────────────────────
           FREE PRODUCT THRESHOLD CARD
        ───────────────────────────────────────────────── */
.free-product-card {
    border-left: 4px solid var(--success);
}

.free-product-status {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.free-product-status.unlocked {
    color: var(--success);
}

.free-product-progress {
    width: 100%;
    height: 8px;
    background: var(--surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border);
}

.free-product-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.4s ease;
}

.free-product-progress-bar.full {
    background: linear-gradient(90deg, var(--success), #4ade80);
}

.free-product-hint {
    font-size: 0.82em;
    color: var(--text-muted);
    margin: 8px 0 0;
}

/* ── Free product detail block ── */
.free-product-details {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border: 1.5px solid #86efac;
    border-radius: var(--radius-md);
    padding: 10px;
    margin-top: 10px;
}

.free-product-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.free-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.free-product-name {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--text-primary);
    line-height: 1.25;
}

.free-product-name-bn {
    font-size: 0.82em;
    color: var(--text-secondary);
    line-height: 1.2;
}

.free-product-meta {
    font-size: 0.78em;
    color: var(--text-secondary);
    margin-top: 1px;
}

.free-product-actual-price {
    font-size: 0.82em;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.free-product-free-tag {
    background: var(--success);
    color: #fff;
    font-size: 0.85em;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

/* ── Multi-tier free offer cards ── */
.free-tier-card {
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.4;
    border: 1.5px solid transparent;
    transition: box-shadow 0.2s;
}

.free-tier-card:last-child {
    margin-bottom: 0;
}

.free-tier-unlocked {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-color: #86efac;
    color: var(--success);
}

.free-tier-unlocked .free-tier-label {
    font-size: 1em;
    font-weight: 800;
    color: var(--success);
}

.free-tier-next {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.free-tier-next .free-tier-label {
    font-size: 1em;
    font-weight: 800;
    color: var(--primary-dark);
}

.free-tier-locked {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
    opacity: 0.75;
}

.free-tier-locked .free-tier-label {
    font-weight: 700;
}

.free-tier-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.free-tier-badge-unlocked {
    background: var(--success);
    color: #fff;
}

.free-tier-badge-next {
    background: var(--primary);
    color: #fff;
}

.free-tier-badge-locked {
    background: var(--border);
    color: var(--text-muted);
}

/* mini progress inside next-tier card */
.free-tier-mini-progress {
    width: 100%;
    height: 6px;
    background: #fdddb8;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 8px;
}

.free-tier-mini-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.cart-free-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 0.65em;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-card.cart-free-row {
    border: 2px solid var(--success);
    background: var(--success-soft);
}

/* ─────────────────────────────────────────────────
           BOTTOM SLIDE BAR — promotional ads (replaces top cat strip)
        ───────────────────────────────────────────────── */
.sticky-cat-list {
    background: var(--bg-card);
}

.promo-ad-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 200px;
    box-shadow: var(--shadow-xs);
}

.promo-ad-chip:active {
    transform: scale(0.97);
}

.promo-ad-chip-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
}

.promo-ad-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.promo-ad-chip-title {
    font-weight: 700;
    font-size: 0.78em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.promo-ad-chip-sub {
    font-size: 0.68em;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.promo-ad-chip-bn {
    font-size: 0.65em;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.promo-ad-chip-container {
    font-size: 0.63em;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* shopSection padding to make room for bottom strip */
#shopSection.has-bottom-strip {
    padding-bottom: 76px;
}

/* ═══════════════════════════════════════════
           HORIZONTAL PRODUCT CARD (Category Panel)
        ═══════════════════════════════════════════ */

.product-card.cust-hcard {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 10px;
    gap: 12px;
    min-height: 110px;
}

/* Square image on the left */
.cust-hcard-img-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    align-self: center;
}

.cust-hcard-img-wrap img {
    /* Explicit pixel dimensions prevent any layout-shift or height-override
       from the generic .product-card img rule (height:100px) during card
       re-renders triggered by favorite / cart state changes. */
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    margin: 0;
    flex-shrink: 0;
}

.cust-hcard-img-wrap .out-of-stock-overlay {
    position: absolute;
    inset: 0;
    font-size: 0.7em;
    border-radius: var(--radius-sm);
}

/* Right body: fills remaining width, stacks top info + bottom button */
.cust-hcard-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cust-hcard-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 40px;
}

.cust-hcard-name {
    font-weight: 700;
    font-size: 0.97em;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cust-hcard-name-bn {
    font-weight: 500;
    font-size: 0.88em;
    color: var(--text-secondary);
}

.cust-hcard-qty {
    font-size: 0.82em;
    color: var(--text-secondary);
    margin-top: 1px;
}

.cust-hcard-cat {
    font-size: 0.76em;
    color: var(--primary);
    font-weight: 600;
    background: rgba(232, 82, 26, 0.08);
    display: inline-block;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    margin-top: 2px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cust-hcard-price {
    margin-top: 3px;
}

.cust-hcard-price .discounted-price {
    font-size: 0.97em;
}

.cust-hcard-price .original-price {
    font-size: 0.82em;
}

/* Bottom action area */
.cust-card-bottom {
    margin-top: 6px;
}

/* Add to Cart button */
.cust-add-btn {
    width: 100%;
    padding: 7px 0;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.18s;
}

.cust-add-btn:hover {
    background: var(--primary-dark, #c0440e);
}

/* Qty +/- controls */
.cust-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
}

.cust-qty-btn {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.25em;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 0;
    transition: background 0.15s;
}

.cust-qty-minus {
    background: #ffccbc;
    color: #e65100;
}

.cust-qty-minus:hover {
    background: #ffb299;
}

.cust-qty-plus {
    background: var(--primary);
    color: #fff;
}

.cust-qty-plus:hover {
    background: var(--primary-dark, #c0440e);
}

.cust-qty-value {
    flex: 1.2;
    text-align: center;
    font-weight: 800;
    font-size: 1.05em;
    color: var(--primary);
    border-left: 1.5px solid var(--primary);
    border-right: 1.5px solid var(--primary);
    padding: 5px 0;
}

/* ─────────────────────────────────────────────────
   MODERN ANIMATIONS (LOGIN & CHECKOUT)
───────────────────────────────────────────────── */
/* Login Overlay Fade & Zoom Out */
.fade-out-zoom {
    animation: fadeOutZoomAnim 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes fadeOutZoomAnim {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.08);
        filter: blur(5px);
        visibility: hidden;
    }
}

/* Home Section Slide-Up Entry */
.slide-up-stagger {
    animation: slideUpStaggerAnim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpStaggerAnim {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Success Pop-In & Bounce */
.order-success-anim {
    animation: popInBounceAnim 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: top center;
}

.customer-order-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 800;
    vertical-align: middle;
}

.customer-status-processing {
    color: #92400e;
    background: #fef3c7;
}

.customer-status-confirmed {
    color: #166534;
    background: #dcfce7;
}

.customer-status-delivering {
    color: #5b21b6;
    background: #ede9fe;
}

.customer-status-delivered {
    color: #166534;
    background: #bbf7d0;
}

/* Item availability checklist — shown once the store has reviewed an
   order's items (see renderOrderItemsStatusHtml in script.js). */
.order-items-status {
    background: #fff;
    border: 1px solid #fde0cc;
    border-radius: var(--border-radius);
    padding: 12px 14px;
    margin: 14px 0;
    text-align: left;
}

.order-items-status-title {
    font-weight: 800;
    font-size: 0.82em;
    letter-spacing: 0.3px;
    color: var(--primary-dark);
    margin: 0 0 8px;
}

.order-item-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.88em;
    border-bottom: 1px dashed #f1e3d8;
}

.order-item-check:last-of-type {
    border-bottom: none;
}

.order-item-check.unavailable .order-item-check-name {
    text-decoration: line-through;
    color: var(--text-muted, #9ca3af);
}

.order-item-check-icon {
    flex-shrink: 0;
}

.order-revised-total {
    text-align: center;
    font-size: 1.05em;
    font-weight: 800;
    margin: 10px 0 4px;
}

.order-revised-total .revised-strike {
    text-decoration: line-through;
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
    font-size: 0.82em;
    margin-right: 6px;
}

.order-revised-note {
    text-align: center;
    color: var(--warning);
    background: #fef3c7;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78em;
    line-height: 1.4;
    margin: 6px 0 0;
}

@keyframes popInBounceAnim {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =====================================================
   COMBO CARD — Customer View
   ===================================================== */
.combo-card {
    border-left: 4px solid #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.10);
}

.combo-card-inner {
    display: flex;
    gap: 0;
}

.combo-card-img-wrap {
    width: 100px;
    height: 100px;
    min-width: 100px;
    max-width: 100px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.combo-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--surface);
}

.combo-card-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.combo-card-name {
    font-size: 1.03em;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.35;
}

.combo-price-row {
    margin: 4px 0 2px;
    font-size: 0.95em;
}

.combo-includes-label {
    font-size: 0.82em;
    font-weight: 700;
    color: #7c3aed;
    margin-top: 6px;
}

.combo-items-list {
    margin: 3px 0 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.combo-items-list li {
    font-size: 0.82em;
    color: var(--text-secondary, #555);
    display: flex;
    align-items: center;
    gap: 4px;
}

.combo-item-qty {
    background: #7c3aed;
    color: #fff;
    border-radius: 99px;
    padding: 1px 7px;
    font-size: 0.80em;
    font-weight: 700;
    margin-left: auto;
}

.combo-add-btn {
    background: linear-gradient(135deg, #7c3aed, #9d5cf6) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: opacity 0.15s;
}

.combo-add-btn:hover {
    opacity: 0.88;
}

/* ComboSection nav tab */
#comboNavBtn.active-tab {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* Combo Type 2 — "Buy & Get Extra Free" banner on product card */
.combo-extra-banner {
    margin-top: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px dashed #16a34a;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 700;
    color: #15803d;
    line-height: 1.4;
}

/* Locked free bonus item row inside the cart (comes with a Type-2 combo) */
.combo-extra-row {
    opacity: 0.97;
}


/* perPacket — no special card style needed (renders like each)
   but add a subtle badge in cart if desired */
.per-packet-badge {
    display: inline-block;
    font-size: 0.73em;
    background: #0ea5e9;
    color: #fff;
    border-radius: 99px;
    padding: 1px 8px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Combo detail section (always visible inline) ── */
.combo-detail-section {
    margin: 6px 0 4px;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1.5px solid #ddd6fe;
    border-radius: 10px;
    padding: 10px 12px;
    animation: fadeUp 0.2s ease-out;
}

.combo-detail-header {
    font-size: 0.8em;
    font-weight: 700;
    color: #6d28d9;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.combo-items-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combo-detail-item {
    background: #fff;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    padding: 7px 10px;
}

.combo-detail-name {
    font-size: 0.88em;
    font-weight: 700;
    color: #3b0764;
    margin-bottom: 3px;
}

.combo-detail-meta {
    font-size: 0.8em;
    color: #5c4a3a;
    margin-top: 2px;
}

.combo-detail-meta b {
    color: #1a1410;
}

/* ─────────────────────────────────────────────────
   APP LOADING SCREEN — shown immediately on page
   load, hidden only once init() has fully decided
   between the first-time registration overlay and
   the home panel. Keeps that decision as the single
   first thing the user ever sees.
───────────────────────────────────────────────── */
.app-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Sora', sans-serif;
    transition: opacity 0.35s ease;
}

.app-loading-screen.app-loading-hide {
    opacity: 0;
    pointer-events: none;
}

.app-loading-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(232, 82, 26, 0.18);
}

.app-loading-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #fde0cc;
    border-top-color: #e8521a;
    border-radius: 50%;
    animation: appLoadingSpin 0.8s linear infinite;
}

@keyframes appLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

.app-loading-text {
    color: #8a7b6f;
    font-size: 0.85em;
    text-align: center;
}