.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;
}

.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) {
    .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;
    }
}
