/* Product Detail Page Styles */
.product-detail-section {
    background: #fffcfc;
}

/* Main Image Slider */
.product-main-slider {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
}

.product-main-slider:hover {
    border-color: #04cd02;
}

.product-main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-slider .swiper-button-next,
.product-main-slider .swiper-button-prev {
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
}

.product-main-slider .swiper-button-next:after,
.product-main-slider .swiper-button-prev:after {
    font-size: 1rem;
}

.product-main-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.product-main-slider .swiper-pagination-bullet-active {
    background: #04cd02;
    opacity: 1;
}

/* Thumbnail Gallery - Static Grid */
.product-thumb-gallery {
    margin-top: 15px;
}

.thumb-gallery-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid #00000099;
    /* border: 2px solid transparent; */
    border-radius: 8px;
    overflow: hidden;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active-thumb {
    opacity: 1;
    border-color: #04cd02;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dynamic Price Engine Layout */
.premium-detail-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
}

.premium-detail-price-block .current-price-tag {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
}

.premium-detail-price-block .mrp-price-tag {
    font-size: 1.25rem;
    color: #6b7280;
    text-decoration: line-through;
}

.premium-detail-price-block .discount-pill {
    background: #fff5f5;
    color: #e53e3e;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid #fed7d7;
    border-radius: 6px;
}

/* Advanced Dynamic Quantity Manager Layout */
.qty-selector-container {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 30px;
    padding: 4px;
    width: fit-content;
    border: 1px solid #e5e7eb;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
    background: #000000;
    color: #ffffff;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1.05rem;
    color: #000000;
}

.qty-input:focus {
    outline: none;
}

/* Ultimate E-commerce Actions Engine Layout */
.btn-commerce {
    border-radius: 40px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-add-to-cart {
    background: #111827;
    color: #ffffff;
}

.btn-add-to-cart:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-buy-now {
    background: #04cd02;
    color: #ffffff;
}

.btn-buy-now:hover {
    background: #03b002;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 205, 2, 0.2);
}

.btn-wishlist-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.btn-wishlist-toggle:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff5f5;
}

.btn-wishlist-toggle.active {
    /* background: #ef4444; */
    border-color: #ef4444;
    color: #ffffff;
}




/* Product Tabs */
.product-tabs {
    border-bottom: 2px solid #e5e7eb;
    gap: 0.5rem;
}

.product-tabs .nav-link {
    border: none;
    font-weight: 600;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.product-tabs .nav-link:hover {
    color: #04cd02;
}

.product-tabs .nav-link.active {
    color: #04cd02;
    background: transparent;
    border-bottom: 3px solid #04cd02;
}

.product-tab-content {
    border-radius: 0 16px 16px 16px;
    border: 1px solid #e5e7eb;
}

.product-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.product-description ul,
.product-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-specifications table {
    margin-bottom: 0;
}

.product-specifications th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Related Products Grid */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mainSwiper {
    max-height: 600px !important;
}

/* Swiper Slide Height Equalizer */
.relatedProductsSwiper{
  padding: 1rem 0 !important;
}
.relatedProductsSwiper .swiper-slide {
    height: auto !important;
}

/* Related Slider Custom Navigation Buttons */
.related-slider-nav div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.related-slider-nav div:hover {
    background: #04cd02;
    color: #ffffff;
    border-color: #04cd02;
}

/* Swiper Disabled State Navigation */
.related-slider-nav div.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
}

/* Optional Custom Mobile Pagination Dots */
.swiper-pagination-related .swiper-pagination-bullet-active {
    background: #04cd02 !important;
    width: 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Responsive UI fixes */
@media (max-width: 768px) {
    .product-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .product-tab-content {
        padding: 1rem !important;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }

    .premium-detail-price-block .current-price-tag {
        font-size: 1.85rem;
    }
}
