/* ============================================
   QUICK VIEW MODAL
   ============================================ */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.quick-view-content {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    z-index: 10;
    transition: all 0.2s ease;
}

.quick-view-close:hover {
    background: #eee;
    color: #222;
}

.quick-view-layout {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.quick-view-gallery {
    width: 45%;
    flex-shrink: 0;
}

.quick-view-main-image {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.quick-view-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-view-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.quick-view-thumbs .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.quick-view-thumbs .thumb.active,
.quick-view-thumbs .thumb:hover {
    border-color: #222;
}

.quick-view-info {
    flex: 1;
    min-width: 0;
}

.quick-view-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.quick-view-price {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.quick-view-price del {
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.quick-view-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.quick-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.quick-view-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-view-attribute {
    margin-bottom: 15px;
}

.quick-view-attribute label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.quick-view-attribute .selected-value {
    font-weight: 400;
    color: #666;
}

.quick-view-attribute .attr-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attribute-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attribute-btn:hover,
.attribute-btn.active {
background: #111331;
	border-color: #111331;
    color: #fff;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-swatch:hover,
.color-swatch.active {
	transform: scale(1.1);
	border-color: #111331;
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.quick-view-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.quick-view-actions .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quick-view-actions .qty-btn {
    width: 40px;
    height: 40px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background 0.2s ease;
}

.quick-view-actions .qty-btn:hover {
    background: #eee;
}

.quick-view-actions .qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.quick-view-actions .add-to-cart-btn {
  flex: 1;
  height: 48px;
  background: #111331;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.quick-view-actions .add-to-cart-btn:hover {
  background: #c09578;
}

.quick-view-actions .add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.quick-view-footer {
    margin-top: 20px;
    text-align: center;
}

.view-full-details {
    color: #666;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.view-full-details:hover {
    color: #222;
}

/* Quick View Button in Product Card - Uses .product-card__actions from shop.css */

/* Quick View content wrapper (inside the modal) */
.qv-content {
    padding: 0;
    position: relative;
}

/* Quick View error state */
.quick-view-error-retry {
    padding: 12px 28px !important;
    background: #111331 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background 0.2s ease !important;
}

.quick-view-error-retry:hover {
    background: #444 !important;
}

@media (max-width: 768px) {
    .quick-view-layout {
        flex-direction: column;
        padding: 20px;
    }

    .quick-view-gallery {
        width: 100%;
    }

    .quick-view-actions {
        flex-direction: column;
    }

    .quick-view-actions .quantity-selector {
        width: 100%;
    }

    .quick-view-actions .add-to-cart-btn {
        width: 100%;
    }
}