.shop-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.shop-page__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.shop-page__subtitle {
    color: #4b5563;
    margin-top: 0.5rem;
}

.shop-cart-button {
    background: var(--color-primary, #059669);
    color: #ffffff;
    border: 1px solid var(--color-primary, #059669);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-cart-button:hover,
.shop-cart-button:focus-visible {
    background: var(--color-primary-hover, #047857);
    border-color: var(--color-primary-hover, #047857);
}

.shop-cart-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-ring, rgba(5, 150, 105, 0.4));
}

.shop-cart-button__count {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.shop-search__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.shop-search__input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    background: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.shop-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.shop-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shop-card__content {
    padding: 1rem;
}

.shop-card__category {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.shop-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-card__price {
    margin: 0.75rem 0;
    font-weight: 600;
}

.shop-card__button {
    width: 100%;
    border: 1px solid var(--color-primary, #059669);
    background: var(--color-primary, #059669);
    color: #ffffff;
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-card__button:hover,
.shop-card__button:focus-visible {
    background: var(--color-primary-hover, #047857);
    border-color: var(--color-primary-hover, #047857);
}

.shop-card__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-ring, rgba(5, 150, 105, 0.4));
}

.shop-empty-state {
    margin-top: 1rem;
    color: #6b7280;
}

.shop-cart-drawer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.shop-cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shop-cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.shop-cart-drawer.is-open {
    pointer-events: auto;
}

.shop-cart-drawer.is-open .shop-cart-drawer__overlay {
    opacity: 1;
}

.shop-cart-drawer.is-open .shop-cart-drawer__panel {
    transform: translateX(0);
}

.shop-cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.shop-cart-drawer__title {
    margin: 0;
    font-size: 1.1rem;
}

.shop-cart-drawer__close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
}

.shop-cart-items {
    padding: 1rem 1.25rem;
    overflow: auto;
    flex: 1;
}

.shop-cart-empty {
    color: #6b7280;
}

.shop-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.8rem 0;
}

.shop-cart-item__info h4 {
    margin: 0;
    font-size: 0.95rem;
}

.shop-cart-item__info p {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.shop-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-cart-item__actions button {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 0.4rem;
    min-width: 2rem;
    padding: 0.25rem 0.45rem;
}

.shop-cart-item__remove {
    color: #b91c1c;
}

.shop-cart-summary {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.25rem 1.5rem;
}

.shop-cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.shop-checkout-button {
    width: 100%;
    border: 1px solid var(--color-primary, #059669);
    border-radius: 0.6rem;
    background: var(--color-primary, #059669);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 0.9rem;
    margin-top: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-checkout-button:hover,
.shop-checkout-button:focus-visible {
    background: var(--color-primary-hover, #047857);
    border-color: var(--color-primary-hover, #047857);
}

.shop-checkout-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-ring, rgba(5, 150, 105, 0.4));
}

.shop-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    max-width: 340px;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-primary, #059669);
    background: var(--color-primary, #059669);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.shop-checkout-note {
    color: #6b7280;
    font-size: 0.82rem;
    margin-top: 0.6rem;
}

@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shop-page__header {
        flex-direction: column;
        align-items: stretch;
    }

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