/* BREADCRUMB */
.product-breadcrumb {
    max-width: 1200px;
    margin: 0.75rem auto 0;
    padding: 0 1rem;
}

.product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: #888;
}

.product-breadcrumb li + li::before {
    content: '/';
    margin-right: 0.25rem;
    color: #ccc;
}

.product-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.product-breadcrumb .breadcrumb-current {
    color: #111;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
/* END BREADCRUMB */

/* QUANTITY STEPPER */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.75rem;
    width: fit-content;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.qty-stepper-btn {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: #111;
    transition: background 0.15s;
    flex-shrink: 0;
}

.qty-stepper-btn:hover { background: #e5e7eb; }

#product-qty {
    width: 48px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    background: #fff;
    -moz-appearance: textfield;
}

#product-qty::-webkit-inner-spin-button,
#product-qty::-webkit-outer-spin-button { -webkit-appearance: none; }
/* END QUANTITY STEPPER */

/* WHATSAPP BUTTONS */
.product-wa-buttons {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-wa-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.7rem 1rem;
    background: #25d366;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-wa-inquiry:hover { background: #1ebe5d; color: #fff; }

.btn-wa-share {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: #fff;
    color: #25d366;
    border: 1.5px solid #25d366;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-wa-share:hover { background: #25d366; color: #fff; }
/* END WHATSAPP BUTTONS */

/* 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-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #f59e0b;
    color: #111;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 0.75rem;
}
.btn-add-to-cart:hover { background-color: #fbbf24; }
.btn-add-to-cart:disabled { opacity: 0.6; cursor: not-allowed; }

.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;
    }
    /* 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;
}

.similar-slider .slick-track {
    display: flex !important;
    align-items: flex-start;
}

.similar-slider .slick-slide {
    height: auto !important;
}

.similar-slider .slick-slide > div {
    height: 100%;
}

.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;
    }

}

/* STICKY MOBILE CART BAR */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

.sticky-cart-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sticky-original-price {
    font-size: 0.78rem;
    color: #999;
    text-decoration: line-through;
}

.sticky-final-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.sticky-cart-btn {
    flex-shrink: 0;
    width: auto;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 72px;
    }
}
/* END STICKY MOBILE CART BAR */

/* SIMILAR PRODUCTS STYLES */