/* Savvata — Professional Modal & Offcanvas Design (CSS only) */

/* ── Backdrop ── */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.offcanvas-backdrop.show {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

/* ── Shared close button ── */
.modal .icon-close-popup,
.offcanvas .icon-close-popup {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 10;
}

.modal .icon-close-popup:hover,
.offcanvas .icon-close-popup:hover {
    background: var(--primary, #db1215);
    border-color: var(--primary, #db1215);
    color: #fff;
}

/* ── Centered modals — login, register, forgot ── */
.form-sign-in .modal-dialog {
    max-width: 440px;
}

.form-sign-in .modal-dialog .modal-content {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-sign-in .header {
    margin: 0;
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    border-bottom: none;
}

.form-sign-in .header .demo-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.form-sign-in .header .icon-close-popup {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.form-sign-in .header .icon-close-popup:hover {
    background: var(--primary, #db1215);
    border-color: var(--primary, #db1215);
}

.form-sign-in .tf-login-form {
    padding: 24px 24px 28px;
}

.form-sign-in .tf-login-form form>div {
    margin-top: 14px;
}

.form-sign-in .tf-login-form form>div:first-child {
    margin-top: 0;
}

.form-sign-in .tf-login-form .tf-field.style-1 {
    margin-bottom: 4px;
}

.form-sign-in .tf-login-form .tf-field-input {
    border-color: #e0e0e0;
    border-radius: 6px;
}

.form-sign-in .tf-login-form .tf-field-input:focus {
    border-color: var(--main, #111);
}

.form-sign-in .tf-login-form form .btn-link {
    font-size: 12px;
    color: #252525;
    text-decoration: none !important;
    text-transform: capitalize;
    font-weight: 600;
}

.form-sign-in .tf-login-form form .btn-link:hover {
    color: var(--primary, #db1215);
}

.form-sign-in .tf-login-form form .bottom {
    flex-direction: column;
    gap: 12px;
}

.form-sign-in .tf-login-form form .bottom .tf-btn {
    height: 46px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
}

.form-sign-in .tf-login-form form .bottom .btn-link {
    font-size: 13px;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Quick Add modal ── */
#quick_add .modal-dialog {
    max-width: 520px;
}

#quick_add .modal-content.quick_add_modal {
    position: relative;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 0 !important;
    margin: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#quick_add .modal-content.quick_add_modal > .header {
    position: relative;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    min-height: 56px;
    margin: 0;
    padding: 0px 22px;
    border-bottom: 1px solid #f3f3f3;
    background: #fff;
}

#quick_add .modal-content.quick_add_modal > .header .title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    text-align: center;
}

#quick_add .modal-content.quick_add_modal > .header .icon-close-popup {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    color: #333;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 12;
}

#quick_add .modal-content.quick_add_modal > .header .icon-close-popup::before {
    display: block;
    line-height: 1;
}

#quick_add .modal-content.quick_add_modal > .header .icon-close-popup:hover {
    background: var(--primary, #db1215);
    border-color: var(--primary, #db1215);
    color: #fff;
    transform: rotate(90deg);
}

#quick_add .modal-content.quick_add_modal > .wrap {
    padding: 16px 24px 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#quick_add .modal-content.quick_add_modal > .wrap::-webkit-scrollbar {
    width: 4px;
}

#quick_add .modal-content.quick_add_modal > .wrap::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

#quick_add .modal-content.quick_add_modal > .savvata-modal-loader--quick-add {
    padding-top: 20px;
}

#quick_add .tf-product-info-item {
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

#quick_add .tf-product-info-item .image img {
    width: 88px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

#quick_add .tf-product-info-item .content a {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
    text-transform: capitalize;
}

#quick_add .price-on-sale {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary, #db1215);
}

#quick_add .compare-at-price {
    font-size: 13px;
    color: #999;
}

#quick_add .variant-picker-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

#quick_add .tf-product-info-buy-button .tf-btn {
    height: 46px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
}

/* ── Quick View modal ── */
#quick_view .modal-dialog {
    max-width: 960px;
}

