/* Category Breadcrumb Styles */
.category-breadcrumb-wrapper {
    display: block;
    margin-bottom: 20px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.category-breadcrumb-wrapper::-webkit-scrollbar {
    display: none;
}
.category-breadcrumb-wrapper {
    scrollbar-width: none;
}
.category-breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    font-size: 16px;
    white-space: nowrap;
}
.category-breadcrumb-list li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.category-breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #999;
}
.category-breadcrumb-list li a,
.category-breadcrumb-list li a span {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: inherit;
    font-weight: 400;
}
.category-breadcrumb-list li a:hover,
.category-breadcrumb-list li a:hover span {
    color: #333;
}
.category-breadcrumb-list li a.active {
    color: #666;
    font-weight: 400;
    pointer-events: none;
}
.category-breadcrumb-list li a i {
    margin-right: 5px;
}
@media (max-width: 991.99px) {
    .category-breadcrumb-wrapper {
        margin-top: 0;
    }
    .category-breadcrumb-list {
        font-size: 14px;
    }
}
@media (max-width: 575.99px) {
    .category-breadcrumb-wrapper {
        margin-top: 0;
    }
    .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;
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 600px;
    background-color: transparent;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.details_slider_thumb.gallery-ready {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.details_slider_thumb: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: transparent;
}

/* 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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.details_slider_thumb_item img.loaded {
    opacity: 1;
}

/* Thumbnails Container: simple flex row of small square thumbnails (no Slick) */
.details_slider_nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    max-width: 100%;
    width: 100%;
}

.details_slider_nav_item {
    width: 84px !important;
    height: 84px !important;
    flex: 0 0 auto;
    border: 2px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    margin: 0;
}

.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 {
        max-height: 500px;
    }

    .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 {
        width: 78px !important;
        height: 78px !important;
    }
}

/* Small Tablet Responsiveness */
@media (max-width: 768px) {
    .details_slider_thumb {
        max-height: 400px;
        margin-bottom: 15px !important;
    }

    .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 {
        width: 72px !important;
        height: 72px !important;
    }
}

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

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

    .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 {
        width: 64px !important;
        height: 64px !important;
        border-width: 1px;
        border-radius: 0;
    }

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

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

    .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: same look as the home product cards (.btn-cart-wishlist) */
.shop_details_text .wishlist-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border: none;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.shop_details_text .wishlist-btn i {
    font-size: 20px;
    color: #333;
    transition: color .15s ease;
}
.shop_details_text .wishlist-btn:hover {
    background: #e6e8eb;
}
.shop_details_text .wishlist-btn:hover i,
.shop_details_text .wishlist-btn.in-wishlist i {
    color: #db0e1c;
}
.shop_details_text .wishlist-btn.in-wishlist:hover i {
    color: #333;
}
@media (max-width: 576px) {
    .shop_details_text .wishlist-btn {
        width: 45px;
        height: 45px;
        min-width: 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;
}

/* Module Products Grid - Related Products */
.grid-row-bottom-3 {
    margin: 40px 0 20px;
    padding: 0 15px;
}

.module-products-grid .title.module-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    color: rgba(51, 51, 51, 1);
    margin: 0 0 30px;
    padding: 0 0 16px;
    position: relative;
}

.module-products-grid .title.module-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: rgba(221, 221, 221, 1);
}

@media (max-width: 575.99px) {
    .module-products-grid .title.module-title {
        font-size: 19px;
        margin-bottom: 22px;
    }
}

