* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: sans-serif;
    background: #050505;
    color: white;
}


/* =========================
        HERO
========================= */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(5,5,5,0.05) 35%,
            rgba(5,5,5,0.25) 55%,
            rgba(5,5,5,0.65) 75%,
            #050505 100%
        ),
        url(a8c0e166-536e-4b41-b9a4-eeb058880519.png);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


.hero::after {
    content: "";

    position: absolute;
    inset: -20px;

    background:
        linear-gradient(
            rgba(64, 64, 65, 0.285),
            rgba(188, 190, 192, 0.24)
        ),
        url(a8c0e166-536e-4b41-b9a4-eeb058880519.png);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    filter: blur(8px);

    z-index: 0;
}


.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;

    z-index: 1;
}


.container {
    width: 100%;
    height: 100vh;

    position: relative;

    font-family:
        Impact,
        Haettenschweiler,
        'Arial Narrow Bold',
        sans-serif;

    z-index: 2;
}


/* =========================
        NAVBAR
========================= */

.navbar {
    position: relative;
    z-index: 10;

    display: flex;
    justify-content: center;
    align-items: center;

    width: fit-content;

    margin: 25px auto;

    padding: 12px 18px;

    background:
        linear-gradient(
            135deg,
            rgba(25,25,25,0.88),
            rgba(5,5,5,0.92)
        );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid
        rgba(192,145,54,0.35);

    border-radius: 16px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.8),
        0 0 30px rgba(130,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.06);

    overflow: hidden;
}


.navbar::before {
    content: "";

    position: absolute;

    top: 0;
    left: 15%;

    width: 70%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #c9a24d,
            #fff0b0,
            #c9a24d,
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(201,162,77,0.6);
}


.navbar::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(120,0,0,0.12),
            transparent 65%
        );

    pointer-events: none;
}


.navbar a {
    position: relative;
    z-index: 2;

    text-decoration: none;

    color: #8f8f8f;

    margin: 0 8px;

    padding: 12px 20px;

    font-size: 20px;

    letter-spacing: 2px;

    text-transform: uppercase;

    border-radius: 10px;

    transition: 0.35s ease;
}


.navbar a:hover {
    color: #f1d58a;

    background:
        linear-gradient(
            135deg,
            rgba(130,0,0,0.35),
            rgba(70,0,0,0.12)
        );

    box-shadow:
        inset 0 0 15px
        rgba(160,0,0,0.12),
        0 0 18px
        rgba(150,0,0,0.18);

    transform: translateY(-2px);
}


.navbar a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 5px;

    width: 0;
    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af5a,
            transparent
        );

    box-shadow:
        0 0 8px #c9a24d;

    transition: width 0.35s ease;
}


.navbar a:hover::after {
    width: 65%;
}


/* =========================
        WELCOME
========================= */

.welcome {
    width: 100%;
}


h1 {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90%;

    text-align: center;

    font-family:
        Cambria,
        Cochin,
        Georgia,
        Times,
        'Times New Roman',
        serif;

    font-size:
        clamp(42px, 6vw, 82px);

    font-weight: 700;

    letter-spacing: 7px;
    word-spacing: 8px;

    text-transform: uppercase;

    background:
        linear-gradient(
            180deg,
            #fff4c2 0%,
            #e6c46a 30%,
            #b8872e 65%,
            #6e4813 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    z-index: 3;

    filter:
        drop-shadow(0 2px 0 #000)
        drop-shadow(
            0 0 8px
            rgba(201,162,77,0.35)
        )
        drop-shadow(
            0 0 25px
            rgba(110,0,0,0.35)
        );

    animation:
        titleGlow 4s ease-in-out infinite;
}


h1::before,
h1::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 120px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #b58a38,
            transparent
        );

    box-shadow:
        0 0 10px
        rgba(201,162,77,0.5);
}


h1::before {
    right: calc(100% + 25px);
}


h1::after {
    left: calc(100% + 25px);
}


@keyframes titleGlow {

    0%,
    100% {
        filter:
            drop-shadow(0 2px 0 #000)
            drop-shadow(
                0 0 8px
                rgba(201,162,77,0.3)
            )
            drop-shadow(
                0 0 20px
                rgba(110,0,0,0.3)
            );
    }

    50% {
        filter:
            drop-shadow(0 2px 0 #000)
            drop-shadow(
                0 0 14px
                rgba(201,162,77,0.5)
            )
            drop-shadow(
                0 0 35px
                rgba(110,0,0,0.5)
            );
    }
}


/* =========================
        SHOP
========================= */

.shop {
    min-height: 100vh;

    padding: 100px 6%;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(120,0,0,0.15),
            transparent 35%
        ),
        linear-gradient(
            #050505,
            #090909
        );
}


.category {
    max-width: 1400px;

    margin:
        0 auto 110px;
}


.category-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-bottom: 45px;
}


