/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Custom styles for choice templates */
.form-check {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.choice-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.choice-item:hover {
    border-color: #86b7fe;
}

.form-check-input:checked + .form-check-label .choice-item {
    border-color: #0d6efd;
    background-color: #f8f9fa;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.choice-item-unavailable {
    opacity: 0.65;
    pointer-events: none;
}

.choice-item-img {
    max-height: 24px;
    margin-right: 0.5rem;
}

.choice-item-color {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 1px solid #dee2e6;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.menubar-section {
    background-color: #fff;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* Custom Topbar Styles */
#header {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar-new {
    padding: 0;
    color: #f1f1f1;
    min-height: 65px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1051;
    overflow: visible !important;
}
#content-wrapper{
    margin-top: 65px;
}

/* Tablet & Mobile header adjustments */
@media (max-width: 991.98px) {
    /* Ensure mobile header is properly displayed */
    .header-desktop {
        display: none !important;
    }
    
    .topbar-new .d-lg-none {
        display: flex !important;
    }
    .topbar-new { min-height: 56px; background-color: #fff; }
    .topbar-new .topbar-inner { padding-left: 12px; padding-right: 12px; width: 100%; }
    .topbar-new .topbar-logo .shop-logo a { font-size: 18px; padding: 6px 10px; }
    .topbar-new .topbar-actions .menubar-group { padding: 0 4px; }
    .topbar-new .menubar-icon,
    .topbar-new .shopbar-icon { font-size: 18px; color: #333; }
    
    /* Mobile header logo */
    .topbar-logo .shop-logo img { 
        max-height: 40px; 
        width: auto;
        max-width: 150px;
    }
    
    /* Mobile header buttons */
    .shopbar-button {
        padding: 10px;
        color: #333;
        font-size: 20px;
    }
    
    /* Ensure proper spacing */
    .topbar-col {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Center the logo */
    .topbar-col.topbar-logo {
        flex: 2;
        justify-content: center;
    }
    
    /* Hide heavy controls on small screens to keep header compact */
    .topbar-new .language-selector,
    .topbar-new .currency-selector,
    .topbar-new .search-box { display: none !important; }
}

@media (max-width: 575.98px) {
    .header-desktop { display: none !important; }
    .topbar-new .topbar-logo .shop-logo a { font-size: 16px; padding: 5px 8px; }
}

@media (min-width: 992px) {
    /* Hide mobile header on desktop */
    .topbar-new .d-lg-none {
        display: none !important;
    }
    
    /* Ensure desktop header is displayed */
    .header-desktop {
        display: flex !important;
    }
}

    .topbar-new .topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        overflow: visible !important;
    }

    .topbar-new .topbar-col {
        display: flex;
        align-items: center;
    }

    .topbar-new .topbar-logo {
        flex-shrink: 0;
    }

        .topbar-new .topbar-logo .shop-logo a {
            color: #fff;
            font-size: 22px;
            font-weight: bold;
            text-decoration: none;
            border: 1px solid #fff;
            padding: 8px 12px;
            display: inline-block;
        }

        .topbar-new .topbar-logo .shop-logo img {
            display: block;
            max-height: 40px;
            width: auto;
        }

    .topbar-new .topbar-menu {
        flex-grow: 1;
        justify-content: left;
    }

    .topbar-new .megamenu-container .navbar-nav > .nav-item > .nav-link {
        color: #000;
        text-transform: uppercase;
        font-size: 13px;
        font-weight: 600;
        padding: 1.35rem 1rem; /* Increased horizontal padding from 0.5rem to 1rem */
        margin: 0 0.5rem; /* Added margin between items */
        border-radius: 4px;
    }
    
    /* Add more space between nav items */
    .topbar-new .megamenu-container .navbar-nav > .nav-item:not(:last-child) {
        margin-right: 0.5rem;
    }

    .topbar-new .megamenu-container .navbar-nav > .nav-item > .nav-link:hover,
    .topbar-new .megamenu-container .navbar-nav > .nav-item.show > .nav-link,
    .topbar-new .megamenu-container .navbar-nav > .nav-item.active > .nav-link {
        color: #7d7777;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .topbar-new .topbar-actions {
        display: flex;
        align-items: center;
        gap: 2px; /* Space between action icons */
    }

        .topbar-new .topbar-actions .menubar-group {
            padding: 0 5px;
        }

        .topbar-new .topbar-actions .menubar-link,
        .topbar-new .topbar-actions .nav-link,
        .topbar-new .topbar-actions .btn,
        .topbar-new .topbar-actions .menubar-icon,
            .topbar-actions .icm {
                color: #040404 !important;
             }
            .topbar-new .topbar-actions .shopbar-icon {
                color: #000 !important;
                background: none !important;
                border: none !important;
                box-shadow: none !important;
            }

            .topbar-new .topbar-actions .menubar-link:hover,
            .topbar-new .topbar-actions .nav-link:hover,
            .topbar-new .topbar-actions .btn:hover {
                color: #fff !important;
                background-color: rgba(255, 255, 255, 0.1) !important;
            }

        .topbar-new .topbar-actions .menubar-icon,
        .topbar-new .topbar-actions .shopbar-icon {
            font-size: 18px;
        }

        .topbar-new .topbar-actions .shopbar .badge {
            position: absolute;
            top: -5px;
            right: -8px;
            font-size: 10px;
            padding: 3px 5px;
        }

    .topbar-new .dropdown-menu {
        background-color: #505050;
        border-color: #333;
        z-index: 1052;
    }

    .topbar-new .dropdown-item {
        color: #f1f1f1;
    }

        .topbar-new .dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

    /* Hide text labels */
    .topbar-new .menubar-link span,
    .topbar-new .shopbar .nav-link-text,
    .topbar-new .language-selector .short-name,
    .topbar-new .currency-selector .currency-code {
        padding-top:2px;
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #000;
    }

    .topbar-new .language-selector .image-strip-icon,
    .topbar-new .currency-selector .fa-dollar-sign {
        font-size: 18px;
    }

    /* Search box specific styling */
    .topbar-new .search-box .btn-search {
        padding: 8px;
    }

    .topbar-new .search-box .form-control-search {
        display: none; /* Keep it simple for now, just the icon */
    }

.menu-link-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

    .menu-link-inner span[sm-language-attributes-for] {
        flex-grow: 1;
    }

    .menu-link-inner .badge {
        margin-left: 6px;
        flex-shrink: 0;
    }

.topbar-new .menubar-icon,
.topbar-new .shopbar-icon,
.topbar-new .image-strip-icon,
.topbar-new .fa, .topbar-new .fas, .topbar-new .far, .topbar-new .fal, .topbar-new .fab {
    color: #000 !important;
}

.img-logo {
    width: 80px;
    height: 65px;
}

#footer {
    --footer-bg: #3f0c0c !important;
}
.splide__arrow {
    align-items: center;
    background: #ddd; /* nền xám nhạt */
    border: 0;
    border-radius: 50%; /* bo tròn */
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    opacity: 1; /* rõ hơn mặc định */
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    z-index: 10;
    transition: background 0.2s ease;
}

    .splide__arrow:hover {
        background: #bbb;
    }

    .splide__arrow svg {
        width: 18px;
        height: 18px;
        fill: #333; /* màu icon */
    }

.splide__arrow--prev {
    left: 10px;
}

.splide__arrow--next {
    right: 10px;
}
.artlist-grid.artlist-4-cols > .art, .slick-slider .art {
    background-color: #fff;
    box-shadow: none;
    flex: 1 1 calc(25% - 24px);
    max-width: calc(25% - 24px);
    box-sizing: border-box;
}
.artlist-lines .art {
    background-color: #fff;
}
.artlist-grid .art-data-block {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artlist-grid .art-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    height: calc(var(--art-font-size) * var(--art-line-height) * 3) !important;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}
.badge-primary{
    position: absolute;
    top: 4px;
    right: 0;
    border: 1px solid var(--pay-later);
    color: var(--pay-later);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    font-weight: 500;
}
.artlist-grid .art-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.artlist-grid .art-name a:hover {
    color: #0066cc;
}

@media (max-width: 767.98px) {
    .artlist-grid .art-name {
        /* allow up to 3 lines on small screens only */
        overflow: hidden;
    }
}

.artlist-grid .art-price {
    font-weight: 600;
    color: #e02b20;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
.pd-finalprice-old-amount {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.pd-finalprice-old-amount span {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    padding-left: 20px;
    text-decoration: line-through;
}
.artlist-grid .art-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Product item base background and active hover restoration */
.artlist-grid > .art,
.slick-slider .art {
    background-color: #fff;
    border: 1px solid var(--art-border-color, rgba(0,0,0,0.08));
    border-radius: var(--art-border-radius, .375rem);
    box-shadow: none;
    box-sizing: border-box;
}

/* Prevent content from forcing flex items to wrap */
.artlist-grid > .art { min-width: 0; }

.artlist-grid > .art.active,
.slick-slider .art.active {
    background-color: #fff;
    border-color: var(--art-active-border-color, rgba(0,0,0,0.15));
    box-shadow: var(--art-box-shadow, 0 .125rem .25rem rgba(0,0,0,.075));
}

/* Item inner padding (visual separation without affecting widths) */
.artlist { 
    --art-padding: 0.75rem; 
}

/* Gutters between items so spacing is consistent without wrapping */
.artlist-grid {
    --gutter-x: 18px;
    --gutter-y: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 767.98px) {
    .artlist-grid {
        --gutter-x: 12px;
        --gutter-y: 12px;
    }
}

/* Use theme column widths; spacing controlled via --gutter-x/--gutter-y */

/* keep theme column widths to avoid wrapping */

/* News Grid Layout */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 -12px;
}

.news-grid .news-item {
    flex: 1 1 calc(25% - 24px);
    min-width: 0;
    margin: 0 12px 24px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-grid .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-grid .art-picture-block {
    position: relative;
    padding: 1rem;
    background: #f8f9fa;
    text-align: center;
}

.news-grid .art-picture img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.news-grid .news-item:hover .art-picture img {
    transform: scale(1.05);
}

.news-grid .art-data-block {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-grid .art-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.news-grid .art-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-grid .art-name a:hover {
    color: #0066cc;
}

.news-grid .art-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-grid .art-actions {
    margin-top: auto;
    padding-top: 1rem;
}

#scroll-top,
#message-btn {
    position: fixed;
    right: 2rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    bottom: 2rem;
    transition: box-shadow 0.2s;
}

#scroll-top {
    bottom: 2rem;
}

#message-btn {
    bottom: 7rem; /* Adjust to stack above the Up button, or use 2rem to overlap */
}

    #scroll-top:hover,
    #message-btn:hover {
        box-shadow: 0 0 0 0.2rem #007bff33;
        color: #007bff;
    }

