/* CSS variables for Design Tokens */
:root[data-theme="dark"] {
    --bg-primary: #0a0c16;
    --bg-secondary: #16192e;
    --bg-glass: rgba(22, 25, 46, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(40, 53, 92, 0.15);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --primary: #28355c;
    --primary-hover: #3a4b7c;
    --primary-glow: rgba(40, 53, 92, 0.35);
    --primary-glow-heavy: rgba(40, 53, 92, 0.55);
    --accent: #28355c;
    --accent-glow: rgba(40, 53, 92, 0.25);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --scrollbar-thumb: #1d2242;
    --input-bg: #1d2242;
    --card-info-bg: rgba(22, 25, 46, 0.3);
}

:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.06);
    --border-glow: rgba(40, 53, 92, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary: #28355c;
    --primary-hover: #1c2642;
    --primary-glow: rgba(40, 53, 92, 0.15);
    --primary-glow-heavy: rgba(40, 53, 92, 0.35);
    --accent: #28355c;
    --accent-glow: rgba(40, 53, 92, 0.12);
    --success: #059669;
    --success-glow: rgba(5, 150, 105, 0.15);
    --danger: #dc2626;
    --card-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
    --scrollbar-thumb: #cbd5e1;
    --input-bg: #f1f5f9;
    --card-info-bg: rgba(241, 245, 249, 0.6);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Global Utility classes --- */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

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

.glow-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-hover:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Header Announcement --- */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    position: relative;
    z-index: 101;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.announcement-bar i {
    animation: pulse-ring 1.5s infinite;
}

/* --- Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

/* Mobile Default: 64px height navigation wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 44px;
    object-fit: contain;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Mobile Default: 20px logo text font-size */
.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Default: Main search hidden (search-container display: none) */
.search-container {
    display: none;
    flex: 1;
    max-width: 550px;
    margin: 0 16px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    border-radius: 99px;
    padding: 4px 8px 4px 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: var(--bg-secondary);
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    height: 38px;
}

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

.search-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 99px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

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

/* Auto-suggestions panel */
.suggestions-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: slide-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--border-glass);
}

.suggestions-panel.active {
    display: flex;
}

.suggestion-group-title {
    padding: 12px 18px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.05);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--primary-glow);
}

.suggestion-item img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-glass);
    background: #1e293b;
}

.suggestion-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.suggestion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.suggestion-price {
    font-weight: 700;
    color: var(--accent);
}

.no-suggestions {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
    border: 1px solid var(--border-glass);
}

.action-icon-btn:hover {
    background: var(--input-bg);
    color: var(--primary);
    border-color: var(--primary-glow);
}

:root[data-theme="dark"] .action-icon-btn:hover {
    color: #a2b2db;
    border-color: rgba(40, 53, 92, 0.4);
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-secondary);
    animation: pop-bounce 0.3s ease;
}

/* --- Dynamic Slider Hero Banner --- */
.hero-section {
    margin: 0 0 40px;
    position: relative;
}

/* Mobile Default: 250px slider-viewport height */
.slider-viewport {
    width: 100%;
    height: 250px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.slider-track {
    display: flex;
    height: 100%;
    width: 300%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
    width: 33.33333%;
    flex: 0 0 33.33333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.slide-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.9) 20%, rgba(11, 15, 25, 0.4) 60%, rgba(11, 15, 25, 0.1) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fade-slide-right 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--primary-glow);
    color: #818cf8;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Default: 32px slide-title font-size */
