/* ============================================
   GAMER STORE — CSS V3
   ============================================ */

:root {
    --bg: #050509;
    --surface: #0d0d14;
    --surface2: #151520;
    --red: #ff173d;
    --purple: #7b2cff;
    --cyan: #18f0ff;
    --text: #ffffff;
    --muted: #b7b7c9;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --success: #00e676;
    --error: var(--red);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo-text, .section-tag, .btn, .spec-chip, .lang-toggle, .nav-link, .promo-badge {
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { border: none; background: none; cursor: pointer; color: inherit; font: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(5, 5, 9, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: rgba(5, 5, 9, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(123, 44, 255, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .header-inner {
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    direction: ltr !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 6px var(--purple));
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.05);
}

.logo-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo-accent {
    color: var(--red);
    text-shadow: 0 0 20px rgba(255, 23, 61, 0.4);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--muted);
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: var(--cyan);
    background: rgba(24, 240, 255, 0.06);
    border-color: rgba(24, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(24, 240, 255, 0.08);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5,5,9,0.65) 0%, rgba(5,5,9,0.85) 50%, rgba(5,5,9,0.98) 100%);
}

.hero-glow {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow--purple {
    width: 500px; height: 500px;
    background: var(--purple);
    opacity: 0.15;
    top: 10%; right: 10%;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow--red {
    width: 400px; height: 400px;
    background: var(--red);
    opacity: 0.1;
    bottom: 20%; left: 5%;
    animation: glowPulse 6s ease-in-out infinite 3s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 140px 20px 80px;
    max-width: 860px;
}

.hero-brands {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 20px;
    background: rgba(21, 21, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.brand-sep {
    color: rgba(255,255,255,0.2);
    font-size: 8px;
}

.hero-title {
    font-size: clamp(34px, 6.5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--red), var(--purple), var(--cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-sub {
    font-size: clamp(15px, 2.2vw, 18px);
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.55s; }

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), #cc1030);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(255, 23, 61, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(255, 23, 61, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(255, 23, 61, 0.2);
}

.btn-outline {
    background: rgba(13, 13, 20, 0.45);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--purple), #5a1fcc);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(123, 44, 255, 0.2);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card:hover {
    box-shadow: 0 0 25px rgba(123, 44, 255, 0.45);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-card:active {
    transform: translateY(-0.5px) scale(0.98);
}

.btn-card-full { width: 100%; }

.btn-lg {
    padding: 19px 38px;
    font-size: 17px;
    border-radius: 12px;
}

/* ---------- SECTION HELPERS ---------- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-red {
    color: var(--red);
    text-shadow: 0 0 30px rgba(255,23,61,0.3);
}

/* ---------- SPEC CHIPS ---------- */
.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-chip--red {
    background: rgba(255,23,61,0.1);
    border: 1px solid rgba(255,23,61,0.3);
    color: var(--red);
    box-shadow: 0 0 10px rgba(255,23,61,0.08);
}

.spec-chip--purple {
    background: rgba(123,44,255,0.1);
    border: 1px solid rgba(123,44,255,0.3);
    color: var(--purple);
    box-shadow: 0 0 10px rgba(123,44,255,0.08);
}

.spec-chip--cyan {
    background: rgba(24,240,255,0.07);
    border: 1px solid rgba(24,240,255,0.25);
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(24,240,255,0.08);
}

.product-card:hover .spec-chip--red { box-shadow: 0 0 18px rgba(255,23,61,0.25); }
.product-card:hover .spec-chip--purple { box-shadow: 0 0 18px rgba(123,44,255,0.25); }
.product-card:hover .spec-chip--cyan { box-shadow: 0 0 18px rgba(24,240,255,0.2); }

/* ---------- PRODUCTS ---------- */
.products {
    padding: 100px 0;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.product-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    background: linear-gradient(135deg, rgba(123, 44, 255, 0.35), rgba(255, 23, 61, 0.35));
    filter: blur(1px);
}

.product-card:hover .product-card-glow { opacity: 1; }

.product-card-accent {
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.product-card-accent::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 60px; height: 60px;
    background: var(--red);
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(255, 23, 61, 0.4);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(123, 44, 255, 0.12);
    border-color: transparent;
}

.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface2);
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* Sold products stay visible as part of the catalogue, but are clearly unavailable. */
.product-card--sold {
    filter: grayscale(1);
    opacity: 0.72;
    cursor: default;
}

.product-card--sold:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.product-card--sold:hover .product-card-glow { opacity: 0; }
.product-card--sold:hover .product-img-wrap img { transform: none; }


.product-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
}

.product-badge-condition {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(5, 5, 9, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(123, 44, 255, 0.3);
    color: #c084fc;
}

.product-badge-status {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(5, 5, 9, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(24, 240, 255, 0.2);
    color: var(--cyan);
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.product-body {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.3;
}

.product-sub-specs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.5px;
}

.price-currency {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
}

.product-stock {
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* ---------- PROMO ---------- */
.promo {
    padding: 60px 0 100px;
}

.promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid rgba(255,23,61,0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255,23,61,0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,23,61,0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255,23,61,0.12);
}

.promo-card-glow {
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,23,61,0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.promo-card-img {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.promo-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card:hover .promo-card-img img {
    transform: scale(1.03);
}

.promo-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, var(--surface));
    pointer-events: none;
}

.promo-card-body {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-card-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.promo-card-specs {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.promo-pricing {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.promo-old-price {
    font-size: 19px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: var(--red);
}

.promo-new-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.5px;
}

.promo-discount {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255,23,61,0.15);
    color: var(--red);
    border: 1px solid rgba(255,23,61,0.3);
    letter-spacing: 0.5px;
}

/* ---------- REVIEWS SECTION ---------- */
.reviews {
    padding: 100px 0;
    position: relative;
}

/* Side-by-side grid for summary + form */
.reviews-top-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 48px;
}

.reviews-summary {
    text-align: center;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.reviews-summary:hover {
    border-color: rgba(24, 240, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(24, 240, 255, 0.05);
    transform: translateY(-2px);
}

.reviews-summary-number {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.reviews-summary-stars {
    font-size: 22px;
    color: var(--cyan);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.reviews-summary-count {
    font-size: 14px;
    color: var(--muted);
}

.rating-breakdown {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.lang-ar .rating-breakdown {
    text-align: right;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.rating-bar-label {
    min-width: 85px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 1.2px;
    text-align: left;
    display: inline-flex;
    gap: 1px;
}

.lang-ar .rating-bar-label {
    text-align: right;
    direction: ltr;
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rating-bar-pct {
    min-width: 36px;
    text-align: right;
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
}

.lang-ar .rating-bar-pct {
    text-align: left;
}

.rating-bar-label .star-empty {
    color: rgba(255, 255, 255, 0.08);
}

.reviews-summary-empty,
.reviews-summary-error {
    font-size: 15px;
    color: var(--muted);
    padding: 20px 0;
}

/* ---------- REVIEW FORM ---------- */
.review-form-wrap {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.review-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--purple), var(--cyan));
}

.review-form-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.char-count {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    opacity: 0.6;
    font-size: 12px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(183,183,201,0.4);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: rgba(24, 240, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(24, 240, 255, 0.1), 0 0 20px rgba(24, 240, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    gap: 6px;
    padding-top: 4px;
}

.star-rating .star {
    font-size: 28px;
    color: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: color 0.15s, text-shadow 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
}

.star-rating .star:hover {
    transform: scale(1.15);
}

.star-rating .star.active {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(24, 240, 255, 0.4);
}

.star-rating .star.hover-preview {
    color: var(--cyan);
    opacity: 0.7;
}

/* Honeypot */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Form Message */
.form-message {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: none;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

#reviewSubmit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- REVIEWS LIST ---------- */
.reviews-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(24, 240, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.review-card:hover::before { opacity: 1; }

.review-card:hover {
    border-color: rgba(24, 240, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(24, 240, 255, 0.04);
    transform: translateY(-4px);
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.review-card-date {
    font-size: 13px;
    color: var(--muted);
    opacity: 0.7;
}

.review-card-stars {
    font-size: 16px;
    color: var(--cyan);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.review-card-stars .star-empty {
    color: rgba(255,255,255,0.08);
}

.review-card-comment {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    flex-grow: 1;
}

.reviews-empty,
.reviews-error {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    padding: 40px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    grid-column: 1 / -1;
}

/* ---------- WHY US ---------- */
.why {
    padding: 100px 0;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 360px;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.why-card:hover::before { opacity: 1; }

.why-card:hover {
    border-color: rgba(123,44,255,0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(123,44,255,0.08);
}

.why-check {
    font-size: 20px;
    font-weight: 800;
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(24,240,255,0.4);
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.why-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
}

.contact-inner {
    position: relative;
    text-align: center;
    padding: 70px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(123,44,255,0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-inner .section-title,
.contact-inner .contact-text,
.contact-inner .btn {
    position: relative;
    z-index: 1;
}

.contact-text {
    font-size: 16px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-col--brand {
    padding-right: 40px;
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.65;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--muted);
    padding: 6px 0;
    transition: color 0.25s;
}

a.footer-link:hover { color: var(--text); }

.footer-link--static { cursor: default; }

.footer-link--ig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple);
    font-weight: 600;
}

.footer-link--ig:hover { color: var(--cyan); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-copy {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .why-card {
        flex: 1 1 calc(50% - 20px);
        max-width: 380px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .promo-card {
        grid-template-columns: 1fr;
    }

    .promo-card-img {
        min-height: 240px;
    }

    .promo-card-img::after {
        background: linear-gradient(to bottom, transparent 40%, var(--surface));
    }

    .promo-card-body {
        padding: 32px 28px;
    }

    .reviews-top-grid {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .header-inner {
        padding: 0 16px;
        gap: 10px;
    }

    .menu-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 64px;
        right: 12px;
        bottom: auto;
        width: 260px;
        max-height: 380px;
        overflow-y: auto;
        background: rgba(13,13,20,0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 2px;
        border-radius: 12px;
        border: 1px solid var(--border);
        box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(123,44,255,0.08);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav.open { transform: translateX(0); }

    .nav-link {
        font-size: 15px;
        padding: 14px 16px;
        border-radius: 10px;
    }

    .hero-content { padding: 100px 16px 70px; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        justify-content: center;
        width: 100%;
    }

    .products { padding: 70px 0; }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-body { padding: 18px 18px 22px; }
    .product-name { font-size: 16px; }
    .price-amount { font-size: 28px; }

    .promo-card-img { min-height: 200px; }
    .promo-new-price { font-size: 32px; }

    .reviews { padding: 70px 0; }

    .reviews-top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-summary {
        position: static;
        max-width: 100%;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-form-wrap {
        padding: 28px 20px;
    }

    .star-rating .star { font-size: 26px; }

    .review-card { padding: 20px; }

    .why { padding: 70px 0; }

    .why-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .contact { padding: 70px 0; }
    .contact-inner { padding: 50px 20px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col--brand { padding-right: 0; }

    .section-header { margin-bottom: 40px; }

    .reviews-summary-number { font-size: 44px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 30px; }
    .hero-brands { font-size: 12px; letter-spacing: 2px; gap: 6px; }
    .product-name { font-size: 15px; }
    .price-amount { font-size: 26px; }
    .promo-new-price { font-size: 28px; }
    .reviews-summary-number { font-size: 38px; }
}

/* ---------- OVERLAY ---------- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.nav-overlay.visible { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
    .nav-overlay { display: none; }
}

/* ---------- MISC ---------- */
::selection { background: var(--purple); color: var(--text); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(123,44,255,0.4); }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(13, 13, 20, 0.55);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px;
    height: 38px;
    gap: 2px;
    direction: ltr;
    unicode-bidi: embed;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    flex-shrink: 0;
}

.lang-switcher:hover {
    border-color: rgba(24, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(123, 44, 255, 0.2), 0 0 35px rgba(255, 23, 61, 0.1);
}

.lang-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    margin-right: 2px;
    color: var(--muted);
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
    z-index: 2;
}

.lang-switcher:hover .lang-icon {
    color: var(--cyan);
    opacity: 1;
}

.lang-btn {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    width: 44px;
    height: 30px;
    border-radius: 50px;
    color: var(--muted);
    cursor: pointer;
    z-index: 2;
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lang-btn[data-lang="ar"] {
    width: 54px;
    font-family: inherit;
    font-size: 12px;
}

.lang-btn.active {
    color: var(--text);
}

.lang-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 29px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(123, 44, 255, 0.3), rgba(24, 240, 255, 0.3));
    border: 1px solid rgba(24, 240, 255, 0.25);
    box-shadow: 0 0 10px rgba(24, 240, 255, 0.15);
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher.fr .lang-slider {
    width: 44px;
    transform: translateX(0);
}

.lang-switcher.ar .lang-slider {
    width: 54px;
    transform: translateX(46px);
}

/* ============================================
   RTL (ARABIC) OVERRIDES
   ============================================ */

.lang-ar .hero-title {
    letter-spacing: 0;
}

.lang-ar .hero-brands {
    letter-spacing: 1px;
}

.lang-ar .section-title {
    letter-spacing: 0;
}

.lang-ar .logo-text {
    letter-spacing: 0.5px;
}

.lang-ar .nav {
    right: auto;
    left: 12px;
}

.lang-ar .nav.open {
    transform: translateY(0);
}

.lang-ar .product-card-accent {
    right: auto;
    left: 0;
}

.lang-ar .product-card-accent::before {
    right: auto;
    left: -30px;
}

.lang-ar .promo-card-img::after {
    background: linear-gradient(to left, transparent 60%, var(--surface));
}

.lang-ar .promo-card-glow {
    right: auto;
    left: -100px;
}

.lang-ar .star-rating .star {
    transform: scaleX(-1);
}

.lang-ar .star-rating .star:hover {
    transform: scaleX(-1) scale(1.15);
}

@media (max-width: 768px) {
    .lang-switcher {
        height: 34px;
        padding: 2px;
    }
    .lang-btn {
        height: 28px;
        font-size: 11px;
        width: 38px;
    }
    .lang-btn[data-lang="ar"] {
        width: 48px;
        font-size: 11px;
    }
    .lang-slider {
        left: 23px;
        top: 2px;
        bottom: 2px;
    }
    .lang-switcher.fr .lang-slider {
        width: 38px;
    }
    .lang-switcher.ar .lang-slider {
        width: 48px;
        transform: translateX(40px);
    }
    .lang-icon {
        width: 15px;
        height: 15px;
        margin-left: 4px;
        margin-right: 1px;
    }
}