/* Fallback for old grid system */
.news-grid .news-item {
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .news-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .news-grid .news-item {
        flex: 1 1 calc(33.333% - 24px);
    }
}

@media (max-width: 991.98px) {
    .news-grid .news-item {
        flex: 1 1 calc(50% - 24px);
    }
}

@media (max-width: 767.98px) {
    .news-grid {
        gap: 16px;
        margin: 0 -8px;
    }
    
    .news-grid .news-item {
        flex: 1 1 calc(50% - 16px);
        margin: 0 8px 16px;
    }
}

@media (max-width: 575.98px) {
    .news-grid .news-item {
        flex: 1 1 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .news-grid {
        justify-content: center;
    }

    /* Mobile: keep two items per row without wrapping (accounts for gutter) */
    .artlist-grid > .art {
        flex: 0 0 calc((100% - var(--gutter-x)) / 1) !important;
        max-width: calc((100% - var(--gutter-x)) / 1) !important;
        min-width: 0;
        margin-inline: 0 !important;
    }
}

/* Recently Viewed Products Grid */
.recently-viewed-product-grid{
    background-color: #fff;
}
.recently-viewed-product-grid .artlist-grid {
    --gutter-x: 18px;
    --gutter-y: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recently-viewed-product-grid .artlist-grid > .art {
    flex: 0 0 calc(20% - var(--gutter-x));
    margin: 0 0 var(--gutter-y) 0;
    padding: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Ensure images fill their container */
.recently-viewed-product-grid .art-picture {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.recently-viewed-product-grid .art-picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1399.98px) {
    .recently-viewed-product-grid .artlist-grid > .art {
        flex: 0 0 calc(25% - var(--gutter-x));
    }
}

@media (max-width: 991.98px) {
    .recently-viewed-product-grid .artlist-grid > .art {
        flex: 0 0 calc(33.333% - var(--gutter-x));
    }
}

@media (max-width: 767.98px) {
    .recently-viewed-product-grid .artlist-grid > .art {
        flex: 0 0 calc(50% - var(--gutter-x));
    }
}

@media (max-width: 575.98px) {
    .recently-viewed-product-grid .artlist-grid > .art {
        flex: 0 0 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Fix for carousel layout */
.recently-viewed-product-grid .artlist-carousel {
    padding: 0;
}

.recently-viewed-product-grid .artlist-carousel .art {
    padding: 0 8px;
}

/* Ensure consistent height for product items */
.recently-viewed-product-grid .art-data-block {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 100px); /* Adjust based on your image height */
}

/* Product detail: circular color swatches */
.pd-variants .choice-boxes .choice-box-element {
    min-width: 28px !important;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15);
    display: inline-block;
}
.pd-variants .choice-box.selected .choice-box-element {
    border-color: 1px solid #0066cc;
    outline-offset: 2px;
}
.pd-variants .choice-box.unavailable .choice-box-element {
    position: relative;
}
.block.block-boxed{
    border: 1px solid #e0e0e0;
    border-radius: .375rem;
}
@media (min-width: 1200px) {
    .gal-nav-cell {
        width: 100%;
    }
}
/* Tabs look-and-feel for product page */

.pd-tabs--product .nav-tabs .nav-link {
    padding: .5rem 1rem;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-right: .5rem;
    border-radius: .375rem;
}
.pd-tabs--product .nav-tabs .nav-link.active, .nav-tabs-line .nav-link.active:hover {
    color: #000;
    background: #fff;
    border-color: #007bff;
}
.nav-tabs-line .nav-link.active:before {
    background: none !important;
}
/* Ensure tab content sits on white background */
.pd-tabs--product .tab-content {
    background: #fff;
    /* border: 1px solid #e0e0e0; */
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    padding: 1rem;
}

/* Move product thumbnails below main image and make them horizontal */
#pd-gallery-container-inner .gal-box { 
    display: flex; 
    flex-direction: column; 
    max-width: 588px; /* Limit the maximum width of the gallery */
    margin: 0 auto; /* Center the gallery */
}
#pd-gallery-container-inner .gal-cell { 
    order: 1;
    width: 100%;
}
#pd-gallery-container-inner .gal {
    width: 100%;
}
#pd-gallery-container-inner .gal-item {
    width: 100%;
    background: #F5F5F7;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgb(0 0 0 / 3%);
}
.slick-initialized .slick-slide {
    display: block;
}
#pd-gallery-container-inner .gal-item-viewport {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background:#fff;
}
#pd-gallery-container-inner .gal-item-content {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
}
#pd-gallery-container-inner .gal-nav-cell { order: 2; margin-top: .75rem; }
#pd-gallery-container-inner .gal-nav .gal-list .gal-track { 
    display: flex; 
    flex-direction: row; 
    gap: 8px; 
}
#pd-gallery-container-inner .gal-nav .gal-item { 
    width: 88px; 
    height: 90px; 
}
#pd-gallery-container-inner .gal-nav .gal-item .gal-item-viewport { 
    display: block; 
    width: 100%; 
    height: 100%; 
}
#pd-gallery-container-inner .gal-nav .gal-item .gal-item-content {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep aspect ratio, no crop */
    border-radius: .375rem;
    border: 1px solid #eee;
    background-color: #fff;
}
#pd-gallery-container-inner .gal-nav .gal-item .gal-item-viewport { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.pd-variants .choice-box.unavailable .choice-box-element:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 120%;
    background: rgba(0,0,0,.4);
    transform: translate(-50%, -50%) rotate(45deg);
}

