/**
 * Shop detail page specific styles
 * Created: 2025-12-31
 */

/* ========== CSS Variables ========== */
:root {
    --brand-primary: #68699a;
    --brand-primary-hover: #1d6b77;
    --brand-secondary: #023248;
    --text-dark: #0A0A0A;
    --text-gray: #666;
    --border-color: #e5e7eb;
    --container-8xl: 85.5rem;
    --spacing: .25rem;
    --primary-color: #68699a;
    --defalut-color: #0A0A0A;
    --red-color: #DC1E29;
    --disabled-color: #A4A4A4;
    --white-color: #FFFFFF;
    --gray-color: #767676;
    --color-primary-hover: #1d6b77;
}

/* ========== Z-index management ========== */
.product-container,
.product-actions,
.product-variants,
.js-product-actions,
.product-add-to-cart {
    position: relative;
    z-index: 1;
}

header, .header, #header, .navbar, .nav-wrapper {
    position: relative;
    z-index: 1000 !important;
}

/* ========== Tooltip styles ========== */
.uk-tooltip {
    max-width: 400px !important;
    white-space: nowrap !important;
}

.tooltip-inner {
    max-width: 400px !important;
    white-space: nowrap !important;
}

.product-variants .tooltip {
    max-width: none !important;
}

.product-variants .input-container[data-title] {
    position: relative;
    z-index: 10;
}

.product-variants .input-container[data-title]:hover {
    z-index: 100000 !important;
}

.product-variants .input-container[data-title]:hover::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100001 !important;
    max-width: 400px !important;
    white-space: nowrap !important;
    left: 0 !important;
    transform: none !important;
    margin-bottom: 8px;
}

.product-variants .input-container[data-title]:hover::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.95) transparent transparent transparent;
    margin-bottom: -4px;
    z-index: 100001;
}

/*
 * Avoid duplicate tooltips on SKU swatches.
 *
 * These swatch <li> elements are also initialized by Bootstrap/UIkit tooltip logic
 * (via data-toggle="tooltip"). When that tooltip auto-flips to the bottom due to
 * limited space above, our CSS pseudo-tooltip (shown above) can still partially
 * render and leave an extra black block.
 */
.product-variants .input-container[data-toggle="tooltip"][data-title]:hover::before,
.product-variants .input-container[data-toggle="tooltip"][data-title]:hover::after {
    display: none !important;
}

/* ========== Group title styles ========== */
.product-variants .color-group-title,
.product-variants [class*="group-title"],
.product-variants .sku-group-title,
.product-variants .color-category-label {
    position: relative;
    z-index: 1 !important;
}

/* ========== Hide slide bar cart ========== */
.slideBar.slideBar--cart {
    display: none !important;
}

