@import url('vendor/inter.css');

:root, [data-theme="dark"] {
    /* OfflyKart Global Typography System */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --primary: #121212;
    --secondary: #1F2937;
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --text: #F3F4F6;
    --text-light: #9CA3AF;
    --card-bg: #1F2937;
    --card-hover: #374151;
    --border: #374151;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.2);
    --transition: 0.25s ease;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --nav-search-bg: #1F2937;
    --nav-search-border: #374151;
    --hero-start: #1F2937;
    --hero-end: #121212;
    --stat-bg: #1F2937;
    --sidebar-bg: #1F2937;
    --active-menu: #3B82F6;
    --input-bg: #1F2937;
}

[data-theme="light"] {
    --primary: #FFFFFF;
    --secondary: #F8F9FA;
    --accent: #2F80ED;
    --accent-light: #5B9CF6;
    --text: #111827;
    --text-light: #6B7280;
    --card-bg: #F8F9FA;
    --card-hover: #F0F1F3;
    --border: #E5E7EB;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #2F80ED;
    --shadow: 0px 4px 15px rgba(0,0,0,0.08);
    --shadow-sm: 0px 2px 8px rgba(0,0,0,0.05);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-search-bg: #F3F4F6;
    --nav-search-border: #E5E7EB;
    --hero-start: #EFF6FF;
    --hero-end: #DBEAFE;
    --stat-bg: #F8F9FA;
    --sidebar-bg: #F8F9FA;
    --active-menu: #2F80ED;
    --input-bg: #F3F4F6;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
    color: var(--text);
}

h1 { font-size: 3.25rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.5rem;   font-weight: 600; line-height: 1.35; }

/* Marketing & Hero Typography (Playfair Display) */
.hero h1,
.hero-title,
.marketing-title,
.promo-title,
.brand-story h2,
.editorial-heading {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-primary); font-weight: 600; font-size: 1rem; }
input, textarea, select { font-family: var(--font-primary); font-size: 1rem; }

::-webkit-scrollbar { width: 8px; }
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, canvas, iframe, svg {
    max-width: 100%;
    height: auto;
}

.container { max-width: 1440px; width: 100%; margin: 0 auto; padding: 0 24px; }

/* Main page content — offset for fixed navbar */
.main-content {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Table scroll wrapper — prevents body overflow on narrow screens */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

/* Navbar Location Indicator Pill */
.nav-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--secondary, rgba(0,0,0,0.04));
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 220px;
    cursor: pointer;
    user-select: none;
}

.nav-location-pill:hover {
    background: var(--card-hover, rgba(0,0,0,0.08));
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    opacity: 1;
}

.nav-location-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .nav-location-pill {
        padding: 4px 10px;
        font-size: 0.75rem;
        max-width: 140px;
    }
}    flex-shrink: 0;
}

.nav-logo img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-logo .slide-text {
    display: inline-block;
    opacity: 0;
    white-space: nowrap;
    position: relative;
    z-index: -1;
    transform: translateX(-20px);
}

.footer-logo img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
}

/* ── Homepage Search Bar (Bold Premium Pill Redesign) ── */
.home-search {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    cursor: pointer;
}
.home-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #374151;
    pointer-events: none;
    z-index: 2;
    transition: color .2s;
}
.home-search-input {
    width: 100%;
    height: 58px;
    padding: 0 24px 0 56px;
    background: #ffffff;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    color: #111111;
    font-size: 1.05rem;
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}
.home-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(105,117,101,0.18), 0 8px 30px rgba(0,0,0,0.12);
}
.home-search-input:focus ~ .home-search-icon,
.home-search-input:focus + .home-search-icon { color: var(--accent); }
.home-search-input::placeholder {
    color: #4B5563;
    font-family: var(--font-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 1;
}
.section-search { padding: 28px 0 20px; }

/* ── Homepage Local Search Dropdown ── */
.search-shop-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}
.search-shop-dropdown.active {
    display: block;
}
.search-shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    border-bottom: 1px solid #f0f0f0;
}
.search-shop-item:last-child {
    border-bottom: none;
}
.search-shop-item:hover,
.search-shop-item.highlighted {
    background: #f7f7f9;
}
.search-shop-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--secondary);
}
.search-shop-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}
.search-shop-info {
    flex: 1;
    min-width: 0;
}
.search-shop-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-shop-verified {
    display: inline-flex;
    align-items: center;
    color: #1da1f2;
    font-size: .7rem;
}
.search-shop-meta {
    font-size: .75rem;
    color: var(--text-light);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.search-shop-meta .rating {
    color: var(--warning);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.search-shop-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: .85rem;
}
.search-shop-loading {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: .85rem;
}
.search-shop-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}
.search-shop-meta .sep {
    color: #d0d0d0;
    font-weight: 700;
}

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