.recently-viewed-product-grid .art-name {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
    flex-grow: 1;
}

.recently-viewed-product-grid .art-price-block {
    margin-top: auto;
}

/* Fix for Slick carousel dots */
.recently-viewed-product-grid .slick-dots {
    position: static;
    margin-top: 1rem;
}

/* Product detail page overall background */
.page.product-details-page,
.page.product-details-page .page-body,
.page.product-details-page .pd-section,
.page.product-details-page .pd-info-col,
.page.product-details-page .pd-data-col {
    background-color: #fff !important;
}

/* Slick Carousel styling for product cards */
.related-products-carousel,
.recently-viewed-carousel {
    margin: 0 -15px;
    background: #fff;
}

.related-products-carousel .carousel-item,
.recently-viewed-carousel .carousel-item {
    padding: 0 15px;
}

.related-products-carousel .art,
.recently-viewed-carousel .art {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.related-products-carousel .art:hover,
.recently-viewed-carousel .art:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Product image container - reduced height */
.related-products-carousel .art-picture-block,
.recently-viewed-carousel .art-picture-block {
    position: relative;
    padding-top: 75%; /* Reduced from 100% to 75% for shorter height */
    background: #f8f9fa;
    overflow: hidden;
}

.related-products-carousel .art-picture,
.recently-viewed-carousel .art-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.related-products-carousel .art-picture img,
.recently-viewed-carousel .art-picture img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-products-carousel .art:hover .art-picture img,
.recently-viewed-carousel .art:hover .art-picture img {
    transform: scale(1.05);
}

/* Badge styling */
.related-products-carousel .art-badges,
.recently-viewed-carousel .art-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.related-products-carousel .art-badge,
.recently-viewed-carousel .art-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.related-products-carousel .art-badge.badge-danger,
.recently-viewed-carousel .art-badge.badge-danger {
    background: #e02b20;
}

.related-products-carousel .art-badge.badge-primary,
.recently-viewed-carousel .art-badge.badge-primary {
    background: #007bff;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
}

/* Product info section */
.related-products-carousel .art-data-block,
.recently-viewed-carousel .art-data-block {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

/* Product name */
.related-products-carousel .art-name,
.recently-viewed-carousel .art-name {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-products-carousel .art-name a,
.recently-viewed-carousel .art-name a {
    color: inherit;
    text-decoration: none;
}

.related-products-carousel .art-name a:hover,
.recently-viewed-carousel .art-name a:hover {
    color: #007bff;
}

/* Pricing */
.related-products-carousel .art-price,
.recently-viewed-carousel .art-price {
    margin: 0.5rem 0 0 0;
    font-weight: 700;
    font-size: 16px;
    color: #007bff;
}

.related-products-carousel .art-price .art-price-old,
.recently-viewed-carousel .art-price .art-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Slick Carousel arrows and dots */
.related-products-carousel .slick-arrow,
.recently-viewed-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-products-carousel .slick-arrow:hover,
.recently-viewed-carousel .slick-arrow:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.related-products-carousel .slick-prev,
.recently-viewed-carousel .slick-prev {
    left: -20px;
}

.related-products-carousel .slick-next,
.recently-viewed-carousel .slick-next {
    right: -20px;
}

.related-products-carousel .slick-dots,
.recently-viewed-carousel .slick-dots {
    bottom: -30px;
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.related-products-carousel .slick-dots li,
.recently-viewed-carousel .slick-dots li {
    margin: 0 4px;
}

.related-products-carousel .slick-dots button,
.recently-viewed-carousel .slick-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    font-size: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.related-products-carousel .slick-dots .slick-active button,
.recently-viewed-carousel .slick-dots .slick-active button {
    background: #007bff;
}
.badge-info {
    background-color: #17a2b8;
    color: white;
}
/* Responsive adjustments for carousel */
@media (max-width: 1199.98px) {
    .related-products-carousel .slick-arrow,
    .recently-viewed-carousel .slick-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .related-products-carousel .slick-prev,
    .recently-viewed-carousel .slick-prev {
        left: -15px;
    }
    
    .related-products-carousel .slick-next,
    .recently-viewed-carousel .slick-next {
        right: -15px;
    }
}

@media (max-width: 767.98px) {
    .related-products-carousel .slick-arrow,
    .recently-viewed-carousel .slick-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .related-products-carousel .slick-prev,
    .recently-viewed-carousel .slick-prev {
        left: -10px;
    }
    
    .related-products-carousel .slick-next,
    .recently-viewed-carousel .slick-next {
        right: -10px;
    }
    .slick-initialized .slick-slide {
        padding: 10px;
    }
}