/* =========================================================
   HOME PAGE - PREMIUM STYLE
========================================================= */

/* =========================
   خلفية الصفحة
========================= */

body.home-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            rgba(31, 14, 7, 0.50),
            rgba(62, 31, 17, 0.45)
        ),
        url("hero-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    overflow-x: hidden;
}


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;

    min-height: 560px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px 90px;

    overflow: hidden;
}


/* إضاءة خفيفة */

.home-hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: 40px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(215, 161, 93, 0.10),
            transparent 68%
        );

    filter: blur(10px);

    pointer-events: none;
}


/* =========================
   المرساة
========================= */

.home-hero::before {
    content: "\f13d";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 130px;
    height: 130px;

    color: #d7a15d;

    font-size: 92px;

    animation:
        anchorFloat 4s ease-in-out infinite,
        anchorGlow 2.8s ease-in-out infinite;

    filter:
        drop-shadow(
            0 10px 20px rgba(0, 0, 0, 0.45)
        );
}


@keyframes anchorFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


@keyframes anchorGlow {

    0%,
    100% {
        filter:
            drop-shadow(
                0 8px 18px rgba(0, 0, 0, 0.45)
            )
            drop-shadow(
                0 0 0 rgba(215, 161, 93, 0)
            );
    }

    50% {
        filter:
            drop-shadow(
                0 10px 22px rgba(0, 0, 0, 0.45)
            )
            drop-shadow(
                0 0 25px rgba(215, 161, 93, 0.38)
            );
    }
}


/* =========================================================
   محتوى الهيرو
========================================================= */

.hero-content {
    position: relative;
    z-index: 3;

    animation:
        heroContentShow 1s ease 0.2s both;
}


@keyframes heroContentShow {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   عنوان بن القبطان
========================= */

.home-hero h1 {

    margin: 20px 0 12px;

    color: #e3b875;

    font-size: 60px;

    font-weight: 900;

    text-align: center;

    letter-spacing: 1px;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(215, 161, 93, 0.12);

    animation:
        titleGlow 3s ease-in-out infinite;
}


@keyframes titleGlow {

    0%,
    100% {
        text-shadow:
            0 4px 20px rgba(0, 0, 0, 0.65),
            0 0 15px rgba(215, 161, 93, 0.08);
    }

    50% {
        text-shadow:
            0 4px 20px rgba(0, 0, 0, 0.65),
            0 0 28px rgba(215, 161, 93, 0.20);
    }
}


/* =========================
   وصف الهيرو
========================= */

.home-hero p {

    margin: 0 auto;

    max-width: 700px;

    color: #f1e8df;

    font-size: 21px;

    font-weight: 500;

    text-align: center;

    line-height: 1.9;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.75);
}


/* =========================================================
   زر اكتشف منتجاتنا
========================================================= */

.hero-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 30px;

    padding: 15px 34px;

    background:
        linear-gradient(
            135deg,
            #5a2f1c,
            #79472a,
            #5a2f1c
        );

    background-size: 200% 200%;

    color: #ffffff;

    border:
        1px solid rgba(215, 161, 93, 0.85);

    border-radius: 50px;

    font-size: 19px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-position 0.5s ease;
}


.hero-button:hover {

    transform: translateY(-5px);

    background-position: 100% 50%;

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(215, 161, 93, 0.18);
}


.hero-button i {

    transition:
        transform 0.3s ease;
}


.hero-button:hover i {

    transform: translateX(-5px);
}


/* =========================================================
   عنوان العروض
========================================================= */

.offers-section {

    position: relative;

    padding: 20px 0 30px;
}


.offers-section::before {

    content: "";

    display: block;

    width: 120px;
    height: 2px;

    margin: 0 auto 35px;

    background:
        linear-gradient(
            to right,
            transparent,
            #d7a15d,
            transparent
        );

    opacity: 0.75;
}


.offers-title {

    animation:
        sectionTitleShow 0.9s ease both;
}


@keyframes sectionTitleShow {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.offers-title h2 {

    margin: 35px 0 12px;

    color: #e3b875;

    font-size: 48px;

    font-weight: 900;

    text-align: center;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.65),
        0 0 25px rgba(215, 161, 93, 0.10);
}


