* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1b1c1f;
    background: #f8f7f4;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    color: #ffffff;
    background: #116149;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background: #0c4a38;
}

.secondary-link {
    color: #116149;
    background: #e2efe9;
}

.secondary-link:hover {
    color: #ffffff;
}

.secondary-button {
    color: #116149;
    background: #e2efe9;
}

.secondary-button:hover {
    color: #ffffff;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(16px, 5vw, 64px);
    background: #ffffff;
    border-bottom: 1px solid #e8e2d8;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 150px;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.main-nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-nav {
    justify-content: center;
}

.main-nav a {
    font-weight: 700;
}

.language-switcher select {
    min-height: 40px;
    border: 1px solid #cfc7bc;
    border-radius: 6px;
    padding: 0 34px 0 10px;
    color: #1b1c1f;
    background: #ffffff;
    font: inherit;
    font-weight: 700;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    color: #1b1c1f;
    background: #f1ece4;
    font-weight: 800;
}

.cart-link:hover {
    background: #e8e2d8;
}

.cart-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-link span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    color: #ffffff;
    background: #116149;
    text-align: center;
    line-height: 24px;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.page-heading {
    margin-bottom: 32px;
}

.page-heading h1,
.status-page h1 {
    margin: 0 0 8px;
    font-size: 3rem;
    line-height: 1.1;
}

.page-heading p {
    max-width: 620px;
    margin: 0;
    color: #5b5f66;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 58px;
    border: 1px solid #d7d0c5;
    border-radius: 5px;
    padding: 0 10px;
    color: #202226;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.cart-added-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    border: 1px solid #bfdccb;
    border-radius: 8px;
    padding: 18px;
    background: #f0fbf4;
}

.cart-added-message p {
    margin: 0;
    color: #14532d;
    font-weight: 800;
}

.cart-added-message div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: -8px 0 28px;
}

.store-highlights div {
    display: grid;
    place-items: center;
    min-height: 82px;
    border: 1px solid #bfdccb;
    border-radius: 8px;
    background: #f0fbf4;
}

.store-highlights strong {
    color: #116149;
    font-size: 1.35rem;
    text-align: center;
    text-transform: uppercase;
}

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

.product-card,
.cart-item,
.checkout-panel,
.cart-total-box,
.contact-box,
.empty-state,
.status-page {
    border: 1px solid #e8e2d8;
    border-radius: 8px;
    background: #ffffff;
}

.product-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: #ffffff;
    background: #203a43;
    font-weight: 800;
    text-align: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.product-content h2,
.cart-item h2,
.faq-list h2 {
    margin: 0;
    font-size: 1.1rem;
}

.product-content p,
.cart-item p,
.faq-list p,
.contact-box p {
    margin: 0;
    color: #5b5f66;
}

.cart-item small {
    display: block;
    margin-top: 3px;
    color: #8a6f35;
    font-size: 0.78rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.cart-layout {
    display: grid;
    gap: 24px;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr 120px 110px;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.cart-item input,
.checkout-form input,
.checkout-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfc7bc;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
}

.cart-item label,
.checkout-form label,
.contact-form label {
    display: grid;
    gap: 6px;
    color: #3d4147;
    font-weight: 700;
}

.checkout-panel {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.checkout-area {
    display: grid;
    gap: 14px;
}

.cart-total-box {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.summary-row small {
    color: #116149;
    font-weight: 800;
}

.discount-row {
    color: #116149;
}

.total-final-row {
    padding-top: 12px;
    border-top: 1px solid #e8e2d8;
    font-size: 1.25rem;
}

.minimum-order-warning {
    margin: 4px 0 0;
    color: #7f1d1d;
    font-weight: 800;
}

.is-hidden {
    display: none !important;
}

.checkout-form {
    display: grid;
    gap: 14px;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e2d8;
    font-size: 1.15rem;
}

.contact-stack,
.faq-list {
    display: grid;
    gap: 16px;
}

.contact-box,
.empty-state,
.status-page {
    padding: 24px;
}

.contact-box h2 {
    margin: 0 0 14px;
    font-size: 1.3rem;
}

.contact-box h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.faq-list article {
    padding-top: 16px;
    border-top: 1px solid #e8e2d8;
}

.faq-list article:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.notice {
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 700;
}

.notice.error {
    color: #7f1d1d;
    background: #fee2e2;
}

.notice.success {
    color: #14532d;
    background: #dcfce7;
}

.site-footer {
    margin-top: 96px;
    padding: 48px 16px 36px;
    text-align: center;
}

.site-footer img {
    width: min(170px, 46vw);
    height: auto;
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout-form {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-form label:first-child,
    .checkout-form button {
        grid-column: 1 / -1;
    }

    .cart-total-box {
        justify-self: end;
        min-width: 360px;
    }

    .contact-stack {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

    .contact-stack .faq-list {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 14px 16px;
    }

    .brand {
        align-self: center;
        width: 124px;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-top: 4px;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .language-switcher select {
        width: 86px;
    }

    .cart-layout,
    .cart-item {
        grid-template-columns: 1fr;
    }

    .product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .product-footer form,
    .product-footer button {
        width: 100%;
    }

    .cart-added-message {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-added-message div,
    .cart-added-message a {
        width: 100%;
    }

    .store-highlights {
        grid-template-columns: 1fr;
        margin-bottom: 22px;
    }

    .payment-icons {
        gap: 6px;
    }

    .payment-icon {
        height: 26px;
        min-width: 54px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    main {
        width: min(100% - 24px, 1120px);
        padding: 28px 0;
    }

    .page-heading {
        margin-bottom: 22px;
    }

    .page-heading h1,
    .status-page h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .contact-box,
    .empty-state,
    .status-page {
        padding: 18px;
    }
}
