#product-details {
  display: flex;
  margin-top: 40px;
  gap: 50px;
}

.single-product-image {
  width: 40%;
}

.zoom-container {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  cursor: crosshair;
  width: 100%;
}

#main-product-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #f7f7f7;
  border: 1px solid #eee;
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 0.1s ease,
    transform-origin 0.1s ease;
  will-change: opacity, transform;
}

#main-product-image.is-fading {
  opacity: 0;
}

@media (hover: none) {
  .zoom-container {
    cursor: default;
  }
}

.small-image-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.small-image-group::-webkit-scrollbar {
  height: 6px;
}

.small-image-group::-webkit-scrollbar-thumb {
  background: rgba(8, 129, 120, 0.25);
  border-radius: 999px;
}

.small-image-col {
  flex: 0 0 clamp(72px, 16vw, 108px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.small-image-col:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 129, 120, 0.45);
}

.small-image-col:focus-visible {
  outline: 2px solid rgba(8, 129, 120, 0.3);
  outline-offset: 2px;
}

.small-image-col.is-active {
  border-color: var(--primary-color, #088178);
  box-shadow: 0 0 0 1px rgba(8, 129, 120, 0.18), 0 8px 20px rgba(8, 129, 120, 0.12);
}

.small-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f7f7f7;
}

.single-product-details {
  width: 50%;
  padding-top: 30px;
}

.single-product-details h4 {
  padding: 20px 0;
}

.single-product-details h2 {
  font-size: 28px;
  color: #088178;
}

.single-product-details select {
  display: block;
  padding: 10px;
  margin-bottom: 20px;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.quantity-box button {
  width: 40px;
  height: 40px;
  border: none;
  background: #088178;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
}

.quantity-box input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
}

#add-to-cart-btn,
#buy-now-btn,
#wishlist-btn {
  background: #088178;
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
  transition: 0.3s ease;
}

#add-to-cart-btn:hover,
#buy-now-btn:hover,
#wishlist-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

#wishlist-btn {
  background: #222;
}

#buy-now-btn {
  background: #ff6b00;
}

.single-product-details span {
  line-height: 28px;
  color: #555;
}

.product-rating {
  margin-top: 20px;
  color: #f5b301;
}

.product-rating span {
  color: #222;
  margin-left: 10px;
}

#reviews h2,
#related-products h2 {
  margin-bottom: 10px;
}

.review-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.review-box {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.review-box h4 {
  margin-bottom: 12px;
}

.reviews-summary {
  color: #555;
  margin-bottom: 18px;
}

@media (max-width: 1024px) {
  #product-details {
    flex-direction: column;
  }

  .single-product-image,
  .single-product-details {
    width: 100%;
  }
}

/* =============================
   REVIEW FORM
============================= */

#review-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

#review-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

#review-form legend,
.review-label {
  display: block;
  color: #222;
  font-weight: 600;
  margin-bottom: 10px;
}

#review-form input,
#review-form select,
#review-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}

#review-form textarea {
  min-height: 120px;
  resize: vertical;
}

#review-form button {
  background: #088178;
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 6px;
  cursor: pointer;
}

.review-star-input {
  display: flex;
  gap: 6px;
}

.review-star-input button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c8c8c8;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.review-star-input button:hover,
.review-star-input button:focus-visible,
.review-star-input button.is-active {
  color: #f5b301;
}

.review-star-input button:focus-visible,
.review-delete-btn:focus-visible {
  border-color: #088178;
  outline: 2px solid rgba(8, 129, 120, 0.25);
  outline-offset: 2px;
}

.review-stars {
  color: #f5b301;
  margin-bottom: 12px;
}

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

.review-message {
  overflow-wrap: anywhere;
}

.review-delete-btn {
  background: #b42318;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
}

.review-date {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
}

/* =============================
RECOMMENDED PRODUCTS
============================= */

#recommended-products {
  text-align: center;
}

#recommended-products .pro-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

#recommended-products .pro {
  width: 31%;
  min-width: 280px;
  border: 1px solid #cce7d0;
  border-radius: 20px;
  padding: 16px;
  position: relative;
  transition: 0.3s ease;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
}

#recommended-products .pro:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.1);
}

#recommended-products .pro img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  background: #f5f5f5;
  transition: 0.35s ease-in-out;
}

