@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");


:root {
    --primary-blue: #043af5;
    --light-green: #6bd425;
    --dark-navy: #040926;
    --danger-red: #b20d30;
    --white: #fefefe;
    --light-background: #f5f7ff;
    --text-gray: #646b7a;
    --border-color: #e4e8f5;
}


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


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Cairo", sans-serif;
    background-color: var(--light-background);
    color: var(--dark-navy);
    line-height: 1.8;
}


img {
    max-width: 100%;
}


a {
    color: inherit;
}


/* =========================
   شريط التنقل
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(4, 9, 38, 0.06);
}


.navbar {
    width: 92%;
    max-width: 1400px;
    min-height: 85px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


.site-logo {
    display: block;
    width: 145px;
    height: auto;
    object-fit: contain;
}


.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}


.main-nav a {
    position: relative;
    padding: 7px 2px;
    color: var(--dark-navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.3s;
}


.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 20px;
    transition: 0.3s;
}


/* عند تمرير الماوس */

.main-nav a:hover {
    color: var(--primary-blue);
}


.main-nav a:hover::after {
    width: 100%;
}


/* الرابط المفتوح حاليًا */

.main-nav a.active {
    color: var(--primary-blue);
    font-weight: 800;
}


.main-nav a.active::after {
    width: 100%;
    background-color: var(--light-green);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}


.nav-actions a {
    padding: 10px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}


.account-link {
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    background-color: transparent;
}


.account-link:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}


.cart-link {
    color: var(--dark-navy);
    border: 1px solid var(--light-green);
    background-color: var(--light-green);
}


.cart-link:hover {
    color: var(--white);
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}


/* =========================
   الواجهة الرئيسية
========================= */

.hero-section {
    min-height: 610px;
    padding: 90px 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(4, 58, 245, 0.2),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(107, 212, 37, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8faff,
            #eef2ff
        );
}


.hero-content {
    max-width: 850px;
}


.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.1);
    border: 1px solid rgba(4, 58, 245, 0.16);
    border-radius: 100px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


.hero-content h1 {
    color: var(--dark-navy);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 18px;
}


.hero-content p {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--text-gray);
    font-size: 18px;
}


.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}


.hero-buttons a {
    display: inline-block;
    min-width: 170px;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: 0.3s;
}


.primary-button {
    color: var(--white);
    background-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(4, 58, 245, 0.25);
}


.primary-button:hover {
    background-color: var(--dark-navy);
    transform: translateY(-3px);
}


.secondary-button {
    color: var(--dark-navy);
    background-color: var(--light-green);
    box-shadow: 0 10px 25px rgba(107, 212, 37, 0.2);
}


.secondary-button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}


/* =========================
   أقسام الصفحة
========================= */

.categories-section,
.products-section {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 85px 0;
}


.products-section {
    padding-top: 30px;
    padding-bottom: 100px;
}


.section-heading {
    margin-bottom: 35px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}


.section-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 700;
}


.section-heading h2 {
    color: var(--dark-navy);
    font-size: 34px;
    font-weight: 800;
}


.section-heading > a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}


.section-heading > a:hover {
    text-decoration: underline;
}


/* =========================
   بطاقات الأقسام
========================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.category-card {
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
    transition: 0.3s;
}


.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(4, 9, 38, 0.12);
}


.category-image {
    height: 210px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2ff;
}


.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.image-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 24px;
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(4, 58, 245, 0.25);
}


.category-content {
    padding: 24px;
}


.category-content h3 {
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 21px;
    font-weight: 800;
}


.category-content p {
    min-height: 58px;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 14px;
}


.category-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}


.category-content a:hover {
    text-decoration: underline;
}


/* =========================
   بطاقات المنتجات
========================= */

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


.product-card {
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
    transition: 0.3s;
}


.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(4, 9, 38, 0.12);
}


.product-image {
    position: relative;
    height: 245px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f8fc;
}


.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s;
}


.product-card:hover .product-image img {
    transform: scale(1.05);
}


.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 5px 12px;
    color: var(--white);
    background-color: var(--danger-red);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}


.product-content {
    padding: 22px;
}


.product-category {
    display: block;
    margin-bottom: 7px;
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
}


.product-content h3 {
    min-height: 58px;
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.6;
}


.product-brand {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 13px;
}


.product-price {
    min-height: 38px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.product-price strong {
    color: var(--primary-blue);
    font-size: 19px;
}


.product-price del {
    color: #9ba1ae;
    font-size: 14px;
}


.product-footer {
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}


.in-stock {
    color: #3b8f12;
    font-size: 13px;
    font-weight: 700;
}


.out-of-stock {
    color: var(--danger-red);
    font-size: 13px;
    font-weight: 700;
}


.product-footer a {
    padding: 8px 13px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}


.product-footer a:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
}


.empty-message {
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--text-gray);
    background-color: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: 15px;
    text-align: center;
}


/* =========================
   الأجهزة المتوسطة
========================= */

@media (max-width: 1100px) {
    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   الهواتف
========================= */

@media (max-width: 768px) {
    .navbar {
        width: 90%;
        padding: 15px 0;
        flex-direction: column;
        gap: 18px;
    }

    .site-logo {
        width: 120px;
    }

    .main-nav {
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 8px 0 14px;
    }

    .main-nav a {
        white-space: nowrap;
        font-size: 14px;
    }

    .nav-actions {
        width: 100%;
    }

    .nav-actions a {
        flex: 1;
        text-align: center;
    }

    .hero-section {
        min-height: 530px;
        padding: 70px 6%;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .categories-section,
    .products-section {
        width: 90%;
        padding-top: 65px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   صفحة تفاصيل المنتج
========================= */

.product-detail-page {
    min-height: calc(100vh - 85px);
    padding: 70px 4%;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(4, 58, 245, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(107, 212, 37, 0.12),
            transparent 28%
        ),
        var(--light-background);
}


.product-detail-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(4, 9, 38, 0.09);
}


.product-detail-image {
    min-height: 500px;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fc;
    border-radius: 20px;
}


.product-detail-image img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
}


.product-detail-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.back-home-link {
    margin-bottom: 22px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}


.back-home-link:hover {
    text-decoration: underline;
}


.detail-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}


.product-detail-content h1 {
    margin-bottom: 5px;
    color: var(--dark-navy);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.5;
}


.detail-english-name {
    margin-bottom: 22px;
    color: var(--text-gray);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}


.detail-info {
    margin-bottom: 7px;
    color: var(--text-gray);
    font-size: 15px;
}


.detail-info strong {
    color: var(--dark-navy);
}


.detail-price {
    width: 100%;
    margin: 25px 0 18px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}


.detail-price strong {
    color: var(--primary-blue);
    font-size: 30px;
    font-weight: 800;
}


.detail-price del {
    color: #9ba1ae;
    font-size: 17px;
}


.detail-stock {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


.detail-stock .in-stock,
.detail-stock .out-of-stock {
    padding: 7px 14px;
    border-radius: 100px;
}


.detail-stock .in-stock {
    color: #347d12;
    background-color: rgba(107, 212, 37, 0.16);
}


.detail-stock .out-of-stock {
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.1);
}


.detail-stock small {
    color: var(--text-gray);
    font-size: 13px;
}


.detail-description {
    width: 100%;
    margin-bottom: 30px;
}


.detail-description h2 {
    margin-bottom: 10px;
    color: var(--dark-navy);
    font-size: 21px;
    font-weight: 800;
}


.detail-description p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 2;
}


.detail-actions {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}


.quantity-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.quantity-box label {
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 700;
}


.quantity-box input {
    width: 90px;
    height: 48px;
    padding: 8px;
    color: var(--dark-navy);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    outline: none;
    text-align: center;
    font-family: "Cairo", sans-serif;
    font-size: 16px;
}


.quantity-box input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 58, 245, 0.1);
}


.add-cart-button {
    min-height: 48px;
    flex: 1;
    padding: 12px 25px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 16px;
    font-weight: 800;
    transition: 0.3s;
}


.add-cart-button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}


/* صفحة المنتج على الأجهزة المتوسطة */

@media (max-width: 1000px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 400px;
    }
}


/* صفحة المنتج على الهاتف */

@media (max-width: 768px) {
    .product-detail-page {
        padding: 35px 5%;
    }

    .product-detail-container {
        padding: 22px;
        gap: 30px;
        border-radius: 18px;
    }

    .product-detail-image {
        min-height: 310px;
        padding: 25px;
    }

    .product-detail-image img {
        max-height: 280px;
    }

    .product-detail-content h1 {
        font-size: 27px;
    }

    .detail-price strong {
        font-size: 24px;
    }

    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quantity-box,
    .quantity-box input,
    .add-cart-button {
        width: 100%;
    }
}

/* =========================
   رسائل الموقع
========================= */

.messages-container {
    position: fixed;
    top: 105px;
    left: 50%;
    z-index: 1500;
    width: min(92%, 600px);
    transform: translateX(-50%);
}


.site-message {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--dark-navy);
    background-color: var(--white);
    border: 1px solid rgba(107, 212, 37, 0.5);
    border-right: 5px solid var(--light-green);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.15);
    font-size: 14px;
    font-weight: 700;
}


.site-message a {
    flex-shrink: 0;
    padding: 7px 13px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
}


.site-message a:hover {
    background-color: var(--dark-navy);
}


@media (max-width: 768px) {
    .messages-container {
        top: 150px;
    }

    .site-message {
        align-items: stretch;
        flex-direction: column;
    }

    .site-message a {
        text-align: center;
    }
}

/* =========================
   صفحة سلة التسوق
========================= */

.cart-page {
    min-height: calc(100vh - 85px);
    padding: 65px 4%;
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(4, 58, 245, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(107, 212, 37, 0.11),
            transparent 28%
        ),
        var(--light-background);
}


.cart-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}


.cart-heading {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}


.cart-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


.cart-heading h1 {
    color: var(--dark-navy);
    font-size: 36px;
    font-weight: 800;
}


.cart-heading > a {
    padding: 10px 18px;
    color: var(--primary-blue);
    background-color: var(--white);
    border: 1px solid var(--primary-blue);
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}


