:root {
    --primary-color: #0d47a1;
    --primary-light: #1976d2;
    --primary-dark: #002171;
    --accent-color: #00e5ff;
    --background-dark: #060913;
    --surface-dark: #0f1626;
    --surface-light: #1a233a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --glass-bg: rgba(15, 22, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

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

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky !important;
    top: 0;
    z-index: 100 !important;
}

.nav-container {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-left { display: flex; align-items: center; gap: 15px; }

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px;
}
.nav-logo-img {
    width: 42px; 
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(270deg, #ffffff, var(--primary-light), #ffffff, var(--primary-light));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLogo 5s ease infinite;
    line-height: 1;
    white-space: nowrap;
}

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

.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; }

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 5px;
    font-size: 1.15rem;
}

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

.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.special-link { color: var(--accent-color); }

/* Search Bar */
.search-container { position: relative; margin: 0 10px; }
.search-bar {
    display: flex; align-items: center; 
    width: 40px; height: 40px;
    background: transparent; border: 1px solid transparent;
    border-radius: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.search-bar:hover .search-btn { color: white; }
.search-bar.active {
    width: 280px;
    background: var(--surface-dark); 
    border-color: rgba(80, 80, 150, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.search-bar.active:focus-within {
    border-color: var(--primary-light); background: var(--surface-dark);
}
.search-btn {
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    transition: color 0.3s ease;
}
#search-input {
    background: transparent; border: none; color: white; width: 100%; outline: none;
    font-family: inherit; font-size: 0.9rem; padding: 0 10px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.search-bar.active #search-input {
    opacity: 1; pointer-events: all;
}

.search-results-dropdown {
    position: absolute; top: 110%; left: 0; width: 100%;
    background: var(--surface-dark); border: 1px solid var(--glass-border);
    border-radius: 12px; max-height: 300px; overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.search-results-dropdown.active { opacity: 1; visibility: visible; }
.search-result-item { padding: 10px 15px; display: flex; flex-direction: column; cursor: pointer; border-bottom: 1px solid var(--glass-border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-name { font-size: 0.9rem; font-weight: 600; color: white; margin-bottom: 3px;}
.search-result-price { font-size: 0.8rem; color: var(--accent-color); }
.search-no-results { padding: 15px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.icon-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    border-color: var(--glass-border);
}

.cart-btn:hover {
    color: white;
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.cart-badge {
    position: absolute;
    top: -2px; right: -2px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem; font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--background-dark);
}

.settings-pill {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 5px 12px; gap: 8px;
    color: var(--text-secondary);
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-selected {
    padding: 2px 5px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-selected:hover {
    color: white;
}

.dropdown-options {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    min-width: 80px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-option {
    padding: 8px 15px;
    color: var(--text-primary);
    text-align: center;
    transition: background 0.2s ease;
}

.dropdown-option:hover {
    background: var(--primary-light);
    color: white;
}

.separator { color: var(--glass-border); }

/* Profile Dropdown */
.profile-menu-container { position: relative; }
.profile-dropdown {
    position: absolute;
    top: 120%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 180px; padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-item {
    display: block; padding: 10px 20px;
    color: var(--text-primary); text-align: right;
    transition: background 0.2s ease;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--accent-color); }
.dropdown-item.danger { color: var(--danger); }

/* Hero Section (Left Aligned like reference) */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center;
    overflow: hidden; padding: 60px 0;
    background: linear-gradient(to right, rgba(6, 9, 19, 0.1) 0%, rgba(6, 9, 19, 0.7) 50%, rgba(6, 9, 19, 1) 100%),
                url('assets/hero-bg.png') no-repeat center right;
    background-size: cover;
}
.hero-container {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}
.hero-content { max-width: 600px; text-align: right; }
.hero-title {
    font-size: 4rem; font-weight: 900;
    margin-bottom: 20px; line-height: 1.1;
    text-transform: uppercase;
}
.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    margin-bottom: 40px; max-width: 500px;
}
.hero-features {
    display: flex; gap: 20px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex; align-items: center; gap: 10px;
}
.feature-icon {
    width: 24px; height: 24px;
    color: var(--primary-light);
}
.feature-item div { display: flex; flex-direction: column; }
.feature-item strong { font-size: 0.9rem; }
.feature-item span { font-size: 0.8rem; color: var(--text-secondary); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white; border: none;
    padding: 12px 24px; border-radius: 8px;
    cursor: pointer; font-weight: 700; font-size: 1.1rem;
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}



/* Sections */
.section { padding: 50px 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.section-title { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;}
.view-all {
    font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
    background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 20px;
}
.view-all:hover { background: var(--primary-light); color: white; }

/* Wide Category Cards */
.categories-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.category-card-wide {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card-wide:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-dark) 100%);
}
.cat-icon-wrapper {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(13, 71, 161, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); margin-bottom: 15px;
    transition: all 0.3s ease;
}
.category-card-wide:hover .cat-icon-wrapper {
    background: var(--primary-light); color: white;
    transform: scale(1.1);
}
.category-card-wide h3 { font-size: 1.2rem; margin-bottom: 5px; }
.category-card-wide p { font-size: 0.85rem; color: var(--text-secondary); }

/* Modern Product Cards */
.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card-modern {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden;
    position: relative; transition: all 0.3s ease;
    cursor: pointer;
}
.product-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.product-bg {
    width: 100%; height: 160px;
    background: var(--surface-light);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.product-rating {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 8px;
    font-weight: 800; color: #fbbf24; font-size: 0.85rem;
    display: flex; align-items: center; gap: 4px;
    backdrop-filter: blur(4px); z-index: 10;
}
.product-bg img { max-height: 100px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); transition: transform 0.3s; }
.product-card-modern:hover .product-bg img { transform: scale(1.1); }

.product-info { padding: 15px; position: relative; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.product-price { font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 15px; display: flex; align-items: center;}
.product-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-color);
}

/* Stats Section */
.stats-section { padding: 60px 0; border-top: 1px solid var(--glass-border); margin-top: 40px;}
.stats-title { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin-bottom: 40px; letter-spacing: 1px; text-align: center;}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.stat-card {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex; align-items: center; gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0; transition: opacity 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 15px rgba(13, 71, 161, 0.2);
    border-color: var(--primary-light);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon-glow {
    color: var(--accent-color);
    width: 60px; height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transition: all 0.4s ease;
    flex-shrink: 0;
}
.stat-card:hover .stat-icon-glow {
    background: var(--accent-color);
    color: var(--background-dark);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.stat-info { display: flex; flex-direction: column; position: relative; z-index: 1;}
.stat-info strong { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; color: white;}
.stat-info span { font-size: 0.95rem; color: var(--text-secondary); margin-top: 4px;}

.stars {
    display: flex; gap: 4px; font-size: 1rem; margin-top: 2px;
}

/* Footer */
.footer {
    background: var(--surface-dark);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px; margin-top: 50px;
}
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 15px 0; }
.copyright { color: rgba(255,255,255,0.3); font-size: 0.8rem; margin-top: 20px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.link-column h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700;}
.link-column a { display: block; color: var(--text-secondary); margin-bottom: 10px; font-size: 0.9rem; }
.link-column a:hover { color: var(--accent-color); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { flex-direction: column; }
    .hero-image-wrapper { display: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.currency-img { height: 1.2em; vertical-align: middle; margin-right: 4px; border-radius: 4px; filter: brightness(0) invert(1); opacity: 0.9; }

/* Reviews Section */
.reviews-section { padding: 60px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card {
    background: var(--surface-dark); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px; transition: all 0.3s;
}
.review-card:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.reviewer-name { font-weight: 700; color: white; font-size: 1.05rem;}
.review-date { font-size: 0.8rem; color: var(--text-secondary); }
.review-text { font-size: 0.95rem; color: #d1d5db; line-height: 1.6; }


/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
body > *:not(#particles-canvas):not(.navbar):not(.cart-modal-overlay):not(.product-detail-overlay) {
    position: relative;
    z-index: 1;
}

/* Cart Modal Styles - Glassmorphism */
.cart-modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: none; justify-content: center; align-items: center; z-index: 1000 !important;
}
.cart-modal {
    background: rgba(15, 22, 38, 0.85);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-radius: 20px; width: 900px; max-width: 95%; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.cart-modal-header {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 25px;
    background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-modal-title { display: flex; align-items: center; gap: 15px; }
.cart-modal-title h2 { font-size: 1.3rem; margin: 0; font-weight: 800; }
.cart-modal-title span { color: var(--text-secondary); font-size: 0.9rem; }
.cart-close-btn {
    background: rgba(255,255,255,0.05); border: none; color: #fff; width: 36px; height: 36px;
    border-radius: 10px; font-size: 1.3rem; cursor: pointer; transition: all 0.3s ease;
}
.cart-close-btn:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.cart-modal-body { display: grid; grid-template-columns: 1fr 2fr; flex: 1; overflow: hidden; }
@media (max-width: 768px) { .cart-modal-body { grid-template-columns: 1fr; overflow-y: auto; } }
.cart-modal-summary {
    padding: 25px; background: rgba(0,0,0,0.15);
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; gap: 20px;
}
.discount-input {
    width: 100%; padding: 12px 15px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: #fff; outline: none; font-family: inherit;
    transition: border-color 0.3s;
}
.discount-input:focus { border-color: var(--primary-light); }
.discount-btn {
    background: rgba(25, 118, 210, 0.15); border: 1px solid rgba(25, 118, 210, 0.3);
    color: var(--primary-light); padding: 0 18px; border-radius: 10px; cursor: pointer;
    font-weight: 700; font-family: inherit; transition: all 0.3s;
}
.discount-btn:hover { background: var(--primary-light); color: #fff; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.checkout-modal-btn {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff; border: none; padding: 15px; border-radius: 12px;
    font-weight: 700; cursor: pointer; font-family: inherit; font-size: 1rem;
    transition: all 0.3s; margin-top: auto;
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.3);
}
.checkout-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(229, 57, 53, 0.5); }
.cart-modal-items { padding: 25px; overflow-y: auto; max-height: 500px; display: flex; flex-direction: column; gap: 12px; }
.modal-cart-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 18px; display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s ease;
}
.modal-cart-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.item-actions-left { display: flex; align-items: center; gap: 15px; }
.modal-qty-control {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); padding: 6px 12px; border-radius: 25px;
}
.modal-qty-control button {
    background: none; border: none; color: #fff; cursor: pointer;
    font-size: 1.1rem; width: 26px; height: 26px; border-radius: 50%;
    transition: background 0.2s;
}
.modal-qty-control button:hover { background: rgba(255,255,255,0.1); }
.modal-remove-btn {
    background: rgba(229, 57, 53, 0.1); color: #e53935; border: none;
    padding: 10px; border-radius: 10px; cursor: pointer; transition: all 0.3s;
}
.modal-remove-btn:hover { background: rgba(229, 57, 53, 0.2); }

/* Product Detail Modal */
.product-detail-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: none; justify-content: center; align-items: center; z-index: 1000 !important;
}
.product-detail-modal {
    background: #0d111a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; width: 850px; max-width: 95%; max-height: 90vh;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.product-detail-grid {
    display: grid; grid-template-columns: 1fr 350px; min-height: 400px;
}
@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-detail-image-side { order: -1; }
}
.product-detail-info-side {
    padding: 35px;
    display: flex; flex-direction: column;
}
.product-detail-image-side {
    background: var(--surface-light);
    display: flex; align-items: center; justify-content: center;
    position: relative; padding: 30px;
}
.product-detail-image-side img { width: 100%; max-width: 250px; filter: drop-shadow(0 15px 35px rgba(0,0,0,0.5)); }

.product-detail-close {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.4); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
    backdrop-filter: blur(10px); z-index: 10;
}
.product-detail-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.pd-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: white; }
.pd-subtitle { font-size: 0.9rem; color: var(--accent-color); margin-bottom: 20px; font-weight: 700; background: rgba(0, 229, 255, 0.1); display: inline-block; padding: 4px 12px; border-radius: 20px; }
.pd-price { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 25px; display: flex; align-items: center; gap: 8px; }
.pd-price .currency-img { height: 1.2em; filter: brightness(0) invert(1); }

.pd-whatsapp-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71; padding: 12px; border-radius: 12px; text-decoration: none;
    font-weight: 700; transition: all 0.3s; margin-bottom: 25px;
}
.pd-whatsapp-btn:hover { background: rgba(46, 204, 113, 0.2); }

.pd-features { margin-bottom: 25px; }
.pd-features ul { list-style: none; padding: 0; }
.pd-features li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    color: #e5e7eb; font-size: 0.9rem;
}
.pd-features li svg { color: var(--accent-color); flex-shrink: 0; }