.offers-title p {

    margin: 0 auto 42px;

    color: #f1e8df;

    font-size: 19px;

    text-align: center;

    line-height: 1.8;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   كروت العروض
========================================================= */

.offers-container {

    width: 92%;

    max-width: 1500px;

    margin: 40px auto 45px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 28px;

    direction: rtl;
}


/* =========================================================
   الكارت
========================================================= */

.offer-card {

    position: relative;

    background:
        linear-gradient(
            145deg,
            #241008 0%,
            #3a1b0d 38%,
            #4b2411 70%,
            #291108 100%
        );

    border:
        1px solid
        rgba(215, 161, 93, 0.35);

    border-radius: 28px;

    padding: 14px;

    overflow: hidden;

    text-align: center;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);

    opacity: 0;

    animation:
        cardReveal 0.8s ease forwards;

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}


.offer-card:nth-child(1) {
    animation-delay: 0.15s;
}

.offer-card:nth-child(2) {
    animation-delay: 0.30s;
}

.offer-card:nth-child(3) {
    animation-delay: 0.45s;
}

.offer-card:nth-child(4) {
    animation-delay: 0.60s;
}


@keyframes cardReveal {

    from {
        opacity: 0;

        transform:
            translateY(35px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* إضاءة داخلية */

.offer-card::before {

    content: "";

    position: absolute;

    top: -100px;
    right: -100px;

    width: 220px;
    height: 220px;

    background:
        radial-gradient(
            circle,
            rgba(215, 161, 93, 0.13),
            transparent 70%
        );

    pointer-events: none;

    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
}


.offer-card:hover::before {

    transform: scale(1.5);

    opacity: 1.3;
}


/* خط لامع */

.offer-card::after {

    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(215, 161, 93, 0.65),
            transparent
        );

    opacity: 0.65;
}


/* Hover */

.offer-card:hover {

    transform:
        translateY(-12px)
        scale(1.015);

    border-color:
        rgba(215, 161, 93, 0.78);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.58),
        0 0 30px rgba(215, 161, 93, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}


/* =========================================================
   حاوية صورة المنتج
========================================================= */

.offer-image {

    position: relative;

    width: 100%;

    height: 330px;

    overflow: hidden;

    border-radius: 34px;

    background:
        radial-gradient(
            circle at center,
            rgba(116, 65, 34, 0.14),
            transparent 72%
        );

    isolation: isolate;
}


/* =========================================================
   صورة المنتج - حواف ناعمة
========================================================= */

.offer-card img {

    width: 100%;

    height: 100%;

    display: block;

    margin: 0;

    object-fit: contain;

    background: transparent;

    border: none;

    border-radius: 34px;

    box-shadow: none;

    clip-path:
        inset(
            1px
            1px
            1px
            1px
            round 34px
        );

    transition:
        transform 0.55s cubic-bezier(.2,.8,.2,1),
        filter 0.55s ease;
}


/* تكبير ناعم */

.offer-card:hover img {

    transform:
        scale(1.045);

    filter:
        drop-shadow(
            0 15px 22px
            rgba(0, 0, 0, 0.42)
        )
        brightness(1.04)
        contrast(1.02);
}


/* =========================================================
   شريط الخصم
========================================================= */

.discount-ribbon {

    position: absolute;

    top: 22px;

    right: -38px;

    width: 150px;

    padding: 9px 0;

    background:
        linear-gradient(
            135deg,
            #76120f,
            #b72720,
            #76120f
        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 900;

    text-align: center;

    transform: rotate(45deg);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.45);

    z-index: 5;

    letter-spacing: 0.3px;
}


/* =========================================================
   معلومات المنتج
========================================================= */

.offer-info {

    position: relative;

    z-index: 2;
}


.offer-card h3 {

    margin: 20px 0 8px;

    color: #e3b875;

    font-size: 23px;

    font-weight: 900;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.45);

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.offer-card:hover h3 {

    color: #f0c674;

    transform:
        translateY(-2px);
}


.offer-card p {

    margin: 0 8px 15px;

    color: #e1d4ca;

    font-size: 16px;

    line-height: 1.8;

    text-align: center;
}


/* =========================================================
   الأسعار
========================================================= */

.offer-price {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin: 10px 0 20px;
}


/* السعر الجديد - أصغر شوية */

.home-page
.offer-card
.offer-price
.new-price {

    color: #f5c45f !important;

    font-size: 27px !important;

    font-weight: 900 !important;

    text-shadow:
        0 3px 12px
        rgba(245, 196, 95, 0.20);

    transition:
        transform 0.3s ease,
        text-shadow 0.3s ease;
}


.offer-card:hover
.offer-price
.new-price {

    transform:
        scale(1.04);

    text-shadow:
        0 4px 18px
        rgba(245, 196, 95, 0.35);
}


/* السعر القديم */

.home-page
.offer-card
.offer-price
.old-price {

    color: #a89b91 !important;

    font-size: 17px !important;

    font-weight: 600 !important;

    text-decoration:
        line-through !important;

    text-decoration-thickness: 2px;

    opacity: 0.85;
}


/* =========================================================
   زر أضف للسلة
========================================================= */

.offer-card button {

    width: 100%;

    padding: 13px 18px;

    background:
        linear-gradient(
            135deg,
            #5d301b,
            #80502d,
            #5d301b
        );

    background-size: 200% 200%;

    color: #ffffff;

    border:
        1px solid
        rgba(215, 161, 93, 0.65);

    border-radius: 50px;

    font-size: 17px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-position 0.5s ease;
}


.offer-card button:hover {

    transform:
        translateY(-4px);

    background-position:
        100% 50%;

    box-shadow:
        0 12px 27px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(215, 161, 93, 0.13);
}


.offer-card button i {

    margin-left: 8px;

    transition:
        transform 0.3s ease;
}


.offer-card button:hover i {

    transform:
        scale(1.12);
}


/* =========================================================
   زر اطلب الآن
========================================================= */

.order-button {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    width: fit-content;

    margin: 65px auto 75px;

    padding: 16px 40px;

    background:
        linear-gradient(
            135deg,
            #6b3e26,
            #8b542d,
            #6b3e26
        );

    background-size: 200% 200%;

    color: #ffffff;

    border:
        1px solid #d7a15d;

    border-radius: 50px;

    font-size: 19px;

    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-position 0.5s ease;
}


/* الخطين */

.order-button::before,
.order-button::after {

    content: "";

    position: absolute;

    top: 50%;

    width: 110px;

    height: 1px;

    opacity: 0.75;

    transition:
        width 0.35s ease,
        opacity 0.35s ease;
}


.order-button::before {

    right: 100%;

    margin-right: 20px;

    background:
        linear-gradient(
            to right,
            transparent,
            #d7a15d
        );
}


.order-button::after {

    left: 100%;

    margin-left: 20px;

    background:
        linear-gradient(
            to left,
            transparent,
            #d7a15d
        );
}


.order-button:hover {

    transform:
        translateY(-5px);

    background-position:
        100% 50%;

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.58),
        0 0 25px rgba(215, 161, 93, 0.16);
}


.order-button:hover::before,
.order-button:hover::after {

    width: 130px;

    opacity: 1;
}


.order-button i {

    transition:
        transform 0.3s ease;
}


.order-button:hover i {

    transform:
        translateX(-5px);
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1100px) {

    .offers-container {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 650px) {

    .home-hero {

        min-height: 500px;

        padding:
            55px 15px 70px;

    }


    .home-hero::before {

        width: 105px;
        height: 105px;

        font-size: 76px;

    }


    .home-hero h1 {

        font-size: 42px;

    }


    .home-hero p {

        font-size: 17px;

        padding:
            0 15px;

    }


    .hero-button {

        padding:
            13px 26px;

        font-size: 17px;

    }


    .offers-title h2 {

        font-size: 38px;

    }


    .offers-title p {

        font-size: 16px;

        padding:
            0 15px;

    }


    .offers-container {

        width: 90%;

        grid-template-columns:
            1fr;

        gap: 24px;

    }


    .offer-card {

        border-radius: 25px;

    }


    .offer-image {

        height: 340px;

        border-radius: 36px;

    }


    .offer-card img {

        border-radius: 36px;

        clip-path:
            inset(
                1px
                1px
                1px
                1px
                round 36px
            );

    }


    .order-button {

        margin-top: 55px;

        margin-bottom: 65px;

        padding:
            14px 30px;

        font-size: 17px;

    }


    .order-button::before,
    .order-button::after {

        width: 45px;

    }


    .order-button:hover::before,
    .order-button:hover::after {

        width: 55px;

    }

}
/* =========================================================
   HOME — PRODUCT MODAL
   ========================================================= */

.home-page .product-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 2, 1, 0.88);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .product-modal.show {
    display: flex;
}


/* صندوق المنتج */

.home-page .product-modal .modal-content {
    width: 760px !important;
    max-width: 90vw !important;

    height: 520px !important;
    max-height: 88vh !important;

    padding: 28px !important;

    background:
        linear-gradient(
            145deg,
            #2b1208 0%,
            #1b0904 55%,
            #100503 100%
        ) !important;

    border: 1px solid rgba(215, 161, 93, 0.55) !important;
    border-radius: 24px !important;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.75),
        inset 0 0 40px rgba(215, 161, 93, 0.04) !important;

    display: grid !important;

    grid-template-columns: 1fr 300px !important;

    grid-template-rows:
        auto
        auto
        auto
        auto
        auto
        1fr
        auto !important;

    column-gap: 35px !important;
    row-gap: 14px !important;

    position: relative !important;

    overflow: hidden !important;

    color: #f6dfbd !important;
}


