/* =========================================================
   Brahmin Groceries
   Clean, senior-friendly stylesheet
   ========================================================= */

:root {
    --green: #1f6b45;
    --green-dark: #124b30;
    --yellow: #f4c542;
    --cream: #fffaf0;
    --ink: #1d2b22;
    --muted: #66736a;
    --line: #e7e1d4;
    --white: #ffffff;
    --soft-green: #f5f8f1;
    --soft-image: #f3eee2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    min-height: 82px;
    padding: 0 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 2px solid var(--green);
    border-radius: 50%;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.brand strong {
    display: block;
    color: var(--green-dark);
    font-size: 21px;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 700;
}

.signin {
    color: var(--green-dark);
}

.cart {
    min-height: 46px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green);
    border-radius: 30px;
    color: var(--green);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    min-height: 500px;
    padding: 70px 9vw 55px;
    display: flex;
    position: relative;
    overflow: hidden;
    background: var(--green);
}

.hero-copy {
    width: 48%;
    padding-top: 25px;
    z-index: 2;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--yellow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.hero h1 {
    margin: 0 0 25px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.05;
    font-weight: 700;
}

.hero h1 em {
    color: var(--yellow);
    font-style: normal;
}

.hero-text {
    max-width: 390px;
    margin: 0 0 32px;
    color: #e6f0e9;
    font-size: 16px;
    line-height: 1.8;
}

.button {
    min-height: 50px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
}

.hero-art {
    width: 52%;
    position: relative;
}

.arch {
    width: min(420px, 80%);
    height: 470px;
    position: absolute;
    top: -30px;
    right: 4%;
    background: linear-gradient(145deg, #f8d96b, #dcae2f);
    border-radius: 220px 220px 0 0;
}

.hero-art::after {
    content: "GROCERIES";
    position: absolute;
    top: 40%;
    right: 14%;
    color: #fff8;
    font-size: 40px;
    transform: rotate(-90deg);
}

.dots {
    position: absolute;
    bottom: 24px;
    left: 9vw;
    display: flex;
    gap: 8px;
}

.dots b,
.dots i {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
    background: var(--yellow);
}

.dots i {
    opacity: 0.45;
}

/* =========================================================
   Shared sections
   ========================================================= */

.section {
    padding: 75px 6vw;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.2;
}

.text-link {
    padding-bottom: 6px;
    border-bottom: 2px solid var(--green);
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
}

/* =========================================================
   Categories
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category {
    min-height: 210px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    background: var(--green);
    color: var(--white);
}

.category:nth-child(even) {
    background: var(--green-dark);
}

.category h3 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
}

.category small {
    font-size: 14px;
    opacity: 0.85;
}

/* =========================================================
   Products
   ========================================================= */

.products {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e1e7dc;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(37, 37, 55, 0.06);
}

.product-image {
    display: block;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: var(--soft-image);
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 20px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-image:hover img {
    transform: scale(1.04);
}

.placeholder {
    width: 125px;
    height: 185px;
    display: grid;
    place-items: center;
    margin: auto;
    background: var(--green);
    color: var(--white);
    font-size: 22px;
    line-height: 1.05;
    text-align: center;
    box-shadow: 0 12px 24px #0001;
}

.tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 7px 9px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.product-meta {
    padding: 20px;
}

.product-title,
.product h3 {
    min-height: 58px;
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.product-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.product-price {
    color: var(--green);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.product-old-price {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: line-through;
}

.product-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

.quantity-label {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.2;
}

.product-quantity strong {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.product-action {
    min-height: 54px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 10px;
    background: var(--green);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 800;
    transition: background 0.2s ease;
}

.product-action:hover {
    background: var(--green-dark);
}

.product-action span {
    font-size: 1.35rem;
}

/* =========================================================
   Pagination
   ========================================================= */

.pagination-summary {
    margin: 34px 0 12px;
    color: #555;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 18px;
    background: #f7faf3;
    border: 1px solid #dce5d6;
    border-radius: 16px;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-button,
.pagination-number {
    min-width: 54px;
    min-height: 54px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd8c4;
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.pagination-button {
    min-width: 125px;
}

.pagination-button:hover,
.pagination-number:hover {
    border-color: var(--green);
    background: #edf5e8;
}

.pagination-number.active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(31, 107, 69, 0.22);
}

/* =========================================================
   Footer
   ========================================================= */

footer {
    padding: 65px 6vw 22px;
    background: var(--green-dark);
    color: var(--white);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 55px;
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand small,
.footer-copy,
.footer-col,
.footer-bottom {
    color: #d8e6dc;
}

.footer-copy {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-size: 14px;
}

.footer-col h4 {
    margin: 0 0 7px;
    color: var(--yellow);
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #ffffff33;
    font-size: 13px;
}

.footer-bottom strong {
    color: var(--yellow);
}

/* =========================================================
   Responsive layout
   ========================================================= */

@media (max-width: 1050px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .site-header {
        min-height: 76px;
        padding: 0 5vw;
    }

    .hero {
        display: block;
        padding: 50px 7vw 80px;
    }

    .hero-copy,
    .hero-art {
        width: 100%;
    }

    .hero-art {
        height: 260px;
        margin-top: 20px;
    }

    .arch {
        width: 70%;
        height: 320px;
        top: 0;
        right: 10%;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image {
        aspect-ratio: 1 / 1;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 52px 5vw;
    }

    .header-actions {
        gap: 10px;
        font-size: 14px;
    }

    .cart {
        min-height: 44px;
        padding: 9px 13px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link {
        display: inline-block;
        margin-top: 16px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-meta {
        padding: 18px;
    }

    .product-title,
    .product h3 {
        min-height: auto;
        font-size: 1.25rem;
    }

    .product-details {
        display: block;
    }

    .product-price {
        margin-bottom: 14px;
        font-size: 1.55rem;
    }

    .product-quantity {
        align-items: flex-start;
        text-align: left;
    }

    .product-action {
        min-height: 56px;
        font-size: 1.1rem;
    }

    .pagination {
        gap: 12px;
        padding: 14px;
    }

    .pagination-button,
    .pagination-number {
        min-width: 56px;
        min-height: 56px;
        padding: 12px;
    }

    .pagination-button {
        min-width: 140px;
    }
}
/* =========================================================
   Product size and cart controls
   ========================================================= */

.product-quantity-info {
    margin: 10px 0 20px;
    color: var(--muted);
    font-size: 1rem;
}

.product-quantity-info strong {
    color: var(--ink);
    font-weight: 800;
}

.size-selector {
    margin-bottom: 22px;
}

.size-label {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-option {
    min-width: 64px;
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid #d4dfcf;
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.size-option:hover {
    border-color: var(--green);
}

.size-option.active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.cart-controls {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.quantity-control {
    min-width: 132px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #cbd8c4;
    border-radius: 10px;
    background: var(--white);
}

.quantity-button {
    width: 42px;
    height: 52px;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.quantity-button:hover {
    background: var(--soft-green);
}

.quantity-value {
    min-width: 30px;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
}

.add-to-cart-button {
    flex: 1;
    min-height: 56px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: var(--white);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    transition: background 0.2s ease;
}

.add-to-cart-button:hover {
    background: var(--green-dark);
}

.add-to-cart-button:active,
.quantity-button:active,
.size-option:active {
    transform: scale(0.97);
}

@media (max-width: 560px) {
    .cart-controls {
        display: flex;
        flex-direction: column;
    }

    .quantity-control {
        width: 100%;
    }

    .quantity-button {
        width: 56px;
    }

    .add-to-cart-button {
        width: 100%;
        min-height: 60px;
        font-size: 1.15rem;
    }

    .size-option {
        min-height: 52px;
        padding: 10px 16px;
    }
}
/* Cart page */

.cart-page {
    background: var(--cream);
    min-height: 70vh;
}

.cart-hero {
    padding: 65px 6vw;
    background: var(--green);
    color: #ffffff;
}

.cart-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.cart-hero p:not(.eyebrow) {
    margin: 0;
    color: #e6f0e9;
    font-size: 15px;
}

.cart-section {
    padding: 60px 6vw 90px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 35px;
    align-items: start;
}

.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.cart-heading h2,
.cart-summary h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 26px;
}

.cart-heading span {
    color: var(--muted);
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e1e7dc;
    border-radius: 16px;
}

.cart-item-image {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7f1;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.cart-item-image span {
    color: var(--green);
    font-weight: 800;
    font-size: 24px;
}

.cart-item-details h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
}

.cart-item-details p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.cart-item-details strong {
    color: var(--green);
    font-size: 16px;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #cbd8c4;
    border-radius: 10px;
    overflow: hidden;
}

.cart-quantity button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #f5f7f1;
    color: var(--green-dark);
    font-size: 20px;
    cursor: pointer;
}

.cart-quantity span {
    width: 38px;
    text-align: center;
    font-weight: 800;
}

.cart-item-total {
    color: var(--green-dark);
    font-size: 16px;
}

.remove-cart-item {
    border: 0;
    background: transparent;
    color: #a44b3f;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.cart-summary {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e7dc;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(37, 37, 55, 0.06);
}

.cart-summary h2 {
    margin-bottom: 28px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.summary-row strong,
.summary-total strong {
    color: var(--green-dark);
}

.summary-divider {
    height: 1px;
    margin: 24px 0;
    background: var(--line);
}

.summary-total {
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 800;
}

.summary-total strong {
    color: var(--green);
    font-size: 23px;
}

.checkout-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    margin-top: 28px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.checkout-button:hover {
    background: var(--green-dark);
}

.checkout-button.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.continue-shopping {
    display: block;
    margin-top: 20px;
    color: var(--green);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.empty-cart {
    padding: 70px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e1e7dc;
    border-radius: 18px;
}

.empty-cart-icon {
    margin-bottom: 15px;
    font-size: 45px;
}

.empty-cart h2 {
    margin: 0 0 10px;
    color: var(--green-dark);
}

.empty-cart p {
    margin: 0 0 25px;
    color: var(--muted);
}

/* Mobile cart layout */

@media (max-width: 800px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 15px;
    }

    .cart-item-image {
        width: 85px;
        height: 85px;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .cart-summary {
        margin-top: 10px;
    }
}
/* Checkout page */

.checkout-page {
    background: var(--cream);
    min-height: 70vh;
}

.checkout-hero {
    padding: 65px 6vw;
    background: var(--green);
    color: #ffffff;
}

.checkout-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.checkout-hero p:not(.eyebrow) {
    margin: 0;
    color: #e6f0e9;
    font-size: 15px;
}

.checkout-section {
    padding: 60px 6vw 90px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 35px;
    align-items: start;
}

.checkout-form-card,
.checkout-summary {
    background: #ffffff;
    border: 1px solid #e1e7dc;
    border-radius: 18px;
    padding: 30px;
}

.checkout-summary {
    position: sticky;
    top: 25px;
}

.checkout-card-heading {
    margin-bottom: 28px;
}

.checkout-card-heading h2,
.checkout-summary h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #cbd8c4;
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.form-group input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.1);
}

.payment-section {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid var(--line);
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid #dce5d6;
    border-radius: 12px;
    cursor: pointer;
}

.payment-option input {
    margin-top: 4px;
    accent-color: var(--green);
}

.payment-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-option strong {
    color: var(--green-dark);
    font-size: 15px;
}

.payment-option small {
    color: var(--muted);
    font-size: 13px;
}

.place-order-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
    margin-top: 35px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.place-order-button:hover {
    background: var(--green-dark);
}

.checkout-message {
    display: none;
    margin: 18px 0 0;
    padding: 14px;
    border-radius: 9px;
    font-size: 14px;
}

.checkout-message.success {
    display: block;
    background: #e8f5e9;
    color: var(--green-dark);
}

.checkout-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.checkout-item-image {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #f5f7f1;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.checkout-item-image span {
    color: var(--green);
    font-weight: 800;
}

.checkout-item-details h3 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 14px;
}

.checkout-item-details p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.checkout-item > strong {
    color: var(--green-dark);
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}

@media (max-width: 500px) {
    .checkout-form-card,
    .checkout-summary {
        padding: 22px;
    }

    .checkout-item {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .checkout-item > strong {
        grid-column: 2;
    }
}

/* Order success page */
.order-success-page {
    min-height: calc(100vh - 82px);
    display: grid;
    place-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #f4f8ef 100%);
}
.success-card {
    width: min(100%, 560px);
    padding: 52px 42px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e1e7dc;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(31, 107, 69, 0.12);
}
.success-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #1f6b45;
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
}
.success-card h1 {
    margin: 0 0 16px;
    color: #124b30;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
}
.success-card p {
    margin: 0 auto 24px;
    max-width: 390px;
    color: #66736a;
    font-size: 16px;
    line-height: 1.7;
}
.success-card .order-number {
    display: inline-block;
    margin: 4px auto 30px;
    padding: 14px 20px;
    border: 1px dashed #b9ccb0;
    border-radius: 12px;
    background: #f7faf3;
    color: #252537;
    font-size: 14px;
}
.success-card .order-number strong {
    display: block;
    margin-top: 5px;
    color: #1f6b45;
    font-size: 20px;
    letter-spacing: 1px;
}
.success-card .btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 10px;
    background: #f4c542;
    color: #124b30;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease;
}
.success-card .btn-primary:hover {
    background: #e8b82e;
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .order-success-page { padding: 35px 16px; }
    .success-card { padding: 38px 22px; border-radius: 18px; }
}
/* Account page */

.account-page {
    min-height: 70vh;
    background: #f8f7f2;
}

.account-hero {
    padding: 70px 24px 45px;
    text-align: center;
}

.account-hero h1 {
    margin: 10px 0;
}

.account-section {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 70px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.account-card {
    background: #ffffff;
    border: 1px solid #e8e6dd;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(37, 37, 55, 0.05);
}

.account-card-heading {
    margin-bottom: 24px;
}

.account-card-heading h2 {
    margin: 6px 0 0;
}

.account-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eeeeea;
}

.account-detail:last-child {
    border-bottom: 0;
}

.account-detail span {
    color: #777;
}

.account-detail strong {
    text-align: right;
    color: #252537;
    overflow-wrap: anywhere;
}

.saved-address {
    padding: 18px 0;
    border-bottom: 1px solid #eeeeea;
}

.saved-address:last-child {
    border-bottom: 0;
}

.saved-address p {
    line-height: 1.8;
    margin: 8px 0 0;
}

.address-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #e7f2df;
    color: #3e6b2d;
    font-size: 12px;
    font-weight: 700;
}

.orders-card {
    margin-top: 24px;
}

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eeeeea;
    text-align: left;
    white-space: nowrap;
}

.orders-table th {
    color: #777;
    font-size: 13px;
    font-weight: 600;
}

.order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #fff4c7;
    color: #725d00;
    font-size: 12px;
    font-weight: 700;
}

.empty-state {
    color: #777;
    margin: 0;
}

.account-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid #d9d7ce;
    border-radius: 8px;
    color: #252537;
    text-decoration: none;
    background: #ffffff;
}

.btn-secondary:hover {
    background: #f0efe9;
}

@media (max-width: 700px) {
    .account-hero {
        padding: 45px 18px 30px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-card {
        padding: 22px;
    }

    .account-detail {
        display: block;
    }

    .account-detail strong {
        display: block;
        margin-top: 5px;
        text-align: left;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn,
    .account-actions .btn-secondary {
        width: 100%;
    }
}
/* ========================================
   SIGN IN / AUTHENTICATION PAGE
======================================== */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: #f8f7f2;
}

.auth-card {
    width: min(460px, 100%);
    padding: 42px 38px;
    background: #ffffff;
    border: 1px solid #e8e6dd;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(37, 37, 55, 0.07);
}

.auth-card .eyebrow {
    margin-bottom: 12px;
    color: #668f45;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.auth-card h1 {
    margin: 0 0 12px;
    color: #252537;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.auth-intro {
    margin: 0 0 30px;
    color: #777777;
    font-size: 15px;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    color: #252537;
    font-size: 14px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #dcdad1;
    border-radius: 8px;
    background: #ffffff;
    color: #252537;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-form input::placeholder {
    color: #a5a39b;
}

.auth-form input:focus {
    border-color: #668f45;
    box-shadow: 0 0 0 3px rgba(102, 143, 69, 0.12);
}

.auth-form .place-order-button {
    width: 100%;
    min-height: 52px;
    margin-top: 5px;
    border: 0;
    border-radius: 8px;
    background: #668f45;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.auth-form .place-order-button:hover {
    background: #527536;
    transform: translateY(-1px);
}

.auth-form .place-order-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.auth-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-message.error {
    border: 1px solid #f0caca;
    background: #fff1f1;
    color: #a33b3b;
}

.auth-message.success {
    border: 1px solid #cce3bc;
    background: #f0f8ea;
    color: #4f7835;
}

.auth-footer {
    margin: 22px 0 0;
    color: #777777;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.auth-footer + .auth-footer {
    margin-top: 10px;
}

.auth-footer a {
    color: #668f45;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #527536;
    text-decoration: underline;
}

/* Mobile layout */

@media (max-width: 600px) {
    .auth-page {
        min-height: auto;
        padding: 40px 16px 55px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .auth-intro {
        margin-bottom: 25px;
    }

    .auth-form {
        gap: 18px;
    }
}
/* ========================================
   REGISTER PAGE LAYOUT
======================================== */

.auth-page {
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
    align-items: center;
    gap: 70px;
    padding: 70px max(30px, 8vw);
    background: #f8f7f2;
    box-sizing: border-box;
}

/* Left introduction section */
.auth-page > .auth-intro,
.auth-page > .auth-content {
    align-self: center;
    max-width: 430px;
}

.auth-page .eyebrow {
    margin: 0 0 24px;
    color: #e8ad32;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.5;
    text-transform: uppercase;
}

.auth-page h1 {
    margin: 0 0 22px;
    color: #252537;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.auth-page .auth-intro {
    color: #252537;
    font-size: 16px;
    line-height: 1.7;
}

/* Right registration form */
.auth-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 42px 38px;
    background: #ffffff;
    border: 1px solid #e4e5dc;
    border-radius: 0;
    box-shadow: 0 10px 35px rgba(37, 37, 55, 0.04);
    box-sizing: border-box;
}

.auth-card h2,
.auth-card h1 {
    color: #252537;
    line-height: 1.2;
}

.auth-card h2 {
    margin: 0 0 28px;
    font-size: 28px;
}

/* Form spacing */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.auth-form label {
    color: #252537;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid #cbd8c2;
    border-radius: 9px;
    background: #ffffff;
    color: #252537;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form textarea {
    min-height: 100px;
    resize: vertical;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: #8a8a83;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    border-color: #668f45;
    box-shadow: 0 0 0 3px rgba(102, 143, 69, 0.12);
}

/* Section headings inside the form */
.auth-section-title {
    margin: 10px 0 0;
    padding-top: 24px;
    border-top: 1px solid #ecece5;
    color: #252537;
    font-size: 19px;
    font-weight: 700;
}

.auth-section-note {
    margin: -8px 0 2px;
    color: #77776f;
    font-size: 13px;
    line-height: 1.5;
}

/* Submit button */
.auth-form button[type="submit"],
.auth-form .place-order-button {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 14px 20px;
    border: 0;
    border-radius: 9px;
    background: #668f45;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-form button[type="submit"]:hover,
.auth-form .place-order-button:hover {
    background: #527536;
    transform: translateY(-1px);
}

.auth-footer {
    margin: 24px 0 0;
    color: #77776f;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.auth-footer a {
    color: #668f45;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #527536;
    text-decoration: underline;
}

.auth-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-message.error {
    border: 1px solid #e6bcbc;
    background: #fff3f3;
    color: #a33b3b;
}

.auth-message.success {
    border: 1px solid #c8dfb8;
    background: #f1f8eb;
    color: #4d7535;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 30px;
    }

    .auth-page > .auth-intro,
    .auth-page > .auth-content {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .auth-page .eyebrow {
        margin-bottom: 15px;
    }

    .auth-page h1 {
        font-size: 36px;
    }

    .auth-card {
        margin: 0 auto;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
    .auth-page {
        display: block;
        min-height: auto;
        padding: 35px 15px;
    }

    .auth-page > .auth-intro,
    .auth-page > .auth-content {
        margin-bottom: 35px;
        text-align: left;
    }

    .auth-page h1 {
        font-size: 32px;
    }

    .auth-card {
        padding: 30px 22px;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* ========================================
   HEADER REFINEMENT
======================================== */

.site-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eeeeE6;
}

.header-container {
    width: min(1240px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #252537;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #668f45;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    color: #252537;
    font-size: 17px;
    font-weight: 800;
}

.logo-text small {
    margin-top: 4px;
    color: #77776f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    color: #55564f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-link:hover {
    color: #527536;
    background: #f2f7ed;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: #e8ad32;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.guest-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.signin-link {
    color: #252537;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.signin-link:hover {
    color: #668f45;
}

.signup-button {
    padding: 11px 17px;
    border-radius: 8px;
    background: #252537;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.signup-button:hover {
    background: #668f45;
    transform: translateY(-1px);
}

/* Cart */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #e5e7dd;
    border-radius: 10px;
    color: #252537;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.cart-link:hover {
    border-color: #668f45;
    background: #f5f9f1;
}

.cart-icon {
    font-size: 17px;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #e8ad32;
    color: #252537;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.cart-count:not(.has-items) {
    opacity: 0.55;
}

/* Customer account dropdown */
.account-menu {
    position: relative;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 5px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #252537;
    font: inherit;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.account-trigger:hover,
.account-menu.is-open .account-trigger {
    border-color: #e5e7dd;
    background: #f5f9f1;
}

.account-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #668f45;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.account-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.account-arrow {
    color: #77776f;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.account-menu.is-open .account-arrow {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 190px;
    padding: 8px;
    border: 1px solid #e6e8df;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(37, 37, 55, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.account-menu.is-open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: #55564f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.account-dropdown a:hover {
    background: #f2f7ed;
    color: #527536;
}

.account-dropdown .dropdown-logout {
    margin-top: 4px;
    border-top: 1px solid #eeeeE6;
    border-radius: 0 0 8px 8px;
    color: #a34b43;
}

/* Mobile menu */
.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid #e5e7dd;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: #252537;
}

/* ========================================
   RESPONSIVE HEADER
======================================== */

@media (max-width: 900px) {
    .header-container {
        min-height: 74px;
        gap: 15px;
    }

    .main-navigation {
        gap: 2px;
    }

    .nav-link {
        padding: 9px 10px;
    }

    .cart-label,
    .account-name {
        display: none;
    }

    .account-trigger {
        padding-right: 5px;
    }
}

@media (max-width: 700px) {
    .header-container {
        width: min(100% - 30px, 1240px);
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border: 1px solid #e5e7dd;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 15px 30px rgba(37, 37, 55, 0.08);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
    }

    .mobile-menu-button {
        display: block;
    }

    .guest-actions {
        gap: 10px;
    }

    .signin-link {
        font-size: 12px;
    }

    .signup-button {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .signup-button {
        display: none;
    }
}
/* =========================================================
   CHECKOUT PAGE
========================================================= */

.checkout-page {
    background: #f7f8f3;
    min-height: 100vh;
    padding-bottom: 80px;
}

.checkout-hero {
    text-align: center;
    padding: 72px 20px 48px;
    background: linear-gradient(135deg, #eef6e9, #fdfcf5);
    border-bottom: 1px solid #e4eadc;
}

.checkout-hero .eyebrow,
.checkout-card-heading .eyebrow {
    margin: 0 0 10px;
    color: #6b8e23;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.checkout-hero h1 {
    margin: 0;
    color: #252537;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 800;
}

.checkout-hero p:last-child {
    margin: 16px auto 0;
    max-width: 560px;
    color: #73786e;
    font-size: 16px;
    line-height: 1.7;
}

.checkout-section {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 0;
}

#checkout-form {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
    gap: 28px;
    align-items: start;
}

.checkout-form-card,
.checkout-summary {
    background: #ffffff;
    border: 1px solid #e7ebe2;
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(37, 37, 55, 0.06);
}

.checkout-form-card {
    padding: 34px;
}

.checkout-summary {
    position: sticky;
    top: 24px;
    padding: 30px;
}

.checkout-card-heading {
    margin-bottom: 28px;
}

.checkout-card-heading h2,
.checkout-summary h2 {
    margin: 0;
    color: #252537;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #343847;
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #dfe5d8;
    border-radius: 12px;
    background: #fbfcf9;
    color: #252537;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease,
                background .2s ease;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a2a79d;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #7da34b;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(125, 163, 75, .12);
}

.payment-section {
    margin-top: 38px;
    padding-top: 32px;
    border-top: 1px solid #edf0e9;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e1e8d9;
    border-radius: 14px;
    background: #fbfcf8;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease,
                transform .2s ease;
}

.payment-option:hover {
    border-color: #9fbd78;
    background: #f5f9ef;
    transform: translateY(-1px);
}

.payment-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #6b8e23;
    flex: 0 0 auto;
}

.payment-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-option strong {
    color: #252537;
    font-size: 14px;
    font-weight: 800;
}

.payment-option small {
    color: #858b80;
    font-size: 13px;
    line-height: 1.5;
}

.place-order-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    margin-top: 30px;
    padding: 15px 24px;
    border: 0;
    border-radius: 13px;
    background: #6b8e23;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(107, 142, 35, .2);
    transition: background .2s ease, transform .2s ease,
                box-shadow .2s ease;
}

.place-order-button span {
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.place-order-button:hover {
    background: #58791b;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(107, 142, 35, .25);
}

.place-order-button:hover span {
    transform: translateX(4px);
}

.place-order-button:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkout-message {
    margin: 16px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.checkout-message.success {
    color: #4d7b20;
}

.checkout-message.error {
    color: #b53c3c;
}

/* Order summary */

.checkout-summary h2 {
    margin-bottom: 24px;
}

#checkout-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.checkout-item-image {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5eb;
    color: #6b8e23;
    font-size: 13px;
    font-weight: 800;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.checkout-item-details {
    min-width: 0;
}

.checkout-item-details h3 {
    margin: 0 0 6px;
    overflow: hidden;
    color: #303344;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item-details p {
    margin: 0;
    color: #8a9084;
    font-size: 12px;
}

.checkout-item > strong {
    color: #252537;
    font-size: 14px;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    margin: 24px 0;
    background: #edf0e9;
}

.summary-row,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.summary-row {
    color: #858b80;
    font-size: 14px;
}

.summary-row strong {
    color: #303344;
    font-size: 14px;
}

.summary-total {
    color: #252537;
    font-size: 17px;
    font-weight: 800;
}

.summary-total strong {
    color: #6b8e23;
    font-size: 24px;
}

/* Saved address / guest information blocks */

.saved-address,
.checkout-login-note,
.checkout-guest-note {
    margin-bottom: 28px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #dfead2;
    background: #f4f9ed;
    color: #5e6c51;
    font-size: 14px;
    line-height: 1.6;
}

.saved-address strong,
.checkout-login-note strong,
.checkout-guest-note strong {
    display: block;
    margin-bottom: 5px;
    color: #3e5429;
}

/* Responsive */

@media (max-width: 900px) {
    #checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-summary {
        order: -1;
    }
}

@media (max-width: 640px) {
    .checkout-page {
        padding-bottom: 45px;
    }

    .checkout-hero {
        padding: 48px 18px 34px;
    }

    .checkout-section {
        width: min(100% - 24px, 560px);
        margin-top: 24px;
    }

    .checkout-form-card,
    .checkout-summary {
        padding: 22px 18px;
        border-radius: 17px;
    }

    .checkout-card-heading h2,
    .checkout-summary h2 {
        font-size: 21px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .payment-section {
        margin-top: 30px;
        padding-top: 26px;
    }

    .payment-option {
        padding: 15px;
    }

    .checkout-item {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 11px;
    }

    .checkout-item-image {
        width: 54px;
        height: 54px;
    }

    .checkout-item-details h3 {
        font-size: 13px;
    }

    .checkout-item > strong {
        font-size: 13px;
    }

    .summary-total strong {
        font-size: 21px;
    }
}
/* =========================================
   CHECKOUT LAYOUT FIX
========================================= */

.checkout-section {
    width: min(1180px, calc(100% - 40px));
    margin: 40px auto 80px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}

/* Customer form column */
.checkout-form-card {
    width: 100%;
    min-width: 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e9df;
    border-radius: 24px;
    box-sizing: border-box;
}

/* Order summary column */
.checkout-summary {
    width: 100%;
    min-width: 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e9df;
    border-radius: 24px;
    box-sizing: border-box;
    position: sticky;
    top: 24px;
}

/* Prevent children from overflowing */
.checkout-form-card *,
.checkout-summary * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Customer form fields */
.checkout-form-card .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.checkout-form-card .form-group {
    width: 100%;
    min-width: 0;
}

.checkout-form-card .form-group.full-width {
    grid-column: 1 / -1;
}

.checkout-form-card input,
.checkout-form-card select,
.checkout-form-card textarea {
    width: 100%;
    min-width: 0;
}

/* Guest/sign-in message */
.checkout-login-message,
.checkout-guest-message,
.checkout-account-message {
    margin-bottom: 28px;
    padding: 18px 20px;
    background: #f4f8ed;
    border: 1px solid #dce8c9;
    border-radius: 14px;
    line-height: 1.6;
}

/* Order items */
.checkout-summary .checkout-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 22px;
}

.checkout-summary .checkout-item-image {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5eb;
    border-radius: 12px;
}

.checkout-summary .checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary .checkout-item-details {
    min-width: 0;
}

.checkout-summary .checkout-item-details h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.4;
}

.checkout-summary .checkout-item-details p {
    margin: 0;
    color: #8a9183;
    font-size: 13px;
}

.checkout-summary .checkout-item strong {
    white-space: nowrap;
    font-size: 13px;
}

/* Summary totals */
.checkout-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.checkout-summary .summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e9df;
    font-size: 18px;
    font-weight: 700;
}

/* Payment section */
.payment-section {
    margin-top: 30px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e1e7d8;
    border-radius: 12px;
}

/* Place order button */
.place-order-button {
    width: 100%;
    margin-top: 28px;
    padding: 16px 22px;
    border: 0;
    border-radius: 12px;
    background: #67951d;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.place-order-button:hover {
    background: #557d17;
}

/* Tablet */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }

    .checkout-form-card,
    .checkout-summary {
        padding: 24px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .checkout-section {
        width: min(100% - 28px, 600px);
        margin-top: 24px;
    }

    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .checkout-form-card {
        order: 1;
        padding: 22px;
    }

    .checkout-summary {
        order: 2;
        position: static;
        padding: 22px;
    }

    .checkout-form-card .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-form-card .form-group.full-width {
        grid-column: auto;
    }
}
/* =========================================
   CHECKOUT PAYMENT OPTIONS FIX
========================================= */

.payment-section {
    width: 100%;
    margin-top: 32px;
}

.payment-section .checkout-card-heading {
    margin-bottom: 18px;
}

.payment-option {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;

    width: 100% !important;
    min-height: 86px;
    margin: 14px 0 0 !important;
    padding: 18px !important;

    border: 1px solid #dfe7d4;
    border-radius: 14px;
    background: #ffffff;

    box-sizing: border-box;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: #67951d;
    background: #f5f9ef;
}

.payment-option input[type="radio"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #67951d;
}

.payment-option > span {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.payment-option strong {
    display: block;
    width: auto;
    margin: 0 0 6px;
    color: #202033;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
}

.payment-option small {
    display: block;
    width: auto;
    max-width: 100%;
    color: #7f8778;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
}

/* Prevent old grid rules from squeezing the payment content */
.checkout-form-card .payment-option,
.checkout-form-card .payment-option span {
    grid-column: auto !important;
}

/* Keep the customer card and payment section inside the column */
.checkout-form-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.checkout-form-card form,
.checkout-form-card .payment-section {
    width: 100%;
    min-width: 0;
}

/* Mobile payment cards */
@media (max-width: 760px) {
    .payment-option {
        min-height: auto;
        padding: 16px !important;
    }

    .payment-option strong {
        font-size: 14px;
    }

    .payment-option small {
        font-size: 12px;
    }
}
/* Order items inside account order history */
.order-items-row td {
    padding: 0 !important;
    border-bottom: 1px solid #e8ede2;
}

.order-items-panel {
    margin: 0;
    padding: 18px 20px 22px;
    background: #f8faf5;
    border-radius: 12px;
}

.order-items-panel h3 {
    margin: 0 0 14px;
    font-size: 14px;
    color: #252537;
}

.account-order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-order-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.account-order-item-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #edf3e6;
    border-radius: 10px;
    color: #47721a;
    font-weight: 700;
    font-size: 12px;
}

.account-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-order-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.account-order-item-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.account-order-item-info span {
    color: #858d7c;
    font-size: 12px;
}

.account-order-item > strong {
    white-space: nowrap;
    font-size: 13px;
}

@media (max-width: 600px) {
    .account-order-item {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .account-order-item-image {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   SHOP PAGE
========================================================= */

.shop-page {
    min-height: 70vh;
}

.shop-hero {
    padding: 76px 6vw 58px;
    background: #f2f6eb;
    border-bottom: 1px solid #e3e9da;
}

.shop-hero h1 {
    max-width: 700px;
    margin: 10px 0 14px;
}

.shop-hero p:not(.eyebrow) {
    max-width: 520px;
    color: #737b6c;
}

.shop-section {
    width: min(1180px, calc(100% - 40px));
    margin: 52px auto 80px;
}

.shop-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.shop-toolbar h2 {
    margin: 8px 0 4px;
}

.shop-result-count {
    margin: 0;
    color: #8a9183;
    font-size: 14px;
}

.shop-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.shop-filter label {
    color: #68725b;
    font-size: 12px;
    font-weight: 700;
}

.shop-filter select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dce5d0;
    border-radius: 10px;
    background: #ffffff;
    color: #252537;
    font: inherit;
}

/* Product cards */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.shop-product-grid .product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
    overflow: hidden;
    border: 1px solid #e1e7dc;
    border-radius: 18px;
    background: #ffffff;
}

.shop-product-grid .product-image {
    flex: 0 0 auto;
    height: 250px;
    overflow: hidden;
    background: #f5f1e7;
}

.shop-product-grid .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.shop-product-grid .product-meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.shop-product-grid .product-title {
    margin: 0 0 14px;
    color: #252537;
    font-size: 19px;
    line-height: 1.3;
}

.shop-product-grid .product-price {
    margin-bottom: 8px;
    color: #1f7048;
    font-size: 27px;
    font-weight: 800;
}

.shop-product-grid .product-quantity-info {
    margin: 8px 0 18px;
    color: #858d7c;
    font-size: 13px;
}

.shop-product-grid .product-quantity-info strong {
    color: #252537;
}

.shop-product-grid .size-selector {
    margin: 0 0 20px;
}

.shop-product-grid .size-label {
    display: block;
    margin-bottom: 10px;
    color: #252537;
    font-size: 14px;
    font-weight: 800;
}

.shop-product-grid .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-product-grid .size-option {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #d4dfcf;
    border-radius: 9px;
    background: #1f7048;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.shop-product-grid .size-option:hover,
.shop-product-grid .size-option.active {
    background: #185b3a;
    border-color: #185b3a;
}

/* Quantity and cart controls */
.shop-product-grid .cart-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.shop-product-grid .quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd8c4;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.shop-product-grid .quantity-button {
    width: 44px;
    height: 44px;
    border: 0;
    background: #f3f7ed;
    color: #286b45;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.shop-product-grid .quantity-button:hover {
    background: #e7f0dc;
}

.shop-product-grid .quantity-value {
    flex: 1;
    min-width: 30px;
    color: #252537;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.shop-product-grid .product-action-buttons {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    width: 100%;
}

.shop-product-grid .view-product-button,
.shop-product-grid .add-to-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    white-space: nowrap;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-product-grid .view-product-button {
    border: 1px solid #dce6cf;
    background: #ffffff;
    color: #557d17;
}

.shop-product-grid .view-product-button:hover {
    border-color: #67951d;
    background: #f3f8eb;
}

.shop-product-grid .add-to-cart-button {
    border: 0;
    background: #67951d;
    color: #ffffff;
}

.shop-product-grid .add-to-cart-button:hover {
    background: #557d17;
}

.shop-product-grid .quantity-button:active,
.shop-product-grid .size-option:active,
.shop-product-grid .add-to-cart-button:active {
    transform: scale(.97);
}

/* Pagination */
.shop-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
}

/* Responsive */
@media (max-width: 1000px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shop-hero {
        padding: 52px 20px 42px;
    }

    .shop-section {
        width: calc(100% - 28px);
        margin-top: 32px;
    }

    .shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-filter {
        min-width: 0;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .shop-product-grid .product-image {
        height: 190px;
    }

    .shop-product-grid .product-meta {
        padding: 16px;
    }

    .shop-product-grid .product-title {
        font-size: 16px;
    }

    .shop-product-grid .product-price {
        font-size: 23px;
    }
}

@media (max-width: 520px) {
    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-grid .product-image {
        height: 230px;
    }

    .shop-product-grid .product-action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Product variant selector */
.variant-select {
    width: 100%;
    min-height: 48px;
    padding: 10px 42px 10px 14px;
    border: 2px solid #d4dfcf;
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink, #252537);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    appearance: auto;
    box-sizing: border-box;
}

.variant-select:hover,
.variant-select:focus {
    border-color: var(--green, #1f7048);
    outline: none;
}

.add-to-cart-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.add-to-cart-button:disabled:hover {
    background: var(--green, #1f7048);
}

.shop-product-grid .variant-select {
    min-height: 44px;
    border: 1px solid #d4dfcf;
    border-radius: 9px;
    font-size: 13px;
}

.shop-product-grid .variant-select:focus,
.shop-product-grid .variant-select:hover {
    border-color: #67951d;
}

/* =========================================================
   Mobile storefront: two product cards per row
   Homepage and shop listing only. Tablet / desktop unchanged.
   ========================================================= */
@media (max-width: 560px) {
    .products .product-grid,
    .shop-page .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .products .product,
    .shop-page .shop-product-grid .product {
        display: flex;
        flex-direction: column;
        min-width: 0;
        border-radius: 12px;
    }

    .products .product-image,
    .shop-page .shop-product-grid .product-image {
        flex: 0 0 auto;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .products .product-image img,
    .shop-page .shop-product-grid .product-image img {
        padding: 9px;
    }

    .products .product-meta,
    .shop-page .shop-product-grid .product-meta {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        padding: 11px 10px 12px;
    }

    .products .product-title,
    .shop-page .shop-product-grid .product-title {
        min-height: 2.6em;
        margin: 0 0 8px;
        font-size: 14px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .products .product-price,
    .shop-page .shop-product-grid .product-price {
        margin: 0 0 6px;
        font-size: 1.08rem;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .products .product-quantity-info,
    .shop-page .shop-product-grid .product-quantity-info {
        margin: 4px 0 9px;
        font-size: 11px;
        line-height: 1.4;
    }

    .products .size-selector,
    .shop-page .shop-product-grid .size-selector {
        margin: 0 0 10px;
    }

    .products .size-label,
    .shop-page .shop-product-grid .size-label {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .products .variant-select,
    .shop-page .shop-product-grid .variant-select {
        width: 100%;
        min-height: 40px;
        height: 40px;
        padding: 6px 4px;
        border-radius: 8px;
        font-size: 12px;
    }

    .products .cart-controls,
    .shop-page .shop-product-grid .cart-controls {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: auto;
    }

    .products .quantity-control,
    .shop-page .shop-product-grid .quantity-control {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        height: 38px;
        border-width: 1px;
        border-radius: 8px;
    }

    .products .quantity-button,
    .shop-page .shop-product-grid .quantity-button {
        flex: 0 0 37px;
        width: 37px;
        height: 38px;
        font-size: 19px;
    }

    .products .quantity-value,
    .shop-page .shop-product-grid .quantity-value {
        min-width: 0;
        font-size: 13px;
    }

    .products .add-to-cart-button,
    .shop-page .shop-product-grid .add-to-cart-button,
    .shop-page .shop-product-grid .view-product-button {
        width: 100%;
        min-height: 40px;
        padding: 6px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.15;
        white-space: normal;
    }

    .shop-page .shop-product-grid .product-action-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .products .placeholder,
    .shop-page .shop-product-grid .placeholder {
        width: 70%;
        height: 85%;
        font-size: 13px;
    }
}

/* Storefront refresh */
:root {
    --green: #205d42;
    --green-dark: #123b2c;
    --yellow: #e6b75b;
    --cream: #f8f7ef;
    --line: #dedfd1;
    --soft-green: #edf3e9;
    --soft-image: #f3f0e5;
}
body {
    font-family: system-ui, sans-serif;
}
.site-header {
    border-top: 4px solid var(--yellow);
}
.section-heading h2,
.shop-toolbar h2 {
    letter-spacing: -.035em;
}
.product {
    border-radius: 18px;
    box-shadow: 0 5px 16px #123b2c08;
}
.site-header {
    flex-direction: column;
    gap: 0;
}
.site-header .header-container,
.site-header .catalog-search,
.home-categories .section-heading,
.home-categories .catalog-group-grid {
    width: min(100%, 1240px);
    margin-inline: auto;
}
.catalog-search {
    margin: 0 auto 14px;
    padding: 10px 12px;
    background: var(--soft-green);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.catalog-search label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--green-dark);
}
.catalog-search > div {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.catalog-search .button {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 clamp(12px, 4vw, 24px);
    min-height: 44px;
    white-space: nowrap;
}
.catalog-search input,
.shop-filter input {
    min-width: 0;
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--white);
    font: inherit;
}
.catalog-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
}
.catalog-group {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    border-radius: 18px;
}
.catalog-group h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--green-dark);
}
.catalog-group h3 a {
    display: flex;
    justify-content: space-between;
}
.catalog-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.catalog-tile {
    display: grid;
    align-content: start;
    gap: 6px;
    font-weight: 650;
    font-size: .9rem;
}
.catalog-tile-image {
    display: block;
    position: relative;
    aspect-ratio: 1;
    background: var(--soft-image);
    border-radius: 11px;
    overflow: hidden;
}
.catalog-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.catalog-tile:hover span:last-child,
.catalog-group a:hover {
    text-decoration: underline;
}
.catalog-search :focus-visible,
.catalog-group :focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}
.shop-filter {
    gap: 7px;
}
.shop-page .shop-product-grid.product-detail-grid {
    grid-template-columns: minmax(0, 520px);
}
#checkout-button[hidden] {
    display: none;
}
.shop-page .shop-hero {
    background: linear-gradient(118deg, #123b2c, #205d42);
    color: #fff;
    border-bottom: 4px solid var(--yellow);
}
.shop-page .shop-hero h1,
.shop-page .shop-hero p {
    color: inherit;
}
.shop-page .shop-hero .eyebrow {
    color: #f1c977;
}

@media (max-width: 700px) {
    .catalog-group-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
