/* ==========================================================================
   1. GLOBAL LAYOUT CORE RESET & TYPOGRAPHY
   ========================================================================== */

/* ============================================================
   🎨 ECART COLOR THEME — Centralized Variables
   ============================================================
   Whole frontend ki color palette yahin se manage hoti hai.
   Agar koi color change karna ho to SIRF yahan update karein —
   poori website automatically update ho jayegi.

   ─ GROUPS ─
   • PRIMARY    → coral/orange brand colors (CTA, accents, links)
   • TEXT       → body / heading / muted text shades
   • SURFACE    → page / card / soft backgrounds
   • BORDER     → divider / input border shades
   • STATUS     → success / danger / warning / info
   • EFFECTS    → shadows + radii (non-color tokens)
   ============================================================ */
:root {
    /* ── PRIMARY / BRAND ── */
    --ecart-primary:           #016ec5;  /* main coral — buttons, accents, logo */
    --ecart-primary-strong:    #0159a3;  /* darker coral — hover/active states */
    --ecart-primary-soft:      #e8f2fb;  /* very light coral tint — soft bg */
    --ecart-primary-tint:      #ebf3fc;  /* light coral tint — cards/panels */
    --ecart-primary-lighter:   #b3d6f0;  /* lighter coral — borders/chips */
    --ecart-orange:            #f66a13;  /* warm orange — secondary CTAs */
    --ecart-orange-strong:     #f66a13;  /* stronger orange — checkout buttons */
    --ecart-secondary:         #f66a13;  /* peach — secondary accents */
    --ecart-secondary-light:   #f89548;  /* light peach — soft highlights */

    /* ── TEXT ── */
    --ecart-text:              #1d1d1f;  /* default body text */
    --ecart-text-dark:         #2d3748;  /* darker body text */
    --ecart-heading:           #1b2430;  /* headings */
    --ecart-deep:              #111827;  /* deepest text / dark bg */
    --ecart-text-secondary:    #86868b;  /* secondary muted text */
    --ecart-text-muted:        #4a5568;  /* muted gray text */
    --ecart-muted:             #667085;  /* standard muted */
    --ecart-gray:              #9ca3af;  /* neutral gray — disabled/placeholder */
    --ecart-gray-text:         #6c757d;  /* Bootstrap-like secondary text */

    /* ── SURFACE / BACKGROUND ── */
    --ecart-surface:           #ffffff;  /* card / panel background */
    --ecart-white:             #ffffff;  /* pure white */
    --ecart-soft-surface:      #f7f9fc;  /* soft page background */
    --ecart-bg-light:          #f8fafc;  /* light input bg */
    --ecart-bg-soft:           #f8f9fa;  /* Bootstrap-like light bg */
    --ecart-navy:              #12233f;  /* deep navy — dark sections/footer */

    /* ── BORDER ── */
    --ecart-border:            #e9edf5;  /* standard border */
    --ecart-border-light:      #edf2f7;  /* light divider */
    --ecart-border-soft:       #e2e8f0;  /* soft input border */

    /* ── STATUS ── */
    --ecart-success:           #14804a;  /* success green */
    --ecart-success-soft:      #e8f7ee;  /* success light bg */
    --ecart-danger:            #dc3545;  /* danger red */
    --ecart-danger-soft:       #e65c50;  /* soft danger red */
    --ecart-warning:           #ffc107;  /* warning amber */

    /* ── EFFECTS (non-color tokens) ── */
    --ecart-shadow:            0 18px 40px rgba(15, 23, 42, 0.08);
    --ecart-shadow-soft:       0 10px 24px rgba(1, 110, 197, 0.12);
    --ecart-radius-lg:         18px;
    --ecart-radius-md:         12px;
}
.detail-description-heading { margin-bottom: 4px; }
.product-full-description > :first-child { margin-top: 0; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--ecart-white);
    color: var(--ecart-text);
    overflow-x: clip; /* 🆕 Round-2 Bug-8: clip instead of hidden — prevents body
                         from becoming a scroll container, which would break
                         position:sticky on the search strip (especially on
                         detail.php mobile). */
}

a {
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.bg-coral {
    background-color: var(--ecart-orange) !important;
    color: var(--ecart-white) !important;
}

.text-coral {
    color: var(--ecart-primary) !important;
}

#masterGlobalHeader {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(233, 237, 245, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.brand-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--ecart-dark);
    text-transform: uppercase;
}

.brand-logo span {
    color: var(--ecart-primary);
}

.btn-action-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ecart-primary-soft);
    border: 1px solid rgba(1, 110, 197, 0.08);
    box-shadow: 0 6px 16px rgba(1, 110, 197, 0.08);
}

.btn-action-circle:hover {
    background: linear-gradient(135deg, #ffe7e3 0%, var(--ecart-primary-soft) 100%);
    color: var(--ecart-primary-strong);
    transform: translateY(-1px);
    box-shadow: var(--ecart-shadow-soft);
}

.category-pill {
    background: linear-gradient(180deg, #fefefe 0%, #f5f7fb 100%);
    border: 1px solid var(--ecart-border);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-secondary) 100%);
    color: var(--ecart-white) !important;
    border-color: transparent;
    box-shadow: var(--ecart-shadow-soft);
}

/* ==========================================================================
   2. GLOBAL HEADER & NAVBAR STYLING
   ========================================================================== */
#masterGlobalHeader {
    background-color: var(--ecart-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1050 !important;
}

.brand-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--ecart-text);
}

.brand-logo span {
    color: var(--ecart-primary);
}

/* Round Action Utility Buttons */
.btn-action-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ecart-text-muted);
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-action-circle:hover {
    background-color: var(--ecart-border-light) !important;
    color: #1a202c;
}

/* 🎯 LIVE SEARCH DROPDOWN ARCHITECTURE (INTEGRATED) */
.search-wrapper-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--ecart-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2000;
    display: none;
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 5px;
    border: 1px solid rgba(0,0,0,0.08);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--ecart-text);
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f7;
}

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

.suggestion-item:hover {
    background: #f5f5f7;
}
.suggestion-search-item { gap: 10px; }
.suggestion-search-label {
    margin-left: auto;
    color: var(--ecart-orange);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

/* Category price filters */
.category-price-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: var(--ecart-white);
    box-shadow: 0 8px 22px rgba(18,35,63,.05);
}
.category-price-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ecart-navy);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.category-price-filter-label i { color: var(--ecart-orange); }
.category-price-filter-options {
    display: grid;
    flex: 1;
    grid-template-rows: repeat(2, minmax(30px, auto));
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}
.category-price-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    flex: 0 0 auto;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    background: var(--ecart-bg-light);
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.category-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    text-align: center;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    letter-spacing: .3px;
}
.category-price-filter-btn:hover,
.category-price-filter-btn.active {
    border-color: var(--ecart-orange);
    background: var(--ecart-orange);
    color: var(--ecart-white);
    transform: translateY(-1px);
}
.category-price-filter.single-row .category-price-filter-options {
    grid-template-rows: 1fr;
    grid-auto-flow: column;
}
.detail-description-heading {
    margin: 18px 0 8px;
    color: var(--ecart-navy);
    font-size: 16px;
    font-weight: 800;
    text-transform: capitalize;
}
.detail-out-of-stock-btn {
    background: var(--ecart-gray) !important;
    cursor: not-allowed;
}

.suggestion-icon {
    width: 30px;
    text-align: center;
    color: var(--ecart-primary);
}

.suggestion-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 12px;
    border: 1px solid var(--ecart-border-light);
    background: #fdfdfd;
}

.suggestion-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.suggestion-tag {
    font-size: 10px;
    background: var(--ecart-border-light);
    color: #718096;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   3. CATEGORY SCROLL STRIP BAR
   ========================================================================== */
.premium-slim-category-strip {
    background-color: var(--ecart-white);
    border-bottom: 1px solid var(--ecart-border-light);
}

.container-category-scroll {
    display: flex;
    gap: 10px;
    width: 100%;
}

.category-pill {
    padding: 6px 16px;
    background: #f5f5f7;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ecart-text);
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-pill:hover, 
.category-pill.active {
    background: var(--ecart-primary);
    color: var(--ecart-white) !important;
}

/* ==========================================================================
   4. DRAWER SIDEBAR (MOBILE VIEW ONLY) — Attractive modern ecommerce style
   ========================================================================== */
.mobile-left-category-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--ecart-white);
    z-index: 2050;
    box-shadow: 6px 0 24px rgba(0,0,0,0.18);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-left-category-drawer.drawer-open {
    transform: translateX(320px);
}

.drawer-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2040;
    display: none;
    backdrop-filter: blur(1px);
    animation: ecartFadeIn 0.25s ease;
}
@keyframes ecartFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Drawer head (coral gradient + brand logo) */
.mobile-left-category-drawer .drawer-head {
    background: #f6e6e6;
    color: var(--ecart-white);
    padding: 18px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(1, 110, 197, 0.3);
    position: relative;
}
.mobile-left-category-drawer .drawer-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), transparent);
}
.mobile-left-category-drawer .drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-left-category-drawer .drawer-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: var(--ecart-white);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
}
.mobile-left-category-drawer .drawer-brand-logo span {
    color: #ffe2dc;
    margin-left: 1px;
}
.mobile-left-category-drawer .drawer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.mobile-left-category-drawer .drawer-brand-welcome {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.9;
    font-weight: 600;
}
.mobile-left-category-drawer .drawer-brand-name {
    font-size: 16px;
    font-weight: 800;
}
.mobile-left-category-drawer .drawer-close-btn {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgb(40 40 40);
    color: #282828;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.18s ease;
}
.mobile-left-category-drawer .drawer-close-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

/* User mini-card (logged in) / guest CTA */
.mobile-left-category-drawer .drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--ecart-primary-tint) 0%, #fff8f6 100%);
    border-bottom: 1px solid #f1f3f7;
    text-decoration: none;
    color: var(--ecart-text-dark);
    transition: background 0.18s ease;
}
.mobile-left-category-drawer .drawer-user-card:hover {
    background: linear-gradient(135deg, #ffece8 0%, var(--ecart-primary-tint) 100%);
}
.mobile-left-category-drawer .drawer-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-secondary-light) 100%);
    color: var(--ecart-white);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(1, 110, 197, 0.35);
    flex-shrink: 0;
}
.mobile-left-category-drawer .drawer-user-avatar-guest {
    background: linear-gradient(135deg, var(--ecart-gray-text) 0%, #adb5bd 100%);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}
.mobile-left-category-drawer .drawer-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.mobile-left-category-drawer .drawer-user-hello {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-left-category-drawer .drawer-user-cta {
    font-size: 11.5px;
    color: var(--ecart-primary);
    font-weight: 600;
    margin-top: 2px;
}
.mobile-left-category-drawer .drawer-guest-cta .drawer-user-cta { color: var(--ecart-gray-text); }

/* Section block */
.mobile-left-category-drawer .drawer-section {
    padding: 14px 12px 6px;
}
.mobile-left-category-drawer .drawer-section + .drawer-section {
    border-top: 1px solid #f1f3f7;
}
.mobile-left-category-drawer .drawer-section-title {
    margin: 0 0 8px;
    padding: 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ecart-gray-text);
    font-weight: 700;
}

/* Quick links */
.mobile-left-category-drawer .drawer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ecart-text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    transition: all 0.18s ease;
}
.mobile-left-category-drawer .drawer-link-item:hover,
.mobile-left-category-drawer .drawer-link-item.active {
    background: var(--ecart-primary-tint);
    color: var(--ecart-primary);
}
.mobile-left-category-drawer .drawer-link-item.active .drawer-link-icon { transform: scale(1.06); }
.mobile-left-category-drawer .drawer-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.mobile-left-category-drawer .drawer-icon-coral  { background: rgba(1, 110, 197, 0.12);  color: var(--ecart-primary); }
.mobile-left-category-drawer .drawer-icon-orange { background: rgba(255, 154, 76, 0.14);  color: #f4843b; }
.mobile-left-category-drawer .drawer-icon-blue   { background: rgba(66, 133, 244, 0.12); color: #4285f4; }
.mobile-left-category-drawer .drawer-icon-green  { background: rgba(40, 167, 69, 0.12);  color: #28a745; }
.mobile-left-category-drawer .drawer-link-text {
    flex: 1;
    min-width: 0;
}
.mobile-left-category-drawer .drawer-link-arrow {
    font-size: 11px;
    color: #cbd5e0;
    transition: transform 0.18s ease, color 0.18s ease;
}
.mobile-left-category-drawer .drawer-link-item:hover .drawer-link-arrow {
    transform: translateX(3px);
    color: var(--ecart-primary);
}
.mobile-left-category-drawer .drawer-cart-badge {
    background: var(--ecart-primary);
    color: var(--ecart-white);
    border-radius: 16px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* Category list */
.mobile-left-category-drawer .drawer-cat-list {
    padding: 0 4px;
}
.mobile-left-category-drawer .drawer-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ecart-text-muted);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 1px;
    transition: all 0.16s ease;
}
.mobile-left-category-drawer .drawer-cat-item:hover,
.mobile-left-category-drawer .drawer-cat-item.active {
    background: var(--ecart-primary-tint);
    color: var(--ecart-primary);
}
.mobile-left-category-drawer .drawer-cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28a745;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
}
.mobile-left-category-drawer .drawer-cat-item:hover .drawer-cat-dot,
.mobile-left-category-drawer .drawer-cat-item.active .drawer-cat-dot {
    background: var(--ecart-primary);
    box-shadow: 0 0 0 3px rgba(1, 110, 197, 0.18);
}
.mobile-left-category-drawer .drawer-cat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-left-category-drawer .drawer-cat-arrow {
    font-size: 10px;
    color: #cbd5e0;
    transition: transform 0.16s ease, color 0.16s ease;
}
.mobile-left-category-drawer .drawer-cat-item:hover .drawer-cat-arrow {
    transform: translateX(2px);
    color: var(--ecart-primary);
}

/* Drawer footer */
.mobile-left-category-drawer .drawer-footer {
    margin-top: auto;
    padding: 14px 16px 20px;
    border-top: 1px solid #f1f3f7;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-left-category-drawer .drawer-footer-link {
    color: var(--ecart-gray-text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.18s ease;
}
.mobile-left-category-drawer .drawer-footer-link:hover { color: var(--ecart-primary); }
.mobile-left-category-drawer .drawer-logout-link { color: var(--ecart-danger); }
.mobile-left-category-drawer .drawer-logout-link:hover { color: #b02a37; }

/* Drawer scrollbar styling */
.mobile-left-category-drawer::-webkit-scrollbar { width: 5px; }
.mobile-left-category-drawer::-webkit-scrollbar-track { background: transparent; }
.mobile-left-category-drawer::-webkit-scrollbar-thumb {
    background: var(--ecart-primary-lighter);
    border-radius: 10px;
}
.mobile-left-category-drawer::-webkit-scrollbar-thumb:hover { background: var(--ecart-primary); }

/* ==========================================================================
   5. RESPONSIVE SLIM BANNER SLIDER SYSTEM
   ========================================================================== */
.banner-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--ecart-bg-soft);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--ecart-primary);
}

/* ==========================================================================
   6. PREMIUM PRODUCT GRID CARDS (modern ecommerce FORMAT OVERHAUL)
   ========================================================================== */
.product-item-card-wrapper .card {
    background: linear-gradient(180deg, var(--ecart-white) 0%, #fffdfd 100%);
    border: 1px solid var(--ecart-border) !important;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.product-item-card-wrapper .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(26, 30, 45, 0.12) !important;
    border-color: var(--ecart-primary-lighter) !important;
}

/* Strict Image Wrapper Box */
.product-item-card-wrapper .card-img-top-box {
    position: relative;
    width: 100%;
    height: 190px;
    background-color: var(--ecart-bg-soft);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image-tabs + .main-img-frame {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}
/* BUGFIX (counter-overlap): :not(.car-counter) added so the .car-counter
   pill is NOT given 100% width/height + flex display. Previously the
   rule .main-img-frame > div:not(.car-dots) had specificity (0,2,1)
   which BEAT .main-img-frame > .car-counter (0,2,0), so the counter
   became a 100% x 100% flex container with a dark overlay covering
   the entire main image, with '1 / 3' text centered in the middle. */
.main-img-frame > div:not(.car-dots):not(.car-counter) {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-img-frame > div:not(.car-dots):not(.car-counter) > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-item-card-wrapper .card-img-top-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-item-card-wrapper .card:hover .card-img-top-box img {
    transform: scale(1.05);
}

/* 🏷️ FIXED CORNER FLOATING BADGE */
.product-item-card-wrapper .badge-discount-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ecart-primary);
    color: var(--ecart-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

/* Content Area */
.product-item-card-wrapper .card-body-custom {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-item-card-wrapper .product-main-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ecart-text);
    line-height: 1.4;
    margin-bottom: 8px;
    height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-item-card-wrapper .price-section-grid {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* 🏷️ ATTRACTIVE SELLING PRICE (bade ecommerce sites jaisa look) */
.product-item-card-wrapper .selling-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--ecart-primary);
    letter-spacing: -0.3px;
    text-shadow: 0 1px 1px rgba(1, 110, 197, 0.08);
}

.product-item-card-wrapper .mrp-slashed-price {
    font-size: 12.5px;
    color: var(--ecart-primary);
    text-decoration: line-through;
    font-weight: 500;
}

/* 💸 SAVE PRICE BADGE — jo paisa bach raha hai wo attractive green chip me */
.product-item-card-wrapper .save-off-badge,
.save-off-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ecart-success);
    background: linear-gradient(135deg, var(--ecart-success-soft) 0%, #d9f4e4 100%);
    border: 1px solid #bce8cf;
    padding: 2.5px 8px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.35;
    box-shadow: 0 1px 3px rgba(20, 128, 74, 0.12);
}

/* 🟩 SAVE PRICE STRIP — products.php card ke liye full-width green strip */
.product-item-card-wrapper .save-price-strip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ecart-success);
    background: linear-gradient(90deg, var(--ecart-success-soft) 0%, #f2fbf6 100%);
    border: 1px dashed #9fdcb9;
    border-radius: 8px;
    padding: 5px 9px;
    margin: -6px 0 10px;
    animation: savePulse 2.6s ease-in-out infinite;
}

.product-item-card-wrapper .save-price-strip .save-pct {
    background: var(--ecart-success);
    color: var(--ecart-white);
    font-size: 10px;
    font-weight: 800;
    padding: 1.5px 7px;
    border-radius: 10px;
    margin-left: auto;
}

@keyframes savePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 128, 74, 0); }
    50%      { box-shadow: 0 2px 10px 0 rgba(20, 128, 74, 0.14); }
}