/* زر X */

.home-page .product-modal .close-modal {
    position: absolute !important;

    top: 14px !important;
    right: 14px !important;

    width: 36px !important;
    height: 36px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 50% !important;

    background: rgba(80, 40, 18, 0.65) !important;

    border: 1px solid rgba(215, 161, 93, 0.45) !important;

    color: #e6b66f !important;

    font-size: 18px !important;

    cursor: pointer !important;

    z-index: 20;

    transition: 0.25s ease;
}

.home-page .product-modal .close-modal:hover {
    background: #6b3e26 !important;
    color: white !important;
    transform: rotate(90deg) !important;
}


/* الصورة */

.home-page .product-modal #modalImage {
    grid-column: 2 !important;
    grid-row: 1 / 7 !important;

    width: 100% !important;
    height: 285px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: auto !important;
    padding: 8px !important;

    border-radius: 18px !important;

    background: rgba(30, 12, 5, 0.65) !important;

    border: 1px solid rgba(215, 161, 93, 0.4) !important;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45) !important;

    transition: transform 0.35s ease;
}

.home-page .product-modal #modalImage:hover {
    transform: scale(1.025);
}


/* اسم المنتج */

.home-page .product-modal #modalTitle {
    grid-column: 1 !important;
    grid-row: 1 !important;

    margin: 5px 0 0 !important;

    color: #f3d19d !important;

    font-size: 30px !important;
    font-weight: 800 !important;

    line-height: 1.3 !important;

    text-align: right !important;
}


