/* ============================================
   EQUIPMENT CATALOG — Каталог товаров
   ============================================ */

/* ---------- HERO (existing — untouched) ---------- */
/* The page-header is in equipment.html, styled by style.css */

/* ---------- SEARCH BAR ---------- */
.rv-search-wrap {
    max-width: 640px;
    margin: 0 auto 40px;
    position: relative;
}
.rv-search {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.rv-search:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(27,153,139,0.15);
    outline: none;
}
.rv-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}
.rv-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--cream);
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.rv-search-clear:hover {
    background: var(--teal-soft);
    color: var(--teal);
}
.rv-search-clear.visible {
    display: flex;
}

/* ---------- AUTOCOMPLETE DROPDOWN ---------- */
.rv-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 360px;
    overflow-y: auto;
    display: none;
}
.rv-autocomplete.open {
    display: block;
}
.rv-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.rv-ac-item:last-child {
    border-bottom: none;
}
.rv-ac-item:hover,
.rv-ac-item.active {
    background: var(--teal-soft);
}
.rv-ac-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.rv-ac-info {
    flex: 1;
    min-width: 0;
}
.rv-ac-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rv-ac-cat {
    font-size: 0.75rem;
    color: var(--muted);
}
.rv-ac-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
    flex-shrink: 0;
}

/* ---------- CATEGORIES GRID ---------- */
.rv-cats-section {
    padding-bottom: 24px;
}
.rv-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}
.rv-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
}
.rv-cat-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27,153,139,0.12);
}
.rv-cat-card.active {
    border-color: var(--teal);
    background: var(--teal-soft);
}
.rv-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background var(--transition), transform var(--transition);
}
.rv-cat-card:hover .rv-cat-icon {
    background: var(--teal);
    transform: scale(1.1);
}
.rv-cat-card:hover .rv-cat-icon span {
    filter: brightness(0) invert(1);
}
.rv-cat-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}
.rv-cat-count {
    font-size: 0.7rem;
    color: var(--muted);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ---------- TOOLBAR (sort, view, favorites) ---------- */
.rv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.rv-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rv-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rv-result-count {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}
.rv-result-count strong {
    color: var(--navy);
}
.rv-sort-select,
.rv-filter-select {
    padding: 8px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--transition);
}
.rv-sort-select:focus,
.rv-filter-select:focus {
    border-color: var(--teal);
    outline: none;
}
.rv-price-range-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rv-price-input {
    width: 80px;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    text-align: center;
    background: var(--white);
    color: var(--text);
}
.rv-price-input:focus {
    border-color: var(--teal);
    outline: none;
}
.rv-price-sep {
    color: var(--muted);
    font-weight: 600;
}
.rv-fav-toggle {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rv-fav-toggle:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}
.rv-fav-toggle.active {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
}

/* ---------- PRODUCT GRID ---------- */
.rv-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ---------- PRODUCT CARD ---------- */
.rv-product-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.rv-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.rv-product-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--cream);
    overflow: hidden;
}
.rv-product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}
.rv-product-img-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rv-product-card:hover .rv-product-img-hover {
    opacity: 1;
}
.rv-product-card:hover .rv-product-img {
    transform: scale(1.05);
}
.rv-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.rv-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.rv-badge-hit {
    background: var(--gold);
    color: var(--navy);
}
.rv-badge-doctor {
    background: var(--teal);
    color: var(--white);
}
.rv-badge-home {
    background: var(--cream);
    color: var(--navy);
}
.rv-badge-promo {
    background: var(--red);
    color: var(--white);
}
.rv-badge-soon {
    background: var(--cream);
    color: var(--navy);
    border: 1px solid var(--border);
}
.rv-cat-soon {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}
.rv-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rv-fav-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}
.rv-fav-btn.favorited {
    background: var(--gold);
}
.rv-fav-btn svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: color var(--transition);
}
.rv-fav-btn.favorited svg {
    color: var(--navy);
}