#recommended-products .pro:hover img {
  transform: scale(1.06);
}

#recommended-products .des {
  text-align: start;
  padding: 16px 0;
}

#recommended-products .des span {
  color: #606063;
  font-size: 13px;
}

#recommended-products .des h5 {
  padding-top: 8px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

#recommended-products .des h4 {
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #088178;
}

@media (max-width: 1024px) {
  #recommended-products .pro {
    width: 100%;
  }
}


@media (max-width: 1024px) {
  #main-product-image {
    max-height: 420px;
    object-fit: cover;
  }

  .small-image-col {
    flex-basis: clamp(64px, 20vw, 88px);
  }
}


/* =============================
PRODUCT VARIANTS
============================= */

.variant-section {
  margin-bottom: 25px;
}

.variant-section h4 {
  margin-bottom: 12px;
}

.size-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 10px 18px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.active-size {
  background: #088178;
  color: #fff;
  border-color: #088178;
}

.color-options {
  display: flex;
  align-items: center;
  gap: 14px;
}

.color-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: 0.3s;
}

.active-color {
  transform: scale(1.15);
  border-color: #088178;
}

.variant-stock {
  margin-bottom: 25px;
  font-weight: 600;
}

.variant-stock span {
  color: #088178;
}

#share-btn,
#whatsapp-share-btn,
#copy-link-btn {
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

#share-btn {
  background: #444;
}

#whatsapp-share-btn {
  background: #25d366;
}

#copy-link-btn {
  background: #2563eb;
}

#share-btn:hover,
#whatsapp-share-btn:hover,
#copy-link-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.no-products {
  width: 100%;
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

.product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  .product-buttons {
    flex-direction: column;
  }

  .product-buttons button,
  #share-btn,
  #whatsapp-share-btn,
  #copy-link-btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  #main-product-image {
    max-height: 420px;
    object-fit: cover;
  }

  .small-image-col {
    flex-basis: clamp(64px, 20vw, 88px);
  }
}

.delivery-date {
  display: block;
  margin-top: 10px;
  color: #088178;
  font-weight: 600;
  font-size: 14px;
}

.review-container p {
  text-align: center;
  color: #666;
  font-size: 16px;
  padding: 20px;
}
/* ===========================
   DARK MODE - product.css
=========================== */

/* Product details */
body.dark-theme #product-details {
  background-color: #121212;
}

body.dark-theme #main-product-image {
  background: #2a2a2a;
  border-color: #333;
}

body.dark-theme .small-image-col {
  background: #2a2a2a;
}

/* Product info */
body.dark-theme .single-product-details h2 {
  color: #088178;
}

body.dark-theme .single-product-details h4,
body.dark-theme .single-product-details h5 {
  color: #ffffff;
}

body.dark-theme .single-product-details span {
  color: #d1d1d1;
}

/* Quantity box */
body.dark-theme .quantity-box input {
  background: #1e1e1e;
  border-color: #444;
  color: #ffffff;
}

/* Size buttons */
body.dark-theme .size-btn {
  background: #1e1e1e;
  border-color: #444;
  color: #ffffff;
}

body.dark-theme .active-size {
  background: #088178;
  color: #ffffff;
  border-color: #088178;
}

/* Select dropdown */
body.dark-theme .single-product-details select {
  background: #1e1e1e;
  border-color: #444;
  color: #ffffff;
}

/* Review boxes */
body.dark-theme .review-box {
  background: #1e1e1e;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

body.dark-theme .review-box h4 {
  color: #ffffff;
}

body.dark-theme .review-box p {
  color: #d1d1d1;
}

body.dark-theme .reviews-summary,
body.dark-theme .review-date {
  color: #aaaaaa;
}

/* Review form */
body.dark-theme #review-form {
  background: #1e1e1e;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

body.dark-theme #review-form input,
body.dark-theme #review-form select,
body.dark-theme #review-form textarea {
  background: #2a2a2a;
  border-color: #444;
  color: #ffffff;
}

body.dark-theme #review-form input::placeholder,
body.dark-theme #review-form textarea::placeholder {
  color: #888;
}

body.dark-theme #review-form legend,
body.dark-theme .review-label {
  color: #ffffff;
}

body.dark-theme .review-star-input button {
  color: #666;
}