.cart-heading > a:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}


.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 25px;
}


.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.cart-item {
    padding: 20px;
    display: grid;
    grid-template-columns:
        115px
        minmax(180px, 1fr)
        130px
        115px
        55px;
    align-items: center;
    gap: 18px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(4, 9, 38, 0.07);
    transition: 0.3s;
}


.cart-item:hover {
    border-color: rgba(4, 58, 245, 0.22);
    box-shadow: 0 15px 38px rgba(4, 9, 38, 0.11);
}


.cart-item-image {
    height: 105px;
    padding: 10px;
    background-color: #f5f7fc;
    border-radius: 13px;
}


.cart-item-image a {
    width: 100%;
    height: 100%;
    display: block;
}


.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.cart-item-info > span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
}


.cart-item-info h2 {
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}


.cart-item-info h2 a {
    color: var(--dark-navy);
    text-decoration: none;
}


.cart-item-info h2 a:hover {
    color: var(--primary-blue);
}


.cart-item-info p {
    margin-bottom: 7px;
    color: var(--text-gray);
    font-size: 12px;
}


.cart-unit-price {
    color: var(--primary-blue);
    font-size: 15px;
}


.cart-item-quantity form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.cart-item-quantity label {
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
}


.cart-item-quantity input {
    width: 100%;
    height: 40px;
    padding: 5px 8px;
    color: var(--dark-navy);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-family: "Cairo", sans-serif;
}


.cart-item-quantity input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 58, 245, 0.09);
}


.cart-item-quantity button {
    height: 35px;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.08);
    border: 1px solid rgba(4, 58, 245, 0.16);
    border-radius: 7px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}


.cart-item-quantity button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}


.cart-item-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.cart-item-total span {
    color: var(--text-gray);
    font-size: 12px;
}


.cart-item-total strong {
    color: var(--dark-navy);
    font-size: 16px;
}


.cart-item-remove button {
    width: 45px;
    height: 40px;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.07);
    border: 1px solid rgba(178, 13, 48, 0.15);
    border-radius: 8px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}


.cart-item-remove button:hover {
    color: var(--white);
    background-color: var(--danger-red);
}


/* ملخص الطلب */

.cart-summary {
    position: sticky;
    top: 110px;
    padding: 25px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.09);
}


.cart-summary h2 {
    margin-bottom: 22px;
    color: var(--dark-navy);
    font-size: 21px;
    font-weight: 800;
}


.summary-row {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}


.summary-row strong {
    color: var(--dark-navy);
    font-size: 14px;
}


.summary-total {
    margin-top: 12px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.summary-total span {
    color: var(--dark-navy);
    font-size: 17px;
    font-weight: 800;
}


.summary-total strong {
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
}


.checkout-button {
    width: 100%;
    min-height: 50px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 16px;
    font-weight: 800;
    transition: 0.3s;
}


.checkout-button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}


/* السلة الفارغة */

.empty-cart {
    padding: 70px 25px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.08);
    text-align: center;
}


.empty-cart-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 24px;
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(4, 58, 245, 0.25);
}


.empty-cart h2 {
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 25px;
    font-weight: 800;
}


.empty-cart p {
    margin-bottom: 24px;
    color: var(--text-gray);
    font-size: 15px;
}


.empty-cart a {
    display: inline-block;
    padding: 11px 24px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}


.empty-cart a:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
}


/* السلة على الأجهزة المتوسطة */

@media (max-width: 1050px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns:
            105px
            minmax(160px, 1fr)
            120px
            105px
            50px;
    }
}


/* السلة على الهاتف */

@media (max-width: 768px) {
    .cart-page {
        padding: 35px 5%;
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-heading h1 {
        font-size: 29px;
    }

    .cart-heading > a {
        width: 100%;
        text-align: center;
    }

    .cart-item {
        padding: 15px;
        grid-template-columns: 85px 1fr;
        align-items: start;
        gap: 14px;
    }

    .cart-item-image {
        height: 85px;
    }

    .cart-item-info h2 {
        font-size: 15px;
    }

    .cart-item-quantity {
        grid-column: 1 / -1;
    }

    .cart-item-quantity form {
        display: grid;
        grid-template-columns: 1fr 100px;
        align-items: end;
    }

    .cart-item-quantity label {
        grid-column: 1 / -1;
    }

    .cart-item-total {
        grid-column: 1 / 2;
    }

    .cart-item-remove {
        grid-column: 2 / 3;
        justify-self: end;
    }

    .cart-item-remove button {
        width: 70px;
    }

    .cart-summary {
        padding: 20px;
    }

    .empty-cart {
        padding: 50px 20px;
    }
}


/* =========================
   بوكس تأكيد الحذف
========================= */

body.modal-open {
    overflow: hidden;
}


.delete-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}


.delete-modal.is-open {
    display: flex;
}


.delete-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(4, 9, 38, 0.72);
    backdrop-filter: blur(5px);
}


.delete-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 35px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(4, 9, 38, 0.3);
    text-align: center;
    animation: deleteModalOpen 0.22s ease;
}


@keyframes deleteModalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.delete-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--danger-red);
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(178, 13, 48, 0.25);
}


.delete-modal-card h2 {
    margin-bottom: 9px;
    color: var(--dark-navy);
    font-size: 25px;
    font-weight: 800;
}


.delete-modal-card p {
    margin-bottom: 27px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.9;
}


.delete-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


.delete-modal-actions form {
    width: 100%;
}


.cancel-delete-button,
.confirm-delete-button {
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}


.cancel-delete-button {
    color: var(--dark-navy);
    background-color: var(--white);
    border: 1px solid var(--border-color);
}


.cancel-delete-button:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.06);
}


.confirm-delete-button {
    color: var(--white);
    background-color: var(--danger-red);
    border: 1px solid var(--danger-red);
}


.confirm-delete-button:hover {
    background-color: #900a27;
    border-color: #900a27;
    transform: translateY(-2px);
}


.delete-open-button {
    width: 70px;
    min-height: 40px;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.07);
    border: 1px solid rgba(178, 13, 48, 0.17);
    border-radius: 8px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}


.delete-open-button:hover {
    color: var(--white);
    background-color: var(--danger-red);
}


@media (max-width: 500px) {
    .delete-modal-card {
        padding: 27px 20px;
    }

    .delete-modal-actions {
        grid-template-columns: 1fr;
    }

    .cancel-delete-button {
        order: 2;
    }
}

/* =========================
   تحسين الهيدر والشعار
========================= */

.site-logo {
    width: 125px;
}


.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    cursor: pointer;
}


.mobile-menu-button span {
    width: 100%;
    height: 2px;
    display: block;
    margin: 5px 0;
    background-color: var(--dark-navy);
    border-radius: 10px;
    transition: 0.3s;
}


.mobile-menu-button:hover {
    border-color: var(--primary-blue);
}


.mobile-menu-button:hover span {
    background-color: var(--primary-blue);
}


/* حركة زر القائمة عند فتحه */

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}


.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* الهيدر على الهاتف */

@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .navbar {
        position: relative;
        width: 92%;
        min-height: 64px;
        padding: 7px 0;
        display: grid;
        grid-template-columns: 42px 1fr auto;
        grid-template-areas:
            "menu actions brand";
        align-items: center;
        gap: 9px;
    }

    .brand {
        grid-area: brand;
    }

    .site-logo {
        width: 88px;
    }

    .mobile-menu-button {
        grid-area: menu;
        display: block;
    }

    .nav-actions {
        grid-area: actions;
        width: auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 5px;
    }

    .nav-actions a {
        flex: initial;
        padding: 7px 9px;
        border-radius: 7px;
        font-size: 11px;
        white-space: nowrap;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        z-index: 1200;
        width: 100%;
        max-height: calc(100vh - 90px);
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow-y: auto;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 18px 45px rgba(4, 9, 38, 0.18);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13px;
        white-space: normal;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--primary-blue);
        background-color: rgba(4, 58, 245, 0.07);
    }

    .main-nav a::after {
        display: none;
    }

    .messages-container {
        top: 78px;
    }
}


/* الهواتف الصغيرة جدًا */

@media (max-width: 390px) {
    .site-logo {
        width: 78px;
    }

    .nav-actions a {
        padding: 6px 7px;
        font-size: 10px;
    }
}

/* =========================
   صفحة إتمام الطلب
========================= */

.checkout-page {
    min-height: calc(100vh - 85px);
    padding: 60px 4% 90px;
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(4, 58, 245, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(107, 212, 37, 0.11),
            transparent 28%
        ),
        var(--light-background);
}


.checkout-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}


.checkout-heading {
    margin-bottom: 32px;
}


.checkout-heading > span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


.checkout-heading h1 {
    margin-bottom: 7px;
    color: var(--dark-navy);
    font-size: 38px;
    font-weight: 800;
}


.checkout-heading p {
    color: var(--text-gray);
    font-size: 15px;
}


.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 25px;
}


.checkout-form-card,
.checkout-summary-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(4, 9, 38, 0.08);
}


.checkout-form-card {
    padding: 30px;
}


.checkout-summary-card {
    position: sticky;
    top: 105px;
    padding: 25px;
}


.checkout-card-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}


.checkout-step {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(4, 58, 245, 0.22);
}


.checkout-card-heading h2 {
    color: var(--dark-navy);
    font-size: 20px;
    font-weight: 800;
}


.checkout-card-heading p {
    color: var(--text-gray);
    font-size: 13px;
}


.checkout-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
}


.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.checkout-field.full-width {
    grid-column: 1 / -1;
}


.checkout-field label {
    color: var(--dark-navy);
    font-size: 14px;
    font-weight: 700;
}


.checkout-field label span {
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 500;
}


.checkout-input {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: var(--dark-navy);
    background-color: #fbfcff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    transition: 0.25s;
}


.checkout-input::placeholder {
    color: #a0a6b3;
}


.checkout-input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(4, 58, 245, 0.09);
}


.checkout-textarea {
    min-height: 105px;
    resize: vertical;
}


.field-error {
    color: var(--danger-red);
    font-size: 12px;
    font-weight: 600;
}


