.store-hero {
    background: var(--accent-color);
    padding: 4.5rem 5%;
    text-align: center;
}

.store-hero .section-label {
    color: rgba(255, 255, 255, 0.7);
}

.store-hero h1 {
    color: white;
    margin-bottom: 0.75rem;
}

.store-hero > p:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 620px;
}

.store-content,
.cart-content {
    margin: 0 auto;
    max-width: 1200px;
    padding: 4rem 5%;
}

.store-toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.store-toolbar > .filter-label {
    min-width: 150px;
}

.store-toolbar h2,
.cart-content h2 {
    margin: 0;
    text-align: left;
}

.filter-label,
.product-form label,
.cart-quantity {
    color: #555;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-label select,
.product-form select,
.product-form input,
.cart-quantity input {
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: var(--primary-color);
    font: inherit;
    letter-spacing: normal;
    padding: 0.7rem 0.8rem;
    text-transform: none;
}

.product-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.12);
    transform: translateY(-4px);
}

.product-card-image {
    background: #f4f4f1;
    display: block;
    padding: 1rem;
}

.product-card-image img {
    aspect-ratio: 1 / 1;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.product-card-details {
    padding: 1.25rem;
}

.product-category {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
    text-align: left;
}

.product-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-price,
.product-detail-price {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.product-card-button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.product-page {
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem 5% 5rem;
}

.back-link {
    color: var(--accent-color);
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.product-detail {
    align-items: center;
    display: grid;
    gap: 4rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.product-detail-image {
    background: #f4f4f1;
    border-radius: 10px;
    padding: 2rem;
}

.product-detail-image img {
    aspect-ratio: 1 / 1;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.product-detail-info h1 {
    font-size: 3.5rem;
    letter-spacing: 0.3rem;
}

.product-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-form {
    display: grid;
    gap: 0.75rem;
    max-width: 360px;
}

.product-form .btn {
    margin-top: 0.75rem;
}

.form-success {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin: 0;
}

.product-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.product-note a {
    color: var(--accent-color);
    font-weight: 600;
}

.cart-link {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.cart-link img {
    display: block;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

.cart-count {
    align-items: center;
    background: white;
    border-radius: 999px;
    color: var(--accent-color);
    display: inline-flex;
    font-size: 0.7rem;
    height: 1.35rem;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0 0.25rem;
}

.cart-content h2 {
    margin-bottom: 1.5rem;
}

.cart-item {
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: grid;
    gap: 1rem;
    grid-template-columns: 96px minmax(0, 1fr) 70px auto auto;
    margin-bottom: 1rem;
    padding: 1rem;
}

.cart-item > img {
    aspect-ratio: 1 / 1;
    background: #f4f4f1;
    object-fit: contain;
    width: 96px;
}

.cart-item-info h3 {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
    text-align: left;
}

.cart-item-info > p:last-child {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.cart-quantity input {
    min-width: 60px;
    padding: 0.45rem;
}

.remove-button {
    background: none;
    border: 0;
    color: #8b2d2d;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cart-summary {
    border-top: 2px solid var(--accent-color);
    margin-left: auto;
    max-width: 360px;
    padding-top: 1.25rem;
    text-align: right;
}

.cart-summary > p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-summary small {
    color: #777;
    display: block;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.checkout-form {
    background: white;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    clear: both;
    margin-top: 4rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}
.checkout-form[hidden], .address-fields[hidden] { display: none; }
.website-field { left: -9999px; position: absolute; }
.checkout-heading h2 { margin: 0; text-align: left; }
.checkout-heading > p:last-child { color: #666; font-size: .95rem; margin: .4rem 0 1.75rem; }
.checkout-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-form label { color: #444; display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: .4rem; }
.checkout-form input, .checkout-form select, .checkout-form textarea { border: 1px solid #bbb; border-radius: 6px; font: inherit; padding: .75rem; }
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus { border-color: var(--accent-color); outline: 2px solid rgba(23,56,23,.18); }
.checkout-form fieldset { border: 0; margin: 1.5rem 0; padding: 0; }
.checkout-form legend { font-weight: 700; margin-bottom: .75rem; }
.address-fields > label { margin-bottom: 1rem; }
.address-row { grid-template-columns: 2fr 1fr 1fr; }
.payment-options { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.payment-options legend { flex-basis: 100%; }
.payment-options label { align-items: center; flex-direction: row; font-size: 1rem; }
.payment-options input, .agreement input { accent-color: var(--accent-color); height: 1.1rem; width: 1.1rem; }
.agreement { align-items: flex-start; background: #f4f6f2; border-radius: 8px; flex-direction: row !important; font-weight: 500 !important; line-height: 1.5; margin: 1.5rem 0; padding: 1rem; }
.agreement input { flex: 0 0 auto; margin-top: .2rem; }
.checkout-total { align-items: center; border-top: 2px solid var(--accent-color); display: flex; font-size: 1.15rem; justify-content: space-between; margin-top: 1.5rem; padding: 1rem 0; }
.place-order-button { width: 100%; }
.place-order-button:disabled { cursor: wait; opacity: .65; }
.checkout-error { color: #8b2d2d; font-size: .9rem; margin: 1rem 0 0; }
.confirmation-page { align-items: center; display: flex; justify-content: center; min-height: 70vh; padding: 3rem 5%; }
.confirmation-card { background: white; border-radius: 12px; box-shadow: 0 12px 35px rgba(0,0,0,.08); max-width: 650px; padding: 3rem; text-align: center; }
.confirmation-card h1 { font-size: clamp(3rem, 9vw, 5rem); }
.confirmation-check { align-items: center; background: var(--accent-color); border-radius: 50%; color: white; display: inline-flex; font-size: 1.5rem; height: 3rem; justify-content: center; width: 3rem; }

.empty-cart {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-cart h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail {
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .checkout-grid, .address-row { grid-template-columns: 1fr; }
    .store-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-info h1 {
        font-size: 3rem;
    }

    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
    }

    .cart-item > img {
        width: 72px;
    }

    .cart-quantity,
    .cart-item > strong {
        grid-column: 2;
    }

    .remove-button {
        grid-column: 3;
        grid-row: 2;
    }
}

@media (max-width: 480px) {
    .store-hero {
        padding: 3.5rem 5%;
    }

    .store-content,
    .cart-content {
        padding: 3rem 5%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-info h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }
}