#quick_view .modal-content.quick_view_modal {
    position: relative;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 0 !important;
    margin: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#quick_view .modal-content.quick_view_modal > .header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    margin: 0;
    padding: 0 22px;
    border-bottom: 1px solid #f3f3f3;
    background: #fff;
    z-index: 10;
}

#quick_view .modal-content.quick_view_modal > .header .title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    margin: 0;
}

#quick_view .modal-content.quick_view_modal > .header .icon-close-popup {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    color: #333;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 12;
}

#quick_view .modal-content.quick_view_modal > .header .icon-close-popup::before {
    display: block;
    line-height: 1;
}

#quick_view .modal-content.quick_view_modal > .header .icon-close-popup:hover {
    background: var(--primary, #db1215);
    border-color: var(--primary, #db1215);
    color: #fff;
    transform: rotate(90deg);
}

#quick_view .modal-content.quick_view_modal > .wrap {
    display: flex;
}

#quick_view .tf-product-media-wrap {
    position: relative;
    flex: 0 0 auto;
    max-width: 100%;
    width: min(50%, 68vh);
    background: #fafafa;
}

#quick_view .quick-view-swiper {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
}

#quick_view .quick-view-swiper .swiper-slide .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
}

#quick_view .quick-view-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

#quick_view .quick-view-swiper .button-style-arrow {
    z-index: 5;
}

#quick_view .tf-product-info-wrap .tf-product-info-list {
    padding: 32px 28px;
}

#quick_view .tf-product-info-title h5 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

#quick_view .tf-product-info-title h5 .link {
    text-transform: capitalize;
    letter-spacing: 0;
    font-weight: 600;
    color: #222;
}

#quick_view .tf-product-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

#quick_view .tf-product-info-buy-button .tf-btn {
    height: 46px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Shopping cart sidebar ── */
.modal-shopping-cart .modal-content {
    border-left: 1px solid #ebebeb;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.modal-shopping-cart .header {
    margin: 0;
    padding: 0 24px;
    height: 56px;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
}

.modal-shopping-cart .header .title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
}

.modal-shopping-cart .tf-mini-cart-threshold {
    margin: 0 24px;
    padding: 16px 0;
}

.modal-shopping-cart .tf-mini-cart-threshold .tf-progress-bar {
    height: 4px;
    border-radius: 4px;
    background: #eee;
}

