/**
 * Statikko - Premium Tech Store Stylesheet
 * Modern Yellow and Grey Theme with Visual Effects
 */

:root {
    /* Brand Colors */
    --primary: #0d0d0d;
    --primary-dark: #000000;
    --secondary: #1a1a1a;
    --tertiary: #2a2a2a;
    --accent: #f5c518;
    --accent-hover: #ffd84d;
    --accent-dark: #d4a800;
    --accent-glow: rgba(245, 197, 24, 0.3);

    /* Text Colors */
    --text: #ffffff;
    --text-muted: #888888;
    --text-dark: #0d0d0d;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #f5c518 0%, #ffd84d 50%, #f5c518 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    --gradient-card: linear-gradient(145deg, #1f1f1f 0%, #151515 100%);
    --gradient-hero: linear-gradient(135deg, #f5c518 0%, #e6b800 100%);

    /* Status Colors */
    --success: #00ff88;
    --error: #ff4444;
    --warning: #ffaa00;

    /* Spacing */
    --container-width: 1400px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-accent: 0 8px 32px rgba(245, 197, 24, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at top, rgba(245, 197, 24, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(245, 197, 24, 0.02) 0%, transparent 50%);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 20px var(--accent-glow);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER ===================== */
.header {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(245, 197, 24, 0.1);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left a,
.top-bar-left span {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left a:hover {
    color: var(--primary);
    text-shadow: none;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Main Header */
.main-header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 55px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 20px var(--accent-glow));
    transform: scale(1.02);
}

.logo-text {
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
    text-shadow: 0 0 30px var(--accent-glow);
}

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

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 650px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: var(--secondary);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--tertiary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin-top: 10px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--tertiary);
}

.search-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    display: none;
}

.search-loading.show {
    display: block;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--tertiary);
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text);
}

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

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

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

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

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.search-result-name mark {
    background: var(--accent);
    color: var(--text-dark);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-brand {
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.search-view-all {
    display: block;
    padding: 15px;
    text-align: center;
    background: var(--tertiary);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.search-view-all:hover {
    background: var(--accent);
    color: var(--text-dark);
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
}

.search-no-results i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* Search Suggestions */
.search-suggestions-header {
    padding: 12px 15px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
    border-bottom: 1px solid var(--tertiary);
}

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

.search-suggestion-item:hover {
    background: var(--tertiary);
    color: var(--accent);
}

.search-suggestion-item i {
    color: var(--text-muted);
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.search-suggestion-item:hover i {
    color: var(--accent);
}

.search-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    outline: none;
}

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

.search-form button {
    padding: 16px 28px;
    background: var(--gradient-accent);
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

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

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

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    font-size: 11px;
    gap: 4px;
    padding: 12px 18px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.header-action:hover {
    background: var(--secondary);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.header-action i {
    font-size: 24px;
}

.header-action.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 10px;
    background: var(--gradient-accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.5);
}

/* PC Builder action button */
.header-action.pc-builder-action {
    background: var(--gradient-accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius);
}

.header-action.pc-builder-action:hover {
    background: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.header-action.pc-builder-action i {
    color: var(--primary);
}

/* Navigation */
.main-nav {
    background: var(--secondary);
    border-top: 1px solid var(--tertiary);
    position: relative;
    overflow: visible;
}

.nav-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    min-width: max-content;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(245, 197, 24, 0.05);
}

.nav-link i {
    font-size: 16px;
    color: var(--accent);
}

/* Brands Link */
.brands-link {
    margin-left: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.brands-link i {
    color: #00d4aa;
}

.brands-link:hover {
    color: #00d4aa;
}

.brands-link::after {
    background: linear-gradient(90deg, #00d4aa, #00b894) !important;
}

/* Deals Link - Special Styling */
.deals-link {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.2) 0%, rgba(255, 200, 50, 0.15) 100%);
    border-left: 1px solid rgba(245, 197, 24, 0.3);
}

.deals-link i {
    color: var(--accent);
    animation: fireGlow 1.5s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(255, 107, 53, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.8));
        transform: scale(1.1);
    }
}

.deals-link:hover {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.3) 0%, rgba(255, 200, 50, 0.25) 100%);
    color: var(--accent);
}

.deals-link::after {
    background: var(--gradient-accent) !important;
}

/* PC Builder Button - Special */
.pc-builder-btn {
    background: var(--gradient-accent) !important;
    color: var(--primary) !important;
    font-weight: 800;
    border-radius: 50px;
    margin-left: auto;
    padding: 14px 28px !important;
    box-shadow: var(--shadow-accent);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(245, 197, 24, 0.5); }
}

.pc-builder-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(245, 197, 24, 0.5);
}

.pc-builder-btn::after {
    display: none;
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 900px;
    background: var(--secondary);
    padding: 25px 30px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--accent);
    animation: slideDown 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-menu.show,
.nav-item:hover .mega-menu {
    display: block;
}

/* Left-align first two nav items (PC Components, Computers) - align with container */
.nav-item:nth-child(1) .mega-menu,
.nav-item:nth-child(2) .mega-menu {
    left: max(20px, calc((100vw - 1400px) / 2 + 20px));
    transform: none;
    animation: slideDownLeft 0.3s ease;
}

@keyframes slideDownLeft {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu-column h4 {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 12px;
}

.mega-menu-column a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 0;
}

.mega-menu-column a:hover {
    color: var(--accent);
    transform: translateX(8px);
    text-shadow: none;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 197, 24, 0.4);
    color: var(--primary);
}

.btn-secondary {
    background: var(--tertiary);
    color: var(--text);
    border: 1px solid var(--tertiary);
}