/* الوصف */

.home-page .product-modal #modalDescription {
    grid-column: 1 !important;
    grid-row: 2 !important;

    margin: 0 !important;

    color: rgba(246, 223, 189, 0.72) !important;

    font-size: 14px !important;

    line-height: 1.8 !important;

    text-align: right !important;
}


/* أوزان المنتج */

.home-page .product-modal .weight-options {
    grid-column: 1 !important;
    grid-row: 3 !important;

    display: flex !important;

    gap: 10px !important;

    margin: 8px 0 !important;
}

.home-page .product-modal .weight-options button {
    min-width: 105px !important;

    padding: 10px 15px !important;

    border-radius: 10px !important;

    border: 1px solid rgba(215, 161, 93, 0.45) !important;

    background: rgba(40, 17, 8, 0.7) !important;

    color: #f3d19d !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    transition: 0.25s ease !important;
}

.home-page .product-modal .weight-options button:hover {
    background: rgba(107, 62, 38, 0.8) !important;

    border-color: #d7a15d !important;

    transform: translateY(-2px) !important;
}

.home-page .product-modal .weight-options button.active {
    background:
        linear-gradient(
            135deg,
            #8b4d28,
            #5a2d1c
        ) !important;

    border-color: #d7a15d !important;

    color: white !important;

    box-shadow:
        0 5px 15px rgba(107, 62, 38, 0.4) !important;
}


/* الوزن المخصص */

.home-page .product-modal .custom-weight {
    grid-column: 1 !important;
    grid-row: 4 !important;

    margin: 0 !important;
}

.home-page .product-modal .custom-weight label {
    display: block !important;

    margin-bottom: 7px !important;

    color: #d9b27a !important;

    font-size: 13px !important;
}

.home-page .product-modal .custom-weight-input {
    width: 100% !important;

    height: 48px !important;

    display: flex !important;
    align-items: center !important;

    background: rgba(40, 17, 8, 0.85) !important;

    border: 1px solid rgba(215, 161, 93, 0.5) !important;

    border-radius: 10px !important;

    overflow: hidden !important;
}

.home-page .product-modal .custom-weight-input input {
    flex: 1 !important;

    width: 100% !important;
    height: 100% !important;

    padding: 0 14px !important;

    border: none !important;
    outline: none !important;

    background: transparent !important;

    color: #f6dfbd !important;

    font-size: 14px !important;

    text-align: right !important;
}

.home-page .product-modal .custom-weight-input input::placeholder {
    color: #88776d;
}

.home-page .product-modal .custom-weight-input span {
    min-width: 55px !important;
    height: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 10px !important;

    background: #5a2d1c !important;

    color: #f3d19d !important;

    border: none !important;

    font-size: 13px !important;
}


/* السعر */

.home-page .product-modal #modalPrice {
    grid-column: 1 !important;
    grid-row: 5 !important;

    margin: 35px 0 10px !important;

    color: #f0c77f !important;

    font-size: 23px !important;

    font-weight: 800 !important;

    text-align: right !important;
}


