/* Product Quick View Popup */
.product-quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.product-quick-view {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-quick-view-overlay.active .product-quick-view {
    transform: translateY(0);
}

.product-quick-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background-color: var(--light);
}

.product-quick-view-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.product-quick-view-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-quick-view-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.product-quick-view-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.product-quick-view-image {
    flex: 1;
    min-width: 50%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.product-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.product-image-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-thumbnail:hover {
    border-color: var(--primary);
}

.product-thumbnail.active {
    border-color: var(--primary);
}

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

.product-quick-view-info {
    flex: 1;
    min-width: 50%;
    padding: 30px;
    overflow-y: auto;
}

.product-quick-category {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.product-quick-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-quick-price {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-quick-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.product-quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.product-quick-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

.product-quick-actions .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.product-quick-actions .btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.product-quick-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--gray);
}

.product-quick-meta p {
    margin-bottom: 5px;
}

/* Bespoke Gallery Popup */
.bespoke-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bespoke-gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bespoke-gallery {
    background-color: white;
    border-radius: 10px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bespoke-gallery-overlay.active .bespoke-gallery {
    transform: translateY(0);
}

.bespoke-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background-color: var(--light);
}

.bespoke-gallery-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.bespoke-gallery-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bespoke-gallery-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.bespoke-gallery-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bespoke-gallery-main {
    flex: 1;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
}

.bespoke-gallery-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.bespoke-gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.bespoke-gallery-nav button {
    background-color: rgba(101, 21, 24, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bespoke-gallery-nav button:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.bespoke-gallery-nav button:disabled {
    background-color: rgba(101, 21, 24, 0.4);
    cursor: not-allowed;
    transform: none;
}

.bespoke-gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    background-color: white;
}

.bespoke-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.bespoke-thumbnail:hover {
    border-color: var(--primary);
}

.bespoke-thumbnail.active {
    border-color: var(--primary);
}

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

.bespoke-gallery-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    background-color: var(--light);
}

.bespoke-gallery-footer .btn-accent {
    background-color: var(--accent);
    color: var(--dark);
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

.bespoke-gallery-footer .btn-accent:hover {
    background-color: var(--accent-dark);
}

.bespoke-gallery-info {
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-quick-view-content {
        flex-direction: column;
    }
    
    .product-quick-view-image,
    .product-quick-view-info {
        min-width: 100%;
    }
    
    .product-quick-view-image {
        padding: 20px;
    }
    
    .product-quick-view-info {
        padding: 20px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .product-quick-title {
        font-size: 1.5rem;
    }
    
    .product-quick-price {
        font-size: 1.5rem;
    }
    
    .product-quick-actions {
        flex-direction: column;
    }
    
    .product-quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .bespoke-gallery {
        width: 98%;
        max-height: 95vh;
    }
    
    .bespoke-gallery-main {
        padding: 15px;
    }
    
    .bespoke-gallery-image {
        max-height: 300px;
    }
    
    .bespoke-gallery-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .bespoke-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .bespoke-gallery-footer .btn-accent {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .product-quick-view-header h3 {
        font-size: 1.2rem;
    }
    
    .bespoke-gallery-header h3 {
        font-size: 1.2rem;
    }
    
    .product-quick-title {
        font-size: 1.3rem;
    }
    
    .product-image-thumbnails {
        justify-content: center;
    }
    
    .bespoke-gallery-thumbnails {
        padding: 15px;
        justify-content: flex-start;
    }
}