.nav-icon-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.nav-icon-item:hover {
    background: var(--card-hover);
    color: var(--accent);
}
.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-icon-item .nav-label {
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.nav-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.nav-icon:hover { background: var(--card-hover); }

.nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.nav-user-dropdown {
    position: relative;
    width: auto;
    padding: 6px 14px;
    border-radius: 50px;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.nav-user-dropdown:hover { background: var(--card-hover); }

.nav-user-dropdown .user-name {
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .nav-user-dropdown .user-name { display: inline; }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    display: none;
    z-index: 100;
    margin-top: 8px;
    box-shadow: var(--shadow);
}

.nav-user-dropdown:hover .dropdown-menu,
.nav-user-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover { background: var(--card-hover); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.dropdown-menu a.appearance-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-menu a.appearance-trigger:hover {
    background: var(--card-hover);
}

.dropdown-section {
    padding: 8px 14px;
}

.dropdown-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* ─── Appearance Theme Picker ─── */
.appearance-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.appearance-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.appearance-option:hover {
    background: var(--card-hover);
}

.appearance-option .appearance-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 2px solid var(--border);
    background: var(--card-bg);
    transition: var(--transition);
}

.appearance-option.active .appearance-icon {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.appearance-option .appearance-label {
    font-weight: 500;
}

.appearance-option .appearance-check {
    margin-left: auto;
    color: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.appearance-option.active .appearance-check {
    opacity: 1;
}

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

*, *::before, *::after {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-btn, .nav-btn::before, .nav-btn::after {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 88px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    color: #111827;
    background: #fff;
    border: 1px solid #D1D5DB;
}

.nav-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
    color: #111827;
    opacity: 1;
}

[data-theme="dark"] .nav-btn {
    color: #F3F4F6;
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .nav-btn:hover {
    background: #4B5563;
    border-color: #6B7280;
    color: #F3F4F6;
}

.nav-btn-secondary {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.nav-btn-secondary:hover {
    opacity: 0.9;
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; padding: 8px; }

.mobile-menu {
    display: none;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
}

.mobile-menu.active { display: block; }

.mobile-search { margin-bottom: 16px; }

.mobile-search form { display: flex; gap: 8px; }

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.mobile-search button {
    background: var(--accent);
    border: none;
    color: #fff;
    width: 44px;
    border-radius: var(--radius-sm);
}

.mobile-links { display: flex; flex-direction: column; gap: 4px; }

.mobile-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
}

.mobile-links a:hover { background: var(--card-hover); }
.mobile-links hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.main-content { padding-top: 70px; min-height: calc(100vh - 70px); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    border-radius: var(--radius);
    max-width: 1920px;
    margin: 0 auto;
}

/* ── Banner Slider (Horizontal Scroll, no carousel) ──────────────────────── */
/* Banner carousel styles moved to assets/css/banner-engine.css */

.banner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: var(--text-light, #888);
    font-size: 0.95rem;
}

.banner-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.banner-empty a {
    color: var(--accent, #2563eb);
    text-decoration: underline;
    margin-top: 4px;
}

/* Section styles */
.section { padding: 60px 0; }

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i { color: var(--accent); }

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Category Cards */


/* Featured Stores Search */


/* Product Cards */
.product-grid,
.hp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ── Isolated Responsive Product & Shop Shelves ── */
.home-product-shelf,
.product-shelf-row,
.home-shop-shelf {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
}

.home-product-shelf::-webkit-scrollbar,
.product-shelf-row::-webkit-scrollbar,
.home-shop-shelf::-webkit-scrollbar {
    display: none;
}

.home-product-shelf > *,
.product-shelf-row > *,
.home-shop-shelf > * {
    flex-shrink: 0 !important;
}

.hp-section, .section {
    min-width: 0;
    max-width: 100%;
}

/* Breakpoint 1: Mobile (< 768px) — 1 full card + ⅓ peeking (PRD Requirement) */
@media (max-width: 767px) {
    /* Product Shelf: 1 + ⅓ Cards Visible (Gap: 8px) */
    .home-product-shelf,
    .product-shelf-row {
        gap: 8px !important;
    }
    .home-product-shelf > *,
    .product-shelf-row > * {
        flex: 0 0 calc((100% - 8px) / 1.3333) !important;
        min-width: calc((100% - 8px) / 1.3333) !important;
        max-width: calc((100% - 8px) / 1.3333) !important;
    }

    /* Shop Shelf: 1 + ⅓ Cards Visible (Gap: 8px) */
    .home-shop-shelf {
        gap: 8px !important;
    }
    .home-shop-shelf > * {
        flex: 0 0 calc((100% - 8px) / 1.3333) !important;
        min-width: calc((100% - 8px) / 1.3333) !important;
        max-width: calc((100% - 8px) / 1.3333) !important;
    }
}

/* Breakpoint 2: Tablet (768px - 1023px) — 2 full cards + ⅓ peeking */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Product Shelf: 2 + ⅓ Cards Visible (Gap: 12px) */
    .home-product-shelf,
    .product-shelf-row {
        gap: 12px !important;
    }
    .home-product-shelf > *,
    .product-shelf-row > * {
        flex: 0 0 calc((100% - 16px) / 2.3333) !important;
        min-width: calc((100% - 16px) / 2.3333) !important;
        max-width: calc((100% - 16px) / 2.3333) !important;
    }

    /* Shop Shelf: 2 + ⅓ Cards Visible (Gap: 12px) */
    .home-shop-shelf {
        gap: 12px !important;
    }
    .home-shop-shelf > * {
        flex: 0 0 calc((100% - 16px) / 2.3333) !important;
        min-width: calc((100% - 16px) / 2.3333) !important;
        max-width: calc((100% - 16px) / 2.3333) !important;
    }
}

/* Breakpoint 3: Desktop (>= 1024px) — 4 full cards + ⅓ peeking */
@media (min-width: 1024px) {
    /* Product Shelf: 4 + ⅓ Cards Visible (Gap: 20px) */
    .home-product-shelf,
    .product-shelf-row {
        gap: 20px !important;
    }
    .home-product-shelf > *,
    .product-shelf-row > * {
        flex: 0 0 calc((100% - 80px) / 4.3333) !important;
        min-width: calc((100% - 80px) / 4.3333) !important;
        max-width: calc((100% - 80px) / 4.3333) !important;
    }

    /* Shop Shelf: 3 + ⅓ Cards Visible (Gap: 20px) */
    .home-shop-shelf {
        gap: 20px !important;
    }
    .home-shop-shelf > * {
        flex: 0 0 calc((100% - 60px) / 3.3333) !important;
        min-width: calc((100% - 60px) / 3.3333) !important;
        max-width: calc((100% - 60px) / 3.3333) !important;
    }
}

/* ── Restored Homepage Category Scroll CSS ── */
.hp-categories { padding: 24px 0; }
.hp-cat-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hp-cat-scroll::-webkit-scrollbar { display: none; }
.hp-cat-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text, #1e293b);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 96px;
}
.hp-cat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--accent, #6366f1);
}
.hp-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #6366f1);
    font-size: 1.2rem;
    overflow: hidden;
}
.hp-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.hp-cat-label { font-size: 0.82rem; font-weight: 600; white-space: nowrap; text-align: center; }

/* ── Restored Homepage Flash Deals Grid CSS ── */
.home-flash-deals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.hp-deal-card,
.home-flash-deal-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 12px);
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-deal-card:hover,
.home-flash-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hp-deal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger, #ef4444);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.hp-deal-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: var(--secondary, #f8fafc);
    border-radius: 8px;
}
.hp-deal-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}
.hp-stock-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0 6px 0;
}
.hp-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 3px;
}
.hp-stock-label {
    font-size: 0.75rem;
    color: var(--text-light, #64748b);
}

/* ── Isolated Shop By Budget Section ── */
.hp-budget-grid,
.home-shop-by-budget {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.home-shop-by-budget .hp-budget-card,
.home-shop-by-budget .budget-card,
.hp-budget-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 16px);
    text-decoration: none;
    color: var(--text, #1e293b);
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.home-shop-by-budget .hp-budget-card:hover,
.home-shop-by-budget .budget-card:hover,
.hp-budget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--accent, #6366f1);
}

.home-shop-by-budget .hp-budget-icon,
.hp-budget-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.home-shop-by-budget .hp-budget-card:hover .hp-budget-icon,
.hp-budget-card:hover .hp-budget-icon {
    transform: scale(1.1);
    background: var(--accent, #6366f1);
    color: #ffffff;
}

.home-shop-by-budget .hp-budget-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.home-shop-by-budget .hp-budget-label,
.hp-budget-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light, #64748b);
    margin-bottom: 4px;
}

.home-shop-by-budget .hp-budget-title,
.hp-budget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text, #0f172a);
}