.checkout-form-errors {
    margin-bottom: 20px;
    padding: 12px 15px;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.07);
    border: 1px solid rgba(178, 13, 48, 0.15);
    border-radius: 9px;
    font-size: 13px;
}


.checkout-form-errors ul {
    margin: 0;
    padding-right: 18px;
}


.checkout-form-footer {
    margin-top: 28px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border-color);
}


.checkout-form-footer a {
    padding: 11px 20px;
    color: var(--primary-blue);
    background-color: var(--white);
    border: 1px solid var(--primary-blue);
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}


.checkout-form-footer a:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}


.checkout-form-footer button {
    min-width: 180px;
    min-height: 48px;
    padding: 11px 24px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 800;
    transition: 0.3s;
}


.checkout-form-footer button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}


/* منتجات ملخص الطلب */

.checkout-products {
    max-height: 400px;
    padding-left: 4px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}


.checkout-product {
    padding-bottom: 15px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}


.checkout-product-image {
    width: 68px;
    height: 68px;
    padding: 7px;
    background-color: #f5f7fc;
    border-radius: 10px;
}


.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.checkout-product-info h3 {
    margin-bottom: 3px;
    color: var(--dark-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}


.checkout-product-info p {
    color: var(--text-gray);
    font-size: 12px;
}


.checkout-product-info span {
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
}


.checkout-product > strong {
    color: var(--dark-navy);
    font-size: 13px;
    white-space: nowrap;
}


.checkout-summary-details {
    margin-top: 20px;
}


.checkout-summary-details > div {
    padding: 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}


.checkout-summary-details strong {
    color: var(--dark-navy);
}


.checkout-summary-total {
    padding: 19px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.checkout-summary-total span {
    color: var(--dark-navy);
    font-size: 17px;
    font-weight: 800;
}


.checkout-summary-total strong {
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
}


.checkout-note {
    padding: 13px;
    color: var(--text-gray);
    background-color: rgba(4, 58, 245, 0.06);
    border-right: 4px solid var(--primary-blue);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.8;
}


/* الأجهزة المتوسطة */

@media (max-width: 1050px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-card {
        position: static;
    }
}


/* الهاتف */

@media (max-width: 768px) {
    .checkout-page {
        padding: 35px 5% 60px;
    }

    .checkout-heading h1 {
        font-size: 29px;
    }

    .checkout-form-card,
    .checkout-summary-card {
        padding: 20px;
        border-radius: 16px;
    }

    .checkout-fields-grid {
        grid-template-columns: 1fr;
    }

    .checkout-field.full-width {
        grid-column: auto;
    }

    .checkout-form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .checkout-form-footer a,
    .checkout-form-footer button {
        width: 100%;
        text-align: center;
    }

    .checkout-product {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .checkout-product-image {
        width: 58px;
        height: 58px;
    }

    .checkout-product > strong {
        grid-column: 2 / 3;
    }
}
a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* =========================
   صفحة نجاح الطلب
========================= */

.order-success-page {
    min-height: calc(100vh - 85px);
    padding: 60px 4% 90px;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(4, 58, 245, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(107, 212, 37, 0.13),
            transparent 28%
        ),
        var(--light-background);
}


.order-success-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


.success-card {
    padding: 45px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(4, 9, 38, 0.1);
    text-align: center;
}


.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--light-green);
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 45px;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(107, 212, 37, 0.3);
}


.success-label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


.success-card > h1 {
    margin-bottom: 10px;
    color: var(--dark-navy);
    font-size: 36px;
    font-weight: 800;
}


.success-description {
    max-width: 650px;
    margin: 0 auto 27px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 2;
}


.order-number-box {
    width: min(100%, 320px);
    margin: 0 auto 30px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: rgba(4, 58, 245, 0.07);
    border: 1px solid rgba(4, 58, 245, 0.14);
    border-radius: 12px;
}


.order-number-box span {
    color: var(--text-gray);
    font-size: 14px;
}


.order-number-box strong {
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 19px;
}


.success-order-info {
    margin-bottom: 30px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background-color: #f8f9fd;
    border-radius: 15px;
    text-align: right;
}


.success-order-info > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.success-order-info span {
    color: var(--text-gray);
    font-size: 12px;
}


.success-order-info strong {
    color: var(--dark-navy);
    font-size: 14px;
}


.success-products {
    margin-top: 15px;
    text-align: right;
}


.success-products > h2,
.success-address > h2 {
    margin-bottom: 16px;
    color: var(--dark-navy);
    font-size: 20px;
    font-weight: 800;
}


.success-product {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
}


.success-product-image {
    width: 75px;
    height: 75px;
    padding: 8px;
    background-color: #f5f7fc;
    border-radius: 11px;
}


.success-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.success-product-info h3 {
    margin-bottom: 3px;
    color: var(--dark-navy);
    font-size: 15px;
    font-weight: 800;
}


.success-product-info p {
    color: var(--text-gray);
    font-size: 12px;
}


.success-product-info span {
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
}


.success-product > strong {
    color: var(--dark-navy);
    font-size: 14px;
    white-space: nowrap;
}


.success-total {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}


.success-total span {
    color: var(--dark-navy);
    font-size: 17px;
    font-weight: 800;
}


.success-total strong {
    color: var(--primary-blue);
    font-size: 23px;
    font-weight: 800;
}


.success-address {
    padding: 25px 0;
    text-align: right;
}


.success-address p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
}


.success-notes {
    margin-top: 14px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text-gray);
    background-color: rgba(4, 58, 245, 0.06);
    border-right: 4px solid var(--primary-blue);
    border-radius: 9px;
    font-size: 13px;
}


.success-notes strong {
    color: var(--dark-navy);
}


.success-actions {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-top: 1px solid var(--border-color);
}


.success-actions a {
    min-width: 180px;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}


.success-home-button {
    color: var(--white);
    background-color: var(--primary-blue);
}


.success-home-button:hover {
    background-color: var(--dark-navy);
}


.success-products-button {
    color: var(--dark-navy);
    background-color: var(--light-green);
}


.success-products-button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}


@media (max-width: 768px) {
    .order-success-page {
        padding: 35px 5% 60px;
    }

    .success-card {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .success-icon {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }

    .success-card > h1 {
        font-size: 27px;
    }

    .success-order-info {
        grid-template-columns: 1fr;
    }

    .success-product {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .success-product-image {
        width: 60px;
        height: 60px;
    }

    .success-product > strong {
        grid-column: 2 / 3;
    }

    .success-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .success-actions a {
        width: 100%;
        text-align: center;
    }
}

/* اختفاء الإشعارات تلقائيًا */

.site-message {
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


.site-message.is-hiding {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.site-message {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.site-message.is-hiding {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}

/* =========================
   البحث عن المنتجات
========================= */

.products-search-form {
    margin-bottom: 32px;
}


.products-search-box {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(4, 9, 38, 0.06);
}


.products-search-box input {
    min-width: 0;
    min-height: 48px;
    flex: 1;
    padding: 10px 15px;
    color: var(--dark-navy);
    background-color: #f8f9fd;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: none;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    transition: 0.3s;
}


.products-search-box input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(4, 58, 245, 0.08);
}


.products-search-box button,
.clear-search-button {
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 9px;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}


.products-search-box button {
    color: var(--white);
    background-color: var(--primary-blue);
    border: none;
    cursor: pointer;
}


.products-search-box button:hover {
    background-color: var(--dark-navy);
}


.clear-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.07);
    border: 1px solid rgba(178, 13, 48, 0.15);
    text-decoration: none;
}


.clear-search-button:hover {
    color: var(--white);
    background-color: var(--danger-red);
}


.search-results-text {
    margin-top: 12px;
    color: var(--text-gray);
    font-size: 14px;
}


.search-results-text strong {
    color: var(--primary-blue);
}


@media (max-width: 600px) {
    .products-search-box {
        align-items: stretch;
        flex-direction: column;
    }

    .products-search-box input,
    .products-search-box button,
    .clear-search-button {
        width: 100%;
    }
}

/* =========================
   البحث داخل الهيدر
========================= */

.header-search-button {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.07);
    border: 1px solid rgba(4, 58, 245, 0.16);
    border-radius: 9px;
    cursor: pointer;
    transition: 0.3s;
}


.header-search-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}


.header-search-button:hover,
.header-search-button.is-open {
    color: var(--white);
    background-color: var(--primary-blue);
}


.header-search-panel {
    position: fixed;
    top: 85px;
    right: 0;
    left: 0;
    z-index: 1300;
    padding: 14px 4%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(4, 9, 38, 0.13);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


.header-search-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.header-search-form {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}


.header-search-input {
    min-width: 0;
    min-height: 48px;
    flex: 1;
    padding: 10px 16px;
    color: var(--dark-navy);
    background-color: #f7f8fc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
}


.header-search-input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(4, 58, 245, 0.08);
}


.header-search-form button {
    min-width: 100px;
    min-height: 48px;
    padding: 10px 20px;
    color: var(--white);
    background-color: var(--primary-blue);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}


.header-search-form button:hover {
    background-color: var(--dark-navy);
}


@media (max-width: 768px) {
    .header-search-button {
        width: 36px;
        height: 36px;
        border-radius: 7px;
    }

    .header-search-button svg {
        width: 17px;
        height: 17px;
    }

    .header-search-panel {
        top: 64px;
        padding: 11px 4%;
    }

    .header-search-form {
        align-items: stretch;
    }

    .header-search-input {
        min-height: 44px;
        font-size: 12px;
    }

    .header-search-form button {
        min-width: 70px;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* =========================
   صفحات الحسابات
========================= */

.account-page {
    min-height: calc(100vh - 85px);
    padding: 60px 4% 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(4, 58, 245, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(107, 212, 37, 0.14),
            transparent 28%
        ),
        var(--light-background);
}


.account-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}


.account-card {
    padding: 40px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(4, 9, 38, 0.1);
}


.login-card {
    max-width: 570px;
    margin: 0 auto;
}


.account-heading {
    margin-bottom: 30px;
    text-align: center;
}


.account-heading > span {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


.account-heading h1 {
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 34px;
    font-weight: 800;
}


.account-heading p {
    color: var(--text-gray);
    font-size: 14px;
}


.account-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}


.account-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.account-field.full-width {
    grid-column: 1 / -1;
}


.account-field label {
    color: var(--dark-navy);
    font-size: 14px;
    font-weight: 700;
}


.account-input {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: var(--dark-navy);
    background-color: #fbfcff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    transition: 0.25s;
}


.account-input::placeholder {
    color: #a0a6b3;
}


.account-input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(4, 58, 245, 0.09);
}