.product-item-card-wrapper .cta-buy-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-secondary) 100%);
    color: var(--ecart-white);
    border: none;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 20px rgba(1, 110, 197, 0.18);
}

.product-item-card-wrapper .cta-buy-btn:hover {
    background: linear-gradient(135deg, var(--ecart-primary-strong) 0%, #ff875f 100%);
    color: var(--ecart-white);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(1, 110, 197, 0.25);
}
.product-item-card-wrapper .cta-buy-btn.out-of-stock-btn,
.product-item-card-wrapper .cta-buy-btn.out-of-stock-btn:hover,
.product-item-card-wrapper .cta-buy-btn:disabled {
    background: var(--ecart-gray) !important;
    border-color: var(--ecart-gray) !important;
    color: var(--ecart-white) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

/* 🏷️ CATEGORY SECTION HEADERS STYLING */
.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ecart-border-light);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.category-block-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ecart-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-see-more-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--ecart-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.category-see-more-btn:hover {
    color: #e55b4f;
    text-decoration: underline;
}

/* ==========================================================================
   7. CORPORATE FOOTER AREA
   ========================================================================== */
footer {
    background-color: #1a202c !important;
}

footer h5, footer h6 {
    letter-spacing: 0.5px;
}

footer a:hover {
    color: var(--ecart-primary) !important;
    padding-left: 5px;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES BREAKPOINTS
   ========================================================================== */

/* MOBILE VIEW BREAKPOINT OVERRIDES (Screens smaller than 992px) */
@media (max-width: 991.98px) {
    .container-category-scroll {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    
    .container-category-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .desktop-hq-search-wrapper {
        display: none !important;
    }
    
    #mobileSearchWrapper {
        display: block; /* Forced to display standard on mobile wrapper stack */
        background: var(--ecart-white);
        border-bottom: 1px solid var(--ecart-border-light);
    }

    /* 📱 Responsive Adjustments for Mobile Cards */
    .product-item-card-wrapper .card-img-top-box {
         height: 113px;
        padding: 0px;
        background: transparent;

    }
    
    .product-item-card-wrapper .product-main-title {
        font-size: 12px;
        height: 18px;
    }
    
    .product-item-card-wrapper .selling-price {
        font-size: 16px;
    }

    .product-item-card-wrapper .save-price-strip {
        font-size: 10.5px;
        padding: 4px 7px;
        margin: -4px 0 8px;
    }

    .product-item-card-wrapper .save-off-badge,
    .save-off-badge {
        font-size: 9.5px;
        padding: 2px 6px;
    }
    
    .product-item-card-wrapper .cta-buy-btn {
        padding: 6px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .product-item-card-wrapper .badge-discount-ribbon {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }

    .category-block-title {
        font-size: 15px;
    }

    .category-see-more-btn {
        font-size: 12px;
    }
}

/* DESKTOP VIEW BREAKPOINT OVERRIDES (Screens 992px and larger) */
@media (min-width: 992px) {
    .container-category-scroll {
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow: visible;
    }
    
    .desktop-hq-search-wrapper {
        display: block !important;
    }
    
    #mobileSearchWrapper {
        display: none !important;
    }
    
    #mobileSearchTriggerBtn {
        display: none !important;
    }
}

/* DYNAMIC HEIGHT SPECIFICATION FOR RESPONSIVE SLIDER IMAGES */
@media (min-width: 768px) {
    .banner-img {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

@media (max-width: 767.98px) {
    .banner-img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* Slim header strip and centered hero artwork. */
    #masterGlobalHeader {
        min-height: 62px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    #masterGlobalHeader .container { min-height: 50px; }
    #masterGlobalHeader .btn-action-circle { width: 38px !important; height: 38px !important; }
    #masterGlobalHeader .user-avatar-circle { width: 34px !important; height: 34px !important; }
    .banner-image-wrapper,
    .banner-image-wrapper .carousel,
    .banner-image-wrapper .carousel-inner,
    .banner-image-wrapper .carousel-item {
        width: 100%;
        text-align: center;
    }
    .banner-image-wrapper .banner-img {
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        margin: 0 auto;
        object-position: center center !important;
    }
    .banner-image-wrapper .carousel-item.active {
        display: flex !important;
        justify-content: center;
    }
    .banner-image-wrapper .carousel-item.active .banner-img {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    @media (max-width: 767.98px) {
        #masterGlobalHeader { min-height: 56px !important; }
        #masterGlobalHeader .container { min-height: 46px; }
        #masterGlobalHeader { padding-top: max(5px, env(safe-area-inset-top)) !important; }
        #mobileSearchWrapper { padding-top: 5px !important; padding-bottom: 7px !important; }
        .product-item-card-wrapper .category-page-heading {
            margin-bottom: 6px !important;
            padding-bottom: 4px !important;
        }
        .product-item-card-wrapper .category-subcategory-filter,
        .product-item-card-wrapper .category-price-filter {
            margin-bottom: 6px !important;
            padding: 7px 9px;
            border-radius: 12px;
        }
        .product-item-card-wrapper .category-subcategory-filter .category-price-filter-label,
        .product-item-card-wrapper .category-price-filter .category-price-filter-label {
            margin-bottom: 4px;
            font-size: 12px;
        }
        .product-item-card-wrapper .category-price-filter-options {
            display: flex;
            flex-wrap: nowrap;
            gap: 6px;
            overflow-x: auto;
            padding-bottom: 2px;
            -webkit-overflow-scrolling: touch;
        }
        .category-price-filter {
            display: block;
            padding: 7px 9px;
            margin-bottom: 6px !important;
        }
        .category-price-filter-label { margin-bottom: 4px; }
        .category-price-filter-options {
            display: flex;
            flex-wrap: nowrap;
            gap: 6px;
            overflow-x: auto;
            padding-bottom: 2px;
        }
        .category-price-filter.single-row .category-price-filter-options {
            display: flex;
            flex-wrap: nowrap;
        }
        .category-price-filter-btn {
            width: auto;
            min-width: 84px;
            min-height: 30px;
            padding: 4px 8px;
            white-space: nowrap;
        }
    }
}

/* Footer Visibility Override Patch */
footer .text-muted, 
footer p.text-muted, 
footer ul li a.text-muted {
    color: #cbd5e1 !important;
}
footer a:hover {
    color: var(--ecart-primary) !important;
}


/* ==========================================================================
   AUTH MODAL SYSTEM STYLING
   ========================================================================== */

/* Modal Box Enhancement */
.auth-modal-box .modal-body {
    padding: 20px 28px 28px;
    min-height: 200px;
}

.auth-primary-btn {
    background-color: var(--ecart-primary) !important;
    border-color: var(--ecart-primary) !important;
    transition: all 0.25s ease;
}
.auth-primary-btn:hover {
    background-color: #e85d50 !important;
    border-color: #e85d50 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 110, 197, 0.35);
}
.auth-primary-btn:disabled {
    background-color: #a0aec0 !important;
    border-color: #a0aec0 !important;
    transform: none;
    box-shadow: none;
}

/* Step Transition Animation */
.auth-step-view {
    animation: authStepFadeIn 0.3s ease forwards;
}
@keyframes authStepFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-step-enter {
    animation: authStepFadeIn 0.3s ease forwards;
}

/* OTP Icon Wrapper */
.auth-otp-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(1, 110, 197, 0.1);
    color: var(--ecart-primary);
}

/* OTP Timer Bar */
.auth-timer-bar {
    padding: 10px 14px;
    background: var(--ecart-bg-light);
    border-radius: 10px;
    border: 1px solid var(--ecart-border-light);
}
.auth-timer-track {
    height: 4px;
    background: var(--ecart-border-soft);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.auth-timer-fill {
    height: 100%;
    background: #48bb78;
    border-radius: 4px;
    transition: width 1s linear;
    width: 100%;
}

/* OTP Input Styling */
#otpCodeInput, #forgotOtpCode {
    letter-spacing: 10px;
    font-size: 28px !important;
    border: 2px solid var(--ecart-border-soft);
    transition: border-color 0.2s ease;
}
#otpCodeInput:focus, #forgotOtpCode:focus {
    border-color: var(--ecart-primary);
    box-shadow: 0 0 0 3px rgba(1, 110, 197, 0.15);
}

/* Password Toggle Button */
#loginPasswordToggle, #signupPasswordToggle, 
#signupConfirmToggle, #forgotNewPasswordToggle, #forgotConfirmToggle {
    border-left: none;
}

/* Input Focus Glow */
.auth-modal-box .form-control:focus {
    border-color: var(--ecart-primary);
    box-shadow: 0 0 0 3px rgba(1, 110, 197, 0.1);
}

/* Alert Animation */
#modalAuthAlert {
    animation: authAlertPop 0.25s ease;
}
@keyframes authAlertPop {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .auth-modal-box .modal-body {
        padding: 16px 18px 22px;
    }
    .auth-modal-box .modal-content {
        margin: 10px;
        border-radius: 16px !important;
    }
    #otpCodeInput, #forgotOtpCode {
        letter-spacing: 8px;
        font-size: 22px !important;
    }
}

/* ==========================================================================
   APPENDIX — NEW FEATURE STYLES
   (Combo Page, Similar/Related Products, Festival Section)
   Added WITHOUT changing any existing rule above.
   ========================================================================== */

