/* 
==================================================
  ANTEX CNC - Premium Industrial Theme v2.0
  Extremely Lightweight, Zero Dependencies 
================================================== 
*/

:root {
    /* Colors - Layered Dark Industrial */
    --bg-base: #050507;
    --surface-1: #0a0a0e;
    --surface-2: #121218;
    --surface-3: #1a1a22;
    --surface-hover: #1e1e28;
    
    --border-dim: #1d1d24;
    --border-bright: #30303b;
    --border-accent: rgba(243, 156, 18, 0.3);
    
    --primary-gold: #f39c12;
    --primary-gold-hover: #f1c40f;
    --primary-gold-glow: rgba(243, 156, 18, 0.2);
    
    --text-main: #f0f0f2;
    --text-muted: #8a8a99;
    --text-dark: #111;
    
    /* Spacing Scale */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-6: 48px;
    --sp-8: 64px;
    --sp-10: 80px;
    --sp-12: 96px;

    /* Typography */
    --font-en: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ar: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
    --font-stack: var(--font-en);
    
    /* Effects */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    
    /* Noise Texture */
    --noise-bg: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

html[lang="ar"] {
    --font-stack: var(--font-ar);
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -0.01em; }
html[lang="en"] .subtitle { letter-spacing: 0.05em; text-transform: uppercase; }

a { color: var(--primary-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-gold-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

.layout-fullwidth .container {
    max-width: 100%;
    padding: 0 var(--sp-6);
}

/* Header */
.navbar {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-toggle { display: none; }

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.nav-logo img { height: 40px; }

.nav-links {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary-gold); transition: width var(--transition-smooth);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #fff; }

/* Search Input Engineered */
.search-form { display: flex; align-items: center; position: relative; }
.search-input {
    padding: 10px var(--sp-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dim);
    background: var(--surface-1);
    color: #fff;
    outline: none;
    min-width: 280px;
    font-family: inherit;
    transition: all var(--transition-fast);
}
.search-input:focus { border-color: var(--primary-gold); background: var(--surface-2); box-shadow: 0 0 0 2px var(--border-accent); }
.search-btn {
    padding: 10px 14px; background: var(--primary-gold); color: var(--text-dark);
    border: none; border-radius: var(--radius-sm); margin-left: 6px; cursor: pointer;
    font-weight: bold; transition: background var(--transition-fast);
}
.search-btn:hover { background: var(--primary-gold-hover); }

/* Search Results Dropdown */
.search-results {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    z-index: 1001; margin-top: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    max-height: 400px; overflow-y: auto;
}
.search-result-item {
    display: flex; align-items: center; padding: var(--sp-2);
    border-bottom: 1px solid var(--border-dim);
    color: #fff; transition: background var(--transition-fast);
}
.search-result-item:hover { background: var(--surface-hover); }

/* Language Switcher */
.lang-switch {
    background: var(--surface-1); color: #fff; border: 1px solid var(--border-dim);
    padding: 8px var(--sp-1); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
}

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 50% 0%, var(--surface-3) 0%, transparent 70%), var(--noise-bg);
    border-bottom: 1px solid var(--border-dim);
    padding: var(--sp-10) var(--sp-3);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.3;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: var(--sp-3);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: var(--sp-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Home Slider */
.home-slider { position: relative; width: 100%; height: 80vh; min-height: 500px; max-height: 840px; overflow: hidden; background: #000; border-bottom: 1px solid var(--border-dim); }
.slider-track { width: 100%; height: 100%; position: relative; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s ease; display: flex; align-items: center; justify-content: flex-start; }
.slide-item.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; transform: scale(1.05); }
@keyframes sliderZoomOut { from { transform: scale(1.05); } to { transform: scale(1); } }
.slide-item.active .slide-bg { animation: sliderZoomOut 6s ease-out forwards; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide-content { position: relative; z-index: 2; padding: 0 var(--sp-6); max-width: 800px; text-align: left; opacity: 0; transform: translateY(30px); transition: all 0.8s ease 0.3s; }
html[dir="rtl"] .slide-content { text-align: right; }
.slide-item.active .slide-content { opacity: 1; transform: translateY(0); }
.slide-content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); color: #fff; font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,0.8); margin-bottom: var(--sp-2); line-height: 1.1; }
.slide-content p { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #ddd; text-shadow: 0 2px 10px rgba(0,0,0,0.8); max-width: 600px; margin-bottom: var(--sp-4); }
.slider-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 50px; height: 50px; font-size: 24px; cursor: pointer; z-index: 3; border-radius: 50%; transition: background 0.3s, color 0.3s; display: flex; align-items: center; justify-content: center; opacity: 0.5; }
.slider-control:hover { background: var(--primary-gold); color: #000; opacity: 1; }
.slider-control.prev { left: 20px; }
.slider-control.next { right: 20px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--primary-gold); transform: scale(1.2); }

/* Animation Type: Slide */
.slider-anim-slide .slide-item { transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform: translateX(100%); opacity: 1; visibility: visible; }
.slider-anim-slide .slide-item.active { transform: translateX(0); z-index: 2; }
.slider-anim-slide .slide-item.active ~ .slide-item { transform: translateX(100%); }
html[dir="rtl"] .slider-anim-slide .slide-item { transform: translateX(-100%); }
html[dir="rtl"] .slider-anim-slide .slide-item.active { transform: translateX(0); }
html[dir="rtl"] .slider-anim-slide .slide-item.active ~ .slide-item { transform: translateX(-100%); }

/* Category Grid Centered */
.category-grid-centered {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    justify-content: center;
}

/* New Category Card Design */
.cat-card-modern {
    flex: 1 1 200px;
    max-width: 250px;
    min-width: 180px;
    height: 250px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border-dim);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-gold);
}
.cat-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}
.cat-card-modern:hover .cat-card-bg {
    transform: scale(1.1);
}
.cat-card-fallback {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at top right, #333, #111);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dim);
    font-size: 50px;
}
.cat-card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}
.cat-card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: var(--sp-4);
    z-index: 3;
    text-align: center;
}
.cat-card-content h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.cat-card-content span {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px var(--sp-4);
    background: var(--primary-gold);
    color: var(--text-dark);
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 16px;
    border: none; cursor: pointer;
    transition: all var(--transition-smooth);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover {
    background: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-gold-glow);
}
.btn-outline {
    background: var(--surface-1);
    color: var(--text-main);
    border: 1px solid var(--border-bright);
    clip-path: none; border-radius: var(--radius-sm);
}
.btn-outline:hover { background: var(--surface-3); border-color: var(--primary-gold); box-shadow: none; color: #fff; }

.btn-whatsapp { background: #25D366; color: #fff; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn-whatsapp:hover { background: #1ebe5d; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }

/* Sections & Typography */
.section { padding: var(--sp-12) 0; }
.section-title {
    font-size: 32px; font-weight: 800; margin-bottom: var(--sp-6);
    display: flex; align-items: center; gap: var(--sp-3); color: #fff;
}
.section-title::before { content: ''; display: block; width: 48px; height: 3px; background: var(--primary-gold); }

/* Premium Grid System */
.premium-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: var(--sp-6); 
}

/* Premium Product Cards (Apple/Tesla/Bambu Lab aesthetic) */
.premium-product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-dim);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    text-align: center;
}
.premium-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: rgba(243, 156, 18, 0.4);
}