.account-form-errors {
    margin-bottom: 20px;
    padding: 13px 15px;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.07);
    border: 1px solid rgba(178, 13, 48, 0.16);
    border-radius: 10px;
    font-size: 13px;
}


.account-form-errors p {
    margin: 0;
}


.account-submit-button {
    width: 100%;
    min-height: 51px;
    margin-top: 25px;
    padding: 12px 24px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 16px;
    font-weight: 800;
    transition: 0.3s;
}


.account-submit-button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(4, 58, 245, 0.2);
}


.account-switch {
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}


.account-switch span {
    color: var(--text-gray);
}


.account-switch a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 800;
}


.account-switch a:hover {
    text-decoration: underline;
}


/* صفحات الحساب على الهاتف */

@media (max-width: 768px) {
    .account-page {
        padding: 35px 5% 60px;
        align-items: flex-start;
    }

    .account-card {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .account-heading h1 {
        font-size: 27px;
    }

    .account-fields-grid {
        grid-template-columns: 1fr;
    }

    .account-field.full-width {
        grid-column: auto;
    }
}

a.account-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
/* =========================
   أزرار صفحة الحساب
========================= */

.account-page-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


.account-page-actions .account-submit-button {
    margin-top: 0;
}


.account-logout-form {
    width: 100%;
}


.account-logout-button {
    width: 100%;
    min-height: 51px;
    padding: 12px 24px;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.07);
    border: 1px solid rgba(178, 13, 48, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 16px;
    font-weight: 800;
    transition: 0.3s;
}


.account-logout-button:hover {
    color: var(--white);
    background-color: var(--danger-red);
    transform: translateY(-2px);
}


@media (max-width: 600px) {
    .account-page-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================
   لوحة حساب المستخدم
========================= */

.user-dashboard-page {
    min-height: calc(100vh - 85px);
    padding: 55px 4% 90px;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(4, 58, 245, 0.11),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(107, 212, 37, 0.11),
            transparent 27%
        ),
        var(--light-background);
}


.user-dashboard-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* رأس صفحة الحساب */

.dashboard-welcome {
    margin-bottom: 27px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background:
        linear-gradient(
            135deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(4, 9, 38, 0.18);
}


.dashboard-welcome > div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


.dashboard-welcome h1 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 31px;
    font-weight: 800;
}


.dashboard-welcome p {
    color: rgba(254, 254, 254, 0.72);
    font-size: 14px;
}


.dashboard-logout-form {
    flex-shrink: 0;
}


.dashboard-logout-form button {
    min-height: 45px;
    padding: 10px 21px;
    color: var(--white);
    background-color: rgba(178, 13, 48, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}


.dashboard-logout-form button:hover {
    background-color: var(--danger-red);
    transform: translateY(-2px);
}


/* بطاقات الإحصائيات */

.dashboard-stats {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(4, 9, 38, 0.07);
}


.dashboard-stat-card::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 90px;
    height: 90px;
    background-color: rgba(4, 58, 245, 0.07);
    border-radius: 50%;
}


.dashboard-stat-card > span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 700;
}


.dashboard-stat-card > strong {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 29px;
    font-weight: 800;
}


.dashboard-stat-card > small {
    color: var(--text-gray);
    font-size: 12px;
}


/* توزيع محتوى لوحة الحساب */

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
}


.dashboard-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.dashboard-card {
    padding: 25px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 19px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
}


.dashboard-card-heading {
    margin-bottom: 22px;
    padding-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}


.dashboard-card-heading span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.dashboard-card-heading h2 {
    color: var(--dark-navy);
    font-size: 21px;
    font-weight: 800;
}


.dashboard-card-heading > a {
    padding: 8px 14px;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.07);
    border: 1px solid rgba(4, 58, 245, 0.14);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.3s;
}


.dashboard-card-heading > a:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}


/* معلومات الحساب */

.profile-information-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}


.profile-information-grid > div {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #f8f9fd;
    border: 1px solid #eef0f7;
    border-radius: 11px;
}


.profile-information-grid span {
    color: var(--text-gray);
    font-size: 12px;
}


.profile-information-grid strong {
    color: var(--dark-navy);
    font-size: 14px;
    word-break: break-word;
}


/* طلبات المستخدم */

.account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.account-order-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: #fbfcff;
}


.account-order-header {
    padding: 15px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(90px, 1fr))
        auto;
    align-items: center;
    gap: 12px;
    background-color: #f5f7fc;
    border-bottom: 1px solid var(--border-color);
}


.account-order-header > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.account-order-header > div > span {
    color: var(--text-gray);
    font-size: 11px;
}


.account-order-header > div > strong {
    color: var(--dark-navy);
    font-size: 13px;
}


.account-order-header .order-price {
    color: var(--primary-blue);
}


.account-order-status {
    padding: 6px 11px;
    border-radius: 100px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}


.status-pending {
    color: #9b6b00;
    background-color: rgba(255, 193, 7, 0.14);
}


.status-confirmed {
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.1);
}


.status-processing {
    color: #805800;
    background-color: rgba(255, 167, 38, 0.15);
}


.status-shipped {
    color: #176b87;
    background-color: rgba(23, 162, 184, 0.13);
}


.status-delivered {
    color: #347d12;
    background-color: rgba(107, 212, 37, 0.16);
}


.status-cancelled {
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.09);
}


.account-order-products {
    padding: 4px 15px;
}


.account-order-product {
    padding: 13px 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}


.account-order-product:last-child {
    border-bottom: none;
}


.account-order-product-image {
    width: 58px;
    height: 58px;
    padding: 6px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 9px;
}


.account-order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.account-order-product h3 {
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 800;
}


.account-order-product p {
    color: var(--text-gray);
    font-size: 11px;
}


.account-order-product > strong {
    color: var(--primary-blue);
    font-size: 13px;
    white-space: nowrap;
}


/* سجل العمليات */

.activities-card {
    position: sticky;
    top: 105px;
}


.activities-list {
    max-height: 780px;
    padding-left: 3px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}


.activity-item {
    position: relative;
    padding: 13px 0;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    border-bottom: 1px solid var(--border-color);
}


.activity-item:last-child {
    border-bottom: none;
}


.activity-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
}


.activity-login {
    background-color: var(--primary-blue);
}


.activity-logout {
    background-color: var(--danger-red);
}


.activity-cart_add {
    color: var(--dark-navy);
    background-color: var(--light-green);
    font-size: 21px;
}


.activity-cart_update {
    background-color: #176b87;
    font-size: 18px;
}


.activity-cart_remove {
    background-color: var(--danger-red);
    font-size: 21px;
}


.activity-order_created {
    background-color: var(--dark-navy);
}


.activity-content h3 {
    margin-bottom: 2px;
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 800;
}


.activity-content p {
    margin-bottom: 4px;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.7;
}


.activity-content time {
    color: #969daa;
    font-size: 10px;
}


/* حالات عدم وجود بيانات */

.dashboard-empty-state {
    padding: 38px 20px;
    background-color: #f8f9fd;
    border: 1px dashed var(--border-color);
    border-radius: 13px;
    text-align: center;
}


.dashboard-empty-state h3 {
    margin-bottom: 5px;
    color: var(--dark-navy);
    font-size: 17px;
    font-weight: 800;
}


.dashboard-empty-state p {
    margin-bottom: 17px;
    color: var(--text-gray);
    font-size: 13px;
}


.dashboard-empty-state > a {
    display: inline-block;
    padding: 9px 17px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}


.dashboard-empty-state.small {
    padding: 25px 15px;
}


.dashboard-empty-state.small p {
    margin-bottom: 0;
}


/* الأجهزة المتوسطة */

@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .activities-card {
        position: static;
    }

    .activities-list {
        max-height: none;
    }
}


/* الهاتف */

@media (max-width: 768px) {
    .user-dashboard-page {
        padding: 32px 5% 60px;
    }

    .dashboard-welcome {
        padding: 23px 20px;
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-welcome h1 {
        font-size: 25px;
    }

    .dashboard-logout-form button {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 18px;
        border-radius: 15px;
    }

    .profile-information-grid {
        grid-template-columns: 1fr;
    }

    .account-order-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-order-status {
        grid-column: 1 / -1;
    }

    .account-order-product {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .account-order-product-image {
        width: 52px;
        height: 52px;
    }

    .account-order-product > strong {
        grid-column: 2 / 3;
    }

    .dashboard-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-card-heading > a {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   صفحة تفاصيل الطلب
========================= */

.order-detail-page {
    min-height: calc(100vh - 85px);
    padding: 55px 4% 90px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(4, 58, 245, 0.1),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(107, 212, 37, 0.09),
            transparent 28%
        ),
        var(--light-background);
}


.order-detail-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* رأس الصفحة */

.order-detail-topbar {
    margin-bottom: 25px;
    padding: 27px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 21px;
    box-shadow: 0 18px 45px rgba(4, 9, 38, 0.17);
}


.order-detail-topbar > div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}


.order-detail-topbar h1 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 29px;
    font-weight: 800;
}


.order-detail-topbar p {
    color: rgba(254, 254, 254, 0.7);
    font-size: 13px;
}


.order-detail-topbar > a {
    flex-shrink: 0;
    padding: 11px 19px;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}


.order-detail-topbar > a:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
    transform: translateY(-2px);
}


/* توزيع الصفحة */

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
}


.order-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.order-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* البطاقات */

.order-detail-card {
    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
}


.order-detail-card-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}


.order-detail-card-heading > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.order-detail-card-heading h2 {
    color: var(--dark-navy);
    font-size: 20px;
    font-weight: 800;
}


/* ملخص الطلب */

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}


