.shop-page-body {
    padding-bottom: 3rem;
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.shop-filter-btn {
    padding: 0.65rem 1.25rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.shop-filter-btn:hover,
.shop-filter-btn.is-active {
    border-color: #333;
    background: #333;
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.shop-card {
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.shop-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.04);
}

.shop-card-body {
    padding: 1rem 1.1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.35rem;
}

.shop-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.shop-card-price {
    margin-top: auto;
    font-size: 1.05rem;
    color: #333;
}

.shop-card-price.is-free {
    color: #666;
}

.shop-card-contact,
.shop-product-contact {
    margin-top: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #666;
}

.shop-card-contact a,
.shop-product-contact a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.shop-card-contact a:hover,
.shop-product-contact a:hover {
    text-decoration: underline;
}

.shop-product-contact {
    display: none;
}

.shop-mode-vitrine .shop-feature-cart {
    display: none !important;
}

.shop-mode-vitrine .shop-product-contact {
    display: block;
}

.shop-loading,
.shop-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    grid-column: 1 / -1;
}

/* Фиксированная корзина */
.shop-cart-fab {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.shop-cart-fab:hover {
    background: #d4af37;
    transform: translateY(-50%) scale(1.05);
}

.shop-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #d4af37;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-cart-badge:empty,
.shop-cart-badge[data-count="0"] {
    display: none;
}

/* Оверлеи */
.shop-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shop-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Модалка товара */
.shop-product-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shop-product-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shop-product-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.shop-product-gallery {
    background: #f9f9f9;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-product-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.shop-product-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.shop-product-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: none;
}

.shop-product-thumb.is-active {
    border-color: #d4af37;
}

.shop-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-info {
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.shop-product-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.shop-product-price {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 1rem;
}

.shop-product-desc {
    color: #555;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
}

.shop-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.shop-qty-label {
    font-size: 0.95rem;
    color: #666;
}

.shop-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
}

.shop-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
}

.shop-qty-btn:hover {
    background: #eee;
}

.shop-qty-input {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-btn-primary {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #333;
    background: #333;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.shop-btn-primary:hover {
    background: transparent;
    color: #333;
}

.shop-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shop-modal-close:hover {
    color: #d4af37;
}

/* Панель корзины */
.shop-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9700;
    width: min(440px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.shop-cart-panel.is-open {
    transform: translateX(0);
}

.shop-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.shop-cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.shop-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.shop-cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}

.shop-cart-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #333;
}

.shop-cart-item-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.2rem;
}

.shop-cart-item-remove {
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.shop-cart-item-remove:hover {
    color: #c00;
}

.shop-cart-total {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
}

.shop-cart-empty {
    text-align: center;
    color: #888;
    padding: 2rem 0;
}

.shop-order-form {
    border-top: 1px solid #eee;
    padding-top: 1.25rem;
}

.shop-order-form h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.shop-field {
    margin-bottom: 1rem;
}

.shop-field label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.35rem;
}

.shop-field input,
.shop-field textarea,
.shop-field select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border-radius: 2px;
}

.shop-field textarea {
    min-height: 80px;
    resize: vertical;
}

.shop-radio-group {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.shop-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    cursor: pointer;
}

.shop-room-field {
    display: none;
}

.shop-room-field.is-visible {
    display: block;
}

.shop-form-msg {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.shop-form-msg.is-error {
    color: #b33;
}

.shop-form-msg.is-success {
    color: #2a7a2a;
}

.shop-cart-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

@media (max-width: 1100px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .shop-product-dialog {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .shop-cart-fab {
        right: 12px;
        width: 50px;
        height: 50px;
    }

    .shop-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .shop-filter-btn {
        flex-shrink: 0;
    }
}
