/* ======================================================
   F - Product Reviews — Etsy-Style
   ====================================================== */

/* === WRAPPER === */
.f-reviews-wrapper {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
   color: #222;
   line-height: 1.5;
   max-width: 100%;
   margin: 0 auto
}

/* === STARS === */
.f-rv-stars {
   display: inline-flex;
   gap: 2px;
   vertical-align: middle
}

.f-rv-stars .filled {
   color: #d4a017
}

.f-rv-stars .empty {
   color: #ccc
}

.f-rv-stars-lg .fa-star,
.f-rv-stars-lg .fa-star-half-stroke {
   font-size: 18px
}

/* === BANNER === */
.f-rv-banner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 24px;
   border: 1px solid #e3e3e3;
   border-radius: 12px;
   background: #fafafa;
   margin-bottom: 20px
}

.f-rv-banner-left {
   display: flex;
   flex-direction: column;
   gap: 6px
}

.f-rv-banner-title {
   font-size: 17px;
   font-weight: 600
}

.f-rv-banner-sub {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap
}

.f-rv-banner-hint {
   font-size: 13px;
   color: #666
}

.f-rv-read-link {
   color: #2570eb;
   text-decoration: underline;
   font-weight: 500;
   cursor: pointer
}

.f-rv-banner-score {
   font-size: 14px;
   color: #666
}

.f-rv-banner-right {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 4px
}

.f-rv-write-btn {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 10px 22px;
   border-radius: 24px;
   background: #3d561b;
   color: #fff;
   font-weight: 600;
   font-size: 14px;
   border: none;
   cursor: pointer;
   text-decoration: none;
   transition: all .2s
}

.f-rv-write-btn:hover {
   background: #2e4114;
   color: #fff
}

.f-rv-write-btn--disabled {
   opacity: .5;
   cursor: pointer
}

span.f-rv-write-btn--disabled {
   cursor: not-allowed;
   pointer-events: none
}

.f-rv-verified-note {
   font-size: 10px;
   color: #999;
   text-transform: uppercase;
   letter-spacing: .5px
}

/* === SHOP INFO CARD === */
.f-rv-shop-card {
   padding: 24px;
   border: 1px solid #e3e3e3;
   border-radius: 12px;
   margin-bottom: 20px;
   background: #fff
}

.f-rv-shop-header {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 16px;
   flex-wrap: wrap
}

.f-rv-shop-info {
   display: flex;
   gap: 14px;
   align-items: flex-start
}

.f-rv-shop-avatar {
   width: 56px;
   height: 56px;
   border-radius: 50%;
   object-fit: cover;
   flex-shrink: 0
}

.f-rv-shop-meta {
   display: flex;
   flex-direction: column;
   gap: 3px
}

.f-rv-shop-name {
   margin: 0;
   font-size: 18px;
   font-weight: 700
}

.f-rv-shop-name a {
   color: #3d561b;
   text-decoration: none
}

.f-rv-shop-name a:hover {
   text-decoration: underline
}

.f-rv-shop-detail {
   font-size: 13px;
   color: #555;
   display: flex;
   align-items: center;
   gap: 5px
}

.f-rv-shop-detail i {
   width: 14px;
   text-align: center;
   color: #888
}

.f-rv-shop-actions {
   display: flex;
   flex-direction: column;
   gap: 8px;
   align-items: flex-end
}

.f-rv-follow-btn,
.f-rv-message-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   padding: 8px 18px;
   border: 2px solid #222;
   border-radius: 24px;
   background: #fff;
   color: #222;
   font-weight: 600;
   font-size: 13px;
   cursor: pointer;
   transition: all .2s;
   min-width: 130px
}

.f-rv-follow-btn:hover,
.f-rv-follow-btn.active {
   border-color: #d4483b;
   color: #d4483b
}

.f-rv-follow-btn.active i {
   color: #d4483b
}

.f-rv-message-btn:hover {
   background: #222;
   color: #fff
}

.f-rv-shop-stats {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-top: 14px;
   flex-wrap: wrap;
   padding-top: 14px;
   border-top: 1px solid #eee
}

.f-rv-shop-stat {
   font-size: 13px;
   color: #555;
   display: flex;
   align-items: center;
   gap: 4px
}

.f-rv-shop-stat .filled {
   color: #d4a017;
   font-size: 13px
}

.f-rv-shop-response {
   color: #298f14
}

/* === TABS === */
.f-rv-tabs-row {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 16px;
   flex-wrap: wrap;
   gap: 8px
}

.f-rv-tabs {
   display: flex;
   gap: 12px;
   align-items: center
}

.f-rv-tab {
   padding: 10px 20px;
   background: none;
   border: 2px solid transparent;
   border-radius: 24px;
   font-size: 13px;
   cursor: pointer;
   font-weight: 500;
   color: #2570eb;
   transition: all .2s;
   text-decoration: none
}

