/* ---------- Typography ---------- */
.wh-title {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 700;
}

.wh-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 600;
}

.wh-text {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  margin-bottom: 6px;
}

/* ---------- Section Card ---------- */
.wh-card {
  background: #fff;
  border-radius: var(--wh-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: clamp(1rem, 2vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

/* ---------- Pricing Tiers ---------- */
.wh-tier {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 6px 40px;
  /* text-align: center; */
  transition: all 0.3s ease;
  cursor: pointer;
}

.wh-tier p {
  margin-bottom: 1px !important;
  font-size: clamp(12px, 1.5, 16px);
  font-weight: 500
}

.wh-tier.active {
  background-color: #4C2A71;
  color: #fff;
  border-color: #D9D9D9;
}

/* ---------- Color Options ---------- */
.wh-color-option img {
  width: clamp(60px, 12vw, 90px);
  height: clamp(60px, 12vw, 90px);
  border-radius: var(--wh-radius);
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s;
}

.wh-color-option img.active {
  border-color: var(--wh-primary);
}

/* ---------- Size Boxes ---------- */
.wh-size-box {
  border: 1px solid #D9D9D9;
  border-radius: 10px;
  padding: 10px 10px;
  background: #fff;
}

.wh-size-btn {
  background-color: var(--wh-primary);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: clamp(25px, 4vw, 32px);
  height: clamp(25px, 4vw, 32px);
  font-weight: bold;
}

/* ---------- Related Products ---------- */
.wh-related img {
  width: 100%;
  height: clamp(80px, 12vw, 100px);
  object-fit: cover;
  border-radius: var(--wh-radius);
}

/* ---------- Order Summary ---------- */
.wh-summary {
  background: #fff;
  border-radius: var(--wh-radius);
  padding: clamp(1rem, 2vw, 2rem);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.wh-summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 0.4rem 0;
}

.wh-summary-total {
  font-weight: 700;
  color: var(--wh-primary);
  font-size: clamp(1rem, 1.5vw + 0.4rem, 1.3rem);
}

.wh-related p {
  font-size: 11px !important;

}

.wh-related small {
  font-size: 13px !important;
  color: black !important;
  font-weight: 500 !important;

}

.wh-section {
  border: 1px solid #D9D9D9;
  border-radius: 20px;
  padding: 20px 15px;
}

.wh-section .cusdi {
  border: 1px solid #D9D9D9;
  border-radius: 20px;
  padding: 10px 10px;
}

.wh-section h5 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Pricing Tiers */
.pricing-tiers {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.tier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: clamp(14px, 1.5vw, 16px);
  border: 1px solid transparent;
  transition: 0.3s ease;
}

.tier-item.active {
  background-color: #5a2dff;
  color: #fff;
  border-color: #5a2dff;
}

.tier-item:hover {
  border-color: #5a2dff;
}

/* Options Section */
.options-section {
  margin-top: 30px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #ddd;
}

.options-section h6 {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 600;
  margin-bottom: 16px;
}

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

.color-options img.active {
  border-color: #5a2dff;
}

.size-box {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: clamp(14px, 1.5vw, 16px);
  cursor: pointer;
  background: #fff;
}

.size-box input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 8px;
}

/* Related Products */
.related-section {
  margin-top: 30px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
}

.related-section img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

/* Order Summary */
.order-summary {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
}

.order-summary table {
  width: 100%;
  font-size: clamp(13px, 1.4vw, 15px);
}

.order-summary tfoot {
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
}

.total-amount {
  text-align: right;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #5a2dff;
}

.quantity-box {
  width: 80px !important;
  height: 24px;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  margin: 0 2px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;/
}

.quantity-btn {
  background-color: #5b2c83;
  color: #fff;
  border: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position the count badge */
.wh-color-option {
  position: relative;
  display: inline-block;
}

.wh-color-count {
  position: absolute;
  top: -20px;
  right: -1px;
  background-color: #4C2A71;
  color: #fff;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 10px;
  min-width: 18px;
  text-align: center;
  display: none;
  z-index: 10;

}



.thumb-img.active {
  border-color: #5a2dff;
}

.wh-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.wh-summary-header h5 {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.wh-summary-header span {
  font-size: 14px;
  color: #555;
}

.wh-summary-list {
  margin-bottom: 10px;
}

.wh-summary-row {

  padding: 4px 0;
  border-bottom: 1px solid #f4f4f4;
  font-size: 16px !important;
  flex-wrap: wrap;
  font-weight: 600;
}

.wh-summary-row:last-child {
  border-bottom: none;
}

.wh-summary-left {
  flex: 1 1 60%;
}

.wh-summary-right {
  flex: 1 1 35%;
  text-align: right;
  font-weight: 500;
}

.wh-summary-totalbox {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 8px;
}

.wh-summary-totalbox .line {
  display: flex;
  justify-content: space-between;
  font-size: 16px !important;
  margin-bottom: 4px;
  font-weight: 600 !important;

}

.wh-summary-totalbox .line.total {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  font-weight: 600;
  font-size: 20px !important;
}

#wh-total-price {
  color: #4C2A71;
  font-weight: bold;
  font-size: 20px !important;
}

@media (max-width: 576px) {
  .wh-summary-row {
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
  }

  .wh-summary-right {
    text-align: left;
  }
}