/* ============================
   REVIEWS PAGE STYLES
   ============================ */

/* Stats Banner */
.reviews-stats {
    background: linear-gradient(135deg, #9c27b0 0%, #ff4d94 100%);
    padding: 40px 0;
    color: #fff;
}

.reviews-stats .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 10px 50px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-stars {
    color: #ffe082;
    font-size: 1rem;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
}

/* Filter Bar */
.reviews-filter-bar {
    background: #fff;
    border-bottom: 1px solid #f0e0f7;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(156,39,176,0.07);
}

.reviews-filter-bar .container {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f9f0ff;
    border: 1.5px solid #e0b0ff;
    color: #9c27b0;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #9c27b0 0%, #ff4d94 100%);
    color: #fff;
    border-color: transparent;
}

.sort-select {
    margin-left: auto;
}

.sort-select select {
    border: 1.5px solid #e0b0ff;
    border-radius: 20px;
    padding: 6px 16px;
    color: #9c27b0;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
    background: #f9f0ff;
}

/* Reviews Grid */
.reviews-main {
    background: #faf5ff;
    padding: 50px 0 60px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

/* Review Card — photo on top */
.review-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(156,39,176,0.08);
    border: 1px solid #f3e5ff;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(156,39,176,0.16);
}

/* Review photo at top of card */
.review-photo-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a0533;
}

.review-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.review-card:hover .review-photo {
    transform: scale(1.04);
}

/* Card body below photo */
.review-card-body {
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.reviewer-location {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.reviewer-location i {
    color: #ff4d94;
    margin-right: 3px;
}

.review-rating {
    color: #ffb300;
    font-size: 0.88rem;
    white-space: nowrap;
    padding-top: 2px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-badge {
    display: inline-block;
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-badge.shipping {
    background: #e3f2fd;
    color: #1565c0;
}

.review-badge.service {
    background: #fce4ec;
    color: #c62828;
}

.review-date {
    font-size: 0.8rem;
    color: #bbb;
}

.review-date i {
    color: #ce93d8;
    margin-right: 4px;
}

.review-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.review-body {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    flex: 1;
}

.review-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f3e5ff;
    color: #9c27b0;
    border-radius: 10px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    margin-top: auto;
}

.helpful-label {
    font-size: 0.82rem;
    color: #aaa;
}

.helpful-btn {
    background: none;
    border: 1.5px solid #e0b0ff;
    color: #9c27b0;
    border-radius: 14px;
    padding: 4px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.helpful-btn:hover,
.helpful-btn.voted {
    background: #9c27b0;
    color: #fff;
    border-color: #9c27b0;
}

/* Load More */
.load-more-wrap {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #9c27b0 0%, #ff4d94 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 44px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.2s, transform 0.2s;
}

.load-more-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Write Review CTA */
.write-review-cta {
    background: linear-gradient(135deg, #9c27b0 0%, #ff4d94 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.9;
}

.write-review-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.write-review-cta p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #9c27b0;
    border-radius: 30px;
    padding: 14px 44px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #9c27b0;
}

/* ============================
   HOMEPAGE REVIEW SECTION
   ============================ */
.home-reviews-section {
    background: #faf5ff;
    padding: 60px 0;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

/* Home review card — photo on top */
.home-review-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(156,39,176,0.08);
    border: 1px solid #f3e5ff;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(156,39,176,0.15);
}

.home-review-photo-wrap {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a0533;
}

.home-review-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-review-card:hover .home-review-photo {
    transform: scale(1.05);
}

/* Card body */
.home-review-card-body {
    padding: 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.home-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.home-reviewer-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #222;
}

.home-reviewer-location {
    font-size: 0.74rem;
    color: #bbb;
    margin-top: 2px;
}

.home-reviewer-location i {
    color: #ff4d94;
    margin-right: 3px;
}

.home-review-stars {
    color: #ffb300;
    font-size: 0.78rem;
    white-space: nowrap;
    padding-top: 2px;
}

.home-review-date {
    font-size: 0.76rem;
    color: #bbb;
}

.home-review-date i {
    color: #ce93d8;
    margin-right: 3px;
}

.home-review-text {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* View All button */
.home-reviews-viewall {
    text-align: center;
}

.home-reviews-viewall a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff4d94;
    color: #fff;
    border-radius: 30px;
    padding: 13px 38px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.home-reviews-viewall a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: #e63f82;
    color: #fff;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
    .home-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .stat-item {
        padding: 10px 24px;
    }
    .stat-divider {
        display: none;
    }
    .reviews-filter-bar .container {
        gap: 10px;
    }
    .sort-select {
        margin-left: 0;
        width: 100%;
    }
    .review-photo-wrap {
        height: 300px;
    }
}
