/* ============================================================
   LIZABEELA Product Page — 1:1 Figma Restoration
   Node: 105:1356 Product Details
   ============================================================ */

/* ── Product Page Container ── */
.lzb-product {
  background: #fffdfb;
}

.lzb-product .lzb-container--wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.lzb-product .lzb-content-padding {
  padding-top: 118px;
}

@media (max-width: 768px) {
  .lzb-product .lzb-container--wide {
    padding: 0 24px;
  }
  .lzb-product .lzb-content-padding {
    padding-top: 80px;
  }
}

/* ── Product Main Row ── */
.lzb-product__layout {
  display: flex;
  gap: 80px;
  padding-top: 32px;
}

.lzb-product__gallery-col {
  width: 632px;
  flex-shrink: 0;
}

.lzb-product__info-col {
  width: 632px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .lzb-product__layout {
    flex-direction: column;
    gap: 40px;
  }
  .lzb-product__gallery-col,
  .lzb-product__info-col {
    width: 100%;
  }
}

/* ── WooCommerce Product Gallery (Figma: vertical thumbs) ── */
.woocommerce-product-gallery {
  display: flex !important;
  gap: 16px;
  width: 100%;
  position: relative;
}

/* Hide WC's flexslider thumbnails — we style our own via flex-control-nav */
.woocommerce-product-gallery .flex-viewport {
  width: 536px !important;
  height: auto !important;
  float: none !important;
  flex-shrink: 0;
  order: 2;
}

.woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}

.woocommerce-product-gallery__image {
  display: block !important;
}

.woocommerce-product-gallery__image a {
  display: block;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f5f1ee;
}

/* Gallery thumbnails — vertical strip on left (Figma: 80px) */
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery ol.flex-control-nav {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  width: 80px !important;
  flex-shrink: 0;
  order: 1;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  max-height: none !important;
  overflow: visible !important;
}

.woocommerce-product-gallery .flex-control-nav li {
  width: 80px !important;
  height: 107px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  flex-shrink: 0;
}

.woocommerce-product-gallery .flex-control-nav li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  cursor: pointer;
  opacity: 1 !important;
  background: #f5f1ee;
}

.woocommerce-product-gallery .flex-control-nav li img.flex-active,
.woocommerce-product-gallery .flex-control-nav li img:hover {
  border-color: #d8a7b1;
}

/* Hide sale flash on gallery */
.woocommerce .onsale {
  display: none !important;
}

/* Mobile gallery — horizontal thumbs below */
@media (max-width: 1024px) {
  .woocommerce-product-gallery {
    flex-direction: column-reverse !important;
    gap: 12px;
  }
  .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
  }
  .woocommerce-product-gallery .flex-control-nav,
  .woocommerce-product-gallery ol.flex-control-nav {
    flex-direction: row !important;
    width: 100% !important;
    gap: 8px;
    overflow-x: auto !important;
  }
  .woocommerce-product-gallery .flex-control-nav li {
    width: 64px !important;
    height: 85px !important;
  }
}

/* ── Product Info (styling WooCommerce output) ── */

/* Summary entry-summary is the WC wrapper */
.lzb-product__info-col .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Brand label */
.lzb-product-info__brand {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #887870;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  line-height: 15px;
  margin: 0 0 8px;
}

/* Title */
.lzb-product-info__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  color: #2e2e2e;
  margin: 0;
}

/* Product title override — hide default WC title */
.lzb-product__info-col .product_title {
  display: none;
}

/* Star Rating Row */
.lzb-product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
}

.lzb-product-info__rating .lzb-stars {
  display: flex;
  gap: 4px;
}

.lzb-product-info__rating .lzb-stars__icon {
  width: 13px;
  height: 13px;
  color: #d8a7b1;
}

.lzb-product-info__rating .lzb-stars__icon--empty {
  opacity: 0.25;
}

.lzb-product-info__rating-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #887870;
  line-height: 16px;
}

/* Pricing */
.lzb-product-info__pricing {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 24px;
}

.lzb-product-info__pricing .lzb-product-info__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  color: #2e2e2e;
}

/* Override WC price styles */
.lzb-product-info__pricing .price {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  line-height: 36px !important;
  color: #2e2e2e !important;
  margin: 0 !important;
}