.modal-shopping-cart .tf-mini-cart-threshold .tf-progress-bar span {
    background: var(--primary, #db1215);
    border-radius: 4px;
}

.modal-shopping-cart .tf-mini-cart-threshold .tf-progress-msg {
    font-size: 13px;
    margin-top: 12px;
    color: #666;
}

.modal-shopping-cart .tf-mini-cart-item {
    margin: 0 24px;
    padding: 16px 0;
    gap: 16px;
}

.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-image a {
    width: 72px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info a.title {
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0;
    color: #222;
    line-height: 1.4;
}

.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info .price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-remove {
    font-size: 11px;
    color: #999;
    text-underline-offset: 2px;
}

.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-remove:hover {
    color: var(--primary, #db1215);
}

.modal-shopping-cart .tf-minicart-recommendations {
    margin: 12px 24px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: none;
}

.modal-shopping-cart .tf-mini-cart-bottom-wrap {
    padding: 16px 24px 24px;
    border-top: 1px solid #ebebeb;
    background: #fafafa;
}

.modal-shopping-cart .tf-mini-cart-bottom-wrap .tf-cart-total {
    font-size: 16px;
    font-weight: 600;
}

.modal-shopping-cart .tf-mini-cart-bottom-wrap .tf-btn {
    height: 48px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
}

/* Mini cart empty state */
.modal-shopping-cart .tf-mini-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    min-height: 200px;
}

.modal-shopping-cart .tf-mini-cart-empty__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 50%;
    color: #ccc;
    font-size: 24px;
    margin-bottom: 16px;
}

.modal-shopping-cart .tf-mini-cart-empty p {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-shopping-cart .tf-mini-cart-empty .tf-btn {
    min-width: 160px;
    height: 42px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Mini cart quantity display */
.modal-shopping-cart .mini-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

.modal-shopping-cart .mini-cart-qty .qty-value {
    font-weight: 600;
    color: #111;
}

.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.modal-shopping-cart .tf-mini-cart-item + .tf-mini-cart-item {
    border-top: 1px solid #f5f5f5;
}

.modal-shopping-cart .tf-mini-cart-sroll {
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.modal-shopping-cart .tf-mini-cart-sroll::-webkit-scrollbar {
    width: 4px;
}

.modal-shopping-cart .tf-mini-cart-sroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Mini cart — mobile / tablet */
@media only screen and (max-width: 767px) {
    .modal-shopping-cart .modal-dialog {
        max-width: 100%;
    }

    .modal-shopping-cart .header {
        padding: 0 16px;
        height: 52px;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .modal-shopping-cart .header .title {
        font-size: 14px;
    }

    .modal-shopping-cart .header .icon-close-popup {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-shopping-cart .tf-mini-cart-threshold {
        margin: 0 16px;
        padding: 14px 0;
    }

    .modal-shopping-cart .tf-mini-cart-threshold .tf-progress-msg {
        font-size: 12px;
        line-height: 1.5;
    }

    .modal-shopping-cart .tf-mini-cart-item {
        margin: 0 16px;
        padding: 14px 0;
        gap: 12px;
    }

    .modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-image a {
        width: 64px;
        height: 86px;
    }

    .modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info a.title {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info .price {
        font-size: 13px;
    }

    .modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-remove {
        font-size: 12px;
        padding: 4px 0;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }

    .modal-shopping-cart .tf-minicart-recommendations {
        margin: 10px 16px;
        padding: 14px;
    }

    .modal-shopping-cart .tf-mini-cart-bottom-wrap {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    .modal-shopping-cart .tf-mini-cart-bottom-wrap .tf-cart-totals-discounts .tf-totals-total-value {
        font-size: 18px;
    }

    .modal-shopping-cart .tf-mini-cart-bottom-wrap .tf-cart-tax {
        font-size: 12px;
        line-height: 1.5;
    }

    .modal-shopping-cart .tf-mini-cart-bottom-wrap .tf-cart-checkbox label {
        font-size: 12px;
        line-height: 1.4;
    }

    .modal-shopping-cart .tf-mini-cart-view-checkout {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .modal-shopping-cart .tf-mini-cart-view-checkout .tf-btn {
        height: 46px;
        font-size: 12px;
    }

    .modal-shopping-cart .tf-mini-cart-empty {
        padding: 40px 20px;
        min-height: 180px;
    }

    .modal-shopping-cart .tf-mini-cart-empty .tf-btn {
        width: 100%;
        min-width: 0;
    }

    .modal-shopping-cart .tf-mini-cart-wrap .tf-mini-cart-main .tf-mini-cart-sroll {
        max-height: calc(100vh - 320px);
        max-height: calc(100dvh - 320px);
    }
}

@media only screen and (max-width: 380px) {
    .modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-image a {
        width: 56px;
        height: 75px;
    }

    .modal-shopping-cart .tf-mini-cart-bottom-wrap .tf-mini-cart-view-checkout .tf-btn {
        letter-spacing: 0.04em;
    }
}

/* ── Product info modals (size chart, ask, delivery, share) ── */
.tf-product-modal .modal-dialog .modal-content,
.modalDemo.tf-product-modal .modal-content {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.tf-product-modal .modal-dialog .modal-content .header,
#find_size .header {
    margin: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    border-bottom: none;
}

.tf-product-modal .modal-dialog .modal-content .header .demo-title,
#find_size .header .demo-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0;
}

.tf-product-modal .modal-dialog .modal-content .header .icon-close-popup,
#find_size .header .icon-close-popup {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tf-product-modal .modal-dialog .modal-content .header .icon-close-popup:hover,
#find_size .header .icon-close-popup:hover {
    background: var(--primary, #db1215);
    border-color: var(--primary, #db1215);
}

#find_size .tf-rte {
    padding: 24px;
}

#find_size .tf-sizeguide-table {
    border: 1px solid #ebebeb;
    border-radius: 6px;
    overflow: hidden;
}

#find_size .tf-sizeguide-table th {
    background: #f7f7f7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #333;
}

#find_size .tf-sizeguide-table td {
    font-size: 13px;
    color: #555;
}

#find_size .tf-page-size-chart-content .title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-top: 12px;
}

#find_size .tf-page-size-chart-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ── Newsletter popup ── */
.modal-newleter .modal-dialog {
    max-width: 480px;
}

.modal-newleter .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-newleter .modal-content .modal-top .icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-newleter .modal-content .modal-top .icon:hover {
    background: var(--primary, #db1215);
    color: #fff;
    border-color: var(--primary, #db1215);
}

.modal-newleter .modal-content .modal-bottom {
    padding: 24px;
}

.modal-newleter .modal-content .modal-bottom h6 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-top: 0;
}

.modal-newleter .modal-content .modal-bottom .tf-btn {
    height: 46px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Mobile menu offcanvas ── */
.canvas-mb {
    border-right: 1px solid #ebebeb !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.canvas-mb .icon-close-popup {
    top: 16px;
    left: 16px;
}

.canvas-mb .nav-ul-mb .item-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid #f3f3f3;
}

.canvas-mb .mb-bottom {
    border-top: 1px solid #ebebeb;
    padding: 16px;
    background: #fafafa;
}

/* ── Search offcanvas ── */
#canvasSearch.canvas-search,
.offcanvas.canvas-search {
    width: 100% !important;
    max-width: 480px;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #ebebeb !important;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.14);
    background: #fff;
}

#canvasSearch .canvas-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

#canvasSearch .tf-search-head {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border-bottom: none;
    background: #fff;
    box-shadow: none;
}

#canvasSearch .tf-search-head .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    margin: 0;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.2;
    border-bottom: 1px solid #f3f3f3;
}

#canvasSearch .tf-search-head .close {
    width: auto;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

#canvasSearch .tf-search-head .close .icon-close-popup {
    position: static;
}

#canvasSearch .tf-search-head .close .icon-close-popup:hover {
    transform: rotate(90deg);
}

#canvasSearch .tf-search-sticky {
    padding: 18px 22px 20px;
    margin: 0;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

#canvasSearch .tf-mini-search-frm {
    position: relative;
    display: flex;
    align-items: center;
}