/* ========== Product prices ========== */
.product-prices .current-price-value {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.product-prices .regular-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.product-prices .badge-discount {
    background: #68699A !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.product-prices a[uk-toggle] {
    color: #68699a !important;
    font-weight: 600;
}

/* ========== Product detail label ========== */
.product-detail-label {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ========== Add to cart button ========== */
.btn-primary.add-to-cart {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary.add-to-cart:hover {
    background: #333 !important;
    border-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 142, 158, 0.3);
}

.product-quantity .add-to-cart:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* ========== Quantity control ========== */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-control .qty-btn {
    width: 40px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.qty-control .qty-btn:hover {
    background: #e5e5e5;
}

.qty-control input.input-group {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
}

.qty .bootstrap-touchspin {
    display: flex;
    align-items: center;
}

.qty .bootstrap-touchspin .input-group-btn-vertical {
    display: flex;
    flex-direction: column;
}

.qty .bootstrap-touchspin .input-group-btn-vertical .btn {
    padding: 5px 10px;
}

/* ========== Color category tabs ========== */
.color-category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.color-category-tabs .uk-tab {
    margin: 0;
    padding: 0;
    border: none;
}

.color-category-tabs .uk-tab > li > a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.color-category-tabs .uk-tab > li.uk-active > a,
.color-category-tabs .uk-tab > li > a:hover {
    color: var(--brand-primary);
    background: rgba(42, 142, 158, 0.1);
    border-color: var(--brand-primary);
}

/* ========== Product variants ========== */
.product-variants .input-container {
    position: relative;
    margin: 3px;
}

.product-variants .color,
.product-variants .input-color {
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    border: 2px solid transparent;
    transition: all 0.2s;
    z-index: 5;
}

.product-variants .input-radio:checked + label .color,
.product-variants .input-radio:checked + label .input-color {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 2px rgba(42, 142, 158, 0.3);
}

/* ========== Discount tag ========== */
.discount-tag {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
    background: #DC1E29;
    color: #fff !important;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ========== Detail policy ========== */
.lv-detail-policy {
    display: flex;
    max-width: 545px;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 10px;
}

/* 如果 lv-detail-policy 为空或没有可见的 .lv-detail-po-item，则隐藏它 */
.lv-detail-policy:empty,
.lv-detail-policy:not(:has(.lv-detail-po-item)) {
    display: none;
}

.lv-detail-po-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s;
}

.lv-detail-po-item:hover {
    background: #e8f4f6;
    transform: translateY(-2px);
}

.lv-detail-po-item img {
    width: 40px;
    height: 40px;
}

.lv-detail-po-item h6 {
    font-size: 12px;
    text-align: center;
    margin: 8px 0 0;
    font-weight: 600;
    color: var(--brand-secondary);
    line-height: 1.3;
}


/* ========== Policy dialog ========== */
.lv-detail-policy-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    /* Keep dialog clear of fixed header/topbar/nav (auto adapts by CSS vars) */
    --lv-detail-dialog-top: calc(var(--header-h, var(--header-height, 104px)) + 24px);
    padding: var(--lv-detail-dialog-top) 16px 24px;
    box-sizing: border-box;
    overflow: auto;
    /* Ensure the overlay sits above sticky headers/nav/search */
    z-index: 100000 !important;
}

.lv-detail-dialog-main {
    display: flex;
    width: 630px;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - var(--lv-detail-dialog-top, 128px) - 24px);
    overflow: auto;
    padding: 56px 48px;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 20px;
    position: relative;
    align-items: center;
    flex-direction: column;
    z-index: 1;
}

@media (max-width: 767px) {
    .lv-detail-dialog-main {
        width: 100%;
        padding: 36px 20px;
        border-radius: 16px;
    }
    .lv-detail-dialog-close {
        top: 14px;
        right: 14px;
    }
}

@media (max-height: 720px) {
    .lv-detail-policy-dialog {
        align-items: flex-start;
    }
}

.lv-detail-dialog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.lv-detail-dialog-title {
    margin: 20px 0 15px;
    font-weight: bold;
    font-size: 24px;
    color: #68699a;
}

.lv-detail-dialog-content {
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    line-height: 1.35;
    text-align: left;
    width: 100%;
}

.lv-detail-dialog-sub-title {
    margin: 15px 0 8px;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
}

.lv-detail-dialog-main a {
    color: #68699a !important;
}

.lv-detail-dialog-main a:hover {
    color: #024d58;
}

.lv-chat-support {
    cursor: pointer;
    text-decoration: underline;
}

.lv-no-transform {
    transform: none !important;
}

.lv-yes-transform {
    transform: translate3d(0, 0, 0);
}

.one-one-detail {
    width: 100%;
    margin-bottom: 20px;
}

/* ========== Product accordion ========== */
#productdaas-accordion .card {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0;
}

#productdaas-accordion .title a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-secondary);
    text-decoration: none;
}

#productdaas-accordion .title a:hover {
    color: var(--brand-primary);
}

#productdaas-accordion .content {
    padding: 0 0 20px;
}

#productdaas-accordion .content img,
.product-description img,
.product-details img,
.tab-content img,
.card-body img {
    max-width: 100% !important;
    height: auto !important;
}

/* Collapse display fallback */
#productdaas-accordion .content.collapse {
    display: none !important;
}

#productdaas-accordion .content.collapse.in {
    display: block !important;
}

#productdaas-accordion .content.collapse.show {
    display: block !important;
}

#productdaas-accordion .content.collapsing {
    display: block !important;
    overflow: hidden;
}

#productdaas-accordion .title a .angle-up {
    display: none;
}

#productdaas-accordion .title a[aria-expanded="true"] .angle-up {
    display: inline-block;
}

#productdaas-accordion .title a[aria-expanded="true"] .angle-down {
    display: none;
}

/* ========== Reviews list ========== */
.reviews-list .review-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    background: #fff;
}

.reviews-list .review-rating {
    color: #ffc107;
}

.reviews-list .review-author {
    font-weight: 600;
    color: var(--brand-secondary);
}

.reviews-list .review-date {
    font-size: 13px;
    color: #999;
}

.lv-down-review {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
}

.lv-down-reviewa {
    line-height: 1.5;
}

.lv-down-review-expanded {
    -webkit-line-clamp: unset;
    max-height: unset;
    overflow: visible;
    text-overflow: unset;
}

.rotate {
    transform: rotate(180deg);
}

.hidden-content1 {
    display: none;
    margin: 5px auto 0;
    cursor: pointer;
    font-size: 25px;
    text-align: center;
}

.btn-write-review {
    background: var(--brand-primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-write-review:hover {
    background: var(--brand-primary-hover);
}

/* ========== Support payment ========== */
.support-payment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.support-payment img {
    width: 50px;
    height: auto;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.support-payment img:hover {
    opacity: 1;
}

/* ========== Page title ========== */
.h1.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

/* ========== Price countdown ========== */
.price-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #68699a !important;
    padding: 8px 15px;
    border-radius: 6px;
    margin-top: 10px;
    color: #fff;
}

.price-countdown-title {
    font-weight: 600;
    color: #fff;
}

.price-countdown .count-down-timer {
    color: #fff;
}

/* ========== Swiper buttons ========== */
.swiper-button-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-button-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--brand-primary);
    color: #fff;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* ========== Product flags ========== */
.product-flags .product-flag.discount {
    background: #DC1E29;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
}

/* ========== Breadcrumb ========== */
/*
 * Increase top spacing so product navigation buttons are not clipped by the header area.
 */
#wrapper .breadcrumb {
    padding-top: 25px;
}

