/* ============================================================
   SEARCH – FADE + SKELETON
============================================================ */

#search-root.search-loading #filters-root,
#search-root.search-loading #products-root,
#search-root.search-loading #pagination-root {
    opacity: 0;
    pointer-events: none;
}

#filters-root,
#products-root,
#pagination-root {
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s ease;
}

#search-skeleton {
    display: none;
    padding: 16px 0;
}

#search-root.search-loading #search-skeleton {
    display: block;
}

.skeleton-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.skeleton-filters span {
    width: 110px;
    height: 36px;
    display: inline-block;
    border-radius: 20px;
}

.skeleton-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.skeleton-card {
    height: 320px;
    border-radius: 12px;
}

@keyframes skeleton {
    0%   { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-card,
.skeleton-filters span {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400px 100%;
    animation: skeleton 1.4s ease infinite;
}

.shops-skeleton-line {
    height: .875rem;
    border-radius: .5rem;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.3s ease infinite;
}

@keyframes skeleton-shimmer {
    from { background-position: 100% 0; }
    to   { background-position: 0 0; }
}


/* ============================================================
   FILTERS – GENERAL
============================================================ */

.shops_filters_form {
    position: relative;
}

.shops_filters_label {
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #222;
}

.shops_filters_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shops_filters_dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    font-size: .8rem;
    padding: .45rem .85rem;
    white-space: nowrap;
}

.shops_filters_dropdown .dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
    pointer-events: auto;
}

.shops_filters_dropdown.active > button {
    background-color: var(--bg-light);
}

.shops_filters_dropdown.active > button:hover {
    background-color: var(--bg-light);
    color: #000;
}

.shops_filters_menu {
    min-width: 220px;
    max-width: 320px;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
}

.shops_filters_menu::-webkit-scrollbar { width: 4px; }
.shops_filters_menu::-webkit-scrollbar-track { background: transparent; }
.shops_filters_menu::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.shops_filters_menu label {
    cursor: pointer;
    user-select: none;
}

.shops_filters_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    transition: transform .25s ease;
}

.shops_filters_badge.animate {
    transform: scale(1.25);
}

/* ── Rows (checkbox / radio) ── */
.shops_filters_row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .25rem;
    border-radius: .4rem;
    cursor: pointer;
    transition: background .12s;
    font-size: .875rem;
    user-select: none;
}

.shops_filters_row:hover,
.shops_filters_dropdown .shops_filters_row:hover {
    background: #f3f4f6;
    border-radius: 6px;
}

.shops_filters_row.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.shops_filters_row.is-disabled input {
    cursor: not-allowed;
}

.shops_filters_row .form-check-input {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.shops_filters_count {
    font-size: .75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.shops_filters_dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.12);
}

/* ── Select ── */
.shops_filters_select {
    min-width: 180px;
    font-size: .8rem;
    border-radius: 10px;
}

/* ── Colors ── */
.shops_filters_colors {
    padding: .25rem 0;
}

.shops_filters_color_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    cursor: pointer;
    user-select: none;
}

.shops_filters_color_item.is-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.shops_filters_color_swatch {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px #d1d5db;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.shops_filters_color_item:hover .shops_filters_color_swatch {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px #9ca3af;
}

.shops_filters_color_item.is-active .shops_filters_color_swatch,
.shops_filters_color_item input:checked ~ .shops_filters_color_swatch {
    border-color: #fff;
    box-shadow: 0 0 0 2.5px var(--bs-primary, #0d6efd);
    transform: scale(1.1);
}

.shops_filters_color_label {
    font-size: .7rem;
    color: #6b7280;
    text-align: center;
    max-width: 48px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.2;
}
/* ── SVG ── */
.shops_filters_image_svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: .4rem;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px #e5e7eb;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.shops_filters_image_svg svg {
    width: 28px;
    height: 28px;
}

.shops_filters_image_item:hover .shops_filters_image_svg {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #9ca3af;
}

.shops_filters_image_item.is-active .shops_filters_image_svg,
.shops_filters_image_item input:checked ~ .shops_filters_image_svg {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 2px var(--bs-primary, #0d6efd);
    transform: scale(1.05);
}
/* ── Images ── */
.shops_filters_images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: .5rem;
    padding: .25rem 0;
}