#canvasSearch .tf-mini-search-frm fieldset.text {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

#canvasSearch .tf-mini-search-frm input.search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    line-height: 1.4;
    color: #111;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#canvasSearch .tf-mini-search-frm input.search-input:focus {
    border-color: var(--main, #111);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

#canvasSearch .tf-mini-search-frm input.search-input::placeholder {
    font-size: 14px;
    line-height: 1.4;
    color: #999;
}

#canvasSearch .tf-mini-search-frm button {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    background: transparent;
    border: 0;
    pointer-events: none;
}

#canvasSearch .canvas-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    background: #fff;
}

#canvasSearch .canvas-body::-webkit-scrollbar {
    width: 4px;
}

#canvasSearch .canvas-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

#canvasSearch .tf-search-content {
    padding: 24px 22px 32px;
}

#canvasSearch .tf-search-content-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
    line-height: 1.2;
}

#canvasSearch .tf-col-quicklink {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f3f3f3;
}

#canvasSearch.has-search-results .tf-col-quicklink {
    display: none;
}

#canvasSearch .tf-quicklink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#canvasSearch .tf-quicklink-item {
    margin: 0;
}

#canvasSearch .tf-quicklink-item a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    text-decoration: none;
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#canvasSearch .tf-quicklink-item a:hover {
    color: #fff;
    background: var(--main, #111);
    border-color: var(--main, #111);
}

#canvasSearch .tf-search-hidden-inner {
    padding-top: 0;
}

#canvasSearch .canvas-search__empty,
#canvasSearch .canvas-search__loading {
    margin: 0;
    padding: 28px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #888;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #e5e5e5;
    border-radius: 8px;
}

#canvasSearch .canvas-search__loading {
    color: #666;
}

#canvasSearch .tf-loop-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#canvasSearch .tf-loop-item:last-child {
    margin-bottom: 0;
}