/* الكمية */

.home-page .product-modal .quantity {
    grid-column: 1 !important;
    grid-row: 6 !important;

    display: flex !important;
    align-items: center !important;

    justify-content: flex-start !important;

    gap: 14px !important;

    margin: 0 !important;
}

.home-page .product-modal .quantity button {
    width: 34px !important;
    height: 34px !important;

    border: 1px solid rgba(215, 161, 93, 0.45) !important;

    border-radius: 50% !important;

    background: #5a2d1c !important;

    color: #f3d19d !important;

    font-size: 18px !important;

    cursor: pointer !important;

    transition: 0.2s ease !important;
}

.home-page .product-modal .quantity button:hover {
    background: #8b4d28 !important;

    border-color: #d7a15d !important;

    transform: scale(1.08) !important;
}

.home-page .product-modal .quantity span {
    min-width: 25px !important;

    color: #f6dfbd !important;

    font-size: 18px !important;

    font-weight: 700 !important;

    text-align: center !important;
}


/* أضف للسلة داخل نافذة المنتج فقط */

.home-page .product-modal .add-to-cart {
    grid-column: 1 / 3 !important;
    grid-row: 7 !important;

    width: 100% !important;
    height: 48px !important;

    margin: 0 !important;

    border-radius: 12px !important;

    border: 1px solid rgba(215, 161, 93, 0.45) !important;

    background:
        linear-gradient(
            135deg,
            #8b4d28,
            #5a2d1c
        ) !important;

    color: white !important;

    font-size: 15px !important;

    font-weight: 800 !important;

    cursor: pointer !important;

    transition: 0.25s ease !important;
}

.home-page .product-modal .add-to-cart:hover {
    background:
        linear-gradient(
            135deg,
            #a96232,
            #6b3e26
        ) !important;

    transform: translateY(-2px) !important;

    box-shadow:
        0 8px 25px rgba(107, 62, 38, 0.4) !important;
}


/* إخفاء أسهم الوزن */

.home-page .product-modal .custom-weight-input input::-webkit-inner-spin-button,
.home-page .product-modal .custom-weight-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.home-page .product-modal .custom-weight-input input {
    -moz-appearance: textfield;
    appearance: textfield;
}


/* حركة النافذة */

@keyframes homeProductModal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-page .product-modal .modal-content {
    animation: homeProductModal 0.3s ease both;
}


/* =========================================================
   PRODUCT MODAL — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-page .product-modal {
        padding: 12px;
    }

    .home-page .product-modal .modal-content {
        width: 94vw !important;
        height: auto !important;
        max-height: 90vh !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 12px !important;

        padding: 22px !important;

        overflow-y: auto !important;
    }

    .home-page .product-modal #modalImage {
        order: 1 !important;

        width: 210px !important;
        height: 230px !important;

        margin: 0 auto !important;
    }

    .home-page .product-modal #modalTitle {
        order: 2 !important;

        text-align: center !important;

        font-size: 25px !important;
    }

    .home-page .product-modal #modalDescription {
        order: 3 !important;

        text-align: center !important;
    }

    .home-page .product-modal .weight-options {
        order: 4 !important;

        justify-content: center !important;
    }

    .home-page .product-modal .custom-weight {
        order: 5 !important;
    }

    .home-page .product-modal #modalPrice {
        order: 6 !important;

        text-align: center !important;
    }

    .home-page .product-modal .quantity {
        order: 7 !important;

        justify-content: center !important;
    }

    .home-page .product-modal .add-to-cart {
        order: 8 !important;
    }
}
/* =========================================================
   HOME — PREMIUM CART
   ========================================================= */

.home-page .cart-modal {
    background: rgba(48, 31, 21, 0.58) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 20px;
}

.home-page .cart-modal .cart-content {
    position: relative;

    width: min(680px, 94vw);
    max-height: 88vh;

    overflow-y: auto;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            #1c0d06 0%,
            #090403 55%,
            #160803 100%
        ) !important;

    border: 1px solid #9a622d !important;

    border-radius: 24px;

    color: #d6a766 !important;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(183, 119, 51, 0.10);

    animation: homeCartShow 0.35s ease both;
}

