/**
 * WooCommerce Quick View Modal - Frontend Styles
 */

/* ==========================================================================
   Quick View Button (Using existing design)
   ========================================================================== */

.quick-look-btn {
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 20px;
  color: #049c98;
  background: transparent;
  letter-spacing: 0.5px;
  text-align: center;
}

.quick-look-btn span {
  text-decoration: underline;
}

.quick-look-btn .eye-icon {
  content: "";
  width: 18px;
  height: 12px;
  background: url(../images/eye.svg) no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Modal Overlay and Structure
   ========================================================================== */

.wc-qvm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wc-qvm-modal.wc-qvm-active {
  opacity: 1;
  visibility: visible;
}

.wc-qvm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.wc-qvm-content {
  padding: 60px;
  position: relative;
  background: white;
  max-width: 1470px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  /* transform: scale(0.9); */
  /* transition: transform 0.3s ease; */
  border-radius: 6px;
  z-index: 1;
}

.wc-qvm-modal.wc-qvm-active .wc-qvm-content {
  transform: scale(1);
}

/* ==========================================================================
   Product Modal Layout
   ========================================================================== */

.wc-qvm-product-modal {
  display: flex;
  min-height: 500px;
  max-height: 80vh;
}

.wc-qvm-product-images {
  width: 620px;
  position: relative;
}

.wc-qvm-product-images .tinv-wraper.tinv-wishlist {
  font-size: 100%;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 1px solid #EAEAEA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F6F6;
}

.wc-qvm-product-images .product-badges.single-product-badges {
  left: 15px;
}

.wc-qvm-product-details {
  padding-left: 50px;
  width: calc(100% - 620px);
}

.wc-qvm-product-price bdi {
  font-size: 35px;
  color: #049C98;
}

/* ==========================================================================
   Modal Header and Close Button
   ========================================================================== */

.wc-qvm-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: #F2F2F2 url(../images/close.svg) no-repeat center;
  border: 1px solid #E8E8E8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  border-radius: 50%;
  z-index: 10;
}

.wc-qvm-close span {
  display: none;
}

.wc-qvm-close:hover {
  background: #E8E8E8 url(../images/close.svg) no-repeat center;
}

.fbt-stock-info .in-stock {
  color: #28a745;
}

.fbt-stock-info .low-stock {
  color: red;
}

/* ==========================================================================
   Modal Body and Content
   ========================================================================== */

.wc-qvm-body {
  padding: 0;
  overflow-y: auto;
  max-height: 90vh;
}

/* Legacy product layout - keeping for backward compatibility */
.wc-qvm-product {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding: 30px;
}

.wc-qvm-product .wc-qvm-product-images {
  flex: 1;
  max-width: 50%;
}

.wc-qvm-product .wc-qvm-product-details {
  flex: 1;
  max-width: 50%;
}

/* ==========================================================================
   New Product Images Section
   ========================================================================== */

.wc-qvm-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #049C98;
  min-height: 600px;
}

.wc-qvm-featured-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.wc-qvm-thumbnail-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.wc-qvm-nav-prev,
.wc-qvm-nav-next {
  width: 59px;
  height: 59px;
  border: 1px solid #1919194D;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.wc-qvm-nav-prev:hover,
.wc-qvm-nav-next:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.wc-qvm-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  padding: 5px 0;
}

.wc-qvm-thumbnail {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #00bcd4;
  transition: border-color 0.4s ease;
}

.wc-qvm-thumbnail:hover,
.wc-qvm-thumbnail.active {
  border-color: #00bcd4;
}

/* ==========================================================================
   New Product Details Section
   ========================================================================== */

.wc-qvm-product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.wc-qvm-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wc-qvm-badge.new-badge {
  background: #00bcd4;
  color: white;
}

.wc-qvm-badge.sale-badge {
  background: #ff5722;
  color: white;
}

.wc-qvm-product-modal .wc-qvm-product-title {
  font-size: 35px;
  font-weight: 500;
  color: #000000;
  margin: 0 0 30px 0;
  line-height: 45px;
}