/* -------- 1. FESTIVAL BANNER + PRODUCT RIBBON -------- */
.festival-special-section {
    margin-top: 24px;
}
.festival-banner-strip {
    background: linear-gradient(135deg, #fde68a 0%, #fca5a5 50%, var(--ecart-primary) 100%);
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(1, 110, 197, 0.22);
    position: relative;
    overflow: hidden;
}
.festival-banner-strip::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}
.festival-banner-strip::after {
    content: '';
    position: absolute;
    bottom: -50px; right: 50px;
    width: 110px; height: 110px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.festival-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.festival-banner-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ecart-white); font-size: 24px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.festival-banner-text {
    flex: 1;
    color: var(--ecart-white);
}
.festival-banner-text h3 {
    font-weight: 800; margin: 0 0 4px; font-size: 22px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.festival-banner-text p {
    margin: 0; font-size: 13px; opacity: 0.95; max-width: 600px;
}
.festival-banner-sparkles {
    display: flex; gap: 10px;
    color: rgba(255,255,255,0.85); font-size: 18px;
}
.festival-banner-sparkles i {
    animation: festivalPulse 1.6s ease-in-out infinite;
}
.festival-banner-sparkles i:nth-child(2) { animation-delay: 0.3s; }
.festival-banner-sparkles i:nth-child(3) { animation-delay: 0.6s; }
@keyframes festivalPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.2); opacity: 1; }
}
.festival-product-ribbon {
    position: absolute;
    top: 10px; right: 10px;
    background: linear-gradient(135deg, var(--ecart-primary), #ff8a7a);
    color: var(--ecart-white);
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 6;
    box-shadow: 0 2px 5px rgba(1, 110, 197,0.4);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
@media (max-width: 991.98px) {
    .festival-banner-text h3 { font-size: 18px; }
    .festival-banner-text p { font-size: 12px; }
    .festival-banner-sparkles { display: none; }
    .festival-product-ribbon { font-size: 8px; padding: 2px 6px; }
}

/* -------- 2. SIMILAR & RELATED PRODUCTS SECTIONS -------- */
.similar-products-section,
.related-products-section {
    padding-top: 20px;
    border-top: 1px solid var(--ecart-border-light);
}
.similar-products-section .category-block-title,
.related-products-section .category-block-title {
    font-size: 18px;
}
@media (max-width: 991.98px) {
    .similar-products-section .category-block-title,
    .related-products-section .category-block-title {
        font-size: 15px;
    }
}

/* -------- 3. (Removed: Combo page styles — Make a Combo feature removed) -------- */

/* -------- 3.1 GLOBAL "Add to Bag" THEME BUTTON (shared on index/detail/cart) -------- */
/* Previously this rule lived inline inside index.php only, so the same
   "Add to Bag" button on detail.php and cart.php related-products section
   fell back to default Bootstrap colors. Moving it here makes the button
   look identical on every page. */
.btn-custom-theme {
    background-color: var(--ecart-primary);
    border-color: var(--ecart-primary);
    color: var(--ecart-white);
}
.btn-custom-theme:hover {
    background-color: var(--ecart-danger-soft);
    border-color: var(--ecart-danger-soft);
    color: var(--ecart-white);
}
.btn-custom-theme:focus,
.btn-custom-theme.focus {
    box-shadow: 0 0 0 3px rgba(1, 110, 197, 0.25);
}
.btn-custom-theme:active {
    background-color: #d65145 !important;
    border-color: #d65145 !important;
    color: var(--ecart-white) !important;
}

.btn-out-of-stock,
.btn-out-of-stock:disabled,
.btn-out-of-stock.disabled,
.detail-out-of-stock-btn {
    background-color: var(--ecart-gray) !important;
    border-color: var(--ecart-gray) !important;
    color: var(--ecart-white) !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}
.btn-out-of-stock:hover,
.btn-out-of-stock:focus,
.btn-out-of-stock:active,
.detail-out-of-stock-btn:hover,
.detail-out-of-stock-btn:focus,
.detail-out-of-stock-btn:active {
    background-color: var(--ecart-gray) !important;
    border-color: var(--ecart-gray) !important;
    color: var(--ecart-white) !important;
    box-shadow: none !important;
}

/* ==========================================================================
   MARKETPLACE REFRESH — presentation-only overrides
   ========================================================================== */
:root {
    --market-primary: #2563eb;
    --market-primary-dark: #1d4ed8;
    --market-accent: #f97316;
    --market-ink: #172033;
    --market-muted: var(--ecart-muted);
    --market-surface: var(--ecart-white);
    --market-bg: #f6f8fb;
    --market-border: #e7ebf2;
    --market-radius: 16px;
    --market-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

html { scroll-behavior: smooth; }
/* body {
    background: var(--market-bg);
    color: var(--market-ink);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
} */

#masterGlobalHeader {
    background: var(--market-surface);
    border-bottom: 1px solid var(--market-border);
    box-shadow: 0 2px 14px rgba(23, 32, 51, 0.05);
}
.brand-logo {
    color: var(--market-ink) !important;
    font-size: 1.85rem;
    letter-spacing: -1.2px;
}
.brand-logo span { color: var(--market-primary) !important; }
.search-wrapper-container .input-group {
    background: #f3f6fa !important;
    border: 1px solid #e1e7f0 !important;
    border-radius: 10px !important;
}
.search-wrapper-container .input-group:focus-within {
    background: var(--ecart-white) !important;
    border-color: var(--market-primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1) !important;
}
.btn-action-circle {
    color: var(--market-ink);
    background: #f3f6fa;
    border: 1px solid var(--market-border);
}
.btn-action-circle:hover {
    color: var(--market-primary);
    background: #eaf1ff !important;
}
.user-avatar-circle {
    background: linear-gradient(1deg, #f66a0b, #006ec6) !important;
    outline-color: #bfdbfe;
}
.premium-slim-category-strip {
    background: var(--ecart-white);
    border-bottom: 1px solid var(--market-border);
}
.category-pill {
    background: var(--ecart-white);
    border: 1px solid var(--market-border);
    color: #344054;
    border-radius: 999px;
}
.category-pill:hover, .category-pill.active {
    background: var(--market-primary);
    border-color: var(--market-primary);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
}
.banner-image-wrapper {
    border: 0 !important;
    border-radius: var(--market-radius) !important;
    box-shadow: var(--market-shadow);
    background: #dce8f8;
}
.banner-img {
    min-height: 240px;
    border-radius: var(--market-radius);
}
.carousel-control-prev, .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 16px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    opacity: .95;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) grayscale(1);
}
/*.custom-category-grid-wrapper {
    background: var(--market-surface);
    border: 1px solid var(--market-border);
    border-radius: var(--market-radius);
    padding: 22px;
    box-shadow: 0 4px 16px rgba(23,32,51,.035);
}*/
.custom-category-img-box {
   /* background: var(--ecart-soft-surface) !important;
    border: 1px solid var(--market-border) !important; */
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.custom-category-grid-wrapper a:hover .custom-category-img-box {
    transform: translateY(-4px);
    border-color: #bfdbfe !important;
    box-shadow: 0 10px 20px rgba(37,99,235,.12);
}
.product-item-card-wrapper .card {
    border: 1px solid var(--market-border) !important;
    border-radius: var(--market-radius);
    box-shadow: 0 4px 14px rgba(23,32,51,.04);
}
.product-item-card-wrapper .card:hover {
    border-color: #bfdbfe !important;
    box-shadow: 0 16px 32px rgba(23,32,51,.12) !important;
}
.product-item-card-wrapper .card-img-top-box {
    background: var(--ecart-soft-surface);
    border-bottom: 1px solid #f0f2f6;
}
.product-item-card-wrapper .badge-discount-ribbon {
    background: var(--market-accent);
    border-radius: 999px;
    box-shadow: none;
}
.product-item-card-wrapper .selling-price {
    color: var(--market-primary);
}
.product-item-card-wrapper .cta-buy-btn,
.btn-custom-theme {
    background: var(--market-primary) !important;
    border-color: var(--market-primary) !important;
    border-radius: 9px;
    box-shadow: none;
}
.product-item-card-wrapper .cta-buy-btn:hover,
.btn-custom-theme:hover {
    background: var(--market-primary-dark) !important;
    border-color: var(--market-primary-dark) !important;
}
.category-block-header {
    border-bottom: 1px solid var(--market-border);
    margin-bottom: 18px;
}
.category-block-title {
    color: var(--market-ink);
    font-size: 1.1rem;
    letter-spacing: -.2px;
    text-transform: none;
}
.category-block-title::after {
    background: var(--market-primary);
    height: 3px;
    border-radius: 4px;
}
.category-see-more-btn {
    color: var(--market-primary);
}
.festival-banner-strip {
    background: linear-gradient(110deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
    border-radius: var(--market-radius);
    box-shadow: 0 14px 30px rgba(37,99,235,.2);
}
footer {
    background: var(--ecart-deep) !important;
    border-top: 1px solid #263249;
}
footer a:hover { color: #93c5fd !important; }

@media (max-width: 767.98px) {
    .brand-logo { font-size: 1.45rem; }
   /* .custom-category-grid-wrapper { padding: 12px; border-radius: 12px; } */
    .banner-image-wrapper { margin-left: 0px; margin-right: 0px; border-radius: 12px !important; }
    .banner-img { min-height: 170px; border-radius: 12px; }
    .product-item-card-wrapper .card { border-radius: 12px; }
    .product-item-card-wrapper .card-body-custom,
    .product-item-card-wrapper .card-body { padding: 10px !important; }
}

/* ==========================================================================
   FINAL STOREFRONT POLISH
   ========================================================================== */
:root {
    --market-primary: var(--ecart-orange);
    --market-primary-dark: #d95327;
    --market-accent: #ffb547;
    --market-ink: var(--ecart-navy);
    --market-bg: var(--ecart-bg-light);
    --market-border: #e6ebf2;
    --market-radius: 18px;
    --market-shadow: 0 12px 30px rgba(18, 35, 63, .07);
}

/* body { background: var(--market-bg); } */
#masterGlobalHeader { min-height: 74px; box-shadow: 0 5px 24px rgba(18,35,63,.06); }
#masterGlobalHeader .container { gap: 0px; }
.brand-logo {
    font-size: 1.7rem !important;
    letter-spacing: -.9px !important;
    text-transform: none !important;
}
.brand-logo::after {
    content: 'shop smart, live better';
    display: block;
    color: #98a2b3;
    font: 700 9px/1 'DM Sans', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.brand-logo span { color: var(--market-primary) !important; }
.search-wrapper-container .input-group {
    border-radius: 14px !important;
    background: #f6f8fb !important;
    box-shadow: none !important;
}
.search-wrapper-container .input-group:focus-within {
    border-color: rgba(242,107,56,.65) !important;
    box-shadow: 0 0 0 4px rgba(242,107,56,.1) !important;
}
.btn-action-circle {
    width: 44px !important;
    height: 44px !important;
    background: #f5f7fb !important;
    border: 0 !important;
}
.btn-action-circle:hover { color: var(--market-primary) !important; background: #fff0e9 !important; }
#global-cart-badge { background: var(--market-primary) !important; }

#loginTriggerBtn {
    background: repeating-linear-gradient(27deg, var(--ecart-navy), transparent 78px);
    border-color: var(--ecart-navy) !important;
    padding: 7px 12px !important;
}

#loginTriggerBtn:hover { background: var(--market-primary) !important; border-color: var(--market-primary) !important; }
.banner-image-wrapper {
    border-radius: 24px !important;
    box-shadow: 0 18px 45px rgba(18,35,63,.12) !important;
}
.banner-img {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
}
/*.custom-category-grid-wrapper {
    padding: 4px !important;
    border-radius: var(--market-radius) !important;
    box-shadow: var(--market-shadow) !important;
}*/
.custom-category-img-box { border-radius: 14px !important; }
.custom-category-grid-wrapper a:hover .custom-category-img-box { transform: translateY(-5px); }
.product-item-card-wrapper .card {
    border-radius: var(--market-radius) !important;
    box-shadow: 0 5px 18px rgba(18,35,63,.05) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-item-card-wrapper .card:hover {
    border-color: rgba(242,107,56,.35) !important;
    box-shadow: 0 17px 34px rgba(18,35,63,.13) !important;
    transform: translateY(-6px);
}
.product-item-card-wrapper .card-img-top-box {
    height: 220px !important;
    background: linear-gradient(145deg, #f9fbfd, #eef3f8) !important;
}
.product-item-card-wrapper .card-img-top-box img { transition: transform .35s ease; }
.product-item-card-wrapper .card:hover .card-img-top-box img { transform: scale(1.07); }
.product-item-card-wrapper .selling-price { color: var(--market-primary) !important; font-size: 18px; }
.product-item-card-wrapper .badge-discount-ribbon {
    background: #016ec5 !important;
    border-radius: 7px !important;
}
.product-item-card-wrapper .cta-buy-btn,
.btn-custom-theme {
    background: var(--market-primary) !important;
    border-color: var(--market-primary) !important;
    border-radius: 10px !important;
    font-weight: 700;
    padding: 10px 12px;
}
.product-item-card-wrapper .cta-buy-btn:hover,
.btn-custom-theme:hover {
    background: var(--market-primary-dark) !important;
    border-color: var(--market-primary-dark) !important;
    box-shadow: 0 8px 18px rgba(242,107,56,.24);
}
.category-block-title { font-size: 1.25rem !important; font-weight: 800 !important; }
.category-block-title::after { background: var(--market-primary) !important; height: 4px !important; }
.category-see-more-btn { color: var(--market-primary) !important; font-weight: 700; }
.festival-banner-strip {
    border-radius: var(--market-radius) !important;
    background: linear-gradient(110deg, var(--ecart-navy) 0%, #1e4f8f 58%, var(--ecart-orange) 150%) !important;
}
footer { border-top: 5px solid var(--market-primary); }
footer .text-primary { color: var(--market-accent) !important; }

@media (max-width: 767.98px) {
    .brand-logo { font-size: 1.3rem !important; }
    .brand-logo::after { display: none; }
    .banner-image-wrapper { border-radius: 16px !important; }
    .banner-img {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
   /* .custom-category-grid-wrapper { padding: 12px !important; } */
    .product-item-card-wrapper .card-img-top-box { height: 165px !important; }
    .product-item-card-wrapper .card { border-radius: 14px !important; }
}

/* Shared mobile density: reclaim excess whitespace on inner storefront pages. */
@media (max-width: 767.98px) {
    main.container,
    main.container.my-5,
    main.container.my-4,
    main.container.my-3 {
        margin-top: 14px !important;
        margin-bottom: 28px !important;
        padding-left: 12px;
        padding-right: 12px;
    }
    main.container[style*="min-height"] { min-height: 0 !important; }
    .breadcrumb { margin-bottom: 10px !important; font-size: 11px; }
    main.container h3 { font-size: 1.2rem !important; }
    .product-item-card-wrapper .row { --bs-gutter-x: .55rem; --bs-gutter-y: .7rem; }
    .product-item-card-wrapper .card-body-custom { padding: 11px !important; }
    .product-item-card-wrapper .product-main-title { min-height: 36px; }
    #cartPageRoot .row.g-4 { --bs-gutter-y: .9rem; }
    #cartPageRoot .shadow-sm { box-shadow: 0 6px 18px rgba(18,35,63,.06) !important; }
    .container.py-4 { padding-top: 12px !important; padding-bottom: 24px !important; }
    .container.py-4 > .row { --bs-gutter-x: .75rem; --bs-gutter-y: .8rem; }
    .container.py-4 .card.rounded-4 { border-radius: 16px !important; padding: 16px !important; }
    .container.py-4 .sticky-top { position: static !important; }
    #checkoutCartItemsContainer { max-height: 220px !important; }
    .container.py-4 .form-control,
    .container.py-4 .form-select { min-height: 46px; border-radius: 10px; }
}

/* Marketplace product cards: consistent modern ecommerce-style hierarchy */
.product-item-card-wrapper .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--ecart-white);
}
.product-item-card-wrapper .card-img-top-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 226px !important;
    padding: 4px !important;
    background: #ffffff !important;
}
.product-item-card-wrapper .card-img-top-box::after {
    content: '\f06e  Quick view';
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translate(-50%, 8px);
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--ecart-navy);
    background: rgba(255,255,255,.94);
    box-shadow: 0 4px 12px rgba(18,35,63,.12);
    font: 700 10px 'DM Sans', sans-serif;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.product-item-card-wrapper .card:hover .card-img-top-box::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
.product-item-card-wrapper .card-img-top-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-item-card-wrapper .card-body,
.product-item-card-wrapper .card-body-custom {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 15px !important;
}
.product-item-card-wrapper .product-main-title {
    min-height: 38px;
    margin-bottom: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: #253858 !important;
}
.product-item-card-wrapper .price-section-grid {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0 !important;
}
.product-item-card-wrapper .mrp-slashed-price { font-size: 12px; }
.product-item-card-wrapper .save-price-strip,
.product-item-card-wrapper .save-off-badge {
    width: fit-content;
    color: #137a4b;
    background: #eaf8f1;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 700;
}
.product-item-card-wrapper .cta-buy-btn,
.product-item-card-wrapper .btn-custom-theme {
    width: 100%;
    min-height: 40px;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1px;
}
.product-item-card-wrapper .badge-discount-ribbon {
    top: 5px !important;
    left: 5px !important;
    right: auto !important;
    z-index: 3;
    padding: 3px 6px !important;
    font-size: 10px !important;
    border-radius: 5px !important;
}
.product-item-card-wrapper .festival-product-ribbon {
    top: 12px !important;
    right: 12px !important;
    z-index: 3;
}
@media (max-width: 767.98px) {
    .product-item-card-wrapper .card-img-top-box { height: 172px !important; padding: 2px !important; }
    .product-item-card-wrapper .card-body,
    .product-item-card-wrapper .card-body-custom { padding: 6px !important; gap: 6px; }
    .product-item-card-wrapper .product-main-title { min-height: 36px; font-size: 12.5px !important; }
    .product-item-card-wrapper .selling-price { font-size: 16px !important; }
    .product-item-card-wrapper .save-price-strip { display: none; }
    .product-item-card-wrapper .cta-buy-btn { min-height: 38px; font-size: 11px; }
    .product-item-card-wrapper .card-img-top-box::after { display: none; }
}

/* Keep the global header compact without changing content container widths. */
#masterGlobalHeader > .container {
    max-width: 1180px;
    padding-left: 16px;
    padding-right: 16px;
}
#masterGlobalHeader .search-wrapper-container { max-width: 470px !important; }
@media (max-width: 991.98px) {
    #masterGlobalHeader > .container { max-width: none; }
}

/* Auth modal: calm, spacious controls and a non-jittery password reveal */
.auth-modal-box {
    overflow: hidden;
    border: 1px solid #e6ebf2 !important;
    box-shadow: 0 24px 70px rgba(18,35,63,.2) !important;
}
.auth-modal-box .modal-header {
    padding: 22px 24px 8px;
    background: linear-gradient(135deg, #fff7f3, var(--ecart-white));
}
.auth-modal-box .modal-title {
    color: var(--ecart-navy) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.3px;
}
.auth-modal-box .modal-body { padding: 16px 24px 24px !important; }
.auth-modal-box .form-label {
    color: #344054 !important;
    letter-spacing: .1px;
}
.auth-modal-box .form-control,
.auth-modal-box .input-group-text,
.auth-modal-box .input-group .btn {
    min-height: 48px;
    border-color: #dfe6ef;
    background: var(--ecart-bg-light);
}
.auth-modal-box .form-control {
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-modal-box .form-control:focus {
    background: var(--ecart-white);
    border-color: var(--ecart-orange);
    box-shadow: 0 0 0 4px rgba(242,107,56,.11) !important;
}
.auth-modal-box .input-group-text {
    color: var(--ecart-navy) !important;
    border-radius: 11px 0 0 11px;
}
.auth-modal-box .input-group .form-control { border-radius: 0 11px 11px 0; }
.auth-modal-box .input-group .btn {
    border-radius: 0 11px 11px 0;
    color: #718096;
}
.auth-modal-box .input-group:focus-within .input-group-text,
.auth-modal-box .input-group:focus-within .btn {
    border-color: var(--ecart-orange);
}
.auth-modal-box .auth-primary-btn {
    min-height: 48px;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--ecart-orange) !important;
    box-shadow: 0 8px 18px rgba(242,107,56,.22) !important;
}
.auth-modal-box .auth-primary-btn:hover { background: #d95327 !important; }
#loginPasswordField {
    overflow: hidden;
    transform-origin: top;
    transition: opacity .25s ease, transform .25s ease;
}
#loginPasswordField[style*="display: none"] { opacity: 0; transform: translateY(-8px); }
#loginPasswordField:not([style*="display: none"]) { opacity: 1; transform: translateY(0); }
#loginMobileStatus { min-height: 18px; }
@media (max-width: 575px) {
    .auth-modal-box .modal-header { padding: 18px 18px 6px; }
    .auth-modal-box .modal-body { padding: 12px 18px 20px !important; }
}

/* Final card geometry correction: prices stay readable at every digit length. */
.product-item-card-wrapper .product-main-title {
    min-height: 0 !important;
    height: auto !important;
    max-height: 2.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-item-card-wrapper .price-section-grid {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    column-gap: 7px;
    row-gap: 6px;
    width: 100%;
    min-height: 29px;
}
.product-item-card-wrapper .price-section-grid .selling-price {
    white-space: nowrap;
    line-height: 1.15;
}
.product-item-card-wrapper .price-section-grid .mrp-slashed-price {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}
.product-item-card-wrapper .price-section-grid .save-off-badge,
.product-item-card-wrapper .price-section-grid .save-price-strip {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0 !important;
    max-width: 100%;
    white-space: nowrap;
}
.product-item-card-wrapper .card-body > .mt-auto,
.product-item-card-wrapper .card-body-custom > .mt-auto {
    margin-top: 4px !important;
}
.product-item-card-wrapper .card-body,
.product-item-card-wrapper .card-body-custom {
    gap: 6px;
}

/* Category blocks should finish close to their product grid. */
.product-item-card-wrapper.mb-5,
.product-item-card-wrapper.mb-md-5,
.festival-special-section.mb-5 {
    margin-bottom: 28px !important;
}
.custom-category-grid-wrapper.mb-5,
.custom-category-grid-wrapper.mb-md-5 {
    margin-bottom: 28px !important;
}
@media (max-width: 767.98px) {
    .product-item-card-wrapper.mb-5,
    .product-item-card-wrapper.mb-md-5,
    .festival-special-section.mb-5,
    .custom-category-grid-wrapper.mb-5,
    .custom-category-grid-wrapper.mb-md-5 {
        margin-bottom: 10px !important;
    }
    .product-item-card-wrapper .price-section-grid {
        column-gap: 5px;
        row-gap: 5px;
    }
    .product-item-card-wrapper .price-section-grid .selling-price { font-size: 15px !important; }
    .product-item-card-wrapper .price-section-grid .mrp-slashed-price { font-size: 11px; }
}

/* Compact card pricing: keep the existing type scale, but make the name
   stronger and let selling/MRP prices size themselves to each card width. */
.product-item-card-wrapper .product-main-title {
    font-weight: 800 !important;
}
.product-item-card-wrapper .price-section-grid {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 0;
}
.product-item-card-wrapper .price-section-grid .selling-price,
.product-item-card-wrapper .price-section-grid .mrp-slashed-price {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}
.product-item-card-wrapper .price-section-grid .save-off-badge,
.product-item-card-wrapper .price-section-grid .save-price-strip {
    display: none !important;
}


/* ==========================================================================
   CONSOLIDATED FRONTEND STYLES (Moved from inline <style> blocks)
   --------------------------------------------------------------------------
   The rules below were previously inlined as <style>...</style> blocks
   inside individual frontend PHP files. They have been moved here so the
   entire storefront CSS can be managed from a single file. Cascade order
   is preserved: each section is appended AFTER the original style.css
   rules, so page-specific overrides continue to win the cascade the same
   way they did when they lived inside inline <style> blocks rendered
   after the <link> to style.css.
   ========================================================================== */


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — common_header.css
   Global header: user profile dropdown + non-home fixed search strip (rendered on every page).
   ========================================================================== */
/* ============================================================
   👤 USER PROFILE DROPDOWN (Attractive Style)
   ============================================================ */
.user-profile-trigger {
    padding: 2px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.user-profile-trigger::after {
    display: none; /* default caret hatao — cleaner look */
}
.user-profile-trigger:hover {
    transform: translateY(-1px);
}
.user-avatar-circle {
    background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-secondary-light) 100%);
    box-shadow: 0 3px 10px rgba(1, 110, 197, 0.4);
    border: 2px solid var(--ecart-white);
    outline: 1.5px solid var(--ecart-primary-lighter);
}
.user-profile-dropdown {
    min-width: 265px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    padding: 0;
    margin-top: 10px !important;
    border: 1px solid #f1f3f7;
    animation: udpFadeSlide 0.25s ease;
}
@keyframes udpFadeSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.udp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, var(--ecart-primary-tint) 0%, #ffece8 60%, #fff8f6 100%);
    position: relative;
}
.udp-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ecart-primary), var(--ecart-secondary-light), #ffb199);
}
.udp-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-secondary-light) 100%);
    color: var(--ecart-white);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(1, 110, 197, 0.35);
    flex-shrink: 0;
}
.udp-meta { min-width: 0; }
.udp-welcome {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #b08d85;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.udp-name {
    color: var(--ecart-text);
    font-size: 14.5px;
    max-width: 170px;
}
.udp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    transition: background 0.18s ease;
}
.udp-item:hover {
    background: var(--ecart-primary-soft) !important;
}
.udp-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.udp-item:hover .udp-icon { transform: scale(1.08); }
.udp-icon-coral { background: rgba(1, 110, 197, 0.12); color: var(--ecart-primary); }
.udp-icon-red   { background: rgba(220, 53, 69, 0.1);  color: var(--ecart-danger); }
.udp-text { flex: 1; min-width: 0; }
.udp-label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ecart-text-dark); }
.udp-sub { display: block; font-size: 11px; color: #a0aec0; margin-top: 1px; }
.udp-arrow { font-size: 11px; color: #cbd5e0; transition: transform 0.18s ease, color 0.18s ease; }
.udp-item:hover .udp-arrow { transform: translateX(3px); color: var(--ecart-primary); }
.udp-item-danger .udp-label { color: var(--ecart-danger); }
.udp-item-danger:hover { background: #fff1f1 !important; }

/* ✅ Sign Out Confirm Modal */
.signout-confirm-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.signout-icon-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.signout-icon-ring i { font-size: 30px; color: var(--ecart-danger); }
.signout-btn-yes {
    background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-orange-strong) 100%);
    border: none;
}
.signout-btn-yes:hover { opacity: 0.92; }

/* ============================================================
   📌 FIXED SEARCH STRIP (non-home pages)
   • Search box wali strip header ke niche FIXED rehti hai
   • Back button strip ke andar hi hai
   • Scroll karne par brand-name header hide/show hota hai
     (badi ecommerce websites jaisa behavior)
   ============================================================ */
.back-strip-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--ecart-border-soft);
    background: var(--ecart-bg-light);
    color: var(--ecart-text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.back-strip-btn:hover { background: var(--ecart-primary); border-color: var(--ecart-primary); color: var(--ecart-white); transform: translateX(-2px); }
.back-strip-btn:active { transform: scale(0.94); }

/* Non-home pages: desktop search box navbar me hidden (duplicate na ho) */
.non-home-hidden-search { display: none !important; }

/* Search strip ko bada screen par bhi centered + bounded rakho */
.fixed-search-strip .search-wrapper-container { max-width: 760px; margin: 0 auto; }

/* 📱 MOBILE STICKY FIX (kuchh devices par sticky strip half-cut dikhti thi)
   • overflow-x: clip scroll-container nahi banata → position: sticky hamesha kaam karta hai
   • -webkit-sticky purane iOS Safari ke liye fallback hai
   Ye fix sirf rendering bug hatata hai — kisi page ka behavior/design change nahi hota. */

/* 🆕 Round-2 Bug-8 fix: `overflow-x: hidden` alone makes body's overflow-y
   compute as `auto` (per CSS spec), creating a scroll container on body.
   This breaks `position: sticky` on the search strip — especially on
   detail.php where the product image gallery has transforms/overflows
   that interact badly with body's scroll container.
   Fix: drop the `overflow-x: hidden` fallback; use ONLY `overflow-x: clip`
   (supported in Chrome 90+, Firefox 81+, Safari 16+, Edge 90+). For older
   browsers, sticky might break but that's a minor issue vs the current
   broken state on detail.php mobile. */
/* body { overflow-x: clip; } already defined in style.css section 1 — duplicate removed */

/* Brand header smooth hide/show */
.brand-header-bar {
    background: var(--ecart-white);
    transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
    will-change: transform;
}
body.header-brand-hidden .brand-header-bar {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    box-shadow: none !important;
}
/* Jab header hidden ho to search strip upar chipak jaye */
.fixed-search-strip {
    position: -webkit-sticky; /* iOS Safari purana fallback */
    position: sticky;
    top: 0;
    z-index: 1029;
    transition: box-shadow 0.25s ease;
}
.fixed-search-strip.strip-elevated { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
/*@media (max-width: 991.98px) {*/
@media (max-width: 991px) {  
    /* Mobile par home ke alawa strip hamesha top par fixed rahe */
    body:not(.home-page-body) .fixed-search-strip { top: 0; }
}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — index.css
   Home page: shadow-hover cards, discount ribbon, image box, category block headers, see-more buttons, banner.
   ========================================================================== */
.shadow-sm-hover {

        transition: transform 0.2s ease, box-shadow 0.2s ease;

        border: 1px solid #e9ecef !important;

    }

    .shadow-sm-hover:hover {

        transform: translateY(-4px);

        box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;

    }

    .badge-discount-ribbon {

        position: absolute;

        top: 12px;

        left: 12px;

        background: var(--ecart-primary); /* Updated to your new color */

        color: var(--ecart-white);

        padding: 4px 8px;

        font-size: 11px;

        font-weight: 700;

        border-radius: 4px;

        z-index: 10;

        text-transform: uppercase;

        letter-spacing: 0.5px;

    }

    .card-img-top-box {

        position: relative;

        height: 200px;

        background: var(--ecart-bg-soft);

        display: flex;

        align-items: center;

        justify-content: center;

        overflow: hidden;

        padding: 15px;

    }

    .card-img-top-box img {

        max-height: 100%;

        max-width: 100%;

        object-fit: contain;

    }

    .category-block-header {

        display: flex;

        align-items: center;

        justify-content: space-between;

        border-bottom: 2px solid #e9ecef;

        padding-bottom: 8px;

        margin-bottom: 20px;

    }

    .category-block-title {

        position: relative;

        font-weight: 700;

        color: #2c3e50;

        margin: 0;

    }

    .category-block-title::after {

        content: '';

        position: absolute;

        bottom: -10px;

        left: 0;

        width: 60px;

        height: 2px;

        background: var(--ecart-primary); /* Updated to your new color */

    }

    .category-see-more-btn {

        /* font-size: 13px;font-weight: 600;color: var(--ecart-primary);text-decoration: none;transition: color 0.2s; */
    font-size: 13px;
    font-weight: 600;
    color: var(--ecart-primary);
    text-decoration: none;
    transition: color 0.2s;
    border: 1px solid var(--ecart-orange);
    padding: 2px;
    padding-right: 7px;
    border-radius: 200px;
    margin-bottom: -9px;

    }

    .category-see-more-btn:hover {

        color: var(--ecart-danger-soft);

    }

    .product-main-title {

        font-size: 14px;

        font-weight: 600;

        line-height: 1.4;

        height: 40px;

        overflow: hidden;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

    }

    .selling-price {

        font-size: 16px;

        font-weight: 700;

        color: var(--ecart-primary); /* Updated to your new color */

    }

    .mrp-slashed-price {

        font-size: 13px;

        color: var(--ecart-gray-text);

        text-decoration: line-through;

    }

    .banner-image-wrapper {

        box-shadow: 0 4px 12px rgba(0,0,0,0.05);

    }

    .banner-img { height: auto; object-fit: contain; }

    /* Button custom color integration */

    .btn-custom-theme {

        background-color: var(--ecart-primary);

        border-color: var(--ecart-primary);

        color: white;

    }

    .btn-custom-theme:hover {

        background-color: var(--ecart-danger-soft);

        border-color: var(--ecart-danger-soft);

        color: white;

    }

    @media (max-width: 768px) {

        .banner-img {

            height: 200px;

        }

    }
  
  
    /* Card Height Customization via Media Queries */
.custom-grid-card {
    min-height: 170px;
}
.custom-card-img-box {
    height: 120px;
}

/* Mobile Adjustments (3x3 Grid with Larger Touch Targets) */
@media (max-width: 767.98px) {
    .custom-grid-card {
        min-height: 140px;
    }
    .custom-card-img-box {
        height: 120px;
    }
}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — detail.css
   Product detail page: image tabs, main frame, zoom, carousel arrows/dots/counter, description, SEO chips.
   ========================================================================== */
/* Thumbnails Strip / Tabs Container */
.product-image-tabs {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

/* Single Image Tab Button */
.img-tab-item {
    width: 70px;
    height: 70px;
    border: 2px solid var(--ecart-border-soft);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--ecart-white);
    padding: 4px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-tab-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Hover and Active State for Tabs */
.img-tab-item:hover,
.img-tab-item.active {
    border-color: var(--ecart-primary) !important;
    box-shadow: 0 4px 10px rgba(1, 110, 197, 0.25);
    transform: translateY(-2px);
}

/* 💰 DETAIL PAGE ATTRACTIVE PRICE BLOCK */
.detail-price-block .detail-selling-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--ecart-primary);
    letter-spacing: -0.5px;
}
.detail-price-block .detail-mrp-price {
    font-size: 15px;
    color: var(--ecart-text-secondary);
    font-weight: 500;
}
.detail-price-block .detail-mrp-price span {
    text-decoration: line-through;
}
.detail-price-block .detail-disc-pill {
    font-size: 13px;
    font-weight: 800;
    color: var(--ecart-success);
    background: var(--ecart-success-soft);
    border: 1px solid #bce8cf;
    padding: 3px 10px;
    border-radius: 20px;
}
.detail-price-block .detail-save-strip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ecart-primary);
    background: linear-gradient(90deg, var(--ecart-success-soft) 0%, #f2fbf6 100%);
    border: 1px dashed #9fdcb9;
    border-radius: 10px;
    padding: 7px 14px;
}

