/* =============================================
   REVIEW DETAIL — Clean UI Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --rd-blue: #4F8EF7;
    --rd-blue-deep: #2563EB;
    --rd-green: #10b981;
    --rd-amber: #f59e0b;
    --rd-text: #1a1a2e;
    --rd-muted: #64748b;
    --rd-bg: #f4f7ff;
    --rd-white: #ffffff;
    --rd-radius: 18px;
    --rd-shadow: 0 4px 20px rgba(79, 142, 247, 0.10);
}

* {
    box-sizing: border-box;
}

/* ─── TOPBAR ─────────────────────────── */
.rd-topbar {
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(79, 142, 247, 0.10);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(79, 142, 247, 0.07);
}

.rd-back-btn {
    display: flex;
    align-items: center;
    color: var(--rd-blue);
    flex-shrink: 0;
    text-decoration: none;
}

.rd-topbar h1 {
    font-size: 15px;
    font-weight: 300;
    color: var(--rd-text);
    margin: 0;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

/* ─── PAGE ───────────────────────────── */
.rd-page {
    background: var(--rd-bg);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    padding-bottom: 90px;
}

/* ─── HERO CARD ──────────────────────── */
.rd-hero {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.rd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.rd-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

.rd-hero-content {
    position: relative;
    z-index: 2;
    padding: 16px 16px 20px;
}

.rd-hero-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.80);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.rd-hero-title {
    font-size: 20px;
    font-weight: 900;
    color: #facc15;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin: 0 0 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.rd-hero-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rd-hero-stars {
    font-size: 11px;
    line-height: 1;
}

.rd-hero-rating-num {
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.rd-hero-reviews,
.rd-hero-est {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Reviewer inside hero */
.rd-reviewer-inside {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 8px 12px;
    backdrop-filter: blur(8px);
}

.rd-reviewer-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.40);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.rd-reviewer-ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-reviewer-name {
    font-size: 12px;
    font-weight: 800;
    color: white;
}

.rd-reviewer-title {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ─── HERO SWIPER FIXES ──────────────── */
.rd-hero-swiper {
    width: 100%;
    height: 250px;
    position: relative;
}

.rd-hero-content-fixed {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.rd-hero-content-inner {
    padding: 16px 16px 30px;
}

.rd-hero-pagination {
    bottom: 12px !important;
    z-index: 20;
}

.rd-hero-pagination .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.rd-hero-pagination .swiper-pagination-bullet-active {
    background: #facc15;
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

/* ─── BODY ───────────────────────────── */
.rd-body {
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── PANEL ──────────────────────────── */
.rd-panel {
    background: white;
    border-radius: var(--rd-radius);
    padding: 20px;
    box-shadow: 0 4px 18px rgba(79, 142, 247, 0.05);
    border: 1px solid rgba(79, 142, 247, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rd-panel:hover {
    box-shadow: 0 8px 24px rgba(79, 142, 247, 0.08);
}

.rd-panel-warning {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.25);
}

.rd-panel-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--rd-text);
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.rd-panel-text {
    font-size: 12.5px;
    color: var(--rd-muted);
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* ─── PRICE PANEL ────────────────────── */
.rd-price-panel {
    background: linear-gradient(135deg, var(--rd-blue) 0%, var(--rd-blue-deep, #2563eb) 100%);
    border-color: transparent;
}

.rd-price-main {
    font-size: 22px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
}

.rd-price-strike {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.60);
    text-decoration: line-through;
    margin-left: 8px;
}

.rd-price-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 600;
}

/* ─── REVIEWER DETAIL ────────────────── */
.rd-reviewer-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rd-reviewer-detail-ava {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(79, 142, 247, 0.20);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.rd-reviewer-detail-ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-reviewer-detail-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--rd-text);
    margin-bottom: 2px;
}

.rd-reviewer-detail-title {
    font-size: 11px;
    color: var(--rd-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.rd-reviewer-detail-bio {
    font-size: 11px;
    color: var(--rd-muted);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ─── BULLET LIST ────────────────────── */
.rd-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-bullet-list li {
    font-size: 12px;
    color: var(--rd-muted);
    line-height: 1.55;
    padding-left: 20px;
    position: relative;
}

.rd-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rd-blue);
    flex-shrink: 0;
}

.rd-bullet-get li::before {
    background: var(--rd-green);
}



/* ─── UNILIFE BANNER ─────────────────── */
.rd-unilife-banner {
    background: linear-gradient(135deg, var(--rd-blue) 0%, var(--rd-blue-deep, #2563eb) 100%);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(79, 142, 247, 0.22);
}

.rd-unilife-logo {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.rd-unilife-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rd-unilife-text strong {
    font-size: 13px;
    font-weight: 900;
    color: white;
    display: block;
}

.rd-unilife-text span {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.80);
}

/* ─── STICKY BOTTOM BAR ──────────────── */
.rd-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: white;
    border-top: 1px solid rgba(79, 142, 247, 0.10);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    box-shadow: 0 -4px 20px rgba(79, 142, 247, 0.12);
}

.rd-bottom-price {
    flex: 1;
}

.rd-bottom-price-label {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    color: var(--rd-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.rd-bottom-price-val {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: var(--rd-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-top: 2px;
}

.rd-bottom-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-bottom-msg-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f1f5ff;
    border: 1.5px solid rgba(79, 142, 247, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--rd-blue);
    text-decoration: none;
}

.rd-bottom-btn {
    background: var(--rd-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 142, 247, 0.35);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    flex: 1;
    justify-content: center;
}

/* ─── CHECKOUT SHEET ─────────────────── */
.rd-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.rd-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1001;
    padding: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.rd-sheet-header {
    position: relative;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.rd-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.rd-sheet-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 4px;
    cursor: pointer;
}

.rd-sheet-content {
    padding: 0 20px 30px;
}

.rd-sheet-product {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.rd-sheet-thumb {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rd-sheet-thumb span {
    transform: rotate(-5deg);
}

.rd-sheet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rd-sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--rd-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.rd-sheet-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rd-sheet-discount {
    background: #fee2e2;
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.rd-sheet-price-strike {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.rd-sheet-price-main {
    font-size: 16px;
    font-weight: 900;
    color: var(--rd-blue);
    width: 100%;
    margin-top: 2px;
}

.rd-sheet-section {
    margin-bottom: 20px;
}

.rd-sheet-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--rd-text);
    margin: 0 0 12px;
}

.rd-sheet-variants {
    display: flex;
    gap: 12px;
}

.rd-variant-item {
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rd-variant-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f1f5ff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rd-variant-item.active .rd-variant-img {
    border-color: var(--rd-blue);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.15);
}

.rd-variant-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--rd-muted);
}

.rd-variant-item.active span {
    color: var(--rd-blue);
}

.rd-sheet-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.rd-qty-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
}

.rd-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--rd-blue);
    cursor: pointer;
}

.rd-qty-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--rd-text);
    min-width: 20px;
    text-align: center;
}

.rd-sheet-footer {
    margin-top: 10px;
}

.rd-sheet-btn-main {
    display: block;
    width: 100%;
    background: #ffcc00;
    color: #1a1a2e;
    text-align: center;
    padding: 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rd-sheet-btn-main:active {
    transform: scale(0.98);
}

/* Transitions */
.rd-sheet-enter {
    animation: rdSheetSlideUp 0.3s ease-out forwards;
}

.rd-sheet-leave {
    animation: rdSheetSlideDown 0.3s ease-in forwards;
}

@keyframes rdSheetSlideUp {
    from {
        transform: translate(-50%, 100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

@keyframes rdSheetSlideDown {
    from {
        transform: translate(-50%, 0);
    }

    to {
        transform: translate(-50%, 100%);
    }
}

/* ─── REVIEWS SECTION ────────────────── */
.rd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.rd-review-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.rd-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rd-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rd-review-user {
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-text);
}

.rd-review-date {
    font-size: 10px;
    color: var(--rd-muted);
}

.rd-review-rating {
    font-size: 10px;
    color: var(--rd-amber);
    display: flex;
    gap: 1px;
}

.rd-review-comment {
    font-size: 12px;
    color: var(--rd-muted);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* ─── REVIEW FORM ────────────────────── */
.rd-review-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed rgba(79, 142, 247, 0.15);
}

.rd-star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}

.rd-star-rating input {
    display: none;
}

.rd-star-label {
    cursor: pointer;
    font-size: 24px;
    color: #e2e8f0;
    transition: color 0.15s ease;
}

.rd-star-rating input:checked~.rd-star-label,
.rd-star-rating label:hover,
.rd-star-rating label:hover~.rd-star-label {
    color: var(--rd-amber);
}

/* Reversing order for the CSS sibling trick */
.rd-star-rating {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rd-star-rating input:checked~label {
    color: var(--rd-amber);
}

.rd-star-rating label:hover,
.rd-star-rating label:hover~label {
    color: #fbbf24;
}

.rd-form-group {
    margin-bottom: 12px;
}

.rd-form-control {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid rgba(79, 142, 247, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    resize: none;
    transition: all 0.2s ease;
}

.rd-form-control:focus {
    outline: none;
    border-color: var(--rd-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.rd-submit-btn {
    width: 100%;
    background: var(--rd-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rd-submit-btn:hover {
    background: var(--rd-blue-deep);
    transform: translateY(-1px);
}