body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f6f6f6;
    color: #111;
}

a { text-decoration: none; color: inherit; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
}

.logo span { color: #e63946; }

.main-nav a {
    margin: 0 10px;
    font-weight: 500;
}

.header-actions a {
    margin-left: 15px;
}

.hero {
    background: url('/assets/images/hero.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 15px;
    border-radius: 30px;
}

.btn.primary {
    background: #e63946;
    color: #fff;
}

.section {
    padding: 50px 30px;
}

.section.alt {
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0 5px;
}

.sale {
    color: #e63946;
    font-weight: bold;
}

.site-footer {
    padding: 20px;
    text-align: center;
    background: #111;
    color: #fff;
}

/* CLEAN PRODUCT PAGE LAYOUT */

.clean-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    padding: 50px 30px;
}

/* LEFT SIDE */
.product-info {
    display: flex;
    flex-direction: column;
}

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

.price {
    font-size: 1.7rem;
    font-weight: bold;
    margin: 15px 0;
}

.description {
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ADD TO CART */
.add-cart-form label {
    font-weight: 500;
}

.add-cart-form input[type="number"] {
    width: 80px;
    padding: 6px;
    margin: 10px 0 20px;
}

.full-width {
    width: 100%;
}

/* RIGHT SIDE */
.product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-product-image {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-row img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.thumbnail-row img:hover {
    border-color: #e63946;
}

/* SALE BADGE */
.badge.sale {
    width: fit-content;
    margin-bottom: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
    .clean-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        order: -1;
    }
}

/* CART */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 30px;
}

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

.cart-thumb {
    width: 70px;
    border-radius: 6px;
}

.cart-table input[type="number"] {
    width: 70px;
    padding: 5px;
}

.remove-link {
    color: #e63946;
    font-size: 1.2rem;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-actions .btn {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 20px;
    }

    .cart-table td {
        display: block;
        padding: 10px;
    }

    .cart-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* CHECKOUT */

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
    padding: 40px;
}

.checkout-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}

.checkout-section h2 {
    margin-bottom: 20px;
}

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

.checkout-section input,
.checkout-section textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

.summary {
    height: fit-content;
}

.order-summary {
    list-style: none;
    padding: 0;
}

.order-summary li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* PAYMENT */

.payment-box {
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.payment-box h2 {
    margin-bottom: 20px;
}

.payment-box hr {
    margin: 30px 0;
}

