* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section {
    width: min(1200px, 92%);
    margin: 24px auto;
}

/* ====== HEADER ====== */
.site-header {
    background: #ee4d2d;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    letter-spacing: .3px;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.search-box button {
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.main-nav {
    justify-self: end;
    display: inline-flex;
    gap: 14px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    opacity: .95;
    padding: 6px 8px;
    border-radius: 8px;
}

.main-nav a.active,
.main-nav a:hover {
    background: rgba(255, 255, 255, .15);
}

.badge {
    background: #fff;
    color: #ee4d2d;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 6px;
}

/* ====== BANNER ====== */
.banner {
    width: 100%;
    background: linear-gradient(135deg, #ff6a3d, #ee4d2d);
    color: #fff;
    text-align: center;
    padding: 64px 16px;
}

.banner .btn {
    margin-top: 12px;
}

/* ====== BUTTONS ====== */
.btn {
    background: #ee4d2d;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: transform .08s ease, opacity .2s;
}

.btn:hover {
    opacity: .95;
}

.btn:active {
    transform: translateY(1px);
}

.btn.ghost {
    background: #fff;
    color: #ee4d2d;
    border: 1px solid #ee4d2d;
}

/* ====== PRODUCTS ====== */
.products h2 {
    margin: 6px 0 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.product-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.product-card .product-name {
    font-size: 1.05rem;
    margin: 6px 0;
}

.price-row {
    margin: 4px 0 8px;
}

.old-price {
    text-decoration: line-through;
    color: #9e9e9e;
    margin-right: 6px;
}

.price {
    color: #d32f2f;
    font-weight: 800;
}

.actions {
    display: flex;
    gap: 8px;
}

/* ====== FILTERS ====== */
.filters {
    text-align: center;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    margin: 4px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ee4d2d;
    color: #fff;
    border-color: #ee4d2d;
}

/* ====== POPUP ====== */
.popup {
    position: fixed;
    right: -320px;
    top: 20px;
    z-index: 9999;
    background: #2e7d32;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    transition: right .45s ease;
}

/* ====== CART TABLE ====== */
.cart-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.cart-table th,
.cart-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.cart-table th {
    background: #ffebea;
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.cart-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ====== CHECKOUT ====== */
.checkout {
    display: grid;
    gap: 16px;
}

.form-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    display: grid;
    gap: 10px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.order-summary {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

/* ====== AUTH ====== */
.auth-card {
    width: min(440px, 94%);
    margin: 24px auto;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    display: grid;
    gap: 10px;
}

.auth-card form {
    display: grid;
    gap: 10px;
}

.auth-card input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.muted {
    color: #666;
}

/* ====== FOOTER ====== */
.site-footer {
    text-align: center;
    padding: 22px 16px;
    color: #666;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .main-nav {
        justify-self: start;
        flex-wrap: wrap;
    }
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

.product-img {
    flex: 1;
}

.product-img img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    flex: 2;
}

.product-info h1 {
    margin-top: 0;
}

.price {
    font-size: 20px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

.new-price {
    color: red;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-buy {
    background-color: #ff4d4d;
    color: white;
}

.btn-cart {
    background-color: #ffa64d;
    color: white;
}

a.back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: blue;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

.product-img {
    flex: 1;
}

.product-img img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    flex: 2;
}

.product-info h1 {
    margin-top: 0;
}

.price {
    font-size: 20px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

.new-price {
    color: red;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-buy {
    background-color: #ff4d4d;
    color: white;
}

.btn-cart {
    background-color: #ffa64d;
    color: white;
}

a.back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: blue;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

.product-img {
    flex: 1;
}

.product-img img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    flex: 2;
}

.product-info h1 {
    margin-top: 0;
}

.price {
    font-size: 20px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

.new-price {
    color: red;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-buy {
    background-color: #ff4d4d;
    color: white;
}

.btn-cart {
    background-color: #ffa64d;
    color: white;
}

a.back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: blue;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

.product-img {
    flex: 1;
}

.product-img img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    flex: 2;
}

.product-info h1 {
    margin-top: 0;
}

.price {
    font-size: 20px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

.new-price {
    color: red;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-buy {
    background-color: #ff4d4d;
    color: white;
}

.btn-cart {
    background-color: #ffa64d;
    color: white;
}

a.back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: blue;
}
 body {
            font-family: Arial, sans-serif;
            background: #f8f8f8;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 1000px;
            margin: 30px auto;
            background: white;
            padding: 20px;
            border-radius: 10px;
            display: flex;
            gap: 20px;
        }
        .product-img {
            flex: 1;
        }
        .product-img img {
            width: 100%;
            border-radius: 8px;
        }
        .product-info {
            flex: 2;
        }
        .product-info h1 {
            margin-top: 0;
        }
        .price {
            font-size: 20px;
            margin: 10px 0;
        }
        .old-price {
            text-decoration: line-through;
            color: gray;
            margin-right: 10px;
        }
        .new-price {
            color: red;
            font-weight: bold;
        }
        .btn {
            display: inline-block;
            padding: 10px 15px;
            margin-right: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .btn-buy {
            background-color: #ff4d4d;
            color: white;
        }
        .btn-cart {
            background-color: #ffa64d;
            color: white;
        }
        a.back {
            display: inline-block;
            margin-top: 20px;
            text-decoration: none;
            color: blue;
        }