:root {
    --bg: #070707;
    --surface: #111;
    --surface2: #181818;
    --gold: #d8b45a;
    --gold-light: #f0d98a;
    --text: #fff;
    --muted: #999;
    --danger: #c94b4b;
    --success: #4caf50;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    height: 78px;
    max-width: 1280px;
    margin: auto;
    padding-inline: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #ffffff11;
}

.brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold-light);
}

nav {
    display: flex;
    gap: 28px;
    color: #ccc;
}

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

.nav-toggle {
    display: none;
    background: none;
    color: white;
    border: 0;
    font-size: 24px;
}

/* =========================================
   HERO
========================================= */

.hero {
    min-height: 620px;
    max-width: 1280px;
    padding: 80px 50px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;
    gap: 30px;

    margin: auto;
    overflow: hidden;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    margin: 0 0 14px;
}

.hero h1,
.page-intro h1,
.page-copy h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.08;
    margin: 0 0 24px;
    letter-spacing: -2px;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero > div > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 470px;
    font-size: 17px;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    margin-top: 14px;

    background: var(--gold);
    color: #080808;

    font-weight: bold;
    border-radius: 3px;
}

.phone-art {
    height: 470px;
    position: relative;

    justify-self: center;

    width: 300px;

    border: 7px solid #2b2b2b;
    border-radius: 42px;

    background: linear-gradient(
        145deg,
        #181818,
        #090909
    );

    box-shadow:
        0 0 0 2px #d8b45a55,
        0 0 90px #d8b45a55;

    transform: rotate(8deg);
}

.phone-art:before {
    content: "";

    position: absolute;
    inset: 18px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 70% 25%,
            #f0d98a55,
            transparent 25%
        ),
        linear-gradient(
            150deg,
            #2d2615,
            #080808 60%
        );
}

.phone-art i {
    position: absolute;
    z-index: 2;

    top: 14px;
    right: 120px;

    width: 52px;
    height: 8px;

    background: #222;
    border-radius: 5px;
}

.phone-art b {
    position: absolute;
    z-index: 2;

    width: 90px;
    height: 90px;

    bottom: 55px;
    right: 42px;

    border-radius: 50%;

    background: #d8b45a33;

    filter: blur(3px);
}

/* =========================================
   SECTIONS
========================================= */

.section {
    max-width: 1280px;

    margin: 20px auto 100px;

    padding-inline: 24px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0;
    font-size: 32px;
}

.section-head a {
    color: var(--gold);
}

/* =========================================
   PRODUCT GRID
========================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.card {
    background: var(--surface);

    border: 1px solid #ffffff0f;

    border-radius: 10px;

    overflow: hidden;

    transition: 0.25s;
}

.card:hover {
    transform: translateY(-7px);

    border-color: #d8b45a77;

    box-shadow:
        0 16px 42px #000;
}

.card-image {
    height: 290px;

    position: relative;

    background: #181818;
}

.card-image img {
    height: 100%;
    width: 100%;

    object-fit: cover;
}

.badge {
    position: absolute;

    top: 14px;
    inset-inline-start: 14px;

    background: var(--gold);
    color: #111;

    padding: 3px 9px;

    font-size: 11px;
    font-weight: bold;
}

.card-body {
    padding: 18px;
}

.brand-name {
    color: var(--gold);

    font-size: 12px;

    letter-spacing: 1px;

    margin: 0;
}

.card h3 {
    margin: 5px 0;

    font-size: 21px;
}

.card-body > p:not(.brand-name) {
    color: var(--muted);

    font-size: 14px;

    margin: 0 0 13px;
}

.card strong,
.price {
    color: var(--gold-light);
    font-size: 18px;
}

.card del {
    color: #777;

    font-size: 13px;

    margin-inline-start: 6px;
}

.card-link {
    display: block;

    margin-top: 17px;

    color: #ddd;

    font-size: 13px;
}

/* =========================================
   FEATURE STRIP
========================================= */

.feature-strip {
    border-block: 1px solid #ffffff14;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    max-width: 1280px;

    margin: 0 auto 80px;

    text-align: left !important;

    direction: ltr !important;
}

.feature-strip div {
    padding: 28px;

    border-inline-start: 1px solid #ffffff14;

    direction: ltr !important;

    text-align: left !important;
}

.feature-strip b {
    display: block;

    direction: ltr !important;

    text-align: left !important;
}

.feature-strip small {
    display: block;

    color: var(--muted);

    direction: ltr !important;

    text-align: left !important;
}

/* =========================================
   PAGE INTRO
========================================= */

.page-intro,
.page-copy {
    max-width: 1050px;

    margin: 75px auto 30px;

    padding-inline: 24px;
}

.page-intro h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.page-copy {
    max-width: 760px;

    min-height: 50vh;
}

.page-copy p:not(.eyebrow) {
    color: var(--muted);

    font-size: 18px;
}

/* =========================================
   FILTERS
========================================= */

.filters {
    max-width: 1050px;

    margin: 25px auto;

    padding: 18px 24px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 14px;

    background: var(--surface);
}

label {
    font-size: 13px;
    color: #ccc;
}

input,
select,
textarea {
    display: block;

    width: 100%;

    padding: 10px;

    background: #0b0b0b;

    color: white;

    border: 1px solid #333;

    border-radius: 3px;

    margin-top: 5px;

    font: inherit;
}

.filters + .product-grid,
#empty {
    max-width: 1050px;

    margin: 25px auto 100px;

    padding-inline: 24px;
}

/* =========================================
   PRODUCT DETAIL
========================================= */

