/* LuxeWall Custom Styles */

.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; 
}

.glass-nav { 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-in {
    animation-fill-mode: both;
    animation-duration: 300ms;
}

.fade-in { animation-name: fade-in; }
.zoom-in { animation-name: zoom-in; }

/* ============================================
   WILDBERRIES-STYLE CATALOG
   ============================================ */

/* --- Catalog Toolbar --- */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.catalog-toolbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-toolbar__count {
    font-size: 13px;
    color: #9e9e9e;
    white-space: nowrap;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}

.catalog-sort:hover {
    border-color: #b5b5b5;
}

.catalog-sort .material-symbols-outlined {
    font-size: 16px;
}

.catalog-sort__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
    display: none;
}

.catalog-sort__dropdown.open {
    display: block;
}

.catalog-sort__option {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.catalog-sort__option:hover {
    background: #f5f5f5;
}

.catalog-sort__option.active {
    color: #705b37;
    font-weight: 600;
}

/* Filter pills */
.catalog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.filter-pill:hover {
    border-color: #b5b5b5;
    background: #fafafa;
}

.filter-pill.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.filter-pill .material-symbols-outlined {
    font-size: 16px;
}

/* --- Product Grid --- */
.wb-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1280px) {
    .wb-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .wb-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wb-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .wb-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* --- Product Card --- */
.wb-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wb-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Card image area */
.wb-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 aspect ratio */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #f5f5f5;
}

.wb-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wb-card:hover .wb-card__image {
    transform: scale(1.05);
}

/* Favorite heart button */
.wb-card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 5;
    transition: all 0.2s;
    opacity: 0;
}

.wb-card:hover .wb-card__favorite {
    opacity: 1;
}

.wb-card__favorite .material-symbols-outlined {
    font-size: 20px;
    color: #9e9e9e;
    transition: color 0.2s;
}

.wb-card__favorite:hover .material-symbols-outlined {
    color: #ff4081;
}

.wb-card__favorite.active .material-symbols-outlined {
    color: #ff4081;
    font-variation-settings: 'FILL' 1;
}

/* Quick view button */
.wb-card__quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.wb-card:hover .wb-card__quick-view {
    opacity: 1;
    transform: translateY(0);
}

/* Discount badge */
.wb-card__discount {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 4;
    line-height: 1;
}

/* Out of stock overlay */
.wb-card__out-of-stock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-card__out-of-stock span {
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 6px;
}

/* Card content area */
.wb-card__content {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

/* Price block */
.wb-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wb-card__price-current {
    font-size: 18px;
    font-weight: 800;
    color: #705b37;
    line-height: 1.2;
}

.wb-card__price-old {
    font-size: 12px;
    color: #9e9e9e;
    text-decoration: line-through;
    line-height: 1.2;
}

/* Brand + title */
.wb-card__title {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.wb-card__brand {
    font-weight: 700;
}

.wb-card__separator {
    color: #9e9e9e;
    margin: 0 3px;
}

/* Rating */
.wb-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9e9e9e;
    margin-top: 2px;
}

.wb-card__rating-star {
    font-size: 14px;
    color: #ffc107;
    font-variation-settings: 'FILL' 1;
}

.wb-card__rating-value {
    font-weight: 700;
    color: #333;
    font-size: 12px;
}

.wb-card__rating-count {
    font-size: 12px;
    color: #9e9e9e;
}

/* Action button */
.wb-card__action-btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wb-card__action-btn--primary {
    background: #705b37;
    color: #fff;
}

.wb-card__action-btn--primary:hover {
    background: #5a4a2d;
}

.wb-card__action-btn--disabled {
    background: #e8e8e8;
    color: #9e9e9e;
    cursor: not-allowed;
}

.wb-card__action-btn .material-symbols-outlined {
    font-size: 16px;
}

/* --- Pagination --- */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    padding: 16px 0;
}

.catalog-pagination__btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-pagination__btn:hover {
    border-color: #705b37;
    color: #705b37;
}

.catalog-pagination__btn.active {
    background: #705b37;
    color: #fff;
    border-color: #705b37;
}

.catalog-pagination__btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.catalog-pagination__btn .material-symbols-outlined {
    font-size: 20px;
}

/* --- Load More --- */
.catalog-load-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.catalog-load-more__btn {
    padding: 14px 48px;
    border-radius: 12px;
    border: 2px solid #705b37;
    background: transparent;
    color: #705b37;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.02em;
}

.catalog-load-more__btn:hover {
    background: #705b37;
    color: #fff;
}

/* --- Catalog header --- */
.catalog-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.catalog-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.catalog-header__count {
    font-size: 14px;
    color: #9e9e9e;
}