.module-products-grid .product-thumb {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(238, 238, 238, 1);
    border-radius: 4px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.module-products-grid .product-thumb .image {
    height: 269px;
    overflow: hidden;
    position: relative;
}

.module-products-grid .product-thumb .image a.product-img {
    display: block;
    height: 100%;
}

.module-products-grid .product-thumb .image a.product-img > div {
    height: 100%;
}

.module-products-grid .product-thumb .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.module-products-grid .product-thumb .product-labels {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.module-products-grid .product-thumb .caption {
    padding-bottom: 10px;
    background-image: linear-gradient(to top, rgba(0,0,0,.02) 0%, transparent 90%);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.module-products-grid .product-thumb .stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: rgba(250, 250, 250, 1);
    padding: 5px 8px;
    flex-wrap: wrap;
}

.module-products-grid .product-thumb .stats .stat-1 {
    font-size: 13px;
    color: rgba(44, 54, 64, 1);
    padding-bottom: 2px;
}

.module-products-grid .product-thumb .stats .stat-1 a {
    font-size: 13px;
    color: rgba(44, 54, 64, 1);
    text-decoration: underline;
}

.module-products-grid .product-thumb .stats .stat-1 a:hover {
    color: rgba(51, 51, 51, 1);
}

.module-products-grid .product-thumb .stats .stat-1 .stats-label {
    display: none;
}

.module-products-grid .product-thumb .name {
    display: flex;
    justify-content: flex-start;
    padding: 13px 5px 8px 5px;
}

.module-products-grid .product-thumb .name a {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: rgba(78, 78, 78, 1);
    font-style: normal;
    text-transform: capitalize;
    text-align: left;
}

.module-products-grid .product-thumb .name a:hover {
    text-decoration: underline;
}

.module-products-grid .product-thumb .description {
    display: none;
}

.module-products-grid .product-thumb .price {
    display: block;
    padding: 5px 8px 2px;
}

.module-products-grid .product-thumb .price .fromPrice {
    font-size: 12px;
    color: rgba(105, 105, 115, 1);
    display: block;
    margin-bottom: 2px;
}

.module-products-grid .product-thumb .buttons-wrapper {
    margin-top: auto;
    display: block;
}

.module-products-grid .product-thumb .button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.module-products-grid .product-thumb .cart-group {
    display: inline-flex;
    align-items: center;
    flex: initial;
    justify-content: flex-end;
}

.module-products-grid .product-thumb .cart-group .stepper {
    display: none;
}

.module-products-grid .product-thumb .wish-group {
    display: inline-flex;
    pointer-events: none;
}

.module-products-grid .product-thumb .btn-text {
    display: none;
}

.module-products-grid .product-thumb .rating {
    justify-content: flex-start;
    display: none !important;
}

.module-products-grid .product-thumb .rating.no-rating {
    display: flex !important;
}

.module-products-grid .product-thumb .rating-stars {
    padding: 30px 0 0 12px;
}

.module-products-grid .product-thumb .rating.no-rating span {
    opacity: 0.3;
}

.module-products-grid .product-thumb .extra-group {
    display: flex;
    align-items: center;
    position: relative;
}

.module-products-grid .product-thumb .extra-group > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    transition: all 0.2s ease-out;
}

.rp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease;
}
.rp-dot.active {
    background: var(--theme-color, #f50963);
    transform: scale(1.3);
}
@media (max-width: 575px) {
    .rp-caption { padding: 9px 9px 11px; gap: 4px; }
    .rp-name a  { font-size: 12px; min-height: 2.7em; }
    .rp-price   { font-size: 14px; }
    .btn-rp-view { font-size: 11px; padding: 7px 8px; }
}

/* 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;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

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

.lightbox-image-container {
    max-width: 80vw;
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

#lightboxVideo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 1;
    display: none;
}

.lightbox-image-container.zoomed {
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: auto;
    cursor: grab;
}

.lightbox-image-container.zoomed img {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    cursor: grab;
}

.lightbox-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    border: none;
    color: #000;
    font-size: 24px;
    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;
    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: 24px;
    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;
    line-height: 1;
    padding: 0;
    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;
}

.product-slide-item {
    position: relative;
}

.product-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 10;
    padding-left: 4px;
}

.product-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

.nav-video-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    pointer-events: none;
}

.inline-product-video {
    width: 100%;
    max-height: 600px;
    display: block;
    background: #000;
    border-radius: 16px;
    object-fit: contain;
}

.inline-product-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border: 0;
    z-index: 5;
}

#lightboxYouTube {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    display: none;
    border: 0;
}

@media (max-width: 1200px) {
    .inline-product-video { max-height: 500px; }
}

@media (max-width: 992px) {
    .inline-product-video { max-height: 400px; }
}

@media (max-width: 768px) {
    .inline-product-video { max-height: 350px; }
}

@media (max-width: 576px) {
    .inline-product-video { max-height: 300px; }
}

@media (max-width: 768px) {
    .lightbox-image-container {
        max-width: 96vw;
        max-height: 88vh;
        max-height: 88dvh;
        width: 96vw;
    }

    .lightbox-image-container img {
        width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
    }


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

    .lightbox-nav {
        display: none;
    }
}

/* Product Description / Specs Tabs (Journal-style blocks tabs, BS3 driven) */
.shop_details_des_area .nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
.shop_details_des_area .nav-pills .nav-item {
    margin-bottom: 0;
}
.shop_details_des_area .nav-pills .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    background: #eceef1;
    color: #6c7480;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 14px 30px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.shop_details_des_area .nav-pills .nav-item .nav-link:hover {
    color: #333;
    background: #e3e6ea;
}
.shop_details_des_area .nav-pills .nav-item.active .nav-link,
.shop_details_des_area .nav-pills .nav-link.active {
    background: #f4f5f7;
    color: #1f2937;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.04);
}