.category-title span {
    width: 180px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #c9a24d,
            transparent
        );

    box-shadow:
        0 0 10px
        rgba(201,162,77,0.5);
}


.category-title h2 {
    color: #e5c46b;

    font-family:
        Cambria,
        Cochin,
        Georgia,
        serif;

    font-size: 42px;

    letter-spacing: 6px;

    text-transform: uppercase;

    text-shadow:
        0 0 10px
        rgba(201,162,77,0.3),
        0 0 25px
        rgba(120,0,0,0.3);
}


/* =========================
        CARDS
========================= */

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* لتوسيط الكروت في المنتصف */
    gap: 25px;
}

.card {
    position: relative;
    width: 380px; /* تحديد عرض ثابت ومناسب للكارت */
    max-width: 100%; /* لضمان ملاءمته للشاشات الصغيرة */

    padding: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(30,30,30,0.95),
            rgba(8,8,8,0.98)
        );

    border:
        1px solid
        rgba(201,162,77,0.22);

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,0.55),
        inset 0 1px 0
        rgba(255,255,255,0.04);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;

    width: 80%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #c9a24d,
            transparent
        );

    opacity: 0.7;
}


.card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(201,162,77,0.65);

    box-shadow:
        0 20px 45px
        rgba(0,0,0,0.7),
        0 0 25px
        rgba(130,0,0,0.18),
        inset 0 0 20px
        rgba(201,162,77,0.03);
}


.card-image {
    height: 170px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 9px;

    background:
        radial-gradient(
            circle,
            rgba(120,0,0,0.28),
            transparent 60%
        ),
        linear-gradient(
            135deg,
            #171717,
            #050505
        );

    border:
        1px solid
        rgba(201,162,77,0.12);

    color:
        rgba(201,162,77,0.45);

    font-size: 18px;

    letter-spacing: 3px;
}


.card h3 {
    margin-bottom: 8px;

    color: #eeeeee;

    font-family:
        Cambria,
        Cochin,
        Georgia,
        serif;

    font-size: 22px;

    letter-spacing: 1px;
}


.description {
    margin-bottom: 15px;

    color: #aaa;

    line-height: 1.6;

    font-size: 14px;
}


.price {
    margin-bottom: 18px;

    color: #d4af5a;

    font-size: 20px;

    font-weight: bold;

    text-shadow:
        0 0 8px
        rgba(201,162,77,0.25);
}


.card label {
    display: block;

    margin-bottom: 6px;

    color: #777;

    font-size: 12px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.card input {
    width: 100%;

    padding: 10px 12px;

    margin-bottom: 12px;

    color: #eee;

    background: #080808;

    border:
        1px solid
        rgba(201,162,77,0.25);

    border-radius: 7px;

    outline: none;

    font-size: 15px;

    transition: 0.3s ease;
}


.card input:focus {
    border-color: #c9a24d;

    box-shadow:
        0 0 10px
        rgba(201,162,77,0.15);
}


.card button {
    width: 100%;

    padding: 11px;

    color: #080808;

    background:
        linear-gradient(
            135deg,
            #f0d27b,
            #a97822
        );

    border: none;

    border-radius: 7px;

    cursor: pointer;

    font-weight: bold;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: 0.3s ease;
}


.card button:hover {
    background:
        linear-gradient(
            135deg,
            #fff0a8,
            #c99a35
        );

    box-shadow:
        0 0 18px
        rgba(201,162,77,0.3);

    transform: translateY(-2px);
}


/* =========================
        CART
========================= */

.cart-section {
    max-width: 1400px;

    margin: 0 auto;

    padding-top: 20px;
}


.cart-box {
    width: 100%;

    background:
        linear-gradient(
            145deg,
            rgba(25,25,25,0.97),
            rgba(5,5,5,0.98)
        );

    border:
        1px solid
        rgba(201,162,77,0.3);

    border-radius: 16px;

    padding: 25px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,0.7),
        inset 0 1px 0
        rgba(255,255,255,0.04);
}


/* =========================
        ORDER INFO
========================= */

.order-info {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 25px;
}