.detail {
    max-width: 1280px;

    margin: 70px auto;

    padding: 0 24px 100px;
}

/*
    مهم:
    الـ detail-product هو العنصر الذي ينشئه product.js
*/

.detail-product {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, 0.85fr);

    gap: 70px;

    align-items: start;

    direction: ltr;
}

/* =========================================
   PRODUCT GALLERY
========================================= */

.detail-gallery {
    width: 100%;

    min-width: 0;

    direction: ltr;
}

.product-slider {
    position: relative;

    width: 100%;

    max-width: 650px;

    margin: 0 auto;

    background: #171717;

    border-radius: 24px;

    overflow: hidden;
}

/*
    مساحة السلايدر
*/

.slider-window {
    position: relative;

    width: 100%;

    height: min(650px, 70vh);

    overflow: hidden;
}

/*
    كل الصور تكون فوق بعضها
    وليس تحت بعضها
*/

.product-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 35px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/*
    الصورة الحالية فقط تظهر
*/

.product-slide.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    z-index: 2;
}

.product-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    user-select: none;

    -webkit-user-drag: none;
}

/* =========================================
   SLIDER ARROWS
========================================= */

.slider-arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    color: #111;

    font-size: 34px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.slider-arrow:hover {
    background: #fff;

    transform:
        translateY(-50%)
        scale(1.08);
}

.slider-prev {
    left: 18px;
}

.slider-next {
    right: 18px;
}

/* =========================================
   SLIDER DOTS
========================================= */

.slider-dots {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 16px;

    min-height: 10px;
}

.slider-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #555;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.slider-dot.active {
    width: 24px;

    border-radius: 20px;

    background: var(--gold);
}

/* =========================================
   PRODUCT INFO
========================================= */

.detail-info {
    width: 100%;

    min-width: 0;

    padding-top: 10px;

    direction: ltr;
}

.detail-info .brand-name {
    margin: 0;
}

.detail-info h1 {
    font-size: 45px;

    line-height: 1.15;

    margin: 8px 0 18px;
}

.product-description {
    color: var(--muted);

    max-width: 600px;

    line-height: 1.8;
}

.detail-info .price {
    color: var(--gold-light);

    font-size: 30px;

    font-weight: 700;

    margin: 28px 0;
}

.detail-info .price del {
    color: #777;

    margin-left: 12px;

    font-size: 16px;
}

/* =========================================
   WHATSAPP ORDER
========================================= */

.order-whatsapp {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 22px;

    background: #25d366;

    color: #fff;

    border-radius: 6px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.order-whatsapp:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);
}

.order-whatsapp span {
    font-size: 18px;
}

/* =========================================
   PRODUCT SPECS
========================================= */

.detail-info .specs {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: #333;

    margin-top: 25px;
}

.detail-info .specs div {
    background: var(--surface);

    padding: 15px;
}

.detail-info .specs small {
    display: block;

    color: var(--gold);

    font-size: 11px;
}

.detail-info .specs b {
    font-size: 15px;
}

/* =========================================
   FOOTER
========================================= */

footer {
    border-top: 1px solid #ffffff15;

    padding: 38px 24px;

    display: flex;

    gap: 20px;

    justify-content: space-between;

    max-width: 1280px;

    margin: auto;

    color: var(--muted);
}

footer strong {
    color: var(--gold-light);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .detail-product {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .detail-gallery {
        width: 100%;
    }

    .product-slider {
        max-width: 600px;
    }

    .slider-window {
        height: min(600px, 65vh);
    }

    .detail-info {
        padding-top: 0;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .site-header {
        height: 65px;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        display: none;

        position: absolute;

        top: 65px;

        inset-inline: 0;

        background: #111;

        padding: 20px;

        z-index: 10;

        flex-direction: column;
    }

    nav.open {
        display: flex;
    }

    /* HERO */

    .hero {
        grid-template-columns: 1fr;

        padding: 65px 24px;

        text-align: center;
    }

    .hero > div > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .phone-art {
        height: 320px;

        width: 205px;

        border-radius: 30px;
    }

    .phone-art:before {
        border-radius: 20px;
    }

    .phone-art i {
        right: 75px;
    }

    /* PRODUCTS */

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

    .card-image {
        height: 330px;
    }

    /* FILTERS */

    .filters {
        grid-template-columns: 1fr;

        margin-inline: 24px;

        padding: 16px;
    }

    /* PRODUCT DETAIL */

    .detail {
        margin-top: 35px;

        padding-bottom: 70px;
    }

    .detail-product {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .product-slider {
        border-radius: 18px;
    }

    .slider-window {
        height: min(470px, 65vh);
    }

    .product-slide {
        padding: 20px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;

        font-size: 28px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        margin-top: 12px;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .detail-info .price {
        font-size: 25px;
    }

    .detail-info .specs {
        grid-template-columns: 1fr;
    }

    /* FEATURES */

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-strip div {
        border-bottom: 1px solid #ffffff14;
    }

    /* FOOTER */

    footer {
        flex-direction: column;

        text-align: center;
    }

    .section-head {
        align-items: start;

        flex-direction: column;

        gap: 8px;
    }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 420px) {

    .detail {
        padding-inline: 16px;
    }

    .product-slider {
        border-radius: 15px;
    }

    .slider-window {
        height: 400px;
    }

    .product-slide {
        padding: 15px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;

        font-size: 24px;
    }

    .slider-prev {
        left: 7px;
    }

    .slider-next {
        right: 7px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .slider-dot.active {
        width: 20px;
    }

    .detail-info h1 {
        font-size: 30px;
    }
}