/* Product Gallery Styles - Slideshow */

.product-slideshow-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.product-slideshow-wrapper {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    display: none;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.slideshow-slide.active {
    display: block;
}

.slideshow-media {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slideshow-media:hover {
    transform: scale(1.02);
}

/* Navigation Arrows */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slideshow-nav:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slideshow-prev {
    left: 15px;
}

.slideshow-next {
    right: 15px;
}

/* Slide Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slideshow-indicator:hover,
.slideshow-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Thumbnail Navigation */
.slideshow-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Thumbnails on left side of main image */
.slideshow-thumbnails-left {
    flex-shrink: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 100%;
    overflow-y: auto;
}

.slideshow-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.slideshow-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slideshow-thumbnail.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(19, 35, 60, 0.2);
}

.slideshow-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow-thumbnail .thumbnail-video {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.slideshow-thumbnail .thumbnail-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-thumbnail .thumbnail-video i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.product-gallery {
    margin-top: 1.5rem;
}



.gallery-section {
    margin-bottom: 1.5rem;
}

.gallery-section h6 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.gallery-section h6 i {
    margin-right: 0.5rem;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gallery-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.gallery-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.gallery-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gallery-video-item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.gallery-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.gallery-video-item video {
    display: block;
    max-width: 200px;
    height: auto;
}

.main-product-image {
    transition: all 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.02);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-content video {
    width: 100%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--color-secondary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    transition: color 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-slideshow-container {
        flex-direction: column;
    }

    .slideshow-thumbnails-left {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
    }

    .product-slideshow-wrapper {
        order: 1;
    }

    .gallery-thumbnail img {
        width: 60px;
        height: 60px;
    }

    .gallery-video-item video {
        max-width: 150px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Product Detail Page Styles - Moved from product/show.blade.php */
.product-detail-section {
    padding: 2rem 0;
}

.product-info-container {
    padding-left: 1rem;
}

.product-detail-item {
    /* margin-bottom: 1rem; */
}

.product-detail-item small {
    /* display: block; */
    margin-bottom: 0.25rem;
}

.product-detail-item .fw-bold {
    color: var(--color-primary);
    font-size: larger;
}

.product-detail-item .h5 {
    font-size: 1.25rem;
}

.product-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-short-desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    line-height: 1.8;
}

.product-card-no-border {
    border: none;
}

.product-card-body-no-padding {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.variant-selection-card {
    border: none;
}

.variant-selection-title {
    color: var(--color-primary);
}

.variant-attr-btn {
    transition: all 0.3s ease;
}

.variant-attr-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.selected-variant-info {
    display: none;
}

.variant-image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.add-to-cart-btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

.quantity-input {
    width: 100px;
}

.product-image-placeholder {
    height: 500px;
}

.product-image-placeholder-icon {
    font-size: 5rem;
}

.slideshow-media-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.slideshow-media-video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.related-products-section {
    padding: 2rem 0;
}

.reviews-section {
    padding: 2rem 0;
}

.badge-featured {
    background: var(--color-secondary);
    color: white;
    font-size: 0.85rem;
}

.badge-discount {
    background: var(--color-secondary);
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.alert-prebooking {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

@media (max-width: 768px) {
    .product-info-container {
        padding-left: 0;
        margin-top: 1.5rem;
    }
    
    .product-title-large {
        font-size: 1.75rem;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}

/* ===== Product Detail Modern UI (variant-product reference) ===== */
.product-slideshow-wrapper {
    position: relative;
}
.product-detail-wishlist-wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 12;
}
.product-detail-wishlist-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}
.product-detail-wishlist-btn:hover {
    background: #fff;
    /* color: var(--color-secondary, #F28C28); */
}
.product-detail-wishlist-btn.in-wishlist,
.product-detail-wishlist-btn.in-wishlist i {
    color: var(--color-secondary, #F28C28);
}

/* Right column – badge, title, rating, price, unit, desc */
.product-detail-modern .product-detail-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--color-secondary, #F28C28);
    color: #fff;
}
.product-detail-badge-featured {
    background: #e5e7eb;
    color: #374151;
}
.product-detail-title {
    /* font-size: 1.75rem; */
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-detail-rating-text {
    font-size: 0.95rem;
    color: #4b5563;
}
.product-detail-price-block {
    line-height: 1.4;
}
.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}
.product-detail-price-note {
    font-size: 0.875rem;
    color: #6b7280;
}
.product-detail-unit {
    font-size: 0.95rem;
    color: #374151;
}
.product-detail-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Variant pills – grey default, orange when selected */
.product-detail-variant-group {
    margin-bottom: 1rem;
}
.product-detail-variant-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.product-detail-variant-value {
    color: var(--color-secondary, #F28C28);
    font-weight: 600;
}
.product-detail-variant-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-detail-variant-btn {
    min-width: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: transparent;
}
.product-detail-variant-btn:hover {
    background:#e6ddd5;
    border-color: #F28C28;
    border-width: 2px;
}
.product-detail-variant-btn.active {
    background: var(--color-secondary, #F28C28);
    border-color: var(--color-secondary, #F28C28);
    color: #fff;
}
.product-detail-variant-msg {
    margin-top: 6px;
}

/* Quantity – minus / input / plus */
.product-detail-qty-wrap {
    margin-bottom: 1rem;
}
.product-detail-qty-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.product-detail-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    /* border: 1px solid #e5e7eb; */
    border-radius:10px;
    overflow: hidden;
    background: #fff;
}
.product-detail-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.product-detail-qty-btn:hover {
    background: var(--color-secondary1);
}
.product-detail-qty-input {
    width: 52px;
    height: 40px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}
.product-detail-qty-input::-webkit-inner-spin-button,
.product-detail-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-detail-qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Add to Cart – orange CTA */
.product-detail-addcart {
    width: 100%;
    /* max-width: 320px; */
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    background: var(--color-secondary, #F28C28);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.product-detail-addcart:hover:not(:disabled) {
    background: #e07b20;
    color: #fff;
}
.product-detail-addcart.addcart-disabled,
.product-detail-addcart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Share – label + circular grey icons */
.product-detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.25rem;
}
.product-detail-share-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}
.product-detail-share-icons {
    display: flex;
    gap: 8px;
}
.product-detail-share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.product-detail-share-icon:hover {
    background: #d1d5db;
    color: #111;
}

/* Thumbnail active state – orange border (match reference) */
.slideshow-thumbnail.active {
    border-color: var(--color-secondary, #F28C28);
    box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.25);
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 1.4rem;
    }
    .product-detail-addcart {
        max-width: 100%;
    }
}