.rv-product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rv-product-title {
    font-family: 'PT Serif', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rv-product-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.rv-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.rv-product-price {
    font-family: 'PT Serif', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}
.rv-product-price-old {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
}
.rv-product-promo {
    font-size: 0.72rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 4px 8px;
    background: var(--red-soft);
    border-radius: 6px;
    display: inline-block;
}
.rv-product-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.rv-buy-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 1 auto;
}
.rv-buy-armed {
    background: var(--navy);
    color: var(--white);
}
.rv-buy-armed:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,153,139,0.3);
}
.rv-buy-ali {
    background: var(--gold);
    color: var(--navy);
}
.rv-buy-ali:hover {
    background: var(--gold-dark);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,195,0,0.3);
}
.rv-product-actions {
    display: flex;
    gap: 8px;
}
.rv-detail-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.rv-detail-promo-tag {
    font-size: 0.72rem;
    background: var(--red);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}
.rv-details-btn {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--cream);
    color: var(--navy);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-align: center;
}
.rv-details-btn:hover {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal);
}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.rv-detail {
    display: none;
}
.rv-detail.visible {
    display: block;
    padding: 24px 60px 48px 80px;
}
.rv-detail-card {
    max-width: 920px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    border-left: 4px solid var(--teal);
    box-shadow: var(--shadow);
}
.rv-detail-card .rv-detail-back {
    padding-left: 8px;
}
.rv-detail-card .rv-tabs,
.rv-detail-card .rv-similar {
    padding-left: 8px;
}
.rv-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.rv-detail-grid.rv-detail-grid-single {
    grid-template-columns: 1fr;
}
.rv-gallery {
    display: none;
}
.rv-gallery.has-img {
    display: block;
    max-width: 100%;
    margin-bottom: 0;
}
.rv-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.rv-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.rv-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    margin-bottom: 20px;
    cursor: pointer;
    transition: gap var(--transition);
}
.rv-detail-back:hover {
    gap: 10px;
}
.rv-detail-back-wrap {
    text-align: center;
}
.rv-detail-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 700px;
}
.rv-tab-text {
    max-width: 700px;
    line-height: 1.7;
}
.rv-tab-content h3 {
    margin-top: 0;
}
.rv-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}
.rv-gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    transition: border-color var(--transition);
}
.rv-gallery-thumb:hover,
.rv-gallery-thumb.active {
    border-color: var(--teal);
}
.rv-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Detail info */
.rv-detail-info {
    display: flex;
    flex-direction: column;
    max-width: 640px;
}
.rv-detail-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.rv-detail-title {
    font-family: 'PT Serif', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.25;
    max-width: 600px;
}
.rv-detail-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.rv-detail-price {
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}
.rv-detail-price-old {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
}
.rv-detail-promo-block {
    background: var(--gold-soft);
    border: 1px dashed var(--gold);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rv-detail-promo-text {
    font-size: 0.85rem;
    color: var(--navy);
}
.rv-detail-promo-text strong {
    color: var(--red);
}
.rv-copy-promo {
    padding: 6px 14px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    background: var(--white);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    font-family: inherit;
}
.rv-copy-promo:hover {
    background: var(--gold);
    color: var(--navy);
}
.rv-copy-promo.copied {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}
.rv-detail-buy-btn {
    flex: 0 1 auto;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.rv-detail-buy-armed {
    background: var(--navy);
    color: var(--white);
}
.rv-detail-buy-armed:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27,153,139,0.3);
}
.rv-detail-buy-ali {
    background: var(--gold);
    color: var(--navy);
}
.rv-detail-buy-ali:hover {
    background: var(--gold-dark);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,195,0,0.3);
}
.rv-detail-share {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.rv-share-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rv-share-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.rv-share-btn.copied {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

/* Tabs */
.rv-tabs {
    margin-bottom: 48px;
    max-width: 760px;
}
.rv-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.rv-tab-btn {
    padding: 14px 24px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.rv-tab-btn:hover {
    color: var(--navy);
}
.rv-tab-btn.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}
.rv-tab-content {
    display: none;
}
.rv-tab-content.active {
    display: block;
}
.rv-tab-content h3 {
    font-family: 'PT Serif', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.rv-tab-content p,
.rv-tab-content li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
}
.rv-tab-content ul {
    padding-left: 20px;
    margin: 12px 0;
}
.rv-tab-content li {
    margin-bottom: 6px;
}
.rv-specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.rv-specs-table tr:nth-child(even) {
    background: var(--cream);
}
.rv-specs-table td {
    padding: 10px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.rv-specs-table td:first-child {
    font-weight: 600;
    color: var(--navy);
    width: 40%;
}
.rv-tab-content .rv-specs-table {
    max-width: 600px;
}

/* Reviews */
.rv-review {
    background: var(--cream);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.rv-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.rv-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.rv-review-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy);
}
.rv-review-date {
    font-size: 0.75rem;
    color: var(--muted);
}
.rv-review-stars {
    color: var(--gold);
    font-size: 0.85rem;
}
.rv-review-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.6;
}

/* Similar products */
.rv-similar {
    margin-top: 48px;
}
.rv-similar-title {
    font-family: 'PT Serif', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

/* ---------- PARTNER SECTION ---------- */
.rv-partner-section {
    margin-top: 48px;
}

/* ---------- NO RESULTS ---------- */
.rv-no-results {
    text-align: center;
    padding: 60px 20px;
}
.rv-no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.rv-no-results h3 {
    font-family: 'PT Serif', serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 8px;
}
.rv-no-results p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- BACK TO TOP ---------- */
.rv-back-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27,153,139,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 900;
}
.rv-back-top.visible {
    opacity: 1;
    visibility: visible;
}
.rv-back-top:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
}

