/* Category Breadcrumb Styles */
.category-breadcrumb-wrapper {
    display: block;
    margin-bottom: 30px;
    width: 100%;
}
.category-breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 16px;
}
.category-breadcrumb-list li {
    display: flex;
    align-items: center;
}
.category-breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #999;
}
.category-breadcrumb-list li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.category-breadcrumb-list li a:hover {
    color: #333;
}
.category-breadcrumb-list li a.active {
    color: #333;
    font-weight: 500;
    pointer-events: none;
}
.category-breadcrumb-list li a i {
    margin-right: 5px;
}
@media (max-width: 991.99px) {
    .category-breadcrumb-wrapper {
        margin-top: 80px;
    }
    .category-breadcrumb-list {
        font-size: 14px;
    }
}
@media (max-width: 575.99px) {
    .category-breadcrumb-wrapper {
        margin-top: 100px;
    }
    .category-breadcrumb-list {
        font-size: 14px;
    }
}

/* Product Slider Styles */
.shop_details_slider_area {
    width: 100%;
    max-width: 100%;
}

/* Main Image Container */
.details_slider_thumb {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.details_slider_thumb:not(.slick-initialized) {
    overflow: hidden;
    height: 600px;
    background-color: #f8f9fa;
}

.details_slider_thumb:not(.slick-initialized) > div:not(:first-child) {
    display: none !important;
}

.details_slider_nav:not(.slick-initialized) {
    overflow: hidden;
    height: 100px;
}

.details_slider_nav:not(.slick-initialized) > div:not(:first-child) {
    display: none !important;
}

.details_slider_thumb .slick-track {
    display: flex !important;
    align-items: center;
}

.details_slider_thumb .slick-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.details_slider_thumb_item {
    width: 100%;
    max-width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

/* Main Image - Preserve Aspect Ratio */
.details_slider_thumb_item img {
    max-width: 100% !important;
    max-height: 600px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto;
    cursor: pointer;
}

/* Thumbnails Container */
.details_slider_nav {
    max-width: 100%;
    width: 100%;
}

.details_slider_nav .slick-list {
    margin: 0 -3px;
}

.details_slider_nav .slick-slide {
    padding: 0 3px !important;
    box-sizing: border-box;
}

.details_slider_nav_item {
    width: calc(100% - 20px) !important;
    height: 100px !important;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    margin: 0 auto;
}

.details_slider_nav_item:hover {
    border-color: #666;
}

.details_slider_nav .slick-current .details_slider_nav_item {
    border-color: #000;
    border-width: 3px;
}

/* Thumbnail Images - Fill Container */
.details_slider_nav_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Tablet Responsiveness */
@media (max-width: 992px) {
    .details_slider_thumb:not(.slick-initialized) {
        height: 500px;
    }

    .details_slider_nav:not(.slick-initialized) {
        height: 90px;
    }

    .details_slider_thumb_item img {
        max-height: 500px !important;
    }

    .details_slider_nav .slick-list {
        margin: 0 -3px;
    }

    .details_slider_nav .slick-slide {
        padding: 0 3px !important;
    }

    .details_slider_nav_item {
        height: 90px !important;
    }
}

/* Small Tablet Responsiveness */
@media (max-width: 768px) {
    .details_slider_thumb:not(.slick-initialized) {
        height: 400px;
    }

    .details_slider_nav:not(.slick-initialized) {
        height: 80px;
    }

    .details_slider_thumb_item img {
        max-height: 400px !important;
    }

    .details_slider_nav .slick-list {
        margin: 0 -2px;
    }

    .details_slider_nav .slick-slide {
        padding: 0 2px !important;
    }

    .details_slider_nav_item {
        height: 80px !important;
    }

    .details_slider_thumb {
        margin-bottom: 15px !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .shop_details_slider_area {
        padding: 0 !important;
    }

    .details_slider_thumb {
        margin-bottom: 10px !important;
    }

    .details_slider_thumb:not(.slick-initialized) {
        height: 350px;
    }

    .details_slider_nav:not(.slick-initialized) {
        height: 70px;
    }

    .details_slider_thumb_item img {
        max-height: 350px !important;
    }

    .details_slider_nav .slick-list {
        margin: 0 -2px;
    }

    .details_slider_nav .slick-slide {
        padding: 0 2px !important;
    }

    .details_slider_nav_item {
        height: 70px !important;
        border-width: 1px;
        border-radius: 3px;
    }

    .details_slider_nav .slick-current .details_slider_nav_item {
        border-width: 2px;
    }
}

/* Very Small Screens */
@media (max-width: 400px) {
    .details_slider_thumb:not(.slick-initialized) {
        height: 300px;
    }

    .details_slider_nav:not(.slick-initialized) {
        height: 60px;
    }

    .details_slider_thumb_item img {
        max-height: 300px !important;
    }

    .details_slider_nav .slick-list {
        margin: 0 -1px;
    }

    .details_slider_nav .slick-slide {
        padding: 0 1px !important;
    }

    .details_slider_nav_item {
        height: 60px !important;
    }
}

/* Promo Badge Styles */
.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    animation: promo-pulse 2s infinite;
}

@keyframes promo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* Countdown Timer Styles */
.promo-countdown-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #fff;
}

.promo-countdown-label {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-countdown-timer {
    display: flex;
    align-items: center;
    gap: 5px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 24px;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .promo-countdown-container {
        padding: 12px 15px;
    }

    .countdown-value {
        font-size: 22px;
    }

    .countdown-item {
        min-width: 40px;
    }

    .countdown-separator {
        font-size: 18px;
    }
}

.price-brand-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.price-rating-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price-rating-section .price {
    margin-bottom: 0;
}

.price-rating-section .rating {
    margin: 2px 0 0 0;
}

.lowest-price-info {
    font-size: 12px;
    color: #888;
}

.product-brand-logo {
    max-width: 200px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.product-brand-logo .brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    transition: opacity 0.3s;
}

.product-brand-logo .brand-logo-link:hover {
    opacity: 0.8;
}

.product-brand-logo img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-brand-logo .brand-name-text {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    text-align: right;
}

@media (max-width: 576px) {
    .price-brand-wrapper {
        gap: 10px;
    }
    
    .product-brand-logo {
        max-width: 160px;
        max-height: 100px;
    }
    
    .product-brand-logo img {
        max-height: 100px;
    }
    
    .product-brand-logo .brand-name-text {
        font-size: 17px;
    }
}

.shop_details_text .short_description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Stock Notification Form */
.stock-notification-form {
    margin-top: 15px;
    padding: 16px 20px;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
}
.stock-notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}
.stock-notification-header i {
    color: #f9a825;
    font-size: 16px;
}
.stock-notification-variant-select {
    margin-bottom: 10px;
}
.stock-notification-variant-select label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.stock-notification-variant-select select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.stock-notification-variant-select select:focus {
    border-color: #f9a825;
}
.stock-notification-input-group {
    display: flex;
    gap: 8px;
}
.stock-notification-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.stock-notification-input-group input:focus {
    border-color: #f9a825;
}
.stock-notification-input-group button {
    padding: 10px 20px;
    background-color: #f9a825;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.stock-notification-input-group button:hover {
    background-color: #f57f17;
}
.stock-notification-success {
    margin-top: 10px;
    margin-bottom: 0;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 500;
}
.stock-notification-error {
    margin-top: 10px;
    margin-bottom: 0;
    color: #c62828;
    font-size: 13px;
    font-weight: 500;
}
@media (max-width: 576px) {
    .stock-notification-input-group {
        flex-direction: column;
    }
    .stock-notification-input-group button {
        width: 100%;
    }
}

/* Wishlist Button */
.shop_details_text .wishlist-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid #cccccc;
    background: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.shop_details_text .wishlist-btn i {
    font-size: 20px;
    color: #cccccc;
    transition: all 0.3s ease;
}
.shop_details_text .wishlist-btn:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
}
.shop_details_text .wishlist-btn:hover i {
    color: #fff;
}
.shop_details_text .wishlist-btn.in-wishlist {
    background: #ff4d4d;
    border-color: #ff4d4d;
}
.shop_details_text .wishlist-btn.in-wishlist i {
    color: #fff;
}
.shop_details_text .wishlist-btn.in-wishlist:hover {
    background: #fff;
    border-color: #cccccc;
}
.shop_details_text .wishlist-btn.in-wishlist:hover i {
    color: #cccccc;
}
@media (max-width: 576px) {
    .shop_details_text .wishlist-btn {
        width: 45px;
        height: 45px;
    }
    .shop_details_text .wishlist-btn i {
        font-size: 18px;
    }
}

