
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #faf9f5;
    color: #20382b;
}

.navbar {
    min-height: 82px;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 23px;
    font-weight: bold;
    color: #173c2b;
    text-decoration: none;
}

.logo span {
    color: #a57b43;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #405348;
    font-size: 14px;
}

.cart-button {
    border: none;
    background: #173c2b;
    color: white;
    padding: 13px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.hero {
    min-height: 510px;
    padding: 90px 10%;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(15,42,28,.92), rgba(15,42,28,.25)),
        url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?w=1800")
        center/cover;
    color: white;
}

.hero-content {
    max-width: 560px;
}

.eyebrow {
    color: #b58d55;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    margin: 22px 0;
    line-height: 1.08;
}

.hero p {
    color: #e1e8df;
    line-height: 1.8;
    font-size: 17px;
    max-width: 460px;
    margin-bottom: 30px;
}

.shop-button {
    display: inline-block;
    background: #c5a16b;
    color: #172e20;
    padding: 16px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.products-section {
    padding: 85px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 38px;
    margin: 15px 0;
}

.section-heading p {
    color: #788278;
}

.product-controls {
    display: flex;
    gap: 15px;
    max-width: 750px;
    margin: 0 auto 35px;
}

.product-controls input,
.product-controls select {
    padding: 15px;
    border: 1px solid #deded5;
    border-radius: 6px;
    background: white;
    font-size: 15px;
}

.product-controls input {
    flex: 1;
    min-width: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.about-section {
    padding: 65px 20px;
    text-align: center;
    background: #edf0e8;
}

.about-section h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

footer {
    background: #173c2b;
    color: #e1e8df;
    padding: 30px;
    text-align: center;
    line-height: 2;
    font-size: 13px;
}

/* India-only popup */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 100;
}

.popup {
    background: white;
    padding: 40px 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    border-radius: 12px;
}

.popup h2 {
    margin-bottom: 20px;
}

.popup p {
    color: #66736a;
    line-height: 1.7;
}

.popup button {
    margin-top: 25px;
    background: #173c2b;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

@media(max-width: 700px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 75px 7%;
    }

    .product-controls {
        flex-direction: column;
    }
}

/* Product cards */

.product-card {
    background: white;
    border: 1px solid #e9e8df;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.product-image {
    height: 210px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #edf0e8;
    font-size: 65px;
}

.product-info {
    padding: 22px;
}

.product-category {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    color: #a17b48;
}

.product-info h3 {
    font-size: 18px;
    margin: 12px 0;
    min-height: 44px;
}

.product-price {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 18px;
}

.add-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 5px;
    background: #173c2b;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.add-button:hover {
    background: #285b40;
}
/* Shopping cart */

.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 200;
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100dvh;
    background: #fff;
    z-index: 201;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    transform: translateX(105%);
    transition: transform 0.3s ease;
}

.cart-panel.active {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    font-size: 23px;
}

#close-cart {
    border: none;
    background: #edf0e8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-item {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cart-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: bold;
    margin-bottom: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-controls button {
    border: 1px solid #ddd;
    background: white;
    padding: 7px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-controls .remove-item {
    margin-left: auto;
    color: #b3261e;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #eee;
    background: #faf9f5;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
}

#checkout-button {
    width: 100%;
    padding: 16px;
    background: #173c2b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

#checkout-button:hover {
    background: #285b40;
}

#checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Checkout form */

#checkout-panel {
    z-index: 203;
}

#checkout-overlay {
    z-index: 202;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.checkout-form label {
    font-size: 14px;
    font-weight: bold;
    color: #20382b;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #deded5;
    border-radius: 6px;
    font: inherit;
    outline-color: #285b40;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-form .cart-total {
    margin-top: 18px;
    margin-bottom: 8px;
}

#place-order-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 6px;
    background: #173c2b;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#place-order-button:hover {
    background: #285b40;
}

.checkout-note {
    text-align: center;
    font-size: 12px;
    color: #788278;
    line-height: 1.6;
}
/* Payment recovery banner */

#recovery-banner {
    background: #fff4dc;
    border-bottom: 1px solid #e5c78b;
    padding: 18px;
    text-align: center;
}

#recovery-banner p {
    color: #795b25;
    font-weight: bold;
    margin-bottom: 12px;
}

#recovery-banner[hidden] {
    display: none;
}

#recover-payment:disabled {
    opacity: 0.6;
    cursor: wait;
}
.product-image {
    background: #ffffff;
    height: 250px;
    padding: 15px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Premium product card redesign */

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    border: 1px solid #e7e7df;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    padding: 0;
    background: #edf0e8;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 19px;
    margin: 8px 0;
    min-height: 0;
    line-height: 1.4;
}

.product-info p {
    color: #737d74;
    font-size: 14px;
}

.product-info .product-price {
    font-size: 24px;
    font-weight: 700;
    color: #173c2b;
    margin: 12px 0 16px;
}

.add-button {
    margin-top: auto;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .product-info .product-price {
        font-size: 20px;
    }

    .add-button {
        font-size: 12px;
    }
}
/* Free shipping */

.shipping-banner {
    background: #173c2b;
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #edf7ee;
    color: #173c2b;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.shipping-row strong {
    color: #16803d;
}
/* Store policies */

.store-policies {
    padding: 60px 7%;
    background: #faf9f5;
}

.store-policies > h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.store-policies > p {
    text-align: center;
    color: #788278;
    margin-bottom: 30px;
}

.store-policies details {
    max-width: 900px;
    margin: 12px auto;
    background: white;
    border: 1px solid #e7e7df;
    border-radius: 10px;
    overflow: hidden;
}

.store-policies summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #173c2b;
}

.store-policies details[open] summary {
    background: #edf0e8;
}

.policy-content {
    padding: 20px;
    color: #405348;
    font-size: 15px;
    line-height: 1.8;
}

.policy-content p {
    margin-bottom: 10px;
}

.policy-content ul {
    padding-left: 22px;
    margin-bottom: 15px;
}

.support-button {
    display: inline-block;
    background: #16803d;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}
#new-order {
    background: transparent;
    color: #173c2b;
    border: 1px solid #173c2b;
    margin-left: 8px;
}

#new-order:hover {
    background: #edf0e8;
}

#new-order:disabled {
    opacity: 0.5;
    cursor: wait;
}