@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Light Theme Color Tokens (HSL) */
    --primary: hsl(0, 100%, 20%); /* Crimson Red #670000 */
    --primary-dark: hsl(0, 100%, 15%);
    --primary-light: hsl(0, 100%, 30%);
    --accent-gold: hsl(45, 85%, 50%); /* Rich Gold #d4af37 */
    --accent-gold-glow: hsla(45, 85%, 50%, 0.35);
    --accent-green: hsl(142, 70%, 35%); /* Success Green */
    --accent-green-light: hsl(142, 70%, 95%);
    --bg-light: hsl(220, 20%, 97%); /* Soft background grey */
    --bg-white: hsl(0, 0%, 100%);
    --bg-card: hsl(0, 0%, 100%);
    --text-primary: hsl(220, 25%, 15%);
    --text-muted: hsl(220, 12%, 50%);
    --border-color: hsl(220, 15%, 90%);
    --card-shadow-rgb: 0, 0, 0;
    
    /* Design Tokens */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(103, 0, 0, 0.05);
    --card-shadow: 0 10px 30px -10px rgba(var(--card-shadow-rgb), 0.06), 0 1px 3px rgba(var(--card-shadow-rgb), 0.02);
    --hover-shadow: 0 20px 40px -15px rgba(103, 0, 0, 0.15), 0 1px 5px rgba(103, 0, 0, 0.05);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Skeleton Loader Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton-loading {
    animation-duration: 1.25s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    background: #2d3748;
    background: linear-gradient(to right, #1a202c 8%, #2d3748 18%, #1a202c 33%);
    background-size: 800px 104px;
    position: relative;
}

body:not(.dark-theme) .skeleton-loading {
    background: #e2e8f0;
    background: linear-gradient(to right, #edf2f7 8%, #e2e8f0 18%, #edf2f7 33%);
    background-size: 800px 104px;
}

/* Dark Theme overrides */
body.dark-theme {
    --bg-light: hsl(220, 25%, 8%);
    --bg-white: hsl(220, 25%, 12%);
    --bg-card: hsl(220, 25%, 14%);
    --text-primary: hsl(220, 20%, 95%);
    --text-muted: hsl(220, 10%, 65%);
    --border-color: hsl(220, 20%, 18%);
    --card-shadow-rgb: 0, 0, 0;
    --accent-green-light: hsl(142, 50%, 12%);
    --accent-green: hsl(142, 70%, 45%);
    --glass-bg: rgba(20, 24, 33, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 20px 45px -15px rgba(212, 175, 55, 0.2), 0 1px 5px rgba(212, 175, 55, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: hsl(0, 0%, 75%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Scroll Animation classes */
.reveal-el {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-el.active {
    opacity: 1;
    transform: translateY(0);
}

/* Promotional Marquee Banner */
.marquee-container {
    width: 100%;
    background: linear-gradient(90deg, #ffd500 0%, #ffea79 50%, #ffd500 100%);
    color: #000;
    overflow: hidden;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
}

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

.marquee-highlight {
    color: var(--primary);
    font-weight: 800;
    animation: blink-soft 1s infinite alternate;
}

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

@keyframes blink-soft {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Header Design */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 38px; /* sits below marquee */
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

header.shrunk {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition-smooth);
}

header.shrunk .top-bar {
    padding: 8px 20px;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(103, 0, 0, 0.3);
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary);
    line-height: 1.1;
    transition: color 0.3s;
}

body.dark-theme .logo-text h1 {
    color: var(--text-primary);
}

.logo-text span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 800;
    display: block;
}

/* Advanced Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.search-bar:focus-within {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 15px rgba(103, 0, 0, 0.1);
}

body.dark-theme .search-bar:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-input {
    width: 100%;
    padding: 10px 22px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-primary);
}

.search-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 22px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .search-btn {
    background: var(--accent-gold);
    color: black;
}

.search-btn:hover {
    filter: brightness(1.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.action-link:hover {
    color: var(--primary);
}

body.dark-theme .action-link:hover {
    color: var(--accent-gold);
}

.action-link i {
    font-size: 20px;
}

/* Dark Mode Switcher Toggle */
.theme-toggle-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.theme-toggle-btn:hover {
    transform: rotate(30deg) scale(1.1);
    border-color: var(--primary);
}

body.dark-theme .theme-toggle-btn:hover {
    border-color: var(--accent-gold);
}

/* Category Navigation Menu */
.nav-menu {
    background: var(--primary);
    color: white;
    transition: background-color 0.4s ease;
}

body.dark-theme .nav-menu {
    background: hsl(220, 25%, 15%);
}

.nav-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.category-dropdown-trigger {
    background: var(--primary-dark);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

body.dark-theme .category-dropdown-trigger {
    background: hsl(220, 25%, 10%);
    color: var(--accent-gold);
}

.category-dropdown-trigger:hover {
    background: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-links li a:hover {
    background: var(--primary-light);
    color: white;
}

.nav-links li.active a {
    background: var(--primary-dark);
    color: var(--accent-gold);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

.carousel-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 520px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-content .badge {
    background: var(--accent-gold);
    color: black;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.carousel-content h2 {
    font-size: 46px;
    line-height: 1.1;
    margin-bottom: 18px;
    font-weight: 800;
}

.carousel-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    background: var(--accent-gold);
    color: black;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--accent-gold-glow);
}

.carousel-nav {
    position: absolute;
    bottom: 25px;
    left: 60px;
    z-index: 3;
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--accent-gold);
    width: 28px;
    border-radius: 5px;
}

/* Side Promo Cards */
.hero-side-promos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-card {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.05);
}

.promo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.promo-card-content {
    position: relative;
    z-index: 2;
}

.promo-card-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.promo-card-content p {
    font-size: 13px;
    opacity: 0.95;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hot Selling Categories Circles Row (Advancement) */
.categories-circles-section {
    max-width: 1200px;
    margin: 40px auto 10px auto;
    padding: 0 20px;
}

.categories-circles-title {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.categories-circles-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

body.dark-theme .categories-circles-title::after {
    background: var(--accent-gold);
}

.circles-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.circle-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    width: 110px;
    transition: var(--transition-bounce);
}

.circle-cat-item:hover {
    transform: translateY(-8px);
}

.circle-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

.circle-cat-item:hover .circle-icon-box {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(103,0,0,0.2);
}

body.dark-theme .circle-cat-item:hover .circle-icon-box {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(212,175,55,0.3);
}

.circle-cat-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Quality Trust Badges Highlights */
.highlights-bar {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 20px;
}

.highlights-container {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: hsl(0, 100%, 96%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition-smooth);
}

body.dark-theme .highlight-icon {
    background: hsl(0, 100%, 15%);
    color: var(--accent-gold);
}

.highlight-item:hover .highlight-icon {
    transform: rotate(360deg);
}

.highlight-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Filter Chips Bar */
.categories-filter-bar {
    max-width: 1200px;
    margin: 40px auto 10px auto;
    padding: 0 20px;
    overflow-x: auto;
    display: flex;
    gap: 12px;
    white-space: nowrap;
    scrollbar-width: none;
}

.categories-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 12px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-theme .filter-chip:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(103, 0, 0, 0.2);
}

body.dark-theme .filter-chip.active {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

/* Main Shop Grid layout */
.shop-section {
    max-width: 1200px;
    margin: 20px auto 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

/* Sidebar Filter Controls */
.filter-sidebar {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.sidebar-mobile-header {
    display: none;
}

.mobile-filter-btn {
    display: none;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: var(--bg-light);
    color: var(--text-primary);
}

.price-input:focus {
    border-color: var(--primary);
}

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

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Dynamic Live Countdown Section */
.countdown-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

body.dark-theme .countdown-banner {
    background: linear-gradient(135deg, hsl(220, 25%, 15%) 0%, hsl(220, 25%, 10%) 100%);
    border-color: var(--border-color);
}

.countdown-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.countdown-icon {
    font-size: 36px;
    color: var(--accent-gold);
    animation: rotate-shake 1.5s infinite alternate;
}

.countdown-title h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.countdown-title p {
    font-size: 13px;
    opacity: 0.85;
}

.timer-boxes {
    display: flex;
    gap: 12px;
}

.timer-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-width: 70px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

body.dark-theme .timer-box {
    background: rgba(0, 0, 0, 0.25);
    border-color: var(--border-color);
}

.timer-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.timer-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.8;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

@keyframes rotate-shake {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}

/* Product Card Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Premium Card Design with Glassmorphic Overlay */
.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: var(--transition-bounce);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 5;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary);
}

body.dark-theme .product-card:hover {
    border-color: var(--accent-gold);
}

/* Badge System */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-popular {
    background: var(--accent-gold);
    color: black;
}

.badge-sale {
    background: var(--primary);
    color: white;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Image Container with Double Hover Flip */
.product-image-container {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.dark-theme .product-image-container {
    background: white; /* Keep phone white backgrounds looking clean or adjust */
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-image-container img.hover-img {
    position: absolute;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-image-container img.main-img {
    opacity: 0;
    transform: scale(0.9) rotate(-3deg);
}

.product-card:hover .product-image-container img.hover-img {
    opacity: 1;
    transform: scale(1.08) rotate(3deg);
}

/* Quick View Overlay (Advancement) */
.quick-view-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 10;
    background: rgba(103, 0, 0, 0.9);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition-bounce);
    pointer-events: none;
}

body.dark-theme .quick-view-overlay {
    background: rgba(212, 175, 55, 0.9);
    color: black;
}

.product-image-container:hover .quick-view-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Product Info */
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

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

body.dark-theme .product-title:hover {
    color: var(--accent-gold);
}

/* Pricing Layout */
.price-layout {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

body.dark-theme .current-price {
    color: var(--accent-gold);
}

.old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Installment Plan box */
.installment-tag {
    background: var(--accent-green-light);
    color: var(--accent-green);
    border: 1.5px dashed var(--accent-green);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.installment-tag:hover {
    background: var(--accent-green);
    color: white;
    border-style: solid;
    transform: scale(1.02);
}

/* Action button inside card */
.card-action-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    margin-top: auto;
}

body.dark-theme .card-action-btn {
    background: hsl(220, 20%, 22%);
    border: 1px solid var(--border-color);
}

body.dark-theme .card-action-btn:hover {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
}

.card-action-btn:hover {
    background: var(--primary-dark);
}

/* Slide-out Sidebar Drawers */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 1px solid var(--border-color);
}

.drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

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

.drawer-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

body.dark-theme .drawer-title {
    color: var(--accent-gold);
}

.drawer-close {
    border: none;
    background: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Circular Financial Progress Gauge (Advancement) */
.gauge-section {
    display: flex;
    justify-content: center;
    margin: 15px 0 25px 0;
}

.gauge-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.gauge-circle-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s ease;
}

body.dark-theme .gauge-circle-fill {
    stroke: var(--accent-gold);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-percent {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.gauge-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

/* Installment Calculator Widget Inside Drawer */
.calc-product-header {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.calc-product-image {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.calc-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.calc-product-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.3;
}

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

body.dark-theme .calc-product-info .calc-price {
    color: var(--accent-gold);
}

.calc-group {
    margin-bottom: 22px;
}

.calc-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.05em;
}

/* Term selector cards */
.term-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.term-option {
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-card);
}

.term-option.active {
    border-color: var(--primary);
    background: hsl(0, 100%, 98%);
}

body.dark-theme .term-option.active {
    border-color: var(--accent-gold);
    background: hsl(220, 25%, 16%);
}

.term-option span {
    display: block;
}

.term-option .term-months {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.term-option.active .term-months {
    color: var(--primary);
}

body.dark-theme .term-option.active .term-months {
    color: var(--accent-gold);
}

.term-option .term-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* Down payment slider */
.slider-container {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.slider-val {
    font-weight: 800;
    color: var(--primary);
}

body.dark-theme .slider-val {
    color: var(--accent-gold);
}

.calc-slider {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    accent-color: var(--primary);
    cursor: pointer;
}

body.dark-theme .calc-slider {
    accent-color: var(--accent-gold);
}

/* Interactive Result Panel */
.calc-result-panel {
    background: linear-gradient(135deg, hsl(0, 100%, 12%) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 12px 30px rgba(103,0,0,0.25);
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .calc-result-panel {
    background: linear-gradient(135deg, hsl(220, 25%, 15%) 0%, hsl(220, 25%, 8%) 100%);
    border-color: var(--border-color);
}

.result-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.result-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    display: block;
}

.calc-breakdown {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.9;
}

body.dark-theme .calc-breakdown {
    border-color: var(--border-color);
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

/* Order Form layout */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: var(--bg-light);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 8px rgba(103, 0, 0, 0.15);
}

body.dark-theme .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.form-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-whatsapp {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    transition: var(--transition-bounce);
}

.btn-whatsapp:hover {
    background: hsl(134, 70%, 28%);
    transform: scale(1.02);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-green);
    padding: 12px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 998;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 22px;
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Advanced Quick View Modal (Advancement) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-white);
    border-radius: 24px;
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 20001;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-img-col {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    height: 380px;
}

.modal-img-col img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-price-box {
    margin-bottom: 25px;
}

.modal-action-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Live Fake Sales Notification Alert (Advancement) */
.live-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 997;
    transform: translateY(120px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease, visibility 0.5s ease;
    max-width: 320px;
}

.live-notification.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.live-notify-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.live-notify-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.live-notify-text {
    font-size: 12px;
}

.live-notify-text strong {
    color: var(--primary);
}

body.dark-theme .live-notify-text strong {
    color: var(--accent-gold);
}

/* Footer Section */
footer {
    background: #0f1219;
    color: white;
    padding: 70px 20px 30px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 22px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

body.dark-theme .footer-col h3 {
    border-left-color: var(--accent-gold);
}

.footer-col p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links li a:hover {
    color: var(--accent-gold);
    padding-left: 6px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: #1a202c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

body.dark-theme .social-icon:hover {
    background: var(--accent-gold);
    color: black;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid #1a202c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #718096;
}

/* ==========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================== */

/* Tablet Screens (Max Width: 1024px) */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        height: 340px;
    }
    
    .highlights-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-section {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        background: var(--bg-white);
        z-index: 10000;
        flex-direction: column;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25);
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
        padding: 0;
        border-radius: 0;
    }

    .filter-sidebar.open {
        transform: translateX(0);
        visibility: visible;
    }

    .filter-sidebar .filter-group {
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
    }

    .sidebar-mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-light);
    }

    .sidebar-mobile-header h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-mobile-header .close-sidebar-btn {
        background: none;
        border: none;
        font-size: 18px;
        color: var(--text-primary);
        cursor: pointer;
        transition: color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-mobile-header .close-sidebar-btn:hover {
        color: var(--primary);
    }

    body.dark-theme .sidebar-mobile-header .close-sidebar-btn:hover {
        color: var(--accent-gold);
    }

    .mobile-filter-btn {
        display: flex !important;
    }
    
    .modal-content {
        width: 700px;
        padding: 30px;
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile/Tablet Viewports (Max Width: 768px) */
@media (max-width: 768px) {
    .shop-top-meta {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 12px 15px !important;
    }
    
    #mobileFilterToggleBtn {
        display: flex !important;
        width: auto !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .sort-selector {
        display: flex !important;
        width: auto !important;
        justify-content: flex-end !important;
        border-top: none !important;
        padding-top: 0 !important;
        margin: 0 !important;
    }
    
    .desktop-results-count {
        display: none !important;
    }
    
    .mobile-results-count {
        display: block !important;
    }

    .shop-section {
        padding: 0 10px !important;
        margin: 10px auto 40px auto !important;
    }

    .hidden-mobile {
        display: none !important;
    }
    
    .action-link span {
        display: none !important;
    }

    .marquee-container {
        font-size: 9px;
        padding: 6px 0;
    }
    
    .top-bar {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .action-link i {
        font-size: 18px;
    }
    
    .search-bar {
        display: none;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text span {
        font-size: 8px;
        letter-spacing: 0.1em;
    }
    
    /* Navigation Link alignments */
    .category-dropdown-trigger {
        display: none; /* Circles cover it */
    }
    
    .nav-menu-container {
        justify-content: flex-start;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .nav-menu-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-links {
        width: max-content;
        justify-content: flex-start;
        padding: 0;
    }
    
    .nav-links li a {
        padding: 12px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Carousel mobile improvements */
    .carousel-container {
        height: 240px;
        border-radius: 12px;
    }
    
    .carousel-slide {
        padding: 20px;
    }
    
    .carousel-content {
        max-width: 100%;
    }
    
    .carousel-content .badge {
        font-size: 9px;
        padding: 3px 10px;
        margin-bottom: 10px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .carousel-content p {
        font-size: 12px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .btn-primary {
        padding: 8px 18px;
        font-size: 11px;
    }
    
    .carousel-nav {
        left: 20px;
        bottom: 15px;
    }
    
    /* Horizontal scroll row category circles on mobile (premium visual upgrade) */
    .circles-container {
        padding: 20px 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        scrollbar-width: none;
        border-radius: 16px;
    }
    
    .circles-container::-webkit-scrollbar {
        display: none;
    }
    
    .circle-cat-item {
        width: 75px;
        flex-shrink: 0;
        gap: 8px;
    }
    
    .circle-icon-box {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }
    
    .circle-cat-name {
        font-size: 11px;
    }
    
    .highlights-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .countdown-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 18px;
        border-radius: 12px;
    }
    
    .countdown-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .countdown-icon {
        font-size: 28px;
    }
    
    .countdown-title h3 {
        font-size: 18px;
    }
    
    .countdown-title p {
        font-size: 11px;
    }
    
    .timer-box {
        min-width: 60px;
        padding: 10px;
    }
    
    .timer-number {
        font-size: 18px;
    }
    
    /* Responsive double card mobile layouts */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 14px;
    }
    
    .product-image-container {
        height: 140px;
        padding: 10px;
    }
    
    .product-details {
        padding: 12px 10px 14px 10px;
    }
    
    .product-title {
        font-size: 12px;
        height: 32px;
        margin-bottom: 6px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .old-price {
        font-size: 11px;
    }
    
    .installment-tag {
        font-size: 9px;
        padding: 6px 8px;
        border-radius: 6px;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .card-action-btn {
        font-size: 11px;
        padding: 8px 6px;
        border-radius: 6px;
        gap: 4px;
    }
    
    .drawer {
        width: 100%;
    }
    
    /* Double Column Quick view modal shifts to single column */
    .modal-content {
        grid-template-columns: 1fr;
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        border-radius: 16px;
        gap: 15px;
    }
    
    .modal-img-col {
        height: 180px;
        padding: 10px;
        border-radius: 12px;
    }
    
    .modal-info-col {
        text-align: center;
    }
    
    .modal-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .modal-desc {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .modal-price-box {
        margin-bottom: 15px;
    }
    
    .modal-action-row {
        gap: 8px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: auto;
        height: auto;
        padding: 10px 18px;
        border-radius: 50px;
        font-size: 13px;
    }
    .whatsapp-float i {
        font-size: 18px;
    }
    .whatsapp-float span {
        display: inline;
    }
    
    .live-notification {
        left: 10px;
        bottom: 80px;
        max-width: calc(100% - 20px);
        padding: 10px 14px;
        border-radius: 12px;
        gap: 10px;
    }
    
    .live-notify-img {
        width: 36px;
        height: 36px;
    }
    
    .live-notify-text {
        font-size: 10px;
    }
}

/* ==========================================================
   PRODUCT DETAIL PAGE SPECIFIC STYLES
   ========================================================== */

.detail-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-gallery {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-img-box {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.detail-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.detail-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.detail-desc-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
}

.detail-desc-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

body.dark-theme .detail-desc-card h3 {
    border-left-color: var(--accent-gold);
}

.detail-desc-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 16px;
    font-size: 14px;
}

.specs-table td.spec-name {
    font-weight: 700;
    color: var(--text-primary);
    width: 35%;
    background: var(--bg-light);
    border-radius: 8px 0 0 8px;
}

.specs-table td.spec-value {
    color: var(--text-muted);
    width: 65%;
}

.detail-sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-brand {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-price-row .current-price {
    font-size: 28px;
}

.detail-price-row .old-price {
    font-size: 16px;
}

.detail-sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-sidebar-sticky {
        position: static;
    }
}

@media (max-width: 600px) {
    .detail-container {
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .detail-gallery {
        padding: 15px;
        border-radius: 16px;
    }
    
    .detail-img-box {
        height: 250px;
        padding: 15px;
    }
    
    .detail-desc-card {
        padding: 20px;
        border-radius: 16px;
        margin-top: 20px;
    }
    
    .specs-table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .detail-sidebar-card {
        padding: 20px;
        border-radius: 16px;
        gap: 20px;
    }
    
    .detail-title {
        font-size: 20px;
    }
}

/* Sidebar category link active state */
.sidebar-cat-link:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}
body.dark-theme .sidebar-cat-link:hover {
    color: var(--accent-gold) !important;
}
.sidebar-cat-link.active-sidebar-cat {
    background: var(--primary) !important;
    color: white !important;
}
body.dark-theme .sidebar-cat-link.active-sidebar-cat {
    background: var(--accent-gold) !important;
    color: black !important;
}
.sidebar-cat-link.active-sidebar-cat .cat-count {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}
body.dark-theme .sidebar-cat-link.active-sidebar-cat .cat-count {
    background: rgba(0,0,0,0.1) !important;
    color: black !important;
}

/* Active Tags styles */
.active-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}
body.dark-theme .filter-tag:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.filter-tag i {
    font-size: 10px;
    color: var(--text-muted);
}
.filter-tag:hover i {
    color: inherit;
}

/* Custom Plan Cards for database-driven installments */
.plans-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.plan-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 16px;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

body.dark-theme .plan-card:hover {
    border-color: var(--accent-gold);
}

.plan-card.active {
    border-color: var(--primary);
    background: hsla(0, 100%, 20%, 0.02);
}

body.dark-theme .plan-card.active {
    border-color: var(--accent-gold);
    background: hsla(45, 85%, 50%, 0.04);
}

/* Custom Radio Indicator */
.plan-card-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.plan-card-radio .radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition-smooth);
}

.plan-card.active .plan-card-radio {
    border-color: var(--primary);
}

body.dark-theme .plan-card.active .plan-card-radio {
    border-color: var(--accent-gold);
}

.plan-card.active .plan-card-radio .radio-inner {
    background: var(--primary);
}

body.dark-theme .plan-card.active .plan-card-radio .radio-inner {
    background: var(--accent-gold);
}

/* Floating Badge */
.plan-card-badge-floating {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #d4af37;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    z-index: 2;
    letter-spacing: 0.5px;
}

body.dark-theme .plan-card-badge-floating {
    background: var(--accent-gold);
    color: #000;
}

/* Custom Scrollbar for Reviews list container */
#reviewsListContainer::-webkit-scrollbar {
    width: 6px;
}
#reviewsListContainer::-webkit-scrollbar-track {
    background: transparent;
}
#reviewsListContainer::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}
#reviewsListContainer::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-gold);
}

/* Hide mobile-only results count by default on desktop viewports */
.mobile-results-count {
    display: none;
}