/* Card fade-in animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wb-card {
    animation: cardFadeIn 0.4s ease both;
}

.wb-card:nth-child(1) { animation-delay: 0.02s; }
.wb-card:nth-child(2) { animation-delay: 0.04s; }
.wb-card:nth-child(3) { animation-delay: 0.06s; }
.wb-card:nth-child(4) { animation-delay: 0.08s; }
.wb-card:nth-child(5) { animation-delay: 0.10s; }
.wb-card:nth-child(6) { animation-delay: 0.12s; }
.wb-card:nth-child(7) { animation-delay: 0.14s; }
.wb-card:nth-child(8) { animation-delay: 0.16s; }
.wb-card:nth-child(9) { animation-delay: 0.18s; }
.wb-card:nth-child(10) { animation-delay: 0.20s; }

@media (max-width: 768px) {
    .catalog-header__title {
        font-size: 22px;
    }
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .wb-card__price-current {
        font-size: 15px;
    }
    .wb-card__title {
        font-size: 12px;
    }
    .wb-card__action-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    .wb-card__favorite {
        opacity: 1;
        width: 30px;
        height: 30px;
    }
    .wb-card__favorite .material-symbols-outlined {
        font-size: 18px;
    }
}

/* ============================================
   WB-STYLE PRODUCT MODAL
   ============================================ */

.wb-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wb-modal.open {
    display: block;
}

.wb-modal__container {
    background: #fff;
    max-width: 1200px;
    width: 95%;
    margin: 30px auto;
    border-radius: 20px;
    position: relative;
    animation: modalSlideIn 0.35s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wb-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wb-modal__close:hover {
    background: #e0e0e0;
}

.wb-modal__close .material-symbols-outlined {
    font-size: 22px;
    color: #666;
}

.wb-modal__body {
    padding: 0;
}

/* --- Modal Layout: 3-column --- */
.wb-product-layout {
    display: grid;
    grid-template-columns: 80px 1fr 320px;
    gap: 0;
    min-height: 500px;
}

/* Thumbnails column */
.wb-product__thumbs {
    padding: 24px 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.wb-product__thumb {
    width: 64px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.wb-product__thumb:hover,
.wb-product__thumb.active {
    border-color: #705b37;
}

.wb-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main image */
.wb-product__main-image {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.wb-product__main-image img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 16px;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.wb-product__main-image img:hover {
    transform: scale(1.02);
}

/* Info column */
.wb-product__info {
    padding: 24px 24px 24px 0;
    border-left: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    max-height: 600px;
}

/* Brand */
.wb-product__brand {
    font-size: 14px;
    color: #705b37;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0 16px;
}

/* Title */
.wb-product__title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 12px 0;
    padding: 0 16px;
}

/* Rating row */
.wb-product__rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #9e9e9e;
}

.wb-product__rating-row .material-symbols-outlined {
    font-size: 16px;
    color: #ffc107;
    font-variation-settings: 'FILL' 1;
}

.wb-product__rating-value {
    font-weight: 700;
    color: #333;
}

.wb-product__rating-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
}

/* Price block in sidebar */
.wb-product__price-card {
    background: #fafafa;
    border-radius: 14px;
    padding: 20px 16px;
    margin: 0 16px 16px;
}

.wb-product__price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 24px;
}

.quick-pack-chip {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-pack-chip:hover {
    border-color: #d4a754;
    background: #fffaf0;
    color: #d4a754;
}

.quick-pack-chip:active {
    transform: scale(0.95);
}

/* Hide number input arrows */
#manualQty::-webkit-outer-spin-button,
#manualQty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#manualQty {
    -moz-appearance: textfield;
}

.wb-product__qty-section {
    padding: 20px;
    background: #fafafa;
    border-radius: 24px;
}

.wb-product__price-card {
    margin-bottom: 24px;
}

.pack-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 70px;
}

.pack-btn:hover {
    border-color: #fbdfb0;
    background: #fffdf9;
}

.pack-btn.active {
    border-color: #d4a754;
    background: #fffaf0;
    box-shadow: 0 4px 12px rgba(212, 167, 84, 0.1);
}