.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    font-size: 14px;
    color: #666;
}

.breadcrumb li::after {
    content: '/';
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li a {
    color: #666;
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: var(--brand-primary);
}

/* ========== Product navigation ========== */
#iqitproductsnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    margin-left: 5px;
    transition: all 0.2s;
}

#iqitproductsnav a:hover {
    background: var(--brand-primary);
    color: #fff;
}

#iqitproductsnav a.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/*
 * Prevent product navigation buttons from being clipped by breadcrumb containers.
 */
#iqitproductsnav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

#iqitproductsnav a {
    margin-left: 0;
}

.breadcrumb,
.breadcrumb .row,
.breadcrumb .col-auto {
    overflow: visible;
}


/* ========== Product variants - color and attributes ========== */
.attribute-tit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    z-index: 1;
}

.color-category-label {
    width: 100%;
    padding-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    clear: both;
    margin-top: 10px;
}

.color-category-label:first-child {
    margin-top: 0;
}

.product-variants .color.texture {
    border-radius: 0;
    background-size: contain !important;
    background-position: 0% 0% !important;
    background-repeat: no-repeat !important;
    display: block;
    position: relative;
}

.product-variants .input-container[title] {
    position: relative;
}

.product-variants .input-container[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    z-index: 9999;
    margin-bottom: 8px;
    width: max-content;
    max-width: 250px;
    text-align: center;
    line-height: 1.4;
}

.product-variants .input-container[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(51, 51, 51, 0.95);
    margin-bottom: -4px;
    z-index: 9999;
}

.aBigImgLink {
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 9;
    color: rgba(255, 255, 255, .5) !important;
    background-color: rgba(0, 0, 0, .2);
    padding: 2px;
    transition: all 0.3s ease 0s;
    line-height: 1;
}

.aBigImgLink .uk-icon {
    width: 12px;
    height: 12px;
    display: block;
}

.product-variants ul li.input-container {
    position: relative;
    display: inline-block;
}

.product-variants ul li.input-container .aBigImgLink {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 20;
}

.product-variants > .product-variants-item ul li > label {
    position: relative;
    margin-bottom: 0;
}

.product-variants > .product-variants-item .color {
    display: block;
    margin-right: 0;
}

.product-variants > .product-variants-item ul li:hover .aBigImgLink {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(0, 0, 0, .5);
}

.product-variants > .product-variants-item ul li:hover .discount-tag {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(42, 142, 158, 1);
}

.uk-lightbox {
    background-color: rgba(0, 0, 0, .8) !important;
}

/* ========== UK Tab styles ========== */
.uk-tab {
    color: #000;
    border-radius: 30px;
    background-color: rgb(240, 240, 240);
    padding-left: 0;
    margin-left: 0;
    border: none;
    padding: 4px 0;
    box-sizing: border-box;
}

.uk-tab::before {
    display: none;
}

.uk-tab .uk-active {
    font-weight: 600;
}

.uk-tab > .uk-active > a {
    border: none;
    color: #fff !important;
    display: inline-block;
}

.uk-tab li {
    padding: 0 15px;
    margin-bottom: 0 !important;
}

.uk-tab li a {
    font-size: 10.5px;
    padding: 5px 10px;
}

.uk-tab li.uk-active {
    background-color: #68699a !important;
    border-radius: 20px;
}

.uk-tab > li.uk-active > a {
    color: #fff !important;
}

.color-group-all {
    height: 200px;
    overflow-y: auto;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* ========== Scroll hints (tabs + SKU options) ========== */

/*
 * Sliding indicator for SKU group tabs.
 *
 * The element is injected by JS (lv-tab-indicator) and positioned under the active tab.
 */
.product-variants .lv-tab-indicator {
    display: none;
}

@keyframes lvTabIndicatorShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-variants .lv-tab-indicator {
        animation: none;
    }
}

/*
 * Graphic swipe/drag hint (animated gesture) for the tab bar.
 * This avoids text labels and makes "scroll/drag" obvious.
 */
.product-variants .lv-scroll-hint-label {
    display: block;
    width: 72px !important;
    height: 26px !important;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    right: 52px !important;
}

.product-variants .lv-scroll-hint-label::after {
    /* Double chevrons */
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    opacity: 0.85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5' fill='none' stroke='%2368699a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 7l-5 5 5 5' fill='none' stroke='%2368699a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.product-variants .lv-scroll-hint-label::before {
    /* Moving hand/cursor */
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%) translateX(0);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    opacity: 0.85;
    animation: lvSwipeGesture 1.15s ease-in-out infinite;
}