/* Main Display Image Frame */
.main-img-frame {
    width: 100%;
    height: 420px;
    background: var(--ecart-white);
    border: 1px solid var(--ecart-border-soft);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Mobile: allow vertical page scroll (browser handles it natively),
       horizontal swipes are left to JS (carousel + modal). This prevents
       the image frame from blocking page scroll when user touches it. */
    touch-action: pan-y;
}

/* Zoom Container Inside Frame */
.zoom-hover-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hover-zoom is locked; cursor indicates click-to-open-modal */
    cursor: zoom-in;
    /* Allow vertical page scroll, JS handles horizontal swipe */
    touch-action: pan-y;
}

.zoom-hover-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    /* Prevent image drag gesture (mobile Safari) that blocks page scroll */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    /* Allow vertical page scroll, JS handles horizontal swipe */
    touch-action: pan-y;
}

/* Mobile Screens Adjustment */
@media (max-width: 767.98px) {
    .main-img-frame {
        height: 320px;
    }
    .img-tab-item {
        width: 60px;
        height: 60px;
    }
}

/* 🎠 Image Slider / Carousel (ecommerce style) */
.car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    opacity: 0.85;
}
.car-arrow:hover {
    background: var(--ecart-primary);
    color: var(--ecart-white);
    opacity: 1;
}
.car-arrow.prev { left: 10px; }
.car-arrow.next { right: 10px; }
.car-arrow i { font-size: 15px; }
.car-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--ecart-white);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.5px;
    pointer-events: none;
}
.car-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}
.car-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.25s ease;
}
.car-dots span.active {
    background: var(--ecart-primary);
    width: 20px;
    border-radius: 8px;
}
/* Slide animation on image change */
.slide-anim-left { animation: slideFromRight 0.35s ease; }
.slide-anim-right { animation: slideFromLeft 0.35s ease; }
@keyframes slideFromRight { from { opacity: 0.4; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideFromLeft  { from { opacity: 0.4; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }

/* 📝 Dynamic Product Description Styling */
.product-full-description { font-size: 15px; line-height: 1.75; color: var(--ecart-text-muted); }
.product-full-description p { margin-bottom: 10px; }
.product-full-description h1, .product-full-description h2,
.product-full-description h3, .product-full-description h4 {
    color: var(--ecart-text); font-weight: 700; font-size: 17px; margin: 14px 0 8px;
}
.product-full-description ul, .product-full-description ol { padding-left: 22px; margin-bottom: 10px; }
.product-full-description img { max-width: 100%; height: auto; border-radius: 10px; }

/* SEO Keywords chips (detail page) */
.product-seo-keywords .seo-kw-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--ecart-primary-tint);
    color: var(--ecart-primary);
    border: 1px solid var(--ecart-primary-lighter);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}
.product-seo-keywords .seo-kw-chip:hover {
    background: var(--ecart-primary);
    color: var(--ecart-white);
    border-color: var(--ecart-primary);
    transform: translateY(-1px);
}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — combo_detail.css
   Combo product detail page: image tabs, price block, carousel, combo product sub-cards.
   ========================================================================== */
.product-image-tabs { display: flex; gap: 10px; }
.img-tab-item {
    width: 70px; height: 70px;
    border: 2px solid var(--ecart-border-soft);
    border-radius: 10px;
    overflow: hidden; cursor: pointer;
    background-color: var(--ecart-white);
    padding: 4px;
    transition: all 0.2s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}
.img-tab-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-tab-item:hover,
.img-tab-item.active {
    border-color: var(--ecart-primary) !important;
    box-shadow: 0 4px 10px rgba(1, 110, 197, 0.25);
    transform: translateY(-2px);
}
.detail-price-block .detail-selling-price {
    font-size: 32px; font-weight: 800; color: var(--ecart-orange); letter-spacing: -0.5px;
}
.detail-price-block .detail-mrp-price {
    font-size: 15px; color: var(--ecart-text-secondary); font-weight: 500;
}
.detail-price-block .detail-mrp-price span { text-decoration: line-through; }
.detail-price-block .detail-disc-pill {
    background: var(--ecart-primary-strong); color: var(--ecart-white); font-size: 12px;
    font-weight: 700; padding: 3px 10px; border-radius: 12px;
}
.detail-save-strip {
    background: linear-gradient(90deg, var(--ecart-primary-tint), var(--ecart-white));
    border-left: 3px solid var(--ecart-primary);
    padding: 8px 14px; border-radius: 6px;
    font-size: 14px; color: #2b2f4c; font-weight: 500;
}
.detail-action-before-description .add-to-bag-btn {
    background: var(--ecart-primary); color: var(--ecart-white);
    border-color: var(--ecart-primary); font-size: 16px;
}
.detail-action-before-description .add-to-bag-btn:hover:not(:disabled) {
    background: #e14e1f; border-color: #e14e1f;
    transform: translateY(-1px);
}
/* .detail-out-of-stock-btn already defined in style.css — duplicate removed */
.main-img-frame {
    position: relative;
    background: var(--ecart-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.product-image-tabs + .main-img-frame {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}
/* BUGFIX (counter-overlap): :not(.car-counter) added so the .car-counter
   pill is NOT given 100% width/height + flex display. Previously the
   rule .main-img-frame > div:not(.car-dots) had specificity (0,2,1)
   which BEAT .main-img-frame > .car-counter (0,2,0), so the counter
   became a 100% x 100% flex container with a dark overlay covering
   the entire main image, with '1 / 3' text centered in the middle. */
.main-img-frame > div:not(.car-dots):not(.car-counter) {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-img-frame > div:not(.car-dots):not(.car-counter) > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.zoom-hover-box { overflow: hidden; }
.car-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.85); border: 0; border-radius: 50%;
    width: 38px; height: 38px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--ecart-primary);
}
.car-arrow.prev { left: 12px; }
.car-arrow.next { right: 12px; }
.car-arrow:hover { background: var(--ecart-white); }
.car-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.car-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,0,0,.25); cursor: pointer; transition: all .2s;
}
.car-dots span.active { background: var(--ecart-primary); width: 24px; border-radius: 4px; }
.car-counter {
    position: absolute; right: 12px;
    background: rgba(0,0,0,.55); color: var(--ecart-white);
    padding: 2px 10px; border-radius: 12px; font-size: 11px;
}
.combo-products-section {
    background: var(--ecart-bg-soft);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
}
.combo-products-section .combo-prod-card {
    background: var(--ecart-white); border-radius: 12px; padding: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
    border: 1.5px solid #f1f3f7;
}
.combo-products-section .combo-prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: var(--ecart-primary);
}
.combo-products-section .combo-prod-card img {
    width: 100%; height: 120px; object-fit: contain;
    border-radius: 8px;
}
.combo-products-section .combo-prod-qty-badge {
    position: absolute; top: 6px; right: 6px;
    background: #6a5acd; color: var(--ecart-white);
    border-radius: 14px; padding: 3px 10px;
    font-size: 11px; font-weight: 700;
}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — cart.css
   Cart page responsive layout overrides for the order summary column.
   ========================================================================== */
