/* =========================================================
   ALHADAF ALSAMI | STYLESHEET
   تصميم موحّد، بدون تكرار قواعد، مرتب حسب الأقسام
   ========================================================= */

:root {
    --blue: #145D9E;
    --blue-dark: #0A3C68;
    --blue-light: #6FA0CC;

    --gray: #D8DDE1;
    --gray-light: #E7EBEE;
    --gray-soft: #EEF1F3;
    --gray-dark: #59646D;

    --dark: #26313A;
    --dark-soft: #35414A;

    --white: #F8F9FA;
    --line: rgba(20, 93, 158, .16);

    --shadow: 0 18px 45px rgba(38, 49, 58, .10);
    --shadow-hover: 0 25px 60px rgba(20, 93, 158, .16);

    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', Arial, Tahoma, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,.45), transparent 30%),
        linear-gradient(135deg, #D7DCDF, #E4E8EA);
    color: var(--dark);
    line-height: 1.7;
}

body::selection { background: var(--blue); color: white; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin: auto; }

.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
    transition: .25s ease;
}
.primary-btn {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    box-shadow: 0 12px 25px rgba(20, 93, 158, .22);
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 35px rgba(20, 93, 158, .28); }
.secondary-btn {
    border: 1px solid rgba(20, 93, 158, .28);
    background: rgba(248, 249, 250, .85);
    color: var(--blue);
    backdrop-filter: blur(10px);
}
.secondary-btn:hover { transform: translateY(-3px); }


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

header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(229, 233, 236, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(20, 93, 158, .13);
    box-shadow: 0 5px 25px rgba(38, 49, 58, .05);
}

.header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.company { display: flex; align-items: center; gap: 12px; }
.company-text { display: flex; flex-direction: column; line-height: 1.15; }
.company-ar { color: var(--blue); font-size: 19px; font-weight: 900; letter-spacing: -.3px; white-space: nowrap; }
.company-en { color: var(--gray-dark); font-size: 8px; font-weight: 700; letter-spacing: 2px; margin-top: 5px; direction: ltr; }

nav { display: flex; align-items: center; gap: 24px; }
nav a { position: relative; color: #56616A; font-size: 12px; font-weight: 800; padding: 8px 0; transition: .25s ease; }
nav a::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--blue); transition: .25s ease; }
nav a:hover, nav a.active { color: var(--blue); }
nav a:hover::after, nav a.active::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.language, .currency {
    border: 1px solid rgba(20, 93, 158, .15);
    background: rgba(248, 249, 250, .75);
    color: var(--dark);
    padding: 8px 10px;
    font-size: 10px; font-weight: 700;
    border-radius: 10px; outline: none;
    transition: .2s;
}
.language:hover, .currency:hover { border-color: var(--blue); }

.cart-btn {
    width: 43px; height: 43px;
    border: 1px solid rgba(20, 93, 158, .15);
    background: rgba(248, 249, 250, .8);
    border-radius: 12px;
    position: relative;
    transition: .25s;
}
.cart-btn:hover { transform: translateY(-2px); background: var(--blue); }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--blue); color: white;
    width: 19px; height: 19px; border-radius: 50%;
    font-size: 9px; font-weight: 900;
    display: grid; place-items: center;
    border: 2px solid #E4E8EA;
}


/* =========================================================
   HERO BANNER
   المقاسات تتغير تدريجياً مع عرض الشاشة (vw) بدل قفزات مفاجئة
   بين اللابتوب والتلفون - نفس الشكل والنِسَب على كل جهاز.
   ========================================================= */