/* ---------- TOAST NOTIFICATION ---------- */
.rv-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.rv-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .rv-gallery.has-img {
        max-width: 240px;
    }
}
@media (max-width: 768px) {
    .rv-cats-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    .rv-cat-card {
        padding: 14px 8px;
    }
    .rv-cat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .rv-cat-name {
        font-size: 0.75rem;
    }
    .rv-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    .rv-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .rv-toolbar-left,
    .rv-toolbar-right {
        justify-content: flex-start;
    }
    .rv-detail-title {
        font-size: 1.4rem;
    }
    .rv-tab-btn {
        padding: 12px 16px;
        font-size: 0.82rem;
    }
}
@media (max-width: 768px) {
    .rv-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .rv-detail-title {
        font-size: 1.4rem;
        max-width: 100%;
    }
    .rv-detail-info {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .rv-cats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .rv-products-grid {
        grid-template-columns: 1fr;
    }
    .rv-detail-buy {
        flex-direction: column;
    }
    .rv-detail.visible {
        padding: 16px 12px 32px 20px;
    }
    .rv-detail-card {
        padding: 20px 16px;
    }
    .rv-detail-grid {
        grid-template-columns: 1fr;
    }
    .rv-detail-promo-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- LIGHT THEME OVERRIDES ---------- */
[data-theme="light"] .rv-search {
    background: #fff;
    border-color: var(--border);
}
[data-theme="light"] .rv-product-card {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .rv-cat-card {
    background: #fff;
}
[data-theme="light"] .rv-gallery-main {
    background: #fff;
}
[data-theme="light"] .rv-gallery-thumb {
    background: #fff;
}
[data-theme="light"] .rv-review {
    background: #f8f6f2;
}
[data-theme="light"] .rv-detail-promo-block {
    background: var(--gold-soft);
}
[data-theme="light"] .rv-share-btn {
    background: #fff;
}
[data-theme="light"] .rv-copy-promo {
    background: #fff;
}