/* Mouse drag icon */
.product-variants .lv-scroll-hint-label[data-hint="drag"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3l7 7-3 1 1 8-2 1-4-11-1 3-3-9z' fill='%2368699a'/%3E%3C/svg%3E");
}

/* Finger swipe icon */
.product-variants .lv-scroll-hint-label[data-hint="swipe"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1.1 0 2 .9 2 2v7h1.2c.9 0 1.6.7 1.6 1.6V19c0 1.7-1.3 3-3 3H11c-1 0-1.9-.5-2.4-1.3l-2.1-3.4c-.3-.5-.2-1.1.2-1.5.4-.4 1-.5 1.5-.2l1.8 1.1V4c0-1.1.9-2 2-2z' fill='%2368699a'/%3E%3C/svg%3E");
}

@keyframes lvSwipeGesture {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.55;
    }
    50% {
        transform: translateY(-50%) translateX(18px);
        opacity: 0.95;
    }
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-variants .lv-scroll-hint-label::before {
        animation: none;
    }
}
/*
 * Provide a subtle visual hint when a scrollable area has hidden content.
 * - Horizontal: product variant tabs (only when overflow exists)
 * - Vertical: SKU options list (color-group-all)
 */

/*
 * Always make product variant tabs horizontally scrollable when needed.
 * This prevents "missing" tabs when there are too many.
 */
.product-variants ul[uk-tab],
.product-variants .uk-tab[uk-tab] {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 6px;
}

.product-variants ul[uk-tab]::-webkit-scrollbar,
.product-variants .uk-tab[uk-tab]::-webkit-scrollbar {
    display: none;
}

.product-variants ul[uk-tab] > li,
.product-variants .uk-tab[uk-tab] > li {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 2;
}

.product-variants ul[uk-tab] > li > a,
.product-variants .uk-tab[uk-tab] > li > a {
    white-space: nowrap;
}

/* Keep "All" tab fixed while other groups scroll */
.product-variants ul[uk-tab].lv-tab-overflow > li.lv-tab-pin,
.product-variants .uk-tab.lv-tab-overflow > li.lv-tab-pin {
    position: sticky !important;
    left: 0;
    z-index: 9;
    background: var(--white-color, #fff);
}

.product-variants ul[uk-tab].lv-tab-overflow > li.lv-tab-pin::after,
.product-variants .uk-tab.lv-tab-overflow > li.lv-tab-pin::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Hint wrapper styles (toggled by JS with .lv-tab-overflow / .lv-scroll-hint--h) */
.product-variants ul[uk-tab].lv-tab-overflow,
.product-variants .uk-tab.lv-tab-overflow {
    padding-right: 28px;
}

/* Fallback hint rendering (background layers) */
.product-variants ul[uk-tab].lv-tab-overflow.lv-scroll-hint--h,
.product-variants .uk-tab.lv-tab-overflow.lv-scroll-hint--h {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l8 7-8 7' fill='none' stroke='%2368699a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(90deg, rgba(240, 240, 240, 0) 0%, rgba(240, 240, 240, 1) 60%);
    background-repeat: no-repeat;
    background-position: right 14px center, right 0 top 0;
    background-size: 14px 14px, 46px 100%;
}

/* Prevent tab items from shrinking so overflow becomes scrollable. */
.product-variants ul[uk-tab].lv-tab-overflow > li,
.product-variants .uk-tab.lv-tab-overflow > li {
    flex: 0 0 auto !important;
}

.product-variants ul[uk-tab].lv-tab-overflow > li > a,
.product-variants .uk-tab.lv-tab-overflow > li > a {
    white-space: nowrap;
}

.product-variants ul[uk-tab].lv-tab-overflow::-webkit-scrollbar,
.product-variants .uk-tab.lv-tab-overflow::-webkit-scrollbar {
    display: none;
}

/* Horizontal hint: right fade + arrow */
.product-variants ul[uk-tab].lv-tab-overflow.lv-scroll-hint--h::after,
.product-variants .uk-tab.lv-tab-overflow.lv-scroll-hint--h::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: block;
    background: linear-gradient(90deg, rgba(240, 240, 240, 0) 0%, rgba(240, 240, 240, 1) 60%);
}

.product-variants ul[uk-tab].lv-tab-overflow.lv-scroll-hint--h::before,
.product-variants .uk-tab.lv-tab-overflow.lv-scroll-hint--h::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-right: 3px solid rgba(104, 105, 154, 0.85);
    border-bottom: 3px solid rgba(104, 105, 154, 0.85);
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: 3;
    display: block;
    animation: lvScrollHintArrowX 1.2s ease-in-out infinite;
}

