/* ============================================
   everyzone - STYLE (نسخة نهائية)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #F9F6F0;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #1A2A3A;
    --text-secondary: #2C3E50;
    --text-muted: #6B7A8A;
    --gold: #C9A96E;
    --gold-hover: #B8944D;
    --gold-light: #E8D5A8;
    --nav-bg: #1A2A3A;
    --nav-text: #FFFFFF;
    --border-color: #E5DFD8;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --input-bg: #FFFFFF;
    --input-border: #D1C9C0;
    --radius: 14px;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-card: #2A2A2A;
    --text-primary: #F0EDE8;
    --text-secondary: #CCCCCC;
    --text-muted: #999999;
    --gold: #C9A96E;
    --gold-hover: #B8944D;
    --gold-light: #3A3020;
    --nav-bg: #0D1A26;
    --nav-text: #F0EDE8;
    --border-color: #333333;
    --shadow: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.7);
    --input-bg: #2A2A2A;
    --input-border: #444444;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
    padding-bottom: 70px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== إخفاء الجسيمات القديمة ===== */
#bg-animation, #particles-canvas {
    display: none !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--nav-bg);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1001;
}
.top-bar .search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 4px 16px;
    flex: 1;
    max-width: 420px;
    min-width: 160px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.top-bar .search-box:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: var(--gold);
}
.top-bar .search-box i {
    color: var(--gold);
    margin-left: 10px;
    font-size: 0.9rem;
}
.top-bar .search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    padding: 8px 0;
    width: 100%;
}
.top-bar .search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}
.top-bar .lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}
.top-bar .lang-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--gold);
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--nav-bg);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar .brand-logo {
    height: 42px;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 8px;
    filter: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}
[data-theme="dark"] .navbar .brand-logo {
    background: #ffffff;
}
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}
.theme-toggle {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.12);
}

/* ===== CAROUSEL (يعمل بصور) ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.hero-carousel .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}
.hero-carousel .slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-carousel .slide .overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 50px;
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: #fff;
    max-width: 80%;
}
.hero-carousel .slide .overlay h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 5px;
}
.hero-carousel .slide .overlay h2 .gold-text {
    color: #F5C842;
    text-shadow: 0 0 20px rgba(245, 200, 66, 0.5);
}
.hero-carousel .slide .overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 10px;
}
.hero-carousel .dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.hero-carousel .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}
.hero-carousel .dots span.active {
    background: #F5C842;
    transform: scale(1.2);
}

/* ===== Category Filters (بدون نسائي) ===== */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px auto 25px;
    padding: 0 15px;
}
.category-filters .filter-btn {
    padding: 8px 24px;
    border-radius: 50px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}
.category-filters .filter-btn i {
    margin-left: 6px;
}
.category-filters .filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.category-filters .filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 6px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
    backdrop-filter: blur(6px);
    background: rgba(var(--bg-secondary-rgb, 255,255,255), 0.92);
}
[data-theme="dark"] .bottom-nav {
    background: rgba(30,30,30,0.92);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.6rem;
    transition: var(--transition);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    position: relative;
    gap: 2px;
}
.bottom-nav a i {
    font-size: 1.3rem;
}
.bottom-nav a:hover, .bottom-nav a.active {
    color: var(--gold);
}
.bottom-nav a .cart-badge {
    background: var(--gold);
    color: #1A2A3A;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 0.6rem;
    font-weight: 900;
    position: absolute;
    top: -2px;
    right: 0;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}

/* ===== Hero ===== */
.hero {
    padding: 20px 20px 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-title .highlight { color: var(--gold); }
.hero-desc {
    color: var(--text-secondary);
    max-width: 550px;
    margin: 10px auto 20px;
    font-size: 1rem;
    line-height: 1.8;
}
.hero-desc strong { color: var(--gold); }

/* ===== Buttons ===== */
.btn-primary {
    background: var(--gold);
    color: #fff !important;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
}
.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--gold);
    color: #fff;
}

/* ===== Section ===== */
.section {
    padding: 30px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}
.section-title .gold { color: var(--gold); }
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 25px;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}
.product-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    display: block;
    background: var(--bg-secondary);
}
.product-info {
    padding: 12px 14px 16px;
}
.product-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-type-badge {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: 0.55rem;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 700;
}
.product-colors {
    display: flex;
    gap: 6px;
    margin: 6px 0 10px;
    flex-wrap: wrap;
}
.product-colors .color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: inline-block;
    transition: 0.3s;
}
.product-colors .color-dot:hover {
    transform: scale(1.15);
    border-color: var(--gold);
}
.product-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 4px 0 10px;
}
.product-btn {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 7px 0;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
}
.product-btn:hover {
    background: var(--gold-hover);
    transform: scale(1.02);
}