.f-rv-tab:hover {
   color: #1a5cc0;
   text-decoration: underline
}

.f-rv-tab.active {
   border-color: #222;
   color: #222;
   font-weight: 600;
   background: #fff;
   text-decoration: none
}

.f-rv-show-all-btn {
   padding: 8px 18px;
   border: 2px solid #222;
   border-radius: 24px;
   background: #fff;
   color: #222;
   font-weight: 600;
   font-size: 13px;
   cursor: pointer;
   transition: all .2s
}

.f-rv-show-all-btn:hover {
   background: #222;
   color: #fff
}

/* Mobile-only show all (hidden on desktop) */
.f-rv-show-all-mobile {
   display: none
}

/* === SUMMARY CARD (2 columns × 3 rows grid) === */
.f-rv-summary-card {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 24px 24px;
   padding: 24px 24px;
   border: 1px solid #e3e3e3;
   border-radius: 12px;
   margin-bottom: 20px;
   background: #fafafa;
   align-items: baseline
}

.f-rv-summary-score-cell {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap
}

.f-rv-star-badge {}

.f-rv-avg-score {
   font-size: 48px;
   font-weight: 700;
   line-height: 1
}

.f-rv-avg-stars {
   display: flex;
   align-items: center
}

.f-rv-score-badge {
   display: inline-block;
   padding: 2px 8px;
   background: #298f14;
   color: #fff;
   font-size: 10px;
   font-weight: 700;
   border-radius: 4px;
   letter-spacing: .5px;
   text-transform: uppercase
}

.f-rv-bar-row {
   display: flex;
   align-items: center;
   gap: 8px
}

.f-rv-bar-label {
   font-size: 12px;
   color: #555;
   min-width: 32px;
   display: flex;
   align-items: center;
   gap: 2px
}

.f-rv-bar-label i {
   font-size: 10px;
   color: #d4a017
}

.f-rv-bar-track {
   flex: 1;
   height: 8px;
   background: #e8e8e8;
   border-radius: 4px;
   overflow: hidden;
   min-width: 80px
}

.f-rv-bar-fill {
   height: 100%;
   background: #d4a017;
   border-radius: 4px;
   transition: width .4s ease
}

.f-rv-bar-pct {
   font-size: 12px;
   color: #555;
   min-width: 32px;
   text-align: right
}

/* === REVIEW CARDS SLIDER === */
.f-rv-slider-wrap {
   margin-bottom: 20px;
   position: relative
}

.f-rv-slider {
   position: relative;
   overflow: hidden
}

.f-rv-slider-track {
   display: flex;
   gap: 16px;
   transition: transform .4s ease;
   padding: 4px 0
}

.f-rv-card {
   min-width: calc(33.333% - 11px);
   max-width: calc(33.333% - 11px);
   flex-shrink: 0;
   padding: 20px;
   border: 1px solid #e8e8e8;
   border-radius: 12px;
   background: #fff;
   display: flex;
   flex-direction: column;
   gap: 10px;
   transition: box-shadow .2s
}

.f-rv-card:hover {
   box-shadow: 0 2px 12px rgba(0, 0, 0, .08)
}

.f-rv-card-header {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap
}

.f-rv-recommends {
   font-size: 12px;
   color: #298f14;
   font-weight: 500;
   display: flex;
   align-items: center;
   gap: 4px
}

.f-rv-card-body {
   display: flex;
   gap: 10px;
   align-items: flex-start
}

.f-rv-card-text {
   font-size: 14px;
   color: #333;
   margin: 0;
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   flex: 1
}

.f-rv-card-img {
   width: 60px;
   height: 60px;
   border-radius: 8px;
   overflow: hidden;
   flex-shrink: 0;
   cursor: pointer;
   transition: transform .2s
}

.f-rv-card-img img {
   width: 100%;
   height: 100%;
   object-fit: cover
}

.f-rv-card-img:hover {
   transform: scale(1.08);
   box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

.f-rv-card-footer {
   margin-top: auto;
   border-top: 1px solid #f0f0f0;
   padding-top: 10px
}

.f-rv-author {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 13px;
   color: #555
}

.f-rv-author strong {
   color: #222
}

.f-rv-date {
   color: #999
}

.f-rv-purchased {
   font-size: 12px;
   color: #888;
   margin-top: 4px
}

.f-rv-purchased a {
   color: #2570eb;
   text-decoration: none
}

.f-rv-purchased a:hover {
   text-decoration: underline
}

/* Slider arrows container */
.f-rv-slider-arrows {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   pointer-events: none;
   z-index: 2
}

.f-rv-slider-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: #fff;
   border: 1px solid #ddd;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
   transition: all .2s;
   pointer-events: all
}