.order-summary-grid > div {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #f7f9fd;
    border: 1px solid #edf0f7;
    border-radius: 11px;
}


.order-summary-grid span {
    color: var(--text-gray);
    font-size: 11px;
}


.order-summary-grid strong {
    color: var(--dark-navy);
    font-size: 14px;
}


.order-summary-grid .order-detail-total {
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}


/* منتجات الطلب */

.order-detail-products {
    display: flex;
    flex-direction: column;
}


.order-detail-product {
    padding: 16px 0;
    display: grid;
    grid-template-columns:
        78px
        minmax(0, 1fr)
        minmax(100px, auto)
        minmax(100px, auto);
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}


.order-detail-product:first-child {
    padding-top: 0;
}


.order-detail-product:last-child {
    padding-bottom: 0;
    border-bottom: none;
}


.order-detail-product-image {
    width: 78px;
    height: 78px;
    padding: 7px;
    overflow: hidden;
    background-color: #f8f9fd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}


.order-detail-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.08);
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 800;
}


.order-detail-product-info h3 {
    margin-bottom: 2px;
    color: var(--dark-navy);
    font-size: 15px;
    font-weight: 800;
}


.order-detail-product-info > p {
    margin-bottom: 7px;
    color: var(--text-gray);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
}


.order-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


.order-product-meta span {
    padding: 4px 8px;
    color: var(--text-gray);
    background-color: #f1f3f8;
    border-radius: 6px;
    font-size: 10px;
}


.order-detail-product-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}


.order-detail-product-price span {
    color: var(--text-gray);
    font-size: 10px;
}


.order-detail-product-price strong {
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    white-space: nowrap;
}


/* بيانات العميل */

.order-customer-details {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.order-customer-details > div {
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background-color: #f8f9fd;
    border: 1px solid #eef0f6;
    border-radius: 9px;
}


.order-customer-details span {
    color: var(--text-gray);
    font-size: 10px;
}


.order-customer-details strong {
    color: var(--dark-navy);
    font-size: 13px;
    word-break: break-word;
}


/* العنوان والملاحظات */

.order-address-box {
    padding: 15px;
    color: var(--dark-navy);
    background-color: #f8f9fd;
    border: 1px solid #eef0f6;
    border-radius: 10px;
}


.order-address-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-line;
}


/* الأجهزة المتوسطة */

@media (max-width: 1100px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .order-detail-sidebar .order-detail-card:last-child {
        grid-column: 1 / -1;
    }
}


/* الهاتف */

@media (max-width: 768px) {
    .order-detail-page {
        padding: 32px 5% 60px;
    }

    .order-detail-topbar {
        padding: 22px 19px;
        align-items: stretch;
        flex-direction: column;
    }

    .order-detail-topbar h1 {
        font-size: 24px;
    }

    .order-detail-topbar > a {
        width: 100%;
        text-align: center;
    }

    .order-detail-card {
        padding: 18px;
        border-radius: 15px;
    }

    .order-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-detail-product {
        grid-template-columns: 65px minmax(0, 1fr);
        gap: 12px;
    }

    .order-detail-product-image {
        width: 65px;
        height: 65px;
    }

    .order-detail-product-price {
        padding-top: 8px;
        align-items: flex-start;
        text-align: right;
        border-top: 1px dashed var(--border-color);
    }

    .order-detail-product-price:nth-last-child(2) {
        grid-column: 1 / 2;
    }

    .order-detail-product-price:last-child {
        grid-column: 2 / 3;
    }

    .order-detail-sidebar {
        display: flex;
    }
}


/* الهواتف الصغيرة */

@media (max-width: 480px) {
    .order-summary-grid {
        grid-template-columns: 1fr;
    }

    .order-detail-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-detail-product {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .order-detail-product-image {
        width: 58px;
        height: 58px;
    }
}

/* زر تفاصيل الطلب داخل صفحة الحساب */

.account-order-details-link {
    padding: 7px 12px;
    color: var(--white);
    background-color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.3s;
}

.account-order-details-link:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-color: var(--light-green);
    transform: translateY(-2px);
}


/* ترتيب رأس الطلب بعد إضافة الزر */

.account-order-header {
    grid-template-columns:
        repeat(4, minmax(85px, 1fr))
        auto
        auto;
}


/* الأجهزة المتوسطة */

@media (max-width: 1050px) {
    .account-order-header {
        grid-template-columns: repeat(3, 1fr);
    }

    .account-order-status,
    .account-order-details-link {
        width: 100%;
    }
}


/* الهاتف */

@media (max-width: 768px) {
    .account-order-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-order-status {
        grid-column: 1 / 2;
    }

    .account-order-details-link {
        grid-column: 2 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* الهواتف الصغيرة */

@media (max-width: 480px) {
    .account-order-header {
        grid-template-columns: 1fr;
    }

    .account-order-status,
    .account-order-details-link {
        grid-column: 1 / -1;
    }
}

/* =========================
   تتبع حالة الطلب
========================= */

.order-tracking-card {
    margin-bottom: 24px;
    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
}


.order-tracking-heading {
    margin-bottom: 25px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}


.order-tracking-heading > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.order-tracking-heading h2 {
    color: var(--dark-navy);
    font-size: 20px;
    font-weight: 800;
}


/* مراحل الطلب */

.order-tracking-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}


.order-tracking-steps::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 9%;
    left: 9%;
    height: 3px;
    background-color: #e4e7ef;
    border-radius: 100px;
    z-index: 0;
}


.order-tracking-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}


.tracking-step-marker {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b93a5;
    background-color: #f2f4f8;
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px #dfe3ec,
        0 6px 16px rgba(4, 9, 38, 0.08);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}


.tracking-step-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
}


.tracking-step-content strong {
    color: #737b8e;
    font-size: 12px;
    font-weight: 800;
}


.tracking-step-content span {
    color: #a0a6b3;
    font-size: 10px;
}


/* المرحلة المكتملة */

.order-tracking-step.is-completed .tracking-step-marker {
    color: var(--dark-navy);
    background-color: var(--light-green);
    box-shadow:
        0 0 0 2px rgba(107, 212, 37, 0.45),
        0 7px 18px rgba(107, 212, 37, 0.2);
}


.order-tracking-step.is-completed .tracking-step-content strong {
    color: var(--dark-navy);
}


.order-tracking-step.is-completed .tracking-step-content span {
    color: #4d8f25;
}


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

.order-tracking-step.is-current .tracking-step-marker {
    color: var(--white);
    background-color: var(--primary-blue);
    box-shadow:
        0 0 0 5px rgba(4, 58, 245, 0.13),
        0 8px 22px rgba(4, 58, 245, 0.25);
    animation: trackingPulse 1.8s infinite;
}


.order-tracking-step.is-current .tracking-step-content strong {
    color: var(--primary-blue);
}


.order-tracking-step.is-current .tracking-step-content span {
    color: var(--primary-blue);
    font-weight: 700;
}


@keyframes trackingPulse {
    0% {
        box-shadow:
            0 0 0 4px rgba(4, 58, 245, 0.14),
            0 8px 22px rgba(4, 58, 245, 0.22);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(4, 58, 245, 0.05),
            0 8px 22px rgba(4, 58, 245, 0.25);
    }

    100% {
        box-shadow:
            0 0 0 4px rgba(4, 58, 245, 0.14),
            0 8px 22px rgba(4, 58, 245, 0.22);
    }
}


/* الطلب الملغي */

.order-cancelled-message {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(178, 13, 48, 0.06);
    border: 1px solid rgba(178, 13, 48, 0.14);
    border-radius: 13px;
}


.order-cancelled-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--danger-red);
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 25px;
    font-weight: 700;
}


.order-cancelled-message h3 {
    margin-bottom: 3px;
    color: var(--danger-red);
    font-size: 16px;
    font-weight: 800;
}


.order-cancelled-message p {
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.7;
}


/* الأجهزة المتوسطة */

@media (max-width: 950px) {
    .order-tracking-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .order-tracking-steps::before {
        top: 22px;
        right: 22px;
        bottom: 22px;
        left: auto;
        width: 3px;
        height: auto;
    }

    .order-tracking-step {
        min-height: 80px;
        align-items: flex-start;
        flex-direction: row;
        text-align: right;
    }

    .tracking-step-marker {
        flex-shrink: 0;
    }

    .tracking-step-content {
        padding-top: 5px;
        align-items: flex-start;
    }
}


/* الهاتف */

@media (max-width: 768px) {
    .order-tracking-card {
        padding: 18px;
        border-radius: 15px;
    }

    .order-tracking-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-tracking-heading .account-order-status {
        width: 100%;
    }

    .order-cancelled-message {
        align-items: flex-start;
    }
}

/* =========================
   سجل تغيّر حالات الطلب
========================= */

.order-status-history-card {
    margin-bottom: 24px;
    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
}


.order-status-history-heading {
    margin-bottom: 22px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}


.order-status-history-heading > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.order-status-history-heading h2 {
    color: var(--dark-navy);
    font-size: 20px;
    font-weight: 800;
}


.order-status-history-heading > small {
    padding: 6px 11px;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.08);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
}


/* الخط الزمني */

.order-status-history-list {
    position: relative;
    display: flex;
    flex-direction: column;
}


.order-status-history-list::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 21px;
    bottom: 22px;
    width: 3px;
    background:
        linear-gradient(
            to bottom,
            var(--primary-blue),
            var(--light-green)
        );
    border-radius: 100px;
}


.order-status-history-item {
    position: relative;
    z-index: 1;
    min-height: 75px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: flex-start;
    gap: 14px;
}


.status-history-marker {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(4, 58, 245, 0.18),
        0 7px 18px rgba(4, 58, 245, 0.16);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 800;
}


.order-status-history-item:last-child .status-history-marker {
    color: var(--dark-navy);
    background-color: var(--light-green);
    box-shadow:
        0 0 0 2px rgba(107, 212, 37, 0.2),
        0 7px 18px rgba(107, 212, 37, 0.18);
}


.status-history-content {
    padding: 4px 0 22px;
}