.pd-add-to-cart {
    background: var(--primary-light); color: white; border: none;
    padding: 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 800;
    cursor: pointer; transition: all 0.3s; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.pd-add-to-cart:hover { background: #0d47a1; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(13, 71, 161, 0.4); }


/* 3D Tilt Effect on Product Cards */
.product-card-modern {
    transform-style: preserve-3d;
    perspective: 1000px;
}
.product-content {
    display: flex; align-items: center; justify-content: center;
    padding: 20px; min-height: 100px;
}

/* Nav Special Link */
.special-link { color: #dc2626 !important; font-weight: 800 !important; }
.special-link:hover { color: #ef4444 !important; }

/* Restored Search & Settings Pill Styles */
.search-container { position: relative; display: flex; align-items: center; }
.search-bar {
    display: flex; align-items: center; background: transparent;
    border: 1px solid transparent; border-radius: 30px; padding: 4px;
    width: 40px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}
.search-bar:focus-within { 
    width: 250px; background: rgba(255,255,255,0.05); 
    border-color: rgba(255,255,255,0.1); 
}
.search-input { 
    background: none; border: none; color: white; padding: 0; 
    width: 0; outline: none; font-family: inherit; font-size: 0.95rem; 
    transition: all 0.4s ease; opacity: 0;
}
.search-bar:focus-within .search-input {
    width: 100%; padding: 5px 15px; opacity: 1;
}
.search-btn { 
    background: rgba(255,255,255,0.1); border: none; color: white; 
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.3s;
}
.search-btn:hover { background: var(--primary); }

/* Fixed Riyal Icon */
.currency-img { width: auto !important; height: 1em !important; object-fit: contain !important; vertical-align: middle; }

/* Animated Marquee for Reviews */
.reviews-marquee-wrapper {
    overflow: hidden; white-space: nowrap; width: 100%; position: relative;
    padding: 20px 0; display: flex; align-items: center;
}
.reviews-track {
    display: flex; gap: 20px;
    animation: scrollRTL 25s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
.review-card {
    min-width: 300px;
    white-space: normal;
}

.settings-pill {
    display: flex; align-items: center; background: rgba(255,255,255,0.05);
    border-radius: 20px; padding: 5px 15px; border: 1px solid rgba(255,255,255,0.1); gap: 10px;
}
.custom-dropdown { position: relative; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #fff; padding: 5px; }
.dropdown-options {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--surface-dark); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 8px; margin-top: 15px; display: none; flex-direction: column; 
    min-width: 80px; z-index: 10; text-align: center;
}
.dropdown-options::before {
    content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    border-width: 6px; border-style: solid; border-color: transparent transparent rgba(255,255,255,0.1) transparent;
}
.dropdown-options::after {
    content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    border-width: 5px; border-style: solid; border-color: transparent transparent var(--surface-dark) transparent;
}
.custom-dropdown:hover .dropdown-options { display: flex; }
.dropdown-option { padding: 8px 12px; transition: background 0.2s; }
.dropdown-option:hover { background: rgba(255,255,255,0.1); }
.separator { color: rgba(255,255,255,0.2); }

/* Floating Wheel Button */
.wheel-floating-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.5), 0 0 40px rgba(230, 126, 34, 0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 99; transition: all 0.3s;
    border: 3px solid #fff; animation: pulseWheel 2s infinite;
}
.wheel-floating-btn:hover { transform: scale(1.1) rotate(15deg); }
@keyframes pulseWheel {
    0% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(241, 196, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}

/* Wheel Modal */
.wheel-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.wheel-container {
    background: #0f1626; border: 2px solid #f1c40f; border-radius: 20px;
    padding: 40px; text-align: center; position: relative; box-shadow: 0 0 50px rgba(241, 196, 15, 0.2);
}
.wheel-box { position: relative; width: 300px; height: 300px; margin: 0 auto 30px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 20px #f1c40f; }
.wheel-inner { width: 100%; height: 100%; border-radius: 50%; position: relative; transition: transform 4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.wheel-pointer {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #e74c3c;
    z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.wheel-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: #fff; border-radius: 50%;
    border: none; font-weight: 900; color: #000; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 0 15px rgba(0,0,0,0.5); z-index: 5;
}
.wheel-btn:disabled { background: #ccc; cursor: not-allowed; }
.wheel-timer { font-size: 1.2rem; color: #f1c40f; font-weight: 700; margin-top: 15px; display: none; }
.wheel-close { position: absolute; top: 15px; left: 15px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 80px;
}
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(6,9,19,0.9) 0%, rgba(6,9,19,0.3) 100%);
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
    max-width: 800px;
    color: #fff;
    text-align: right;
}
.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.slide-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.slide-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}
.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.5);
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.carousel-control:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.carousel-control.prev { right: 20px; }
.carousel-control.next { left: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: var(--primary-light);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-carousel { height: 400px; margin-top: 70px; }
    .slide-title { font-size: 2.2rem; }
    .slide-subtitle { font-size: 1rem; }
    .carousel-control { display: none; }
}