.shop_details_des_area .tab-content {
    position: relative;
    background: #f4f5f7;
    border-radius: 0;
    padding: 34px 38px;
    margin-top: 0 !important;
}

.shop_details_des_area .shop_details_description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.75;
}
.shop_details_des_area .shop_details_description h1,
.shop_details_des_area .shop_details_description h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 18px;
}
.shop_details_des_area .shop_details_description h3,
.shop_details_des_area .shop_details_description h4 {
    font-size: 19px;
    font-weight: 700;
    color: #1f2937;
    margin: 26px 0 12px;
}
.shop_details_des_area .shop_details_description p {
    margin: 0 0 14px;
}
.shop_details_des_area .shop_details_description ul,
.shop_details_des_area .shop_details_description ol {
    margin: 0 0 16px;
    padding-left: 20px;
}
.shop_details_des_area .shop_details_description li {
    margin-bottom: 6px;
}
.shop_details_des_area .shop_details_description a {
    color: var(--themeColoeOne, #0A69D8);
}
.shop_details_additional_info .table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.shop_details_additional_info .table th,
.shop_details_additional_info .table td {
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}
.shop_details_additional_info .table th {
    width: 40%;
    font-weight: 600;
    color: #333;
}
.shop_details_additional_info .table td {
    color: #555;
}
#productAttributesTable,
#productAttributesTable > tbody > tr,
#productAttributesTable > tbody > tr > th,
#productAttributesTable > tbody > tr > td {
    background: transparent !important;
}
@media (max-width: 575.99px) {
    .shop_details_des_area .nav-pills .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ===== Shop details (product page) layout ===== */
#product-product {
    padding-left: 0;
    padding-right: 0;
}

#product-product > .row,
#product-product #content > .row {
    padding-left: 0;
    padding-right: 0;
}

#product-product #content {
    padding: 10px 0 0;
}

.shop_details_text {
    padding: 6px 0 0;
}

.shop_details_text .details_title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.3;
    color: #333;
    margin: 0 0 12px;
}

.shop_details_text .price-rating-section .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #39c;
    margin-bottom: 0;
}

.shop_details_text .price-rating-section .price del {
    font-size: 18px;
    font-weight: 500;
    color: #aaa;
}

.shop_details_text .rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.shop_details_text .rating i {
    color: #f0b408;
    font-size: 16px;
    letter-spacing: 1px;
}