.slide-title {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.slide-title span {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Default: 14px slide desc */
.slide-desc {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.slide-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn {
    padding: 10px 22px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow-heavy);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px var(--primary-glow-heavy);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(19, 27, 46, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    color: white;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.arrow-prev {
    left: 12px;
}

.arrow-next {
    right: 12px;
}

.slider-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 99px;
    backdrop-filter: blur(8px);
}

.indicator {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    width: 24px;
    border-radius: 99px;
    background: var(--accent);
}

/* --- Featured Categories & Brands --- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.section-header-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-badge {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 24px;
    color: var(--text-primary);
}

.categories-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 4px 24px;
    margin-bottom: 32px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 148px;
    height: 180px;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme colors for categories */
:root[data-theme="light"] .category-card.cat-all { background-color: #e0f2fe; color: #0369a1; }
:root[data-theme="light"] .category-card.cat-relays { background-color: #fef3c7; color: #b45309; }
:root[data-theme="light"] .category-card.cat-mobile { background-color: #dcfce7; color: #15803d; }
:root[data-theme="light"] .category-card.cat-automation { background-color: #f3e8ff; color: #6b21a8; }
:root[data-theme="light"] .category-card.cat-power { background-color: #ffe4e6; color: #b91c1c; }
:root[data-theme="light"] .category-card.cat-sensors { background-color: #fef9c3; color: #854d0e; }
:root[data-theme="light"] .category-card.cat-breakers { background-color: #fee2e2; color: #991b1b; }
:root[data-theme="light"] .category-card.cat-drives { background-color: #ccfbf1; color: #0f766e; }
:root[data-theme="light"] .category-card.cat-cables { background-color: #ecfeff; color: #0891b2; }
:root[data-theme="light"] .category-card.cat-hmi { background-color: #e0e7ff; color: #4338ca; }
:root[data-theme="light"] .category-card.cat-pneumatics { background-color: #d1fae5; color: #065f46; }
:root[data-theme="light"] .category-card.cat-enclosures { background-color: #f1f5f9; color: #334155; }
:root[data-theme="light"] .category-card.cat-tools { background-color: #ffedd5; color: #c2410c; }
:root[data-theme="light"] .category-card.cat-motors { background-color: #ede9fe; color: #5b21b6; }
:root[data-theme="light"] .category-card.cat-terminals { background-color: #fdf4ff; color: #86198f; }
:root[data-theme="light"] .category-card.cat-safety { background-color: #f7fee7; color: #4d7c0f; }

/* Dark theme colors for categories (subtle color glass-morphism style) */
:root[data-theme="dark"] .category-card.cat-all { background: rgba(14, 165, 233, 0.08); color: #38bdf8; border-color: rgba(14, 165, 233, 0.15); }
:root[data-theme="dark"] .category-card.cat-relays { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border-color: rgba(245, 158, 11, 0.15); }
:root[data-theme="dark"] .category-card.cat-mobile { background: rgba(34, 197, 94, 0.08); color: #4ade80; border-color: rgba(34, 197, 94, 0.15); }
:root[data-theme="dark"] .category-card.cat-automation { background: rgba(167, 139, 250, 0.08); color: #a78bfa; border-color: rgba(167, 139, 250, 0.15); }
:root[data-theme="dark"] .category-card.cat-power { background: rgba(244, 63, 94, 0.08); color: #fb7185; border-color: rgba(244, 63, 94, 0.15); }
:root[data-theme="dark"] .category-card.cat-sensors { background: rgba(253, 224, 71, 0.08); color: #fde047; border-color: rgba(253, 224, 71, 0.15); }
:root[data-theme="dark"] .category-card.cat-breakers { background: rgba(239, 68, 68, 0.08); color: #f87171; border-color: rgba(239, 68, 68, 0.15); }
:root[data-theme="dark"] .category-card.cat-drives { background: rgba(20, 184, 166, 0.08); color: #2dd4bf; border-color: rgba(20, 184, 166, 0.15); }
:root[data-theme="dark"] .category-card.cat-cables { background: rgba(6, 182, 212, 0.08); color: #22d3ee; border-color: rgba(6, 182, 212, 0.15); }
:root[data-theme="dark"] .category-card.cat-hmi { background: rgba(99, 102, 241, 0.08); color: #818cf8; border-color: rgba(99, 102, 241, 0.15); }
:root[data-theme="dark"] .category-card.cat-pneumatics { background: rgba(16, 185, 129, 0.08); color: #34d399; border-color: rgba(16, 185, 129, 0.15); }
:root[data-theme="dark"] .category-card.cat-enclosures { background: rgba(148, 163, 184, 0.08); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.15); }
:root[data-theme="dark"] .category-card.cat-tools { background: rgba(249, 115, 22, 0.08); color: #ff9d43; border-color: rgba(249, 115, 22, 0.15); }
:root[data-theme="dark"] .category-card.cat-motors { background: rgba(139, 92, 246, 0.08); color: #c084fc; border-color: rgba(139, 92, 246, 0.15); }
:root[data-theme="dark"] .category-card.cat-terminals { background: rgba(217, 70, 239, 0.08); color: #f472b6; border-color: rgba(217, 70, 239, 0.15); }
:root[data-theme="dark"] .category-card.cat-safety { background: rgba(132, 204, 22, 0.08); color: #a3e635; border-color: rgba(132, 204, 22, 0.15); }

/* Icons styling within category card */
.category-icon-wrapper {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--input-bg);
}

:root[data-theme="light"] .category-card.cat-all .category-icon-wrapper { background: #bae6fd; color: #0284c7; }
:root[data-theme="light"] .category-card.cat-relays .category-icon-wrapper { background: #fde68a; color: #d97706; }
:root[data-theme="light"] .category-card.cat-mobile .category-icon-wrapper { background: #bbf7d0; color: #16a34a; }
:root[data-theme="light"] .category-card.cat-automation .category-icon-wrapper { background: #e9d5ff; color: #9333ea; }
:root[data-theme="light"] .category-card.cat-power .category-icon-wrapper { background: #fecdd3; color: #dc2626; }
:root[data-theme="light"] .category-card.cat-sensors .category-icon-wrapper { background: #fef08a; color: #ca8a04; }
:root[data-theme="light"] .category-card.cat-breakers .category-icon-wrapper { background: #fecaca; color: #dc2626; }
:root[data-theme="light"] .category-card.cat-drives .category-icon-wrapper { background: #99f6e4; color: #0d9488; }
:root[data-theme="light"] .category-card.cat-cables .category-icon-wrapper { background: #c5f6fa; color: #0891b2; }
:root[data-theme="light"] .category-card.cat-hmi .category-icon-wrapper { background: #c7d2fe; color: #4f46e5; }
:root[data-theme="light"] .category-card.cat-pneumatics .category-icon-wrapper { background: #a7f3d0; color: #059669; }
:root[data-theme="light"] .category-card.cat-enclosures .category-icon-wrapper { background: #e2e8f0; color: #475569; }
:root[data-theme="light"] .category-card.cat-tools .category-icon-wrapper { background: #fed7aa; color: #ea580c; }
:root[data-theme="light"] .category-card.cat-motors .category-icon-wrapper { background: #ddd6fe; color: #7c3aed; }
:root[data-theme="light"] .category-card.cat-terminals .category-icon-wrapper { background: #fae8ff; color: #d01cbf; }
:root[data-theme="light"] .category-card.cat-safety .category-icon-wrapper { background: #ecfccb; color: #65a30d; }

:root[data-theme="dark"] .category-card.cat-all .category-icon-wrapper { background: rgba(14, 165, 233, 0.18); color: #0ea5e9; }
:root[data-theme="dark"] .category-card.cat-relays .category-icon-wrapper { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
:root[data-theme="dark"] .category-card.cat-mobile .category-icon-wrapper { background: rgba(34, 197, 94, 0.18); color: #22c55e; }
:root[data-theme="dark"] .category-card.cat-automation .category-icon-wrapper { background: rgba(167, 139, 250, 0.18); color: #818cf8; }
:root[data-theme="dark"] .category-card.cat-power .category-icon-wrapper { background: rgba(244, 63, 94, 0.18); color: #f43f5e; }
:root[data-theme="dark"] .category-card.cat-sensors .category-icon-wrapper { background: rgba(253, 224, 71, 0.18); color: #eab308; }
:root[data-theme="dark"] .category-card.cat-breakers .category-icon-wrapper { background: rgba(239, 68, 68, 0.18); color: #ef4444; }
:root[data-theme="dark"] .category-card.cat-drives .category-icon-wrapper { background: rgba(20, 184, 166, 0.18); color: #14b8a6; }
:root[data-theme="dark"] .category-card.cat-cables .category-icon-wrapper { background: rgba(6, 182, 212, 0.18); color: #06b6d4; }
:root[data-theme="dark"] .category-card.cat-hmi .category-icon-wrapper { background: rgba(99, 102, 241, 0.18); color: #6366f1; }
:root[data-theme="dark"] .category-card.cat-pneumatics .category-icon-wrapper { background: rgba(16, 185, 129, 0.18); color: #10b981; }
:root[data-theme="dark"] .category-card.cat-enclosures .category-icon-wrapper { background: rgba(148, 163, 184, 0.18); color: #94a3b8; }
:root[data-theme="dark"] .category-card.cat-tools .category-icon-wrapper { background: rgba(249, 115, 22, 0.18); color: #f97316; }
:root[data-theme="dark"] .category-card.cat-motors .category-icon-wrapper { background: rgba(139, 92, 246, 0.18); color: #8b5cf6; }
:root[data-theme="dark"] .category-card.cat-terminals .category-icon-wrapper { background: rgba(217, 70, 239, 0.18); color: #d946ef; }
:root[data-theme="dark"] .category-card.cat-safety .category-icon-wrapper { background: rgba(132, 204, 22, 0.18); color: #84cc16; }

.category-title {
    font-size: 15px;
    font-weight: 700;
    margin-top: 14px;
}

.category-count {
    font-size: 11.5px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 4px;
}

/* Hover effect */
.category-card:hover {
    transform: translateY(-4px);
}

:root[data-theme="light"] .category-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .category-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: currentColor;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
}

/* Active State styles (Selected Category Card) */
.category-card.active {
    transform: translateY(-4px) scale(1.02);
}

:root[data-theme="light"] .category-card.active {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: currentColor;
}

:root[data-theme="dark"] .category-card.active {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    border-color: currentColor;
    background: var(--bg-glass);
}

/* Infinite Sliding Brands Marquee */
.brands-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 22px 0;
    border-radius: 20px;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Elegant visual edge masks for marquee smooth fading transitions */
.brands-marquee-container::before,
.brands-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 3;
    pointer-events: none;
}

.brands-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 15%, transparent);
}

.brands-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 15%, transparent);
}

.brands-marquee-track {
    display: flex;
    width: max-content;
    gap: 24px;
    padding: 0 12px;
    animation: marquee-scroll 45s linear infinite;
    will-change: transform;
}

.brands-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.brand-logo-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

/* Micro interaction: pop out card with light glowing effect on hover */
.brand-logo-card:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--bg-secondary);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* Individual Brand Typographical Styling & Themes */
.brand-logo-card .brand-emblem {
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-card .brand-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* 1. Apple style */
.brand-apple {
    color: var(--text-primary);
}
.brand-apple .brand-emblem {
    font-size: 18px;
    line-height: 1;
}

/* 2. Samsung style */
.brand-samsung {
    color: #1428a0;
}
:root[data-theme="dark"] .brand-samsung {
    color: #4d7cff;
}
.brand-samsung .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* 3. Xiaomi style */
.brand-xiaomi .brand-emblem {
    background: #ff6700;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
}
.brand-xiaomi .brand-name {
    color: var(--text-primary);
}

/* 4. Oppo style */
.brand-oppo {
    color: #008a54;
}
:root[data-theme="dark"] .brand-oppo {
    color: #05c270;
}
.brand-oppo .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* 5. Vivo style */
.brand-vivo {
    color: #415fff;
}
:root[data-theme="dark"] .brand-vivo {
    color: #708bff;
}
.brand-vivo .brand-name {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* 6. Poco style */
.brand-poco .brand-name {
    background: #fdd835;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* 7. Realme style */
.brand-realme .brand-emblem {
    background: #ffc915;
    color: #000;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
}
.brand-realme .brand-name {
    color: var(--text-primary);
}

/* 8. OnePlus style */
.brand-oneplus .brand-emblem {
    border: 1.5px solid #eb0028;
    color: #eb0028;
    font-weight: 900;
    padding: 0 3px;
    border-radius: 2px;
    font-size: 9px;
}
.brand-oneplus .brand-name {
    color: var(--text-primary);
    font-weight: 700;
}

/* 9. Google Pixel style */
.brand-google .brand-emblem {
    font-weight: 900;
    background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
}
.brand-google .brand-name {
    color: var(--text-primary);
    font-weight: 500;
}

/* 10. Nothing style */
.brand-nothing .brand-name {
    font-family: monospace;
    font-weight: 800;
    letter-spacing: 2.5px;
    border: 1px dashed var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* 11. Motorola style */
.brand-motorola .brand-emblem {
    background: #00bcd4;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 9px;
}
.brand-motorola .brand-name {
    color: var(--text-primary);
}

/* 12. Asus style */
.brand-asus .brand-name {
    font-weight: 800;
    color: var(--text-primary);
}
.brand-asus .brand-name small {
    color: #ff4e7c;
    font-weight: 900;
    font-size: 9px;
    margin-left: 2px;
}

/* 13. Sony style */
.brand-sony {
    color: var(--text-primary);
}
.brand-sony .brand-name {
    font-family: serif;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 13px;
}

/* 14. Huawei style */
.brand-huawei {
    color: #ff0000;
}
.brand-huawei .brand-emblem {
    font-size: 15px;
}
.brand-huawei .brand-name {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* 15. Nokia style */
.brand-nokia {
    color: #1241a1;
}
:root[data-theme="dark"] .brand-nokia {
    color: #4a86ff;
}
.brand-nokia .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* 16. Infinix style */
.brand-infinix .brand-name {
    color: #9c27b0;
    font-weight: 800;
    border-bottom: 2px solid #9c27b0;
    font-size: 13px;
}
:root[data-theme="dark"] .brand-infinix .brand-name {
    color: #ba68c8;
    border-color: #ba68c8;
}

/* 17. Tecno style */
.brand-tecno {
    color: #1976d2;
}
:root[data-theme="dark"] .brand-tecno {
    color: #42a5f5;
}
.brand-tecno .brand-name {
    font-weight: 900;
    letter-spacing: 0.8px;
}

/* 18. LG style */
.brand-lg .brand-emblem {
    background: #a50034;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 900;
}
.brand-lg .brand-name {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11.5px;
}

/* --- Trending & Recommended Products Grid --- */
.filter-tabs {
    display: flex;
    gap: 6px;
    background: var(--input-bg);
    padding: 4px;
    border-radius: 99px;
    border: 1px solid var(--border-glass);
}

.filter-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Mobile Default: 2-column products-grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* Premium Product Card Component */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.4s ease;
}

:root[data-theme="dark"] .product-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

:root[data-theme="dark"] .product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

/* Badges Stack */
.product-badges-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    width: max-content;
}

.pill-hot {
    background-color: #fd3d6b; /* hot pink */
}

.pill-sale {
    background-color: #3ba6f2; /* sky blue */
}

.pill-new {
    background-color: #3bb77e; /* neon green */
}

.pill-discount {
    background-color: #fd3d6b; /* discount pink */
}

.pill-default {
    background-color: var(--primary);
}

/* Image Wrapper */
.product-img-wrapper {
    height: 180px;
    width: 100%;
    overflow: hidden;
    background: var(--card-info-bg);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: background-color 0.4s ease;
}

:root[data-theme="dark"] .product-img-wrapper {
    background: #111528;
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hover Overlay Actions - Outline design inside glass card */
.product-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%) scale(0.9);
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 5px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

:root[data-theme="dark"] .product-hover-actions {
    background: rgba(10, 12, 22, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-img-wrapper:hover .product-hover-actions {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.hover-action-btn {
    background: none;
    border: none;
    color: var(--primary);
    height: 36px;
    width: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .hover-action-btn {
    color: #a2b2db;
}

.hover-action-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

:root[data-theme="dark"] .hover-action-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.hover-action-btn.active {
    color: #fd3d6b;
}

.hover-action-btn i, .hover-action-btn svg {
    width: 16px;
    height: 16px;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

:root[data-theme="dark"] .product-info {
    background: transparent;
    border-top: 1px solid var(--border-glass);
}

.product-brand-tag {
    font-size: 11px;
    color: #adadad;
    text-transform: lowercase;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
}

.product-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

:root[data-theme="dark"] .product-card-title {
    color: var(--text-primary);
}

.product-card-title:hover {
    color: var(--primary);
}

:root[data-theme="dark"] .product-card-title:hover {
    color: #a2b2db;
}

/* Stars Row & Ratings */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.product-stars {
    display: flex;
    align-items: center;
    color: #ffb300;
    gap: 2px;
}

.product-stars .star-icon {
    width: 12px;
    height: 12px;
}

.rating-count {
    font-size: 11px;
    color: #b6b6b6;
    font-weight: 500;
}

/* Seller Tag */
.product-vendor {
    font-size: 12px;
    color: #adadad;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-vendor .vendor-link {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

:root[data-theme="dark"] .product-vendor .vendor-link {
    color: #a2b2db;
}

.product-vendor .vendor-link:hover {
    opacity: 0.8;
}

/* Footer & Buttons */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

:root[data-theme="dark"] .product-price {
    color: #a2b2db;
}

.product-price-original {
    font-size: 12px;
    color: #adadad;
    text-decoration: line-through;
    font-weight: 500;
}

/* Add Cart Button Premium */
.add-cart-btn-premium {
    background-color: var(--primary-glow);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] .add-cart-btn-premium {
    background-color: var(--primary-glow);
    color: #a2b2db;
}

.add-cart-btn-premium:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

:root[data-theme="dark"] .add-cart-btn-premium:hover {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.add-cart-btn-premium i, .add-cart-btn-premium svg {
    width: 14px;
    height: 14px;
}

/* --- Best Sellers & Dynamic Recently Viewed Section --- */
/* Mobile Default: split-layout is 1-column */
.recent-section-wrapper {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.recent-section-wrapper.split-layout {
    grid-template-columns: 1fr;
}

/* --- Footer Section --- */
footer {
    background: #08090d;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 0;
    margin-top: auto;
    position: relative;
}

/* Mobile Default: 1-column footer-grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #8892b0;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #a2b2db;
    transform: translateX(4px);
}

/* Payment Badges System */
.payment-methods {
    margin-top: 8px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    background: #11131c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    height: 36px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

.payment-badge:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-visa-mc {
    width: 148px;
    padding: 8px 12px;
    justify-content: flex-start;
}

.mc-red,
.mc-yellow {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.mc-red {
    background: #eb001b;
    left: 12px;
    z-index: 1;
}

.mc-yellow {
    background: #ff5f00;
    left: 22px;
    z-index: 2;
    opacity: 0.95;
}

.card-text {
    margin-left: 36px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-upi {
    border-color: rgba(0, 176, 240, 0.2);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
}

.card-netbanking {
    border-color: rgba(244, 180, 0, 0.2);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
}

/* Get In Touch Contact List */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
    color: #8892b0;
}

.footer-contact-list li i {
    margin-top: 3px;
    margin-right: 12px;
    color: #a2b2db;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.footer-contact-list li a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
    color: #ffffff;
}

/* Social Media Circular Row */
.social-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #11131c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8892b0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

/* Large Right-Aligned Brand Identity */
.footer-logo-col {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.large-footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.logo-shine {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
    position: relative;
    display: inline-block;
}



.logo-slogan {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6b7280;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Footer Bottom Credit & Info Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #6b7280;
}

/* Scroll-to-Top Button Style */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #0c0d12;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 24px var(--primary-glow);
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    stroke-width: 2.5px;
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover svg {
    transform: translateY(-2px);
}

/* --- Drawers & Modals (Shopping Cart, Quick View) --- */
/* Blur Backdrop Overlay */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 150;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.backdrop.active {
    display: block;
    opacity: 1;
}

/* Shopping Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    z-index: 200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-glass);
}

.cart-drawer.active {
    right: 0;
}

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

.drawer-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: var(--input-bg);
    color: var(--danger);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #121824;
    border: 1px solid var(--border-glass);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-weight: 800;
    color: var(--accent);
    font-size: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    padding: 2px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    height: 22px;
    width: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
}

.qty-val {
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
    min-width: 18px;
    text-align: center;
}

.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin: auto;
    color: var(--text-muted);
}

.empty-cart-state i {
    color: var(--text-muted);
    opacity: 0.5;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border-glass);
    padding-top: 10px;
    margin-top: 2px;
}

.free-shipping-indicator {
    background: var(--success-glow);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Modern Quick View Modal */
.quickview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 820px;
    max-height: 90vh;
    z-index: 200;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-glass);
}

.quickview-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile Default: 1-column modal body */
.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
}

/* Mobile Default: Modal gallery layout */
.modal-gallery {
    background: #121824;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    min-height: 260px;
}

/* Mobile Default: 220px max height main modal image */
.modal-main-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Default: 24px details padding */
.modal-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(19, 27, 46, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    color: white;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: var(--danger);
    background: rgba(19, 27, 46, 0.9);
    transform: scale(1.05);
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.modal-price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.modal-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

:root[data-theme="dark"] .modal-price {
    color: #a2b2db;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-specs-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--input-bg);
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 700;
}

.modal-action-row {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
}

/* Dynamic Animated Notification Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(19, 27, 46, 0.9);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slide-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 320px;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.info {
    border-left-color: var(--accent);
}

.toast-title {
    font-weight: 700;
    font-size: 13px;
}

.toast-body {
    font-size: 12px;
    color: #d1d5db;
    margin-top: 2px;
}

/* --- Animations --- */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

@keyframes pop-bounce {
    0% {
        transform: scale(0.6);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

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

@keyframes slide-right {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

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

@keyframes fade-slide-right {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }

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

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* --- Responsive Media Queries (Mobile-First overrides) --- */

/* --- Tablet / Landscape View overrides (min-width: 768px) --- */
@media (min-width: 768px) {
    .nav-wrapper {
        height: 76px;
    }

    .logo-text {
        font-size: 24px;
    }

    /* Show main search input */
    .search-container {
        display: block;
        margin: 0 32px;
    }

    .slide {
        padding: 0 60px;
    }

    .slide-title {
        font-size: 40px;
    }

    .slide-desc {
        font-size: 15px;
    }

    .slider-viewport {
        height: 380px;
    }

    /* Grids scaling to 3 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 48px;
    }

    /* Scaling product card elements */
    .product-img-wrapper {
        height: 220px;
    }

    .product-card-title {
        font-size: 16px;
        height: 42px;
    }

    .product-price {
        font-size: 19px;
    }

    .add-cart-btn-premium {
        height: 38px;
        padding: 0 18px;
        font-size: 14px;
    }

    /* Grid Categories & Footer split */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Modal Layouts split row */
    .modal-body {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .modal-gallery {
        border-right: 1px solid var(--border-glass);
        border-bottom: none;
        min-height: 480px;
        padding: 32px;
    }

    .modal-main-img {
        max-height: 340px;
    }

    .modal-details {
        padding: 32px;
    }

    .recent-section-wrapper.split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* --- Laptop / Desktop View overrides (min-width: 1200px) --- */
@media (min-width: 1200px) {
    .slider-viewport {
        height: 480px;
    }

    .slide {
        padding: 0;
    }

    .slide-title {
        font-size: 48px;
    }

    .slide-desc {
        font-size: 16px;
    }

    /* Grids scaling to 4 columns on laptop/desktop */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-bottom: 56px;
    }

    /* Footer Grid Layout */
    .footer-grid {
        grid-template-columns: 1fr 1.1fr 1.5fr 1.3fr;
        gap: 48px;
    }

    .footer-logo-col {
        align-items: flex-end;
        justify-content: flex-end;
    }

    .large-footer-logo {
        align-items: flex-end;
        text-align: right;
    }

    .recent-section-wrapper.split-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* --- About Remtron Corporate Brand Section (Shine Foods Inspired) --- */
.about-remtron-brand {
    margin-top: 56px;
    margin-bottom: 72px;
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.about-remtron-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-remtron-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 64px;
    }
}

.about-remtron-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.about-brand-heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .about-brand-heading {
        font-size: 42px;
    }
}

.about-brand-heading .highlight-accent {
    color: #ffffff;
    background: var(--primary); /* Deep brand indigo #28355c */
    padding: 0 12px;
    border-radius: 99px;
    display: inline-block;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.about-brand-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-brand-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Stats Row styling */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin: 8px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 20px 0;
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Corporate Headquarters detail box */
.about-hq-box {
    width: 100%;
    background: var(--card-info-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hq-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
}

.hq-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.hq-detail-items-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hq-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hq-detail-item i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.hq-detail-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.hq-detail-item a:hover {
    color: var(--primary);
}

.about-brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary); /* #28355c */
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.about-brand-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow-heavy);
}

/* Right Column Features 2x2 Grid */
.about-remtron-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 480px) {
    .about-remtron-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.feature-card {
    padding: 24px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* Feature Colors and Icons (Themed with high elegance) */
.feature-card.f-green {
    background-color: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.12);
}
:root[data-theme="dark"] .feature-card.f-green {
    background-color: rgba(76, 175, 80, 0.04);
    border-color: rgba(76, 175, 80, 0.18);
}
.feature-card.f-green .feature-icon-circle {
    background-color: rgba(76, 175, 80, 0.85);
    color: #ffffff;
}
.feature-card.f-green .feature-card-title {
    color: #1b5e20;
}
:root[data-theme="dark"] .feature-card.f-green .feature-card-title {
    color: #a5d6a7;
}

.feature-card.f-orange {
    background-color: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.12);
}
:root[data-theme="dark"] .feature-card.f-orange {
    background-color: rgba(255, 152, 0, 0.04);
    border-color: rgba(255, 152, 0, 0.18);
}
.feature-card.f-orange .feature-icon-circle {
    background-color: rgba(255, 152, 0, 0.85);
    color: #ffffff;
}
.feature-card.f-orange .feature-card-title {
    color: #e65100;
}
:root[data-theme="dark"] .feature-card.f-orange .feature-card-title {
    color: #ffcc80;
}

.feature-card.f-rose {
    background-color: rgba(244, 67, 54, 0.08);
    border-color: rgba(244, 67, 54, 0.12);
}
:root[data-theme="dark"] .feature-card.f-rose {
    background-color: rgba(244, 67, 54, 0.04);
    border-color: rgba(244, 67, 54, 0.18);
}
.feature-card.f-rose .feature-icon-circle {
    background-color: rgba(244, 67, 54, 0.85);
    color: #ffffff;
}
.feature-card.f-rose .feature-card-title {
    color: #b71c1c;
}
:root[data-theme="dark"] .feature-card.f-rose .feature-card-title {
    color: #ef9a9a;
}

.feature-card.f-green-light {
    background-color: rgba(139, 195, 74, 0.08);
    border-color: rgba(139, 195, 74, 0.12);
}
:root[data-theme="dark"] .feature-card.f-green-light {
    background-color: rgba(139, 195, 74, 0.04);
    border-color: rgba(139, 195, 74, 0.18);
}
.feature-card.f-green-light .feature-icon-circle {
    background-color: rgba(139, 195, 74, 0.85);
    color: #ffffff;
}
.feature-card.f-green-light .feature-card-title {
    color: #33691e;
}
:root[data-theme="dark"] .feature-card.f-green-light .feature-card-title {
    color: #c5e1a5;
}

.feature-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.feature-icon-circle i {
    width: 20px;
    height: 20px;
}

.feature-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.feature-card-desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* ======================================================
   TESTIMONIALS SECTION
   ====================================================== */
.testimonials-section {
    padding: 72px 0 80px;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

/* Subtle radial glow at the centre-top */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(40,53,92,0.22) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 12px 0 10px;
    letter-spacing: -0.5px;
}

.testimonials-subtitle {
    font-size: 14.5px;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Infinite marquee track ---- */
.testi-track-wrapper {
    overflow: hidden;
    /* edge fade masks */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.testi-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: testi-scroll 36s linear infinite;
}

.testi-track-wrapper:hover .testi-track {
    animation-play-state: paused;
}

@keyframes testi-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Individual card ---- */
.testi-card {
    flex: 0 0 340px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 28px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
    position: relative;
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(40,53,92,0.3);
}

/* top row: avatar + name + quote icon */
.testi-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Avatar circle */
.testi-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28355c, #4a5f8a);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.testi-av2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.testi-av3 { background: linear-gradient(135deg, #059669, #34d399); }
.testi-av4 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.testi-av5 { background: linear-gradient(135deg, #be123c, #f43f5e); }
.testi-av6 { background: linear-gradient(135deg, #0369a1, #38bdf8); }

.testi-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    line-height: 1.2;
}

.testi-role {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

/* Quote SVG pushed to right */
.testi-quote-icon {
    margin-left: auto;
    flex-shrink: 0;
    width: 32px;
    height: auto;
    opacity: 0.7;
}

/* Review text */
.testi-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    flex: 1;
}

/* Stars */
.testi-stars {
    font-size: 16px;
    color: #FFBA09;
    letter-spacing: 2px;
    margin-top: auto;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .testi-card {
        flex: 0 0 288px;
        padding: 22px 18px 18px;
    }

    .testimonials-section {
        padding: 48px 0 56px;
    }

    .testimonials-title {
        font-size: 24px;
    }
}