/* ============================================================
   PayPanda Store — Main Stylesheet  (Full Rebrand)
   ──────────────────────────────────────────────────────────
   Brand
     Blue (Primary)  : #2E3190
     Blue Dark       : #1C1F6B
     Blue Pale       : #F0F2FF
     Green (CTA)     : #8CC540
     Green Dark      : #5E9A1E
     Green Pale      : #EEF7DA
     Purple (Accent) : #6B3FA0
     Purple Pale     : #F2ECF9
   Neutrals  (all brand-new, none recycled from old file)
     Text Primary    : #1A1A2E   ← deep navy (was #374151)
     Text Dark       : #0D0F2B   ← near-black navy (was #111827 / #1f2937)
     Text Muted      : #5A5F7A   ← slate-navy (was #6b7280)
     Placeholder     : #8890B5   ← blue-tinted (was #9ca3af)
     Border Default  : #D8DCF0   ← blue-tinted border (was #e5e7eb)
     Border Light    : #ECEFFE   ← very light blue (was #f3f4f6)
     Surface         : #F7F8FF   ← cool white (was #f9fafb)
     Page Bg         : #F4F5FF   ← off-white blue (was #f3f4f6 grey)
     Topbar          : #12153A   ← darkest navy (was #203040)
     Skeleton        : #D2D5EC   ← blue-gray (was #e5e7eb / #eee)
     Error           : #C0392B   ← deep red (was #ef4444 / #dc2626)
   ============================================================ */

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

:root {
    /* Brand */
    --primary:         #2E3190;
    --primary-dull:    #1C1F6B;
    --primary-light:   rgba(46, 49, 144, 0.07);
    --primary-pale:    #F0F2FF;

    --green:           #8CC540;
    --green-dull:      #5E9A1E;
    --green-pale:      #EEF7DA;

    --purple:          #6B3FA0;
    --purple-pale:     #F2ECF9;

    /* Neutrals — all new values */
    --text:            #1A1A2E;
    --text-dark:       #0D0F2B;
    --text-muted:      #5A5F7A;
    --placeholder:     #8890B5;
    --border:          #D8DCF0;
    --border-light:    #ECEFFE;
    --surface:         #F7F8FF;
    --page-bg:         #F4F5FF;
    --topbar-bg:       #12153A;
    --skel:            #D2D5EC;
    --error:           #C0392B;
}

body {
    font-family: 'Outfit', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
}

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

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

button {
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
}


/* ── UTILITIES ── */

.c-primary { color: var(--primary); }
.c-green   { color: var(--green);   }
.c-purple  { color: var(--purple);  }

.go-to-cart-btn {
    background: #fff !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
}

.go-to-cart-btn:hover {
    background: var(--primary-pale) !important;
}


/* ── SPINNER ── */

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

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


/* ── TOP BAR ── */

#header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar {
    background: var(--topbar-bg);
    color: #B8BDD8;
    font-size: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-height: 40px;
    transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
    z-index: 51;
}

.topbar.topbar-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

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

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-contact-icon {
    color: var(--green);
    font-size: 11px;
}

.topbar-right {
    display: none;
    align-items: center;
    gap: 24px;
    font-weight: 500;
    font-size: 13px;
}

.topbar-right a:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .topbar-right {
        display: flex;
    }
}


/* ── NAVBAR ── */

.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.navbar-upper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 96px;
    height: 32px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .logo img {
        width: 128px;
        height: 40px;
    }
}

@media (min-width: 768px) {
    .logo img {
        width: 160px;
        height: 48px;
    }
}

.desktop-search {
    display: none;
    align-items: center;
    flex: 1;
    max-width: 600px;
    margin: 0 32px;
    background: var(--surface);
    border-radius: 9999px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 14px;
    border: 1.5px solid transparent;
    transition: border-color .2s;
    position: relative;
}

.desktop-search:focus-within {
    border-color: var(--primary);
}

.desktop-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text);
}

.desktop-search input::placeholder {
    color: var(--placeholder);
}

@media (min-width: 768px) {
    .desktop-search {
        display: flex;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 1024px) {
    .nav-right {
        gap: 16px;
    }
}

.mobile-search-btn {
    display: flex;
    background: none;
    border: none;
    font-size: 18px;
    padding: 4px;
    color: var(--text);
}

@media (min-width: 768px) {
    .mobile-search-btn {
        display: none;
    }
}

.cart-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px;
}

.cart-label {
    display: none;
    font-size: 14px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .cart-label {
        display: block;
    }
}

.cart-icon-wrap {
    position: relative;
}

.cart-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.wallet-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: var(--green-pale);
    color: var(--green-dull);
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .wallet-badge {
        font-size: 13px;
    }
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: background .2s;
    margin-left: 8px;
    text-decoration: none;
}

.login-btn:hover {
    background: var(--primary-dull);
}

@media (min-width: 640px) {
    .login-btn {
        padding: 8px 24px;
        font-size: 14px;
    }
}


/* ── PROFILE / DROPDOWN ── */