.shop_details_text .rating span {
    color: #999;
    font-size: 13px;
    margin-left: 6px;
}

.shop_details_text .details_qty_input {
    margin-top: 4px;
}

/* The Journal theme is Bootstrap 3, which lacks the BS4/5 flex utilities
   (d-flex, gap-2, w-100, ...) used in this layout, so re-implement them here
   scoped to the product details column. */
.shop_details_text .d-flex.flex-wrap.align-items-center { margin-top: 20px; }
.shop_details_text .short_description { margin-top: 20px; }
.shop_details_text .d-flex { display: flex; }
.shop_details_text .align-items-center { align-items: center; }
.shop_details_text .flex-wrap { flex-wrap: wrap; }
.shop_details_text .gap-2 { gap: 12px; }
.shop_details_text .w-100 { flex-basis: 100%; width: 100%; height: 0; }

/* Add-to-cart + wishlist on one row: the cart button stretches like the new
   template's block primary button, the wishlist stays a square beside it. */
.shop_details_text .d-flex.align-items-center.gap-2 {
    flex: 1 1 240px;
}

.shop_details_text .details_btn_area {
    display: flex;
    flex: 1;
}

.shop_details_text .details_btn_area .common_btn {
    width: 100%;
    justify-content: center;
    margin: 0;
}

.shop_details_text .details_btn_area .common_btn i {
    display: none;
}

.shop_details_text .wishlist-btn {
    flex: 0 0 auto;
    margin-left: 0;
}

@media (max-width: 991.99px) {
    .shop_details_text {
        margin-top: 24px;
    }
}

@media (max-width: 575.99px) {
    .shop_details_text .details_title {
        font-size: 22px;
    }
    .shop_details_text .price-rating-section .price {
        font-size: 24px;
    }
}

/* ===== Review summary card ===== */
.review-summary-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}

.review-summary-section.no-reviews {
    text-align: center;
}

.review-summary-header {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.review-summary-average {
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin: 0;
}

.review-summary-average .rating-divider {
    font-size: 22px;
    font-weight: 500;
    color: #aaa;
}

.review-summary-stars {
    margin: 8px 0 6px;
}

.review-summary-count {
    font-size: 14px;
    color: #777;
}

.review-summary-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.review-summary-bars .rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-summary-bars .star-label {
    flex: 0 0 auto;
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
    color: #f0b408;
    font-size: 12px;
    line-height: 1;
}

.review-summary-bars .progress {
    flex: 1 1 auto;
    height: 8px;
    margin: 0;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.review-summary-bars .progress-bar {
    height: 100%;
    background: #ff9800;
}

.review-summary-bars .rating-count {
    flex: 0 0 auto;
    min-width: 22px;
    text-align: right;
    font-size: 13px;
    color: #777;
}

.review-summary-actions {
    text-align: center;
}

.review-summary-actions .common_btn {
    width: 100%;
    justify-content: center;
}

/* Related products carousel arrows, pagination, grid columns and card
   styling are provided by the theme's .module-products-257 rules. */

.row.mt_90.wow.fadeInUp {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Full-width grey band behind the tab content + review column. A real element
   (not a pseudo) so it can't be hidden behind an opaque ancestor. It spans the
   whole screen width via the theme's full-bleed pattern (left:50% + 100vw +
   -50vw margin, centred on the row which is centred in the viewport). It starts
   just below the tab nav (offset set by JS via --tabs-gray-top) and runs to the
   bottom of the row. z-index:0 keeps it above ancestor backgrounds; the columns
   are lifted to z-index:1 so the content sits on top. */
.row.mt_90.wow.fadeInUp .tabs-content-bg {
    position: absolute;
    top: var(--tabs-gray-top, 62px);
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: #f4f5f7;
    z-index: 0;
    pointer-events: none;
}
.row.mt_90.wow.fadeInUp > .col-lg-8,
.row.mt_90.wow.fadeInUp > .col-lg-4 {
    position: relative;
    z-index: 1;
}