#canvasSearch .tf-loop-item:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: none;
    margin-bottom: 10px;
}

#canvasSearch .tf-loop-item:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

#canvasSearch .tf-loop-item .image {
    flex-shrink: 0;
    width: 72px;
    height: 90px;
    max-height: none;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

#canvasSearch .tf-loop-item .image a {
    display: block;
    width: 100%;
    height: 100%;
}

#canvasSearch .tf-loop-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#canvasSearch .tf-loop-item .content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

#canvasSearch .tf-loop-item .content > a {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

#canvasSearch .tf-loop-item .content > a:hover {
    color: var(--primary, #db1215);
}

#canvasSearch .tf-loop-item .tf-product-info-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

#canvasSearch .tf-loop-item .tf-product-info-price .price-on-sale {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #db1215);
}

#canvasSearch .tf-loop-item .tf-product-info-price .compare-at-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

#canvasSearch .tf-loop-item .search-stock-status.out-of-stock {
    display: inline-block;
    margin-top: 2px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    border-radius: 2px;
}

/* ── Shop filter offcanvas ── */
.toolbar-shop-mobile {
    border-right: 1px solid #ebebeb !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.toolbar-shop-mobile .icon-close-popup {
    top: 16px;
    left: 16px;
}

/* ── Compare color modal ── */
#compare_color .modal-dialog .modal-content {
    border-radius: 8px;
    border: 1px solid #ebebeb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#compare_color .modal-dialog .header {
    padding: 20px 24px;
    border-bottom: 1px solid #ebebeb;
}

#compare_color .modal-dialog .header .demo-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Variant pickers inside modals ── */
.modal .size-btn {
    border-radius: 4px;
    border-color: #e0e0e0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.modal .size-btn.active,
.modal .size-btn:hover {
    border-color: var(--main, #111);
    background: #f7f7f7;
}

.modal .color-btn .btn-checkbox {
    border: 2px solid #e0e0e0;
}

.modal .color-btn.active .btn-checkbox,
.modal .color-btn:hover .btn-checkbox {
    border-color: var(--main, #111);
}

.modal .wg-quantity {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.modal .wg-quantity .btn-quantity {
    background: #f5f5f5;
    transition: background 0.2s ease;
}

.modal .wg-quantity .btn-quantity:hover {
    background: #eee;
}

/* ── Responsive ── */
@media only screen and (max-width: 767px) {
    .form-sign-in .modal-dialog {
        max-width: calc(100% - 32px);
        margin: 16px auto;
    }

    .form-sign-in .header {
        padding: 18px 20px 14px;
    }

    .form-sign-in .header .demo-title {
        font-size: 16px;
    }

    .form-sign-in .tf-login-form {
        padding: 20px 20px 24px;
    }

    #quick_add .modal-dialog,
    #quick_view .modal-dialog {
        max-width: calc(100% - 24px);
        margin: 12px auto;
    }

    #quick_add .modal-content>.wrap {
        padding: 12px 16px 20px;
    }

    #quick_view .modal-content.quick_view_modal > .wrap {
        flex-direction: column;
    }

    #quick_view .tf-product-media-wrap {
        width: 100% !important;
    }

    #quick_view .quick-view-swiper,
    #quick_view .quick-view-swiper .swiper-slide .item,
    #quick_view .quick-view-swiper .swiper-slide img {
        min-height: 280px;
    }

    #quick_view .tf-product-info-wrap .tf-product-info-list {
        position: relative;
        padding: 20px 16px 24px;
        max-height: 50vh;
        overflow-y: auto;
    }

    #find_size .tf-page-size-chart-content {
        grid-template-columns: 1fr;
    }

    #find_size .tf-rte {
        padding: 16px;
    }

    .modal-shopping-cart .modal-content {
        max-width: 100% !important;
    }

    .modal-shopping-cart .header,
    .modal-shopping-cart .tf-mini-cart-threshold,
    .modal-shopping-cart .tf-mini-cart-item,
    .modal-shopping-cart .tf-minicart-recommendations,
    .modal-shopping-cart .tf-mini-cart-bottom-wrap {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .modal-shopping-cart .header {
        padding: 0 16px;
    }

    .canvas-search,
    #canvasSearch.canvas-search {
        max-width: 100% !important;
    }

    #canvasSearch .tf-search-head .title {
        min-height: 50px;
        padding: 0 16px;
        font-size: 14px;
    }

    #canvasSearch .tf-search-sticky {
        padding: 14px 16px 16px;
    }

    #canvasSearch .tf-search-content {
        padding: 20px 16px 28px;
    }
}