.profile-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.2s;
}

.profile-avatar:hover {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(46, 49, 144, 0.14);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.profile-dropdown.open,
.profile-dropdown.active {
    display: block;
}

@media (max-width: 480px) {
    .profile-dropdown {
        width: min(260px, calc(100vw - 32px));
        right: -8px;
    }
}

.profile-dropdown-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border-light);
    cursor: default;
    background: var(--primary-pale);
}

.profile-dropdown-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-dropdown-id {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-dropdown-wallets {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
}

.wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
    white-space: nowrap;
    gap: 12px;
}

.wallet-row span {
    font-weight: 700;
    color: var(--green-dull);
}

.profile-dropdown-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
}

.profile-dropdown-action:hover {
    background: var(--primary-pale);
    color: var(--primary);
}

.profile-action-icon {
    font-size: 15px;
}

.profile-dropdown li {
    list-style: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .15s;
}

.profile-dropdown li:hover {
    background: var(--primary-pale);
}

.profile-dropdown li.red {
    padding: 16px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--error);
    cursor: pointer;
    border-top: 1px solid var(--border-light);
    transition: background 0.15s;
}

.profile-dropdown li.red:hover {
    background: #FDF0EE;
}

.points-badge {
    display: inline-block;
    background: var(--purple-pale);
    color: var(--purple);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 6px 0;
}


/* ── MOBILE SEARCH ── */

.mobile-search-row {
    display: none;
    padding: 0 16px 8px;
    position: relative;
}

.mobile-search-row.open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-search-row {
        display: none !important;
    }
}

.mobile-search-row input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
}

.mobile-search-row input:focus {
    border-color: var(--primary);
}

.mobile-search-row .clear-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
}


/* ── BOTTOM NAVBAR ── */

.navbar-bottom {
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(46, 49, 144, 0.09);
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .navbar-bottom {
        gap: 40px;
    }
}

.cat-btn-wrap {
    position: relative;
}

.cat-trigger {
    display: flex;
    align-items: center;
    background: var(--primary-pale);
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding-right: 20px;
    color: var(--primary);
    transition: background .2s, color .2s;
}

.cat-trigger:hover {
    background: var(--primary);
    color: #fff;
}

.cat-trigger:hover .cat-icon-circle {
    background: var(--primary-dull);
}

.cat-icon-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-right: 12px;
    transition: background .2s;
    flex-shrink: 0;
}

.cat-arrow {
    font-size: 11px;
    margin-left: 4px;
}

.cat-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 256px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(46, 49, 144, 0.13);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    border: 1px solid var(--border-light);
}

.cat-dropdown-menu.open {
    display: block;
}

.cat-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: background .15s, color .15s;
    color: var(--text);
}

.cat-dropdown-menu a:last-child {
    border-bottom: none;
}

.cat-dropdown-menu a:hover {
    background: var(--primary-pale);
    color: var(--primary);
}

.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text);
    padding: 4px;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.desktop-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .desktop-nav-links {
        display: flex;
    }
}

.desktop-nav-links a:hover,
.desktop-nav-links a.active {
    color: var(--primary);
}

.mobile-nav-menu {
    display: none;
    padding: 0 16px 16px;
    font-size: 14px;
    font-weight: 500;
}

.mobile-nav-menu.open {
    display: block;
}

.mobile-nav-menu a {
    display: block;
    padding: 8px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu a:hover {
    color: var(--primary);
}


/* ── SEARCH RESULTS DROPDOWN ── */

.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(46, 49, 144, 0.13);
    z-index: 2000;
    scrollbar-width: none;
}

.search-results-dropdown::-webkit-scrollbar {
    display: none;
}

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

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

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

.search-result-item:hover {
    background: var(--primary-pale);
}

.search-result-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--surface);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.search-result-offer {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.search-result-mrp {
    font-size: 11.5px;
    color: var(--placeholder);
    text-decoration: line-through;
}

.search-no-results,
.search-loading {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.search-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
}

.search-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: search-spin 0.6s linear infinite;
}

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


/* ── MAIN BANNER SECTION ── */

.banner-section {
    background: var(--page-bg);
    padding: 40px 16px;
}

.slider-outer {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.slider-desktop {
    display: none;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .slider-desktop {
        display: block;
    }
}

.slider-ghost {
    width: 100%;
    opacity: 0;
    pointer-events: none;
    display: block;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 3s ease-in-out;
    opacity: 0;
    z-index: 0;
}

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

.slider-mobile {
    display: block;
}

@media (min-width: 768px) {
    .slider-mobile {
        display: none;
    }
}

.slider-mobile img {
    width: 100%;
    display: block;
}

.slider-mobile-caption {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0 16px;
}

.slider-prev,
.slider-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 20;
    opacity: 0;
    transition: opacity .3s;
    cursor: pointer;
}

.slider-outer:hover .slider-prev,
.slider-outer:hover .slider-next {
    opacity: 1;
}

@media (min-width: 768px) {
    .slider-prev { display: flex; left: 16px; }
    .slider-next { display: flex; right: 16px; }
}