.f-rv-slider-arrow:hover {
   background: #222;
   color: #fff;
   border-color: #222
}

.f-rv-slider-prev {
   left: -12px
}

.f-rv-slider-next {
   right: -12px
}

/* No reviews */
.f-rv-no-reviews {
   text-align: center;
   padding: 40px 20px;
   color: #999
}

.f-rv-no-reviews i {
   font-size: 32px;
   margin-bottom: 10px;
   display: block
}

/* === DISCLAIMER === */
.f-rv-disclaimer {
   padding: 16px 0;
   border-top: 1px solid #eee;
   margin-top: 8px;
   font-size: 12px;
   color: #888
}

.f-rv-disclaimer-q {
   font-weight: 600;
   color: #555;
   margin-right: 6px
}

/* === MORE FROM SHOP === */
.f-rv-more-shop {
   margin-top: 32px
}

.f-rv-more-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 16px
}

.f-rv-more-header h3 {
   font-size: 20px;
   font-weight: 700;
   margin: 0
}

.f-rv-visit-shop {
   font-size: 14px;
   color: #222;
   text-decoration: none;
   font-weight: 500;
   display: flex;
   align-items: center;
   gap: 4px
}

.f-rv-visit-shop:hover {
   text-decoration: underline
}

.f-rv-more-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 16px
}

.f-rv-more-item {
   text-decoration: none;
   color: #222;
   transition: transform .2s
}

.f-rv-more-item:hover {
   transform: translateY(-2px)
}

.f-rv-more-thumb {
   position: relative;
   border-radius: 12px;
   overflow: hidden;
   aspect-ratio: 1;
   background: #f5f5f5
}

.f-rv-more-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover
}

.f-rv-more-badge {
   position: absolute;
   top: 8px;
   left: 8px;
   padding: 3px 8px;
   background: #e25c3a;
   color: #fff;
   font-size: 11px;
   font-weight: 700;
   border-radius: 4px
}

.f-rv-more-price {
   margin-top: 8px;
   font-size: 14px
}

.f-rv-more-price del {
   color: #999;
   margin-right: 6px;
   font-size: 12px
}

.f-rv-more-price span {
   font-weight: 600
}

/* ===========================
   MODALS
   =========================== */
.f-rv-modal {
   position: fixed;
   inset: 0;
   z-index: 99999;
   display: flex;
   align-items: center;
   justify-content: center
}

.f-rv-modal-overlay {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, .5);
   cursor: pointer
}

.f-rv-modal-content {
   position: relative;
   background: #fff;
   border-radius: 16px;
   max-height: 90vh;
   overflow-y: auto;
   z-index: 1;
   padding: 24px
}

.f-rv-modal-sm {
   width: 100%;
   max-width: 480px
}

.f-rv-modal-lg {
   width: 100%;
   max-width: 640px
}

.f-rv-modal-topbar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 20px
}

.f-rv-modal-close {
   background: none;
   border: none;
   font-size: 20px;
   cursor: pointer;
   color: #555;
   padding: 4px
}

.f-rv-modal-close:hover {
   color: #000
}

/* Steps dots */
.f-rv-modal-steps {
   display: flex;
   gap: 6px;
   align-items: center
}

.f-rv-step-dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: #ddd;
   transition: background .2s
}

.f-rv-step-dot.active {
   background: #298f14
}

.f-rv-modal-next,
.f-rv-modal-submit {
   background: none;
   border: none;
   color: #2570eb;
   font-weight: 600;
   cursor: pointer;
   font-size: 14px
}

.f-rv-modal-submit {
   color: #298f14
}

.f-rv-step-back {
   background: none;
   border: none;
   font-size: 18px;
   cursor: pointer;
   color: #555;
   padding: 4px
}

.f-rv-step-back:hover {
   color: #000
}

.f-rv-step-close {
   background: none;
   border: none;
   font-size: 20px;
   cursor: pointer;
   color: #555;
   padding: 4px
}

.f-rv-step-close:hover {
   color: #000
}

/* Write review popup — Step 1 */
.f-rv-popup-product {
   margin-bottom: 20px
}

.f-rv-popup-product-row {
   display: flex;
   align-items: flex-start;
   gap: 12px
}

.f-rv-popup-thumb {
   width: 50px;
   height: 50px;
   border-radius: 8px;
   object-fit: cover;
   flex-shrink: 0
}

.f-rv-popup-thumb-left {
   order: 0
}

.f-rv-popup-product-info {
   flex: 1;
   min-width: 0
}

.f-rv-popup-thumb-right {
   order: 2
}

.f-rv-popup-from {
   font-size: 13px;
   color: #298f14;
   font-weight: 500;
   display: block
}