.pack-btn__qty {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.pack-btn__price {
    font-size: 12px;
    color: #9e9e9e;
    margin-top: 2px;
}

.pack-btn.active .pack-btn__price {
    color: #d4a754;
}

.pack-btn__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.wb-product__price-main {
    font-size: 28px;
    font-weight: 800;
    color: #705b37;
}

.wb-product__price-old {
    font-size: 15px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.wb-product__price-discount {
    font-size: 13px;
    font-weight: 700;
    color: #ff4757;
    background: #fff0f0;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Action buttons */
.wb-product__actions {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.wb-product__btn-cart {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: #705b37;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wb-product__btn-cart:hover {
    background: #5a4a2d;
}

.wb-product__btn-cart .material-symbols-outlined {
    font-size: 20px;
}

.wb-product__btn-buy {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #705b37;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #705b37;
}

.wb-product__btn-buy:hover {
    background: #705b37;
    color: #fff;
}

.wb-product__btn-disabled {
    background: #e8e8e8 !important;
    color: #9e9e9e !important;
    border-color: #e8e8e8 !important;
    cursor: not-allowed !important;
}

/* Delivery info */
.wb-product__delivery {
    padding: 0 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.wb-product__delivery-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wb-product__delivery-row:last-child {
    border-bottom: none;
}

.wb-product__delivery-row .material-symbols-outlined {
    font-size: 18px;
    color: #705b37;
}

/* Seller info */
.wb-product__seller {
    padding: 12px 16px;
    margin: 0 16px;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.wb-product__seller-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #705b37;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.wb-product__seller-name {
    font-weight: 600;
    color: #333;
}

.wb-product__seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9e9e9e;
}

.wb-product__seller-rating .material-symbols-outlined {
    font-size: 14px;
    color: #ffc107;
    font-variation-settings: 'FILL' 1;
}

/* --- Bottom section: specs, description, reviews --- */
.wb-product__bottom {
    border-top: 1px solid #f0f0f0;
    padding: 32px;
}

/* Specs table */
.wb-product__specs {
    margin-bottom: 32px;
}

.wb-product__specs-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.wb-product__specs-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-product__specs-table tr {
    border-bottom: 1px solid #f5f5f5;
}

.wb-product__specs-table tr:last-child {
    border-bottom: none;
}

.wb-product__specs-table td {
    padding: 10px 0;
    font-size: 14px;
}

.wb-product__specs-table td:first-child {
    color: #9e9e9e;
    width: 45%;
    padding-right: 20px;
}

.wb-product__specs-table td:last-child {
    color: #333;
    font-weight: 500;
}

/* Description */
.wb-product__desc {
    margin-bottom: 32px;
}

.wb-product__desc-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.wb-product__desc-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* Reviews section */
.wb-product__reviews {
    margin-bottom: 0;
}

.wb-product__reviews-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.wb-product__reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.wb-product__reviews-count {
    font-size: 14px;
    color: #9e9e9e;
}

/* Rating summary */
.wb-product__rating-summary {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fafafa;
    border-radius: 16px;
}

.wb-product__rating-big {
    text-align: center;
    flex-shrink: 0;
}

.wb-product__rating-big-number {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.wb-product__rating-big-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 8px;
}

.wb-product__rating-big-stars .material-symbols-outlined {
    font-size: 18px;
    color: #ffc107;
    font-variation-settings: 'FILL' 1;
}

.wb-product__rating-big-label {
    font-size: 12px;
    color: #9e9e9e;
    margin-top: 4px;
}

/* Rating bars */
.wb-product__rating-bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wb-product__rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9e9e9e;
}

.wb-product__rating-bar-label {
    width: 12px;
    text-align: right;
    font-weight: 600;
    color: #666;
}

.wb-product__rating-bar-track {
    flex-grow: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.wb-product__rating-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.wb-product__rating-bar-count {
    width: 24px;
    font-size: 11px;
    color: #bbb;
}

/* Individual review card */
.wb-product__review-card {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wb-product__review-card:last-child {
    border-bottom: none;
}

.wb-product__review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wb-product__review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wb-product__review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.wb-product__review-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wb-product__review-date {
    font-size: 12px;
    color: #9e9e9e;
}

.wb-product__review-stars {
    display: flex;
    gap: 1px;
}

.wb-product__review-stars .material-symbols-outlined {
    font-size: 14px;
    font-variation-settings: 'FILL' 1;
}

.wb-product__review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 6px;
}

.wb-product__review-verified {
    font-size: 12px;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wb-product__review-verified .material-symbols-outlined {
    font-size: 14px;
}

/* --- Responsive modal --- */
@media (max-width: 900px) {
    .wb-modal__container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .wb-product-layout {
        grid-template-columns: 1fr;
    }

    .wb-product__thumbs {
        flex-direction: row;
        padding: 16px;
        max-height: none;
        overflow-x: auto;
    }

    .wb-product__thumb {
        width: 48px;
        height: 60px;
    }

    .wb-product__main-image {
        padding: 0 16px 16px;
    }

    .wb-product__info {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 16px;
        max-height: none;
    }

    .wb-product__bottom {
        padding: 20px 16px;
    }

    .wb-product__rating-summary {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .wb-product__price-main {
        font-size: 22px;
    }
    .wb-product__title {
        font-size: 15px;
    }
    }
}

/* --- General Reviews Section --- */
#reviewsGrid {
    perspective: 1000px;
}

#reviewsGrid > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#reviewsGrid > div:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #fbdfb0;
}

.wb-product__review-avatar {
    background: linear-gradient(135deg, #fbdfb0 0%, #dec396 100%);
    color: #564421;
}

@media (max-width: 768px) {
    #reviewsGrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Catalog Grid --- */
.wb-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .wb-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.wb-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.wb-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-4px);
    border-color: #fbdfb0;
}

.wb-card__image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f9f9f9;
}

.wb-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wb-card:hover .wb-card__image {
    transform: scale(1.08);
}

.wb-card__discount {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.wb-card__quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    backdrop-blur: 4px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.wb-card:hover .wb-card__quick-view {
    opacity: 1;
}

.wb-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.wb-card__price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wb-card__price-current {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
}

.wb-card__price-old {
    font-size: 13px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.wb-card__title {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wb-card__action-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.wb-card__action-btn--primary {
    background: #705b37;
    color: white;
}

.wb-card__action-btn--primary:hover {
    background: #5a4a2d;
}
