.payment-options label {
    font-weight: 600;
    color: #36201a;
    margin-top: 0.75rem;
    display: block;
}

/* Stock information styles */
.stock-info {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-label {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-label.in-stock {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.stock-label.out-of-stock {
    background-color: #fde8e8;
    color: #e53e3e;
}

.stock-qty {
    color: #666;
    font-size: 0.875rem;
}

button.add-to-cart:disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
}
.payment-options select {
    margin-top: 0.35rem;
    padding: 0.6rem;
    border: 1px solid #e6e0dc;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    background: #faf8f6;
    color: #36201a;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #36201a;
    background-color: white;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #36201a;
}

.nav-links a {
    text-decoration: none;
    color: #8b766a;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #36201a;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #36201a;
    color: white;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-background.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #36201a;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #8b766a;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Products Section */
.products {
    padding: 8rem 5% 5rem 5%;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 400px;
    justify-self: center;
}

/* Make product cards equal height within the CSS grid by using a column flex layout
   and allowing the card to stretch to the grid row height. This ensures all cards
   in the same row are visually consistent regardless of content length. */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    width: 100%;
    /* enforce a consistent aspect ratio so images don't determine card height */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f6f4;
}

.product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    /* allow the info area to grow so cards remain equal height */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: #36201a;
    font-weight: bold;
    font-size: 1.1rem;
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #36201a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #8b766a;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 2rem;
    z-index: 1001;
}

.close-cart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

.close-cart:hover {
    color: #8b766a;
}

.cart-modal.active {
    display: block;
}

.cart-items {
    max-height: 60vh;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.cart-item-details p {
    margin: 0;
    color: #36201a;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #36201a;
    color: white;
    border-color: #36201a;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-btn {
    background: transparent;
    border: 1px solid #8b766a;
    border-radius: 6px;
    color: #36201a;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background-color: #8b766a;
    color: white;
    border-color: #8b766a;
}

.remove-btn i {
    font-size: 0.875rem;
}

.cart-total {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #36201a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #8b766a;
}

/* Info Modals (About, Contact) */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    overflow-y: auto;
}

.info-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #36201a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #8b766a;
}

.modal-body {
    color: #666;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: #36201a;
    width: 20px;
}

.contact-form h3 {
    color: #36201a;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: #36201a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #8b766a;
}

/* Footer */
footer {
    background-color: #36201a;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cart-modal {
        width: 100%;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
}

/* Checkout specific layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    color: #36201a;
    margin-bottom: 1rem;
    text-align: left;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}
.checkout-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
}
.checkout-form h2 {
    margin-bottom: 0.5rem;
    color: #36201a;
}
.checkout-form label { display:block; margin-top:0.75rem; color:#36201a; font-weight:600; }
.checkout-form input { width:100%; padding:0.6rem; margin-top:0.35rem; border:1px solid #e6e0dc; border-radius:6px; }
.order-summary {
    background: white;
    padding: 1rem;
    border-radius: 10px;
}
.order-summary h3 { color:#36201a; margin-bottom:0.5rem; }
.order-items { max-height:360px; overflow:auto; }
.checkout-message { margin-top:1rem; color:#36201a; font-weight:700; }

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
}