.f-rv-popup-pname {
   font-size: 15px;
   font-weight: 600;
   color: #2570eb;
   text-decoration: none;
   display: block;
   margin-top: 2px
}

.f-rv-popup-pname:hover {
   text-decoration: underline
}

.f-rv-popup-question {
   font-size: 15px;
   font-weight: 500;
   text-align: center;
   margin: 20px 0 12px;
   color: #555
}

.f-rv-star-input-lg {
   text-align: center;
   font-size: 36px;
   display: flex;
   justify-content: center;
   gap: 8px
}

.f-rv-star-input-lg i {
   cursor: pointer;
   color: #ddd;
   transition: color .15s, transform .15s
}

.f-rv-star-input-lg i:hover {
   transform: scale(1.15)
}

.f-rv-star-input-lg i.active {
   color: #d4a017
}

.f-rv-popup-feedback {
   text-align: center;
   font-size: 18px;
   font-weight: 600;
   margin-top: 16px
}

/* Step 1 comment section */
.f-rv-step1-comment {
   margin-top: 20px;
   border-top: 1px solid #f0f0f0;
   padding-top: 16px
}

.f-rv-popup-label {
   margin: 0 0 4px;
   font-size: 14px
}

.f-rv-popup-hint {
   font-size: 13px;
   color: #888;
   margin: 0 0 12px;
   font-style: italic
}

.f-rv-popup-textarea-wrap {
   position: relative;
   margin-bottom: 8px
}

.f-rv-popup-textarea-wrap textarea {
   width: 100%;
   min-height: 120px;
   padding: 14px;
   border: 1px solid #ddd;
   border-radius: 10px;
   font-size: 14px;
   resize: vertical;
   font-family: inherit;
   background: #f8fafc
}

.f-rv-popup-textarea-wrap textarea:focus {
   outline: none;
   border-color: #298f14;
   background: #fff
}

.f-rv-popup-charcount {
   position: absolute;
   bottom: 10px;
   right: 14px;
   font-size: 12px;
   color: #aaa
}

/* Step 2 — Upload */
.f-rv-upload-title {
   text-align: center;
   font-size: 20px;
   font-weight: 600;
   margin: 40px 0 30px;
   color: #222
}

.f-rv-upload-buttons {
   display: flex;
   flex-direction: column;
   gap: 12px;
   align-items: center
}

.f-rv-upload-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   width: 100%;
   max-width: 300px;
   padding: 14px 24px;
   border-radius: 24px;
   font-size: 15px;
   font-weight: 600;
   cursor: pointer;
   transition: all .2s
}

.f-rv-upload-btn--photo {
   background: #fff;
   color: #298f14;
   border: 2px solid #298f14
}

.f-rv-upload-btn--photo:hover {
   background: #298f14;
   color: #fff
}

.f-rv-upload-preview {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-top: 20px;
   padding: 12px;
   border: 1px solid #e3e3e3;
   border-radius: 10px;
   justify-content: center
}

.f-rv-upload-preview-img {
   width: 80px;
   height: 80px;
   border-radius: 8px;
   object-fit: cover
}

.f-rv-upload-remove {
   background: none;
   border: none;
   font-size: 18px;
   color: #d4483b;
   cursor: pointer;
   padding: 4px
}

.f-rv-upload-remove:hover {
   color: #b71c1c
}

.f-rv-form-msg {
   text-align: center;
   padding: 10px;
   border-radius: 8px;
   font-size: 13px;
   margin-top: 10px
}

.f-rv-form-msg.success {
   background: #e8f5e9;
   color: #298f14
}

.f-rv-form-msg.error {
   background: #fce4ec;
   color: #c62828
}

.f-rv-no-purchase {
   text-align: center;
   color: #888;
   padding: 40px 20px
}

/* === IMAGE LIGHTBOX (Etsy-style) === */
.f-rv-lightbox-modal .f-rv-modal-overlay {
   background: rgba(0, 0, 0, .7)
}

.f-rv-lightbox-container {
   position: relative;
   z-index: 1;
   display: flex;
   max-width: 900px;
   width: 95vw;
   max-height: 85vh;
   border-radius: 16px;
   overflow: hidden;
   background: #fff;
   box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.f-rv-lightbox-image-side {
   flex: 1;
   min-width: 0;
   background: #111;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   min-height: 400px
}

.f-rv-lightbox-img {
   max-width: 100%;
   max-height: 85vh;
   object-fit: contain
}

.f-rv-lightbox-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .9);
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
   color: #333;
   box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
   transition: all .2s;
   z-index: 2
}

.f-rv-lightbox-arrow:hover {
   background: #fff;
   box-shadow: 0 4px 12px rgba(0, 0, 0, .3)
}

