/* Extracted page styles. */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
}

.product-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  animation: siteFadeIn 0.8s ease-in-out forwards;
}

.product-image-side {
  flex: 1;
  min-width: 300px;
  background: #111;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border: 1px solid #222;
}

.product-image-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 450px;
}

.product-image-side img {
  width: 100%;
  max-width: 450px;
  object-fit: contain;
  transition: opacity 0.15s ease-in-out;
}

/* Out-of-stock is stamped across the product image so it cannot be missed. */
.product-image-frame.is-out-of-stock img {
  opacity: 0.4;
  filter: grayscale(1);
}

.product-stock-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 10px 26px;
  border: 3px solid var(--moto-danger, #f0788c);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--moto-danger, #f0788c);
  font-size: clamp(1.1rem, 4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.thumbnail-gallery {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.thumbnail-gallery img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.thumbnail-gallery img:hover {
  border-color: #555;
}

.thumbnail-gallery img.active-thumb {
  border-color: var(--moto-red, #ff1f1f);
}

.product-info-side {
  flex: 1.2;
  min-width: 300px;
}

.breadcrumb {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.breadcrumb a {
  color: var(--moto-red, #ff1f1f);
  text-decoration: none;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.product-reviews {
  color: #f7b205;
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-reviews {
  color: #aaa;
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
}

.view-reviews:hover {
  color: #fff;
}

.product-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--moto-red, #ff1f1f);
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.product-desc {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.options-row {
  display: flex;
  gap: 24px;
  margin-bottom: 25px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.option-group {
  flex: 1;
}

.color-option-group {
  flex: 1 1 220px;
  min-width: 200px;
}

.color-label-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.color-label-header .option-label {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: bold;
  color: #aaa;
}

.selected-color-text {
  color: #ffffff;
  font-weight: 700;
  margin-left: 6px;
}

.detail-color-swatches {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
  min-height: 32px !important;
}

.detail-color-swatches .color-swatch-btn {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, border-color 0.18s ease !important;
  flex-shrink: 0 !important;
}

.detail-color-swatches .color-swatch-btn:hover {
  transform: scale(1.24) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  z-index: 2 !important;
}

.detail-color-swatches .color-swatch-btn.active {
  box-shadow: 0 0 0 2px #121214, 0 0 0 4px #ff1f1f, 0 0 10px rgba(255, 31, 31, 0.5) !important;
  transform: scale(1.16) !important;
  border-color: transparent !important;
  z-index: 3 !important;
}

.detail-color-swatches .color-swatch-btn:focus-visible {
  box-shadow: 0 0 0 2px #121214, 0 0 0 4px #ff1f1f !important;
}

.qty-option-group {
  flex: 0 0 auto !important;
  width: auto !important;
}

.option-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #aaa;
}

.size-guide-link {
  color: #888;
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.3s;
}

.size-guide-link:hover {
  color: var(--moto-red, #ff1f1f);
  text-decoration: underline;
}

.option-group select,
.option-group input {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
}

.option-group select:focus,
.option-group input:focus {
  border-color: var(--moto-red, #ff1f1f);
  outline: none;
}

.option-group > select {
  height: var(--ui-control-height, 42px);
}

.qty-selector {
  display: flex;
  align-items: center;
  height: var(--ui-control-height, 42px);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.qty-selector button {
  height: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
}

.qty-selector button:hover {
  background: var(--moto-red, #ff1f1f);
}

.qty-selector button:disabled,
.qty-selector button:disabled:hover {
  background: transparent;
  color: #555;
  cursor: not-allowed;
}

body:not(.admin-body) .option-group .qty-selector input {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: bold;
}

/* "Available: N pcs" sits right beside the quantity box. */
.qty-available {
  display: inline-block;
  margin-left: 12px;
  color: #d4d4d8;
  font-size: 0.9rem;
  font-weight: 700;
  vertical-align: middle;
}
.qty-available.is-empty { color: #ff6b6b; }
html[data-theme="light"] .qty-available { color: #3f3f46; }
html[data-theme="light"] .qty-available.is-empty { color: #c81e1e; }

.qty-selector.compact-qty {
  display: inline-flex !important;
  align-items: center !important;
  width: 120px !important;
  height: 42px !important;
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.qty-selector.compact-qty button {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 42px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  font-weight: bold !important;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.qty-selector.compact-qty button:hover {
  background: var(--moto-red, #ff1f1f) !important;
  color: #fff !important;
}

.qty-selector.compact-qty button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

.qty-selector.compact-qty input {
  flex: 1 !important;
  width: 48px !important;
  height: 42px !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: bold !important;
  padding: 0 !important;
  -moz-appearance: textfield !important;
}

.cart-add-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 10px;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-add-cart {
  flex: 1;
  background: transparent;
  border: 2px solid var(--moto-red, #ff1f1f);
  color: var(--moto-red, #ff1f1f);
  font-weight: bold;
  padding: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-add-cart:hover {
  background: rgba(255, 31, 31, 0.12);
}

.btn-buy-now {
  flex: 1;
  background: var(--moto-red, #ff1f1f);
  border: 2px solid var(--moto-red, #ff1f1f);
  color: #fff;
  font-weight: bold;
  padding: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-buy-now:hover {
  background: var(--moto-red-dark, #b80000);
  border-color: var(--moto-red-dark, #b80000);
}

.btn-add-cart:disabled,
.btn-buy-now:disabled {
  border-color: #555;
  color: #777;
  background: transparent;
  cursor: not-allowed;
}

.related-section {
  max-width: 1200px;
  margin: 80px auto 50px;
  padding: 0 20px;
  border-top: 1px solid #222;
  padding-top: 50px;
}

.related-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.flying-item {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(209, 32, 39, 0.4);
}

@keyframes cart-bounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.cart-bounce {
  animation: cart-bounce 0.4s ease-in-out;
  color: #ff0000 !important;
}

/* Pulse Animation */
@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    background-color: rgba(255, 0, 0, 0.1);
  }

  50% {
    box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0);
    background-color: rgba(255, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    background-color: transparent;
  }
}

.highlight-pulse {
  animation: highlight-pulse 1s ease-out;
  border-radius: 8px;
}

/* REVIEWS SECTION CSS */
.reviews-section {
  max-width: 1200px;
  margin: 60px auto 20px;
  padding: 50px 20px 0;
  border-top: 1px solid #222;
}

.reviews-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.rating-summary {
  background: #111;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #222;
  text-align: center;
}

.rating-score {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin: 10px 0;
}

.rating-count {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.rating-bars {
  margin-bottom: 30px;
}

.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #ccc;
}

.bar-row span {
  width: 60px;
  text-align: left;
}

.bar-row small {
  width: 24px;
  color: #888;
  text-align: right;
  font-size: 0.75rem;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  margin-left: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--moto-red, #ff1f1f);
  border-radius: 4px;
}

.btn-write-review {
  width: 100%;
  background: var(--moto-red, #ff1f1f);
  color: #fff;
  border: none;
  padding: 15px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-write-review:hover {
  background: var(--moto-red-dark, #b80000);
}

.btn-write-review:disabled {
  background: #4a4a4a;
  color: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-write-review:disabled:hover {
  background: #4a4a4a;
}

.review-composer {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #333;
  border-radius: 6px;
  text-align: left;
  background: #171717;
}

.review-composer[hidden] {
  display: none;
}

.review-composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
}

.review-composer-close {
  border: 1px solid #444;
  background: transparent;
  color: #bbb;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.75rem;
}

.review-composer-close:hover {
  border-color: #ff0000;
  color: #fff;
}

.review-composer form {
  display: grid;
  gap: 8px;
}

.review-composer label {
  color: #aaa;
  font-size: 0.78rem;
  font-weight: 700;
}

.review-composer select,
.review-composer textarea {
  width: 100%;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: #101010;
  color: #fff;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.82rem;
}

.review-composer textarea {
  min-height: 92px;
  resize: vertical;
}

.review-composer select:focus,
.review-composer textarea:focus {
  outline: none;
  border-color: #ff0000;
}

.review-form-message {
  min-height: 18px;
  color: #aaa;
  font-size: 0.78rem;
  line-height: 1.4;
}

.review-form-message.error {
  color: #ff9d9d;
}

.review-form-message.success {
  color: #8de3a4;
}

.btn-submit-review {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #ff0000;
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit-review:disabled {
  background: #555;
  cursor: not-allowed;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #222;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.review-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
}

.verified-badge {
  color: var(--moto-success, #7ecab3);
  font-size: 0.8rem;
  margin-left: 10px;
  font-weight: bold;
}

.review-date {
  color: #777;
  font-size: 0.85rem;
}

.review-stars {
  color: var(--moto-warning, #edbd75);
  font-size: 1rem;
  margin-bottom: 15px;
}

.review-body {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Photo / short video a customer attached to their review. */
.review-media {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.review-media img {
  width: 96px;
  height: 96px;
  border: 1px solid #333;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.review-media a:hover img {
  border-color: #ff0000;
  transform: scale(1.03);
}

.review-video {
  padding: 8px 14px;
  border: 1px solid #444;
  border-radius: 999px;
  color: #ff6b6b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.review-video:hover {
  border-color: #ff0000;
  color: #fff;
}

.review-empty {
  padding: 32px 24px;
  border: 1px dashed #333;
  border-radius: 8px;
  color: #888;
  text-align: center;
}

.review-reply {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid #ff0000;
  background: #111;
  color: #bbb;
  font-size: 0.86rem;
  line-height: 1.5;
}

.review-reply strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.8rem;
}

.review-photos {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.review-photos img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #333;
  cursor: pointer;
  transition: 0.3s;
}

.review-photos img:hover {
  border-color: var(--moto-red, #ff1f1f);
}

@media (max-width: 768px) {
  .product-container {
    gap: 28px;
    margin-top: 24px;
  }

  .product-title {
    font-size: 2rem;
  }

  .options-row,
  .action-buttons {
    flex-direction: column;
  }

  .reviews-container {
    grid-template-columns: 1fr;
  }
  .review-header {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================================
   COLOR / VARIANT RADIO BUTTON SELECTOR
   ========================================= */
.option-group-variants {
  width: 100% !important;
  margin-bottom: 22px !important;
}

.variant-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

.variant-header-row .variant-label {
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #aaa !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selected-variant-name {
  color: #ff1f1f !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

.variant-radios-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.variant-radio-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 16px !important;
  background: #161616 !important;
  border: 1.5px solid #2e2e2e !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease !important;
  user-select: none !important;
  position: relative !important;
  margin: 0 !important;
}

.variant-radio-label:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: #202020 !important;
  transform: translateY(-1px);
}

.variant-radio-label.active {
  border-color: #ff1f1f !important;
  background: rgba(255, 31, 31, 0.12) !important;
  box-shadow: 0 0 12px rgba(255, 31, 31, 0.28) !important;
}

.variant-radio-label .variant-radio-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.variant-radio-swatch {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  flex-shrink: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease !important;
}

.variant-radio-label:hover .variant-radio-swatch {
  transform: scale(1.15);
}

.variant-radio-label.active .variant-radio-swatch {
  box-shadow: 0 0 0 2px #141414, 0 0 0 4px #ffffff !important;
  border-color: transparent !important;
  transform: scale(1.15);
}

.variant-radio-text {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #9ca3af !important;
  white-space: nowrap !important;
  transition: color 0.18s ease;
}

.variant-radio-label:hover .variant-radio-text {
  color: #f3f4f6 !important;
}

.variant-radio-label.active .variant-radio-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* =========================================
   RELATED PRODUCTS CAROUSEL & STOCK BADGES
   ========================================= */
.related-section {
  max-width: 1320px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
  position: relative;
}

.related-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
}

.related-section .related-title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 0.5px;
}

.related-carousel-nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.related-nav-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #181818 !important;
  border: 1.5px solid #333333 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  padding: 0 !important;
}

.related-nav-btn:hover:not(:disabled) {
  background: #ff1f1f !important;
  border-color: #ff1f1f !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 14px rgba(255, 31, 31, 0.4) !important;
}

.related-nav-btn:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  border-color: #242424 !important;
  background: #121212 !important;
}

.related-carousel-wrapper {
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
  padding: 8px 2px !important;
}

.related-carousel-track {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scroll-snap-type: x mandatory !important;
  padding-bottom: 8px !important;
}

.related-carousel-track::-webkit-scrollbar {
  display: none !important;
}

/* Display exactly 5 cards per view on desktop */
.related-carousel-track .product-card {
  flex: 0 0 calc((100% - (4 * 16px)) / 5) !important;
  min-width: calc((100% - (4 * 16px)) / 5) !important;
  max-width: calc((100% - (4 * 16px)) / 5) !important;
  scroll-snap-align: start !important;
  margin: 0 !important;
}

@media (max-width: 1200px) {
  .related-carousel-track .product-card {
    flex: 0 0 calc((100% - (3 * 16px)) / 4) !important;
    min-width: calc((100% - (3 * 16px)) / 4) !important;
    max-width: calc((100% - (3 * 16px)) / 4) !important;
  }
}

@media (max-width: 992px) {
  .related-carousel-track .product-card {
    flex: 0 0 calc((100% - (2 * 16px)) / 3) !important;
    min-width: calc((100% - (2 * 16px)) / 3) !important;
    max-width: calc((100% - (2 * 16px)) / 3) !important;
  }
}

@media (max-width: 640px) {
  .related-carousel-track .product-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
  }
}

/* STOCK BADGES */
.product-stock-tag {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 20px !important;
  z-index: 3 !important;
  backdrop-filter: blur(8px) !important;
  letter-spacing: 0.3px !important;
}

.product-stock-tag.in-stock {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

.product-stock-tag.low {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}

.stock-pulse {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
}

.stock-pulse.ok {
  background: #22c55e !important;
  box-shadow: 0 0 6px #22c55e !important;
}

.stock-pulse.warning {
  background: #ef4444 !important;
  box-shadow: 0 0 6px #ef4444 !important;
}

/* STOCK TEXT INDICATOR */
.product-stock-urgency {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.product-stock-urgency.low-stock,
.product-stock-urgency.in-stock,
.product-stock-urgency.sold-out,
.product-stock-urgency.out-of-stock {
  color: #9ca3af !important;
}

.stock-dot {
  display: none !important;
}

.color-label-header .product-stock-urgency {
  font-size: 0.85rem !important;
  margin: 0 !important;
}

/* ========================================================
   WRITE A REVIEW MODAL & DYNAMIC REVIEWS STYLING
   ======================================================== */
.review-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 200000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-modal-overlay.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.review-modal-card {
  background: #181818 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 31, 31, 0.16) !important;
  width: 100% !important;
  max-width: 540px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  padding: 32px !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: auto !important;
  z-index: 200001 !important;
  transform: translateY(15px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-overlay.show .review-modal-card {
  transform: translateY(0) !important;
}

/* ========================================================
   PRODUCT CARD STAR RATING BADGE WITH BG & (COUNT)
   ======================================================== */
.product-card-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #e5e7eb !important;
  margin: 0 0 6px 0 !important;
  line-height: 1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.product-card-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  line-height: 1 !important;
}

.product-card-stars .star-item {
  font-size: 0.88rem !important;
  line-height: 1 !important;
  text-shadow: none !important;
  transition: color 0.15s ease !important;
}

.product-card-stars .star-item.filled {
  color: #f59e0b !important;
  text-shadow: none !important;
}

.product-card-stars .star-item.empty {
  color: #4b5563 !important;
  text-shadow: none !important;
}

.product-card-rating .rating-count {
  color: #9ca3af !important;
  font-weight: 500 !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

.review-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  z-index: 10;
}

.review-modal-close:hover {
  color: #ff1f1f;
}

.review-modal-header {
  margin-bottom: 20px;
  padding-right: 30px;
}

.review-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.review-modal-subtitle {
  font-size: 0.88rem;
  color: #a0a0a0;
  margin: 0;
  line-height: 1.4;
}

.review-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #d1d5db;
  letter-spacing: 0.3px;
}

.required-star {
  color: #ff1f1f;
  font-weight: bold;
}

.optional-tag {
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 400;
}

.star-rating-picker {
  display: inline-flex;
  gap: 8px;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.star-pick {
  color: #3f3f46;
  transition: color 0.15s ease, transform 0.1s ease;
  text-shadow: none !important;
}

.star-pick.active {
  color: #f59e0b !important;
  text-shadow: none !important;
}

.star-pick.inactive {
  color: #3f3f46 !important;
  text-shadow: none !important;
}

.star-rating-picker.is-hovering .star-pick {
  color: #3f3f46 !important;
  text-shadow: none !important;
}

.star-rating-picker.is-hovering .star-pick.hover-fill {
  color: #f59e0b !important;
  text-shadow: none !important;
}

.star-pick:hover {
  transform: scale(1.15);
}

.rating-label-display {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f59e0b;
  margin-top: 2px;
}

.review-form-input,
.review-form-textarea {
  background: #101010;
  border: 1px solid #2f2f35;
  border-radius: 8px;
  color: #ffffff;
  padding: 11px 14px;
  font-size: 0.94rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.review-form-input:focus,
.review-form-textarea:focus {
  outline: none;
  border-color: #ff1f1f;
  box-shadow: 0 0 0 3px rgba(255, 31, 31, 0.2);
}

.review-form-textarea {
  resize: vertical;
  min-height: 95px;
}

.char-counter {
  font-size: 0.75rem;
  color: #71717a;
  text-align: right;
  margin-top: 2px;
}

.review-form-row {
  display: flex;
  gap: 12px;
}

.review-form-col {
  flex: 1;
}

.reviewer-auth-notice {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #9ca3af;
}

.review-form-toast {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.review-form-toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
}

.review-form-toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.review-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}

.btn-review-cancel {
  background: transparent;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  color: #a1a1aa;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-review-cancel:hover {
  background: #27272a;
  color: #ffffff;
  border-color: #52525b;
}

.review-title-display {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.verified-badge {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #4ade80 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: 8px !important;
}

.admin-reply-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #ff1f1f;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin-top: 14px;
}

.admin-reply-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ff1f1f;
  margin-bottom: 4px;
}

.admin-reply-text {
  font-size: 0.88rem;
  color: #d1d5db;
  line-height: 1.5;
  margin: 0;
}

.reviews-empty-state {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 45px 25px;
  text-align: center;
  color: #9ca3af;
}

.reviews-empty-state h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.reviews-empty-state p {
  font-size: 0.9rem;
  margin: 0 0 16px 0;
}

@media (max-width: 600px) {
  .review-form-row {
    flex-direction: column;
    gap: 14px;
  }
  .review-modal-card {
    padding: 22px 18px;
  }
}
