body {
    font-family: Arial;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* HEADER */

header {
    background: #2e7d32;
    color: white;
    padding: 10px;
    text-align: center;
}

/* MOBILE NAV */

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
    font-size: 14px;
}

/* HERO */

.hero {
    text-align: center;
    padding: 30px 15px;
}

/* BUTTONS */

.btn {
    display: inline-block;
    width: 100%;
    max-width: 300px;   /* 👈 prevents overflow */
    box-sizing: border-box; /* 👈 VERY IMPORTANT */
    text-align: center;
    background: green;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    margin: 10px auto 0;
    text-decoration: none;
}

.btn.secondary {
    background: #555;
}

/* LAYOUT */

.container {
    padding: 15px;
    max-width: 900px;
    margin: auto;
}

section {
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    color: #2e7d32;
}

h3 {
    color: #2e7d32;
}

p {
    line-height: 1.5;
}

/* GRID */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CARDS */

.card {
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 6px;
}

/* STOCK */

.in-stock { color: green; }
.out { color: red; }

/* CART */

.cart-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 15px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.cart-item div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.cart-total {
    font-size: 18px;
    margin-top: 10px;
}

.warning {
    color: red;
    font-weight: bold;
}

.remove-btn {
    margin-left: 10px;
    color: red;
    text-decoration: none;
    font-weight: bold;
}

.clear-btn {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    background: #ccc;
    padding: 8px 12px;
    text-decoration: none;
    color: black;
    border-radius: 5px;
}

.cart-actions {
    margin-top: 10px;
}

/* ABOUT PAGE */

.highlight {
    background: #e8f5e9;
    padding: 12px;
    border-left: 5px solid #2e7d32;
    margin: 15px 0;
}

blockquote {
    font-style: italic;
    background: #f9f9f9;
    padding: 12px;
    border-left: 5px solid #ccc;
    margin: 15px 0;
}

/* CONTACT PAGE */

.subtitle {
    margin-bottom: 20px;
    color: #555;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form, .contact-info {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-form button {
    width: 100%;
}

/* CHECKOUT */

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.checkout-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.summary-item.total {
    font-size: 18px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.payment-box {
    background: #f9f9f9;
    padding: 12px;
    border-left: 4px solid #2e7d32;
}

/* SUCCESS PAGE */

.success-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.success-msg {
    margin-bottom: 15px;
}

.success-details {
    background: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
}

.success-note {
    background: #e8f5e9;
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #2e7d32;
}

.success-actions .btn {
    width: 100%;
    margin-top: 10px;
}

/* DESKTOP ENHANCEMENTS */

@media (min-width: 768px) {

    .checkout-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 2fr 1fr;
    }

    .btn {
        width: auto;
    }

    .success-actions .btn {
        width: auto;
    }

    .cart-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* SHOP LAYOUT */

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* DESKTOP VIEW */
@media (min-width: 992px) {
    .shop-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* CART SIDEBAR */

.shop-cart {
    position: sticky;
    top: 20px;
}

/* HERO IMAGE */

.hero-image {
    background: url('../images/hero_60_p.png') no-repeat center center/cover;
    height: 70vh;
    position: relative;
}

/* DARK OVERLAY FOR TEXT READABILITY */
.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

/* CONTENT */
.hero-content {
    color: white;
    padding: 20px;
    max-width: 600px;
}

/* TITLE */
.hero-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* TEXT */
.hero-sub {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* DESKTOP ENHANCEMENT */
@media (min-width: 768px) {

    .hero-image {
        height: 85vh;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-sub {
        font-size: 18px;
    }
}