a.common_btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.price-label-text {
    color: #e67e22 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.review-summary-stars i {
    font-size: 130%;
    color: #ff9800;
}

/* Related Products Slider */
.related-products-nav {
    display: flex;
    gap: 8px;
}
.related-products-prev,
.related-products-next {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.related-products-prev:hover,
.related-products-next:hover {
    background: var(--theme-color, #f50963);
    color: #fff;
    border-color: var(--theme-color, #f50963);
}
.related-products-prev:disabled,
.related-products-next:disabled {
    opacity: 0.4;
    cursor: default;
    background: #fff;
    color: #333;
    border-color: #ddd;
}
.related-products-slider {
    overflow: hidden;
    position: relative;
}
.related-products-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    align-items: stretch;
}
.related-products-slide {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 10px;
    box-sizing: border-box;
}
.related-products-slide .product_item_2.product_item {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
}
.related-products-slide .product_item_2.product_item .product_img {
    flex-shrink: 0;
}
.related-products-slide .product_item_2.product_item .product_text {
    flex: 1;
}
.related-products-slide .product_img .btn_list .wishlist-btn {
    background: none !important;
    background-color: transparent !important;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}
.related-products-slide .product_img .btn_list .wishlist-btn:hover {
    background-color: #ff4d4d !important;
    color: #fff;
    transform: scale(1.1);
}
.related-products-slide .product_img .btn_list .wishlist-btn.in-wishlist {
    background-color: #ff4d4d !important;
    color: #fff;
}
.related-products-slide .product_img .btn_list .wishlist-btn.in-wishlist:hover {
    background-color: #cccccc !important;
}
@media (max-width: 1199px) {
    .related-products-slide {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (max-width: 991px) {
    .related-products-slide {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 767px) {
    .related-products-slide .product_item_2.product_item .product_img {
        height: 180px !important;
    }
    .related-products-slide {
        padding: 0 5px;
    }
    .related-products-slide .product_item_2.product_item .product_text {
        padding: 8px 10px 10px 10px !important;
    }
    .related-products-slide .product_item_2.product_item .product_text .title {
        font-size: 13px;
        min-height: 2.6em;
    }
    .related-products-slide .product_item_2.product_item .product_text .price {
        font-size: 14px;
    }
}
@media (max-width: 575px) {
    .related-products-slide {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }
}

/* Product Reviews Section Styles */
.product-reviews-section {
    background-color: transparent;
    padding: 20px 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.reviews-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.reviews-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-sort-controls .form-label {
    margin-bottom: 0;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.reviews-sort-controls .reviews-sort-select {
    min-width: 200px;
}

/* Nice Select Custom Styling for Reviews */
.reviews-sort-controls .nice-select {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: auto;
    line-height: normal;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.reviews-sort-controls .nice-select:hover {
    border-color: #999;
}

.reviews-sort-controls .nice-select:focus,
.reviews-sort-controls .nice-select.open {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.reviews-sort-controls .nice-select .current {
    color: #333;
    font-weight: 400;
}

.reviews-sort-controls .nice-select .list {
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 5px;
    border: 1px solid #ddd;
}

.reviews-sort-controls .nice-select .option {
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.reviews-sort-controls .nice-select .option:hover,
.reviews-sort-controls .nice-select .option.focus {
    background-color: #f8f9fa;
}

.reviews-sort-controls .nice-select .option.selected {
    background-color: #007bff !important;
    color: #fff !important;
    font-weight: 500;
}

.reviews-sort-controls .nice-select .option.selected.focus {
    background-color: #0056b3 !important;
    color: #fff !important;
    font-weight: 500;
}

.review-item {
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-author-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
}

.review-date {
    font-size: 14px;
    color: #999;
    text-align: right;
    margin-bottom: 0;
}

.review-stars {
    font-size: 20px;
    color: #ff9800;
    margin-bottom: 10px;
}

.review-stars i {
    margin-right: 2px;
}

.review-title {
    font-weight: 500;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    margin-top: 15px;
}

.review-message {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.review-bought-confirmed {
    margin-bottom: 8px;
}
.review-bought-confirmed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
}
.review-bought-confirmed-badge i {
    font-size: 14px;
}

#reviewsLoader .spinner-border {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    .product-reviews-section {
        padding: 20px;
    }

    .reviews-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .reviews-sort-controls {
        width: 100%;
    }

    .reviews-sort-controls .form-select {
        max-width: 100%;
    }

    .review-item {
        padding: 20px;
    }

    .review-header {
        flex-direction: column;
    }

    .reviews-title {
        font-size: 20px;
    }
}

/* Lightbox Styles */
.product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image-container {
    max-width: 70%;
    max-height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    border: none;
    color: #000;
    font-size: 40px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    color: #000;
    font-size: 40px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .lightbox-image-container {
        max-width: 90%;
        max-height: 80%;
    }

    .lightbox-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}