@keyframes homeCartShow {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-page .cart-modal .cart-content > h2 {
    color: #d9aa68 !important;

    font-size: 28px;
    font-weight: 800;

    text-align: center;

    margin: 0 0 20px;

    padding-bottom: 16px;

    border-bottom:
        1px solid rgba(183, 119, 51, 0.45);

    text-shadow:
        0 0 12px rgba(217, 170, 104, 0.15);
}

.home-page .cart-modal .cart-content > h2::before {
    content: "\f291";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: #bd7d38;

    margin-left: 10px;
}


/* X */

.home-page .cart-modal .close-modal {
    width: 36px;
    height: 36px;

    padding: 0;

    border-radius: 50%;

    background: #241108 !important;

    border: 1px solid #71451f !important;

    color: #bd8141 !important;

    transition: 0.3s;
}

.home-page .cart-modal .close-modal:hover {
    background: #6d3b1b !important;

    border-color: #c58b48 !important;

    color: #f0c98f !important;

    transform: rotate(90deg);
}


/* المنتج */

.home-page .cart-modal .cart-item {
    position: relative;

    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 14px;

    padding: 15px;

    background:
        linear-gradient(
            145deg,
            #291308,
            #160804
        ) !important;

    border:
        1px solid rgba(174, 111, 49, 0.55) !important;

    border-radius: 17px;

    color: #d5a665 !important;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition: 0.3s;
}

.home-page .cart-modal .cart-item:hover {
    border-color:
        rgba(207, 145, 70, 0.75) !important;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 15px rgba(183, 119, 51, 0.08);
}


/* صورة */

.home-page .cart-modal .cart-item-image-box {
    width: 90px;
    height: 90px;

    flex: 0 0 90px;

    overflow: hidden;

    background: #0f0503 !important;

    border:
        1px solid rgba(168, 105, 44, 0.45);

    border-radius: 14px;
}

.home-page .cart-modal .cart-item-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 13px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.45);

    transition: transform 0.35s ease;
}

.home-page .cart-modal .cart-item:hover .cart-item-image {
    transform: scale(1.06);
}


/* المعلومات */

.home-page .cart-modal .cart-item-info {
    flex: 1;
    min-width: 0;
}

.home-page .cart-modal .cart-item-info h3 {
    margin: 0 0 8px;

    color: #e2b875 !important;

    font-size: 18px;
    font-weight: 800;
}

.home-page .cart-modal .cart-item-meta {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}

.home-page .cart-modal .cart-item-meta span {
    background: #321709 !important;

    border:
        1px solid rgba(188, 122, 52, 0.40);

    color: #c99555 !important;

    border-radius: 20px;

    padding: 5px 9px;

    font-size: 12px;
}

.home-page .cart-modal .cart-item-meta i {
    color: #bd7d38 !important;

    margin-left: 4px;
}

.home-page .cart-modal .cart-item-price {
    display: block;

    margin-bottom: 10px;

    color: #dba65e !important;

    font-size: 18px;
    font-weight: 800;
}


/* الكمية */

.home-page .cart-modal .cart-quantity {
    width: fit-content;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 3px;

    background: #0d0503 !important;

    border: 1px solid #74471f !important;

    border-radius: 11px;
}

.home-page .cart-modal .cart-quantity button {
    width: 32px;
    height: 32px;

    padding: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #824b24,
            #4f2713
        ) !important;

    border: 1px solid #99602d !important;

    color: #d59b54 !important;

    font-size: 18px;

    font-weight: 900;

    cursor: pointer;

    transition: 0.25s;
}

.home-page .cart-modal .cart-quantity button:hover {
    background:
        linear-gradient(
            145deg,
            #a86730,
            #6b3519
        ) !important;

    color: #efc17b !important;

    transform: scale(1.06);
}

.home-page .cart-modal .cart-quantity span {
    min-width: 27px;

    color: #bd884b !important;

    background: transparent !important;

    font-size: 16px;

    font-weight: 800;

    text-align: center;
}


/* حذف */

.home-page .cart-modal .remove-item {
    width: 34px;
    height: 34px;

    padding: 0;

    border-radius: 50%;

    background: #250c07 !important;

    border: 1px solid #713222 !important;

    color: #b86149 !important;

    transition: 0.25s;
}

.home-page .cart-modal .remove-item:hover {
    background: #6b2d20 !important;

    border-color: #a45a42 !important;

    color: #e3a08a !important;

    transform: scale(1.08);
}


/* الإجمالي */

.home-page .cart-modal #cartTotal {
    margin: 25px 0 18px;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #351a0b,
            #1b0b05
        ) !important;

    border: 1px solid #885827 !important;

    border-radius: 15px;

    color: #d9a65d !important;

    font-size: 21px;

    font-weight: 800;

    text-align: center;
}

.home-page .cart-modal #cartTotal::before {
    content: "\f02b";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: #c98940;

    margin-left: 9px;
}


/* تفريغ السلة */