/* .wc-qvm-product-modal .wc-qvm-product-price {
  font-size: 28px;
  font-weight: 700;
  color: #00bcd4;
  margin: 10px 0;
} */

.wc-qvm-product-modal .wc-qvm-product-price .woocommerce-Price-currencySymbol {
  font-size: 18px;
  margin-right: 4px;
}

.wc-qvm-product-specs {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.wc-qvm-spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.wc-qvm-spec-item:last-child {
  margin-bottom: 0;
}

.wc-qvm-spec-label {
  font-weight: 600;
  color: #666;
}

.wc-qvm-spec-value {
  color: #333;
}

/* ==========================================================================
   Variations Section
   ========================================================================== */

.wc-qvm-variations {
  padding-top: 30px;
  margin: 30px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.wc-qvm-variations h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #000000;
  margin: 0 0 20px 0;
}

.wc-qvm-variation-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-qvm-variation-option {
  position: relative;
  cursor: pointer;
}

.wc-qvm-variation-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wc-qvm-variation-option span {
  display: inline-block;
  min-width: 65px;
  padding: 4px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #767676;
  transition: all 0.2s ease;
  background: white;
}

.wc-qvm-variation-option:hover span,
.wc-qvm-variation-option input[type="radio"]:checked+span {
  border-color: #00bcd4;
  color: #00bcd4;
  background: #f0fdff;
}

/* ==========================================================================
   Highlights Section
   ========================================================================== */

.wc-qvm-highlights {
  margin: 20px 0;
}

.wc-qvm-highlights h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.wc-qvm-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.wc-qvm-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.wc-qvm-highlight-icon {
  width: 32px;
  height: 32px;
  background: #00bcd4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc-qvm-highlight-icon span {
  color: white;
  font-size: 14px;
}

.wc-qvm-highlight-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.wc-qvm-product-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.wc-qvm-learn-more {
  padding: 12px 24px;
  border: 2px solid #D0D0D0;
  background: white;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
}

.wc-qvm-learn-more:hover {
  border-color: #049C98;
}

.wc-qvm-add-to-cart {
  padding: 12px 24px;
  background: #333333;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.4s ease;
  font-size: 16px;
  border-radius: 100px;
}

.wc-qvm-add-to-cart:hover {
  background: #049C98;
}

/* ==========================================================================
   Product Gallery
   ========================================================================== */

.wc-qvm-gallery-main {
  margin-bottom: 15px;
}

.wc-qvm-gallery-main img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wc-qvm-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wc-qvm-gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.wc-qvm-gallery-thumb:hover,
.wc-qvm-gallery-thumb.active {
  border-color: #0073aa;
}

.wc-qvm-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Product Details
   ========================================================================== */



/* .wc-qvm-product-price {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #049c98;
}

.wc-qvm-product-price del {
  color: #999;
  font-weight: normal;
  margin-right: 10px;
} */

.wc-qvm-product-description {
  margin: 0 0 25px;
  color: #666;
  line-height: 1.6;
}

.wc-qvm-product-meta {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.wc-qvm-product-meta span {
  display: block;
  margin-bottom: 5px;
}

/* ==========================================================================
   Product Highlights (Copied from single-product.css)
   ========================================================================== */

.hisense-product-highlights {
  margin: 35px 0 25px 0;
  padding: 35px 0 0 0;
}

.highlights-preview h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 8px;
}

/* .highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
} */

/* .highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

/* .highlight-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.highlight-icon {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.highlight-term {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #2c3e50;
} */

/* ==========================================================================
   Grand Total Section (Copied from single-product.css)
   ========================================================================== */

.hisense-grand-total-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hisense-grand-total-first {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.hisense-grand-total-section h4 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.includes-vat {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  font-weight: 400;
}

.grand-total-final-amount {
  font-size: 32px;
  font-weight: 800;
  color: #00d4aa;
  line-height: 1;
}

.grand-total-breakdown {
  margin-bottom: 20px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 16px;
}

.total-line:last-child {
  border-bottom: none;
}

.total-line .label {
  color: #495057;
  font-weight: 500;
}

.total-line .amount {
  font-weight: 600;
  color: #2c3e50;
  font-size: 18px;
}

.total-line .amount.free {
  color: #28a745;
  font-weight: 700;
}

.grand-installation-option {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.grand-installation-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
  font-weight: 500;
}

.grand-total-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.where-to-buy {
  color: #00d4aa;
  text-decoration: underline;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.where-to-buy:hover {
  color: #00b894;
  text-decoration: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
  font-weight: 500;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #dee2e6;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

input[type="checkbox"]:checked+.checkmark {
  background: #00d4aa;
  border-color: #00d4aa;
}

input[type="checkbox"]:checked+.checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* ==========================================================================
   Size Selection
   ========================================================================== */

.wc-qvm-size-section {
  margin: 20px 0;
}

.wc-qvm-size-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
}

.wc-qvm-size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wc-qvm-size-option {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.wc-qvm-size-option:hover,
.wc-qvm-size-option.selected {
  border-color: #00d4aa;
  background: #00d4aa;
  color: white;
}

/* ==========================================================================
   Variations and Add to Cart
   ========================================================================== */

/* .wc-qvm-variations {
  margin: 20px 0;
} */

.wc-qvm-variations table {
  width: 100%;
  border-collapse: collapse;
}

.wc-qvm-variations td {
  padding: 8px 0;
  vertical-align: middle;
}

.wc-qvm-variations label {
  font-weight: 500;
  color: #333;
  margin-right: 10px;
}

.wc-qvm-variations select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.wc-qvm-add-to-cart-wrapper {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.wc-qvm-quantity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.wc-qvm-quantity label {
  font-weight: 500;
  color: #333;
}

.wc-qvm-quantity input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.wc-qvm-add-to-cart.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.wc-qvm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
}

.wc-qvm-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: wc-qvm-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes wc-qvm-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.wc-qvm-loading p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* ==========================================================================
   Body Lock (Prevent Scrolling)
   ========================================================================== */

body.wc-qvm-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .wc-qvm-modal {
    padding: 10px;
  }

  .wc-qvm-content {
    width: 100%;
    max-width: none;
    border-radius: 8px;
    max-height: 95vh;
  }

  /* New modal structure responsive */
  .wc-qvm-product-modal {
    flex-direction: column;
    min-height: auto;
  }

  /* .wc-qvm-product-images,
  .wc-qvm-product-details {
    padding: 20px;
  } */

  .wc-qvm-product-details {
    padding-left: 0;
    width: 100%;
    margin-top: 40px;
  }

  .wc-qvm-main-image {
    min-height: 250px;
  }

  .wc-qvm-thumbnail-nav {
    margin-top: 10px;
  }

  .wc-qvm-thumbnails {
    gap: 6px;
  }

  .wc-qvm-thumbnail {
    width: 50px;
    height: 50px;
  }

  .wc-qvm-product-modal .wc-qvm-product-price {
    font-size: 24px;
  }

  .wc-qvm-highlights-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wc-qvm-product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .wc-qvm-learn-more,
  .wc-qvm-add-to-cart {
    flex: none;
  }

  /* Legacy structure responsive */
  .wc-qvm-product {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .wc-qvm-product .wc-qvm-product-images,
  .wc-qvm-product .wc-qvm-product-details {
    max-width: 100%;
  }

  .wc-qvm-product-title {
    font-size: 18px;
  }

  .wc-qvm-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .wc-qvm-gallery-thumbs {
    justify-content: center;
  }

  .wc-qvm-quantity {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wc-qvm-content {
    padding: 38px;
  }

  .hisense-product-highlights {
    margin: 15px 0 25px 0;
    padding: 15px 0 0 0;
  }

  .wc-qvm-variations {
    padding-top: 15px;
    margin: 15px 0 0 0;
  }

  .wc-qvm-product-modal .wc-qvm-product-title {
    font-size: 20px;
    line-height: 30px;
    margin: 0 0 15px 0;
  }

  .wc-qvm-product-images {
    width: 100%;
  }

  .wc-qvm-nav-prev,
  .wc-qvm-nav-next {
    width: 35px;
    height: 35px;
  }
}