@keyframes lvScrollHintArrowX {
    0% {
        transform: translateX(0) rotate(-45deg);
        opacity: 0.35;
    }
    50% {
        transform: translateX(-5px) rotate(-45deg);
        opacity: 0.75;
    }
    100% {
        transform: translateX(0) rotate(-45deg);
        opacity: 0.35;
    }
}

/* Vertical hint: bottom fade + down arrow */
.color-group-all.lv-scroll-hint--v {
    position: relative;
    padding-bottom: 18px;
    box-sizing: border-box;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8l7 8 7-8' fill='none' stroke='%2368699a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%);
    background-repeat: no-repeat;
    background-position: center calc(100% - 10px), left 0 bottom 0;
    background-size: 14px 14px, 100% 44px;
}

.color-group-all.lv-scroll-hint--v.lv-scroll-hint--v-off {
    background-image: none !important;
}

.color-group-all.lv-scroll-hint--v.lv-scroll-hint--v-off::after,
.color-group-all.lv-scroll-hint--v.lv-scroll-hint--v-off::before {
    display: none !important;
}

.color-group-all.lv-scroll-hint--v::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 44px;
    pointer-events: none;
    z-index: 2;
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%);
}

.color-group-all.lv-scroll-hint--v::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-right: 3px solid rgba(104, 105, 154, 0.85);
    border-bottom: 3px solid rgba(104, 105, 154, 0.85);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 3;
    display: block;
    animation: lvScrollHintArrowY 1.2s ease-in-out infinite;
}

@keyframes lvScrollHintArrowY {
    0% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.35;
    }
    50% {
        transform: translateY(4px) rotate(45deg);
        opacity: 0.75;
    }
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-variants ul[uk-tab].lv-tab-overflow.lv-scroll-hint--h::before,
    .product-variants .uk-tab.lv-tab-overflow.lv-scroll-hint--h::before,
    .color-group-all.lv-scroll-hint--v::before {
        animation: none;
    }
}