/* Gradient accents for budget cards */
.home-shop-by-budget .budget-199 .hp-budget-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.home-shop-by-budget .budget-199:hover .hp-budget-icon { background: #10b981; color: #fff; }

.home-shop-by-budget .budget-499 .hp-budget-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.home-shop-by-budget .budget-499:hover .hp-budget-icon { background: #3b82f6; color: #fff; }

.home-shop-by-budget .budget-999 .hp-budget-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.home-shop-by-budget .budget-999:hover .hp-budget-icon { background: #8b5cf6; color: #fff; }

.home-shop-by-budget .budget-lux .hp-budget-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.home-shop-by-budget .budget-lux:hover .hp-budget-icon { background: #f59e0b; color: #fff; }

/* ── Sponsored Product Badge & Card Controls ── */
.sponsored-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-contact-seller {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--accent, #6366f1);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm, 6px);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-contact-seller:hover {
    background: var(--accent-hover, #4f46e5);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ── Universal Homepage Shelf Navigation Arrows ── */
.hp-shelf-nav-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.hp-shelf-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text, #0f172a);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    user-select: none;
    -webkit-user-select: none;
}

.hp-shelf-nav:hover:not(:disabled) {
    background: var(--accent, #6366f1);
    color: #ffffff;
    border-color: var(--accent, #6366f1);
    transform: translateY(-1px);
}

.hp-shelf-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Card Link Wrapper ── */
.product-card-link {
    display: block;
    color: inherit;
    border-radius: var(--radius);
}
.product-card-link:focus-visible .product-card {
    box-shadow: 0 0 0 3px rgba(99,102,241,.4);
    border-color: var(--accent);
}

/* ── Card ── */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    cursor: pointer;
}

/* Hover: Flipkart/Amazon lift + border glow */
.product-card-link:hover .product-card,
.product-card:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 0 0 1px rgba(99,102,241,.2);
    border-color: rgba(99,102,241,.35);
}

/* Click press animation */
.product-card-link:active .product-card,
.product-card:active {
    transform: scale(0.98);
    transition-duration: 0.08s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.product-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card-link:hover .product-card-image img,
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-card-image .placeholder-icon { font-size: 4rem; color: var(--accent); opacity: 0.4; }

.product-card-badge,
.hp-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

/* Wishlist button: sits above the link, stops propagation in JS */
.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,.06);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.product-card-wishlist:hover { background: var(--danger); color: #fff; transform: scale(1.12); }
.product-card-wishlist.active { color: var(--danger); background: rgba(255,255,255,.95); }
.product-card-wishlist.active:hover { background: var(--danger); color: #fff; }

/* ── Local Store Spotlight / Shop Banner Isolation ── */
.hp-store-banner {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--secondary);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
.hp-store-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-store-logo {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card-bg, #ffffff);
    border: 3px solid var(--card-bg, #ffffff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.hp-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-card-body .product-store {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}
.product-store-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.product-store-link:hover .product-store {
    text-decoration: underline;
}
.product-name-link {
    text-decoration: none;
    display: block;
    color: inherit;
}
.product-name-link:hover h3 {
    color: var(--accent);
}

.product-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
    color: var(--text);
}

.product-card-body .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.product-card-body .product-rating .stars { color: var(--warning); }
.product-card-body .product-rating span { color: var(--text-light); }

.product-card-body .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.product-card-body .product-price .current { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.product-card-body .product-price .original { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; }

/* ── .product-card-btn removed — card is now fully clickable ── */


/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.8; color: #fff; }
.btn-secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.8; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Offer Cards */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.offer-card {
    background: linear-gradient(135deg, var(--card-bg), var(--card-hover));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.offer-card .offer-icon { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.offer-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.offer-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.offer-card .offer-discount { font-size: 2rem; font-weight: 800; color: var(--accent); }
.offer-card .offer-code { display: inline-block; padding: 4px 12px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-col .footer-logo i { color: var(--accent); }

.footer-col p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--text);
    transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-light); font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text); }

/* Auth Pages */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-box .auth-header { text-align: center; margin-bottom: 32px; }

.auth-box .auth-header .auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #fff;
}

.auth-box .auth-header h1 { font-size: 1.8rem; font-weight: 800; }
.auth-box .auth-header p { color: var(--text-light); margin-top: 4px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group .form-input:focus { border-color: var(--accent); }
.form-group .form-input::placeholder { color: var(--text-light); }
.form-group .form-input.error { border-color: var(--danger); }

.form-group .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group .form-error.visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-options input[type="checkbox"] { accent-color: var(--accent); }

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.auth-btn:hover { opacity: 0.8; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
}

.password-toggle:hover { color: var(--text); }

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.auth-footer a { color: var(--accent); font-weight: 600; }

.google-btn,
.ok-google-btn {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.google-btn:hover,
.ok-google-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    color: #111827;
}

.google-btn:active,
.ok-google-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.google-btn svg,
.ok-google-btn svg,
.google-btn img,
.ok-google-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

/* Dark Mode Google Button */
[data-theme="dark"] .google-btn,
[data-theme="dark"] .ok-google-btn {
    background: #1F2937;
    color: #F3F4F6;
    border-color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .google-btn:hover,
[data-theme="dark"] .ok-google-btn:hover {
    background: #374151;
    border-color: #4B5563;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    color: #FFFFFF;
}

.google-btn-disabled,
.ok-google-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(59,130,246,0.1); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }

/* Store Page */
.store-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--accent);
}

.store-header img { width: 100%; height: 100%; object-fit: cover; }

.store-header .store-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24,28,20,0.9), transparent);
}

.store-info-section {
    position: relative;
    padding: 0 20px;
    margin-top: -80px;
    z-index: 2;
}

.store-info-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.store-info-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    overflow: hidden;
    flex-shrink: 0;
}

.store-info-logo img { width: 100%; height: 100%; object-fit: cover; }

.store-info-details { flex: 1; padding-bottom: 20px; }

.store-info-details h1 { font-size: 2rem; font-weight: 800; }
.store-info-details .tagline { color: var(--text-light); font-size: 1rem; margin-top: 4px; }
.store-info-details .store-meta { display: flex; gap: 20px; margin-top: 12px; font-size: 0.9rem; color: var(--text-light); }
.store-info-details .store-meta span { display: flex; align-items: center; gap: 6px; }

.store-info-action { padding-bottom: 20px; }

.store-info-action .btn { display: flex; align-items: center; gap: 8px; }

.store-body { padding: 40px 0; }

.store-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
}

.store-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.store-tab:hover { color: var(--text); }
.store-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.store-announcement {
    background: linear-gradient(135deg, var(--accent), rgba(105,117,101,0.3));
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.store-announcement i { font-size: 1.2rem; }

/* Store Themes */
.store-theme-minimal .store-header { height: 200px; }
.store-theme-minimal .store-info-logo { width: 100px; height: 100px; }

.store-theme-luxury { --accent: #D4AF37; }
.store-theme-tech { --accent: #00d4ff; }
.store-theme-dark-premium { --accent: #8B0000; }
.store-theme-colorful { --accent: #FF6B6B; }

/* Product Page */
.product-page { padding: 40px 0; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 450px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery .main-image .placeholder-icon { font-size: 6rem; color: var(--accent); opacity: 0.4; }

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail.active { border-color: var(--accent); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }

.product-info .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-info .product-meta a { color: var(--accent); }

.product-info .product-pricing { margin-bottom: 20px; }

.product-info .product-pricing .price-current { font-size: 2rem; font-weight: 800; }
.product-info .product-pricing .price-original { font-size: 1.2rem; color: var(--text-light); text-decoration: line-through; margin-left: 10px; }
.product-info .product-pricing .price-save { display: inline-block; padding: 4px 10px; background: rgba(239,68,68,0.1); color: var(--danger); border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin-left: 10px; }

.product-info .product-description { margin-bottom: 24px; }
.product-info .product-description h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.product-info .product-description p { color: var(--text-light); line-height: 1.7; }

.product-info .product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-info .product-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

.product-info .product-specs { margin-bottom: 24px; }
.product-info .product-specs h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.product-info .specs-table { width: 100%; }
.product-info .specs-table tr { border-bottom: 1px solid var(--border); }
.product-info .specs-table td { padding: 8px 12px; font-size: 0.9rem; }
.product-info .specs-table td:first-child { font-weight: 600; color: var(--text-light); }

/* Cart Page */
.cart-section { padding: 40px 0; }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-image .placeholder-icon { font-size: 2rem; color: var(--accent); opacity: 0.4; }

.cart-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .cart-item-store { font-size: 0.8rem; color: var(--accent); }
.cart-item-info .cart-item-price { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-actions .qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-actions .qty-controls button {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border: none;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-actions .qty-controls button:hover { background: var(--accent); color: #fff; }
.cart-item-actions .qty-controls span { width: 44px; text-align: center; font-weight: 600; }

.cart-item-actions .remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
}

.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 90px;
}

.cart-summary h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.cart-summary .summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 700; }

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover { opacity: 0.8; }

/* Orders */
.orders-section { padding: 40px 0; }

.order-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--secondary);
    flex-wrap: wrap;
    gap: 8px;
}

.order-card-header .order-number { font-weight: 700; font-size: 0.95rem; }
.order-card-header .order-date { font-size: 0.85rem; color: var(--text-light); }

.order-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-status.pending { background: rgba(234,179,8,0.1); color: var(--warning); }
.order-status.processing { background: rgba(59,130,246,0.1); color: var(--info); }
.order-status.shipped { background: rgba(105,117,101,0.1); color: var(--accent); }
.order-status.delivered { background: rgba(34,197,94,0.1); color: var(--success); }
.order-status.cancelled { background: rgba(239,68,68,0.1); color: var(--danger); }

.order-card-body { padding: 20px; }

.order-item-detail {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.order-item-detail img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--secondary); }
.order-item-detail .item-info h4 { font-size: 0.9rem; font-weight: 600; }
.order-item-detail .item-info p { font-size: 0.8rem; color: var(--text-light); }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.order-card-footer .order-total { font-weight: 700; font-size: 1.1rem; }

.order-card-footer .order-actions {
    display: flex;
    gap: 8px;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Settings Grid & Cards */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
}

.dashboard-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    width: 260px;
    box-sizing: border-box;
}

.dashboard-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.dashboard-sidebar .sidebar-header h3 { font-size: 1rem; font-weight: 700; }
.dashboard-sidebar .sidebar-header p { font-size: 0.8rem; color: var(--text-light); }

.dashboard-sidebar .sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }

.dashboard-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dashboard-sidebar .sidebar-nav a i { width: 20px; text-align: center; color: var(--text-light); }
.dashboard-sidebar .sidebar-nav a:hover { background: var(--card-hover); }
.dashboard-sidebar .sidebar-nav a.active { background: var(--active-menu); color: #fff; }
.dashboard-sidebar .sidebar-nav a.active i { color: #fff; }

.dashboard-main {
    padding: 32px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-main .page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }

.sidebar-toggle {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.sidebar-toggle:hover { background: var(--card-hover); }
.sidebar-toggle:active { transform: scale(0.98); }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.dash-card .dash-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(105,117,101,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.dash-card .dash-value { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.dash-card .dash-label { font-size: 0.85rem; color: var(--text-light); }

/* Tables */
.table-container { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:hover td { background: rgba(105,117,101,0.03); }

.table .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.table .user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.table .table-actions {
    display: flex;
    gap: 6px;
}

.table .table-actions button,
.table .table-actions a {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table .table-actions .btn-edit { background: rgba(59,130,246,0.1); color: var(--info); }
.table .table-actions .btn-delete { background: rgba(239,68,68,0.1); color: var(--danger); }
.table .table-actions .btn-view { background: rgba(105,117,101,0.1); color: var(--accent); }

.table .product-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--secondary); }

/* Filters */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filters-bar select, .filters-bar input {
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
}

.filters-bar select:focus, .filters-bar input:focus { border-color: var(--accent); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover { background: var(--card-hover); }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}
.modal.modal-lg { max-width: 720px; }

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 { font-size: 1.2rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: var(--transition);
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 20px; }

/* Loading */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Reviews */
.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.review-card .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card .review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-card .review-user h4 { font-size: 0.95rem; font-weight: 600; }
.review-card .review-user span { font-size: 0.8rem; color: var(--text-light); }

.review-card .review-rating { margin-bottom: 8px; color: var(--warning); font-size: 0.9rem; }
.review-card .review-comment { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.review-card .verified-badge { display: inline-block; padding: 2px 8px; background: rgba(34,197,94,0.1); color: var(--success); border-radius: 4px; font-size: 0.7rem; font-weight: 600; }

/* Review Media Grid in Cards */
.review-media-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.review-media-item { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; flex-shrink: 0; border: 1px solid var(--border); }
.review-media-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.review-media-item img:hover { transform: scale(1.08); }
.review-video-thumb { width: 100%; height: 100%; position: relative; overflow: hidden; }
.review-video-thumb video { width: 100%; height: 100%; object-fit: cover; }

/* Gallery Section */
.review-gallery { margin-bottom: 40px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 1; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item img:hover { transform: scale(1.05); }
.gallery-video-thumb { width: 100%; height: 100%; position: relative; overflow: hidden; }
.gallery-video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); font-size: 1.5rem; color: #fff; transition: var(--transition); }
.gallery-item:hover .gallery-play-btn { background: rgba(0,0,0,0.5); }
.gallery-filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Review Upload Area */
.review-upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px; background: var(--card-bg); }
.review-upload-actions { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.upload-label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.upload-label input[type="file"] { display: none; }
.review-upload-drag { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 30px 20px; text-align: center; cursor: pointer; transition: var(--transition); margin-bottom: 12px; }
.review-upload-drag i { font-size: 2rem; color: var(--text-light); margin-bottom: 8px; }
.review-upload-drag p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 4px; }
.review-upload-drag:hover { border-color: var(--accent); background: var(--card-hover); }

/* Preview Grid */
.preview-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-item { width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; position: relative; border: 1px solid var(--border); }
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-vid-badge { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 0.65rem; }
.preview-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: var(--transition); }
.preview-item:hover .preview-overlay { opacity: 1; }
.preview-overlay button { background: none; border: none; color: #fff; cursor: pointer; font-size: 0.9rem; padding: 4px 8px; border-radius: 4px; }
.preview-overlay button:hover { background: rgba(255,255,255,0.2); }
.preview-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.65rem; padding: 2px 6px; text-align: center; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox-overlay.active { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 3001; }
.lightbox-content { display: flex; align-items: center; justify-content: center; max-width: 90vw; max-height: 90vh; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }

/* Notification Bell */
.notif-bell { position: relative; }

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: -80px;
    width: 340px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: none;
    z-index: 100;
    margin-top: 8px;
    box-shadow: var(--shadow);
}

.notif-bell:hover .notif-dropdown { display: block; }

.notif-dropdown .notif-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
}

.notif-dropdown .notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    transition: var(--transition);
}

.notif-dropdown .notif-item:hover { background: var(--card-hover); }
.notif-dropdown .notif-item.unread { background: rgba(105,117,101,0.05); }

.notif-dropdown .notif-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-dropdown .notif-item .notif-content h4 { font-size: 0.85rem; font-weight: 600; }
.notif-dropdown .notif-item .notif-content p { font-size: 0.8rem; color: var(--text-light); }
.notif-dropdown .notif-item .notif-content span { font-size: 0.75rem; color: var(--text-light); }

/* Star Rating Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input { display: none; }

.star-rating label {
    font-size: 1.5rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover, .star-rating label:hover ~ label { color: var(--warning); }
.star-rating input:checked ~ label { color: var(--warning); }

.lucide-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Banner CMS */
.banner-table .thumb-cell { width: 200px; min-width: 200px; padding: 8px; }
.banner-table .thumb-img { width: 200px; height: 100px; object-fit: cover; border-radius: 8px; background: var(--card-hover); display: block; }
.banner-table td { vertical-align: middle; }
.banner-row { cursor: grab; }
.banner-row:active { cursor: grabbing; }
.banner-row.dragging { opacity: 0.4; }
.drag-handle { cursor: grab; color: var(--text-light); display: flex; align-items: center; padding: 0 6px; }
.drag-handle:active { cursor: grabbing; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.status-active { background: rgba(34,197,94,0.12); color: #22c55e; }
.status-scheduled { background: rgba(59,130,246,0.12); color: #3b82f6; }
.status-expired { background: rgba(239,68,68,0.12); color: #ef4444; }
.status-draft { background: rgba(156,163,175,0.12); color: #9ca3af; }
.status-disabled { background: rgba(107,114,128,0.12); color: #6b7280; }
.status-inactive { background: rgba(234,179,8,0.12); color: #eab308; }
/* Preview modal */
.preview-frame { width: 100%; border: none; border-radius: 12px; background: #fff; }
.preview-desktop { height: 420px; }
.preview-tablet { height: 360px; max-width: 600px; margin: 0 auto; }
.preview-mobile { height: 520px; max-width: 320px; margin: 0 auto; }
.device-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.device-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.device-tab:hover { background: var(--card-hover); }
.device-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.preview-device-frame { background: var(--primary); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
/* Sort order inline */
.sort-order-input { width: 50px; text-align: center; padding: 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--input-bg); color: var(--text); font-size: 0.85rem; }

/* ── Floating Store Chat Button ── */
.store-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.store-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,0,0,.35);
}

/* ── Chat Overlay ── */
.store-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.store-chat-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Chat Sidebar ── */
.store-chat-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease-in-out;
    overflow: hidden;
}
.store-chat-sidebar.active {
    transform: translateX(0);
}

/* Sidebar Header */
.store-chat-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
}
.store-chat-sidebar-store {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.store-chat-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.store-chat-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-chat-sidebar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.store-chat-sidebar-name {
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-chat-sidebar-status {
    font-size: .75rem;
    opacity: .8;
}
.store-chat-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .8;
    padding: 4px;
    display: flex;
    transition: opacity .15s;
}
.store-chat-sidebar-close:hover { opacity: 1; }

/* Messages */
.store-chat-sidebar-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--secondary);
}
.store-chat-msg {
    display: flex;
    max-width: 85%;
    gap: 8px;
    align-items: flex-end;
}
.store-chat-msg.customer {
    align-self: flex-end;
}
.store-chat-msg.ai {
    align-self: flex-start;
}
.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.ai-avatar {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
}
.store-chat-msg.ai .chat-msg-avatar { order: 0; }
.store-chat-msg .msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.45;
    word-wrap: break-word;
    max-width: 100%;
}
.store-chat-msg.customer .msg-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.store-chat-msg.ai .msg-bubble {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* Input Area */
.store-chat-sidebar-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    flex-shrink: 0;
}
.store-chat-input {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 21px;
    outline: none;
    font-size: .88rem;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text);
}
.store-chat-input:focus {
    border-color: var(--accent);
}
.store-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s;
}
.store-chat-send:hover { transform: scale(1.08); }
.store-chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chat-sending-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .5s linear infinite;
}

/* Typing Indicator */
.store-chat-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 4px;
    background: var(--secondary);
    flex-shrink: 0;
}
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.typing-label {
    font-size: .78rem;
    color: var(--text-light);
}

/* Unread Badge */
.store-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
    pointer-events: none;
}

/* Waiting state */
.store-chat-sidebar-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--secondary);
    color: var(--text-light);
    font-size: .85rem;
    flex-shrink: 0;
}
.waiting-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

