* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #111;
}

/* HEADER */

.site-header {
    min-height: 76px;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    background: #fff;
    z-index: 100;
}

.logo a {
    text-decoration: none;
    color: #111;
    font-size: 24px;
    letter-spacing: 3px;
    font-weight: bold;
}

.header-icons {
    display: flex;
    gap: 18px;
}

.header-icons a,
.main-menu a {
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

/* MENU */

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 28px;
    padding: 0;
    margin: 0;
}

.main-menu li {
    position: relative;
}

.main-menu li ul {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    background: #fff;
    min-width: 220px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 99;
    flex-direction: column;
    gap: 10px;
}

.main-menu li:hover > ul {
    display: flex;
}

/* HOME BANNER */

.home-banner {
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #f6f2ec;
}

.home-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* SECTIONS */

.section {
    padding: 55px 70px;
}

.section h1,
.section h2 {
    margin-top: 0;
}

.section h2 {
    font-size: 34px;
    margin-bottom: 30px;
}

/* CATEGORY */

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

.category-card,
.product-card {
    text-decoration: none;
    color: #111;
}

.category-card img,
.product-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: #f6f2ec;
}

.category-card h3,
.product-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.category-hero {
    padding: 80px 70px;
    background: #f6f2ec;
    text-align: center;
}

.category-hero h1 {
    font-size: 48px;
    margin: 0 0 12px;
}

.category-hero p {
    color: #666;
}

/* PRODUCT */

.product-page {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    padding: 70px;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.product-gallery img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    background: #f6f2ec;
}

.product-info {
    position: sticky;
    top: 30px;
    align-self: start;
}

.product-info h1 {
    font-size: 42px;
    margin: 10px 0;
}

.breadcrumb {
    color: #777;
    font-size: 14px;
}

.price {
    font-size: 24px;
    margin: 20px 0;
}

.sale {
    color: #a67835;
    font-weight: bold;
    margin-right: 8px;
}

.product-info form {
    margin: 30px 0;
}

.product-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.product-info input[type="number"] {
    width: 90px;
    padding: 12px;
    border: 1px solid #ddd;
    margin-right: 15px;
}

.product-section {
    border-top: 1px solid #eee;
    padding-top: 22px;
    margin-top: 22px;
}

/* BUTTONS */

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 28px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    background: #a67835;
}

/* CHECKOUT */

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
}

.checkout-form,
.order-summary {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
}

.checkout-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 13px;
    margin-top: 7px;
    border: 1px solid #ddd;
}

.checkout-form textarea {
    min-height: 120px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.summary-row.total {
    font-size: 22px;
    border-bottom: 0;
}

/* TABLE */

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.danger-link {
    color: #b00020;
    text-decoration: none;
}

/* FOOTER */

.site-footer {
    background: #111;
    color: #fff;
    padding: 45px 70px;
    display: flex;
    justify-content: space-between;
}

.site-footer a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .home-banner {
        height: 450px;
    }

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

    .product-page {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .product-info {
        position: static;
    }

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

@media (max-width: 768px) {
    .site-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .main-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .home-banner {
        height: 320px;
    }

    .section {
        padding: 35px 20px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .category-card img,
    .product-card img {
        height: 260px;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-gallery img {
        height: 480px;
    }

    .site-footer {
        flex-direction: column;
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .home-banner {
        height: 260px;
    }
}