/* ========== Product image wrapper ========== */
.product-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.product-image-wrapper .expander {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: #68699a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-image-wrapper .expander:hover {
    background: #5a5b8a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.product-image-wrapper .expander span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-image-wrapper .expander i,
.product-image-wrapper .expander i.fa {
    font-size: 16px !important;
    color: #fff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

.easyzoom .expander {
    display: none !important;
}

/* Defer massive color list rendering */
#group_36 {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
    contain: layout style paint;
}

.color,
.custom-checkbox input[type=checkbox] + span.color,
.radio-label {
    outline: none;
}

.product-variants .color-attributes .input-color:checked + span,
.product-variants .color-attributes .input-color:hover + span {
    border: none;
}

.product-variants .color-attributes label {
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #e5e5e5;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.product-variants .color-attributes label:has(.input-color:checked),
.product-variants .color-attributes label:has(.input-color:hover) {
    border: 2px solid #1B9FAC;
}

/* ========== Quantity input - bootstrap touchspin ========== */
.qty,
.product-quantity .qty,
.product-add-to-cart .qty,
.js-product-add-to-cart .qty {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: visible !important;
    background: #fff;
    height: 41px !important;
    max-height: 41px !important;
    width: auto !important;
    min-width: 120px !important;
}

.qty button {
    min-width: 32px;
    height: 41px;
    padding: 0 10px;
    border: none;
    background-color: #f8f8f8;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty button:hover {
    background-color: #e8e8e8;
    color: #000;
}

.qty button:active {
    background-color: #ddd;
}

.qty input[type="number"] {
    width: 50px;
    height: 41px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
    background: #fff;
}

.qty input[type="number"]::-webkit-outer-spin-button,
.qty input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Horizontal touchspin layout - force horizontal */
.qty .bootstrap-touchspin,
.qty .bootstrap-touchspin-horizontal,
.qty .input-group,
.product-quantity .qty .bootstrap-touchspin,
.product-quantity .qty .input-group,
.product-add-to-cart .qty .bootstrap-touchspin,
.product-add-to-cart .qty .input-group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    height: 41px !important;
    max-height: 41px !important;
}

.qty .bootstrap-touchspin .form-control,
.qty .bootstrap-touchspin .qty-input {
    width: 50px;
    height: 41px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: #fff;
}

.qty .bootstrap-touchspin .form-control::-webkit-outer-spin-button,
.qty .bootstrap-touchspin .form-control::-webkit-inner-spin-button,
.qty .bootstrap-touchspin .qty-input::-webkit-outer-spin-button,
.qty .bootstrap-touchspin .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty .bootstrap-touchspin .form-control:focus,
.qty .bootstrap-touchspin .qty-input:focus {
    outline: none;
    box-shadow: none;
}

/* Hide the vertical button group generated by TouchSpin plugin */
.qty .input-group-btn-vertical {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide TouchSpin generated span.input-group-btn wrappers and their buttons */
.qty .input-group-btn,
.qty span.input-group-btn,
.qty .bootstrap-touchspin .input-group-btn,
.qty .bootstrap-touchspin span.input-group-btn,
.qty .bootstrap-touchspin-horizontal .input-group-btn,
.qty .bootstrap-touchspin-horizontal span.input-group-btn,
.product-quantity .qty .input-group-btn,
.product-add-to-cart .qty .input-group-btn,
.js-product-add-to-cart .qty .input-group-btn {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide buttons inside input-group-btn spans */
.qty .input-group-btn button,
.qty .input-group-btn .btn,
.qty span.input-group-btn button,
.qty span.input-group-btn .btn {
    display: none !important;
    visibility: hidden !important;
}

/* Hide TouchSpin dynamically generated buttons (those with js-touchspin class) */
/* TouchSpin generates buttons with js-touchspin class */
.qty button.js-touchspin,
.qty .bootstrap-touchspin button.js-touchspin,
.qty .bootstrap-touchspin-horizontal button.js-touchspin,
.product-quantity .qty button.js-touchspin,
.product-add-to-cart .qty button.js-touchspin {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide TouchSpin prefix and postfix spans */
.qty .bootstrap-touchspin-prefix,
.qty .bootstrap-touchspin-postfix,
.qty .input-group-addon,
.qty span.input-group-addon {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure our custom buttons with qty-btn class are visible and styled */
.qty button.qty-btn-down,
.qty button.qty-btn-up,
.qty .bootstrap-touchspin button.qty-btn-down,
.qty .bootstrap-touchspin button.qty-btn-up {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 41px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    transition: all 0.2s ease;
    padding: 0 10px;
    margin: 0;
    border-radius: 0;
}

.qty button.qty-btn-down:hover,
.qty button.qty-btn-up:hover {
    background: #e8e8e8;
    color: #000;
}

.qty button.qty-btn-down:active,
.qty button.qty-btn-up:active {
    background: #ddd;
}

/* Style for minus button */
.qty .bootstrap-touchspin .qty-btn-down,
.qty .qty-btn-down {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 41px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    transition: all 0.2s ease;
    padding: 0 10px;
    margin: 0;
    border-radius: 0;
    order: 1;
}

/* Style for plus button */
.qty .bootstrap-touchspin .qty-btn-up,
.qty .qty-btn-up {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 41px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    transition: all 0.2s ease;
    padding: 0 10px;
    margin: 0;
    border-radius: 0;
    order: 3;
}

/* Input in the middle */
.qty .bootstrap-touchspin .qty-input,
.qty .bootstrap-touchspin .form-control {
    order: 2;
}

.qty .bootstrap-touchspin .qty-btn-down:hover,
.qty .bootstrap-touchspin .qty-btn-up:hover,
.qty .qty-btn-down:hover,
.qty .qty-btn-up:hover {
    background: #e8e8e8;
    color: #000;
}

.qty .bootstrap-touchspin .qty-btn-down:active,
.qty .bootstrap-touchspin .qty-btn-up:active,
.qty .qty-btn-down:active,
.qty .qty-btn-up:active {
    background: #ddd;
}

/* Touchspin icon styling - use arrows */
.qty .touchspin-icon {
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    color: #333;
    display: inline-block;
}

.qty .bootstrap-touchspin .btn-touchspin i.fa,
.qty .btn-touchspin i.fa {
    font-size: 12px;
    line-height: 1;
}

.qty .bootstrap-touchspin-prefix,
.qty .bootstrap-touchspin-postfix {
    display: none !important;
}

/* Product add to cart quantity wrapper */
.product-add-to-cart .qty,
.js-product-add-to-cart .qty {
    margin-right: 10px;
}

.product-add-to-cart .col-add-qty,
.js-product-add-to-cart .col-add-qty {
    display: flex;
    align-items: center;
}

/* Ensure horizontal layout for product-quantity row */
.product-add-to-cart .product-quantity,
.js-product-add-to-cart .product-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.product-add-to-cart .col-add-qty,
.js-product-add-to-cart .col-add-qty {
    flex: 0 0 auto;
    width: auto;
}

.product-add-to-cart .col-add-btn,
.js-product-add-to-cart .col-add-btn {
    flex: 1 1 auto;
}

/* Product quantity row alignment */
.product-quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.product-quantity .col-add-qty {
    display: flex;
    align-items: center;
}


/* ========== Pre-cut modal styles ========== */
#base-pre-cut-15 .uk-modal-body,
#base-pre-cut-40 .uk-modal-body,
#base-pre-cut-detail .uk-modal-body {
    border-radius: 15px;
    flex-direction: column;
    align-items: center;
}

#base-pre-cut-15 .uk-modal-title,
#base-pre-cut-40 .uk-modal-title,
#base-pre-cut-detail .uk-modal-title {
    text-align: center;
    font-weight: bold;
}

.lv-stage {
    text-align: center;
}

.lv-container {
    max-width: var(--container-8xl);
    padding-inline: 1.25rem;
    box-sizing: content-box;
    margin: 0 auto;
}

.mt-10 {
    margin-top: calc(var(--spacing) * 10);
}

.mx-2 {
    margin-inline: calc(var(--spacing) * 2);
}

.mt-2 {
    margin-top: calc(var(--spacing) * 2);
}

.mt-4 {
    margin-top: calc(var(--spacing) * 4);
}

.lv-precut-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.lv-precut-item .uk-flex input {
    border: 0;
    border-bottom: solid 1px #000;
}

.px-8 {
    padding-inline: calc(var(--spacing) * 8);
}

.py-3 {
    padding-block: calc(var(--spacing) * 3);
}

.lv-pre-cut-btn {
    cursor: pointer;
    background: #68699a;
    color: var(--white-color);
    text-transform: uppercase;
    display: inline-flex;
    border-radius: 0.3rem;
    border: 0;
}

.lv-pre-cut-btn:hover {
    background: var(--color-primary-hover);
}

#base-pre-cut-40 .section1 {
    width: 100%;
    text-align: left;
}

.lv-pre-cut-img-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lv-pre-cut-item-bottom {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    align-items: center;
}

.lv-pre-cut-item {
    display: flex;
    justify-content: center;
}

.lv-pre-cut-40-body {
    overflow: hidden;
    height: 100rem;
    max-height: 60vh;
    overflow-y: auto;
    max-width: 100%;
}

.upload-area {
    border: 1px dashed var(--defalut-color);
    border-radius: 12px;
    padding: 0.6rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    margin-inline: auto;
}

.lv-precut-main {
    max-width: 100%;
}

.upload-area:hover {
    border-color: var(--color-primary-hover);
}

.file-input {
    display: none;
}

.upload-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.preview-item:hover {
    transform: translateY(-5px);
}

.preview-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #68699a;
    color: var(--white-color);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.1);
}

