/* --- Base CSS --- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
}

.review-container {
  max-width: 500px;
  margin: auto;
  padding: 0px;
}

.review-banner {
  width: 100%;
  aspect-ratio: 16/9;
  background: url('https://shop.adnanvai.xyz/assets/system/images/ff.webp') no-repeat center center;
  background-size: cover;
  border-radius: 15px;
  overflow: hidden;
}

.review-content {
  margin-top: 20px;
}

.review-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
}

.review-description {
  margin: 20px 0;
}

.review-description li {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #555;
}

.review-price-range {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin: 25px 0 10px;
  color: #e53935;
}

.review-choose-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 18px;
}

.review-product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --- Product Option Cards --- */
.review-option-card {
  flex: 0 0 48%;
  padding: 10px;
  border: 2px solid #ccc; /* default border for disable */
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  border-image-slice: 1;
}

/* Badge inside card */
.review-option-card .review-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #4caf50;
  color: #fff;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 20px;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced RGB Animation Keyframes */
@keyframes fancyRainbowBorder {
  0% {
    border-image-source: linear-gradient(0deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
  }
  12.5% {
    border-image-source: linear-gradient(45deg, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000);
  }
  25% {
    border-image-source: linear-gradient(90deg, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000, #ff7f00);
  }
  37.5% {
    border-image-source: linear-gradient(135deg, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000, #ff7f00, #ffff00);
  }
  50% {
    border-image-source: linear-gradient(180deg, #0000ff, #4b0082, #8f00ff, #ff0000, #ff7f00, #ffff00, #00ff00);
  }
  62.5% {
    border-image-source: linear-gradient(225deg, #4b0082, #8f00ff, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff);
  }
  75% {
    border-image-source: linear-gradient(270deg, #8f00ff, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082);
  }
  87.5% {
    border-image-source: linear-gradient(315deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
  }
  100% {
    border-image-source: linear-gradient(360deg, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000);
  }
}

/* Active RGB Border */
.review-option-card.rgb-active {
  border-width: 4px;
  border-style: solid;
  border-image-slice: 1;
  animation: fancyRainbowBorder 2s linear infinite;
  box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 20px rgba(255,0,255,0.9);
}


/* Disable normal border */
.review-option-card.rgb-disable {
  border: 2px solid #ccc;
  background: #f9f9f9;
}

/* Hover effect for active card */
.review-option-card.rgb-active:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(0,255,255,0.4), 0 0 40px rgba(255,0,255,0.4);
}

/* Selected card styling */
.review-option-card.review-active {
  background: #c8e6c9;
}

/* Price display */
.review-selected-price {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin: 25px 0 0;
  display: none;
  transition: opacity 0.3s ease;
  color: #4caf50;
}

/* Forms */
.review-form {
  margin-top: 30px;
}

.review-form-group {
  margin-bottom: 20px;
}

.review-form label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
}

.review-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Buttons */
.review-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.review-clear-btn,
.review-buy-btn {
  flex: 1;
  padding: 14px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.review-clear-btn {
  background: #f0f4c3;
  color: #827717;
}

.review-clear-btn:hover {
  background: #dce775;
}

.review-buy-btn {
  background: #4caf50;
  color: #fff;
}

.review-buy-btn:hover {
  background: #43a047;
}

/* Page container */
.products-page-css {
  max-width: 750px;
  margin: auto;
  margin-bottom: 25px;
  margin-top: 25px;
  color: #333;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .products-page-css {
      width: 100%;
  }
}

/* Shine Effect */
.shining-badge {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.shining-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 70%);
  transform: skewX(-30deg);
  animation: shine 2s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Variation Error */
.variation-error {
  display: none;
  max-width: 420px;
  margin: 10px auto 15px;
  padding: 12px 16px;
  background: #ffecec;
  color: #d32f2f;
  border: 1px solid #f5c2c7;
  border-left: 5px solid #d32f2f;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.12);
  animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
  from {
      opacity: 0;
      transform: translateY(-6px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-label {
  font-weight: 600;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: green;
  color: #fff;
  cursor: pointer;
}

.qty-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.qty-box input {
  width: 55px;
  height: 38px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.qty-btn:hover:not(:disabled) {
  background: darkgreen;
}

