﻿

.gallery-modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
}

.gallery-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 85vh;
    width: 90%;
    max-width: 900px;
}

.gallery-swiper {
    height: 500px;
    width: 100%;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 20px;
    }

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
    opacity: 1;
}

.close-gallery {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .close-gallery:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }

.slide-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

@media (max-width: 768px) {
    .gallery-container {
        width: 95%;
        max-height: 80vh;
    }

    .gallery-swiper {
        height: 400px;
    }

    .swiper-button-next, .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-swiper {
        height: 350px;
    }
}

@media (max-width: 640px) {
    .mobile-swiper {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
    }

        .mobile-swiper .swiper-slide {
            padding: 0 0.5rem;
        }

        .mobile-swiper img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-radius: 8px;
        }

    .grid.grid-cols-12 > div {
        padding: 0.75rem;
        height: auto;
        min-height: 60px;
    }

    #colorSelection {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .color-select-btn {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .tooltip {
        position: relative;
        display: inline-block;
    }

    .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: rgba(0,0,0,0.8);
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 12px;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .w-full.md\:w-3\/4 {
        width: 100%;
        margin-right: 0;
    }

    section.container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.product-description table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    font-size: 14px;
}

    .product-description table,
    .product-description table td,
    .product-description table th {
        border: 1px solid #ddd;
    }

        .product-description table td,
        .product-description table th {
            padding: 8px 12px;
            text-align: right;
        }

        .product-description table th {
            background-color: #f2f2f2;
            font-weight: bold;
        }

.dark .product-description table,
.dark .product-description table td,
.dark .product-description table th {
    border-color: #4b5563;
}

    .dark .product-description table th {
        background-color: #374151;
        color: #e5e7eb;
    }

    .dark .product-description table td {
        color: #d1d5db;
    }

.product-description table tbody tr:hover {
    background-color: #f5f5f5;
}

.dark .product-description table tbody tr:hover {
    background-color: #2d3748;
}