.lv-pre-cut-detail-body {
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
    max-height: 60vh;
}

.lv-pre-cut-detail-main {
    padding: 1rem 1.5rem;
    background: #F4F6F8;
    border-radius: 1rem;
    gap: 1rem;
}

.lv-pre-cut-detail-item {
    margin-top: 1rem;
    font-weight: bold;
}

.lv-pre-cut-detail-item:first-child {
    margin-top: 0;
}

.lv-pre-cut-detail-item span {
    font-weight: normal;
}

.lv-pre-cut-detail-hairStyle {
    display: none;
}

.lv-pre-cut-detail-img-uploadTitle {
    display: none;
}

.lv-pre-cut-detail-img-upload {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lv-pre-cut-detail-img-upload img {
    margin-bottom: 1rem;
}

body#checkout #cart-summary-product-list .cart-summary-product {
    border: 0;
}

.lv-pre-cut-row {
    border-bottom: 1px solid rgba(160, 160, 160, .25);
    padding-block: 1rem;
}

/* ========== Crossselling products ========== */
.crossselling-products {
    margin-top: 40px;
    padding: 30px 15px;
    background: #f9f9f9;
}

.crossselling-products .section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #68699a;
}

.crossselling-products .section-title span {
    color: #68699a;
}

.recommend-product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.recommend-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recommend-product-card img {
    transition: transform 0.3s ease;
}

.recommend-product-card:hover img {
    transform: scale(1.05);
}

.recommend-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #68699a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

.recommend-category {
    font-size: 12px;
    color: #68699a;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
}

.recommend-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.recommend-title a {
    color: #333;
    text-decoration: none;
}

.recommend-title a:hover {
    color: #68699a;
}

.recommend-reviews {
    font-size: 12px;
    color: #666;
}

.recommend-reviews img {
    vertical-align: middle;
}

.recommend-reviews .review-count {
    margin-left: 5px;
}

.recommend-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.crossselling-products .uk-slidenav {
    background: #fff;
    color: #68699a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.crossselling-products .uk-slidenav:hover {
    background: #68699a;
    color: #fff;
}

/* ========== Recommend slider ========== */
.recommend-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.recommend-slider {
    overflow: hidden;
    cursor: grab;
}

.recommend-slider:active {
    cursor: grabbing;
}

.recommend-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.recommend-slider-track .recommend-product-card {
    flex: 0 0 calc(20% - 12px);
    min-width: 200px;
    max-width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recommend-slider-track .recommend-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recommend-card-image {
    position: relative;
    overflow: hidden;
}

.recommend-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.recommend-product-card:hover .recommend-card-image img {
    transform: scale(1.05);
}

.recommend-card-body {
    padding: 12px;
}

.recommend-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #68699a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.recommend-nav:hover {
    background: #68699a;
    color: #fff;
    border-color: #68699a;
}

.recommend-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.recommend-nav-prev {
    left: 0;
}

.recommend-nav-next {
    right: 0;
}