.hero-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(26px, 5vw, 70px) 0 0;
    background:
        linear-gradient(to bottom, transparent 84%, #b7bdc3 84%, #98a0a7 100%),
        radial-gradient(ellipse at 50% 28%, #f1f3f5 0%, #d3d8dc 55%, #b9bfc5 100%);
}

/* تمت إزالة الخطوط الجانبية الكحلية بناء على الطلب */

.hero-banner-inner {
    /* عرض خاص بالهيرو أوسع من باقي الموقع، عشان الأجهزة تاخذ حجمها الحقيقي */
    width: min(1800px, 97%);
    margin: auto;
    position: relative;
    direction: ltr;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(14px, 3vw, 46px);
}

.hero-side {
    /* عناصر شفافة: صورها تصبح أعضاء مباشرين في صف الفليكس
       مع النص، فيصير ترتيبها قابل للتحكم فردياً بـ order */
    display: contents;
}

.hero-img {
    display: block;
    width: auto;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: clamp(16px, 4vw, 60px);
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ترتيب الأجهزة من اليسار لليمين (الصف باتجاه LTR):
   فرن - غسالة - [النص] - فريزر - ثلاجة (أقصى اليمين) */
.hero-oven    { order: 1; }
.hero-washer  { order: 2; }
.hero-center  { order: 3; }
.hero-freezer { order: 4; }
.hero-fridge  { order: 5; }

/* الارتفاع نسبة من عرض الشاشة (vw)، بحد أدنى وأقصى -
   يعني نفس الحجم النسبي والشكل على اللابتوب والتلفون */
.hero-fridge  { height: clamp(135px, 27vw, 420px); }
.hero-washer  { height: clamp(90px,  18vw, 420px); }
.hero-freezer { height: clamp(80px,  19.5vw, 380px); }
.hero-oven    { height: clamp(74px,  17.5vw, 350px); }

.hero-center {
    flex: 0 0 auto;
    width: min(42%, 360px);
    direction: rtl;
    text-align: center;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(4px, 1vw, 10px);
}

.hero-title {
    font-size: clamp(26px, 4vw, 35px);
    font-weight: 900;
    color: #10284d;
    line-height: 1.2;
    margin-bottom: 6px;
}
.hero-subtitle {
    font-size: clamp(13px, 1.8vw, 22px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: clamp(14px, 2.5vw, 28px);
}

.ignis-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    padding: clamp(13px, 2.2vw, 24px) clamp(22px, 4.8vw, 54px) clamp(11px, 1.8vw, 20px);
    background: linear-gradient(180deg, #2a2a2c 0%, #050505 55%, #000 100%);
    border: 2px solid #4a4a4d;
    border-radius: clamp(200px, 2vw, 24px);
    box-shadow:
        0 26px 50px rgba(0,0,0,.4),
        inset 0 2px 0 rgba(255,255,255,.22),
        inset 0 -3px 8px rgba(0,0,0,.6);
}
.ignis-badge-name {
    font-family: 'Montserrat', 'Cairo', Arial, sans-serif;
    font-size: clamp(32px, 5.5vw, 72px);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #b9bcc0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 2px rgba(0,0,0,.55));
}
.ignis-badge.large { padding: clamp(16px, 2.4vw, 28px) clamp(24px, 4.2vw, 50px) clamp(14px, 2vw, 24px); }
.ignis-badge.large .ignis-badge-name { font-size: clamp(30px, 4.5vw, 58px); }

.hero-tagline {
    direction: ltr;
    margin-top: clamp(10px, 1.8vw, 20px);
    font-size: clamp(8px, 1.1vw, 13px);
    font-weight: 700;
    letter-spacing: 3px;
    color: #3b464f;
}
.hero-tagline.dark { color: var(--gray-dark); }

.italy-line {
    direction: ltr;
    display: flex;
    width: clamp(110px, 14vw, 180px);
    height: 3px;
    margin: 12px auto 0;
}
.italy-line span:nth-child(1) { flex: 1; background: #1f8a3b; }
.italy-line span:nth-child(2) { flex: 1; background: #f4f4f4; }
.italy-line span:nth-child(3) { flex: 1; background: #d02b2b; }

.hero-center .hero-buttons {
    display: flex;
    gap: clamp(7px, 1.2vw, 12px);
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: clamp(16px, 2.8vw, 28px);
}
.hero-center .primary-btn,
.hero-center .secondary-btn {
    padding: clamp(10px, 1.4vw, 13px) clamp(13px, 2.2vw, 24px);
    font-size: clamp(9.5px, 1vw, 11px);
    white-space: nowrap;
}

/* عند ضيق الشاشة: النص يطلع صف كامل فوق، والأربعة أجهزة
   يصطفوا كلهم بصف واحد تحته (مش فوق وتحت) */
@media (max-width: 760px) {
    .hero-banner-inner {
        flex-wrap: wrap;
        align-items: center;
    }
    .hero-center {
        order: -1;
        flex: 1 1 100%;
        width: 110%;
        padding-bottom: 4px;
    }
}


/* =========================================================
   SECTION HEADINGS (عام لكل الأقسام)
   ========================================================= */

section { padding: 90px 0; }
.section-heading { margin-bottom: 42px; }
.section-label { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: 2.5px; }
.section-heading h2 { font-size: 39px; margin-top: 7px; font-weight: 900; }
.section-heading p { color: var(--gray-dark); font-size: 12px; margin-top: 8px; }


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories { background: linear-gradient(135deg, #E6EAED, #DDE2E5); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }

.category {
    min-height: 230px;
    background: linear-gradient(145deg, rgba(248,249,250,.92), rgba(222,227,230,.85));
    border: 1px solid rgba(20, 93, 158, .12);
    border-radius: 22px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 16px;
    transition: .3s ease;
    position: relative;
    box-shadow: 0 10px 25px rgba(38,49,58,.06);
    overflow: hidden;
    cursor: pointer;
}
.category::before {
    content: "";
    position: absolute;
    width: 120px; height: 120px;
    background: rgba(20, 93, 158, .05);
    border-radius: 50%;
    top: -50px; right: -50px;
}
.category:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 93, 158, .38);
    box-shadow: var(--shadow-hover);
}
.category.active {
    border-color: var(--blue);
    background: linear-gradient(145deg, rgba(239,246,252,.95), rgba(221,229,235,.95));
    box-shadow: 0 20px 45px rgba(20, 93, 158, .16);
}

.category-number {
    position: absolute; top: 15px; left: 15px;
    color: var(--blue-light); font-size: 9px; font-weight: 900; letter-spacing: 1px;
}

.category-icon {
    width: 76px; height: 76px; border-radius: 23px;
    display: grid; place-items: center; color: white;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    box-shadow: 0 14px 28px rgba(20,93,158,.25);
    transition: .3s ease;
}
.category-icon svg { width: 31px; height: 31px; }
.category:hover .category-icon,
.category.active .category-icon { transform: scale(1.08) rotate(-2deg); }

.category h3 { font-size: 18px; font-weight: 900; color: var(--dark); }
.category p { color: var(--blue); font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.category p::after { content: "←"; transition: .2s; }
.category:hover p::after { transform: translateX(-5px); }


/* =========================================================
   PRODUCTS
   ========================================================= */

.products { background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.5), transparent 30%), #D7DCE0; }
.product-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }

.search {
    width: 100%; max-width: 470px; height: 50px;
    display: flex;
    background: rgba(248,249,250,.82);
    border: 1px solid rgba(20,93,158,.13);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(38,49,58,.06);
    backdrop-filter: blur(10px);
}
.search input { flex: 1; border: 0; background: transparent; padding: 0 16px; outline: none; color: var(--dark); font-size: 11px; }
.search input::placeholder { color: #7B858D; }
.search button {
    width: 70px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; border: 0; font-size: 10px; font-weight: 900;
}

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

.product {
    background: rgba(248,249,250,.92);
    border: 1px solid rgba(20,93,158,.10);
    border-radius: 20px;
    overflow: hidden;
    transition: .3s ease;
    box-shadow: 0 10px 28px rgba(38,49,58,.07);
    cursor: pointer;
}
.product:hover {
    transform: translateY(-8px);
    border-color: rgba(20,93,158,.3);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 225px;
    background: radial-gradient(circle at center, rgba(255,255,255,.9), rgba(214,220,224,.7));
    display: grid; place-items: center;
    overflow: hidden;
    position: relative;
}
.product-image::before {
    content: "";
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(20,93,158,.08);
}
.product-shape {
    width: 105px; height: 150px;
    background: linear-gradient(145deg, #FFFFFF, #CBD2D7);
    border-radius: 12px;
    box-shadow: 10px 18px 28px rgba(38,49,58,.12);
    position: relative; z-index: 1;
}
.product-image img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 15px;
    z-index: 2;
    transition: .35s ease;
}
.product:hover .product-image img { transform: scale(1.045); }

.product-info { padding: 21px 20px; }
.product-category {
    display: inline-block;
    color: var(--blue);
    background: rgba(20,93,158,.08);
    border: 1px solid rgba(20,93,158,.08);
    font-size: 8px; font-weight: 900; letter-spacing: .4px;
    padding: 5px 11px; border-radius: 30px;
    margin-bottom: 10px;
}
.product h3 { font-size: 16px; font-weight: 900; margin: 0 0 6px; color: var(--dark); line-height: 1.4; }
.product p { color: var(--gray-dark); font-size: 10px; line-height: 1.8; min-height: 38px; }

.product-bottom {
    margin-top: 17px; padding-top: 14px;
    border-top: 1px solid rgba(20,93,158,.10);
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
}
.price { color: var(--blue); font-weight: 900; font-size: 14px; line-height: 1.3; }
.add-cart {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; border: 0;
    padding: 9px 13px;
    font-size: 9px; font-weight: 900;
    border-radius: 9px;
    transition: .25s;
}
.add-cart:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(20,93,158,.22); }


/* =========================================================
   ABOUT
   ========================================================= */

.about { background: linear-gradient(135deg, #E8EBED, #DDE2E5); position: relative; overflow: hidden; }
.about::before {
    content: "";
    position: absolute;
    width: 500px; height: 500px;
    border: 1px solid rgba(20,93,158,.08);
    border-radius: 50%;
    left: -220px; bottom: -220px;
}
.about-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 65px; align-items: center; position: relative; z-index: 1; }
.about h2 { font-size: 38px; margin: 10px 0 20px; color: var(--dark); font-weight: 900; line-height: 1.35; }
.about p { color: var(--gray-dark); font-size: 13px; line-height: 2.1; }
.about p + p { margin-top: 14px; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.about-stat {
    background: rgba(248,249,250,.75);
    border: 1px solid rgba(20,93,158,.12);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(38,49,58,.05);
}
.about-stat strong { display: block; color: var(--blue); font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.about-stat span { display: block; color: var(--gray-dark); font-size: 9px; font-weight: 700; line-height: 1.5; }

.about-card {
    background: radial-gradient(circle at center, rgba(255,255,255,.8), rgba(213,219,223,.75));
    padding: 55px 45px;
    border: 1px solid rgba(20,93,158,.12);
    border-radius: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }


/* =========================================================
   OFFERS
   ========================================================= */

.offers { background: linear-gradient(135deg, #245C83, #174A70); color: white; position: relative; overflow: hidden; }
.offers::before {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    left: -160px; top: -170px;
}
.offer-box {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    padding: 48px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 26px;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
    position: relative; z-index: 1;
}
.offer-box .section-label { color: #A9D0EA; }
.offer-box h2 { font-size: 36px; margin: 8px 0; font-weight: 900; }
.offer-box p { color: rgba(255,255,255,.72); font-size: 11px; }


/* =========================================================
   CONTACT
   ========================================================= */

.contact { background: linear-gradient(135deg, #E7EBED, #D9DEE2); }
.contact-box {
    background: rgba(248,249,250,.7);
    border: 1px solid rgba(20,93,158,.12);
    padding: 45px; border-radius: 25px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.contact-box h2 { font-size: 34px; color: var(--dark); font-weight: 900; }
.contact-box p { color: var(--gray-dark); font-size: 11px; margin-top: 5px; }
.contact-buttons { display: flex; gap: 10px; }
.contact-buttons a {
    padding: 13px 23px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; font-size: 10px; font-weight: 900;
    border-radius: 10px; transition: .25s;
}
.contact-buttons a:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(20,93,158,.22); }


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

footer { background: linear-gradient(135deg, #35414A, #29343C); color: white; padding: 65px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.footer-company { max-width: 330px; }
.footer-company h3 { color: #8EB8D7; font-size: 24px; font-weight: 900; }
.footer-company p, footer a { color: rgba(255,255,255,.62); font-size: 10px; }
.footer-company p { margin-top: 12px; line-height: 1.9; }
footer h4 { font-size: 12px; margin-bottom: 15px; color: white; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
footer a { transition: .2s; }
footer a:hover { color: #A9D0EA; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.11);
    margin-top: 45px; padding-top: 20px;
    display: flex; justify-content: space-between;
    color: rgba(255,255,255,.42); font-size: 9px;
}


/* =========================================================
   CART DRAWER
   ========================================================= */

.cart {
    position: fixed; top: 0; right: 0;
    width: min(420px, 100%); height: 100vh;
    background: rgba(239,243,245,.97);
    z-index: 3000;
    box-shadow: -20px 0 60px rgba(38,49,58,.18);
    transform: translateX(110%);
    transition: .35s ease;
    display: flex; flex-direction: column;
    backdrop-filter: blur(18px);
}
.cart.open { transform: translateX(0); }
.cart-head { padding: 22px; border-bottom: 1px solid rgba(20,93,158,.12); display: flex; justify-content: space-between; align-items: center; }
.cart-head h3 { font-size: 19px; color: var(--dark); font-weight: 900; }
.close-cart {
    width: 35px; height: 35px; border: 0;
    background: rgba(20,93,158,.08); color: var(--dark); font-size: 20px;
    border-radius: 10px; transition: .2s;
}
.close-cart:hover { background: var(--blue); color: white; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.empty { text-align: center; color: var(--gray-dark); margin-top: 100px; font-size: 12px; }
.cart-item { border-bottom: 1px solid rgba(20,93,158,.10); padding: 16px 0; display: flex; justify-content: space-between; gap: 10px; }
.cart-product-info { flex: 1; }
.cart-product-info strong { color: var(--dark); font-size: 12px; }
.cart-product-info small { color: var(--blue); font-weight: 800; font-size: 10px; }
.remove-item {
    border: 0; background: rgba(20,93,158,.07); color: var(--dark);
    width: 30px; height: 30px; border-radius: 8px; transition: .2s;
}
.remove-item:hover { background: var(--blue); color: white; }
.cart-footer { border-top: 1px solid rgba(20,93,158,.12); padding: 20px; background: rgba(255,255,255,.35); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 12px; }
.cart-total strong { color: var(--blue); }
.checkout {
    width: 100%; height: 48px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; border: 0; border-radius: 10px; font-weight: 900;
    transition: .25s;
}
.checkout:hover { box-shadow: 0 12px 25px rgba(20,93,158,.22); transform: translateY(-2px); }

.quantity-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.quantity-controls button {
    width: 27px; height: 27px;
    border: 1px solid rgba(20,93,158,.14);
    background: rgba(20,93,158,.06);
    font-weight: 900; color: var(--dark); border-radius: 7px;
}
.quantity-controls button:hover { background: var(--blue); color: white; }
.quantity-controls span { min-width: 22px; text-align: center; font-size: 11px; font-weight: 900; color: var(--dark); }


/* =========================================================
   ORDER MODAL + SUCCESS
   ========================================================= */

.order-overlay, .success-overlay {
    position: fixed; inset: 0;
    background: rgba(38,49,58,.58);
    z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: .25s;
    backdrop-filter: blur(8px);
}
.order-overlay.open, .success-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.order-modal {
    width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
    background: linear-gradient(145deg, #F8F9FA, #E8ECEF);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.order-header { border-bottom: 1px solid rgba(20,93,158,.12); padding-bottom: 18px; margin-bottom: 20px; }
.order-header h2 { font-size: 26px; margin-top: 6px; color: var(--dark); font-weight: 900; }
.order-header p { color: var(--gray-dark); font-size: 11px; line-height: 1.9; margin-top: 10px; }
.order-close {
    position: absolute; top: 18px; left: 18px;
    width: 36px; height: 36px; border: 0;
    background: rgba(20,93,158,.08); color: var(--dark);
    font-size: 22px; cursor: pointer; border-radius: 9px;
}
.order-close:hover { background: var(--blue); color: white; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 10px; font-weight: 900; margin-bottom: 7px; color: var(--dark); }
.form-group input, .form-group textarea {
    width: 100%;
    border: 1px solid rgba(20,93,158,.13);
    background: rgba(255,255,255,.72);
    padding: 12px 13px; outline: none;
    font-size: 11px; border-radius: 9px;
    resize: vertical; color: var(--dark);
    font-family: inherit;
    transition: .2s;
}
.form-group textarea { min-height: 80px; }
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(20,93,158,.07);
}

.order-summary { border: 1px solid rgba(20,93,158,.12); background: rgba(20,93,158,.05); padding: 18px; margin: 20px 0; border-radius: 12px; }
.summary-item { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(20,93,158,.10); padding: 9px 0; font-size: 10px; color: var(--dark); }
.summary-item strong { color: var(--blue); }
.summary-item-total { border-bottom: 0; padding-top: 12px; font-size: 13px; font-weight: 900; }

.submit-order {
    width: 100%; height: 50px; border: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; font-size: 11px; font-weight: 900;
    border-radius: 10px; margin-top: 5px; transition: .25s;
}
.submit-order:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(20,93,158,.22); }

.success-box {
    width: min(400px, 100%);
    background: linear-gradient(145deg, #F8F9FA, #E5EAED);
    border-radius: 20px; padding: 40px 30px; text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.success-icon {
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: white; font-size: 28px;
    display: grid; place-items: center;
    box-shadow: 0 15px 30px rgba(20,93,158,.25);
}
.success-box h2 { font-size: 22px; color: var(--dark); margin-bottom: 12px; font-weight: 900; }
.success-box p { color: var(--gray-dark); font-size: 11px; line-height: 1.9; margin-bottom: 22px; }
.success-btn {
    width: 100%; height: 46px; border: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; font-size: 11px; font-weight: 900; border-radius: 10px;
}
.success-btn:hover { transform: translateY(-2px); }


/* =========================================================
   PRODUCT DETAILS MODAL + IMAGE GALLERY
   ========================================================= */

.product-details-overlay {
    position: fixed; inset: 0;
    background: rgba(38,49,58,.58);
    z-index: 5500;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: .25s;
    backdrop-filter: blur(8px);
}
.product-details-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.product-details-modal {
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #F8F9FA, #E8ECEF);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.product-details-gallery { order: 1; }
.product-details-content { order: 2; }

.product-details-close {
    position: absolute; top: 16px; left: 16px;
    width: 38px; height: 38px; border-radius: 50%;
    border: 0;
    background: rgba(248,249,250,.95);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    color: var(--dark);
    font-size: 22px; cursor: pointer;
    display: grid; place-items: center;
    z-index: 2;
}
.product-details-close:hover { background: var(--blue); color: white; }

.product-details-gallery {
    background: radial-gradient(circle at center, rgba(255,255,255,.9), rgba(214,220,224,.7));
    border-radius: 22px 0 0 22px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.details-nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 0;
    background: rgba(248,249,250,.95);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    color: var(--dark);
    font-size: 24px; font-weight: 900;
    cursor: pointer;
    display: grid; place-items: center;
    transition: .2s;
    z-index: 3;
}
.details-nav-arrow:hover { background: var(--blue); color: white; transform: translateY(-50%) scale(1.08); }
.details-nav-prev { right: 16px; }
.details-nav-next { left: 16px; }

.details-main-image { min-height: 260px; display: grid; place-items: center; border-radius: 16px; overflow: hidden; }
.details-main-image img { width: 100%; max-height: 260px; object-fit: contain; cursor: zoom-in; transition: .2s; }
.details-main-image img:hover { transform: scale(1.02); }

.details-image-caption { text-align: center; color: var(--gray-dark); font-size: 11px; font-weight: 700; }

.details-thumbnails { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.details-thumb {
    width: 52px; height: 52px; border-radius: 10px;
    border: 2px solid rgba(20,93,158,.15);
    background: white; padding: 4px; overflow: hidden; transition: .2s;
}
.details-thumb img { width: 100%; height: 100%; object-fit: contain; }
.details-thumb.active, .details-thumb:hover { border-color: var(--blue); }

.product-details-content { padding: 36px 30px; display: flex; flex-direction: column; }
.product-details-content .product-category { align-self: flex-start; }
.product-details-content h2 { font-size: 23px; font-weight: 900; color: var(--dark); margin: 12px 0 14px; line-height: 1.4; }
.details-price { color: var(--blue); font-size: 22px; font-weight: 900; margin-bottom: 16px; }
.details-description { color: var(--gray-dark); font-size: 12px; line-height: 1.9; flex: 1; }

.details-specs {
    background: rgba(20,93,158,.05);
    border: 1px solid rgba(20,93,158,.10);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.specs-title { font-size: 11px; font-weight: 900; color: var(--dark); margin-bottom: 10px; letter-spacing: .3px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(20,93,158,.08); font-size: 11px; }
.spec-row:last-child { border-bottom: 0; }
.spec-label { color: var(--gray-dark); font-weight: 700; }
.spec-value { color: var(--dark); font-weight: 900; text-align: left; }

.details-add-cart {
    width: 100%; height: 50px; border: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white; font-size: 12px; font-weight: 900;
    border-radius: 11px; transition: .25s;
    margin-top: 18px;
}
.details-add-cart:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(20,93,158,.22); }


/* =========================================================
   IMAGE ZOOM (LIGHTBOX)
   ========================================================= */

.zoom-overlay {
    position: fixed; inset: 0; z-index: 6000;
    background: rgba(20, 30, 38, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 30px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: .2s;
    cursor: zoom-out;
}
.zoom-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.zoom-overlay img {
    max-width: 92%; max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    cursor: default;
}
.zoom-close {
    position: absolute; top: 22px; left: 22px;
    width: 42px; height: 42px; border: 0; border-radius: 50%;
    background: white; color: var(--dark); font-size: 22px;
    display: grid; place-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.zoom-close:hover { background: var(--blue); color: white; }


/* =========================================================
   RESPONSIVE (عام)
   ========================================================= */

@media (max-width: 1100px) {
    nav { gap: 15px; }
    .header { gap: 15px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 950px) {
    nav { display: none; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .container { width: min(100% - 24px, 1200px); }
    .header { min-height: 70px; gap: 8px; }
    .company-ar { font-size: 16px; }
    .company-en { font-size: 6px; letter-spacing: 1.3px; }
    .language, .currency { padding: 7px; font-size: 8px; border-radius: 8px; }
    .cart-btn { width: 38px; height: 38px; border-radius: 9px; }

    section { padding: 60px 0; }
    .section-heading h2 { font-size: 32px; }

    .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .category { min-height: 195px; padding: 22px 12px; border-radius: 17px; }
    .category-icon { width: 63px; height: 63px; border-radius: 18px; }
    .category h3 { font-size: 15px; }

    .product-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .product { border-radius: 15px; }
    .product-image { height: 170px; }
    .product-shape { width: 75px; height: 115px; }
    .product-info { padding: 14px; }
    .product h3 { font-size: 12px; }
    .product p { font-size: 9px; min-height: 35px; }
    .product-category { font-size: 7px; padding: 4px 8px; }
    .price { font-size: 11px; }
    .add-cart { padding: 7px 8px; font-size: 7px; }

    .about-box { grid-template-columns: 1fr; gap: 35px; }
    .about h2 { font-size: 35px; }
    .about-card { padding: 40px 25px; }

    .offer-box, .contact-box { flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 20px; }
    .offer-box h2 { font-size: 29px; }
    .contact-buttons { width: 100%; flex-wrap: wrap; }
    .contact-buttons a { flex: 1; text-align: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .footer-company { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .order-modal { padding: 22px; border-radius: 17px; }
    .order-header h2 { font-size: 21px; }
    .summary-item { font-size: 9px; }
    .success-box { padding: 30px 22px; border-radius: 17px; }

    .product-details-modal { grid-template-columns: 1fr; border-radius: 17px; }
    .product-details-gallery { border-radius: 17px 17px 0 0; padding: 20px; }
    .details-main-image { min-height: 200px; }
    .details-main-image img { max-height: 200px; }
    .product-details-content { padding: 24px 20px; }
}

@media (max-width: 380px) {
    .category-grid, .product-grid { grid-template-columns: 1fr; }
    .header-tools { gap: 3px; }
    .language { display: none; }
    .company-ar { font-size: 15px; }
    .company-en { display: none; }
}