.home-page .cart-modal .clear-cart-btn {
    width: auto !important;
    min-width: 115px;

    padding: 8px 13px !important;

    margin: 10px 0 0 auto !important;

    display: block;

    background: #180704 !important;

    border: 1px solid #713c26 !important;

    border-radius: 9px;

    color: #b96e53 !important;

    font-size: 12px;

    font-weight: 700;

    transition: 0.25s;
}

.home-page .cart-modal .clear-cart-btn::before {
    content: "\f2ed";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    margin-left: 6px;
}

.home-page .cart-modal .clear-cart-btn:hover {
    background: #32120b !important;

    border-color: #96543b !important;

    color: #dc9178 !important;
}


/* إتمام الطلب */

.home-page .cart-modal .checkout-button {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;

    height: 42px !important;

    padding: 0 14px !important;

    margin: 10px 0 0 auto !important;

    display: flex !important;

    align-items: center;
    justify-content: center;

    gap: 8px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #a96832,
            #633319
        ) !important;

    border: 1px solid #c18443 !important;

    border-radius: 10px !important;

    color: #f0c98a !important;

    font-size: 13px !important;

    font-weight: 800 !important;

    transition: 0.25s;
}

.home-page .cart-modal .checkout-button::before {
    content: none !important;
}

.home-page .cart-modal .checkout-button::after {
    content: "\f1d8";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: #f3d09a;
}

.home-page .cart-modal .checkout-button:hover {
    background:
        linear-gradient(
            135deg,
            #bd793b,
            #78411f
        ) !important;

    border-color: #d39a58 !important;

    color: #ffe0aa !important;

    transform: translateY(-2px);
}


/* السلة الفاضية */

.home-page .cart-modal .empty-cart {
    background: #120604 !important;

    border:
        1px solid rgba(166, 103, 45, 0.35);

    border-radius: 16px;

    color: #c79455 !important;
}

.home-page .cart-modal .empty-cart h3 {
    color: #dcae68 !important;
}

.home-page .cart-modal .empty-cart p,
.home-page .cart-modal .empty-cart span {
    color: #96704c !important;
}

.home-page .cart-modal .empty-cart-icon {
    color: #b97835 !important;
}


/* Scrollbar */

.home-page .cart-modal ::-webkit-scrollbar {
    width: 6px;
}

.home-page .cart-modal ::-webkit-scrollbar-track {
    background: #0b0302;
}

.home-page .cart-modal ::-webkit-scrollbar-thumb {
    background: #70421f;
    border-radius: 20px;
}

.home-page .cart-modal ::-webkit-scrollbar-thumb:hover {
    background: #a86b31;
}


/* موبايل السلة */

@media (max-width: 600px) {

    .home-page .cart-modal .cart-content {
        width: 92%;
        padding: 16px;
        border-radius: 20px;
    }

    .home-page .cart-modal .cart-content > h2 {
        font-size: 24px;
    }

    .home-page .cart-modal .cart-item {
        gap: 10px;
        padding: 11px;
    }

    .home-page .cart-modal .cart-item-image-box {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .home-page .cart-modal .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .home-page .cart-modal .cart-item-info h3 {
        font-size: 15px;
    }

    .home-page .cart-modal .cart-item-price {
        font-size: 15px;
    }

    .home-page .cart-modal #cartTotal {
        font-size: 18px;
    }
}
/* =========================================================
   HOME — PREMIUM CHECKOUT
   ========================================================= */

.home-page .checkout-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(8, 3, 1, 0.78);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-page .checkout-content {
    width: min(950px, 94vw);

    max-height: 92vh;

    overflow-y: auto;

    position: relative;

    padding: 28px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #1b0904,
            #0b0302 55%,
            #170704
        ) !important;

    border: 1px solid #9b5d25 !important;

    border-radius: 24px;

    color: #e8c48b !important;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.75),
        0 0 45px rgba(170,100,35,0.14);
}

.home-page .checkout-close {
    position: absolute;

    top: 18px;
    left: 18px;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #2b1208 !important;

    border: 1px solid #875126 !important;

    border-radius: 50%;

    color: #d89b51 !important;

    font-size: 17px;

    cursor: pointer;

    transition: 0.25s;
}

.home-page .checkout-close:hover {
    background: #713b1c !important;

    color: #fff !important;

    border-color: #c8873d !important;

    transform: rotate(90deg);
}

.home-page .checkout-header {
    text-align: center;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(184,119,48,0.38);
}

.home-page .checkout-header h2 {
    margin: 0 0 8px;

    color: #e5b66f !important;

    font-size: 32px;

    font-weight: 900;
}

.home-page .checkout-header > i {
    color: #c8873d;

    font-size: 30px;

    margin-left: 8px;
}