.status-history-content > div {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.status-history-content strong {
    color: var(--dark-navy);
    font-size: 14px;
    font-weight: 800;
}


.status-history-content time {
    color: #969daa;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    white-space: nowrap;
}


.status-history-content p {
    margin: 0;
    padding: 9px 12px;
    color: var(--text-gray);
    background-color: #f7f9fd;
    border: 1px solid #eef0f6;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.7;
}


/* الطلب الملغي داخل السجل */

.order-status-history-item:has(
    .status-history-content strong
) {
    transition: 0.3s;
}


/* الهاتف */

@media (max-width: 768px) {
    .order-status-history-card {
        padding: 18px;
        border-radius: 15px;
    }

    .order-status-history-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-history-content > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .order-status-history-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
    }

    .status-history-marker {
        width: 40px;
        height: 40px;
    }

    .order-status-history-list::before {
        right: 19px;
    }
}
/* =========================
   صفحة العروض
========================= */

.offers-page {
    min-height: calc(100vh - 85px);
    padding: 50px 4% 90px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(4, 58, 245, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(107, 212, 37, 0.1),
            transparent 28%
        ),
        var(--light-background);
}


/* رأس صفحة العروض */

.offers-hero {
    width: 100%;
    max-width: 1400px;
    min-height: 350px;
    margin: 0 auto 35px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(
            135deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 25px;
    box-shadow: 0 20px 55px rgba(4, 9, 38, 0.2);
}


.offers-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -100px;
    width: 330px;
    height: 330px;
    background-color: rgba(4, 58, 245, 0.28);
    border-radius: 50%;
}


.offers-hero::after {
    content: "";
    position: absolute;
    right: 38%;
    bottom: -150px;
    width: 300px;
    height: 300px;
    background-color: rgba(107, 212, 37, 0.12);
    border-radius: 50%;
}


.offers-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}


.offers-hero-label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


.offers-hero h1 {
    max-width: 650px;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.45;
}


.offers-hero p {
    max-width: 600px;
    margin-bottom: 24px;
    color: rgba(254, 254, 254, 0.72);
    font-size: 15px;
    line-height: 1.9;
}


.offers-hero-content > a {
    display: inline-block;
    padding: 12px 23px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border: 1px solid var(--light-green);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}


.offers-hero-content > a:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}


.offers-hero-decoration {
    position: relative;
    z-index: 2;
    width: 280px;
    min-height: 240px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.04)
        );
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 25px;
    backdrop-filter: blur(8px);
    transform: rotate(-3deg);
}


.offers-percent-symbol {
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 100px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 12px 35px rgba(107, 212, 37, 0.22);
}


.offers-hero-decoration > span {
    margin-top: 8px;
    color: rgba(254, 254, 254, 0.75);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
}


/* قسم المنتجات */

.offers-products-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.offers-section-heading {
    margin-bottom: 24px;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(4, 9, 38, 0.06);
}


.offers-section-heading > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.offers-section-heading h2 {
    color: var(--dark-navy);
    font-size: 24px;
    font-weight: 800;
}


.offers-section-heading > strong {
    padding: 8px 14px;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.08);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


/* شبكة العروض */

.offers-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* بطاقة المنتج */

.offer-product-card {
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
    transition: 0.3s;
}


.offer-product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(4, 9, 38, 0.13);
}


.offer-product-image {
    position: relative;
    height: 245px;
    padding: 25px;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f8f9fd,
            #eef2fb
        );
    text-decoration: none;
}


.offer-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.35s;
}


.offer-product-card:hover .offer-product-image img {
    transform: scale(1.06);
}


.offer-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background-color: rgba(4, 58, 245, 0.08);
    border-radius: 13px;
    font-family: "Poppins", sans-serif;
    font-size: 35px;
    font-weight: 800;
}


.offer-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 7px 13px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(107, 212, 37, 0.2);
}


.offer-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 12px;
    color: var(--white);
    background-color: var(--danger-red);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
}


/* محتوى البطاقة */

.offer-product-content {
    padding: 20px;
}


.offer-product-category {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}


.offer-product-category:hover {
    text-decoration: underline;
}


.offer-product-content h3 {
    margin-bottom: 3px;
    line-height: 1.6;
}


.offer-product-content h3 a {
    color: var(--dark-navy);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    transition: 0.3s;
}


.offer-product-content h3 a:hover {
    color: var(--primary-blue);
}


.offer-product-name-en {
    min-height: 20px;
    margin-bottom: 13px;
    color: var(--text-gray);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
}


/* الأسعار */

.offer-product-prices {
    margin-bottom: 17px;
    padding: 13px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}


.offer-product-prices strong {
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 800;
}


.offer-product-prices del {
    color: #9ba1ae;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}


/* أسفل البطاقة */

.offer-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


.offer-available-stock {
    color: #4f8e2a;
    font-size: 11px;
    font-weight: 700;
}


.offer-unavailable-stock {
    color: var(--danger-red);
    font-size: 11px;
    font-weight: 700;
}


.offer-product-footer > a {
    padding: 8px 12px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.3s;
}


.offer-product-footer > a:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
    transform: translateY(-2px);
}


/* حالة عدم وجود عروض */

.offers-empty-state {
    padding: 60px 25px;
    background-color: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.06);
}


.offers-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    font-weight: 800;
}


.offers-empty-state h2 {
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 24px;
    font-weight: 800;
}


.offers-empty-state p {
    max-width: 560px;
    margin: 0 auto 20px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}


.offers-empty-state > a {
    display: inline-block;
    padding: 10px 18px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}


.offers-empty-state > a:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
}


/* الأجهزة المتوسطة */

@media (max-width: 1150px) {
    .offers-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {
    .offers-hero {
        min-height: auto;
        padding: 38px 30px;
    }

    .offers-hero-decoration {
        width: 220px;
        min-height: 210px;
    }

    .offers-percent-symbol {
        font-size: 80px;
    }

    .offers-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* الهاتف */

@media (max-width: 700px) {
    .offers-page {
        padding: 32px 5% 60px;
    }

    .offers-hero {
        padding: 30px 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .offers-hero h1 {
        font-size: 29px;
    }

    .offers-hero-decoration {
        width: 100%;
        min-height: 180px;
        transform: none;
    }

    .offers-percent-symbol {
        font-size: 70px;
    }

    .offers-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .offers-products-grid {
        grid-template-columns: 1fr;
    }

    .offer-product-image {
        height: 260px;
    }
}


/* الهواتف الصغيرة */

@media (max-width: 420px) {
    .offers-hero h1 {
        font-size: 25px;
    }

    .offers-section-heading h2 {
        font-size: 21px;
    }

    .offer-product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .offer-product-footer > a {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   صفحة من نحن
========================= */

.about-page {
    min-height: calc(100vh - 85px);
    padding: 50px 4% 90px;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(4, 58, 245, 0.1),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(107, 212, 37, 0.09),
            transparent 27%
        ),
        var(--light-background);
}


/* مقدمة الصفحة */

.about-hero {
    width: 100%;
    max-width: 1400px;
    min-height: 440px;
    margin: 0 auto 35px;
    padding: 48px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 55px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 26px;
    box-shadow: 0 20px 55px rgba(4, 9, 38, 0.2);
}


.about-hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -100px;
    width: 360px;
    height: 360px;
    background-color: rgba(4, 58, 245, 0.24);
    border-radius: 50%;
}


.about-hero::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: 25%;
    width: 330px;
    height: 330px;
    background-color: rgba(107, 212, 37, 0.1);
    border-radius: 50%;
}


.about-hero-content {
    position: relative;
    z-index: 2;
}


.about-label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


.about-hero h1 {
    max-width: 760px;
    margin-bottom: 16px;
    color: var(--white);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.45;
}


.about-hero p {
    max-width: 680px;
    margin-bottom: 26px;
    color: rgba(254, 254, 254, 0.73);
    font-size: 15px;
    line-height: 2;
}


.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


.about-primary-button,
.about-secondary-button {
    padding: 12px 23px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}


.about-primary-button {
    color: var(--dark-navy);
    background-color: var(--light-green);
    border: 1px solid var(--light-green);
}


.about-primary-button:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}


.about-secondary-button {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}


.about-secondary-button:hover {
    color: var(--dark-navy);
    background-color: var(--white);
    transform: translateY(-3px);
}


/* الرسم الموجود في الهيرو */

.about-hero-visual {
    min-height: 300px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}


.about-logo-box {
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--white);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.04)
        );
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
    transform: rotate(-4deg);
}


.about-logo-box strong {
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 75px;
    font-weight: 800;
    line-height: 1;
}


.about-logo-box span {
    margin-top: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}


.about-visual-chip {
    position: absolute;
    padding: 8px 13px;
    color: var(--white);
    background-color: var(--primary-blue);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(4, 58, 245, 0.25);
}


.chip-one {
    top: 22px;
    right: 0;
}


.chip-two {
    bottom: 25px;
    left: 0;
    color: var(--dark-navy);
    background-color: var(--light-green);
}


/* قسم القصة */

.about-story-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 35px;
    padding: 35px;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: center;
    gap: 45px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(4, 9, 38, 0.07);
}


.about-story-image {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #f6f8fd,
            #edf2ff
        );
    border: 1px solid #e7ebf4;
    border-radius: 18px;
}


