* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f8fa;
    color: #111111;
    line-height: 1.7;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 75px;
    background: #111111;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #1683ff;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #dddddd;
    text-decoration: none;
    font-size: 15px;

    transition: 0.3s;
}

nav a:hover {
    color: #1683ff;
}

.login-btn {
    background: #1683ff;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 10px 20px;

    cursor: pointer;

    font-size: 14px;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    background:
        radial-gradient(circle at center,
        #172235 0%,
        #0d1117 45%,
        #070707 100%);

    color: white;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;

    background: #172b44;

    color: #55a9ff;

    padding: 8px 18px;

    border-radius: 30px;

    font-size: 14px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: 60px;

    line-height: 1.2;

    margin-bottom: 20px;
}

.hero h1 span {
    color: #1683ff;
}

.hero p {
    color: #b8c0cc;

    font-size: 18px;

    max-width: 650px;

    margin: auto;
}

.hero-buttons {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    gap: 15px;
}

.primary-btn,
.secondary-btn {
    text-decoration: none;

    padding: 13px 28px;

    border-radius: 8px;

    font-weight: bold;
}

.primary-btn {
    background: #1683ff;
    color: white;
}

.secondary-btn {
    border: 1px solid #555;
    color: white;
}


/* =========================
   PRODUCTS
========================= */

.products {
    padding: 90px 8%;
}

.section-title {
    text-align: center;

    margin-bottom: 45px;
}

.section-title span,
.about-content span {
    color: #1683ff;

    font-weight: bold;
}

.section-title h2 {
    font-size: 36px;

    margin: 8px 0;
}

.section-title p {
    color: #777;
}

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.product-card {
    background: white;

    border: 1px solid #e5e5e5;

    border-radius: 15px;

    overflow: hidden;

    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.08);
}

.product-image {
    height: 220px;

    background: #edf5ff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 70px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 22px;
}

.category {
    color: #1683ff;

    font-size: 13px;
}

.product-info h3 {
    margin: 8px 0;
}

.product-info p {
    color: #777;

    font-size: 14px;
}

.product-bottom {
    margin-top: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.product-bottom strong {
    font-size: 20px;
}

.product-bottom button {
    background: #111111;

    color: white;

    border: none;

    padding: 9px 15px;

    border-radius: 7px;

    cursor: pointer;
}


/* =========================
   CATEGORIES
========================= */

.categories {
    padding: 80px 8%;

    background: #111111;

    color: white;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.category-box {
    background: #1a1a1a;

    border: 1px solid #2d2d2d;

    border-radius: 12px;

    padding: 30px;

    text-align: center;

    font-size: 35px;

    transition: 0.3s;
}

.category-box:hover {
    border-color: #1683ff;

    transform: translateY(-5px);
}

.category-box h3 {
    font-size: 17px;

    margin-top: 10px;
}


/* =========================
   ABOUT
========================= */

.about {
    padding: 100px 20px;

    background: white;

    text-align: center;
}

.about-content {
    max-width: 700px;

    margin: auto;
}

.about h2 {
    font-size: 36px;

    margin: 10px 0;
}

.about p {
    color: #777;

    font-size: 17px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #080808;

    color: white;

    text-align: center;

    padding: 50px 20px;
}

footer p {
    color: #999;

    margin: 10px 0;
}

.copyright {
    color: #666;

    font-size: 13px;

    margin-top: 20px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .navbar {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 500px) {

    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

}

/* =========================
   PRODUCT PAGE
========================= */

.product-page {

    max-width: 1100px;

    margin: 80px auto;

    padding: 0 25px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

}


.product-main-image {

    background: #edf5ff;

    border-radius: 20px;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.book-placeholder {

    width: 250px;

    height: 350px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.15);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 90px;

}


.product-details h1 {

    font-size: 45px;

    margin: 12px 0 20px;

}


.product-description {

    color: #666;

    font-size: 17px;

    line-height: 1.9;

}


.price {

    color: #1683ff;

    font-size: 32px;

    font-weight: bold;

    margin: 25px 0;

}


.features {

    margin-bottom: 25px;

}


.features p {

    margin: 8px 0;

    color: #444;

}


.buy-button {

    width: 100%;

    max-width: 400px;

    padding: 16px;

    border: none;

    border-radius: 9px;

    background: #1683ff;

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

}


.buy-button:hover {

    background: #006bd6;

}


.secure {

    color: #777;

    font-size: 13px;

    margin-top: 15px;

}


.description-section {

    background: #111;

    color: white;

    padding: 80px 20px;

    text-align: center;

}


.description-section h2 {

    font-size: 32px;

    margin-bottom: 20px;

}


.description-section p {

    max-width: 700px;

    margin: auto;

    color: #bbb;

    line-height: 2;

}


/* PRODUCT MOBILE */

@media (max-width: 800px) {

    .product-page {

        grid-template-columns: 1fr;

        gap: 40px;

        margin: 40px auto;

    }


    .product-main-image {

        min-height: 400px;

    }


    .product-details h1 {

        font-size: 34px;

    }

}

.view-product {
    display: inline-block;
    background: #111;
    color: white;
    padding: 9px 15px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
}

.view-product:hover {
    background: #1683ff;
}

/* صورة المنتج داخل صفحة تفاصيل المنتج */
.product-main-image .product-image {
    width: 300px;
    height: 400px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    font-size: 90px;
}

.product-main-image .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}