.home-page .checkout-header p {
    margin: 0;

    color: #9f7a56 !important;

    font-size: 14px;
}

.home-page .checkout-body {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 22px;
}

.home-page .checkout-form {
    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #1b0a05,
            #100503
        ) !important;

    border:
        1px solid rgba(168,100,38,0.55);

    border-radius: 18px;
}

.home-page .checkout-field {
    margin-bottom: 17px;
}

.home-page .checkout-field:last-child {
    margin-bottom: 0;
}

.home-page .checkout-field label {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 8px;

    color: #d9a45f !important;

    font-size: 15px;

    font-weight: 800;
}

.home-page .checkout-field label i {
    color: #c8873d;

    width: 18px;

    text-align: center;
}

.home-page .checkout-field input,
.home-page .checkout-field select,
.home-page .checkout-field textarea {
    width: 100%;

    box-sizing: border-box;

    background: #120604 !important;

    border:
        1px solid rgba(172,105,43,0.58) !important;

    border-radius: 11px;

    color: #ead0a4 !important;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    transition: 0.25s;
}

.home-page .checkout-field input,
.home-page .checkout-field select {
    height: 47px;

    padding: 0 14px;
}

.home-page .checkout-field textarea {
    min-height: 105px;

    padding: 13px 14px;

    resize: vertical;
}

.home-page .checkout-field input::placeholder,
.home-page .checkout-field textarea::placeholder {
    color: #75583f !important;
}

.home-page .checkout-field input:focus,
.home-page .checkout-field select:focus,
.home-page .checkout-field textarea:focus {
    border-color: #c8873d !important;

    box-shadow:
        0 0 0 3px rgba(200,135,61,0.09);
}

.home-page .checkout-field select option {
    background: #160704;
    color: #e8c48b;
}

.home-page .checkout-summary {
    padding: 22px;

    background:
        linear-gradient(
            145deg,
            #1d0b05,
            #100402
        ) !important;

    border:
        1px solid rgba(168,100,38,0.55);

    border-radius: 18px;
}

.home-page .checkout-summary h3 {
    margin: 0 0 20px;

    padding-bottom: 15px;

    border-bottom:
        1px solid rgba(184,119,48,0.35);

    color: #e4b873 !important;

    font-size: 20px;

    font-weight: 900;
}

.home-page .checkout-summary h3 i {
    color: #c8873d;
    margin-left: 8px;
}

.home-page .summary-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 0;

    border-bottom:
        1px dashed rgba(170,105,42,0.35);
}

.home-page .summary-row span {
    color: #b9956d;
    font-size: 15px;
}

.home-page .summary-row strong {
    color: #e0ad65 !important;
    font-size: 17px;
}

.home-page .summary-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 18px;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #3a1a09,
            #211006
        ) !important;

    border: 1px solid #9b5d25;

    border-radius: 14px;
}

.home-page .summary-total span {
    color: #e3b66f;

    font-size: 17px;

    font-weight: 800;
}

.home-page .summary-total span i {
    color: #c8873d;

    margin-left: 7px;
}

.home-page .summary-total strong {
    color: #f0c27b !important;

    font-size: 24px;

    font-weight: 900;
}

.home-page .delivery-note {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 18px;

    padding: 14px;

    background: #130604 !important;

    border:
        1px solid rgba(151,91,38,0.4);

    border-radius: 12px;

    color: #997653;

    font-size: 12px;

    line-height: 1.7;
}

.home-page .delivery-note i {
    color: #c8873d;

    font-size: 20px;

    flex-shrink: 0;
}

.home-page .confirm-order-btn {
    width: 100%;

    height: 54px;

    margin-top: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background:
        linear-gradient(
            135deg,
            #b87335,
            #713b1c
        ) !important;

    border: 1px solid #d09551 !important;

    border-radius: 13px;

    color: #fff0d0 !important;

    font-size: 17px;

    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(159,91,34,0.3);

    transition: 0.25s;
}

.home-page .confirm-order-btn:hover {
    background:
        linear-gradient(
            135deg,
            #ce8741,
            #874820
        ) !important;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(190,120,55,0.4);
}


/* Checkout mobile */

@media (max-width: 750px) {

    .home-page .checkout-content {
        padding: 20px;
        max-height: 94vh;
    }

    .home-page .checkout-body {
        grid-template-columns: 1fr;
    }

    .home-page .checkout-header h2 {
        font-size: 26px;
    }
}

@media (max-width: 450px) {

    .home-page .checkout-content {
        padding: 16px;
        border-radius: 18px;
    }

    .home-page .checkout-form,
    .home-page .checkout-summary {
        padding: 15px;
    }
}