.f-rv-lightbox-prev {
   left: 12px
}

.f-rv-lightbox-next {
   right: 12px
}

.f-rv-lightbox-info-side {
   width: 320px;
   flex-shrink: 0;
   padding: 24px;
   display: flex;
   flex-direction: column;
   gap: 12px;
   overflow-y: auto;
   position: relative
}

.f-rv-lightbox-close {
   position: absolute;
   top: 12px;
   right: 12px;
   background: none;
   border: none;
   font-size: 20px;
   cursor: pointer;
   color: #555;
   padding: 4px;
   z-index: 3
}

.f-rv-lightbox-close:hover {
   color: #000
}

.f-rv-lightbox-header {
   display: flex;
   align-items: center;
   gap: 10px
}

.f-rv-lightbox-avatar {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: #e0e0e0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 15px;
   color: #555;
   flex-shrink: 0
}

.f-rv-lightbox-author-info {
   display: flex;
   flex-direction: column
}

.f-rv-lightbox-author {
   font-size: 15px;
   font-weight: 600;
   color: #222
}

.f-rv-lightbox-date {
   font-size: 13px;
   color: #888
}

.f-rv-lightbox-stars {
   margin: 4px 0
}

.f-rv-lightbox-content {
   font-size: 14px;
   color: #333;
   line-height: 1.6;
   margin: 0
}

.f-rv-lightbox-purchased {
   font-size: 12px;
   color: #2570eb;
   margin-top: 8px
}

.f-rv-lightbox-purchased a {
   color: #2570eb;
   text-decoration: none
}

.f-rv-lightbox-purchased a:hover {
   text-decoration: underline
}

@media(max-width:768px) {
   .f-rv-lightbox-container {
      flex-direction: column;
      max-height: 95vh
   }

   .f-rv-lightbox-image-side {
      min-height: 250px;
      max-height: 50vh
   }

   .f-rv-lightbox-info-side {
      width: 100%
   }
}

/* Reviews popup — gallery slider */
.f-rv-popup-title {
   margin: 0;
   font-size: 18px;
   font-weight: 700
}

.f-rv-gallery-slider {
   position: relative;
   padding: 4px 0 12px
}

.f-rv-gallery-viewport {
   overflow: hidden
}

.f-rv-popup-images {
   display: flex;
   gap: 8px;
   transition: transform .35s ease;
   will-change: transform
}

.f-rv-popup-images img {
   width: 80px;
   height: 80px;
   border-radius: 8px;
   object-fit: cover;
   cursor: pointer;
   flex-shrink: 0;
   border: 2px solid transparent;
   transition: border-color .2s
}

.f-rv-popup-images img:hover {
   border-color: #2570eb
}

.f-rv-gallery-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 32px;
   height: 32px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .92);
   border: 1px solid #ddd;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 13px;
   color: #333;
   z-index: 3;
   box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
   transition: all .2s
}

.f-rv-gallery-arrow:hover {
   background: #fff;
   box-shadow: 0 2px 10px rgba(0, 0, 0, .25)
}

.f-rv-gallery-prev {
   left: -4px
}

.f-rv-gallery-next {
   right: -4px
}

.f-rv-popup-summary {
   display: flex;
   gap: 24px;
   padding: 16px 0;
   border-bottom: 1px solid #eee;
   align-items: flex-start
}

.f-rv-popup-summary-left {
   text-align: center;
   min-width: 100px
}

.f-rv-popup-avg {
   font-size: 36px;
   font-weight: 700;
   display: block;
   margin-left: 8px
}

.f-rv-popup-total-ratings {
   font-size: 12px;
   color: #888;
   display: block;
   margin-top: 4px
}

.f-rv-popup-summary-right {
   flex: 1
}

.f-rv-popup-summary-right .f-rv-bar-row {
   margin-bottom: 2px
}

.f-rv-popup-summary-right .f-rv-bar-label {
   min-width: 44px
}

.f-rv-popup-filters {
   display: flex;
   gap: 10px;
   padding: 14px 0;
   border-bottom: 1px solid #eee
}

.f-rv-filter-sort,
.f-rv-filter-rating {
   padding: 8px 14px;
   border: 1px solid #ddd;
   border-radius: 20px;
   font-size: 13px;
   background: #fff;
   cursor: pointer
}

/* Review list in popup — updated layout */
.f-rv-popup-list {
   padding-top: 12px
}

.f-rv-popup-review {
   padding: 16px 0;
   border-bottom: 1px solid #f0f0f0
}

.f-rv-popup-review:last-child {
   border-bottom: none
}

.f-rv-popup-review-stars {
   margin-bottom: 8px
}

.f-rv-popup-review-body {}