.shops_filters_image_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    cursor: pointer;
    user-select: none;
}

.shops_filters_image_item.is-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.shops_filters_image_thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: .4rem;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px #e5e7eb;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.shops_filters_image_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: .4rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px #e5e7eb;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.shops_filters_image_item:hover .shops_filters_image_thumb,
.shops_filters_image_item:hover .shops_filters_image_placeholder {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #9ca3af;
}

.shops_filters_image_item.is-active .shops_filters_image_thumb,
.shops_filters_image_item input:checked ~ .shops_filters_image_thumb,
.shops_filters_image_item.is-active .shops_filters_image_placeholder,
.shops_filters_image_item input:checked ~ .shops_filters_image_placeholder {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 2px var(--bs-primary, #0d6efd);
    transform: scale(1.05);
}

.shops_filters_image_label {
    font-size: .7rem;
    color: #6b7280;
    text-align: center;
    max-width: 56px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ── Active pills ── */
.shops_filters_active {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.shops_filters_active:empty {
    display: none !important;
}

.shops_filters_pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--bg-light, #fdeee9);
    border: none;
    cursor: pointer;
    font-size: .75rem;
    white-space: nowrap;
}

.shops_filters_pill span {
    font-size: .9rem;
    line-height: 1;
}

.shops_filters_pill[data-context] {
    display: none;
}

.shops_filters_pill.is-hidden {
    display: none !important;
}

.shops_filters_clear {
    background: none;
    border: none;
    font-size: .75rem;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}

/* ── Accordion (offcanvas) ── */
.shops_filters_accordion {
    border-bottom: 1px solid #eee;
    padding: .5rem 0;
}

.shops_filters_accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    list-style: none;
}

.shops_filters_accordion summary::-webkit-details-marker {
    display: none;
}

/* ── Sidebar ── */
.shops_filters_sidebar   { padding-right: 1rem; }
.shops_filters_section   { margin-bottom: 1.5rem; }
.shops_filters_title     { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }

@media (max-width: 991px) {
    .shops_filters_topbar { flex-wrap: wrap; }
    .shops_filters_dropdown .dropdown-toggle { font-size: .75rem; }
}

@media (max-width: 575px) {
    .shops_filters_pill { font-size: .7rem; padding: .3rem .6rem; }
    .shops_filters_image_thumb { max-height: 28px; }
}


/* ============================================================
   VARIANT SLIDER
============================================================ */

.shops-list .variant-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shops-list .variant-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shops-list .variant-slider::-webkit-scrollbar {
    display: none;
}

.shops-list .variant-slide {
    flex: 0 0 72px;
    max-width: 72px;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.shops-list .variant-slide:focus {
    outline: none;
}

.shops-list .variant-slide img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none;
    user-drag: none;
    -webkit-user-drag: none;
}

.shops-list .variant-slide.active {
    border-color: #5b6f2b;
    background: #eef2e3;
}

.shops-list .variant-attribute-label {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.shops-list .variant-nav {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.shops-list .variant-nav.prev { margin-right: 4px; }
.shops-list .variant-nav.next { margin-left: 4px; }

@media (hover: hover) {
    .shops-list .variant-nav:hover { background: #f2f2f2; }
}

.shops-list .variant-nav[style*="display: none"] {
    pointer-events: none;
}

@media (max-width: 575px) {
    .shops-list .variant-slide {
        flex-basis: 60px;
        min-width: 60px;
        max-width: 60px;
    }
}


/* ============================================================
   ADD TO CART
============================================================ */

.add-to-cart-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-to-cart-modern .buy-zone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-to-cart-modern.is-disabled {
    opacity: .6;
    pointer-events: none;
}

.stock-message {
    margin-top: .5rem;
    font-size: .9rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.qty-stepper {
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 28px;
    height: 36px;
    border: none;
    background: #f6f6f6;
    color: #111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.qty-btn:active { background: #e9e9e9; }

.qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add,
.js-add-to-cart {
    flex: 1;
    height: 36px;
    border-radius: 9px;
    border: none;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-add i,
.js-add-to-cart i { font-size: 16px; }

.js-add-to-cart.is-loading { opacity: .6; pointer-events: none; }
.js-add-to-cart.is-added   { background: #3c8964; animation: add-pop .25s ease-out; }
.js-add-to-cart.is-error   { background: #c0392b; }

@keyframes add-pop {
    from { transform: scale(.96); }
    to   { transform: scale(1); }
}

.js-add-to-cart:focus-visible,
.qty-btn:focus-visible,
.qty-input:focus-visible {
    outline: 2px solid rgba(0,0,0,.4);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .qty-btn   { width: 26px; }
    .qty-input { width: 50px; font-size: 13px; }
    .btn-add i, .js-add-to-cart i { font-size: 15px; }
}


/* ============================================================
   CART
============================================================ */

.shops-cart-products {
    height: calc(100vh - 319px);
    overflow-y: scroll;
}

.shops-cross-sell__list {
    height: calc(100vh - 230px);
    overflow-y: scroll;
}

.shops-cart-item {
    border-bottom: 1px solid #eee;
    transition: opacity .25s ease, background .25s ease;
}

.shops-cart-item.is-locked {
    opacity: .6;
    pointer-events: none;
    position: relative;
}

.shops-cart-item.is-locked::after {
    content: "";
    position: absolute;
    right: .75rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -.5rem;
    border: 2px solid #dee2e6;
    border-top-color: #000;
    border-radius: 50%;
    animation: cart-spin .8s linear infinite;
}

@keyframes cart-spin {
    to { transform: rotate(360deg); }
}

.shops-cart-item-image {
    position: relative;
}

.shops-cart-item-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: .375rem;
    background: #f8f9fa;
}

.shops-cart-item-qty-badge {
    position: absolute;
    top: -.375rem;
    right: -.375rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .375rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 50rem;
    background: #000;
    color: #fff;
    pointer-events: none;
}

.shops-cart-item-title   { font-size: .8rem; line-height: 1.3; }
.shops-cart-item-options { font-size: .8rem; color: #6c757d; }
.shops-cart-item-price   { font-size: 1rem; white-space: nowrap; }
.shops-cart-options      { padding-left: 1rem; }
.shops-cart-qty button   { width: 28px; height: 28px; }
.shops-cart-qty input    { width: 70px; text-align: center; }
.shops-cart-option button { line-height: 1; }
.shops-cart-summary      { text-align: right; }

.shops-cart-switch { display: flex; gap: 6px; margin-bottom: 10px; }
.cart-switch-item  { padding: 6px 10px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.cart-switch-item.is-active { background: #000; color: #fff; }

.shops-cart-multicart-list .dropdown-item.active {
    background-color: var(--bg-light);
    color: #000;
}

/* Layout offcanvas */
.shops-cart-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    transition: grid-template-columns .2s ease;
    overflow: hidden;
}

.shops-cart-layout.no-cross-sell   { grid-template-columns: 1fr !important; }
.shops-cart-layout.with-cross-sell { grid-template-columns: 200px 1fr; }

.shops-cart.is-loading { opacity: 1 !important; }

.offcanvas .shops-cart,
.page-cart .shops-cart { opacity: 0; }

.offcanvas.show .shops-cart,
.page-cart .shops-cart.is-visible { opacity: 1; }

#shops-cartOffcanvas.offcanvas-end  { width: 700px !important; max-width: 95vw; }
#shops-cartOffcanvas .offcanvas-header { background-color: var(--bg-light); }
#shops-cartOffcanvas .offcanvas-body  { height: calc(100vh - 140px); overflow: hidden; }
#shops-cartOffcanvas .shops-cart-shippings-status { border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
#shops-cartOffcanvas .shops-cart-main { height: 100%; overflow-y: auto; }
#shops-cartOffcanvas .shops-cart-main .shops-cart { height: auto; overflow: visible; }
#shops-cartOffcanvas .shops-cart-cross-sell { height: 100%; overflow-y: auto; padding-bottom: 1rem; }

/* Cross-sell */
.shops-cart-cross-sell-mobile-list::-webkit-scrollbar { display: none; }
.shops-cart-cross-sell-mobile-list { scroll-snap-type: x mandatory; }
.shops-cross-sell-mobile-item      { scroll-snap-align: start; }

@media (max-width: 768px) {
    .shops-cart-products        { height: calc(100vh - 510px); }
    #shops-cartOffcanvas.offcanvas-end { width: 100vw; }
    #shops-cartOffcanvas .shops-cart-layout { grid-template-columns: 1fr !important; }
    #shops-cartOffcanvas .shops-cart-cross-sell { display: none !important; }

    .shops-cross-sell-mobile-list {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .5rem;
    }
}

@media (max-width: 991px) {
    #shops-cartOffcanvas .shops-cart-main .shops-cart { height: calc(100% + 100px) !important; }
}


/* ============================================================
   SHIPPING PROGRESS
============================================================ */

.shops-cart-shippings-status { padding: 12px 16px 16px; }

.shipping-progress {
    background: #faf9f7;
    border-radius: 14px;
    padding: 12px 14px 0;
}

.shipping-message {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
}

.shipping-progress .progress {
    height: 5px;
    background: #e6e6e6;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.shipping-progress .progress-bar {
    background: linear-gradient(90deg, #3c8964, #5fbf90);
    transition: width .35s ease;
}

.shipping-steps-wrapper { position: relative; margin-top: -9px; }

.shipping-steps {
    position: relative;
    height: 48px;
    padding-left: 18px;
    padding-right: 32px;
}

.shipping-step {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    max-width: 90px;
    font-size: 10px;
    color: #9a9a9a;
    z-index: 3;
    pointer-events: auto;
}

.shipping-step:last-child {
    transform: translateX(-100%);
    text-align: right;
}

.shipping-step .dot {
    width: 13px;
    height: 13px;
    display: block;
    border-radius: 50%;
    background: #cfcfcf;
    box-shadow: 0 0 0 4px rgba(0,0,0,.05);
    margin: 0 auto 6px;
    position: relative;
    z-index: 3;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.shipping-step .amount { display: block; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.shipping-step .label  { display: block; font-size: 9.5px; line-height: 1.2; word-break: break-word; }

.shipping-step.is-active        { color: #3c8964; }
.shipping-step.is-active .dot   { background: #3c8964; box-shadow: 0 0 0 4px rgba(60,137,100,.18); transform: scale(1.15); }
.shipping-step.is-next          { color: #333; }
.shipping-step.is-next .dot     { background: #fff; box-shadow: 0 0 0 4px rgba(95,191,144,.35); border: 1px solid #5fbf90; transform: scale(1.1); }

@media (hover: hover) and (pointer: fine) {
    .shipping-step::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        background: #111;
        color: #fff;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        padding: 6px 8px;
        border-radius: 6px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
        z-index: 999;
    }

    .shipping-step:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (hover: none) {
    .shipping-step::after,
    .shipping-step::before { display: none; }
}

@media (max-width: 576px) {
    .shipping-steps { height: 44px; }
    .shipping-step  { max-width: 72px; font-size: 9px; }
    .shipping-step .amount { font-size: 10px; }
}


/* ============================================================
   MOBILE CART BAR
============================================================ */

.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 12px;
    z-index: 1050;
    box-shadow: 0 -4px 12px rgba(0,0,0,.05);
    transform: translateY(100%);
    transition: transform .3s ease, opacity .3s ease;
    opacity: 0;
}

.mobile-cart-bar.is-visible { transform: translateY(0); opacity: 1; }
.mobile-cart-actions .btn   { white-space: nowrap; font-weight: 600; }

@media (min-width: 992px) {
    .mobile-cart-bar { display: none !important; }
}


/* ============================================================
   CHECKOUT
============================================================ */

.shops-checkout-wrapper h5 { margin-bottom: 10px; }
.shops-checkout-right { background: var(--bg-light); }

.shops-checkout-wrapper .form-control,
.shops-checkout-wrapper .form-select {
    height: 45px !important;
    border-radius: 8px !important;
}

.shops-checkout-wrapper .pac-target-input {
    height: 45px !important;
    border-radius: 8px 0 0 8px !important;
}

.shops-checkout-wrapper .form_phone label { left: 40px !important; }
.shops-checkout-wrapper .btn-lg { height: 52px; border-radius: 8px; }
.shops-checkout-wrapper .field-error { font-size: .875rem; }

.shops-checkout-wrapper .field-invalid input,
.shops-checkout-wrapper .field-invalid select { border-color: #dc3545 !important; }

.shops-checkout-wrapper .field-invalid .field-error { display: block; }

.shops-checkout-wrapper .shipping-radio,
.shops-checkout-wrapper .payment-radio,
.shops-checkout-wrapper .billing-radio { margin-top: 5px; }

.shops-checkout-wrapper .floating-label { position: relative; }

.shops-checkout-wrapper .floating-label input,
.shops-checkout-wrapper .floating-label select { height: 40px; padding: 9px 12px 6px; }

.shops-checkout-wrapper .input-group .form-control { border-radius: 8px 0 0 8px !important; }
.shops-checkout-wrapper .input-group-text { background-color: var(--btn-1-bg); color: var(--btn-1-color); }
.shops-checkout-wrapper .pickup-point-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;  /* ← seulement horizontal */
    box-sizing: border-box;
}
.shops-checkout-wrapper .floating-label label {
    position: absolute;
    left: 17px;
    top: 11px;
    font-size: .9rem;
    color: #adb5bd;
    background: #fff;
    padding: 0 6px;
    pointer-events: none;
    transition: all .15s ease;
    z-index: 3;
}

.shops-checkout-wrapper .floating-label:has(input:focus) label,
.shops-checkout-wrapper .floating-label:has(input:not(:placeholder-shown)) label,
.shops-checkout-wrapper .floating-label:has(select:focus) label {
    top: -4px;
    font-size: .75rem;
}

.shops-checkout-summary-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.shops-checkout-product { background-color: #fff; }

.shops-checkout-loyalty-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffb703, #ffd166);
    color: #111;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.shops-checkout-loyalty-label { font-size: 12px; opacity: .8; }

/* Success page */
.shops-checkout-success { background-color: #fafafa; }
.shops-checkout-success-check { color: #198754; }
.shops-checkout-success-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }

.shops-checkout-success-summary { background-color: var(--bg-light); border-radius: 14px; padding: 24px; }
.shops-checkout-success-item + .shops-checkout-success-item { margin-top: 16px; }

.shops-checkout-success-item-image { position: relative; width: 56px; min-width: 56px; }
.shops-checkout-success-item-qty {
    position: absolute;
    top: -6px; right: -6px;
    background: #212529; color: #fff;
    font-size: .7rem; width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.shops-checkout-success-item-name    { font-size: .9rem; }
.shops-checkout-success-item-options { font-size: .75rem; color: #6c757d; }
.shops-checkout-success-item-price   { font-size: .9rem; white-space: nowrap; }

.checkout-estimate-success { background-color: #fff; }
.checkout-estimate-actions .btn { min-width: 220px; }

/* Mobile summary accordion */
@media (max-width: 991px) {
    .summary-toggle { display: none; }

    .checkout-summary-accordion {
        position: sticky;
        top: var(--main-menu-height);
        z-index: 55;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 8px;
    }

    .summary-toggle-label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 16px;
        font-weight: 600;
        cursor: pointer;
    }

    .summary-qty { margin-left: auto; font-weight: 700; white-space: nowrap; }

    .summary-toggle-label .chevron {
        width: 10px; height: 10px;
        border-right: 2px solid #111;
        border-bottom: 2px solid #111;
        transform: rotate(45deg);
        transition: transform .2s ease;
        margin-left: 6px;
    }

    .shops-checkout-summary-products { display: none; }

    .summary-toggle:checked ~ .shops-checkout-summary-products { display: block; }
    .summary-toggle:checked ~ .checkout-summary-accordion .chevron { transform: rotate(-135deg); }
}

@media (min-width: 992px) {
    .checkout-summary-accordion { display: none; }
    .shops-checkout-summary-products { display: block !important; }
}

@media (max-width: 575px) {
    .checkout-estimate-actions { gap: 12px; }
}


/* ============================================================
   FORMS – FLOATING LABEL (global)
============================================================ */

.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
    height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    line-height: 1.25;
}

.form-floating > .form-control-plaintext ~ label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: rgba(var(--bs-body-color-rgb), .65);
    transform: scale(.85) translateY(-1.5rem) translateX(.15rem);
}

.form-floating > .form-control-plaintext:focus,
.form-floating > .form-control-plaintext:not(:placeholder-shown),
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 0;
    padding-bottom: 0;
}

.form-floating > .form-select { padding-top: 0; padding-bottom: 0; color: var(--form-color); }
.form-floating > label { padding: 10px .75rem; }

.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus,
.form-floating > .form-control-plaintext:-webkit-autofill,
.floating-phone .form-control:-webkit-autofill,
.floating-phone .form-control:-webkit-autofill:hover,
.floating-phone .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--form-color);
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-in-out 0s;
}

.floating-phone { position: relative; }

.floating-phone label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: .2s ease;
    pointer-events: none;
    color: #777;
}

.floating-phone.has-value label,
.floating-phone input:focus + label { top: 0; background: #fff; }


/* ============================================================
   MISC
============================================================ */

/* Rating */
.product-rating  { line-height: 1; }
.rating-stars    { display: inline-flex; gap: 4px; font-size: 18px; }
.rating-stars i  { color: #f5b301; }
.rating-stars .fa-regular { color: #e0e0e0; }
.rating-info     { font-size: 14px; opacity: .75; }

@media (max-width: 768px) {
    .rating-stars { font-size: 16px; }
    .rating-info  { font-size: 13px; }
}

/* Wishlist */
.js-wishlist-toggle.active i { animation: heartPop .25s ease; }
@keyframes heartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Tier pricing */
.tier-active { background: #e8f2ff; border-left: 4px solid #0d6efd; font-weight: 600; }
.js-tier-row { cursor: pointer; }
.js-tier-row:hover { background: #f8f9fa; }

/* Datepicker */
.hdp-wrap { position: relative; }
.hdp-wrap .hotel-datepicker { position: absolute !important; top: calc(100% + 8px) !important; left: 0 !important; z-index: 9999 !important; }
.datepicker_price { font-size: 10px; color: #888; }

.hotel-datepicker .datepicker__month-day--disabled {
    background: #f5f5f5 !important;
    color: #ccc !important;
    position: relative;
}

.hotel-datepicker .datepicker__month-day--disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(200,200,200,.2), rgba(200,200,200,.2) 4px, transparent 4px, transparent 8px);
}

.hotel-datepicker .datepicker__month-day--selected { background: #222 !important; color: #fff !important; }
.hotel-datepicker__info { font-size: 14px; font-weight: 500; }

/* Flatpickr */
.flatpickr-day { border-radius: 8px; position: relative; transition: all .15s ease; }
.flatpickr-day.slot-green  { background: #f2f8f4; color: #198754; }
.flatpickr-day.slot-orange { background: #fff8f1; color: #fd7e14; }
.flatpickr-day.slot-red    { background: #fafafa; color: #adb5bd; opacity: .5; }
.flatpickr-day.slot-green:hover, .flatpickr-day.slot-orange:hover { background: #e9f5ee; transform: translateY(-1px); }

.slot-count {
    position: absolute;
    top: 0; right: -3px;
    font-size: 9px; font-weight: 600;
    padding: 2px 4px;
    border-radius: 10px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
    background: rgba(25,135,84,.12);
    color: #198754;
}

.flatpickr-day.slot-orange .slot-count { background: rgba(253,126,20,.15); color: #fd7e14; }
.flatpickr-day.slot-red .slot-count    { display: none; }

/* Gift card */
.giftcard-preview {
    background: linear-gradient(135deg, #6f42c1, #0d6efd);
    min-height: 200px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   VARIANT ATTRIBUTE BUTTONS
============================================================ */

/* ── Base commune ── */
.js-attribute {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    padding: 8px 10px;
    min-width: 64px;
    text-align: center;
    color: #333;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2;
}

.js-attribute:hover {
    border-color: #bbb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* ── État actif — anneau discret, fond très léger ── */
.js-attribute.active {
    border-color: #222 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,.12);
    background: #fafafa;
}

/* ── Désactivé ── */
.js-attribute:disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── SVG ── */
.attr-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attr-visual svg {
    width: 32px;
    height: 32px;
    color: #444;
    pointer-events: none;
    transition: color .15s;
}

.js-attribute.active .attr-visual svg {
    color: #111;
}

/* ── Image ── */
.attr-visual img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ── Couleur ── */
.attr-color-dot {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.08);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    transition: transform .15s, box-shadow .15s;
}

.js-attribute:hover .attr-color-dot {
    transform: scale(1.08);
}

.js-attribute.active .attr-color-dot {
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.1),
        0 0 0 2px #fff,
        0 0 0 4px #222;
    transform: scale(1.05);
}

/* ── Label ── */
.attr-label {
    font-size: 10px;
    font-weight: 500;
    color: #777;
    letter-spacing: .02em;
    text-transform: uppercase;
    max-width: 72px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .15s;
}

.js-attribute.active .attr-label {
    color: #111;
    font-weight: 600;
}

/* ── Bouton texte seul (sans visuel) ── */
.js-attribute:not(:has(.attr-visual)):not(:has(.attr-color-dot)) {
    min-width: auto;
    padding: 7px 16px;
    font-size: .85rem;
}

.js-attribute.active:not(:has(.attr-visual)):not(:has(.attr-color-dot)) {
    background: #111;
    color: #fff;
    border-color: #111;
}

.data-item__entity {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.data-item__entity-avatar {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.data-item__entity-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.data-item__entity-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(59, 94, 244, .1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 500;
    color: #3b5ef4;
}

.data-item__entity-info {
    flex: 1;
    min-width: 0;
}

.data-item__entity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.data-item__entity-name {
    font-size: .9rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-item__entity-name:hover { text-decoration: underline; }

.data-item__entity-badge {
    font-size: .7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(22, 163, 74, .1);
    color: #16a34a;
    white-space: nowrap;
}

.data-item__entity-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.data-item__entity-star { font-size: 11px; }
.data-item__entity-star--full  { color: #f59e0b; }
.data-item__entity-star--half  { color: #f59e0b; }
.data-item__entity-star--empty { color: #d1d5db; }

.data-item__entity-rating-value {
    font-size: .78rem;
    font-weight: 500;
    color: #374151;
    margin-left: 4px;
}

.data-item__entity-rating-count {
    font-size: .75rem;
    color: #9ca3af;
}

.data-item__entity-link {
    flex-shrink: 0;
    font-size: .78rem;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
}
.data-item__entity-link:hover { text-decoration: underline; }


 
.btn-report-product {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #999; background: none; border: none;
  padding: 0 0 0 5px; cursor: pointer; transition: color .2s;
  text-decoration: none;
}
.btn-report-product:hover { color: #e25454; }
.btn-report-product svg { opacity: .6; }
 
/* Overlay */
.report-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.report-modal-overlay[hidden] { display: none; }
 
/* Modal box */
.report-modal {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
 
.report-modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.report-modal__header h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1a1a1a; }
.report-modal__close {
  background: none; border: none; cursor: pointer; color: #999;
  padding: 4px; border-radius: 4px; display: flex; transition: color .2s;
}
.report-modal__close:hover { color: #333; }
 
.report-modal__body { padding: 1.25rem 1.5rem 1.5rem; }
.report-modal__intro { font-size: 13px; color: #777; margin: 0 0 1.25rem; line-height: 1.5; }
 
/* Raisons */
.report-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.reason-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid #ebebeb; transition: border-color .15s, background .15s;
}
.reason-option:hover { border-color: #c9c9c9; background: #fafafa; }
.reason-option input { display: none; }
.reason-option:has(input:checked) { border-color: #1a73e8; background: #f0f6ff; }
.reason-option__icon { font-size: 16px; flex-shrink: 0; }
.reason-option__label { font-size: 14px; color: #333; }
 
/* Message */
.report-message-wrap { margin-bottom: 1rem; position: relative; }
.report-message-wrap[hidden] { display: none; }
.report-message-wrap textarea { resize: none; font-size: 13px; }
.char-counter {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 11px; color: #aaa;
}
 
.report-modal__error {
  background: #fff2f2; color: #cc3333; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; margin-bottom: 1rem;
}
.report-modal__error[hidden] { display: none; }
 
.report-modal__actions {
  display: flex; justify-content: flex-end; gap: 8px;
}
.btn-loader .spin {
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
 
/* Succès */
.report-success {
  padding: 2rem 1.5rem; text-align: center;
}
.report-success[hidden] { display: none; }
.report-success__icon { color: #2ecc71; margin-bottom: 1rem; display: flex; justify-content: center; }
.report-success h4 { margin: 0 0 .5rem; font-size: 17px; color: #1a1a1a; }
.report-success p  { font-size: 14px; color: #666; margin: 0 0 1.25rem; }
 
@media (max-width: 480px) {
  .report-modal { border-radius: 12px 12px 0 0; margin-top: auto; }
  .report-modal-overlay { align-items: flex-end; }
}

.shops-detail .data-item__title h1 {font-size:30px!important}

/* Sur mobile : réorganiser l'ordre via flex */
@media (max-width: 768px) {

    /* L'offcanvas-body devient flex column */
    #shops-cartOffcanvas .offcanvas-body {
        display: flex;
        flex-direction: column;
    }

    /* Le layout (produits) prend l'espace restant mais pas infini */
    #shops-cartOffcanvas .shops-cart-layout {
        flex: 1 1 auto;
        overflow: hidden;
        min-height: 0;
    }

    /* Produits : hauteur réduite pour laisser place aux recos */
    #shops-cartOffcanvas .shops-cart-products {
        height: auto !important;
        max-height: calc(100vh - 460px);
        overflow-y: auto;
    }

    /* Sortir le cross-sell mobile du flux scroll en le repositionnant */
    #shops-cartOffcanvas .shops-cart-cross-sell-mobile {
        flex-shrink: 0;
        order: 10; /* passe après le layout */
        border-top: 1px solid #eee;
        background: #fff;
        padding: 8px 12px;
    }

    /* Mais il faut le "sortir" visuellement du scroll interne... */
    /* Hack : le shops-cart-main devient aussi flex */
    #shops-cartOffcanvas .shops-cart-main {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #shops-cartOffcanvas #cart-root-offcanvas {
        flex: 1 1 auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Cross-sell sort du scroll interne, se place en bas de shops-cart-main */
    #shops-cartOffcanvas .shops-cart-cross-sell-mobile {
        order: 99;
        flex-shrink: 0;
    }

    /* Cards compactes */
    .shops-cross-sell-mobile-list {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .shops-cross-sell-mobile-list::-webkit-scrollbar { display: none; }

    .shops-cross-sell-mobile-item .card { width: 95px !important; }
    .shops-cross-sell-mobile-item .card-img-top { height: 65px; object-fit: cover; }
    .shops-cross-sell-mobile-item .card-body { padding: 4px !important; }
    .shops-cross-sell-mobile-item .card-body .small { font-size: 10px; }
    .shops-cross-sell-mobile-item .btn { font-size: 10px; padding: 2px 4px; }
}

@media (max-width: 768px) {

    .shops-cart-cross-sell-mobile {
        position: relative;
        padding: 8px 12px 10px;
        border-top: 1px solid #eee;
    }

    .shops-cart-cross-sell-mobile .fw-semibold {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #888;
        margin-bottom: 6px;
    }

    .shops-cross-sell-slider {
        position: relative;
        overflow: hidden;
    }

    .shops-cross-sell-mobile-list {
        display: flex;
        transition: transform .28s ease;
        will-change: transform;
        gap: 0;
        overflow: visible !important;
        padding: 0 !important;
    }

    .shops-cross-sell-mobile-item {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: unset;
    }

    .cross-sell-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 8px;
    }

    .cross-sell-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: background .2s, transform .2s;
    }

    .cross-sell-dot.is-active {
        background: #111;
        transform: scale(1.2);
    }
}

/* Slide interne : image gauche + infos centre + bouton droite */
.cs-slide-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.cs-slide-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.cs-slide-body {
    flex: 1;
    min-width: 0;
}

.cs-slide-title {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-slide-attr {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-slide-price {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    margin-top: 2px;
}

.cs-slide-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1.5px solid #111;
    background: transparent;
    color: #111;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.cs-slide-btn:hover {
    background: #111;
    color: #fff;
}