/* ========== Product accessories and featured products ========== */
.product-accessories,
.featured-products,
.product-carousel-wrapper {
    margin-top: 50px;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.product-accessories h2,
.featured-products h2,
.product-carousel-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.product-miniature {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 15px;
}

.product-miniature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-miniature .thumbnail-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-miniature .product-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-miniature:hover .product-thumbnail img {
    transform: scale(1.05);
}

.product-miniature .product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-miniature .product-title a {
    color: inherit;
    text-decoration: none;
}

.product-miniature .product-title a:hover {
    color: var(--brand-primary);
}

.product-miniature .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
}

.product-miniature .reviews_list_stars {
    margin-bottom: 8px;
}

.product-miniature .reviews_list_stars img {
    width: 14px;
    height: 14px;
}


/* ========== Responsive styles ========== */
@media (max-width: 768px) {
    .product-prices .current-price-value {
        font-size: 24px !important;
    }

    .h1.page-title {
        font-size: 20px;
    }

    .lv-detail-policy {
        flex-wrap: wrap;
    }

    .lv-detail-po-item {
        flex: 0 0 calc(50% - 5px);
    }

    .qty-control .qty-btn {
        width: 36px;
        height: 40px;
    }

    .qty-control input.input-group {
        width: 50px;
        height: 40px;
    }

    .btn-primary.add-to-cart {
        padding: 10px 20px;
        font-size: 14px;
    }

    .product-accessories,
    .featured-products,
    .product-carousel-wrapper {
        margin-top: 30px;
        padding: 25px 15px;
    }

    .product-miniature {
        padding: 10px;
    }

    .product-miniature .product-title {
        font-size: 13px;
        min-height: 36px;
    }

    .product-miniature .product-price {
        font-size: 16px;
    }

    .lv-detail-dialog-main {
        max-width: 95%;
        padding: 20px;
        height: auto;
        padding-bottom: 30px;
    }

    .lv-detail-dialog-content {
        font-size: 14px;
    }

    .lv-detail-dialog-sub-title {
        font-size: 16px;
        margin: 10px 0 6px;
    }

    .lv-detail-dialog-title {
        margin: 15px 0 10px;
        font-size: 20px;
    }

    .lv-dialog-img {
        width: 60px;
    }

    #productdaas-accordion .content img,
    .product-description img,
    .product-details img,
    .tab-content img,
    .card-body img,
    .proDetail-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .uk-tab {
        width: 100%;
    }

    .uk-tab::-webkit-scrollbar {
        display: none;
    }

    .uk-tab li {
        padding: 0;
    }

    .lv-pre-cut-img-list,
    .lv-pre-cut-detail-img-upload {
        grid-template-columns: repeat(2, 1fr);
    }

    .upload-area {
        padding-block: 0;
    }

    .font-bold {
        font-weight: bold;
    }
}

@media (max-width: 460px) {
    .lv-precut-item .uk-flex {
        font-size: 0.875rem;
    }

    .lv-precut-item .uk-flex input {
        width: 3rem !important;
    }
}

/* Recommend slider responsive - order from large to small */
@media (max-width: 1200px) {
    .recommend-slider-track .recommend-product-card {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 992px) {
    .recommend-slider-track .recommend-product-card {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .recommend-slider-wrapper {
        padding: 0 40px;
    }

    .recommend-slider-track .recommend-product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .recommend-slider-wrapper {
        padding: 0 35px;
    }

    .recommend-slider-track .recommend-product-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .recommend-slider-track {
        gap: 15px;
    }

    .recommend-slider {
        overflow: hidden;
    }

    /* Mobile breadcrumb navigation fix */
    .breadcrumb .row.align-items-center {
        flex-wrap: nowrap;
    }

    .breadcrumb .row > .col {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 90px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb .row > .col ol {
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-right: 10px;
    }

    .breadcrumb .row > .col-auto {
        flex-shrink: 0;
        padding-left: 10px;
        min-width: 80px;
    }

    #iqitproductsnav {
        display: flex;
        gap: 8px;
    }

    #iqitproductsnav a {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
        min-height: 32px;
        margin-left: 0;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Product reviews: review images */
#shopify-product-reviews .spr-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

#shopify-product-reviews .spr-review-image-link {
    width: 72px;
    height: 72px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    background: #fff;
}

#shopify-product-reviews .spr-review-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    #shopify-product-reviews .spr-review-image-link {
        width: 64px;
        height: 64px;
    }
}

/* Review images lightbox (fancyBox v2): constrain oversized uploads */
.spr-review-fancybox .fancybox-inner {
    max-width: calc(100vw - 80px) !important;
    max-height: calc(100vh - 80px) !important;
    overflow: auto !important;
}

.spr-review-fancybox .fancybox-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

.spr-review-fancybox .fancybox-close {
    top: 6px !important;
    right: 6px !important;
}

@media (max-width: 480px) {
    .spr-review-fancybox .fancybox-inner {
        max-width: calc(100vw - 30px) !important;
        max-height: calc(100vh - 30px) !important;
    }

    .spr-review-fancybox .fancybox-close {
        top: 4px !important;
        right: 4px !important;
    }
}