/* Image Container */
.card-image-container {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    background: #000;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--border-bright); background: #0a0a0e;
}
.premium-product-card:hover .card-img {
    transform: scale(1.05);
}

/* Badges */
.card-badges {
    position: absolute;
    top: 15px; left: 15px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 5;
}
html[dir="rtl"] .card-badges { left: auto; right: 15px; }

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    display: inline-block;
}
.premium-badge {
    background: rgba(243, 156, 18, 0.15);
    color: var(--primary-gold);
    border: 1px solid rgba(243, 156, 18, 0.3);
}
.discount-badge {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    direction: ltr; /* Force LTR for minus sign */
}

/* Quick Actions Hover */
.card-quick-actions {
    position: absolute;
    top: 15px; right: 15px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 5;
}
html[dir="rtl"] .card-quick-actions { right: auto; left: 15px; transform: translateX(-10px); }

.premium-product-card:hover .card-quick-actions {
    opacity: 1;
    transform: translateX(0);
}
html[dir="rtl"] .premium-product-card:hover .card-quick-actions {
    transform: translateX(0);
}
.action-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-bright);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.action-btn:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

/* Image Gradient Overlay */
.card-gradient-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, var(--surface-1) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Details Section */
.card-details {
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}
.card-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    text-align: center;
}

