/* Quick View Modal Styles */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.quick-view-modal.show {
    opacity: 1;
}

.quick-view-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.quick-view-modal.show .quick-view-container {
    transform: translate(-50%, -50%) scale(1);
}

/* Quick View Content */
.quick-view-content {
    position: relative;
    height: 100%;
    overflow-y: auto;
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-view-close:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.quick-view-body {
    padding: 40px;
}

/* Gallery Section */
.quick-view-gallery {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-wrapper:hover .main-image {
    transform: scale(1.05);
}

.image-zoom-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
}

.no-image {
    text-align: center;
    color: #999;
    padding: 50px;
}

.no-image i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Thumbnail Slider */
.thumbnail-slider {
    overflow-x: auto;
    margin-bottom: 20px;
}

.thumbnail-wrapper {
    display: flex;
    gap: 10px;
    padding: 5px;
}

.thumbnail-item {
    min-width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-item.active {
    border-color: #D4AA40;
    box-shadow: 0 0 15px rgba(212, 170, 64, 0.3);
}

.thumbnail-item:hover {
    border-color: #FF6B35;
    transform: translateY(-3px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.quick-view-info {
    padding-left: 20px;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-category {
    background: linear-gradient(135deg, #FF6B35 0%, #E74C3C 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-badge {
    background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: shine 2s infinite;
}

@keyframes shine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-title-en {
    display: block;
    font-size: 18px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-meta i {
    color: #999;
}

/* Price Section */
.product-price-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.original-price {
    color: #999;
    font-size: 18px;
}

.discount-price {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #FF6B35 0%, #E74C3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discount-percentage {
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Description */
.product-description {
    margin-bottom: 25px;
}

.product-description h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-description p {
    color: #666;
    line-height: 1.8;
}

/* Features */
.product-features {
    margin-bottom: 25px;
}

.product-features h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #D4AA40;
    font-size: 14px;
}

/* Quick Specs */
.quick-specs {
    margin-bottom: 25px;
}

.quick-specs h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.spec-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: #666;
    font-size: 14px;
}

.spec-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.product-actions .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AA40 0%, #BF9835 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 170, 64, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF6B35 0%, #E74C3C 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-outline:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.05);
}

/* Related Products */
.related-products-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    overflow: hidden;
}

.related-products-section .related-products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1000px !important;
}

.related-products-section .related-product-card {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    flex: 0 0 250px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    width: 100%;
    max-width: 1000px;
}

.related-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    flex: 0 0 250px;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    color: #ccc;
    font-size: 40px;
}

.related-product-info {
    padding: 12px;
}

.related-product-info h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.related-product-info .price {
    display: block;
    color: #D4AA40;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 12px;
}

.related-product-info .price del {
    color: #999;
    font-weight: normal;
    font-size: 12px;
    margin-right: 5px;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #D4AA40;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
}

.view-link:hover {
    color: #FF6B35;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .related-products-grid {
        max-width: 800px;
    }

    .related-product-card {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        flex: 0 0 220px;
    }
}

@media (max-width: 992px) {
    .quick-view-container {
        width: 95%;
        max-height: 95vh;
    }

    .quick-view-body {
        padding: 25px;
    }

    .quick-view-info {
        padding-left: 0;
        margin-top: 30px;
    }

    .related-products-grid {
        max-width: 600px;
        justify-content: center;
    }

    .related-product-card {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        flex: 0 0 180px;
    }
}

@media (max-width: 576px) {
    .quick-view-body {
        padding: 20px;
    }

    .product-title {
        font-size: 22px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .product-meta {
        flex-direction: column;
        gap: 10px;
    }

    .related-products-grid {
        max-width: 280px;
        margin: 0 auto;
        justify-content: center;
    }

    .related-product-card {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        flex: 0 0 260px;
    }
}

/* Loading Animation */
.quick-view-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D4AA40;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.quick-view-error {
    text-align: center;
    padding: 50px;
}

.quick-view-error i {
    font-size: 60px;
    color: #ff4757;
    margin-bottom: 20px;
}

.quick-view-error h3 {
    color: #333;
    margin-bottom: 10px;
}

.quick-view-error p {
    color: #666;
}