/* ============================================================
   📐 CART PAGE RESPONSIVE LAYOUT (Order Summary)
   • Desktop (lg+): Order Summary cart list ke BAGAL me right side
   • Mobile (<lg):  Order Summary cart list ke JUST NICHE
   Dono states fully responsive — koi horizontal overflow nahi.
   ============================================================ */
@media (max-width: 991.98px) {
    .order-summary-column { width: 100%; max-width: none; margin-top: .25rem; }
    .order-summary-card { position: sticky; top: 118px; z-index: 5; }
    .cart-items-column .card { margin-bottom: .25rem; }
    /* 📱 Mobile: Order Summary aur Related Products ke beech ka extra gap fix
       (main.my-5 + related.my-5 = 6rem gap tha → ab compact) */
    #cartPageRoot { margin-bottom: .5rem !important; }
    .related-products-section { margin-top: 1.25rem !important; margin-bottom: 2.5rem !important; }
}
@media (max-width: 575.98px) {
    .order-summary-card { position: static; }
}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — checkout.css
   Checkout page: progress tracker, animated location permission guide, custom inputs.
   ========================================================================== */
.custom-active-input{border:1.5px solid var(--ecart-border-soft)!important;transition:all .2s ease-in-out}
.custom-active-input:focus{border-color:var(--ecart-primary)!important;box-shadow:0 0 0 .25rem rgba(1, 110, 197,.15)!important;background-color:var(--ecart-white)!important}
@keyframes checkoutStageFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.checkout-progress{display:flex;align-items:center;max-width:760px;margin:0 auto 1.5rem}
.checkout-progress-step{flex:1;text-align:center;position:relative;color:#94a3b8;font-size:.8rem;font-weight:700}
.checkout-progress-step:not(:last-child):after{content:"";position:absolute;height:3px;background:var(--ecart-border-soft);left:50%;width:100%;top:17px;z-index:0}
.checkout-progress-step.is-complete:not(:last-child):after{background:var(--ecart-orange-strong)}
.checkout-progress-dot{position:relative;z-index:1;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 6px;background:var(--ecart-border-soft);color:#64748b;border:3px solid var(--ecart-white);box-shadow:0 0 0 1px var(--ecart-border-soft)}
.checkout-progress-step.is-active,.checkout-progress-step.is-complete{color:#f0643c}
.checkout-progress-step.is-active .checkout-progress-dot,.checkout-progress-step.is-complete .checkout-progress-dot{background:var(--ecart-orange-strong);color:var(--ecart-white);box-shadow:0 0 0 1px var(--ecart-orange-strong)}
.checkout-stage{animation:checkoutStageFade .25s ease-out}
.checkout-review-address{white-space:pre-line}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — dashboard.css
   Customer dashboard: sidebar menu boxes, content cards, stat tiles, cancel-reason list, order tracker.
   ========================================================================== */
/* Dashboard Base Styling */
    .dashboard-wrapper {
        background-color: var(--ecart-soft-surface);
        min-height: 80vh;
        padding-top: 30px;
        padding-bottom: 50px;
    }
    
    /* Sidebar Styling */
    .dashboard-sidebar {
        background: var(--ecart-white);
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        border: 1px solid var(--ecart-border-light);
        padding: 20px;
        position: sticky;
        top: 90px;
    }

    /* 🆕 Bug-7 fix: Menu Boxes (replaces the dropdown nav-pills with
       stat-card style clickable boxes — same look as the overview's
       Items-in-Cart / Member-Since / Total-Orders cards. Clicking a box
       activates the corresponding tab content on the right side.
       Design consistent with site theme (coral var(--ecart-primary) accent). */
    .dashboard-menu-boxes {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
    }
    @media (min-width: 576px) {
        .dashboard-menu-boxes { grid-template-columns: 1fr 1fr; }
    }
    .dashboard-menu-box {
        border: 1.5px solid var(--ecart-border-light);
        border-radius: 14px;
        padding: 16px 14px;
        background: var(--ecart-white);
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.22s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: var(--ecart-text-muted);
        position: relative;
        overflow: hidden;
    }
    .dashboard-menu-box::before {
        content: '';
        position: absolute; left:0; top:0; right:0; height:3px;
        background: var(--ecart-primary); opacity: 0; transition: opacity 0.2s ease;
    }
    .dashboard-menu-box:hover {
        border-color: var(--ecart-primary);
        box-shadow: 0 8px 18px rgba(1, 110, 197,0.13);
        transform: translateY(-2px);
        color: var(--ecart-text);
    }
    .dashboard-menu-box:hover::before { opacity: 1; }
    .dashboard-menu-box .menu-box-icon {
        width: 46px; height: 46px; border-radius: 12px;
        background: rgba(1, 110, 197, 0.1);
        color: var(--ecart-primary);
        display: flex; align-items: center; justify-content: center;
        font-size: 18px;
        transition: all 0.2s ease;
    }
    .dashboard-menu-box:hover .menu-box-icon {
        background: var(--ecart-primary); color: var(--ecart-white);
        transform: scale(1.08);
    }
    .dashboard-menu-box .menu-box-label {
        font-weight: 700; font-size: 13.5px; color: var(--ecart-text); margin: 4px 0 0;
    }
    .dashboard-menu-box .menu-box-sub {
        font-size: 11px; color: var(--ecart-text-secondary); margin: 0;
    }
    .dashboard-menu-box.active {
        background: var(--ecart-primary);
        border-color: var(--ecart-primary);
        box-shadow: 0 8px 18px rgba(1, 110, 197,0.30);
    }
    .dashboard-menu-box.active .menu-box-icon { background: rgba(255,255,255,0.25); color: var(--ecart-white); }
    .dashboard-menu-box.active .menu-box-label,
    .dashboard-menu-box.active .menu-box-sub { color: var(--ecart-white); }
    .dashboard-menu-box.active::before { opacity: 0; }
    .dashboard-menu-box-logout {
        border-color: #ffd6c9; background: #fff5f2;
    }
    .dashboard-menu-box-logout .menu-box-icon { background: rgba(220,53,69,0.10); color: var(--ecart-danger); }
    .dashboard-menu-box-logout:hover { border-color: var(--ecart-danger); box-shadow: 0 8px 18px rgba(220,53,69,0.13); }
    .dashboard-menu-box-logout:hover .menu-box-icon { background: var(--ecart-danger); color: var(--ecart-white); }
    .dashboard-menu-box-logout .menu-box-label { color: var(--ecart-danger); }

    /* Navigation Links (legacy — kept for backward-compat CSS but unused now) */
    .dashboard-nav .nav-link {
        color: var(--ecart-text-muted);
        font-weight: 600;
        font-size: 15px;
        padding: 12px 18px;
        border-radius: 10px;
        margin-bottom: 8px;
        transition: all 0.2s ease-in-out;
        display: flex;
        align-items: center;
        border: none;
        background: transparent;
        text-align: left;
    }

    .dashboard-nav .nav-link i {
        width: 25px;
        font-size: 18px;
        margin-right: 10px;
        color: #a0aec0;
    }

    .dashboard-nav .nav-link:hover {
        background-color: #f5f5f7;
        color: var(--ecart-text);
    }

    .dashboard-nav .nav-link.active {
        background-color: var(--ecart-primary); /* Coral Theme */
        color: var(--ecart-white);
        box-shadow: 0 4px 10px rgba(1, 110, 197, 0.3);
    }

    .dashboard-nav .nav-link.active i {
        color: var(--ecart-white);
    }

    /* Content Cards */
    .dashboard-content-card {
        background: var(--ecart-white);
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        border: 1px solid var(--ecart-border-light);
        padding: 30px;
    }

    /* Stat Cards */
    .stat-card {
        border: 1px solid var(--ecart-border-light);
        border-radius: 14px;
        padding: 20px;
        display: flex;
        align-items: center;
        background: var(--ecart-white);
    }
    .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-right: 15px;
    }
    .stat-icon.coral { background: rgba(1, 110, 197, 0.1); color: var(--ecart-primary); }
    .stat-icon.green { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
    
    .stat-details h3 { font-size: 24px; font-weight: 800; margin: 0; color: var(--ecart-text); }
    .stat-details p { margin: 0; font-size: 14px; color: #718096; font-weight: 600; }

    /* Custom Table */
    .table-custom th {
        background-color: var(--ecart-bg-soft);
        color: var(--ecart-text-muted);
        font-weight: 700;
        font-size: 13px;
    }
    .table-custom td { vertical-align: middle; font-weight: 500; font-size: 14px; }

    /* =========================================
       ORDER STATUS STEPWISE PROGRESS BAR (Task 6)
       Stylish horizontal stepper — Pending → Processing → Shipped → Delivered.
       Cancelled orders show a separate red banner instead of the stepper.
       ========================================= */
    .order-status-tracker {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        margin: 18px 6px 8px;
        padding-top: 6px;
    }
    .order-status-tracker::before {
        content: '';
        position: absolute;
        top: 22px;
        left: 30px;
        right: 30px;
        height: 4px;
        background: linear-gradient(
            to right,
            #2ecc71 0%,
            #2ecc71 var(--tracker-progress, 0%),
            #e5e9f0 var(--tracker-progress, 0%),
            #e5e9f0 100%
        );
        border-radius: 2px;
        z-index: 0;
    }
    .order-status-tracker .tracker-step {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        text-align: center;
    }
    .order-status-tracker .tracker-dot {
        width: 38px; height: 38px;
        border-radius: 50%;
        background: var(--ecart-white);
        border: 3px solid #e5e9f0;
        display: flex; align-items: center; justify-content: center;
        font-size: 14px;
        color: #94a3b8;
        font-weight: 700;
        margin-bottom: 6px;
        transition: all 0.3s ease;
    }
    .order-status-tracker .tracker-label {
        font-size: 11px;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        line-height: 1.2;
    }
    .order-status-tracker .tracker-step.is-done .tracker-dot {
        background: #2ecc71;
        border-color: #2ecc71;
        color: var(--ecart-white);
    }
    .order-status-tracker .tracker-step.is-done .tracker-label { color: #2ecc71; }
    .order-status-tracker .tracker-step.is-current .tracker-dot {
        background: var(--ecart-primary);
        border-color: var(--ecart-primary);
        color: var(--ecart-white);
        box-shadow: 0 0 0 6px rgba(1, 110, 197, 0.18);
        animation: trackerPulse 1.6s ease-in-out infinite;
    }
    .order-status-tracker .tracker-step.is-current .tracker-label { color: var(--ecart-primary); }
    @keyframes trackerPulse {
        0%, 100% { box-shadow: 0 0 0 6px rgba(1, 110, 197, 0.18); }
        50%      { box-shadow: 0 0 0 10px rgba(1, 110, 197, 0.10); }
    }
    .order-cancelled-banner {
        background: linear-gradient(135deg, #fee2e2, #fecaca);
        color: #991b1b;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        margin-top: 8px;
        display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    /* Point 3 — cancel reason box (cancelled order banner ke niche) */
    .order-cancel-reason-box {
        background: var(--ecart-primary-tint);
        border: 1px dashed #ffb199;
        color: #6b3b33;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 12.5px;
        margin-top: 6px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    .order-cancel-reason-box .ocr-label {
        font-weight: 700;
        color: #b26a55;
        white-space: nowrap;
    }
    .order-cancel-reason-box .ocr-text {
        flex: 1;
        min-width: 0;
        color: #4a2a22;
        line-height: 1.45;
    }
    /* Point 3 — Previous Orders collapsible panel */
    .previous-orders-panel {
        margin-top: 12px;
        border-top: 1px dashed var(--ecart-border-soft);
        padding-top: 12px;
    }
    .previous-orders-toggle-btn {
        width: 100%;
        background: var(--ecart-white);
        border: 1.5px solid #e9ecef;
        padding: 12px 18px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-size: 14px;
        font-weight: 700;
        color: var(--ecart-text-dark);
        transition: all 0.2s ease;
    }
    .previous-orders-toggle-btn:hover {
        border-color: var(--ecart-primary);
        background: var(--ecart-primary-tint);
    }
    .previous-orders-toggle-btn.open {
        border-color: var(--ecart-primary);
        background: var(--ecart-primary-tint);
        box-shadow: 0 0 0 2px rgba(1, 110, 197, 0.12);
    }
    .previous-orders-toggle-btn .toggle-arrow {
        transition: transform 0.25s ease;
        color: var(--ecart-primary);
        font-size: 12px;
    }
    .previous-orders-toggle-btn.open .toggle-arrow {
        transform: rotate(180deg);
    }
    .order-cancel-note {
        font-size: 11px;
        color: #94a3b8;
        font-style: italic;
        margin-top: 4px;
        text-align: center;
    }
    .cancel-order-btn {
        background: var(--ecart-white);
        color: var(--ecart-danger);
        border: 1.5px solid var(--ecart-danger);
        padding: 5px 14px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .cancel-order-btn:hover:not(:disabled) {
        background: var(--ecart-danger);
        color: var(--ecart-white);
    }
    .cancel-order-btn:disabled {
        background: #f1f5f9;
        color: #94a3b8;
        border-color: #cbd5e1;
        cursor: not-allowed;
    }

    /* =========================================
       ORDER PRODUCT DETAILS (Task 8 — View Detail toggle)
       ========================================= */
    .order-detail-toggle-btn {
        background: var(--ecart-white);
        border: 1.5px solid var(--ecart-border-soft);
        color: var(--ecart-text-muted);
        padding: 6px 18px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .order-detail-toggle-btn:hover {
        border-color: var(--ecart-primary);
        color: var(--ecart-primary);
    }
    .order-detail-toggle-btn .fa-chevron-down { transition: transform 0.25s ease; }
    .order-detail-toggle-btn.open .fa-chevron-down { transform: rotate(180deg); }
    .order-detail-collapse { animation: orderDetailFade 0.3s ease; }
    @keyframes orderDetailFade {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .order-items-list {
        background: var(--ecart-bg-light);
        border: 1px solid var(--ecart-border-light);
        border-radius: 12px;
        padding: 6px 14px;
        margin-top: 10px;
    }
    .order-item-detail-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px dashed var(--ecart-border-soft);
    }
    .order-item-detail-row:last-child { border-bottom: none; }
    .order-item-thumb {
        width: 52px; height: 52px;
        border-radius: 10px;
        object-fit: cover;
        border: 1px solid var(--ecart-border-soft);
        background: var(--ecart-white);
        flex-shrink: 0;
    }
    .order-item-meta { flex: 1; min-width: 0; }
    .order-item-name {
        font-weight: 700;
        color: var(--ecart-text);
        font-size: 13.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .order-item-sub { font-size: 12px; color: #718096; }
    .order-item-line-total {
        font-weight: 800;
        color: var(--ecart-text-dark);
        font-size: 13.5px;
        white-space: nowrap;
    }

    /* =========================================
       MOBILE RESPONSIVENESS (Menu Bar Style)
       ========================================= */
    @media (max-width: 991px) {
        .dashboard-sidebar {
            position: relative;
            top: 0;
            padding: 15px;
            margin-bottom: 20px;
            background: transparent;
            border: none;
            box-shadow: none;
        }
        
        .mobile-menu-wrapper {
            background: var(--ecart-white);
            border-radius: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            border: 1px solid var(--ecart-border-light);
            padding: 15px;
            margin-top: 10px;
        }
        
        .dashboard-content-card {
            padding: 20px 15px;
        }
    }

    /* Mobile-first ecommerce dashboard refresh */
    .dashboard-wrapper {
        background: #f6f8fb;
        padding: 18px 0 44px;
        min-height: calc(100vh - 74px);
    }
    .dashboard-wrapper > .container { max-width: 1180px; }
    .dashboard-wrapper .row.mb-3 { margin-bottom: 14px !important; }
    .dashboard-wrapper .row.mb-3 h3 {
        color: var(--ecart-navy) !important;
        font-size: clamp(1.35rem, 4vw, 1.75rem);
        letter-spacing: -.6px;
    }
    .dashboard-sidebar {
        top: 88px;
        border-radius: 18px;
        border: 1px solid #e5ebf2;
        box-shadow: 0 10px 28px rgba(18,35,63,.06);
        padding: 16px;
    }
    .dashboard-sidebar .mobile-menu-wrapper {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .dashboard-menu-boxes { gap: 9px; margin-top: 10px; }
    .dashboard-menu-box {
        min-height: 108px;
        border-radius: 14px;
        border-color: #e6ebf2;
        padding: 12px 8px;
    }
    .dashboard-menu-box .menu-box-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #fff0e9;
        color: var(--ecart-orange);
    }
    .dashboard-menu-box.active {
        background: var(--ecart-navy);
        border-color: var(--ecart-navy);
        box-shadow: 0 9px 20px rgba(18,35,63,.2);
    }
    .dashboard-menu-box.active .menu-box-icon { background: var(--ecart-orange); }
    .dashboard-content-card {
        border-radius: 18px;
        border-color: #e5ebf2;
        box-shadow: 0 10px 28px rgba(18,35,63,.06);
        padding: 24px;
    }
    .dashboard-content-card h5 { color: var(--ecart-navy); letter-spacing: -.3px; }
    .stat-card {
        border: 1px solid #e7ecf2;
        border-radius: 14px;
        box-shadow: none;
        min-height: 92px;
        padding: 14px;
        background: linear-gradient(145deg, var(--ecart-white), #fbfcfe);
    }
    .stat-icon.coral { background: #fff0e9; color: var(--ecart-orange); }
    .stat-icon.green { background: #eaf8f1; color: #178052; }
    .table-custom { min-width: 570px; }
    .table-custom th { background: #f6f8fb; }
    .order-status-tracker { margin-left: 0; margin-right: 0; }
    @media (max-width: 991px) {
        .dashboard-wrapper { padding-top: 12px; }
        .dashboard-sidebar {
            top: 0;
            margin-bottom: 12px;
            padding: 0;
            border: 0;
            box-shadow: none;
            background: transparent;
        }
        .dashboard-sidebar > .d-none + button {
            background: var(--ecart-navy) !important;
            border-radius: 14px !important;
            padding: 13px 16px !important;
            box-shadow: 0 8px 18px rgba(18,35,63,.16) !important;
        }
        .dashboard-sidebar .collapse.show,
        .dashboard-sidebar .collapsing { margin-top: 10px; }
        .dashboard-sidebar .mobile-menu-wrapper {
            background: var(--ecart-white);
            padding: 10px;
            border: 1px solid #e5ebf2;
            border-radius: 16px;
            box-shadow: 0 8px 22px rgba(18,35,63,.06);
        }
        .dashboard-menu-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .dashboard-content-card { padding: 18px 14px; }
        .dashboard-content-card .row.g-3 { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }
        .dashboard-content-card .row.g-4 { --bs-gutter-x: .7rem; --bs-gutter-y: .8rem; }
        .stat-card { min-height: 78px; padding: 10px; gap: 9px; }
        .stat-icon { width: 34px; height: 34px; font-size: 14px; }
        .stat-details h3 { font-size: 18px; }
        .stat-details p { font-size: 11px; }
        .order-status-tracker .tracker-label { font-size: 9px; }
        .order-status-tracker .tracker-dot { width: 32px; height: 32px; font-size: 11px; }
        .order-status-tracker::before { top: 19px; left: 20px; right: 20px; height: 3px; }
    }
    @media (max-width: 575px) {
        .dashboard-menu-box { min-height: 96px; }
        .dashboard-menu-box .menu-box-sub { font-size: 10px; }
        .dashboard-content-card h5 { font-size: 1rem; }
        .dashboard-content-card .table-responsive { margin: 0 -4px; }
        .order-status-tracker .tracker-label { max-width: 58px; }
    }

#orderMsgModal .signout-icon-ring.msg-success { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
#orderMsgModal .signout-icon-ring.msg-success i { color: #16a34a; }
#cancelOrderConfirmModal .modal-dialog { max-width: 460px; }
.cancel-reason-list { text-align: left; }
.cancel-reason-list .cancel-reason-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: var(--ecart-white);
}
.cancel-reason-list .cancel-reason-opt:hover {
    border-color: var(--ecart-primary);
    background: var(--ecart-primary-tint);
}
.cancel-reason-list .cancel-reason-opt.selected {
    border-color: var(--ecart-primary);
    background: var(--ecart-primary-tint);
    box-shadow: 0 0 0 2px rgba(1, 110, 197, 0.15);
}
.cancel-reason-list .cancel-reason-opt input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--ecart-primary);
}
.cancel-reason-list .cancel-reason-opt .opt-text {
    font-size: 13px;
    color: var(--ecart-text-dark);
    font-weight: 500;
    line-height: 1.4;
}
#cancelReasonCustomBox {
    display: none;
    margin-top: 8px;
}
#cancelReasonCustomBox textarea {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    font-size: 13px;
    resize: vertical;
}
#cancelReasonCustomBox textarea:focus {
    border-color: var(--ecart-primary);
    box-shadow: 0 0 0 2px rgba(1, 110, 197, 0.15);
    outline: none;
}
.cancel-reason-err {
    color: var(--ecart-danger);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — thank_you.css
   Order confirmation page: success icon, scale-in animation, order id box, item rows.
   ========================================================================== */
.thank-you-icon-ring {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--ecart-primary) 0%, var(--ecart-secondary-light) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        box-shadow: 0 8px 30px rgba(1, 110, 197, 0.3);
    }
    .thank-you-icon-ring i {
        font-size: 48px;
        color: var(--ecart-white);
    }
    @keyframes scaleIn {
        0% { transform: scale(0.3); opacity: 0; }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); opacity: 1; }
    }
    .animate-scale-in {
        animation: scaleIn 0.6s ease-out forwards;
    }
    @keyframes fadeUp {
        0% { transform: translateY(20px); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }
    .animate-fade-up {
        animation: fadeUp 0.5s ease-out forwards;
        opacity: 0;
    }
    .order-id-box {
        background: linear-gradient(135deg, var(--ecart-primary-tint) 0%, #ffe8e4 100%);
        border: 2px dashed var(--ecart-primary);
        border-radius: 12px;
        padding: 16px 24px;
    }
    .order-item-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .order-item-row:last-child {
        border-bottom: none;
    }


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — search.css
   Originally leftover card hover overrides — dropped in favor of global .product-item-card-wrapper rules.
   ========================================================================== */
/* search.php originally had two leftover card-hover overrides; both
   have been removed because the global .product-item-card-wrapper
   .card and :hover rules in style.css already cover the search page.
   Keeping this comment for traceability. */


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — access_denied.css
   Standalone error page (access denied). Body rule scoped to body.page-access-denied.
   ========================================================================== */
body.page-access-denied {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: linear-gradient(135deg, #fff5f2 0%, #fef9f7 100%);
            min-height: 100vh;
            display: flex; align-items: center; justify-content: center;
            margin: 0; padding: 20px;
        }
        .blocked-card {
            max-width: 540px; width: 100%;
            background: var(--ecart-white);
            border-radius: 18px;
            box-shadow: 0 20px 60px rgba(1, 110, 197, 0.15), 0 4px 12px rgba(0,0,0,0.05);
            border: 1px solid #fde4dc;
            padding: 40px 35px;
            text-align: center;
        }
        .blocked-icon {
            width: 90px; height: 90px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--ecart-primary), #f55d2c);
            color: var(--ecart-white);
            display: flex; align-items: center; justify-content: center;
            font-size: 38px;
            margin: 0 auto 22px;
            box-shadow: 0 12px 30px rgba(1, 110, 197,0.35);
            animation: accessDeniedPulse 2s ease-in-out infinite;
        }
        @keyframes accessDeniedPulse {
            0%,100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .blocked-title {
            font-size: 26px; font-weight: 800;
            color: var(--ecart-text); margin: 0 0 8px;
        }
        .blocked-subtitle {
            font-size: 15px; color: #6e6e73; margin: 0 0 20px;
            line-height: 1.55;
        }
        .block-detail-box {
            background: var(--ecart-bg-soft);
            border: 1px solid var(--ecart-border-light);
            border-radius: 12px;
            padding: 16px 18px;
            margin: 0 0 20px;
            font-size: 13.5px;
            color: var(--ecart-text-muted);
            text-align: left;
        }
        .block-detail-box .row { margin-bottom: 8px; }
        .block-detail-box .row:last-child { margin-bottom: 0; }
        .block-detail-box .k {
            color: var(--ecart-text-secondary); font-weight: 600; font-size: 11.5px;
            text-transform: uppercase; letter-spacing: 0.6px;
            margin-bottom: 3px;
        }
        .block-detail-box .v { color: var(--ecart-text); font-weight: 600; word-break: break-word; }
        .badge-permanent { background:var(--ecart-danger); color:var(--ecart-white); padding:3px 10px; border-radius:10px; font-size:11px; font-weight:700; }
        .badge-temporary { background:var(--ecart-warning); color:#5a4500; padding:3px 10px; border-radius:10px; font-size:11px; font-weight:700; }
        .badge-block-id  { background:#eef0f4; color:#3e3f5e; padding:3px 10px; border-radius:10px; font-size:11px; font-weight:700; }
        .reason-box {
            background: #fff5f2; border: 1px solid #ffd6c9;
            color: #d63a12; border-radius: 10px;
            padding: 12px 14px; font-size: 13px; font-weight: 600;
            margin: 0 0 18px; text-align: left;
        }
        .action-btn {
            display: inline-block; background: var(--ecart-primary); color: var(--ecart-white);
            padding: 10px 24px; border-radius: 25px;
            text-decoration: none; font-weight: 700; font-size: 14px;
            transition: all 0.18s ease;
        }
        .action-btn:hover { background: #f55d2c; color: var(--ecart-white); transform: translateY(-1px); }
        .footer-note {
            font-size: 11.5px; color: var(--ecart-text-secondary); margin-top: 22px;
            line-height: 1.5;
        }
        .footer-note a { color: var(--ecart-primary); text-decoration: none; font-weight: 600; }
        .footer-note a:hover { text-decoration: underline; }


/* ==========================================================================
   CONSOLIDATED PAGE STYLES — ecart_db_check.css
   Standalone DB diagnostic page. Body + table rules scoped to body.page-db-check.
   ========================================================================== */
body.page-db-check {font-family:Segoe UI,Arial,sans-serif;background:#f4f6f9;margin:0;padding:30px}
body.page-db-check .db-card {max-width:900px;margin:0 auto;background:var(--ecart-white);border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.08);padding:28px}
body.page-db-check h1 {font-size:22px;margin:0 0 6px} .sub{color:#667;font-size:14px;margin-bottom:18px}
body.page-db-check table {width:100%;border-collapse:collapse;font-size:13.5px;margin-top:8px}
body.page-db-check th, body.page-db-check td {padding:7px 10px;border-bottom:1px solid #eef0f3;text-align:left;vertical-align:top}
body.page-db-check th {background:#f8f9fb;font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;color:#556}
 .ok{color:#0a7d32;font-weight:600}.fixed{color:#b26a00;font-weight:600}.fail{color:#c62828;font-weight:600}
 .warn{color:#b26a00}
 .banner{background:#fff4e5;border:1px solid #f0c36d;border-radius:8px;padding:12px 14px;font-size:14px;margin-top:20px}
 .banner.danger{background:#fdecea;border-color:#f5b9b1}
body.page-db-check code {background:#f1f3f5;padding:2px 5px;border-radius:4px;font-size:12.5px}


/* ============================================================
   🛒 CART PAGE — Responsive Item Row Layout (Task 1 fix)
   ------------------------------------------------------------
   PROBLEM: Long product names wrap the price/remove section to
   the next line, breaking the cart list design.
   FIX: Lock the row to a 2-column flex layout — left = image +
   name/qty (truncated), right = price + remove (fixed width).
   Works for both .cart-item-row (products) and .combo-cart-item-row.
   Mobile (<576px): row stacks vertically, price/remove stays
   aligned to the right.
   ============================================================ */
.cart-item-row,
.combo-cart-item-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}
/* Left section: image + name/qty — can shrink, text truncates */
.cart-item-row > div:first-child,
.combo-cart-item-row > div:first-child {
    flex: 1 1 auto;
    min-width: 0;          /* critical: allows text truncation in flex children */
}
/* Inner name/qty container (nested flex item) — also needs min-width:0
   so the h6 product name can actually truncate instead of pushing the row. */
.cart-item-row > div:first-child > div,
.combo-cart-item-row > div:first-child > div {
    min-width: 0;
    flex: 1 1 auto;
}
/* Product name: clamp to 2 lines so very long names don't grow the row */
.cart-item-row h6,
.combo-cart-item-row h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
}
/* Right section: price + remove — fixed width, never shrinks */
.cart-item-row > .text-end,
.combo-cart-item-row > .text-end {
    flex: 0 0 auto;
    min-width: 90px;
    text-align: right !important;
    white-space: nowrap;
}
/* Product image: fixed size, don't let it shrink */
.cart-item-row img,
.combo-cart-item-row img {
    flex-shrink: 0;
}
/* Mobile (<576px): compact spacing, tighter image */
@media (max-width: 575.98px) {
    .cart-item-row,
    .comco-cart-item-row,
    .combo-cart-item-row {
        gap: 8px !important;
    }
    .cart-item-row img,
    .combo-cart-item-row img {
        width: 56px !important;
        height: 56px !important;
    }
    .cart-item-row > .text-end,
    .combo-cart-item-row > .text-end {
        min-width: 78px;
    }
}


/* ============================================================
   🏷️ KIPO ZIP BRAND LOGO — Image-based brand identity
   ------------------------------------------------------------
   Replaces the old text-based "E-Cart" / "E<span>Cart</span>" logo
   with the actual Kipo Zip logo image. Works in:
     • Desktop header (.brand-logo)
     • Mobile drawer (.drawer-brand-logo)
   Responsive: logo scales down on mobile, maintains aspect ratio.
   ============================================================ */
.brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: inherit !important;
    color: transparent !important;
}
.brand-logo img.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
/* Remove the ::after tagline that was meant for text logo */
.brand-logo::after {
    content: none !important;
    display: none !important;
}
/* Mobile responsive */
@media (max-width: 767.98px) {
    .brand-logo img.brand-logo-img {
        height: 32px;
    }
}
@media (max-width: 375px) {
    .brand-logo img.brand-logo-img {
        height: 28px;
    }
}

/* Mobile drawer brand logo (was: "O<B>" text circle) */
.mobile-left-category-drawer .drawer-brand-logo {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    overflow: hidden;
}
.mobile-left-category-drawer .drawer-brand-logo img.drawer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}
.mobile-left-category-drawer .drawer-brand-logo span {
    display: none !important;
}

/* Admin panel logo (sidebar top) — optional, if admin wants logo */
.logo-brand img.admin-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .banner-img {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

.main-img-frame > div:not(.car-dots):not(.car-counter) {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-img-frame > div:not(.car-dots):not(.car-counter) > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.main-img-frame > .car-counter {
    width: auto;
    height: auto;
    display: block;
}
.detail-description-heading { margin-bottom: 4px; }
.product-full-description > :first-child { margin-top: 0; }
.detail-share-btn { white-space: nowrap; }

@media (min-width: 768px) and (max-width: 991.98px) {
    .product-image-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center !important;
    }
    .main-img-frame {
        height: clamp(320px, 45vw, 410px);
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        padding: 12px;
    }
    .product-image-tabs + .main-img-frame {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
    .main-img-frame > div:not(.car-dots):not(.car-counter) > img {
        width: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 767.98px) {
    .detail-action-before-description { text-align: center; }
    .detail-action-before-description .add-to-bag-btn,
    .detail-action-before-description .detail-out-of-stock-btn {
        display: inline-flex;
        justify-content: center;
        max-width: 100%;
    }
}

.ecart-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 27, 45, .32);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}
.ecart-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.ecart-loading-card {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: min(360px, 100%);
    padding: 17px 22px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 16px;
    background: #fff;
    color: #192b49;
    box-shadow: 0 16px 42px rgba(18,35,63,.2);
    font-size: 14px;
    font-weight: 700;
}
.ecart-loading-spinner,
.checkout-location-spinner {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 3px solid #dce8f8;
    border-top-color: #f66a13;
    border-radius: 50%;
    animation: ecart-loader-spin .75s linear infinite;
}
.checkout-location-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    margin-right: 7px;
    vertical-align: -3px;
    border-width: 2px;
}
.checkout-location-spinner.d-none { display: none !important; }
@keyframes ecart-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .ecart-loading-overlay { transition: none; }
    .ecart-loading-spinner,
    .checkout-location-spinner { animation-duration: 1.5s; }
}

.detail-gallery-frame {
    display: block !important;
    flex: 1 1 0;
    width: auto;
    height: clamp(350px, 36vw, 500px) !important;
    min-width: 0;
    padding: clamp(12px, 2vw, 22px);
}
.detail-gallery-frame .main-image-stage {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.detail-gallery-frame .main-gallery-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    transition: none !important;
}
.product-detail-gallery .product-image-tabs {
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: center !important;
}
.product-detail-gallery .img-tab-item {
    flex: 0 0 auto;
}
.product-detail-gallery .img-tab-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-6 > .d-flex.flex-column-reverse.flex-md-row.gap-3.product-detail-gallery {
        flex-direction: column-reverse !important;
    }
    .product-detail-gallery .product-image-tabs {
        flex-direction: row !important;
        overflow-x: auto;
        justify-content: center !important;
        padding: 2px 0 5px;
    }
    .detail-gallery-frame {
        height: clamp(320px, 48vw, 440px) !important;
    }
}
@media (max-width: 991.98px) {
    .detail-gallery-frame {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}
@media (max-width: 767.98px) {
    .detail-gallery-frame {
        height: clamp(260px, 82vw, 360px) !important;
        padding: 12px;
    }
}

/* ==========================================================================
   Task 1 BUGFIX: Combo + Product detail page mobile image gallery fixes
   --------------------------------------------------------------------------
   Issues fixed:
     1. Mobile par image tabs wrap ho rahe the aur niche aa rahe the
        instead of horizontal scroll. Ab flex-nowrap + overflow-x auto.
     2. Main image frame par swipe karne se image slide nahi hoti thi
        (JS me touch handlers missing the - combo_detail.php me add kiye).
     3. Tabs par `pointer-events: auto` ensure kiya gaya taaki click
        aur touch dono kaam karein.
     4. Thumbnail tabs ko mobile par chhota kiya (52px) taaki 4-5 tabs
        ek row me fit ho sakein without wrapping.
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Main image frame: proper mobile sizing with touch-action pan-y
       so VERTICAL page scroll works natively (browser handles it),
       and HORIZONTAL swipes are left to JS (carousel + modal).
       BUGFIX: Pehle yahan pan-x tha — usse vertical page scroll block
       ho jaata tha jab user image pe touch karta tha. */
    .product-detail-gallery .main-img-frame {
        height: clamp(280px, 85vw, 380px) !important;
        padding: 10px;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    /* Image tabs: horizontal scrollable row, NO wrapping */
    .product-detail-gallery .product-image-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: center !important;
        padding: 4px 0 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,.2) transparent;
    }
    /* Smaller thumbnails on mobile so 4-5 fit in one row */
    .product-detail-gallery .img-tab-item {
        width: 54px !important;
        height: 54px !important;
        flex: 0 0 auto !important;
        pointer-events: auto;
    }
    /* Webkit scrollbar styling for tab strip */
    .product-detail-gallery .product-image-tabs::-webkit-scrollbar {
        height: 5px;
    }
    .product-detail-gallery .product-image-tabs::-webkit-scrollbar-track {
        background: #f1f3f7;
        border-radius: 3px;
    }
    .product-detail-gallery .product-image-tabs::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.25);
        border-radius: 3px;
    }
    /* Carousel dots + counter: ensure visible above image */
    .product-detail-gallery .car-dots {
        bottom: 8px;
    }
    .product-detail-gallery .car-counter {
        bottom: 8px;
        right: 10px;
    }
}

/* Very small phones (375px and below) */
@media (max-width: 375px) {
    .product-detail-gallery .img-tab-item {
        width: 46px !important;
        height: 46px !important;
    }
    .product-detail-gallery .main-img-frame {
        height: clamp(240px, 80vw, 320px) !important;
    }
}


/* ============================================================
   FULLSCREEN IMAGE MODAL (image-modal.js)
   Tap on main product/combo image opens this fullscreen viewer.
   Inside: pinch-zoom, double-tap zoom, pan, swipe between images,
   bottom thumbnail strip showing ALL images with current one
   highlighted.
   ============================================================
   🆕 Bug #3 fix: Background changed from dark (rgba(0,0,0,0.97))
   to pure white (#ffffff) per user request. All UI elements
   (counter, close button, nav arrows, hint, thumbnail strip)
   re-styled for dark-on-light contrast.
   ============================================================ */
.ecart-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    /* 🆕 White background (was dark) — matches Amazon main-image
       requirement of pure-white #ffffff background. */
    background: #ffffff;
    color: #1f2937;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.ecart-image-modal.ecart-modal-open { display: block; }

.ecart-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: zoom-out;
}

.ecart-image-modal-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    z-index: 10;
    /* 🆕 Subtle white→transparent gradient (was dark) — keeps topbar
       readable over white background while preserving depth. */
    background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.ecart-image-modal-topbar > * { pointer-events: auto; }
.ecart-image-modal-counter {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* 🆕 Light pill with dark text (was dark pill with white text) */
    background: #f3f4f6;
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}
.ecart-image-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    /* 🆕 Light button with dark icon (was dark button with white icon) */
    background: #ffffff;
    color: #1f2937;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ecart-image-modal-close:hover {
    background: #f3f4f6;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ecart-image-modal-stage {
    position: absolute;
    /* 🆕 Inset adjusted: leave room at the bottom for the thumbnail
       strip (96px on desktop, 76px on mobile). Without this, the
       stage image would overlap the thumbs strip. */
    inset: 56px 0 96px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none; /* we handle all gestures ourselves */
}
.ecart-image-modal-stage.is-panning { cursor: grabbing; }
.ecart-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.18s ease-out;
    pointer-events: none;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}
.ecart-modal-zoomed .ecart-image-modal-img {
    transition: none; /* smooth transition lags during pinch/pan */
}

.ecart-image-modal-nav {
    position: absolute;
    top: calc(50% - 20px); /* 🆕 Offset for thumb strip at bottom */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    /* 🆕 Light nav button (was dark) */
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ecart-image-modal-nav:hover {
    background: #f3f4f6;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ecart-image-modal-prev { left: 14px; }
.ecart-image-modal-next { right: 14px; }

.ecart-image-modal-hint {
    position: absolute;
    /* 🆕 Position above the thumbnail strip (was bottom: 24px) */
    bottom: 108px;
    left: 50%;
    transform: translateX(-50%);
    /* 🆕 Light pill with dark text (was dark pill with white text) */
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ecart-image-modal-hint.visible { opacity: 0.92; }

/* ============================================================
   🆕 BOTTOM THUMBNAIL STRIP (Bug #2 fix)
   Shows all gallery images horizontally with current one highlighted.
   Pattern: Amazon / Flipkart mobile image viewer.
   ============================================================ */
.ecart-image-modal-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 88px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    z-index: 11;
    /* Hide scrollbar on Webkit but keep functional */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.ecart-image-modal-thumbs::-webkit-scrollbar {
    height: 6px;
}
.ecart-image-modal-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.ecart-image-modal-thumbs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}
.ecart-image-modal-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    position: relative;
}
.ecart-image-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
.ecart-image-modal-thumb:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}
.ecart-image-modal-thumb.active {
    /* 🆕 Active thumb: bold coral border (matches site accent) + subtle shadow */
    border-color: #ff6b6b;
    box-shadow: 0 0 0 1px #ff6b6b, 0 2px 6px rgba(255, 107, 107, 0.25);
}
.ecart-image-modal-thumb.active::after {
    /* Small "now viewing" indicator dot under active thumb */
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b6b;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .ecart-image-modal-nav { display: none; /* mobile uses swipe */ }
    .ecart-image-modal-hint { font-size: 11px; padding: 6px 12px; bottom: 96px; }
    .ecart-image-modal-counter { font-size: 12px; padding: 3px 10px; }
    .ecart-image-modal-close { width: 36px; height: 36px; font-size: 16px; }
    /* 🆕 Mobile: smaller thumb strip + smaller thumbs so 4-5 fit on screen */
    .ecart-image-modal-thumbs {
        height: 76px;
        padding: 8px 10px;
        gap: 8px;
    }
    .ecart-image-modal-thumb {
        width: 52px;
        height: 52px;
    }
    .ecart-image-modal-stage {
        inset: 50px 0 76px 0;
    }
}

/* ============================================================
   🆕 DYNAMIC CATEGORY SECTION DESIGN (Flipkart / Amazon / Blinkit style)
   ============================================================
   Yeh styles tab apply hote hain jab admin ne kisi category ke
   section ke liye custom design enable kiya hai. Default theme
   (without these classes) bilkul intact rehta hai.

   Reference designs:
   - Flipkart: solid color blocks + gradient banners (Big Billion Days red)
   - Amazon:   clean light cards over subtle imagery
   - Blinkit:  solid bg per category with strong text contrast
   ============================================================ */

/* Wrapper around an entire category section when custom design is on */
.csd-section {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    transition: background 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

/* Overlay pseudo-element for image backgrounds — provides dark layer
   so text stays readable over photographic backgrounds. */
.csd-section.csd-has-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* default fallback */
    pointer-events: none;
    z-index: 0;
}

/* Per-section overlay color customization (data-overlay attribute) */
.csd-section.csd-has-overlay[data-overlay]::before {
    background: attr(data-overlay color, rgba(0, 0, 0, 0.45));
}

/* Fallback for browsers that don't support attr() for color — use JS-driven
   inline overlay if needed. Most modern browsers (Chrome 89+) support this. */

/* All children sit above the overlay layer */
.csd-section.csd-has-overlay > * {
    position: relative;
    z-index: 1;
}

/* Header section: title + see-more-btn row */
.csd-section-header {
    flex-wrap: wrap;
    gap: 8px;
}

/* Section title text size adjustments on dark backgrounds */
.csd-section-grid-dark .category-block-title {
    color: #ffffff;
}
.csd-section-grid-dark .category-see-more-btn {
    color: #ffffff !important;
}
.csd-section-grid-dark .category-see-more-btn:hover {
    text-decoration: underline;
}

/* Badge (e.g. "Hot", "Sale", "New") — appears next to or above section title */
.csd-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    line-height: 1.2;
}

.csd-badge-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.csd-badge-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.csd-badge-inline {
    /* inline default - already styled by .csd-badge */
}

/* ===== CARD variants (apply to product cards inside a designed section) ===== */

/* Light card: subtle white with soft shadow on dark/gradient sections */
.csd-section .card.csd-card-light {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.csd-section .card.csd-card-light .product-main-title {
    color: #111827 !important;
}

.csd-section .card.csd-card-light .selling-price,
.csd-section .card.csd-card-light .mrp-slashed-price {
    color: #111827;
}

/* Dark card: dark gray with white text (for light bg sections) */
.csd-section .card.csd-card-dark {
    background-color: #1f2937;
    color: #ffffff;
    border: 1px solid #374151;
}

.csd-section .card.csd-card-dark .product-main-title {
    color: #ffffff !important;
}

.csd-section .card.csd-card-dark .selling-price {
    color: #fbbf24;
}

.csd-section .card.csd-card-dark .mrp-slashed-price {
    color: #9ca3af;
}

.csd-section .card.csd-card-dark .btn-custom-theme {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #1f2937;
}

/* Glass card: semi-transparent with backdrop blur — modern premium look */
.csd-section .card.csd-card-glass {
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.csd-section .card.csd-card-glass .product-main-title {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.csd-section .card.csd-card-glass .selling-price {
    color: #ffffff;
    font-weight: 800;
}

.csd-section .card.csd-card-glass .mrp-slashed-price {
    color: rgba(255, 255, 255, 0.7);
}

.csd-section .card.csd-card-glass .btn-custom-theme {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.csd-section .card.csd-card-glass .card-img-top-box {
    background: rgba(255, 255, 255, 0.92);
}

/* Bordered card: clean white with bold accent border */
.csd-section .card.csd-card-bordered {
    background-color: #ffffff;
    color: #111827;
    border: 2px solid #ff7641;
    border-radius: 12px;
}

.csd-section .card.csd-card-bordered .product-main-title {
    color: #111827 !important;
}

/* ===== Responsive tweaks for designed sections ===== */
@media (max-width: 767.98px) {
    .csd-section {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .csd-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .csd-section .card.csd-card-glass {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}

/* Smooth hover lift for cards inside designed sections */
.csd-section .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.csd-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

/* Section entrance animation (subtle fade-up on scroll-into-view) */
.csd-section {
    animation: csd-fade-up 0.55s ease-out both;
}

@keyframes csd-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .csd-section {
        animation: none;
    }
    .csd-section .card {
        transition: none;
    }
}

/* ============================================================
   🆕 v2 ADDITIONS: Festival Design + Strip Design + See-More Btn
   ============================================================ */

/* ===== Category Strip (all-categories grid below slider) =====
   Applies when admin enables strip design from category_strip_design.php */
.csd-strip-section {
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, box-shadow 0.3s ease;
    animation: csd-fade-up 0.55s ease-out both;
}

.csd-strip-section.csd-has-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 0;
}

.csd-strip-section.csd-has-overlay[data-overlay]::before {
    /* Overlay color is set via inline data-overlay attribute — JS can read it */
    background: var(--csd-overlay-color, rgba(0, 0, 0, 0.45));
}

.csd-strip-section.csd-has-overlay > * {
    position: relative;
    z-index: 1;
}

.csd-strip-title {
    /* Optional title above the strip (admin-set text) */
}

/* On dark strip bg, make category icon boxes brighter for visibility */
.csd-strip-section.csd-has-overlay .custom-category-img-box,
.csd-strip-section[style*="linear-gradient"] .custom-category-img-box,
.csd-strip-section[style*="radial-gradient"] .custom-category-img-box {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.csd-strip-section.csd-has-overlay .custom-category-grid-wrapper a span,
.csd-strip-section[style*="linear-gradient"] a span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== See-More button (custom styled with admin-set colors) ===== */
.csd-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    line-height: 1.2;
}

.csd-see-more-btn:hover {
    transform: translateX(2px);
    opacity: 0.9;
    text-decoration: none;
}

.csd-see-more-btn i {
    transition: transform 0.2s ease;
}

.csd-see-more-btn:hover i {
    transform: translateX(3px);
}

/* ===== Festival Section (custom design applied) =====
   Festival blocks can have custom design just like category sections.
   Same .csd-section classes work for them too. */
.festival-special-section.csd-section {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.festival-special-section.csd-section .festival-banner-strip {
    border-radius: 12px;
    margin-bottom: 10px;
}

/* When festival has gradient/image bg, soften the inner banner for contrast */
.festival-special-section.csd-section[style*="linear-gradient"] .festival-banner-strip,
.festival-special-section.csd-section[style*="radial-gradient"] .festival-banner-strip,
.festival-special-section.csd-section.csd-has-overlay .festival-banner-strip {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Festival block on dark bg — adjust ribbons */
.festival-special-section.csd-section.csd-has-overlay .festival-product-ribbon,
.festival-special-section.csd-section[style*="linear-gradient"] .festival-product-ribbon {
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
}

/* ===== Card variants in festival section (same as category section) ===== */
.festival-special-section.csd-section .card.csd-card-light,
.festival-special-section.csd-section .card.csd-card-dark,
.festival-special-section.csd-section .card.csd-card-glass,
.festival-special-section.csd-section .card.csd-card-bordered {
    /* Inheriting all the existing card variant styles from .csd-section .card.* */
    /* (no need to redefine — selectors above already cover this) */
}

/* Mobile tweaks for new sections */
@media (max-width: 767.98px) {
    .csd-strip-section {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .festival-special-section.csd-section {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .csd-see-more-btn {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
}

/* ============================================================
   🆕 REVIEW & RATING SYSTEM — frontend styles
   Matches the existing coral theme (#ff6f61) used across the site.
   Used by:
   - product cards (rating chip)
   - product detail page (rating summary + reviews list)
   - dashboard "Rate & Review" button + modal form
   ============================================================ */

/* Star display components */
.review-stars {
    display: inline-flex;
    align-items: center;
    color: #f5a623;
    letter-spacing: 1px;
    line-height: 1;
}
.review-stars .fas,
.review-stars .far { font-size: 1em; }
.review-stars.review-stars-sm { font-size: 0.78rem; }
.review-stars.review-stars-lg { font-size: 1.4rem; letter-spacing: 2px; }

/* Rating chip shown on product cards */
.product-card-rating-row {
    position: absolute;
    z-index: 3;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.14);
    font-size: 0.66rem;
    color: #6c757d;
}
.product-item-card-wrapper .card-img-top-box .product-card-rating-row {
    position: absolute;
    right: 8px;
}
.product-card-rating-row .product-card-rating-star {
    color: #f5a623;
    font-size: 0.7rem;
}
.product-card-rating-row .product-card-rating-text {
    color: #ff6f61;
    font-weight: 700;
    line-height: 1;
}
.product-card-rating-row .product-card-rating-count {
    color: #999;
    font-size: 0.7rem;
}
.product-card-rating-row:empty { display: none; }

/* Product detail page — reviews section */
.product-reviews-section {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #eef0f4;
}
.product-reviews-section .detail-description-heading {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.reviews-summary-block {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #fff7f4 0%, #fff 100%);
    border: 1px solid #ffe1d8;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}
.reviews-summary-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 140px;
}
.reviews-avg-big {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ff6f61;
    line-height: 1;
}
.reviews-avg-star {
    display: inline-flex;
    align-items: center;
    color: #f5a623;
    font-size: 1rem;
    line-height: 1;
}
.reviews-summary-score > .reviews-avg-star {
    margin-top: -1px;
}
.reviews-count-line {
    font-size: 0.8rem;
    color: #6c757d;
}

.reviews-distribution {
    flex: 1 1 110px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}
.reviews-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #6c757d;
}
.reviews-dist-star {
    width: 28px;
    color: #f5a623;
    font-weight: 700;
}
.reviews-dist-bar-wrap {
    flex: 1;
    height: 8px;
    background: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}
.reviews-dist-bar {
    height: 100%;
    background: linear-gradient(90deg, #f5a623, #ff6f61);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.reviews-dist-count {
    width: 28px;
    text-align: right;
    color: #6c757d;
}

/* Reviews list */
.reviews-list-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review-item-card {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    transition: box-shadow 0.15s ease;
}
.review-item-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.review-item-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.review-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6f61, #ff8a72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.review-item-meta { flex: 1; min-width: 0; }
.review-item-name {
    font-weight: 700;
    color: #2c2c2c;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e8f7e0;
    color: #4b9e2f;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}
.review-item-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.review-item-date {
    font-size: 0.72rem;
    color: #999;
}
.review-item-text {
    color: #4a4a4a;
    font-size: 0.88rem;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.reviews-more-hint {
    text-align: center;
    padding-top: 12px;
    border-top: 1px dashed #eef0f4;
}

.reviews-expand-control {
    border-top: 1px solid #eef0f4;
    padding-top: 12px;
}
.reviews-expand-control > summary {
    width: fit-content;
    color: #ff6f61;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.reviews-expand-control > summary::-webkit-details-marker { display: none; }
.reviews-expand-control > summary::after {
    content: ' \25BC';
    font-size: 0.7em;
}
.reviews-expand-control[open] > summary::after { content: ' \25B2'; }
.reviews-expand-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.reviews-empty-state {
    text-align: center;
    padding: 36px 20px;
    border: 1px dashed #eef0f4;
    border-radius: 14px;
    background: #fafbfc;
}
.reviews-empty-state i {
    font-size: 2.6rem;
    color: #d8d8d8;
    margin-bottom: 10px;
}
.reviews-empty-state h6 {
    color: #6c757d;
    margin-bottom: 4px;
}

/* Dashboard — order item rate button */
.order-item-rate-btn {
    color: #ff6f61;
    border-color: #ff6f61;
    background: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    transition: all 0.15s ease;
}
.order-item-rate-btn:hover {
    background: #ff6f61;
    color: #fff;
}
.order-item-rate-btn.review-submitted {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
    opacity: 0.85;
}
.btn-outline-coral {
    color: #ff6f61;
    border-color: #ff6f61;
    background: #fff;
}
.btn-outline-coral:hover {
    background: #ff6f61;
    color: #fff;
    border-color: #ff6f61;
}

/* Review form (inside modal) */
.review-star-input {
    display: inline-flex;
    gap: 6px;
    font-size: 1.6rem;
    color: #ccc;
    user-select: none;
    cursor: pointer;
}
.review-star-input .review-star-pick {
    transition: color 0.1s ease, transform 0.1s ease;
    line-height: 1;
}
.review-star-input .review-star-pick:hover,
.review-star-input .review-star-pick.is-hover {
    transform: scale(1.1);
}
.review-star-input .review-star-pick.is-on,
.review-star-input .review-star-pick.is-hover {
    color: #f5a623;
}
.review-star-input .review-star-pick:focus {
    outline: 2px solid #ff6f61;
    outline-offset: 2px;
    border-radius: 4px;
}

#reviewTextInput {
    resize: vertical;
    min-height: 90px;
    font-size: 0.92rem;
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
    .reviews-summary-block {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .reviews-summary-score {
        flex-direction: row;
        align-items: center;
        gap: 7px;
        min-width: 0;
    }
    .reviews-distribution {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
    .reviews-avg-big { font-size: 1.8rem; }
    .reviews-summary-score .review-stars.review-stars-lg { font-size: 1rem; letter-spacing: 1px; }
    .reviews-count-line { font-size: 0.7rem; }
    .review-item-card { padding: 12px; }
    .review-star-input { font-size: 1.4rem; }
}