.btn-secondary:hover {
    background: var(--secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* ===================== HERO SECTION ===================== */
.hero-slider {
    position: relative;
    margin: 30px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider-container {
    position: relative;
}

.slide {
    display: none;
    position: relative;
    min-height: 500px;
    background: var(--gradient-dark);
}

.slide.active {
    display: flex;
}

.slide-content {
    flex: 1;
    display: flex;
    align-items: center;
    z-index: 2;
    padding: 60px;
}

.slide-text {
    max-width: 550px;
}

.slide-tag {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.slide-text h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.slide-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 50%);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

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

.dot.active,
.dot:hover {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ===================== DEALS SLIDER ===================== */
.deals-slider-section {
    padding: 50px 0 30px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.deals-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.deals-slider {
    overflow: hidden;
    flex: 1;
    border-radius: var(--radius-lg);
}

.deals-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.deal-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--tertiary);
    transition: all 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.deal-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.deal-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.deal-card:hover .deal-image img {
    transform: scale(1.08);
}

.deal-info {
    padding: 18px;
}

.deal-brand {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.deal-name {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.deal-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.deal-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.deal-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Slider Navigation */
.slider-nav {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--tertiary);
    flex-shrink: 0;
}

.slider-nav:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tertiary);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* Responsive for deals slider */
@media (max-width: 1200px) {
    .deal-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    .deal-card {
        flex: 0 0 calc(50% - 10px);
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .deals-slider-section {
        padding: 30px 0 20px;
    }

    .deal-card {
        flex: 0 0 calc(100% - 20px);
        min-width: 260px;
    }

    .deals-slider-wrapper {
        gap: 10px;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .deal-image {
        height: 160px;
    }
}

/* ===================== USP BAR ===================== */
.usp-bar {
    padding: 30px 0;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.usp-item:hover {
    background: var(--tertiary);
}

.usp-item i {
    font-size: 32px;
    color: var(--accent);
}

.usp-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.usp-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===================== SECTIONS ===================== */
.products-section,
.categories-section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2 i {
    color: var(--accent);
    font-size: 28px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-all:hover {
    background: var(--accent);
    color: var(--primary);
    text-shadow: none;
}

/* ===================== CATEGORIES ===================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 35px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--tertiary);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.category-card:hover .category-icon {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-hover);
    box-shadow: 0 0 30px var(--accent-glow);
}

.category-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

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

/* ===================== PRODUCTS ===================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--tertiary);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, transparent 0%, var(--accent) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 197, 24, 0.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.product-badge.sale {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.product-badge.featured {
    background: var(--gradient-accent);
    color: var(--primary);
}

.product-image-link {
    display: block;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
}

.product-image-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.02) 100%);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-card .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-brand {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--text);
    display: block;
    min-height: 38px;
}

.product-name:hover {
    color: var(--accent);
}

.product-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
    /* Fixed height for consistent card alignment */
    min-height: 36px;
    max-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Stock Status Indicator */
.product-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: var(--radius);
    width: fit-content;
}

.product-stock.in-stock {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.product-stock.in-stock i {
    color: #2ecc71;
}

.product-stock.supplier-stock {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.product-stock.supplier-stock i {
    color: #3498db;
}

.product-stock.out-of-stock {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.product-stock.out-of-stock i {
    color: #e74c3c;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--tertiary);
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

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

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px 16px;
    background: var(--gradient-accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.wishlist-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--tertiary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: var(--error);
    color: white;
}

.btn-disabled {
    background: var(--tertiary) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

/* Placeholder Products */
.products-placeholder {
    text-align: center;
    padding: 40px;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.product-card.placeholder {
    background: var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.product-image-placeholder {
    height: 200px;
    background: var(--tertiary);
}

.product-info-placeholder {
    padding: 25px;
}

.text-placeholder {
    height: 16px;
    background: var(--tertiary);
    border-radius: 4px;
    margin-bottom: 12px;
}

.text-placeholder.brand { width: 40%; }
.text-placeholder.title { width: 80%; }
.text-placeholder.price { width: 50%; }

.placeholder-text {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===================== PC BUILDER CTA ===================== */
.pc-builder-cta {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    margin: 60px 0;
    overflow: hidden;
    border: 1px solid var(--tertiary);
    position: relative;
}

.pc-builder-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    align-items: center;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-text h2 i {
    color: var(--accent);
}

.cta-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-features {
    list-style: none;
    margin-bottom: 35px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
}

.cta-features i {
    color: var(--success);
    font-size: 18px;
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--primary);
    font-weight: 700;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
    color: var(--primary);
}

.cta-image {
    text-align: center;
}

.cta-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* ===================== BRANDS SECTION ===================== */
.brands-section {
    padding: 50px 0;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

.brands-slider {
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
}

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

.brand-logo {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.brand-logo img {
    max-width: 100%;
    max-height: 40px;
}

/* ===================== NEWSLETTER ===================== */
.newsletter-section {
    background: var(--gradient-accent);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: var(--radius-xl);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.newsletter-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.newsletter-text p {
    color: var(--primary);
    opacity: 0.8;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
}

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

.newsletter-form .btn {
    background: var(--primary);
    color: var(--text);
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: var(--secondary);
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--primary-dark);
    padding: 80px 0 40px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

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

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid var(--tertiary);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer h4 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
    text-shadow: none;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
    font-size: 16px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    align-items: center;
}

.payment-methods img {
    height: 35px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.payment-methods img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===================== CART POPUP ===================== */
.cart-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 25px;
    min-width: 360px;
    z-index: 1001;
    border: 2px solid var(--accent);
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tertiary);
}

.cart-popup-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success);
    font-size: 16px;
}

.cart-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}

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

.cart-popup-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-popup-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius);
}

.cart-popup-item-info {
    flex: 1;
}

.cart-popup-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-popup-item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

.cart-popup-actions {
    display: flex;
    gap: 12px;
}

.cart-popup-actions .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 13px;
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

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

.breadcrumbs .separator {
    margin: 0 12px;
    color: var(--tertiary);
}

.breadcrumbs .current {
    color: var(--text);
}

/* ===================== NEW HERO SECTION ===================== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0a0a0a 50%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

/* Tech circuit board background pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    pointer-events: none;
    background-image:
        /* Main grid lines */
        linear-gradient(rgba(245, 197, 24, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.3) 1px, transparent 1px),
        /* Secondary grid */
        linear-gradient(rgba(245, 197, 24, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.15) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* Circuit nodes */
.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 100px 100px, var(--accent) 3px, transparent 3px),
        radial-gradient(circle at 200px 200px, var(--accent) 2px, transparent 2px),
        radial-gradient(circle at 300px 50px, var(--accent) 3px, transparent 3px),
        radial-gradient(circle at 50px 250px, var(--accent) 2px, transparent 2px),
        radial-gradient(circle at 400px 150px, var(--accent) 3px, transparent 3px),
        radial-gradient(circle at 150px 350px, var(--accent) 2px, transparent 2px),
        radial-gradient(circle at 500px 300px, var(--accent) 3px, transparent 3px),
        radial-gradient(circle at 350px 400px, var(--accent) 2px, transparent 2px),
        radial-gradient(circle at 600px 100px, var(--accent) 3px, transparent 3px),
        radial-gradient(circle at 700px 250px, var(--accent) 2px, transparent 2px),
        radial-gradient(circle at 800px 350px, var(--accent) 3px, transparent 3px),
        radial-gradient(circle at 900px 150px, var(--accent) 2px, transparent 2px);
    animation: pulse-nodes 4s ease-in-out infinite;
}

@keyframes pulse-nodes {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Animated data lines */
.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    background-size: 200px 2px;
    background-repeat: repeat-y;
    background-position: 0 0;
    animation: data-flow 3s linear infinite;
    opacity: 0.3;
}

@keyframes data-flow {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Animated gradient orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.15) 0%, rgba(245, 197, 24, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 197, 24, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text);
}

.hero-content h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(245, 197, 24, 0.4);
}

.hero-content > p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.hero-stats span {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--tertiary);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.hero-card:hover::before {
    transform: scaleY(1);
}

.hero-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hero-card:hover .card-icon {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.hero-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.hero-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.hero-card .card-link {
    margin-left: auto;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.hero-card:hover .card-link {
    opacity: 1;
    transform: translateX(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .products-grid,
    .placeholder-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

    .cta-image {
        display: none;
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid,
    .placeholder-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu {
        min-width: 100%;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hero-card .card-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex: 0 0 100%;
        margin-top: 15px;
        max-width: 100%;
    }

    .top-bar-left {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid,
    .placeholder-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stats strong {
        font-size: 24px;
    }

    .hero-cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 15px 20px;
        gap: 15px;
    }

    .hero-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .hero-card h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .hero-card p {
        font-size: 12px;
        margin: 0;
    }

    .hero-card .card-link {
        display: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .usp-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Brands Grid (replaces slider) */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: var(--tertiary);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.brand-item:hover {
    background: rgba(245, 197, 24, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.brand-item .brand-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.brand-item .brand-count {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.brand-item:hover .brand-name {
    color: var(--accent);
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .brand-item {
        padding: 15px 10px;
    }
    
    .brand-item .brand-name {
        font-size: 12px;
    }
    
    .brand-item .brand-count {
        font-size: 10px;
    }
}

/* Tablet/Laptop Navigation */
@media (max-width: 1200px) {
    .nav-link {
        padding: 14px 16px;
        font-size: 13px;
        gap: 8px;
    }

    .nav-link i {
        font-size: 14px;
    }

    .pc-builder-btn {
        padding: 12px 20px !important;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        padding: 12px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .nav-link i {
        font-size: 13px;
    }

    .nav-link .fa-chevron-down {
        display: none;
    }

    .pc-builder-btn {
        padding: 10px 16px !important;
        font-size: 12px;
        margin-left: 10px;
    }

    .mega-menu {
        position: fixed;
        top: auto;
        left: 5%;
        right: 5%;
        width: 90%;
        min-width: auto;
        max-width: none;
        transform: none;
        border-radius: var(--radius-lg);
        max-height: 70vh;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mega-menu-column {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    .nav-link .fa-chevron-down {
        display: none;
    }
}

/* ===================== MOBILE NAVIGATION ===================== */
/* Hide mobile-only elements on desktop */
.mobile-nav-header {
    display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 8px;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    top: 8px;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    background: var(--accent);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
    background: var(--accent);
}

/* Mobile styles for navigation (smaller screens) */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav-header {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
        background: #1a1a1a !important; /* Solid background, no transparency */
        backdrop-filter: none !important; /* Disable any inherited blur */
        -webkit-backdrop-filter: none !important;
        z-index: 1001;
        transition: left 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        overscroll-behavior: contain; /* Prevent scroll chaining */
        padding-top: 0; /* Header is now sticky inside */
        padding-bottom: 30px;
        box-shadow: 5px 0 30px rgba(0,0,0,0.5);
        visibility: hidden; /* Extra safeguard for extensions like ESET */
        pointer-events: none;
    }

    .main-nav.mobile-open {
        left: 0;
        visibility: visible;
        pointer-events: auto;
    }

    /* Mobile Nav Header with Close Button */
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #2d2d2d !important; /* Solid color */
        border-bottom: 1px solid var(--tertiary);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-nav-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
    }

    .mobile-nav-close {
        width: 40px;
        height: 40px;
        border: none;
        background: var(--tertiary);
        color: var(--text);
        border-radius: var(--radius);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.2s ease;
    }

    .mobile-nav-close:hover {
        background: var(--accent);
        color: var(--primary);
    }

    .main-nav .container {
        padding: 0;
    }

    .nav-content {
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        background: #1a1a1a !important; /* Solid background */
    }

    .nav-item {
        width: 100%;
        flex-shrink: unset;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        font-size: 14px;
        white-space: normal;
        background: #2d2d2d !important; /* Solid color */
        border-radius: var(--radius);
        margin-bottom: 5px;
    }

    .nav-link .fa-chevron-down {
        display: block !important;
        transition: transform 0.3s ease;
    }

    .nav-item.expanded .nav-link .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Mobile Mega Menu as accordion dropdown */
    .mega-menu {
        display: none;
        position: static;
        width: 100%;
        background: #3d3d3d !important; /* Solid color */
        border-radius: var(--radius);
        padding: 15px;
        margin-bottom: 10px;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        opacity: 1;
        transform: none;
    }

    .nav-item.expanded .mega-menu {
        display: block;
    }

    .mega-menu-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mega-menu-column {
        padding: 0;
    }

    .mega-menu-column h4 {
        font-size: 12px;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .mega-menu-column ul li a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .pc-builder-btn {
        margin-top: 15px;
        justify-content: center;
        background: var(--accent) !important;
        color: var(--text-dark) !important;
    }

    /* Mobile Brands & Deals links - reset desktop positioning */
    .brands-link,
    .deals-link {
        width: 100%;
        margin-left: 0;
        border-left: none;
        border-radius: var(--radius);
    }

    .brands-link {
        background: rgba(0, 212, 170, 0.1) !important;
        border: 1px solid rgba(0, 212, 170, 0.3);
    }

    .deals-link {
        border: 1px solid rgba(245, 197, 24, 0.3);
    }

    /* Mobile nav overlay */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.75);
        z-index: 1000;
        touch-action: none; /* Prevent scroll on overlay */
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    /* Ensure nav content is scrollable */
    .nav-content {
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust header for mobile */
    .header-content {
        gap: 15px;
    }

    .search-bar {
        flex: 1;
        order: 3;
        width: 100%;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action span {
        display: none;
    }
}

/* Smaller mobile styles */
@media (max-width: 576px) {
    .main-header {
        padding: 10px 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo img {
        height: 40px;
    }

    .search-bar {
        order: 3;
        flex: 0 0 100%;
        margin-top: 10px;
    }

    .search-form input {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Fix header z-index hierarchy */
.header {
    z-index: 1000;
}

/* Desktop nav positioning - only apply on larger screens */
@media (min-width: 993px) {
    .main-nav {
        position: relative;
        z-index: 999;
    }
}

/* ===================== SEARCH PAGE ===================== */
.search-page {
    padding: 40px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text);
}

.search-header h1 i {
    color: var(--accent);
    margin-right: 10px;
}

.search-page-form {
    max-width: 700px;
    margin: 0 auto 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    background: var(--secondary);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--tertiary);
    transition: border-color 0.3s;
}

.search-input-group:focus-within {
    border-color: var(--accent);
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--text);
    outline: none;
}

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

.search-summary {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 15px;
}

.search-summary strong {
    color: var(--accent);
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--secondary);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.results-info {
    color: var(--text-muted);
    font-size: 14px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: var(--text-muted);
    font-size: 14px;
}

.sort-options select {
    background: var(--tertiary);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--tertiary);
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--accent);
    color: var(--text-dark);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
}

.page-num:hover,
.page-link:hover {
    background: var(--accent);
    color: var(--text-dark);
}

.page-num.active,
.page-link.active {
    background: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.5), 0 0 30px rgba(245, 197, 24, 0.3);
    transform: scale(1.1);
    font-weight: 700;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 10px 20px;
    gap: 8px;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 5px;
}

/* No Results */
.no-results, .search-prompt {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
}

.no-results i, .search-prompt i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h2, .search-prompt h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.no-results p, .search-prompt p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.suggestions {
    text-align: left;
    max-width: 300px;
    margin: 0 auto 25px;
}

.suggestions h4, .popular-searches h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.suggestions ul {
    color: var(--text-muted);
    padding-left: 20px;
}

.suggestions li {
    margin-bottom: 5px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.search-tag {
    padding: 8px 16px;
    background: var(--tertiary);
    border-radius: 50px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s;
}

.search-tag:hover {
    background: var(--accent);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group input {
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ===================== PC BUILDER PAGE ===================== */
.pc-builder-page {
    padding: 40px 0;
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.builder-title h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text);
}

.builder-title h1 i {
    color: var(--accent);
    margin-right: 10px;
}

.builder-title p {
    color: var(--text-muted);
    max-width: 600px;
}

.builder-actions-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.builder-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Component Rows */
.builder-components {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.component-row {
    display: grid;
    grid-template-columns: 200px 1fr 120px 130px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--tertiary);
    transition: all 0.3s;
}

.component-row:hover {
    border-color: rgba(245, 197, 24, 0.3);
}

.component-row.selected {
    border-color: var(--accent);
    background: rgba(245, 197, 24, 0.05);
}

.component-type {
    display: flex;
    align-items: center;
    gap: 12px;
}

.component-type i {
    font-size: 24px;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 197, 24, 0.1);
    border-radius: var(--radius);
}

.component-name {
    font-weight: 600;
    color: var(--text);
}

.required-badge {
    font-size: 10px;
    padding: 3px 8px;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.component-selection {
    min-height: 50px;
    display: flex;
    align-items: center;
}

.no-selection {
    color: var(--text-muted);
    font-style: italic;
}

.selected-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-product img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--tertiary);
    border-radius: 8px;
    padding: 5px;
}

.selected-product-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text);
}

.selected-product-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.component-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    text-align: right;
}

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

.component-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-choose {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-remove {
    padding: 10px;
    background: var(--tertiary);
    color: var(--text-muted);
}

.btn-remove:hover {
    background: var(--error);
    color: white;
}

/* Builder Summary */
.builder-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--tertiary);
}

.summary-card h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card h3 i {
    color: var(--accent);
}

.summary-total {
    text-align: center;
    padding: 20px;
    background: rgba(245, 197, 24, 0.1);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.total-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.total-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--tertiary);
    border-radius: var(--radius);
}

.stat-item i {
    font-size: 20px;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

.compatibility-status {
    padding: 15px;
    background: var(--tertiary);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.status-header i {
    color: var(--success);
}

.compatibility-status.warning .status-header i {
    color: var(--warning);
}

.compatibility-status.error .status-header i {
    color: var(--error);
}

.status-messages {
    font-size: 13px;
    color: var(--text-muted);
}

.no-issues {
    margin: 0;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-full {
    width: 100%;
}

.tips-card {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--tertiary);
}

.tips-card h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-card ul {
    list-style: none;
}

.tips-card li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tips-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Component Picker Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

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

.modal-container {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tertiary);
}

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

.modal-header h3 {
    font-size: 20px;
    color: var(--text);
}

.modal-close {
    background: var(--tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-filters {
    display: flex;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--tertiary);
}

.modal-search {
    flex: 1;
    position: relative;
}

.modal-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--tertiary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
}

.modal-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.modal-sort select {
    padding: 12px 15px;
    background: var(--tertiary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
}

.modal-products {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-spinner i {
    font-size: 30px;
    margin-bottom: 15px;
    color: var(--accent);
}

.modal-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.modal-product-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--tertiary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.modal-product-item:hover {
    border-color: var(--accent);
    background: rgba(245, 197, 24, 0.1);
}

.modal-product-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--secondary);
    border-radius: 8px;
    padding: 5px;
}

.modal-product-info {
    flex: 1;
}

.modal-product-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text);
    line-height: 1.3;
}

.modal-product-info .brand {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.modal-product-info .price {
    font-weight: 700;
    color: var(--accent);
    margin-top: 5px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid var(--tertiary);
}

.products-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* PC Builder Responsive */
@media (max-width: 1024px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
    
    .builder-summary {
        position: static;
        order: -1;
    }
    
    .component-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .component-type {
        justify-content: flex-start;
    }
    
    .component-price {
        text-align: left;
    }
    
    .component-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .builder-header {
        flex-direction: column;
    }
    
    .builder-actions-top {
        width: 100%;
    }
    
    .builder-actions-top .btn {
        flex: 1;
    }
    
    .modal-filters {
        flex-direction: column;
    }
    
    .modal-product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== ENHANCED VISUAL EFFECTS ===================== */

/* Grid pattern background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(245, 197, 24, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Glowing accent lines */
.products-section::before,
.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.products-section,
.categories-section {
    position: relative;
    padding-top: 50px;
}

/* Section backgrounds with subtle gradients */
.products-section:nth-child(odd) {
    background: linear-gradient(180deg, rgba(245, 197, 24, 0.02) 0%, transparent 50%);
}

.products-section:nth-child(even) {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 197, 24, 0.02) 50%, transparent 100%);
}

/* Enhanced product cards with glow effect */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

/* Animated glow for featured badges */
.product-badge.featured {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(245, 197, 24, 0.2); }
}

/* Newsletter section enhanced */
.newsletter-section {
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(245, 197, 24, 0.02) 20px,
        rgba(245, 197, 24, 0.02) 40px
    );
    animation: diagonalMove 30s linear infinite;
    pointer-events: none;
}

@keyframes diagonalMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* PC Builder CTA enhanced */
.pc-builder-cta {
    position: relative;
    overflow: hidden;
}

.pc-builder-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pc-builder-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Category cards glow on hover */
.category-card {
    position: relative;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

.category-card:hover::after {
    width: 80%;
}

/* Hero card enhancements */
.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transition: transform 0.6s;
    pointer-events: none;
}

.hero-card:hover::before {
    transform: translate(50%, 50%);
}

/* USP bar subtle animation */
.usp-item i {
    transition: transform 0.3s, color 0.3s;
}

.usp-item:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

/* Floating particles background for hero (using CSS only) */
.hero-main {
    position: relative;
}

.hero-main::before,
.hero-main::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s linear infinite;
}

.hero-main::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-main::after {
    top: 60%;
    left: 80%;
    animation-delay: -7s;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translate(100px, -200px) rotate(720deg); opacity: 0; }
}

/* Button shine effect */
.btn-primary, .btn-accent {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-accent::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s;
}

.btn-primary:hover::after, .btn-accent:hover::after {
    left: 150%;
}

/* Glowing border for header on scroll */
.header {
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.1);
}

/* ===================== CATEGORY/PRODUCTS PAGE ===================== */
.category-page {
    padding: 30px 0 60px;
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--tertiary);
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: var(--tertiary);
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #d4ac16;
}

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

.filters-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.filters-header h3 i {
    color: var(--accent);
}

.filters-close-mobile {
    display: none;
    background: var(--tertiary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tertiary);
    padding-bottom: 20px;
}

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

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 15px;
    padding: 5px 0;
}

.filter-title:hover {
    color: var(--accent);
}

.filter-title i {
    font-size: 12px;
    transition: transform 0.3s;
}

.filter-group.collapsed .filter-title i {
    transform: rotate(-90deg);
}

.filter-group.collapsed .filter-content {
    display: none;
}

.filter-content {
    animation: fadeIn 0.3s ease;
}

/* Subcategory List */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list li {
    margin-bottom: 5px;
}

.subcategory-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s;
}

.subcategory-list a:hover {
    background: var(--tertiary);
    color: var(--text);
}

.subcategory-list a.active {
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 500;
}

.subcategory-list a i {
    width: 18px;
    text-align: center;
    font-size: 13px;
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-field {
    flex: 1;
}

.price-field label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.price-field input {
    width: 100%;
    background: var(--tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s;
}

.price-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.price-separator {
    color: var(--text-muted);
    padding-top: 20px;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-presets button {
    background: var(--tertiary);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.price-presets button:hover {
    background: var(--accent);
    color: var(--text-dark);
}

/* Brand List */
.brand-search {
    margin-bottom: 15px;
}

.brand-search input {
    width: 100%;
    background: var(--tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text);
    transition: border-color 0.2s;
}

.brand-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.brand-list::-webkit-scrollbar {
    width: 6px;
}

.brand-list::-webkit-scrollbar-track {
    background: var(--tertiary);
    border-radius: 3px;
}

.brand-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.brand-item {
    margin-bottom: 5px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.checkbox-label:hover {
    background: var(--tertiary);
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: var(--text-dark);
}

.checkbox-label .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tertiary);
}

.btn-apply-filters {
    width: 100%;
}

.btn-apply-filters.has-changes {
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); }
}

.btn-clear-filters {
    width: 100%;
    background: transparent;
    border: 1px solid var(--tertiary);
}

/* Products Main Area */
.products-main {
    min-width: 0;
}

.category-header {
    margin-bottom: 25px;
}

.category-title-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.category-header h1 {
    font-size: 28px;
    color: var(--text);
}

.product-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Category Toolbar */
.category-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-mobile-filters {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.btn-mobile-filters .filter-badge {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.sort-dropdown select {
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    border-radius: var(--radius);
    padding: 10px 35px 10px 15px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a0aec0' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--accent);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 4px;
    margin-left: auto;
}

.view-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    color: var(--text);
}

.view-btn.active {
    background: var(--accent);
    color: var(--text-dark);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--tertiary);
}

.active-filters-label {
    font-size: 13px;
    color: var(--text-muted);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

.filter-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 10px;
    transition: background 0.2s;
}

.filter-tag a:hover {
    background: rgba(0,0,0,0.4);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
}

.no-products i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Filter Overlay (Mobile) */
.filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.filters-overlay.show {
    display: block;
}

/* Mobile Responsiveness for Filters */
@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 1001;
        border-radius: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
    }

    .filters-sidebar.open {
        left: 0;
    }

    .filters-close-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-mobile-filters {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-title-row {
        flex-direction: column;
        gap: 5px;
    }

    .category-header h1 {
        font-size: 22px;
    }

    .view-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown select {
        width: 100%;
    }
}

/* ===================== DEALS PAGE ===================== */
.deals-page {
    padding: 30px 0 60px;
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.deals-title h1 {
    font-size: 28px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.deals-title h1 i {
    color: var(--accent);
}

.deals-title p {
    color: var(--text-muted);
    font-size: 14px;
}

.deals-stats {
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: var(--radius);
}

.deals-count {
    font-weight: 600;
    color: var(--accent);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: var(--secondary);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    background: var(--tertiary);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s;
}

.category-tab:hover {
    background: var(--accent);
    color: var(--text-dark);
}

.category-tab.active {
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 500;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 14px;
    color: var(--text-muted);
}

.sort-options select {
    background: var(--tertiary);
    border: none;
    border-radius: var(--radius);
    padding: 10px 35px 10px 15px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a0aec0' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
}

.no-results i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .category-tabs {
        order: 2;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .category-tab {
        white-space: nowrap;
    }

    .sort-options {
        order: 1;
        justify-content: flex-end;
    }
}

/* ===================== PRODUCT DETAIL PAGE ===================== */
.product-page {
    padding: 30px 0 60px;
}

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

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-container {
    position: relative;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
}

.main-image-container .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--error);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius);
    z-index: 5;
}

.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.zoom-btn:hover {
    background: var(--accent);
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--accent);
}