.about-circuit-box {
    width: 260px;
    height: 260px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.circuit-center {
    width: 105px;
    height: 105px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 22px;
    box-shadow: 0 16px 35px rgba(4, 58, 245, 0.25);
    font-family: "Poppins", sans-serif;
    font-size: 37px;
    font-weight: 800;
}


.circuit-dot {
    width: 17px;
    height: 17px;
    position: absolute;
    z-index: 2;
    background-color: var(--light-green);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(107, 212, 37, 0.25);
}


.dot-one {
    top: 20px;
    right: 50%;
}


.dot-two {
    right: 15px;
    bottom: 55px;
}


.dot-three {
    left: 15px;
    bottom: 55px;
}


.circuit-line {
    position: absolute;
    height: 3px;
    background-color: rgba(4, 58, 245, 0.35);
    border-radius: 100px;
    transform-origin: right center;
}


.line-one {
    width: 93px;
    top: 71px;
    right: 82px;
    transform: rotate(90deg);
}


.line-two {
    width: 96px;
    right: 60px;
    bottom: 87px;
    transform: rotate(29deg);
}


.line-three {
    width: 96px;
    left: 60px;
    bottom: 87px;
    transform: rotate(-29deg);
}


.about-section-label {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.about-story-content h2 {
    margin-bottom: 14px;
    color: var(--dark-navy);
    font-size: 30px;
    font-weight: 800;
}


.about-story-content > p {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 2;
}


.about-story-points {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.about-story-points > div {
    display: flex;
    align-items: center;
    gap: 10px;
}


.about-story-points span {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}


.about-story-points p {
    margin: 0;
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 700;
}


/* قسم القيم */

.about-values-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 35px;
}


.about-section-heading {
    max-width: 750px;
    margin: 0 auto 27px;
    text-align: center;
}


.about-section-heading > span {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
}


.about-section-heading h2 {
    margin-bottom: 9px;
    color: var(--dark-navy);
    font-size: 30px;
    font-weight: 800;
}


.about-section-heading p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
}


.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


.about-value-card {
    padding: 27px 23px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
    transition: 0.3s;
}


.about-value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(4, 9, 38, 0.12);
}


.about-value-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 14px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 800;
}


.about-value-card:nth-child(even) .about-value-icon {
    color: var(--dark-navy);
    background-color: var(--light-green);
}


.about-value-card h3 {
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 18px;
    font-weight: 800;
}


.about-value-card p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.9;
}


/* لماذا تختارنا */

.about-why-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 35px;
    padding: 35px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    background:
        linear-gradient(
            135deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(4, 9, 38, 0.17);
}


.about-why-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
}


.about-why-heading h2 {
    color: var(--white);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.55;
}


.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}


.about-feature-item {
    padding: 18px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: flex-start;
    gap: 13px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}


.about-feature-item > strong {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 800;
}


.about-feature-item h3 {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
}


.about-feature-item p {
    color: rgba(254, 254, 254, 0.68);
    font-size: 12px;
    line-height: 1.8;
}


/* دعوة التسوق */

.about-cta {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 31px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-right: 6px solid var(--primary-blue);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(4, 9, 38, 0.07);
}


.about-cta span {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.about-cta h2 {
    margin-bottom: 5px;
    color: var(--dark-navy);
    font-size: 24px;
    font-weight: 800;
}


.about-cta p {
    color: var(--text-gray);
    font-size: 13px;
}


.about-cta > a {
    flex-shrink: 0;
    padding: 12px 21px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}


.about-cta > a:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
    transform: translateY(-3px);
}


/* الأجهزة المتوسطة */

@media (max-width: 1050px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }

    .about-story-section {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-why-section {
        grid-template-columns: 1fr;
    }
}


/* الهاتف */

@media (max-width: 768px) {
    .about-page {
        padding: 32px 5% 60px;
    }

    .about-hero {
        min-height: auto;
        padding: 30px 22px;
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 29px;
    }

    .about-hero-visual {
        min-height: 270px;
    }

    .about-logo-box {
        width: 200px;
        height: 200px;
    }

    .about-logo-box strong {
        font-size: 63px;
    }

    .about-story-section {
        padding: 22px;
        grid-template-columns: 1fr;
    }

    .about-story-image {
        min-height: 300px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .about-why-section {
        padding: 25px 20px;
    }

    .about-cta {
        padding: 25px 21px;
        align-items: stretch;
        flex-direction: column;
    }

    .about-cta > a {
        width: 100%;
        text-align: center;
    }
}


/* الهواتف الصغيرة */

@media (max-width: 450px) {
    .about-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .about-primary-button,
    .about-secondary-button {
        width: 100%;
        text-align: center;
    }

    .about-section-heading h2,
    .about-story-content h2,
    .about-why-heading h2 {
        font-size: 25px;
    }

    .about-feature-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .about-feature-item > strong {
        width: 42px;
        height: 42px;
    }
}

/* =========================
   صفحة تواصل معنا
========================= */

.contact-page {
    min-height: calc(100vh - 85px);
    padding: 50px 4% 90px;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(4, 58, 245, 0.1),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(107, 212, 37, 0.09),
            transparent 27%
        ),
        var(--light-background);
}


/* مقدمة الصفحة */

.contact-hero {
    width: 100%;
    max-width: 1400px;
    min-height: 280px;
    margin: 0 auto 30px;
    padding: 42px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 25px;
    box-shadow: 0 20px 55px rgba(4, 9, 38, 0.2);
}


.contact-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 330px;
    height: 330px;
    background-color: rgba(4, 58, 245, 0.25);
    border-radius: 50%;
}


.contact-hero::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: 30%;
    width: 320px;
    height: 320px;
    background-color: rgba(107, 212, 37, 0.1);
    border-radius: 50%;
}


.contact-hero > div {
    position: relative;
    z-index: 2;
}


.contact-hero > div:first-child {
    max-width: 720px;
}


.contact-hero > div:first-child > span {
    display: block;
    margin-bottom: 7px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


.contact-hero h1 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 37px;
    font-weight: 800;
    line-height: 1.5;
}


.contact-hero p {
    color: rgba(254, 254, 254, 0.72);
    font-size: 15px;
    line-height: 1.9;
}


.contact-hero-symbol {
    width: 190px;
    height: 170px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.04)
        );
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(9px);
    transform: rotate(-3deg);
}


.contact-hero-symbol strong {
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
}


.contact-hero-symbol span {
    margin-top: 8px;
    color: rgba(254, 254, 254, 0.78);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
}


/* توزيع الصفحة */

.contact-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    align-items: start;
    gap: 25px;
}


/* معلومات التواصل */

.contact-information {
    padding: 26px;
    background:
        linear-gradient(
            145deg,
            var(--dark-navy),
            #0b1649
        );
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(4, 9, 38, 0.16);
}


.contact-information-heading {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.contact-information-heading > span {
    display: block;
    margin-bottom: 3px;
    color: var(--light-green);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.contact-information-heading h2 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 23px;
    font-weight: 800;
}


.contact-information-heading p {
    color: rgba(254, 254, 254, 0.66);
    font-size: 12px;
    line-height: 1.9;
}


.contact-information-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.contact-information-item {
    padding: 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
}


.contact-information-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-radius: 11px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 800;
}


.contact-information-item span {
    display: block;
    margin-bottom: 2px;
    color: rgba(254, 254, 254, 0.58);
    font-size: 10px;
}


.contact-information-item strong {
    display: block;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
}


.contact-information-item small {
    display: block;
    margin-top: 2px;
    color: rgba(254, 254, 254, 0.55);
    font-size: 10px;
}


.contact-account-note {
    margin-top: 20px;
    padding: 15px;
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-radius: 12px;
}


.contact-account-note strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 800;
}


.contact-account-note span,
.contact-account-note p {
    margin: 0;
    font-size: 11px;
}


.contact-account-note > a {
    display: inline-block;
    margin-top: 9px;
    padding: 7px 12px;
    color: var(--white);
    background-color: var(--primary-blue);
    border-radius: 7px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}


/* بطاقة النموذج */

.contact-form-card {
    padding: 30px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(4, 9, 38, 0.07);
}


.contact-form-heading {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}


.contact-form-heading > span {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.contact-form-heading h2 {
    margin-bottom: 6px;
    color: var(--dark-navy);
    font-size: 25px;
    font-weight: 800;
}


.contact-form-heading p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.8;
}


/* حقول النموذج */

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.contact-form-group label {
    color: var(--dark-navy);
    font-size: 12px;
    font-weight: 800;
}


.contact-form-group label > span {
    color: var(--danger-red);
}


.contact-form-group label > small {
    margin-right: 4px;
    color: var(--text-gray);
    font-size: 9px;
    font-weight: 600;
}


.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--dark-navy);
    background-color: #f8f9fd;
    border: 1px solid #e4e7ef;
    border-radius: 10px;
    outline: none;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    transition: 0.25s;
}


.contact-form-group input {
    min-height: 48px;
}


.contact-form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.8;
}


.contact-form-group input:focus,
.contact-form-group textarea:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(4, 58, 245, 0.08);
}


.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #a3a9b5;
}


.contact-message-field {
    grid-column: 1 / -1;
}


/* أخطاء النموذج */

.contact-field-errors {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.contact-field-errors small {
    color: var(--danger-red);
    font-size: 10px;
    font-weight: 700;
}


.contact-form-general-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: var(--danger-red);
    background-color: rgba(178, 13, 48, 0.06);
    border: 1px solid rgba(178, 13, 48, 0.15);
    border-radius: 9px;
}


.contact-form-general-errors p {
    margin: 0;
    font-size: 12px;
}


/* أسفل النموذج */

.contact-form-footer {
    margin-top: 22px;
    padding-top: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border-color);
}


.contact-form-footer p {
    max-width: 520px;
    margin: 0;
    color: var(--text-gray);
    font-size: 11px;
    line-height: 1.8;
}


.contact-form-footer button {
    min-width: 150px;
    min-height: 46px;
    padding: 11px 22px;
    color: var(--white);
    background-color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}


.contact-form-footer button:hover {
    color: var(--dark-navy);
    background-color: var(--light-green);
    border-color: var(--light-green);
    transform: translateY(-2px);
}


/* الأجهزة المتوسطة */

@media (max-width: 1000px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-information-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}


/* الهاتف */

