/* Luxury single product layout */
.wl-single-product__inner {
  width: min(1440px, 100% - 64px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.wl-lux-product {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.wl-lux-product__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .wl-lux-product__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
    column-gap: 48px;
    align-items: start;
  }
}

.wl-lux-product__gallery {
  width: 100%;
}

.wl-lux-gallery__frame {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.wl-lux-gallery__main {
  position: relative;
}

.wl-lux-gallery__main .woocommerce-product-gallery__image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
}

.wl-lux-product span.onsale {
  display: none;
}

/* Hide default sale badge on single product globally */
body.single-product span.onsale {
  display: none !important;
}

.woocommerce-product-gallery__trigger {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  color: #111;
  right: 18px;
  top: 18px;
  opacity: 0.9;
}

.woocommerce-product-gallery__trigger:before {
  font-size: 16px;
}

.flex-control-nav,
.flex-control-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
}

.flex-control-nav li,
.flex-control-thumbs li {
  margin: 0;
}

.flex-control-nav img,
.flex-control-thumbs img {
  border-radius: 10px;
  border: 1px solid #eee;
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.flex-control-nav img:hover,
.flex-control-thumbs img:hover {
  opacity: 0.7;
  transform: translateY(-2px);
  border-color: #ccc;
}

.wl-lux-product__summary {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 1024px) {
  .wl-lux-product__summary {
    position: sticky;
    top: 110px;
  }
}

.wl-lux-brand {
  font-size: 14px;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wl-lux-title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 6px;
}

@media (min-width: 1200px) {
  .wl-lux-title {
    font-size: 32px;
  }
}

.wl-lux-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
}

.wl-lux-rating .star-rating {
  font-size: 14px;
  letter-spacing: 2px;
}

.wl-lux-rating .woocommerce-review-link {
  color: #666;
  text-decoration: none;
}

.wl-lux-price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.wl-lux-price {
  font-size: 28px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.wl-lux-price del {
  font-size: 14px;
  opacity: 0.4;
  margin-left: 6px;
}

.wl-lux-price ins {
  text-decoration: none;
}

.wl-sale-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.wl-lux-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #2a2a2a;
}

.wl-add-to-cart {
  display: block;
  width: 100%;
}

.wl-add-to-cart__controls {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .wl-add-to-cart__controls {
    grid-template-columns: 1fr;
  }
}

.wl-add-to-cart .quantity,
.wl-lux-variation-controls .quantity {
  width: 100%;
}

.wl-add-to-cart .quantity .qty,
.wl-lux-variation-controls .quantity .qty {
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  padding: 12px 14px;
  width: 100%;
}

.wl-add-to-cart__btn,
.single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  transition: transform 150ms ease, opacity 150ms ease;
}

.wl-add-to-cart__btn:hover,
.single_add_to_cart_button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.wl-add-to-cart__btn:disabled,
.single_add_to_cart_button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wl-variations-wrap {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.variations td,
.variations th {
  padding: 10px;
}

.variations select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  height: 48px;
  padding: 10px 14px;
  background: #fff;
}

.variations .reset_variations {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.wl-grouped-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
}

.wl-grouped-table th,
.wl-grouped-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
}

.wl-grouped-table tr:last-child th,
.wl-grouped-table tr:last-child td {
  border-bottom: 0;
}

.wl-lux-details {
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 16px 18px;
  background: #fafafa;
  display: grid;
  gap: 10px;
}

.wl-lux-details__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wl-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.wl-detail-label {
  font-weight: 600;
  margin-right: 8px;
  color: #222;
}

.wl-detail-value {
  color: #333;
}

.wl-lux-meta {
  margin-top: 4px;
}

.wl-lux-meta-chips {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #555;
}

.wl-lux-meta-chips .sku_wrapper {
  color: #555;
}

.wl-lux-meta-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #eee;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #000;
  background: #fff;
  transition: all 150ms ease;
  text-decoration: none;
}

.wl-lux-meta-chips a:hover {
  border-color: #ccc;
  transform: translateY(-1px);
}

.wl-lux-share {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wl-lux-product__lower {
  display: grid;
  gap: 18px;
}

.wl-accordion-group {
  border-top: 1px solid #eee;
}

.wl-accordion {
  border-bottom: 1px solid #eee;
}

.wl-accordion__toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 150ms ease;
}

.wl-accordion--static .wl-accordion__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
}

.wl-accordion__icon {
  transition: transform 150ms ease;
  font-size: 13px;
}

.wl-accordion__toggle.is-open .wl-accordion__icon {
  transform: rotate(180deg);
}

.wl-accordion__content {
  max-height: none;
  overflow: visible;
  transition: max-height 220ms ease, padding 180ms ease;
  padding: 0;
}

.wl-accordion__content.is-open {
  padding: 0 0 14px;
  max-height: none;
}

.wl-lux-cart-panel {
  margin-bottom: 18px;
}

.wl-lux-details {
  margin-top: 12px;
}

.wl-accordion__content > *:first-child {
  margin-top: 0;
}

.wl-accordion__content > *:last-child {
  margin-bottom: 0;
}

.wl-lux-reviews {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.wl-lux-reviews #review_form_wrapper,
.wl-lux-reviews #review_form,
.wl-lux-reviews .comment-respond {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wl-lux-reviews__list h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.wl-lux-reviews .commentlist {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.wl-lux-reviews .commentlist li {
  list-style: none;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
}

.wl-lux-reviews .commentlist .star-rating {
  font-size: 13px;
}

.wl-lux-review-form {
  margin-top: 18px;
}

.wl-lux-review-form__inner {
  display: grid;
  gap: 12px;
}

.wl-lux-review-form label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.wl-lux-review-form input,
.wl-lux-review-form select {
  width: 100%;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}

.wl-lux-review-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  min-height: 140px;
}

.wl-lux-review-form .comment-form-rating select {
  max-width: 280px;
}

.wl-lux-review-form .comment-form-rating {
  display: grid;
  gap: 6px;
  align-items: flex-start;
}

.wl-lux-review-form .comment-form-rating select {
  max-width: 220px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.wl-lux-review-form .comment-form-rating option {
  font-weight: 600;
}

.wl-rating-field {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.wl-rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.wl-rating-stars input {
  display: none;
}

.wl-rating-stars label {
  cursor: pointer;
  font-size: 20px;
  color: #c5c5c5;
  padding: 4px;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}

.wl-rating-stars input:checked ~ label,
.wl-rating-stars label:hover,
.wl-rating-stars label:hover ~ label {
  color: #000;
}

.wl-rating-stars label:active {
  transform: scale(0.96);
}

.wl-lux-review-form .comment-form-cookies-consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  margin: 4px 0 10px;
}

.wl-lux-review-form .comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #000;
}

.wl-lux-review-form .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 500;
}

.wl-lux-review-form .form-submit {
  margin: 0;
}

.wl-related-products {
  margin-top: 12px;
}

.wl-related-products h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.wl-related-products ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

@media (min-width: 1200px) {
  .wl-related-products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wl-related-products ul.products li.product {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.wl-related-products ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wl-related-products ul.products li.product .price {
  font-size: 15px;
}

.wl-related-products ul.products li.product img {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wl-related-products ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
