/* Base Styles */
html, body { overflow-x: hidden; }


/* Product Info Container */
.product-info { padding-left: 40px; padding-top: 10px; }
.product-details-title { font: 600 25px "AloveraDisplay", sans-serif; line-height: 1.3; margin-bottom: 20px; color: #0f0f0f; }
.product-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.current-price { font: 700 1.5rem "AloveraDisplay", sans-serif; color: var(--primary-color); }
.original-price { font: normal 1.5rem "AloveraDisplay",sans-serif; color: #999; text-decoration: line-through; }
.product-brand { font-size: 14px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-family: "AloveraDisplay", sans-serif;}
.product-brand .fw-semibold { color: #333; font-weight: 600;font-family:"AloveraDisplay", sans-serif }

/* Variant Selection */
.variant-box { display: flex; margin: 0 10px; }
.color-selection, .size-selection { margin-bottom: 25px; }
.size-selection { margin-left: 20px; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-options { display: flex; gap: 12px; }
.size-option { padding: 10px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; font: 300 14px "AloveraDisplay",sans-serif; }
.size-option:hover { border-color: #040402; }
.size-option.active { background-color: #c9c2c2; color: #000; }
.color-option { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; position: relative; }

.color-option.active { border: 1px solid #9A0000; }

/* Purchase Controls */
.purchase-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 4px; }
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid #e5e5e5; overflow: hidden; height: 44px; background: #fff; }
.qty-btn { width: 40px; height: 44px; border: 0; background: #FFFFFF; font: 400 22px sans-serif; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: filter .15s ease; }
.qty-btn:hover { filter: brightness(0.95); }
.qty-input { width: 64px; height: 44px; border: 0; text-align: center; font: 500 15px "AloveraDisplay", sans-serif; padding: 0; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }
.btn-cart, .btn-buy { height: 44px; border: 1px solid transparent; font: 600 14px "AloveraDisplay", sans-serif;  padding: 0 16px; cursor: pointer; transition: transform .02s ease, filter .15s ease, background-color .15s ease; flex: 1 1 180px; }
.btn-cart { background-color: #FFFFFF; border-color: #4F0808;color: #000; }
.btn-cart:hover { filter: brightness(0.95); background-color: #f5f5f5; color: #000; }
.btn-buy { background-color: #000; border-color: #000;color: #fff; }
.btn-buy:hover { filter: brightness(0.95); background-color: #f5f5f5; color: #000; }

/* Gallery Styles */
.product-gallery-container { display: flex; gap: 10px; width: 100%; }
.thumbnails-container { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; margin-left: 25px; }
.thumbnail-item { width: 80px; height: 80px; cursor: pointer; border: 2px solid transparent; border-radius: 4px; overflow: hidden; transition: all 0.3s ease; }
.thumbnail-item:hover, .thumbnail-item.active { border-color: var(--primary-color); }
.thumbnail-item img { width: 100%; height: 100%; }
.main-image-container { flex: 1; border-radius: 8px; overflow: hidden; }
.thumbnails-container::-webkit-scrollbar { width: 6px; }
.thumbnails-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.thumbnails-container::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

/* Carousel Styles */
#productCarousel { position: relative; margin-bottom: 0px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); height: 100%; width: 100%; }
#productCarousel .carousel-inner { border-radius: 8px; height: 100%; width: 100%; }
#productCarousel .carousel-item { height: 100%; width: 100%; }
#productCarousel .carousel-item img { width: 100%; object-fit: contain; aspect-ratio: 1/1; }
#productCarousel .carousel-control-prev, #productCarousel .carousel-control-next { width: 40px; height: 40px; border-radius: 50%; top: 50%; transform: translateY(-50%); padding: 5px; z-index: 10000; position: absolute; }
#productCarousel .carousel-control-prev { left: 3px; }
#productCarousel .carousel-control-next { right: 3px; }
#productCarousel .carousel-control-prev-icon, #productCarousel .carousel-control-next-icon { border-radius: 50%; width: 25px; height: 25px; color: black; }

/* Social Share */
.social-share { margin: 20px 0; }
.social-links { display: flex; gap: 10px; }
.social-share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white !important; transition: transform 0.3s ease; text-decoration: none; }
.social-share-btn:hover { transform: translateY(-3px); }
.social-share-btn i { color: white; }
.facebook { background-color: #3b5998; }
.instagram { background: radial-gradient(circle at 30% 107%,#fdf497 0 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%); color: #fff; }
.twitter { background-color: #000000; }
.whatsapp { background-color: #25D366; }
.email { background-color: #6c757d; }

/* Product Description */
/* .product-desc { border-top: 1px solid #eee; padding-top: 12px; } */
.desc-title { font: 600 16px "Jost", sans-serif; color: #0f0f0f; margin-bottom: 8px; }
/* .desc-body { font: 400 14px "Jost", sans-serif; color: #333; line-height: 1.7; position: relative; } */
.desc-body.collapsed { max-height: 140px; overflow: hidden; }
.desc-body.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); }
.desc-toggle { margin-top: 8px; background: transparent; border: none; font: 600 14px "Jost", sans-serif; color: #4F0808; cursor: pointer; padding: 0; text-decoration: underline; }
.desc-toggle:hover { opacity: .85; }

.product-desc { border-top: 1px solid #eee; padding-top: 12px; overflow-x: auto; }
.desc-body { font: 400 14px "Jost", sans-serif; color: #333; line-height: 1.7; position: relative; word-wrap: break-word; overflow-wrap: break-word; }
.desc-body table { width: 100%; max-width: 100%; table-layout: auto; border-collapse: collapse; margin: 10px 0; }
.desc-body table td, .desc-body table th { padding: 8px 12px; border: 1px solid #ddd; word-wrap: break-word; max-width: 200px; }
.desc-body img { max-width: 100%; height: auto; }


/* Toast Notifications */
.toast-notification { position: fixed; top: 20px; right: 20px; padding: 15px 25px; background: white; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); border-radius: 4px; transform: translateX(100%); transition: transform 0.3s ease-in-out; z-index: 1000; }
.toast-notification.show { transform: translateX(0); }
.toast-notification.success { border-left: 4px solid #28a745; }
.toast-notification.error { border-left: 4px solid #dc3545; }
.toast-content { display: flex; align-items: center; gap: 10px; }
.toast-content i { font-size: 1.25rem; }
.toast-content i.fa-check-circle { color: #28a745; }
.toast-content i.fa-exclamation-circle { color: #dc3545; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: 0.15em; }

/* Breadcrumb */
.breadcrumb { background-color: #f8f9fa; font-size: 14px; }
.breadcrumb a { color: #6c757d; text-decoration: none; }
.breadcrumb a:hover { color: #9A0000; text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before {
    content: ""!important;   
}


/* Recommended Products */
.recommended-section-header {
    margin-bottom: 15px;
    margin-top:15px;
}

.recommended-section-title {
    font-family:"Conthic", sans-serif; font-weight:400;
    font-size: 30px;
    color: #666;
    text-align: left;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    width: 100%;
}
.recommended-products { background: #fff; border-top: 1px solid #eee; padding-top: 2rem; }
.recommended-box { position: relative; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease; width: 100%; }
.recommended-box:hover { transform: translateY(-5px); }
.rp-product-info { padding: 10px; }
.rp-product-info .rp-product-title { font: 400 14px "Jost", sans-serif; margin: 0 0 5px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; height: 3em; color: #333; }
.rp-price-row { display: flex; align-items: flex-start; gap: 8px; font-family: "Jost", sans-serif; white-space: nowrap; }
.rp-current-price { font: 500 normal "Jost", sans-serif; color: #000; }
.recommended-image { position: relative; margin-bottom: 10px; height: 0; padding-bottom: 100%; overflow: hidden; }
.recommended-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: .7s ease; }
.recommended-image:hover img { transform: scale(1.1); }
.recommended-box .plus-btn { position: absolute; bottom: 10px; right: 10px; background-color: #f5f5f5; color: #000; border: none; border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; opacity: 0; transition: opacity 0.3s ease, background-color 0.3s ease; z-index: 2; }
.recommended-box:hover .plus-btn { opacity: 1; }
.recommended-box .plus-btn:hover { background-color: #333; color: white; }








/* Section Headers */
.section-header { display: flex; align-items: center; text-align: center; margin: 50px 0; }
.section-header::before, .section-header::after { content: ""; flex: 1; border-bottom: 1px solid #8c7d7d; }
.section-title { font: 700 1.2rem "Playfair Display", serif; padding: 6px 20px; color: #000; letter-spacing: 1px; white-space: nowrap; border: 1px solid #987777; background-color: #978787c2; }

/* Zoom Container */
.zoomContainer { z-index: 9999; }

/* Responsive Styles - Tablet */
@media (max-width: 991px) {
    .product-gallery-container { flex-direction: column; }
    .thumbnails-container { flex-direction: row; overflow-x: auto; order: 2; padding: 10px 0; margin-left: 0; }
    .main-image-container { order: 1; }
    .zoomContainer { display: none; }
    .recommended-products .col-md-2-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* Responsive Styles - Mobile */
@media (max-width: 768px) {
    .product-info { padding-left: 15px; padding-top: 5px; }
    .product-details-title { font: 600 18px "Jost", sans-serif; margin-bottom: 15px; }
    .thumbnails-container { flex-direction: row; overflow-x: auto; order: 2; padding: 10px 0; margin-left: 15px; }
    .current-price { font-size: 1.3rem; }
    .original-price { font-size: 1.1rem; }
    .variant-box { flex-direction: column; margin: 0; }
    .size-selection { margin-left: 0px; margin-bottom: 5px; }
    .color-selection { margin-bottom: 15px; }
    .size-option { min-width: 40px; height: 35px; font-size: 13px; padding: 8px; }
    .color-option { width: 30px; height: 30px; }
    .purchase-row { flex-direction: column; gap: 12px; width: 100%; margin: 15px 0; align-items: center; justify-content: center; }
    .btn-cart, .btn-buy { width: 80%; flex: none; min-height: 50px; font-size: 16px; border-radius: 8px; font-weight: 600; margin-bottom: 8px; display: block; }
    .quantity-selector { width: 120px; align-self: center; }
    .social-share-btn { width: 32px; height: 32px; }
    .desc-body.collapsed { max-height: 160px; }
    .breadcrumb { background-color: #f8f9fa; font-size: 12px; margin: 0!important;}
    .breadcrumb a { color: #6c757d; text-decoration: none;font-size: 12px; }
}

/* Responsive Styles - Small Mobile */
@media (max-width: 576px) {
    .product-info { padding-left: 10px; }
    .product-details-title { font-size: 16px; }
    .thumbnails-container { flex-direction: row; overflow-x: auto; order: 2; padding: 10px 0; margin-left: 15px; }
    .current-price { font-size: 1.2rem; }
    .size-option { height: 30px; font-size: 12px; margin-left: 0px; }
    .color-option { width: 28px; height: 28px; }
    .purchase-row { flex-direction: column; gap: 12px; width: 100%; margin: 15px 0; align-items: center; justify-content: center; }
    .btn-cart, .btn-buy { width: 90%; flex: none; min-height: 50px; font-size: 16px; border-radius: 0px; font-weight: 600; margin-bottom: -5px; display: block; }
    .quantity-selector { width: 120px; align-self: center; }
    .recommended-products .col-lg-2-4, .recommended-products .col-md-2-4 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; padding: 8px !important; box-sizing: border-box; }
    .recommended-box { margin: 0 !important; }
    .recommended-box .plus-btn { opacity: 1; width: 25px; height: 25px; bottom: 5px; right: 5px; }
    .rp-product-info .rp-product-title { font-size: 12px; line-height: 1.4; height: 2.8em; }
}


@media (max-width: 768px) {
    .product-desc { padding: 10px; margin: 10px 0; }
    .desc-body { font-size: 13px; line-height: 1.6; }
    .desc-body.collapsed { max-height: 120px; }
    .desc-body table { font-size: 12px; display: block; overflow-x: auto; white-space: nowrap; }
    .desc-body table td, .desc-body table th { padding: 6px 8px; min-width: 80px; }
}

@media (max-width: 576px) {
    .product-desc { padding: 8px; margin: 8px 0; }
    .desc-body { font-size: 12px; }
    .desc-body table { display: block; overflow-x: scroll; -webkit-overflow-scrolling: touch; }
    .desc-body table td, .desc-body table th { padding: 4px 6px; font-size: 11px; white-space: nowrap; }
}/* Add this to your product_details.css file */

/* Disabled button styles */
.btn-disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.65;
}

.btn-disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    transform: none !important;
    filter: none !important;
}

/* Make sure disabled buttons don't have pointer events */
.btn-cart[disabled],
.btn-buy[disabled] {
    pointer-events: none;
}

/* Optional: Add a subtle animation to show it's disabled */
.btn-disabled {
    position: relative;
    overflow: hidden;
}

.btn-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}