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

:root {
    --primary: #0071e3;
    --primary-hover: #0077ED;
    --dark: #1d1d1f;
    --gray: #86868b;
    --light: #f5f5f7;
    --white: #ffffff;
    --success: #34c759;
    --danger: #ff3b30;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.5;
    background: var(--white);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

body>footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* body.loading removed - was blocking scroll */

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 60px;
    height: 60px;
    fill: white;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

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

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, #0071e3, #5ac8fa, #0071e3);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: preloaderProgress 1.5s ease-in-out forwards, preloaderGradient 1s linear infinite;
}

@keyframes preloaderProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes preloaderGradient {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Animated Background - DISABLED */
.animated-bg {
    display: none;
}

.bg-layer {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: url('images/bg-waves.png') center/cover;
    opacity: 1;
}

.bg-layer:nth-child(1) {
    animation: bgWave1 40s ease-in-out infinite;
}

.bg-layer:nth-child(2) {
    animation: bgWave2 35s ease-in-out infinite reverse;
    opacity: 1;
    filter: blur(3px);
}

.bg-layer:nth-child(3) {
    animation: bgWave3 50s ease-in-out infinite;
    opacity: 1;
    filter: blur(6px);
}

@keyframes bgWave1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-3%, -2%) rotate(1deg) scale(1.02);
    }

    50% {
        transform: translate(-5%, 0) rotate(0deg) scale(1);
    }

    75% {
        transform: translate(-2%, 2%) rotate(-1deg) scale(1.02);
    }
}

@keyframes bgWave2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-8%, -5%) scale(1.05);
    }
}

@keyframes bgWave3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(3%, -3%) rotate(-2deg);
    }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

.site-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

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

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.auth-btn:hover {
    background: var(--light);
}

.auth-btn svg {
    width: 20px;
    height: 20px;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.cart-btn svg {
    width: 24px;
    height: 24px;
    color: var(--dark);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    padding: 140px 20px 80px;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

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

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--dark) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--gray);
    margin-bottom: 8px;
}

