/* Mobile-first base styles */
.product-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-width: 1000px;
    margin: auto;
}

.product-image {
    width: 100%;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.25rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.units {
    margin-bottom: 1.5rem;
}
.units-text {
    margin-left: 0.3rem;
}

.btn-buy {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-buy:hover {
    background-color: #218838;
}

/* Product Slider Styles - Mobile first */
.product-slider {
    margin-bottom: 15px;
}

.product-slider .slide img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Thumbnail Styles - Mobile first */
.product-thumbnails {
    margin-top: 10px;
}

.product-thumbnails .thumbnail {
    padding: 0 3px;
    cursor: pointer;
}

.product-thumbnails .thumbnail img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-thumbnails .thumbnail img:hover,
.product-thumbnails .slick-current img {
    border-color: #007bff;
}

/* Slick Arrow Customization - Hidden on mobile by default */
.product-slider .slick-prev,
.product-slider .slick-next {
    display: none !important;
}

/* Slick dots for mobile */
.product-slider .slick-dots {
    bottom: 10px;
}

.product-slider .slick-dots li button:before {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Force the slick-lightbox background overlay */
.slick-lightbox-inner {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Tablet styles - 576px and up */
@media (min-width: 576px) {
    .product-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .product-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .product-price {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .product-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .product-slider .slide img {
        max-height: 350px;
    }
    
    .product-thumbnails .thumbnail img {
        height: 60px;
    }
    
    .product-thumbnails .thumbnail {
        padding: 0 4px;
    }
}

/* Slick Lightbox Custom Styles */
.product-slider .slide a {
    display: block;
    cursor: zoom-in;
}

.product-slider .slide a:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Desktop styles - 768px and up */
@media (min-width: 768px) {
    .product-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
        max-width: 1200px;
        margin: auto;
    }
    
    .product-image {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .product-details {
        flex: 1 1 50%;
        max-width: 50%;
    }

    
    .product-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .product-slider .slide img {
        max-height: 500px;
    }
    .product-thumbnails {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 15px;
    }
    .product-thumbnails .thumbnail iimg {
        height: 80px;
        width: auto;
        border-radius: 4px;
        object-fit: cover;
    }
    
    .product-price {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-description {
        margin-bottom: 2rem;
    }
    
    .btn-buy {
        text-align: left;
        display: inline-block;
        width: auto;
    }
    
    .product-slider {
        margin-bottom: 20px;
    }

    
    /* Show arrows on desktop */
    .product-slider .slick-prev,
    .product-slider .slick-next {
        display: block !important;
        z-index: 10;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .product-slider .slick-prev {
        left: 10px;
    }
    
    .product-slider .slick-next {
        right: 10px;
    }
    
    .product-slider .slick-prev:before,
    .product-slider .slick-next:before {
        color: white;
        font-size: 20px;
    }
    
    /* Hide dots on desktop if you prefer arrows */
    .product-slider .slick-dots {
        display: none !important;
    }

    .product-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
        max-width: 1200px;
        margin: auto;
    }
    /* SIMILAR PRODUCTS */
    .similar-products-container {
        max-width: 1200px;
        margin: auto;
    }
    .similar-slider {
        margin-top: 1rem;
        height: 280px;
    }
    /* END SIMILAR PRODUCTS */
}

/* SIMILAR PRODUCTS STYLES */
.similar-products {
    margin-top: 2rem;
    padding: 1rem;
}

.similar-products .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px 20px 25px;
    text-align: center;
    background-color: #f0f1f2;
}
.product-info p {
    margin: 5px 0;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #007bff;
}
.similar-slider {
    margin-top: 1rem;
    height: 250px;
}

.similar-slider .product-card {
    margin: 0 8px;
}

.slick-dots {
    margin-top: 1rem;
}

.slick-arrow {
    z-index: 2;
}

.slick-prev:before,
.slick-next:before {
    color: #333;
    font-size: 20px;
}

/* Tablet: 2 columns */
@media (min-width: 576px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 768px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-card img {
        height: 200px;
    }
    .product-slider .slick-prev:nth-of-type(1),
    .product-slider .slick-next:nth-of-type(2) {
        display: none !important;
    }

}
/* SIMILAR PRODUCTS STYLES */