/* ── Store Orders Tab ── */
.store-orders-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: .9rem;
}
.store-orders-loading::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin: 12px auto 0;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
.store-order-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.store-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--secondary);
    font-size: .85rem;
}
.store-order-header .order-no {
    font-weight: 600;
}
.store-order-header .order-status {
    font-weight: 600;
    text-transform: capitalize;
}
.store-order-body {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: .85rem;
    color: var(--text-light);
}
.store-order-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* ── Responsive Chat Sidebar ── */
@media (max-width: 768px) {
    .store-chat-sidebar { width: 340px; }
}
@media (max-width: 480px) {
    .store-chat-sidebar { width: 100%; }
    .store-chat-btn { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .store-chat-sidebar-messages { padding: 12px 14px; }
}

/* ── Page Load Recovery & Error Modal ── */
.recovery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.recovery-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.recovery-modal-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, 0.2));
    max-width: 440px;
    width: 100%;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.recovery-modal-overlay.active .recovery-modal-card {
    transform: scale(1);
}

.recovery-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(234, 179, 8, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recovery-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #111827);
    margin: 0 0 10px 0;
}

.recovery-modal-text {
    font-size: 0.9rem;
    color: var(--text-light, #6b7280);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.recovery-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.recovery-modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN & NEARBY STORES STYLES (PRD v1)
   ══════════════════════════════════════════════════════════════════════════ */
.home-search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-search-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-search-hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.home-search-hero-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 6px 12px 6px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.home-search-hero-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(47,128,237,0.18);
}

.home-search-hero-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.home-search-hero-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1.05rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.home-search-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.home-search-hero-btn:hover {
    background: var(--accent-light, #3b82f6);
}

/* Store Card Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius, 16px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.store-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.store-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    background: var(--card-bg);
    position: absolute;
    bottom: -30px;
    left: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.store-card-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card-body {
    padding: 38px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-card-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.store-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.store-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--accent);
}