.hero-price {
    font-size: 20px;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-full {
    width: 100%;
}

/* Section */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

/* Categories */
.categories {
    padding: 80px 0;
    background: #ffffff;
}

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

.category-card {
    background: var(--light);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.category-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Products */
.products {
    padding: 80px 0;
    background: rgba(245, 245, 247, 0.9);
}

.products.alt {
    background: rgba(255, 255, 255, 0.9);
}

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

.product-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.products.alt .product-card {
    background: var(--light);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.product-badge.new {
    background: var(--success);
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin: 16px 0;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.product-price {
    margin-bottom: 16px;
}

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

.price-old {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Features */
.features {
    padding: 80px 0;
    background: #1d1d1f;
    color: white;
}

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

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.feature p {
    font-size: 14px;
    color: #86868b;
}

/* Contacts */
.contacts {
    padding: 80px 0;
    background: rgba(245, 245, 247, 0.9);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--gray);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
    background: white;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #0d0d0d;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #86868b;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #86868b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-schedule {
    font-size: 12px;
    color: #25d366;
    margin-bottom: 8px;
}

.footer-phone {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-phone:hover {
    color: var(--primary);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.whatsapp-btn svg {
    width: 18px;
    height: 18px;
}

.footer-social {
    margin-top: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2d2d2d;
    border-radius: 50%;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #2d2d2d;
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

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

.footer-brand .logo {
    color: white;
    margin-bottom: 8px;
}

.footer-brand .apple-icon {
    color: white;
}

.footer-brand p {
    font-size: 13px;
    color: var(--gray);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

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

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

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

/* Modal Base */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal.open {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 24px;
    padding: 32px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Auth Modal */
.auth-modal {
    width: 420px;
    max-width: 90vw;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--light);
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-tab.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.auth-form.hidden {
    display: none;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form .btn {
    margin-top: 8px;
}

.auth-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray);
}

.auth-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Cart Modal */
.cart-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    background: white;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    padding: 8px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--light);
    border-radius: 12px;
    padding: 8px;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--gray);
    font-size: 13px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3000;
}

.toast.show {
    display: block;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-image img {
        max-width: 300px;
    }

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

    .cart-content {
        width: 100%;
    }

    .auth-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        height: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

/* Hero Section Styles */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1,
.hero .hero-content h1,
section.hero h1,
.hero-content>h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 30px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out;
}

.hero .hero-subtitle {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

.hero .hero-price {
    color: #fff !important;
    animation: fadeInUp 1.4s ease-out;
}

.hero .btn {
    animation: fadeInUp 1.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ======== THEME TOGGLE BUTTON ======== */
.theme-toggle {
    background: none;
    border: 2px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark);
    width: 36px;
    height: 36px;
    margin-right: 4px;
}

.theme-toggle:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(20deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* ======== SMOOTH TRANSITION FOR THEME SWITCH ======== */
body,
.header,
.footer,
.product-card,
.category-card,
.model-card,
.neon-card,
.cart-content,
.modal-content,
.toast,
.price-table,
.price-table th,
.price-table td,
.spec-card,
input,
textarea {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ============================================ */
/* ============ DARK THEME ==================== */
/* ============================================ */
[data-theme="dark"] {
    --dark: #f5f5f7;
    --gray: #a1a1a6;
    --light: #1c1c1e;
    --white: #000000;
}

/* --- Base --- */
[data-theme="dark"] body {
    background: #000;
    color: #f5f5f7;
}

/* --- Header --- */
[data-theme="dark"] .header {
    background: rgba(28, 28, 30, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .logo {
    color: #f5f5f7;
}

[data-theme="dark"] .apple-icon {
    fill: #f5f5f7;
}

[data-theme="dark"] .nav a {
    color: #d1d1d6;
}

[data-theme="dark"] .nav a:hover {
    color: #0a84ff;
}

[data-theme="dark"] .cart-btn svg {
    color: #f5f5f7;
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f5f7;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #0a84ff;
    color: #0a84ff;
}

/* --- Footer --- */
[data-theme="dark"] .footer {
    background: #1c1c1e;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .footer p {
    color: #a1a1a6;
}

/* --- Product Cards --- */
[data-theme="dark"] .product-card {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .products {
    background: #000;
}

[data-theme="dark"] .products.alt {
    background: #0d0d0d;
}

[data-theme="dark"] .products.alt .product-card {
    background: #1c1c1e;
}

[data-theme="dark"] .product-name {
    color: #f5f5f7;
}

[data-theme="dark"] .price-current {
    color: #f5f5f7;
}

/* --- Category Cards --- */
[data-theme="dark"] .categories {
    background: #000;
}

[data-theme="dark"] .categories .section-title {
    color: #f5f5f7;
}

[data-theme="dark"] .category-card {
    background: #1c1c1e;
    color: #f5f5f7;
}

[data-theme="dark"] .category-card:hover {
    background: #2c2c2e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- Neon Cards (homepage) --- */
[data-theme="dark"] .neon-card {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.06);
    color: #f5f5f7;
}

[data-theme="dark"] .neon-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .neon-card h3 {
    color: #f5f5f7;
}

[data-theme="dark"] .neon-card p {
    color: #a1a1a6;
}

/* --- Model Cards (category pages) --- */
[data-theme="dark"] .model-card {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.06);
    color: #f5f5f7;
}

[data-theme="dark"] .model-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .model-card__title {
    color: #f5f5f7;
}

[data-theme="dark"] .model-card__desc {
    color: #a1a1a6;
}

/* --- Model Showcase --- */
[data-theme="dark"] .model-showcase {
    background: #000;
}

/* --- Page Title --- */
[data-theme="dark"] .page-title {
    color: #f5f5f7;
}

[data-theme="dark"] .page-subtitle {
    color: #a1a1a6;
}

/* --- Section Title --- */
[data-theme="dark"] .section-title {
    color: #f5f5f7;
}

/* --- Product Detail --- */
[data-theme="dark"] .product-detail {
    background: #000;
}

[data-theme="dark"] .product-info h1 {
    color: #f5f5f7;
}

[data-theme="dark"] .product-tagline {
    color: #a1a1a6;
}

[data-theme="dark"] .back-link {
    color: #0a84ff;
}

/* --- Spec Card --- */
[data-theme="dark"] .spec-card {
    background: #1c1c1e !important;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .spec-card h3 {
    color: #f5f5f7;
}

[data-theme="dark"] .spec-card li {
    color: #d1d1d6;
}

/* --- Price Table --- */
[data-theme="dark"] .price-table {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .price-table th {
    background: #1c1c1e;
    color: #a1a1a6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .price-table td {
    border-top-color: rgba(255, 255, 255, 0.04);
    color: #f5f5f7;
}

[data-theme="dark"] .price-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .price-table .variant-name {
    color: #f5f5f7;
}

[data-theme="dark"] .price-table .variant-desc {
    color: #a1a1a6;
}

[data-theme="dark"] .price-table-header {
    color: #f5f5f7;
}

[data-theme="dark"] .price-table-section {
    color: #f5f5f7;
}

/* --- Color Filter Buttons --- */
[data-theme="dark"] .color-filter-btn {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #d1d1d6;
}

[data-theme="dark"] .color-filter-btn:hover {
    border-color: #0a84ff;
    color: #0a84ff;
}

[data-theme="dark"] .color-filter-btn.active {
    border-color: #0a84ff;
    background: rgba(10, 132, 255, 0.12);
    color: #0a84ff;
}

/* --- Cart Modal --- */
[data-theme="dark"] .cart-content {
    background: #1c1c1e;
    color: #f5f5f7;
}

[data-theme="dark"] .cart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cart-header h2 {
    color: #f5f5f7;
}

[data-theme="dark"] .cart-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .cart-item-name {
    color: #f5f5f7;
}

[data-theme="dark"] .cart-item-price {
    color: #a1a1a6;
}

[data-theme="dark"] .cart-item-img {
    background: #2c2c2e;
}

[data-theme="dark"] .cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cart-total span {
    color: #f5f5f7;
}

[data-theme="dark"] .cart-empty {
    color: #a1a1a6;
}

[data-theme="dark"] .close-btn {
    color: #a1a1a6;
}

[data-theme="dark"] .close-btn:hover {
    color: #f5f5f7;
}

/* --- Auth Modal --- */
[data-theme="dark"] .modal-content {
    background: #1c1c1e;
    color: #f5f5f7;
}

[data-theme="dark"] .auth-tabs {
    background: #2c2c2e;
}

[data-theme="dark"] .auth-tab {
    color: #a1a1a6;
}

[data-theme="dark"] .auth-tab.active {
    background: #3a3a3c;
    color: #f5f5f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-form h2 {
    color: #f5f5f7;
}

[data-theme="dark"] .input-group label {
    color: #a1a1a6;
}

[data-theme="dark"] .input-group input {
    background: #2c2c2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}

[data-theme="dark"] .input-group input:focus {
    border-color: #0a84ff;
}

/* --- Inputs/Textarea --- */
[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background: #2c2c2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f5f5f7 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: #0a84ff !important;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}

/* --- Toast --- */
[data-theme="dark"] .toast {
    background: #2c2c2e;
    color: #f5f5f7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* --- Contacts --- */
[data-theme="dark"] .contacts {
    background: #000;
}

[data-theme="dark"] .contact-section {
    background: #000;
}

[data-theme="dark"] .contact-section h2,
[data-theme="dark"] .contact-section h3,
[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .contact-form h3 {
    color: #f5f5f7;
}

[data-theme="dark"] .contact-info p,
[data-theme="dark"] .contact-section p {
    color: #a1a1a6;
}

/* --- Hero (homepage) --- */
[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #1c1c1e 0%, #000 100%);
}

/* --- Features section --- */
[data-theme="dark"] .features {
    background: #1c1c1e;
}

/* --- Modal Overlay --- */
[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* --- Auth Button --- */
[data-theme="dark"] .auth-btn {
    color: #f5f5f7;
}

[data-theme="dark"] .auth-btn:hover {
    background: #2c2c2e;
}

/* --- Links --- */
[data-theme="dark"] a {
    color: inherit;
}

/* --- Badge --- */
[data-theme="dark"] .product-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- iphone.html specific inline styles override --- */
[data-theme="dark"] .model-card__info .model-card__price {
    color: #0a84ff;
}

/* --- Scrollbar --- */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1c1c1e;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #3a3a3c;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #48484a;
}

/* --- Selection --- */
[data-theme="dark"] ::selection {
    background: rgba(10, 132, 255, 0.3);
    color: #fff;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
    [data-theme="dark"] .nav {
        background: #1c1c1e;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* --- Product.css overrides for dark --- */
[data-theme="dark"] .specs-section {
    background: #0d0d0d;
}

[data-theme="dark"] .specs-title {
    color: #f5f5f7;
}

[data-theme="dark"] .spec-card {
    background: #1c1c1e !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .spec-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .spec-card li {
    color: #a1a1a6;
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .spec-card li strong {
    color: #f5f5f7;
}

[data-theme="dark"] .product-price-block {
    background: #1c1c1e;
}

[data-theme="dark"] .product-colors h4 {
    color: #f5f5f7;
}

[data-theme="dark"] .highlight-title {
    color: #f5f5f7;
}

[data-theme="dark"] .highlight-desc {
    color: #a1a1a6;
}

[data-theme="dark"] .feature-highlights {
    background: #000;
}

[data-theme="dark"] .back-link {
    background: rgba(10, 132, 255, 0.1);
    color: #0a84ff;
}

[data-theme="dark"] .back-link:hover {
    background: rgba(10, 132, 255, 0.2);
}

/* --- Model card price (inline-styled on iphone.html) --- */
[data-theme="dark"] .model-card__price {
    color: #0a84ff !important;
}

[data-theme="dark"] .model-card__info span {
    color: #a1a1a6;
}

/* --- Catalog.css overrides for dark (category pages) --- */
[data-theme="dark"] .iphone-hero {
    background: linear-gradient(180deg, #1c1c1e 0%, #000 100%);
}

[data-theme="dark"] .hero-title {
    color: #f5f5f7;
}

[data-theme="dark"] .hero-subtitle {
    color: #a1a1a6;
}

[data-theme="dark"] .model-showcase {
    background: #000;
}

[data-theme="dark"] .model-card {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .model-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(10, 132, 255, 0.3);
}

[data-theme="dark"] .model-card--featured {
    background: linear-gradient(160deg, #1c1c2e 0%, #1a1a2a 100%);
}

[data-theme="dark"] .model-card--featured .model-card__title,
[data-theme="dark"] .model-card--featured .model-card__desc {
    color: #f5f5f7;
}

[data-theme="dark"] .model-card--featured .model-card__price {
    color: #0a84ff;
}

[data-theme="dark"] .model-card__title {
    color: #f5f5f7;
}

[data-theme="dark"] .model-card__desc {
    color: #a1a1a6;
}

[data-theme="dark"] .model-card__price {
    color: #0a84ff !important;
}

/* ======== PAGE TRANSITIONS ======== */
html.page-loading body {
    opacity: 0;
}

html.page-ready body {
    opacity: 1;
    transition: opacity 0.35s ease;
}

html.page-leaving body {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* end of styles */