body.dark-theme .review-star-input button:hover,
body.dark-theme .review-star-input button:focus-visible,
body.dark-theme .review-star-input button.is-active {
  color: #f5b301;
}

/* Recommended products */
body.dark-theme #recommended-products .pro {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-theme #recommended-products .des h5 {
  color: #ffffff;
}

body.dark-theme #recommended-products .des span {
  color: #aaaaaa;
}

body.dark-theme #recommended-products .des h4 {
  color: #088178;
}

body.dark-theme #recommended-products .pro img {
  background: #2a2a2a;
}

/* No products text */
body.dark-theme .no-products {
  color: #aaaaaa;
}

/* Review container empty */
body.dark-theme .review-container p {
    color: #aaaaaa;
}

/* ========================================
   IMAGE ZOOM / LENS EFFECT (Issue #779)
   ======================================== */

.main-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f7f7;
    border: 1px solid #eee;
    cursor: crosshair;
}

.main-image-wrapper #main-product-image {
    width: 100%;
    display: block;
    pointer-events: none;
    border-radius: 0;
    background: #f7f7f7;
}

/* ===== LENS OVERLAY ===== */
.image-lens {
    position: absolute;
    border: 2.5px solid #088178;
    background-color: rgba(8, 129, 120, 0.08);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: none;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 20px rgba(8, 129, 120, 0.25);
    backdrop-filter: blur(1px);
}

/* ===== ZOOMED RESULT ===== */
.zoom-result {
    position: absolute;
    right: -110%;
    top: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ddd;
    border-radius: 12px;
    background-repeat: no-repeat;
    display: none;
    z-index: 20;
    background-color: white;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    overflow: hidden;
    animation: zoomFadeIn 0.2s ease-out;
}

@keyframes zoomFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== ACTIVE ZOOM STATE ===== */
.zoom-active .image-lens {
    display: block !important;
}

.zoom-active .zoom-result {
    display: block !important;
}

/* ===== RESPONSIVE LENS SIZE ===== */
@media (max-width: 768px) {
    .image-lens {
        width: 120px;
        height: 120px;
    }
    .zoom-result {
        width: 80%;
        right: -85%;
    }
}

@media (max-width: 480px) {
    .image-lens {
        width: 100px;
        height: 100px;
    }
    .zoom-result {
        width: 70%;
        right: -75%;
        height: 80%;
        top: 10%;
    }
}

/* ===== DARK MODE SUPPORT ===== */
body.dark-theme .main-image-wrapper {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-theme .main-image-wrapper #main-product-image {
    background: #2a2a2a;
}