.info-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.info-field label {
    color: #c9a24d;

    font-size: 13px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.info-field input {
    width: 100%;

    padding: 13px 15px;

    color: #eee;

    background: #080808;

    border:
        1px solid
        rgba(201,162,77,0.25);

    border-radius: 8px;

    outline: none;

    font-size: 15px;

    transition: 0.3s ease;
}


.info-field input:focus {
    border-color: #c9a24d;

    box-shadow:
        0 0 10px
        rgba(201,162,77,0.15);
}


.info-field input::placeholder {
    color: #555;
}


/* =========================
        CART HEADER
========================= */

.cart-header {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr 60px;

    gap: 15px;

    padding: 15px;

    color: #c9a24d;

    border-bottom:
        1px solid
        rgba(201,162,77,0.2);

    font-size: 13px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.cart-item {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr 60px;

    align-items: center;

    gap: 15px;

    padding: 20px 15px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.06);

    color: #ddd;

    transition: 0.3s ease;
}


.cart-item:hover {
    background:
        rgba(130,0,0,0.08);
}


.cart-product {
    color: #eee;

    font-family:
        Cambria,
        Cochin,
        Georgia,
        serif;

    font-size: 18px;
}


.cart-quantity {
    color: #aaa;
}


.cart-price {
    color: #c9a24d;
}


.cart-item-total {
    color: #f1d58a;

    font-weight: bold;
}


.remove-btn {
    width: 35px;
    height: 35px;

    border:
        1px solid
        rgba(150,0,0,0.5);

    border-radius: 7px;

    background:
        rgba(100,0,0,0.15);

    color: #d55;

    cursor: pointer;

    font-size: 16px;

    transition: 0.3s ease;
}


.remove-btn:hover {
    background:
        rgba(150,0,0,0.5);

    color: white;

    box-shadow:
        0 0 15px
        rgba(150,0,0,0.3);
}


.empty-cart {
    padding: 50px 20px;

    text-align: center;

    color: #666;

    font-size: 16px;

    letter-spacing: 2px;
}


/* =========================
        CART TOTAL
========================= */

.cart-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 30px 15px 20px;

    color: #999;

    border-top:
        1px solid
        rgba(201,162,77,0.15);
}


.cart-total > div:first-child {
    font-size: 15px;
}


.cart-total > div:first-child strong {
    color: #eee;

    margin-left: 8px;
}


.grand-total {
    display: flex;

    align-items: center;

    gap: 25px;
}


.grand-total span {
    color: #c9a24d;

    font-size: 18px;

    letter-spacing: 3px;
}


.grand-total strong {
    color: #f1d58a;

    font-size: 32px;

    font-family:
        Cambria,
        Cochin,
        Georgia,
        serif;

    text-shadow:
        0 0 12px
        rgba(201,162,77,0.3);
}


/* =========================
        ACTION BUTTONS
========================= */

.cart-actions {
    display: flex;

    justify-content: flex-end;

    gap: 15px;

    padding: 10px 15px 5px;
}


.cart-actions button {
    padding: 13px 22px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: 0.3s ease;
}


.pdf-button {
    color: #080808;

    border: none;

    background:
        linear-gradient(
            135deg,
            #f0d27b,
            #a97822
        );
}


.pdf-button:hover {
    background:
        linear-gradient(
            135deg,
            #fff0a8,
            #c99a35
        );

    box-shadow:
        0 0 20px
        rgba(201,162,77,0.35);

    transform: translateY(-2px);
}


.clear-button {
    color: #c66;

    border:
        1px solid
        rgba(150,0,0,0.4);

    background:
        rgba(100,0,0,0.12);
}


.clear-button:hover {
    color: white;

    background:
        rgba(130,0,0,0.4);

    border-color:
        rgba(180,0,0,0.7);
}


/* =========================
        MOBILE
========================= */

@media (max-width: 700px) {

    .navbar {
        width: 92%;

        padding: 10px 8px;
    }


    .navbar a {
        margin: 0 2px;

        padding: 10px 9px;

        font-size: 14px;

        letter-spacing: 1px;
    }


    h1 {
        font-size: 40px;

        letter-spacing: 3px;

        word-spacing: 4px;
    }


    h1::before,
    h1::after {
        display: none;
    }


    .shop {
        padding: 70px 20px;
    }


    .category {
        margin-bottom: 80px;
    }


    .category-title {
        gap: 12px;
    }


    .category-title span {
        width: 50px;
    }


    .category-title h2 {
        font-size: 28px;

        letter-spacing: 3px;
    }


    .cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .card-image {
        height: 190px;
    }


    .order-info {
        grid-template-columns: 1fr;
    }


    .cart-box {
        padding: 12px;
    }


    .cart-header {
        display: none;
    }


    .cart-item {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

        padding: 20px 10px;
    }


    .cart-product {
        grid-column: 1 / -1;

        font-size: 20px;
    }


    .cart-quantity::before {
        content: "Qty: ";

        color: #666;
    }


    .cart-price::before {
        content: "Price: ";

        color: #666;
    }


    .cart-item-total::before {
        content: "Total: ";

        color: #666;
    }


    .remove-btn {
        justify-self: end;
    }


    .cart-total {
        flex-direction: column;

        align-items: stretch;

        gap: 25px;
    }


    .grand-total {
        justify-content: space-between;
    }


    .grand-total strong {
        font-size: 26px;
    }


    .cart-actions {
        flex-direction: column;
        padding: 10px 0;
    }


    .cart-actions button {
        width: 100%;
    }

}