/* Quick View Modal Styles */

/* Modal Overlay */
.egotec-quick-view-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.egotec-quick-view-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.egotec-quick-view-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.egotec-quick-view-overlay.active .egotec-quick-view-modal {
  transform: scale(1);
  opacity: 1;
}

/* Close Button */
.egotec-qv-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--contrast-color, #111);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.egotec-qv-close-btn:hover {
  background: var(--Accent-color3, #503aa8);
  color: #fff;
  transform: rotate(90deg);
}

/* Modal Body */
.egotec-qv-modal-body {
  padding: 2rem;
}

/* Gallery Section */
.egotec-qv-gallery {
  position: relative;
}

.egotec-qv-main-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.egotec-qv-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Gallery Navigation Arrows */
.egotec-qv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--contrast-color, #111);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.egotec-qv-arrow:hover {
  background: var(--Accent-color3, #503aa8);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.egotec-qv-arrow-prev {
  left: 1rem;
}

.egotec-qv-arrow-next {
  right: 1rem;
}

/* Thumbnails */
.egotec-qv-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.egotec-qv-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.egotec-qv-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.egotec-qv-thumbnails::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.egotec-qv-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.egotec-qv-thumbnail:hover {
  border-color: var(--Accent-color3, #503aa8);
}

.egotec-qv-thumbnail.active {
  border-color: var(--Accent-color3, #503aa8);
  box-shadow: 0 0 0 2px rgba(80, 58, 168, 0.2);
}

.egotec-qv-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info Section */
.egotec-qv-product-info {
  text-align: left;
}

.egotec-qv-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--contrast-color, #111);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.egotec-qv-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.egotec-qv-stars {
  display: flex;
  gap: 0.2rem;
}

.egotec-qv-stars i {
  color: var(--Accent-color1, #ffee58);
  font-size: 1rem;
}

.egotec-qv-rating-text {
  font-size: 0.9rem;
  color: var(--Accent-color4, #686868);
}

.egotec-qv-price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--Accent-color3, #503aa8);
  margin-bottom: 1rem;
}

.egotec-qv-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Accent-color4, #686868);
  margin-bottom: 1.5rem;
}

/* Quantity Selector */
.egotec-qv-quantity-wrapper {
  margin-bottom: 1.5rem;
}

.egotec-qv-quantity-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--contrast-color, #111);
  margin-bottom: 0.5rem;
}

.egotec-qv-quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.egotec-qv-qty-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: #f8f9fa;
  color: var(--contrast-color, #111);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.egotec-qv-qty-btn:hover:not(:disabled) {
  background: var(--Accent-color3, #503aa8);
  color: #fff;
}

.egotec-qv-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.egotec-qv-qty-input {
  width: 70px;
  height: 45px;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--contrast-color, #111);
  background: #fff;
}

.egotec-qv-qty-input:focus {
  outline: none;
}

/* Action Buttons */
.egotec-qv-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.egotec-qv-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.egotec-qv-btn-primary {
  background: var(--Accent-color3, #503aa8);
  color: #fff;
}

.egotec-qv-btn-primary:hover {
  background: #6b4fc8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(80, 58, 168, 0.4);
}

.egotec-qv-btn-secondary {
  background: var(--Accent-color1, #ffee58);
  color: var(--contrast-color, #111);
}

.egotec-qv-btn-secondary:hover {
  background: #ffd54f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 238, 88, 0.4);
}

.egotec-qv-btn-wishlist {
  background: #fff;
  color: var(--Accent-color3, #503aa8);
  border: 2px solid var(--Accent-color3, #503aa8);
}

.egotec-qv-btn-wishlist:hover {
  background: var(--Accent-color3, #503aa8);
  color: #fff;
}

.egotec-qv-btn-wishlist.active {
  background: var(--Accent-color3, #503aa8);
  color: #fff;
}

/* Stock Status */
.egotec-qv-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.egotec-qv-stock.in-stock {
  background: #d4edda;
  color: #155724;
}

.egotec-qv-stock.out-of-stock {
  background: #f8d7da;
  color: #721c24;
}

.egotec-qv-stock.low-stock {
  background: #fff3cd;
  color: #856404;
}

/* Product Meta */
.egotec-qv-meta {
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.egotec-qv-meta-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.egotec-qv-meta-label {
  font-weight: 600;
  color: var(--contrast-color, #111);
}

.egotec-qv-meta-value {
  color: var(--Accent-color4, #686868);
}

/* Responsive Styles */

/* Tablets and below */
@media (max-width: 991px) {
  .egotec-qv-modal-body {
    padding: 1.5rem;
  }

  .egotec-qv-main-image-container {
    height: 350px;
  }

  .egotec-qv-thumbnail {
    width: 70px;
    height: 70px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .egotec-quick-view-overlay {
    align-items: flex-start;
    padding: 0.5rem;
  }

  .egotec-quick-view-modal {
    max-height: 95vh;
    border-radius: 8px;
  }

  .egotec-qv-modal-body {
    padding: 1rem;
  }

  .egotec-qv-close-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .egotec-qv-main-image-container {
    height: 280px;
  }

  /* Hide arrows on mobile */
  .egotec-qv-arrow {
    display: none;
  }

  .egotec-qv-thumbnail {
    width: 60px;
    height: 60px;
  }

  .egotec-qv-title {
    font-size: 1.2rem;
  }

  .egotec-qv-price {
    font-size: 1.5rem;
  }

  .egotec-qv-actions {
    gap: 0.5rem;
  }

  .egotec-qv-btn {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}

/* Small mobile devices */
@media (max-width: 575px) {
  .egotec-qv-main-image-container {
    height: 250px;
  }

  .egotec-qv-thumbnail {
    width: 55px;
    height: 55px;
  }

  .egotec-qv-qty-btn {
    width: 40px;
    height: 40px;
  }

  .egotec-qv-qty-input {
    width: 60px;
    height: 40px;
  }
}

/* Disable body scroll when modal is open */
body.egotec-qv-modal-open {
  overflow: hidden;
}
