* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #faf8f3;
    color: #222;
}

/* HEADER */

header {
    width: 100%;
    padding: 20px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

.cart-btn {
    border: none;
    background: #222;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    background: linear-gradient(
        120deg,
        #eee7d8,
        #faf8f3
    );
}

.hero-content {
    max-width: 650px;
}

.tagline,
.section-tag {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 78px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 span {
    font-style: italic;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 550px;
}

.shop-btn {
    margin-top: 30px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* PRODUCTS */

.products {
    padding: 80px 6%;
}

.products h2 {
    font-size: 40px;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.product-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee9df;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #777;
}

.product-image {
    height: 260px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ee;
    border-radius: 10px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.product-card p {
    color: #777;
    margin-bottom: 15px;
}

.product-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 15px;
}

.product-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 7px;
    background: #222;
    color: white;
    cursor: pointer;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 50px 20px;
    background: #222;
    color: white;
}

footer p {
    margin-top: 10px;
    color: #ccc;
}

/* MOBILE */

@media (max-width: 768px) {

    header {
        padding: 16px 5%;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 600px;
        padding: 50px 7%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .products {
        padding: 60px 5%;
    }

    .products h2 {
        font-size: 32px;
    }
}

/* CART PANEL */

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    background: white;
    z-index: 1000;
    padding: 25px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
    display: none;
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header button {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

#cartItems {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin-bottom: 7px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
}

.remove-btn {
    border: none;
    background: none;
    color: #777;
    cursor: pointer;
    margin-top: 5px;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding: 40px 0;
}

@media (max-width: 500px) {
    .cart-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* CHECKOUT */

.checkout-section {
    display: none;
    padding: 80px 6%;
    background: #faf8f3;
}

.checkout-section.show {
    display: block;
}

.checkout-container {
    max-width: 650px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.checkout-container h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.checkout-container > p {
    color: #777;
    margin-bottom: 30px;
}

#checkoutForm {
    display: flex;
    flex-direction: column;
}

#checkoutForm label {
    margin: 15px 0 7px;
    font-weight: 600;
}

#checkoutForm input,
#checkoutForm textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
}

#checkoutForm textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-summary {
    display: flex;
    justify-content: space-between;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 20px;
}

.place-order-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: white;
    font-size: 17px;
    cursor: pointer;
}

@media (max-width: 600px) {

    .checkout-container {
        padding: 25px 20px;
    }

    .checkout-container h2 {
        font-size: 30px;
    }
}

/* PROFESSIONAL CHECKOUT */

.checkout-section {
    display: none;
    padding: 80px 6%;
    background: #faf8f3;
}

.checkout-section.show {
    display: block;
}

.checkout-container {
    max-width: 1100px;
    margin: auto;
}

.checkout-title {
    text-align: center;
    margin-bottom: 45px;
}

.checkout-title h2 {
    font-size: 42px;
    margin-bottom: 12px;
}

.checkout-title p:last-child {
    color: #777;
    font-size: 16px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.order-summary,
.customer-details {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.order-summary h3,
.customer-details h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.checkout-product-info {
    flex: 1;
}

.checkout-product-info h4 {
    margin-bottom: 6px;
}

.checkout-product-info p {
    color: #777;
    font-size: 14px;
}

.checkout-product-price {
    font-weight: bold;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 21px;
}

.summary-total strong {
    font-size: 25px;
}

.customer-details form {
    display: flex;
    flex-direction: column;
}

.customer-details label {
    margin: 14px 0 7px;
    font-weight: 600;
}

.customer-details input,
.customer-details textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
}

.customer-details textarea {
    min-height: 100px;
    resize: vertical;
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: white;
    font-size: 17px;
    cursor: pointer;
}

.place-order-btn:hover {
    opacity: 0.9;
}


/* MOBILE CHECKOUT */

@media (max-width: 768px) {

    .checkout-section {
        padding: 55px 5%;
    }

    .checkout-title h2 {
        font-size: 32px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary,
    .customer-details {
        padding: 22px;
    }
}

/* ===============================
   HEADER ACTIONS
================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* My Orders Button */

.my-orders-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 1px solid #26704a;
    border-radius: 8px;

    background: white;
    color: #26704a;

    text-decoration: none;
    font-weight: 600;

    transition: 0.2s;
}

.my-orders-btn:hover {
    background: #26704a;
    color: white;
}


/* Cart Button */

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 16px;

    border: 0;
    border-radius: 8px;

    background: #26704a;
    color: white;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition: 0.2s;
}

.cart-btn:hover {
    background: #1d5839;
}


/* Cart Count */

.cart-btn span {
    display: inline-flex;

    min-width: 22px;
    height: 22px;

    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 50%;

    background: white;
    color: #26704a;

    font-size: 12px;
    font-weight: bold;
}


/* Mobile */

@media (max-width: 700px) {

    header {
        flex-wrap: wrap;
        gap: 12px;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .header-actions {
        margin-left: auto;
    }

    .my-orders-btn,
    .cart-btn {
        padding: 9px 11px;
        font-size: 13px;
    }
}