.slider-dots {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 20;
}

@media (min-width: 768px) {
    .slider-dots {
        display: flex;
    }
}

.dot {
    height: 10px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all .3s;
    background: rgba(255, 255, 255, 0.55);
    width: 10px;
}

.dot.active {
    background: var(--green);
    width: 26px;
}


/* ── SERVICES BAR ── */

.services-bar {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(46, 49, 144, 0.09);
    padding: 28px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    border: 1px solid var(--border-light);
}

@media (min-width: 1024px) {
    .services-bar {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 8px;
}

@media (min-width: 1024px) {
    .service-item {
        border-right: 1px solid var(--border-light);
    }
    .service-item:last-child {
        border-right: none;
    }
}

.service-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-item h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.service-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}


/* ── CATEGORY BANNERS ── */

.cat-banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 0;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .cat-banners {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-banner-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 49, 144, 0.12);
    cursor: pointer;
    height: 180px;
}

.cat-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.cat-banner-card:hover img {
    transform: scale(1.05);
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 32px;
}

.cat-banner-overlay h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

.cat-banner-overlay p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cat-banner-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
    width: fit-content;
}

.cat-banner-btn:hover {
    background: var(--green);
    color: #fff;
}


/* ── PRODUCTS SECTION ── */

.products-section {
    margin-top: 26px;
    padding: 0 16px;
}

.section-heading {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .section-heading {
        font-size: 30px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

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


/* ── PRODUCT CARD ── */

.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 8px 28px rgba(46, 49, 144, 0.13);
    transform: translateY(-3px);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.img-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--green);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    line-height: 1;
    text-align: center;
    padding: 0 2px;
}

@media (min-width: 640px) {
    .img-discount {
        width: 38px;
        height: 38px;
        font-size: 11px;
        top: 10px;
        left: 10px;
    }
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.product-card:hover .product-card-img img,
.product-card:hover img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 8px;
}

@media (min-width: 640px) {
    .product-card-body {
        padding: 12px;
    }
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.product-stars img {
    width: 14px;
    height: 14px;
}

.product-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

@media (min-width: 640px) {
    .product-name {
        font-size: 14px;
        white-space: nowrap;
        -webkit-line-clamp: unset;
        min-height: 0;
        text-overflow: ellipsis;
    }
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px;
}

.offer-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.orig-price {
    font-size: 12px;
    color: var(--placeholder);
    text-decoration: line-through;
}

.product-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 10px;
    padding: 7px 12px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}

.product-add-btn:hover {
    background: var(--green-dull);
}

.product-add-btn img {
    width: 16px;
    height: 16px;
}


/* ── FOOTER BANNER / GIFTING ── */

.footer-banner {
    width: 100%;
    margin: 40px 0;
}

.footer-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.gifting-banner {
    position: relative;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0 16px;
    line-height: 0;
}

.gifting-banner img {
    width: 100%;
    object-fit: contain;
}


/* ── FOOTER ── */

footer {
    margin-top: 24px;
    background: var(--primary-pale);
    padding: 0 16px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px;
    }
}

.footer-brand {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .footer-brand {
        width: 30%;
    }
}

.footer-logo-img {
    width: 160px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.footer-desc {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 400px;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
    justify-content: space-between;
}

.footer-col h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
        row-gap: 24px;
    }
    .footer-col h3 {
        margin-bottom: 8px;
    }
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color .15s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-copy {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}


/* ── LOGIN MODAL ── */

.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 15, 43, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-modal-overlay.open {
    display: flex;
}

.login-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 24px 60px rgba(46, 49, 144, 0.22);
    animation: modalPop .25s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
}

.login-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-modal-form label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-top: 10px;
}

.login-modal-form input {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    color: var(--text);
    background: var(--surface);
    transition: border-color .2s;
}

.login-modal-form input:focus {
    border-color: var(--primary);
    background: #fff;
}

.login-modal-form input::placeholder {
    color: var(--placeholder);
}

.login-modal-submit {
    margin-top: 18px;
    padding: 11px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s;
}

.login-modal-submit:hover {
    background: var(--primary-dull);
}

.login-modal-footer {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
}

.login-modal-footer a {
    color: var(--primary);
    font-weight: 600;
}


/* ── SKELETON / LOADING ── */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .45; }
}

@keyframes skeleton-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0   50%; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--skel)      25%,
        var(--border)    37%,
        var(--skel)      63%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 8px;
}

.skel-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.skel-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--skel);
    animation: pulse 1.5s ease-in-out infinite;
}

.skel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skel-line {
    height: 12px;
    background: var(--skel);
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

.skel-line.short {
    width: 60%;
}

.skel-btn {
    height: 32px;
    background: var(--skel);
    border-radius: 6px;
    animation: pulse 1.5s ease-in-out infinite;
    margin-top: 4px;
}


/* ── THUMBNAIL STRIP ── */

.thumb-strip::-webkit-scrollbar {
    width: 4px;
}

.thumb-strip::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}