.f-rv-popup-review-content-wrap {
   display: flex;
   gap: 16px;
   align-items: flex-start
}

.f-rv-popup-review-left {
   flex: 1;
   min-width: 0
}

.f-rv-popup-review-header {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 6px
}

.f-rv-popup-review-avatar {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   background: #e0e0e0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 14px;
   color: #555;
   flex-shrink: 0
}

.f-rv-popup-review-meta {
   font-size: 13px;
   color: #555
}

.f-rv-popup-review-meta strong {
   color: #222
}

.f-rv-popup-review-text {
   font-size: 14px;
   color: #333;
   margin: 8px 0
}

.f-rv-popup-review-images {
   flex-shrink: 0;
   display: flex;
   gap: 6px;
   flex-wrap: wrap
}

.f-rv-review-thumb {
   width: 72px;
   height: 72px;
   border-radius: 8px;
   object-fit: cover;
   cursor: pointer;
   border: 2px solid transparent;
   transition: border-color .2s, transform .2s
}

.f-rv-review-thumb:hover {
   border-color: #2570eb;
   transform: scale(1.04)
}

.f-rv-popup-review-purchased {
   font-size: 12px;
   color: #888;
   margin-top: 6px
}

.f-rv-popup-review-purchased a {
   color: #2570eb;
   text-decoration: none
}

.f-rv-popup-review-purchased a:hover {
   text-decoration: underline
}

.f-rv-popup-pagination {
   display: flex;
   justify-content: center;
   gap: 8px;
   padding: 16px 0
}

.f-rv-popup-page {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   border: 1px solid #ddd;
   background: #fff;
   cursor: pointer;
   font-size: 13px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all .2s
}

.f-rv-popup-page.active {
   background: #222;
   color: #fff;
   border-color: #222
}

.f-rv-popup-page:hover:not(.active) {
   background: #f5f5f5
}

.f-rv-popup-arrow {
   background: none;
   border: none;
   cursor: pointer;
   font-size: 16px;
   color: #888
}

/* ===========================
   IMAGE LIGHTBOX (Etsy-style)
   =========================== */
.f-rv-lightbox-modal {
   z-index: 100000
}

.f-rv-lightbox-modal .f-rv-modal-overlay {
   background: rgba(0, 0, 0, .75)
}

.f-rv-lightbox-container {
   position: relative;
   z-index: 1;
   display: flex;
   max-width: 900px;
   width: 95vw;
   max-height: 85vh;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 20px 60px rgba(0, 0, 0, .4)
}

/* Left side — image */
.f-rv-lightbox-image-side {
   position: relative;
   flex: 1;
   min-width: 0;
   background: #1a1a1a;
   display: flex;
   align-items: center;
   justify-content: center
}

.f-rv-lightbox-img {
   max-width: 100%;
   max-height: 85vh;
   object-fit: contain;
   display: block
}

.f-rv-lightbox-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .85);
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
   color: #333;
   box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
   transition: all .2s;
   z-index: 2
}

.f-rv-lightbox-arrow:hover {
   background: #fff;
   transform: translateY(-50%) scale(1.1)
}

.f-rv-lightbox-prev {
   left: 12px
}

.f-rv-lightbox-next {
   right: 12px
}

/* Right side — review info */
.f-rv-lightbox-info-side {
   width: 280px;
   flex-shrink: 0;
   background: #fff;
   padding: 24px;
   display: flex;
   flex-direction: column;
   gap: 8px;
   position: relative;
   overflow-y: auto
}

.f-rv-lightbox-close {
   position: absolute;
   top: 12px;
   right: 12px;
   background: none;
   border: none;
   font-size: 18px;
   cursor: pointer;
   color: #888;
   padding: 4px;
   transition: color .2s
}

.f-rv-lightbox-close:hover {
   color: #000
}

.f-rv-lightbox-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: #e0e0e0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 16px;
   color: #555
}

.f-rv-lightbox-author {
   font-size: 15px
}

.f-rv-lightbox-author strong {
   color: #222
}

.f-rv-lightbox-date {
   font-size: 12px;
   color: #999
}

.f-rv-lightbox-stars {
   margin: 4px 0
}

.f-rv-lightbox-stars .f-rv-stars {
   font-size: 16px
}

.f-rv-lightbox-stars .filled {
   color: #d4a017
}

.f-rv-lightbox-content {
   font-size: 14px;
   color: #333;
   line-height: 1.6;
   margin: 8px 0;
   flex: 1
}

.f-rv-lightbox-purchased {
   font-size: 12px;
   color: #888;
   border-top: 1px solid #eee;
   padding-top: 12px;
   margin-top: auto
}

.f-rv-lightbox-purchased a {
   color: #2570eb;
   text-decoration: none
}