/* Product Info */
.product-info {
    padding: 0;
}

.product-brand-link {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.product-brand-link:hover {
    color: var(--accent-hover);
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 10px;
}

.product-sku {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-price-section {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

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

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

.discount-badge {
    background: var(--error);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius);
}

.vat-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.stock-status.in-stock {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.stock-status.out-of-stock {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error);
}

.stock-status.supplier-stock {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.stock-status .low-stock {
    color: #ffaa00;
    font-weight: 400;
}

.stock-status .stock-sublabel {
    font-weight: 400;
    opacity: 0.8;
    margin-left: 5px;
}

.supplier-note {
    font-size: 13px;
    color: #3498db;
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Specs */
.quick-specs {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.quick-specs h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-table.quick {
    width: 100%;
}

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

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

.specs-table.quick th,
.specs-table.quick td {
    padding: 10px 0;
    font-size: 14px;
}

.specs-table.quick th {
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    width: 40%;
}

.specs-table.quick td {
    color: var(--text);
    text-align: right;
}

.view-all-specs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.view-all-specs:hover {
    color: var(--accent-hover);
}

/* Add to Cart Section */
.add-to-cart-section {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quantity-selector label {
    font-size: 14px;
    color: var(--text-muted);
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--tertiary);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-control .qty-minus,
.quantity-control .qty-plus {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-control .qty-minus:hover,
.quantity-control .qty-plus:hover {
    background: var(--accent);
    color: var(--primary);
}

.quantity-control .qty-input {
    width: 60px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.btn-add-to-cart {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
}

.btn-add-to-cart i {
    margin-right: 10px;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-wishlist,
.btn-compare {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--tertiary);
    border: none;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover,
.btn-compare:hover {
    background: var(--accent);
    color: var(--primary);
}

.btn-wishlist.active {
    color: var(--error);
}

/* Delivery Info */
.delivery-info {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.delivery-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-info h4 i {
    color: var(--accent);
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.delivery-option i {
    width: 20px;
    color: var(--accent);
}

.delivery-option strong {
    color: var(--text);
}

/* Product Tabs */
.product-tabs {
    margin-top: 50px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--tertiary);
    margin-bottom: 25px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Description Tab */
.product-description {
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul,
.product-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-description li {
    margin-bottom: 8px;
}

/* Full Specifications */
.full-specs {
    background: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

.full-specs .specs-table {
    width: 100%;
}

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

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

.full-specs .specs-table th,
.full-specs .specs-table td {
    padding: 15px 20px;
    font-size: 14px;
}

.full-specs .specs-table th {
    background: var(--tertiary);
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    width: 35%;
}

.full-specs .specs-table td {
    color: var(--text);
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: var(--primary);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Product Page Responsive */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
    }

    .main-image {
        height: 350px;
    }

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

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

@media (max-width: 576px) {
    .product-page {
        padding: 20px 0 40px;
    }

    .main-image {
        height: 280px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .vat-note {
        margin-left: 0;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Additional Product Page Styles */
.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tertiary);
}

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

.delivery-item i {
    width: 20px;
    color: var(--accent);
    margin-top: 3px;
}

.delivery-item strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 2px;
}

.delivery-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Secondary Actions */
.product-actions-secondary {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-icon-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--tertiary);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon-text:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--tertiary);
    margin-bottom: 25px;
    overflow-x: auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Full Specs Table */
.specs-table.full {
    width: 100%;
    background: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.specs-table.full th,
.specs-table.full td {
    padding: 14px 20px;
    font-size: 14px;
}

.specs-table.full th {
    background: var(--tertiary);
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    width: 35%;
}

.specs-table.full td {
    color: var(--text);
}

.spec-group-header th {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 1px;
}

/* Shipping Info Detailed */
.shipping-info-detailed {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 25px;
}

.shipping-info-detailed h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-info-detailed h4 i {
    color: var(--accent);
}

.shipping-info-detailed ul {
    list-style: none;
    padding: 0;
}

.shipping-info-detailed li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tertiary);
    font-size: 14px;
    color: var(--text-muted);
}

.shipping-info-detailed li:last-child {
    border-bottom: none;
}

.shipping-info-detailed li i {
    color: var(--success);
    margin-top: 3px;
}

/* Lightbox Show State */
.lightbox.show {
    display: flex;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    color: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Button disabled state */
.btn-disabled {
    background: var(--tertiary) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
}

.btn-notify {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-notify:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===================== CHECKOUT PAGE ===================== */
.checkout-page {
    padding: 30px 0 60px;
}

.checkout-page h1 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-page h1 i {
    color: var(--success);
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    padding: 25px 0;
    background: var(--secondary);
    border-radius: var(--radius-lg);
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.checkout-steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--tertiary);
}

.checkout-steps .step.completed::after {
    background: var(--success);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--accent);
    color: var(--primary);
}

.step.completed .step-number {
    background: var(--success);
    color: #fff;
}

.step-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 14px;
}

.step.active .step-label {
    color: var(--text);
}

.step.completed .step-label {
    color: var(--success);
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Checkout Form */
.checkout-form-section {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--tertiary);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(245, 197, 24, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-option {
    display: block;
    cursor: pointer;
}

.shipping-option input {
    display: none;
}

.shipping-option .option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.shipping-option input:checked + .option-content {
    border-color: var(--accent);
    background: rgba(245, 197, 24, 0.05);
}

.shipping-option .option-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shipping-option .option-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.shipping-option .option-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.shipping-option .option-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
}

.shipping-option .option-price.free {
    color: var(--success);
}

.shipping-option.free-shipping .option-content {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: block;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-option .option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.payment-option input:checked + .option-content {
    border-color: var(--accent);
    background: rgba(245, 197, 24, 0.05);
}

.payment-option .option-content img {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

.payment-option .option-info {
    flex: 1;
}

.payment-option .option-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.payment-option .option-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Terms Section */
.terms-section {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.terms-section .checkbox-label {
    padding: 0;
}

.terms-section a {
    color: var(--accent);
}

.terms-section a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--tertiary);
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.checkout-summary .summary-card {
    margin-bottom: 20px;
}

.checkout-summary .summary-card h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tertiary);
}

/* Summary Items */
.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tertiary);
}

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

.summary-item .item-image {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--tertiary);
    border-radius: var(--radius);
    overflow: hidden;
}

.summary-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.summary-item .item-qty {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-item .item-details {
    flex: 1;
    min-width: 0;
}

.summary-item .item-name {
    font-size: 13px;
    color: var(--text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item .item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* Summary Rows */
.summary-rows {
    padding: 15px 0;
    border-top: 1px solid var(--tertiary);
}

.summary-rows .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-rows .summary-row span:first-child {
    color: var(--text-muted);
}

.summary-rows .summary-row span:last-child {
    color: var(--text);
}

.summary-rows .summary-row span.free {
    color: var(--success);
}

.summary-rows .summary-row span.discount {
    color: var(--success);
}

/* Checkout Total */
.checkout-summary .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid var(--tertiary);
    font-size: 18px;
    font-weight: 700;
}

.checkout-summary .summary-total span:first-child {
    color: var(--text);
}

.checkout-summary .summary-total span:last-child {
    color: var(--accent);
}

.vat-notice {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
    background: var(--tertiary);
    border-radius: var(--radius);
    margin-top: 15px;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.security-badges .badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--secondary);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-muted);
}

.security-badges .badge i {
    color: var(--success);
}

/* Need Help */
.need-help {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.need-help h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.need-help p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 5px 0;
}

.need-help i {
    color: var(--accent);
    margin-right: 5px;
}

/* Checkout Responsive */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }

    .checkout-steps {
        gap: 30px;
        padding: 20px 15px;
    }

    .checkout-steps .step:not(:last-child)::after {
        width: 20px;
    }
}

@media (max-width: 576px) {
    .checkout-steps {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .checkout-steps .step:not(:last-child)::after {
        display: none;
    }

    .checkout-form-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ===================== CART PAGE ===================== */
.cart-page {
    padding: 30px 0 60px;
}

.cart-page h1 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-page h1 i {
    color: var(--accent);
}

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

/* Cart Items */
.cart-items-section {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.cart-header-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tertiary);
    margin-bottom: 15px;
}

.cart-header-row span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--tertiary);
}

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

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

.cart-item-image {
    width: 70px;
    height: 70px;
    background: var(--tertiary);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.cart-item-name:hover {
    color: var(--accent);
}

.cart-item-stock {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-stock.in-stock {
    color: var(--success);
}

.cart-item-stock.out-of-stock {
    color: var(--error);
}

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

.cart-item-quantity .quantity-control {
    max-width: 110px;
}

.cart-item-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    background: var(--tertiary);
    border: none;
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: var(--error);
    color: #fff;
}

.cart-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tertiary);
}

/* Cart Summary */
.cart-summary-section {
    position: sticky;
    top: 100px;
}

.cart-summary-section .summary-card {
    margin-bottom: 20px;
}

.cart-summary-section .summary-card h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 20px;
}

.cart-summary-section .summary-rows {
    margin-bottom: 15px;
}

.cart-summary-section .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--tertiary);
}

.cart-summary-section .summary-row:last-child {
    border-bottom: none;
}

.cart-summary-section .summary-row span:first-child {
    color: var(--text-muted);
}

.cart-summary-section .summary-row span:last-child {
    color: var(--text);
}

.cart-summary-section .summary-row span.free {
    color: var(--success);
}

.cart-summary-section .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid var(--tertiary);
    font-size: 20px;
    font-weight: 700;
}

