.products-modal-head{gap:16px}
.products-modal-actions,.modal-inline-actions,.reviews-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.products-modal-actions{flex-shrink:0}
.products-cart-button{position:relative;width:46px;height:46px;min-width:46px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--secondary-button-text);background:var(--secondary-button-bg);border:1px solid var(--secondary-button-border);border-radius:14px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease}
.products-cart-button:hover{color:var(--secondary-button-hover-text);background:var(--secondary-button-hover-bg);border-color:var(--secondary-button-hover-border);transform:translateY(-1px)}
.products-cart-button.has-items{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.products-cart-button.cart-pulse{animation:productsCartPulse .42s ease}
.products-cart-icon{width:23px;height:23px;display:block;pointer-events:none}
.products-cart-count{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;color:#111;font-size:11px;line-height:1;font-weight:900;background:var(--accent);border:2px solid var(--card);border-radius:999px;box-shadow:0 4px 12px rgba(17,24,39,.18);pointer-events:none}
.products-cart-count.is-empty{display:none}
.google-review-card{position:relative;display:flex;flex-direction:column;min-width:0}
.google-review-user{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.google-review-photo,.google-review-avatar{width:48px;height:48px;min-width:48px;border-radius:50%}
.google-review-photo{object-fit:cover;background:#f3f4f6;border:1px solid var(--border)}
.google-review-avatar{display:inline-flex;align-items:center;justify-content:center;color:#111827;font-size:19px;font-weight:900;background:#e5e7eb}
.google-review-user-info{min-width:0}
.google-review-name{display:block;color:var(--text);font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.google-review-label{display:inline-flex;align-items:center;gap:5px;margin-top:4px;color:#2563eb;font-size:12px;font-weight:800}
.google-review-label-icon{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;font:900 12px Arial,sans-serif;background:#fff;border:1px solid #dbeafe;border-radius:50%}
.google-review-date{margin-top:9px;color:#6b7280;font-size:12px}
.google-review-card p{white-space:pre-line;overflow-wrap:anywhere}
.empty-comments{grid-column:1/-1;padding:24px;text-align:center;color:#6b7280;background:var(--card);border:1px dashed var(--border);border-radius:16px}
@keyframes productsCartPulse{0%,100%{transform:scale(1)}45%{transform:scale(1.12)}}
@media(max-width:640px){
    .products-modal-head{align-items:center}
    .products-modal-head h2{font-size:21px;line-height:1.2}
    .products-modal-actions{gap:7px}
    .products-cart-button{width:42px;height:42px;min-width:42px;border-radius:12px}
    .products-cart-icon{width:21px;height:21px}
    .products-modal-actions .close{min-height:42px;padding-left:12px;padding-right:12px}
    .reviews-section-head{align-items:stretch;flex-direction:column}
    .reviews-head-actions{display:grid;grid-template-columns:1fr;width:100%}
    .reviews-head-actions .btn{width:100%;box-sizing:border-box;text-align:center;justify-content:center}
}
@media(max-width:380px){
    .products-modal-head h2{font-size:18px}
    .products-modal-actions .close{padding-left:9px;padding-right:9px;font-size:12px}
}

.member-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-review-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}

.member-review-photo,
.member-review-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
}

.member-review-photo {
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid var(--border);
}

.member-review-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #111827;
    font-size: 19px;
    font-weight: 900;
}

.member-review-user-info {
    min-width: 0;
}

.member-review-name {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.member-review-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
}

.member-review-label-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.member-review-date {
    margin-top: 9px;
    color: #6b7280;
    font-size: 12px;
}

.member-review-card p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}


.products-filter-area {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(170px, 240px) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.products-filter-area .input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.products-filter-clear {
    white-space: nowrap;
}

.products-filter-result {
    min-height: 20px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.products-filter-empty {
    grid-column: 1 / -1;
    padding: 28px 18px;
    text-align: center;
    color: #6b7280;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

@media (max-width: 700px) {
    .products-filter-area {
        grid-template-columns: 1fr;
    }

    .products-filter-clear {
        width: 100%;
        justify-content: center;
    }
}



.reviews-slider-wrap {
    position: relative;
}

.reviews-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 42px) / 4);
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.reviews-slider .comment-card {
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.reviews-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .16);
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
    transition: .18s ease;
}

.reviews-slider-arrow:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.reviews-slider-prev {
    left: -23px;
}

.reviews-slider-next {
    right: -23px;
}

.reviews-slider-arrow:disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 900px) {
    .reviews-slider {
        grid-auto-columns: calc((100% - 14px) / 2);
    }
}

@media (max-width: 640px) {
    .reviews-slider {
        grid-auto-columns: 76%;
        gap: 12px;
        padding-right: 12px;
    }

    .reviews-slider-arrow {
        display: none;
    }
}