.lzb-product-info__pricing .price del {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #887870 !important;
  line-height: 28px;
  text-decoration: line-through;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.lzb-product-info__pricing .price ins {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #2e2e2e !important;
  text-decoration: none !important;
}

.lzb-product-info__pricing .price .woocommerce-Price-amount {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ── Quantity Discount / Bulk Pricing ── */
.lzb-bulk-pricing {
  background: #f5f1ee;
  padding: 16px;
  margin-top: 24px;
}

.lzb-bulk-pricing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lzb-bulk-pricing__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #887870;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 15px;
}

.lzb-bulk-pricing__tiers {
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.lzb-bulk-pricing__tier {
  flex: 1;
  min-width: 0;
  padding: 13px;
  text-align: center;
  background: #fffdfb;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.lzb-bulk-pricing__tier--active {
  background: #2e2e2e;
  border-color: #2e2e2e;
}

.lzb-bulk-pricing__tier:hover:not(.lzb-bulk-pricing__tier--active) {
  border-color: #d8a7b1;
}

.lzb-bulk-pricing__tier-qty {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #887870;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  line-height: 15px;
}

.lzb-bulk-pricing__tier--active .lzb-bulk-pricing__tier-qty {
  color: rgba(255, 253, 251, 0.6);
}

.lzb-bulk-pricing__tier-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: #2e2e2e;
  line-height: 20px;
  padding-top: 4px;
}

.lzb-bulk-pricing__tier--active .lzb-bulk-pricing__tier-price {
  color: #fffdfb;
}

.lzb-bulk-pricing__tier-save {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #d8a7b1;
  line-height: 15px;
  padding-top: 4px;
}

@media (max-width: 480px) {
  .lzb-bulk-pricing__tiers {
    flex-direction: column;
    gap: 6px;
  }
  .lzb-bulk-pricing__tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    text-align: left;
  }
  .lzb-bulk-pricing__tier-price {
    padding-top: 0;
  }
  .lzb-bulk-pricing__tier-save {
    padding-top: 0;
  }
}

/* ── Variations (Color / Size) ── */
/* Hide default WC variation labels — we'll keep them but style them */
.lzb-product__info-col .variations {
  margin-bottom: 0;
}

.lzb-product__info-col .variations tr {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.lzb-product__info-col .variations td {
  display: block;
  padding: 0;
}

.lzb-product__info-col .variations .label {
  display: block;
}

.lzb-product__info-col .variations .label label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #2e2e2e;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 15px;
}