.cart-summary-section .summary-total span:first-child {
    color: var(--text);
}

.cart-summary-section .summary-total span:last-child {
    color: var(--accent);
}

/* Free Shipping Notice */
.free-shipping-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--success);
}

.free-shipping-notice i {
    font-size: 18px;
}

.free-shipping-notice strong {
    color: var(--accent);
}

/* Secure Checkout */
.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
}

.secure-checkout i {
    color: var(--success);
}

/* Coupon Section */
.coupon-section {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.coupon-section h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-form input {
    flex: 1;
    padding: 10px 15px;
    background: var(--tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
}

.coupon-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.coupon-form button {
    padding: 10px 20px;
}

#couponMessage {
    margin-top: 10px;
    font-size: 13px;
}

#couponMessage .success {
    color: var(--success);
}

#couponMessage .error {
    color: var(--error);
}

/* Payment Methods Preview */
.payment-methods-preview {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 15px;
    text-align: center;
}

.payment-methods-preview span {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icons img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-icons img:hover {
    opacity: 1;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
}

.empty-cart i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.loading-state i {
    font-size: 24px;
    color: var(--accent);
}

/* Cart Responsive */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-section {
        position: static;
        order: -1;
    }

    .cart-header-row {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item-product {
        grid-column: 1 / -1;
    }

    .cart-item-price::before {
        content: 'Price: ';
        color: var(--text-muted);
    }

    .cart-item-total::before {
        content: 'Total: ';
        color: var(--text-muted);
    }
}

@media (max-width: 576px) {
    .cart-actions-row {
        flex-direction: column;
    }

    .cart-actions-row .btn {
        width: 100%;
    }
}

/* ===================== HELP PAGES ===================== */
.help-page {
    padding: 40px 0 60px;
}

.help-page h1 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-page h1 i {
    color: var(--accent);
}

.help-content {
    max-width: 900px;
}

.help-section {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
}

.help-section h2 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tertiary);
}

.help-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.help-section ul,
.help-section ol {
    color: var(--text-muted);
    margin-left: 20px;
    margin-bottom: 15px;
}

.help-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.help-section a {
    color: var(--accent);
}

.help-section a:hover {
    text-decoration: underline;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.info-card {
    background: var(--tertiary);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.info-card h3 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-card h3 i {
    color: var(--accent);
}

.info-card p {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.info-card.highlight {
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.help-table {
    width: 100%;
    border-collapse: collapse;
}

.help-table th,
.help-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--tertiary);
}

.help-table th {
    background: var(--tertiary);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.help-table td {
    color: var(--text-muted);
}

.legal-content .updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .help-page h1 {
        font-size: 24px;
    }

    .help-section {
        padding: 20px;
    }

    .info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    margin: 0;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}