/* ===== Detail Page ===== */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-gallery .main-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    aspect-ratio: 3/4;
    object-fit: cover;
}
.detail-gallery .thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.detail-gallery .thumbnails img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}
.detail-gallery .thumbnails img:hover,
.detail-gallery .thumbnails img.active-thumb {
    border-color: var(--gold);
    transform: scale(1.05);
}
.detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
}
.detail-category {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin: 10px 0;
}
.detail-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}
.product-options {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.opt-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.opt-group .options {
    display: flex;
    gap: 6px;
}
.opt-group .options span {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.opt-group .options span:hover {
    border-color: var(--gold);
}
.opt-group .options span.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-secondary);
    padding: 30px 20px 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.footer-col p, .footer-col a {
    color: var(--text-muted);
    line-height: 1.8;
    display: block;
    transition: var(--transition);
    font-size: 0.85rem;
}
.footer-col a:hover { color: var(--gold); padding-right: 4px; }
.social-icons { display: flex; gap: 10px; margin-top: 10px; }
.social-icons a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(201, 169, 110, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 0.9rem;
    transition: var(--transition);
}
.social-icons a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-bottom {
    text-align: center; padding-top: 20px; margin-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted); font-size: 0.75rem;
}

/* ===== CART / CHECKOUT MODALS ===== */
.cart-overlay, .checkout-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px); z-index: 3000;
    justify-content: center; align-items: center; padding: 15px;
}
.cart-overlay.active, .checkout-overlay.active { display: flex; }
.cart-modal, .checkout-modal {
    background: var(--bg-secondary); border-radius: var(--radius);
    max-width: 500px; width: 100%; max-height: 85vh; overflow-y: auto;
    padding: 25px; border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.cart-header, .checkout-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px; margin-bottom: 15px;
}
.cart-header h2, .checkout-header h2 {
    font-family: 'Playfair Display', serif; font-size: 1.4rem;
}
.close-cart, .close-checkout {
    font-size: 1.8rem; color: var(--text-muted); cursor: pointer;
    transition: var(--transition); line-height: 1;
}
.close-cart:hover, .close-checkout:hover { color: var(--gold); transform: rotate(90deg); }
.cart-item {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--border-color); align-items: center;
}
.cart-item-name { font-weight: 700; font-size: 0.95rem; }
.cart-item-price { color: var(--gold); font-size: 0.9rem; }
.cart-item-remove {
    background: rgba(255,100,100,0.08); border: 1px solid rgba(255,100,100,0.15);
    color: #ff6b6b; width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; transition: var(--transition);
}
.cart-item-remove:hover { background: #ff6b6b; color: #fff; }
.cart-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px; border-top: 1px solid var(--border-color);
    margin-top: 15px; flex-wrap: wrap; gap: 10px;
}
.cart-footer span { font-size: 1.2rem; font-weight: 700; }
.checkout-modal input, .checkout-modal textarea {
    width: 100%; padding: 12px 16px; margin: 6px 0;
    border-radius: 10px; border: 1px solid var(--input-border);
    background: var(--input-bg); color: var(--text-primary);
    font-family: 'Cairo', sans-serif; font-size: 0.9rem;
}
.checkout-modal input:focus, .checkout-modal textarea:focus {
    outline: none; border-color: var(--gold);
}
.checkout-modal .btn { width: 100%; }

/* ===== TOOLBAR ===== */
.products-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 25px;
}
.products-toolbar .count { color: var(--text-muted); font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-carousel { height: 220px; }
    .hero-carousel .slide .overlay h2 { font-size: 1.8rem; }
    .hero-carousel .slide .overlay { padding: 15px 25px; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-img { height: 200px; }
    .detail-container { grid-template-columns: 1fr; gap: 25px; }
    .detail-info h1 { font-size: 2rem; }
    .navbar { padding: 8px 15px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .hero-carousel { height: 180px; }
    .hero-carousel .slide .overlay h2 { font-size: 1.4rem; }
    .hero-carousel .slide .overlay p { font-size: 0.9rem; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-img { height: 160px; }
    .product-name { font-size: 0.9rem; }
}