body.dark-theme .zoom-result {
    background-color: #1e1e1e;
    border-color: #444;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

body.dark-theme .image-lens {
    border-color: #088178;
    background-color: rgba(8, 129, 120, 0.12);
    box-shadow: 0 0 20px rgba(8, 129, 120, 0.15);
}

/* ===== PRODUCT DETAIL SKELETON LOADING ===== */
.product-detail-skeleton {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.product-detail-skeleton .skeleton-img-lg {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 500px;
  border-radius: 16px;
}

.product-detail-skeleton .skeleton-thumbs {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.product-detail-skeleton .skeleton-thumb {
  width: 22%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.product-detail-skeleton .skeleton-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-view-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.view-360-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #088178 0%, #066663 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(8, 129, 120, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-360-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(8, 129, 120, 0.45);
    background: linear-gradient(135deg, #0aa398 0%, #088178 100%);
}

.view-360-btn i {
    font-size: 16px;
    transition: transform 0.5s ease;
}

.view-360-btn:hover i {
    transform: rotate(180deg);
}

/* 360 Viewer Container */
.product-360-viewer {
    position: relative;
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e1e1e1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-360-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.product-360-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--primary-color, #088178);
}

.close-360-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-360-btn:hover {
    background: #f0f0f0;
    color: #e74c3c;
}

/* Canvas & Preloader */
.product-360-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

#product-360-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: grab;
}

#product-360-canvas.is-grabbing {
    cursor: grabbing;
}

.product-360-preloader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary-color, #088178);
    border-radius: 50%;
    animation: spin360 0.8s linear infinite;
}

@keyframes spin360 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar-container {
    width: 80%;
    max-width: 260px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color, #088178);
    transition: width 0.2s ease;
}

.product-360-gesture-hint {
    position: absolute;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Toolbar Controls */
.product-360-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-360-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0f4f3;
    color: var(--text-dark, #222);
    border: 1px solid #d0dedb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-360-control:hover,
.btn-360-control.is-active {
    background: var(--primary-color, #088178);
    color: #ffffff;
    border-color: var(--primary-color, #088178);
}

/* Fullscreen Mode */
.product-360-viewer.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    border-radius: 0;
    margin: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.product-360-viewer.is-fullscreen .product-360-canvas-wrapper {
    flex: 1;
    height: calc(100vh - 120px);
}

/* Dark Theme Support */
body.dark-theme .product-360-viewer {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-theme .product-360-header {
    border-bottom-color: #333;
}

body.dark-theme .product-360-canvas-wrapper {
    background: #121212;
}

body.dark-theme .btn-360-control {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .product-360-preloader {
    background: rgba(18, 18, 18, 0.95);
    color: #ffffff;
}


/* ============================================================
   REVIEW ENGAGEMENT & MODERATION (#1349)
   ============================================================
   helpful_count and reported_count were columns with no writer and no reader,
   so there was nothing to style: no way to say a review was useful, and no way
   to flag an abusive one. These are the controls for both, plus the rating
   histogram and the sort/page bar that replace the unbounded, recency-only
   list.
*/

.review-breakdown {
    margin: 12px 0 24px;
    max-width: 420px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rating-bar-row {
    display: grid;
    /* Fixed label and count columns so the bars all start and end in line;
       an auto column would ragged-edge them as the counts change width. */
    grid-template-columns: 56px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.rating-bar-label {
    color: #6c757d;
    white-space: nowrap;
}

.rating-bar-track {
    background: #eceff1;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.rating-bar-fill {
    display: block;
    height: 100%;
    background: #088178;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    color: #6c757d;
    text-align: right;
}

.review-controls {
    margin-bottom: 18px;
}

.review-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e8eb;
}

.review-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.review-sort select {
    padding: 7px 11px;
    border: 1px solid #d5d9dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #1d2b32;
    cursor: pointer;
}

.review-count-note {
    color: #6c757d;
    font-size: 14px;
}

.review-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    font-size: 14px;
}

.review-pager button {
    padding: 7px 15px;
    border: 1px solid #d5d9dd;
    border-radius: 8px;
    background: #fff;
    color: #1d2b32;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.review-pager button:hover:not(:disabled) {
    background: #088178;
    border-color: #088178;
    color: #fff;
}

/* A disabled pager button must look unavailable, not just fail silently when
   clicked. */
.review-pager button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f4;
}

.review-helpful-btn,
.review-report-btn {
    background: transparent;
    border: 1px solid #d5d9dd;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 13px;
    font-family: inherit;
    color: #6c757d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.review-helpful-btn:hover {
    border-color: #088178;
    color: #088178;
}

/* The pressed state is carried by aria-pressed for assistive technology; this
   is its visual counterpart. */
.review-helpful-btn.is-active {
    border-color: #088178;
    background: rgba(8, 129, 120, 0.1);
    color: #088178;
    font-weight: 600;
}

.review-report-btn:hover {
    border-color: #d64545;
    color: #d64545;
}

.review-helpful-btn:focus-visible,
.review-report-btn:focus-visible,
.review-pager button:focus-visible,
.review-sort select:focus-visible {
    outline: 2px solid #088178;
    outline-offset: 2px;
}

.review-own-note,
.review-reported-note {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 799px) {
    .review-controls-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-breakdown {
        max-width: 100%;
    }
}

/* Dark mode, matching the treatment the other pages received in #1096/#1156. */
body.dark-mode .rating-bar-track {
    background: #2a2a2a;
}

body.dark-mode .rating-bar-label,
body.dark-mode .rating-bar-count,
body.dark-mode .review-count-note,
body.dark-mode .review-own-note,
body.dark-mode .review-reported-note {
    color: #a8a8a8;
}

body.dark-mode .review-controls-bar {
    border-bottom-color: #333;
}

body.dark-mode .review-actions {
    border-top-color: #2a2a2a;
}

body.dark-mode .review-sort select,
body.dark-mode .review-pager button,
body.dark-mode .review-helpful-btn,
body.dark-mode .review-report-btn {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #d8d8d8;
}