/* Bottom Row (Price & Meta) */
.card-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}
.card-price {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    justify-content: center;
}
.old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-muted);
}
.new-price {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}
.card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}
.price-contact {
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 600;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-code {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--surface-3);
    padding: 3px 6px;
    border-radius: 4px;
}
.stock-status {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.in-stock {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}
.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}
.on-order {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* Breadcrumbs */
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: var(--sp-4); }
.breadcrumbs a { color: var(--text-muted); transition: color var(--transition-fast); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: #555; }

/* Product Detail Grid */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.layout-fullwidth .product-detail-grid { grid-template-columns: 2fr 1fr; }

.gallery-main {
    position: relative; overflow: hidden; border-radius: var(--radius-sm);
    border: 1px solid var(--border-bright); margin-bottom: var(--sp-3);
    background: #000; aspect-ratio: 4/3; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.gallery-main:hover img { transform: scale(1.6); }
.gallery-thumbs { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 8px; }
.gallery-thumbs img, .gallery-thumbs video {
    width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm);
    cursor: pointer; border: 2px solid var(--border-dim); opacity: 0.5; transition: all var(--transition-fast);
}
.gallery-thumbs img:hover, .gallery-thumbs video:hover, .gallery-thumbs .active { opacity: 1; border-color: var(--primary-gold); }

/* Specs Table */
.pd-meta { margin-bottom: var(--sp-6); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface-1); border: 1px solid var(--border-dim); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table tr:nth-child(even) { background: var(--surface-2); }
.spec-table td { padding: 14px var(--sp-3); border-bottom: 1px solid var(--border-dim); color: #ddd; font-size: 15px; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--text-muted); width: 35%; border-right: 1px solid var(--border-dim); }

.pd-desc { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin-bottom: var(--sp-6); white-space: pre-wrap; }

/* Footer */
.footer {
    background: var(--surface-1); border-top: 1px solid var(--border-bright);
    padding: var(--sp-12) 0 var(--sp-4); margin-top: var(--sp-10);
    position: relative;
}
.footer::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-gold), transparent); opacity: 0.5; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-8); margin-bottom: var(--sp-8); }
.footer h3 { color: #fff; margin-bottom: var(--sp-4); font-size: 18px; display: flex; align-items: center; gap: 10px; }
.footer h3::before { content: ''; display: block; width: 12px; height: 12px; background: var(--primary-gold); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.footer p, .footer li { color: var(--text-muted); margin-bottom: 12px; font-size: 15px; }
.footer ul { list-style: none; }
.footer-bottom { text-align: center; padding-top: var(--sp-4); border-top: 1px solid var(--border-dim); color: #555; font-size: 14px; }

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .layout-fullwidth .product-detail-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 768px) {
    .navbar { position: relative; }
    .nav-container { display: block; position: relative; height: 70px; padding: 0; }
    .nav-logo { position: absolute; left: 15px; top: 15px; margin: 0; }
    .mobile-menu-toggle { position: absolute; right: 15px; top: 20px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #fff; cursor: pointer; padding: 5px; }
    
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; background: var(--surface-1); padding: var(--sp-4); border-top: 1px solid var(--border-dim); flex-direction: column; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 1001; border-bottom: 1px solid var(--primary-gold); margin: 0; }
    .nav-links.active { display: flex !important; }
    .nav-link { text-align: center; display: block; width: 100%; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border-dim); }
    .search-form { width: 100%; display: flex; }
    .search-input { flex: 1; min-width: 0; }
    .mega-menu-wrapper { width: 100%; }
    .mega-menu { display: none !important; }
    .nav-links form { width: 100%; }
    .lang-switch { width: 100%; text-align: center; padding: 12px; }
    
    .product-detail-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .layout-fullwidth .product-detail-grid { grid-template-columns: 1fr; }
    .hero { padding: var(--sp-8) var(--sp-2); min-height: 50vh; }
    .hero h1 { font-size: 2.5rem; }
    .section { padding: var(--sp-8) 0; }
    .layout-fullwidth .container { padding: 0 var(--sp-3); }
    
    /* Fix horizontal scroll issues caused by slider or mega menu */
    html, body { overflow-x: hidden; position: relative; width: 100%; }
    .nav-container { overflow: visible !important; }
}

/* ==========================================================================
   MEGA MENU
   ========================================================================== */
.mega-menu-wrapper {
    position: relative;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
    border-top: 3px solid var(--primary-gold);
    border-radius: 8px;
    padding: var(--sp-6);
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-6);
    width: 90vw;
    max-width: 1000px;
    z-index: 2000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mega-menu-wrapper:hover .mega-menu {
    display: grid;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.mega-column h4 {
    color: var(--primary-gold);
    margin-bottom: var(--sp-3);
    font-size: 16px;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 8px;
}
.mega-column h4 a {
    color: inherit;
    text-decoration: none;
}
.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-column ul li {
    margin-bottom: 8px;
}
.mega-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.mega-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* SUB-DROPDOWN FOR MEGA MENU */
.mega-column ul li.has-sub-dropdown {
    position: relative;
}
.mega-column ul li.has-sub-dropdown .sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    padding: var(--sp-4);
    display: none;
    z-index: 2001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.mega-column ul li.has-sub-dropdown:hover > .sub-dropdown {
    display: block;
}
html[dir="rtl"] .mega-column ul li.has-sub-dropdown .sub-dropdown {
    left: auto;
    right: 100%;
}
html[dir="rtl"] .mega-column ul li.has-sub-dropdown > a > span {
    float: left !important;
    transform: rotate(180deg);
}