@media (max-width: 700px) {
    .contact-page {
        padding: 32px 5% 60px;
    }

    .contact-hero {
        min-height: auto;
        padding: 30px 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-hero-symbol {
        width: 100%;
        height: 150px;
        transform: none;
    }

    .contact-information-list {
        grid-template-columns: 1fr;
    }

    .contact-form-card,
    .contact-information {
        padding: 20px;
        border-radius: 16px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-message-field {
        grid-column: auto;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form-footer button {
        width: 100%;
    }
}

/* =========================
   الفوتر
========================= */

.site-footer {
    color: var(--white);
    background:
        linear-gradient(
            145deg,
            var(--dark-navy),
            #081240
        );
    border-top: 4px solid var(--primary-blue);
}


.footer-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 55px 0 40px;
    display: grid;
    grid-template-columns:
        minmax(250px, 1.4fr)
        repeat(3, minmax(150px, 1fr));
    align-items: start;
    gap: 45px;
}


/* معلومات المتجر */

.footer-brand {
    max-width: 360px;
}


.footer-logo {
    width: 135px;
    margin-bottom: 18px;
    display: block;
}


.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


.footer-brand > p {
    margin-bottom: 18px;
    color: rgba(254, 254, 254, 0.68);
    font-size: 13px;
    line-height: 2;
}


.footer-contact-summary {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.footer-contact-summary span {
    color: rgba(254, 254, 254, 0.78);
    font-size: 12px;
}


/* أعمدة الروابط */

.footer-column h3 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 11px;
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
}


.footer-column h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background-color: var(--light-green);
    border-radius: 100px;
}


.footer-column nav {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.footer-column nav a {
    width: fit-content;
    position: relative;
    color: rgba(254, 254, 254, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: 0.25s;
}


.footer-column nav a::before {
    content: "›";
    margin-left: 7px;
    color: var(--light-green);
    font-size: 16px;
    font-weight: 800;
}


.footer-column nav a:hover {
    color: var(--light-green);
    transform: translateX(-4px);
}


/* ميزات FIX POINT */

.footer-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.footer-features > div {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
}


.footer-features strong {
    display: block;
    margin-bottom: 3px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}


.footer-features span {
    display: block;
    color: rgba(254, 254, 254, 0.57);
    font-size: 10px;
    line-height: 1.6;
}


/* أسفل الفوتر */

.footer-bottom {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.footer-bottom p {
    margin: 0;
    color: rgba(254, 254, 254, 0.64);
    font-size: 11px;
}


.footer-bottom p strong {
    color: var(--light-green);
}


.footer-bottom > span {
    color: rgba(254, 254, 254, 0.45);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    letter-spacing: 0.7px;
}


/* الأجهزة المتوسطة */

@media (max-width: 1050px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        max-width: none;
    }
}


/* الهاتف */

@media (max-width: 650px) {
    .footer-container {
        padding: 42px 0 30px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo {
        width: 115px;
    }

    .footer-column h3 {
        margin-bottom: 16px;
    }

    .footer-bottom {
        padding: 20px 0;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   تسجيل الدخول باستخدام Google
========================= */

.social-login-divider {
    margin: 22px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 12px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background-color: var(--border-color);
}

.social-login-divider span {
    flex-shrink: 0;
}

.google-login-form {
    width: 100%;
}

.google-login-button {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--dark-navy);
    background-color: var(--white);
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}

.google-login-button:hover {
    border-color: var(--primary-blue);
    background-color: #f7f9ff;
    box-shadow: 0 7px 20px rgba(4, 58, 245, 0.1);
    transform: translateY(-2px);
}

.google-login-icon {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285f4;
    background-color: var(--white);
    border: 1px solid #e3e6ed;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.footer-contact-summary a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-summary a:hover {
    color: #6bd425;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #fefefe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.footer-social-links a:hover {
    transform: translateY(-2px);
    border-color: #6bd425;
    background-color: rgba(107, 212, 37, 0.12);
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 10px 17px;
    border-radius: 999px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.floating-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 19px;
}

@media (max-width: 600px) {
    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        min-width: 52px;
        padding: 10px;
    }

    .floating-whatsapp > span:last-child {
        display: none;
    }
}

.footer-contact-summary {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    max-width: 390px;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: #fefefe;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

a.footer-contact-row:hover {
    transform: translateX(-3px);
    border-color: rgba(107, 212, 37, 0.75);
    background-color: rgba(107, 212, 37, 0.08);
}

.footer-contact-icon {
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(4, 58, 245, 0.16);
    color: #6bd425;
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    text-align: right;
}

.footer-contact-details small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.footer-contact-details strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.footer-contact-details bdi {
    direction: ltr;
    unicode-bidi: isolate;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.footer-social-link.facebook:hover {
    border-color: #1877f2;
    background: #1877f2;
}

.footer-social-link.instagram:hover {
    border-color: #e1306c;
    background: linear-gradient(
        135deg,
        #833ab4,
        #e1306c,
        #f77737
    );
}

.footer-social-link.whatsapp:hover {
    border-color: #25d366;
    background: #25d366;
}

.floating-whatsapp-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .footer-contact-summary {
        max-width: 100%;
    }

    .footer-social-link {
        flex: 1 1 calc(50% - 10px);
    }
}

/* تثبيت الفوتر أسفل الصفحة */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 30px 0 0;
}

/* تصغير وترتيب محتوى الفوتر */
.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
    align-items: start;
    gap: 25px;
    padding-top: 0;
    padding-bottom: 25px;
}

.footer-brand .footer-logo img {
    width: 90px;
    height: auto;
}

.footer-brand > p {
    margin: 10px 0 14px;
    max-width: 390px;
    line-height: 1.7;
    font-size: 14px;
}

/* تصغير معلومات التواصل */
.footer-contact-summary {
    gap: 7px;
    margin-top: 12px;
    max-width: 370px;
}

.footer-contact-row {
    min-height: 45px;
    padding: 7px 10px;
    gap: 9px;
    border-radius: 10px;
}

.footer-contact-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.footer-contact-icon svg {
    width: 17px;
    height: 17px;
}

.footer-contact-details {
    gap: 1px;
}

.footer-contact-details small {
    font-size: 10px;
}

.footer-contact-details strong {
    font-size: 13px;
}

/* الروابط والعناوين */
.footer-column h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.footer-column nav {
    display: grid;
    gap: 7px;
}

.footer-column nav a {
    padding: 2px 0;
    font-size: 14px;
}

/* تصغير مربعات المزايا */
.footer-features {
    display: grid;
    gap: 8px;
}

.footer-features > div {
    padding: 10px 12px;
    border-radius: 10px;
}

.footer-features strong {
    font-size: 13px;
}

.footer-features span {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.5;
}

/* أزرار التواصل الاجتماعي */
.footer-social-links {
    gap: 7px;
    margin-top: 12px;
}

.footer-social-link {
    min-height: 38px;
    padding: 7px 11px;
    gap: 7px;
    border-radius: 9px;
    font-size: 12px;
}

.footer-social-link svg {
    width: 17px;
    height: 17px;
}

/* الشريط السفلي */
.footer-bottom {
    min-height: auto;
    padding-top: 13px;
    padding-bottom: 13px;
}

.footer-bottom p,
.footer-bottom span {
    margin: 0;
    font-size: 12px;
}

/* الأجهزة المتوسطة */
@media (max-width: 1050px) {
    .footer-container {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .footer-column:last-child {
        grid-column: span 3;
    }

    .footer-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* الهاتف */
@media (max-width: 700px) {
    .site-footer {
        padding-top: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 22px 16px;
        padding-bottom: 20px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-column:last-child {
        grid-column: span 2;
    }

    .footer-features {
        grid-template-columns: 1fr;
    }

    .footer-contact-summary {
        max-width: 100%;
    }

    .footer-bottom {
        gap: 5px;
        padding: 11px 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-social-link {
        flex: 1 1 calc(33.333% - 7px);
        padding-inline: 7px;
    }
}

/* بيانات صفحة التواصل */
.contact-information-item a {
    color: inherit;
    text-decoration: none;
}

.contact-information-item a:hover strong {
    color: #043af5;
}

.contact-information-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-information-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.contact-information-item strong bdi {
    direction: ltr;
    unicode-bidi: isolate;
}

.contact-direct-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.contact-direct-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 9px 12px;
    border-radius: 11px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-direct-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.contact-direct-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.17);
}

.contact-direct-link.whatsapp {
    background: #25d366;
}

.contact-direct-link.facebook {
    background: #1877f2;
}

.contact-direct-link.instagram {
    background: linear-gradient(
        135deg,
        #833ab4,
        #e1306c,
        #f77737
    );
}

@media (max-width: 520px) {
    .contact-direct-actions {
        grid-template-columns: 1fr;
    }
}

/* صفحات سياسات المتجر */
.policy-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 45px 0 70px;
}

.policy-hero {
    padding: 38px;
    border: 1px solid rgba(4, 58, 245, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(4, 58, 245, 0.09),
            rgba(107, 212, 37, 0.07)
        );
}

.policy-hero > span {
    display: block;
    margin-bottom: 9px;
    color: #043af5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.policy-hero h1 {
    margin: 0 0 12px;
    color: #040926;
    font-size: clamp(28px, 4vw, 44px);
}

.policy-hero p {
    max-width: 720px;
    margin: 0;
    color: #5d6275;
    line-height: 1.9;
}

.policy-content {
    display: grid;
    gap: 16px;
    margin-top: 25px;
}

.policy-introduction,
.policy-section {
    padding: 24px 26px;
    border: 1px solid #e7e9f1;
    border-radius: 17px;
    background: #ffffff;
}

.policy-introduction {
    border-right: 4px solid #043af5;
}

.policy-introduction p,
.policy-section p {
    margin: 0;
    color: #5d6275;
    line-height: 1.95;
}

.policy-section h2 {
    margin: 0 0 10px;
    color: #040926;
    font-size: 19px;
}

.policy-contact-box {
    border-color: rgba(107, 212, 37, 0.45);
    background: rgba(107, 212, 37, 0.06);
}

.policy-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.policy-contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 15px;
    border: 1px solid rgba(4, 58, 245, 0.2);
    border-radius: 10px;
    background: #ffffff;
    color: #043af5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.policy-contact-links a:hover {
    transform: translateY(-2px);
    border-color: #043af5;
}

@media (max-width: 600px) {
    .policy-page {
        width: min(100% - 22px, 1120px);
        padding: 28px 0 48px;
    }

    .policy-hero {
        padding: 25px 20px;
        border-radius: 17px;
    }

    .policy-introduction,
    .policy-section {
        padding: 20px 18px;
    }

    .policy-contact-links {
        display: grid;
    }
}
.policy-last-update {
    display: block;
    margin-top: 14px;
    color: #043af5;
    font-size: 12px;
    font-weight: 800;
}