/* Style variation selects to match Figma */
.lzb-product__info-col .variations select {
  margin-top: 12px;
  width: 100%;
  padding: 14px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #2e2e2e;
  background: #fffdfb;
  border: 1px solid rgba(46, 46, 46, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%232e2e2e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.lzb-product__info-col .variations .reset_variations {
  display: none !important;
}

/* ── Quantity + Add to Cart Form ── */
.lzb-product__info-col .cart {
  display: block !important;
  margin-top: 32px !important;
}

/* Hide default quantity styling, we'll override */
.lzb-product__info-col .cart .quantity {
  margin: 0 0 0 0 !important;
  float: none !important;
}

.lzb-product__info-col .cart .quantity input.qty {
  width: 52px !important;
  height: 44px !important;
  text-align: center !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #2e2e2e !important;
  border: 1px solid rgba(46, 46, 46, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  -moz-appearance: textfield !important;
}

.lzb-product__info-col .cart .quantity input.qty::-webkit-outer-spin-button,
.lzb-product__info-col .cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to Cart button — Figma match */
.lzb-product__info-col .cart .single_add_to_cart_button,
.lzb-product__info-col .cart button[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  margin-top: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #fffdfb !important;
  background: #2e2e2e !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  line-height: 15px !important;
  border-radius: 0 !important;
}

.lzb-product__info-col .cart .single_add_to_cart_button:hover,
.lzb-product__info-col .cart button[type="submit"]:hover {
  background: #d8a7b1 !important;
}

/* Buy Now button */
.lzb-product-actions__buy {
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  margin-top: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #2e2e2e !important;
  background: transparent !important;
  border: 1px solid #2e2e2e !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  line-height: 15px !important;
  border-radius: 0 !important;
}

.lzb-product-actions__buy:hover {
  background: #2e2e2e !important;
  color: #fffdfb !important;
}

/* Add to Wishlist button */
.lzb-product-actions__wishlist {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 16px !important;
  margin-top: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #887870 !important;
  background: transparent !important;
  border: 1px solid rgba(46, 46, 46, 0.18) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  line-height: 15px !important;
  border-radius: 0 !important;
}

.lzb-product-actions__wishlist:hover {
  color: #2e2e2e !important;
  border-color: #d8a7b1 !important;
}

.lzb-product-actions__wishlist svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Shipping Info ── */
.lzb-product-shipping {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 25px;
  margin-top: 32px;
  border-top: 1px solid rgba(46, 46, 46, 0.1);
}

.lzb-product-shipping__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #887870;
  line-height: 16px;
}

.lzb-product-shipping__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #887870;
}

/* ── Product Accordions (Figma: max-width 768px) ── */
.lzb-product-details {
  max-width: 768px;
  padding-top: 96px;
}

.lzb-product-details .lzb-accordion {
  border-top: 1px solid rgba(46, 46, 46, 0.1);
}

.lzb-product-details .lzb-accordion__item:last-child {
  border-bottom: 1px solid rgba(46, 46, 46, 0.1);
}

.lzb-product-details .lzb-accordion__trigger {
  padding-block: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #2e2e2e;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 15px;
}

.lzb-product-details .lzb-accordion__icon {
  width: 14px;
  height: 14px;
  color: #2e2e2e;
  transition: transform 0.3s;
}

.lzb-product-details .lzb-accordion__item--open .lzb-accordion__icon {
  transform: rotate(45deg);
}

.lzb-product-details .lzb-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.lzb-product-details .lzb-accordion__item--open .lzb-accordion__panel {
  max-height: 500px;
  padding-bottom: 20px;
}

.lzb-product-details .lzb-accordion__panel-inner {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.625;
  color: #887870;
}

/* Hide default WC tabs — we use accordion instead */
.woocommerce-tabs {
  display: none !important;
}

/* ── Quantity Stepper (Figma: 134px wide, bordered) ── */
.lzb-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(46, 46, 46, 0.18);
}

.lzb-qty-stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: #2e2e2e;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.lzb-qty-stepper__btn:hover {
  background: #f5f1ee;
}

.lzb-qty-stepper__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lzb-qty-stepper input.qty {
  width: 44px !important;
  height: 44px !important;
  text-align: center !important;
  border: none !important;
  border-left: 1px solid rgba(46, 46, 46, 0.18) !important;
  border-right: 1px solid rgba(46, 46, 46, 0.18) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #2e2e2e !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
}

.lzb-qty-stepper input.qty::-webkit-outer-spin-button,
.lzb-qty-stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Customer Reviews ── */
.lzb-product-reviews {
  padding-top: 80px;
}

.lzb-product-reviews__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: #2e2e2e;
  margin: 0 0 32px;
}

.lzb-product-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .lzb-product-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .lzb-product-reviews__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.lzb-review-card {
  background: #f5f1ee;
  padding: 24px;
}

.lzb-review-card__stars {
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
}

.lzb-review-card__stars .lzb-stars__icon {
  width: 12px;
  height: 12px;
  color: #d8a7b1;
}

.lzb-review-card__stars .lzb-stars__icon--empty {
  opacity: 0.25;
}

.lzb-review-card__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.625;
  color: #2e2e2e;
  margin: 0 0 16px;
}

.lzb-review-card__author {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #887870;
  line-height: 16px;
}

/* ── Related Products ── */
.lzb-related-products {
  padding-top: 80px;
}

.lzb-related-products__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: #2e2e2e;
  margin: 0 0 32px;
}

.lzb-related-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .lzb-related-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .lzb-related-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.lzb-related-products .lzb-product-card__image-wrap {
  aspect-ratio: 3 / 4;
  background: #f5f1ee;
}

.lzb-related-products .lzb-product-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #2e2e2e;
}

.lzb-related-products .lzb-product-card__price {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #d8a7b1;
  line-height: 20px;
}

.lzb-related-products .lzb-product-card__price--original {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #887870;
  text-decoration: line-through;
  line-height: 20px;
}