.f-rv-lightbox-purchased a:hover {
   text-decoration: underline
}

/* Gallery thumbs active state */
.f-rv-gallery-thumb.active {
   border-color: #2570eb;
   box-shadow: 0 0 0 2px rgba(37, 112, 235, .3)
}

/* === RESPONSIVE MOBILE === */
@media (max-width:768px) {
   .f-rv-summary-card {
      display: grid;
      grid-template-columns: 1fr;
   }

   /* --- BANNER (centered, stacked) --- */
   .f-rv-banner {
      flex-direction: column;
      gap: 16px;
      align-items: center;
      text-align: center;
      padding: 20px 16px
   }

   .f-rv-banner-left {
      align-items: center
   }

   .f-rv-banner-sub {
      justify-content: center;
      flex-direction: column;
      gap: 4px
   }

   .f-rv-banner-right {
      align-items: center;
      width: 100%
   }

   .f-rv-write-btn {
      width: 100%;
      justify-content: center;
      padding: 14px 20px;
      font-size: 15px
   }

   .f-rv-banner-title {
      font-size: 16px
   }

   .f-rv-banner-hint {
      text-align: center
   }

   .f-rv-read-link {
      display: block;
      font-weight: 600;
      text-decoration: underline
   }

   .f-rv-stars-lg .fa-star,
   .f-rv-stars-lg .fa-star-half-stroke {
      font-size: 28px
   }

   /* --- SHOP INFO CARD (avatar+name horizontal, details stacked, buttons full width) --- */
   .f-rv-shop-card {
      padding: 20px 16px
   }

   .f-rv-shop-header {
      flex-direction: column;
      align-items: stretch
   }

   .f-rv-shop-info {
      flex-direction: row;
      align-items: flex-start;
      gap: 12px
   }

   .f-rv-shop-avatar {
      width: 56px;
      height: 56px
   }

   .f-rv-shop-meta {
      align-items: flex-start;
      text-align: left
   }

   .f-rv-shop-name {
      font-size: 18px
   }

   .f-rv-shop-name a {
      color: #2570eb
   }

   .f-rv-shop-detail {
      justify-content: flex-start;
      font-size: 13px
   }

   .f-rv-shop-actions {
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      margin-top: 14px
   }

   .f-rv-follow-btn,
   .f-rv-message-btn {
      width: 100%;
      justify-content: center;
      padding: 12px 18px;
      font-size: 14px;
      border-radius: 24px
   }

   .f-rv-shop-stats {
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 6px 14px
   }

   .f-rv-shop-response {
      display: block;
      width: 100%;
      text-align: left;
      margin-top: 4px
   }

   /* --- TABS (inactive=text link, active=bordered pill) --- */
   .f-rv-tabs-row {
      flex-direction: column;
      align-items: center;
      gap: 8px
   }

   .f-rv-tabs-row>.f-rv-show-all-btn {
      display: none
   }

   .f-rv-tabs {
      flex-direction: column;
      gap: 6px;
      align-items: center;
      width: 100%
   }

   .f-rv-tab {
      border: none;
      border-radius: 0;
      padding: 6px 0;
      font-size: 14px;
      text-align: center;
      color: #2570eb;
      text-decoration: underline;
      background: none;
      width: auto
   }

   .f-rv-tab:first-child,
   .f-rv-tab:last-child {
      border-radius: 0
   }

   .f-rv-tab.active {
      border: 2px solid #222;
      border-radius: 24px;
      background: #fff;
      color: #222;
      text-decoration: none;
      padding: 10px 24px;
      font-weight: 600;
      width: 100%;
      max-width: 320px
   }

   /* Mobile show-all button (below summary) */
   .f-rv-show-all-mobile {
      display: block;
      margin-bottom: 16px
   }

   .f-rv-show-all-mobile .f-rv-show-all-btn {
      width: 100%;
      padding: 12px;
      font-size: 14px;
      text-align: center;
      border-radius: 24px
   }

   /* --- SUMMARY CARD (score+stars inline, bars single column full width) --- */
   .f-rv-summary-card {
      flex-direction: column;
      padding: 16px;
      gap: 16px
   }

   .f-rv-summary-left {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      text-align: left;
      width: 100%;
      flex-wrap: wrap
   }

   .f-rv-avg-score {
      font-size: 48px
   }

   .f-rv-avg-stars {
      margin: 0
   }

   .f-rv-summary-right {
      grid-template-columns: 1fr;
      gap: 10px;
      width: 100%
   }

   .f-rv-bar-row {
      gap: 8px;
      width: 100%
   }

   .f-rv-bar-label {
      min-width: 28px;
      font-size: 14px
   }

   .f-rv-bar-track {
      min-width: 0;
      height: 10px;
      flex: 1
   }

   .f-rv-bar-pct {
      min-width: 36px;
      font-size: 14px
   }

   /* --- REVIEW CARDS (vertical stack, NOT horizontal slider) --- */
   .f-rv-slider {
      overflow: visible
   }

   .f-rv-slider-track {
      flex-direction: column;
      gap: 12px;
      transform: none !important
   }

   .f-rv-card {
      min-width: 100%;
      max-width: 100%;
      padding: 16px
   }

   .f-rv-card-text {
      -webkit-line-clamp: 4
   }

   .f-rv-card-img {
      width: 56px;
      height: 56px
   }

   /* Slider arrows → centered row at bottom */
   .f-rv-slider-arrows {
      position: static;
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 12px;
      pointer-events: all
   }

   .f-rv-slider-arrow {
      position: static;
      transform: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      pointer-events: all
   }

   .f-rv-slider-prev,
   .f-rv-slider-next {
      position: static;
      margin: 0
   }

   /* --- MORE FROM SHOP (2 columns) --- */
   .f-rv-more-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px
   }

   .f-rv-more-header h3 {
      font-size: 18px
   }

   /* --- DISCLAIMER --- */
   .f-rv-disclaimer {
      font-size: 13px;
      line-height: 1.6
   }

   /* --- MODALS (bottom sheet) --- */
   .f-rv-modal-content {
      border-radius: 16px 16px 0 0;
      max-height: 95vh;
      padding: 16px
   }

   .f-rv-modal-lg {
      max-width: 100%;
      width: 100%;
      margin: 0;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      border-radius: 16px 16px 0 0
   }

   .f-rv-modal-sm {
      max-width: 100%;
      margin: 0 8px
   }

   /* --- POPUP REVIEWS --- */
   .f-rv-popup-title {
      font-size: 16px
   }

   .f-rv-popup-images img {
      width: 64px;
      height: 64px
   }

   .f-rv-gallery-arrow {
      width: 28px;
      height: 28px;
      font-size: 11px
   }

   .f-rv-popup-summary {
      flex-direction: column;
      gap: 12px;
      padding: 12px 0
   }

   .f-rv-popup-summary-left {
      flex-direction: row;
      align-items: center;
      gap: 8px;
      text-align: left;
      width: 100%
   }

   .f-rv-popup-avg {
      font-size: 28px;
      margin-left: 0
   }

   .f-rv-popup-summary-right {
      width: 100%
   }

   .f-rv-popup-summary-right .f-rv-bar-row {
      margin-bottom: 4px
   }

   .f-rv-popup-filters {
      flex-wrap: wrap;
      gap: 8px;
      padding: 10px 0
   }

   .f-rv-filter-sort,
   .f-rv-filter-rating {
      font-size: 12px;
      padding: 6px 12px
   }

   /* Popup review cards */
   .f-rv-popup-review {
      padding: 14px 0
   }

   .f-rv-popup-review-content-wrap {
      flex-direction: row;
      gap: 12px
   }

   .f-rv-popup-review-left {
      flex: 1
   }

   .f-rv-popup-review-images {
      flex-shrink: 0
   }

   .f-rv-review-thumb {
      width: 56px;
      height: 56px
   }

   .f-rv-popup-review-text {
      font-size: 13px;
      margin: 6px 0
   }

   /* Popup pagination */
   .f-rv-popup-pagination {
      gap: 6px;
      padding: 12px 0
   }

   /* --- LIGHTBOX (stacked: image top, info bottom) --- */
   .f-rv-lightbox-container {
      flex-direction: column;
      max-height: 95vh;
      width: 100%;
      max-width: 100%;
      border-radius: 0
   }

   .f-rv-lightbox-image-side {
      max-height: 55vh;
      min-height: 200px
   }

   .f-rv-lightbox-img {
      max-height: 55vh
   }

   .f-rv-lightbox-arrow {
      width: 34px;
      height: 34px;
      font-size: 14px
   }

   .f-rv-lightbox-info-side {
      width: 100%;
      max-height: 40vh;
      padding: 16px
   }

   .f-rv-lightbox-avatar {
      width: 36px;
      height: 36px;
      font-size: 14px
   }

   .f-rv-lightbox-content {
      font-size: 13px
   }
}

/* Extra small screens */
@media (max-width:400px) {
   .f-rv-popup-images img {
      width: 52px;
      height: 52px
   }

   .f-rv-review-thumb {
      width: 48px;
      height: 48px
   }

   .f-rv-avg-score {
      font-size: 48px
   }

   .f-rv-stars-lg .fa-star,
   .f-rv-stars-lg .fa-star-half-stroke {
      font-size: 24px
   }

   .f-rv-card {
      padding: 12px
   }

   .f-rv-more-grid {
      gap: 8px
   }
}