@media only screen and (max-width: 575px) {
    #quick_add .modal-content.quick_add_modal {
        margin: 12px;
        border-radius: 6px;
    }

    #quick_add .modal-content.quick_add_modal > .header {
        min-height: 50px;
    }

    #quick_add .modal-content.quick_add_modal > .header .icon-close-popup {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 12px;
    }

    #quick_add .modal-content.quick_add_modal > .wrap {
        padding: 14px 16px 20px;
    }

    #quick_view .modal-content.quick_view_modal {
        margin: 12px;
        border-radius: 6px;
    }

    #quick_view .modal-content.quick_view_modal > .header {
        min-height: 50px;
    }

    #quick_view .modal-content.quick_view_modal > .header .icon-close-popup {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 12px;
    }

    #quick_add .tf-product-info-item .image img {
        width: 72px;
        height: 90px;
    }

    #quick_add .tf-product-info-item .content a {
        font-size: 13px;
    }

    .modal-newleter .modal-dialog {
        max-width: calc(100% - 32px);
        margin: 16px auto;
    }
}

/* ── Popup modal loader (Quick Add / Quick View) ── */
@keyframes savvata-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

.savvata-modal-loader {
    position: relative;
    padding: 28px 24px 32px;
    min-height: 220px;
    background: #fff;
}

.savvata-modal-loader--quick-view {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    min-height: 420px;
    padding: 0;
}

.savvata-modal-loader--quick-view .savvata-modal-loader__media {
    width: 50%;
    min-height: 420px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: savvata-shimmer 1.4s ease-in-out infinite;
}

.savvata-modal-loader--quick-view .savvata-modal-loader__info {
    width: 50%;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.savvata-modal-loader--quick-view .savvata-modal-loader__label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.savvata-modal-loader--quick-add {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.savvata-modal-loader__row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.savvata-modal-loader__thumb {
    width: 88px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: savvata-shimmer 1.4s ease-in-out infinite;
}

.savvata-modal-loader__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.savvata-modal-loader__line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: savvata-shimmer 1.4s ease-in-out infinite;
}

.savvata-modal-loader__line--title {
    height: 14px;
    width: 85%;
}

.savvata-modal-loader__line--price {
    width: 45%;
    height: 16px;
}

.savvata-modal-loader__line--short {
    width: 60%;
}

.savvata-modal-loader__line--full {
    width: 100%;
    height: 10px;
}

.savvata-modal-loader__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.savvata-modal-loader__chips span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: savvata-shimmer 1.4s ease-in-out infinite;
}

.savvata-modal-loader__btn {
    height: 46px;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: savvata-shimmer 1.4s ease-in-out infinite;
}

.savvata-modal-loader__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #888;
    text-transform: uppercase;
}

.savvata-modal-loader__label::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--primary, #db1215);
    border-radius: 50%;
    animation: savvata-spin 0.7s linear infinite;
    flex-shrink: 0;
}

#quick_add .modal-content:has(.savvata-modal-loader),
#quick_view .modal-content:has(.savvata-modal-loader) {
    padding: 0;
    overflow: hidden;
}

@media only screen and (max-width: 767px) {

    .savvata-modal-loader--quick-view .savvata-modal-loader__media,
    .savvata-modal-loader--quick-view .savvata-modal-loader__info {
        width: 100%;
    }

    .savvata-modal-loader--quick-view .savvata-modal-loader__media {
        min-height: 280px;
    }

    .savvata-modal-loader--quick-view .savvata-modal-loader__info {
        padding: 24px 20px 48px;
    }

    .savvata-modal-loader--quick-view {
        min-height: auto;
    }
}
