/*
 * Shared responsive safeguards for customer-facing pages.
 * This file is loaded by both public layouts and intentionally does not affect
 * the administration layout.
 */

html,
body {
    width: 100%;
    max-width: 100%;
}

/* Keep the cart actions on one balanced row in the LTR sidebar. */
html[dir="ltr"] #cartModalContainer .tpcart__checkout-btn {
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 8px;
    padding: 0;
}

html[dir="ltr"] #cartModalContainer .tpcart__checkout-btn > .tpcart-btn,
html[dir="ltr"] #cartModalContainer .tpcart__checkout-btn > .tpcheck-btn {
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 7px;
    white-space: nowrap;
}

/* User profile images should always render as true avatars. */
.tpreview__comment-img {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f7;
    box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(15, 35, 82, .14);
}

.tpreview__comment-img .review-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

html[dir="rtl"] .tpreview__comment-img {
    margin-right: 0 !important;
    margin-left: 20px;
}

/* The artwork spells C-O-R-E physically left-to-right in both languages. */
html[dir="rtl"] .core-values-row {
    direction: ltr;
}

html[dir="rtl"] .core-values-row .tpbanner__main-content {
    direction: rtl !important;
}

body {
    overflow-x: hidden;
}

main,
.body-wrapper,
.body-wrapper > * {
    min-width: 0;
}

img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

/* Public desktop header: keep all navigation on one line at the 1200px breakpoint. */
#header-sticky .client-header-row {
    flex-wrap: nowrap;
}

#header-sticky .client-header-nav .header__menu > nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

#header-sticky .client-header-nav .header__menu > nav > ul > li > a {
    white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    #header-sticky .client-header-logo {
        flex: 0 0 20%;
        max-width: 20%;
    }

    #header-sticky .client-header-nav {
        flex: 0 0 60%;
        max-width: 60%;
    }

    #header-sticky .client-header-actions {
        flex: 0 0 20%;
        max-width: 20%;
    }

    #header-sticky .client-header-nav .header__menu > nav > ul > li > a {
        padding-inline: 7px;
        font-size: 15px;
    }

    #header-sticky .client-header-logo .header__logo img {
        width: 78px;
    }

    #header-sticky .client-header-logo .header__logo span {
        font-size: 19px;
    }

    #header-sticky .client-header-actions .tp-lang-toggle > span {
        display: none !important;
    }

    #header-sticky .client-header-actions .tp-lang-toggle {
        padding-inline: 9px !important;
    }

    #header-sticky .client-header-actions .header__info-lang,
    #header-sticky .client-header-actions .header__info-search,
    #header-sticky .client-header-actions .header__info-user,
    #header-sticky .client-header-actions .header__info-cart {
        margin-inline-start: 6px !important;
        margin-left: 6px !important;
    }
}

/* Product mega-menu hierarchy and its category action links. */
#header-sticky .main-menu ul li .mega-menu {
    gap: clamp(18px, 3vw, 48px);
    overflow: hidden;
}

#header-sticky .main-menu ul li.has-megamenu:focus-within > .sub-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
}

#header-sticky .main-menu ul li .mega-menu > li {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

#header-sticky .main-menu ul li .mega-menu li .mega-menu-title {
    margin-bottom: 12px;
    color: #244288;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .025em;
}

#header-sticky .main-menu ul li .mega-menu li ul li a {
    padding-block: 7px;
    font-size: 16px;
    line-height: 1.35;
}

#header-sticky .main-menu ul li .mega-menu li ul li a.show-more-link,
.tpsidebar-categories a.show-more-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 8px 14px !important;
    border: 1px solid #3360c9;
    border-radius: 999px;
    background: #eef3ff;
    color: #244288;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

#header-sticky .main-menu ul li .mega-menu li ul li a.show-more-link:hover,
.tpsidebar-categories a.show-more-link:hover {
    padding-inline: 14px !important;
    background: #244288;
    color: #fff;
}

html[dir="rtl"] #header-sticky .main-menu ul li .mega-menu,
html[dir="rtl"] #header-sticky .main-menu ul li .mega-menu li,
html[dir="rtl"] #header-sticky .main-menu ul li .mega-menu li ul,
html[dir="rtl"] #header-sticky .main-menu ul li .mega-menu li ul li {
    text-align: right;
}

.tpsidebar-categories .mobile-category-title {
    display: inline-block;
    margin-bottom: 6px;
    color: #244288;
    font-size: 17px;
    line-height: 1.35;
}

html[dir="rtl"] .tpsidebar-categories ul.ps-3 {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

/* Homepage product cards: preserve card gaps and reserve space for hover details. */
.weekly-product-area .tpproduct-active {
    padding-bottom: 150px !important;
    margin-bottom: 0 !important;
}

.weekly-product-area .tpproduct__arrow:hover .swiper-container {
    padding-bottom: 150px !important;
    margin-bottom: 0 !important;
}

.weekly-product-area .swiper-slide {
    padding: 1px;
}

.weekly-product-area .tpproduct {
    background: #fff !important;
    border-color: #e4e9f2 !important;
    box-shadow: 0 7px 22px rgba(36, 66, 136, .06);
}

.weekly-product-area .tpproduct__content,
.weekly-product-area .tpproduct__hover-text,
.weekly-product-area .tpproduct:hover .tpproduct__hover-text,
.weekly-product-area.whight-product .tpproduct:hover .tpproduct__hover-text {
    background: #fff !important;
    background-color: #fff !important;
}

.weekly-product-area .tpproduct__hover-text {
    top: 100%;
    bottom: auto !important;
    overflow: hidden;
    padding-top: 18px !important;
    border-color: #e4e9f2 !important;
    box-shadow: 0 16px 28px rgba(36, 66, 136, .13) !important;
}

.weekly-product-area .tpproduct:hover .tpproduct__hover-text,
.weekly-product-area.whight-product .tpproduct:hover .tpproduct__hover-text,
.weekly-product-area .tpproduct:focus-within .tpproduct__hover-text {
    top: 100%;
    bottom: auto !important;
}

.weekly-product-area .tpproduct:focus-within .tpproduct__hover-text {
    opacity: 1;
    visibility: visible;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #e4e9f2;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.weekly-product-area .tpproduct__all-item {
    position: relative !important;
    z-index: 30 !important;
    margin-top: 18px !important;
    margin-bottom: 0;
}

/* Keep both promotional cards identical at the 1336px desktop breakpoint. */
.weekend-banner-area .row {
    align-items: stretch;
}

.weekend-banner-area [class*="col-"] {
    display: flex;
}

.weekend-banner-area .tpbanner__main,
.weekend-banner-area .tpbanner__main-thumb {
    width: 100%;
    height: 100%;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .weekend-banner-area .tpbanner__main-thumb {
        min-height: 367px;
    }

    .weekend-banner-area .tpbanner__main-content {
        display: flex;
        min-height: 367px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-bottom: 40px;
    }
}

.weekly-product-area .tpproduct__all-item a {
    display: inline-flex !important;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border: 1px solid #244288;
    border-radius: 999px;
    background: #244288;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(36, 66, 136, .16);
}

.weekly-product-area .tpproduct__all-item a:hover,
.weekly-product-area .tpproduct__all-item a:focus-visible {
    background: #fff;
    color: #244288 !important;
}

html[dir="rtl"] .weekly-product-area .tpproduct__descrip ul li {
    padding-right: 10px;
    padding-left: 0;
}

html[dir="rtl"] .weekly-product-area .tpproduct__descrip ul li::before {
    right: 0;
    left: auto;
}

/* Newsletter: input and action remain separate, aligned controls in both directions. */
.subscribe-area .tpsubscribe__item {
    padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 50px);
}

.subscribe-area .tpsubscribe__item > .row {
    align-items: center;
    row-gap: 20px;
}

.subscribe-area .tpsubscribe__content p {
    margin-bottom: 0;
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.45;
}

.subscribe-area .tpsubscribe__form {
    width: 100%;
    margin: 0 !important;
}

.subscribe-area .tpsubscribe__form form.newsletter-form {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.subscribe-area .tpsubscribe__form input,
html[dir="rtl"] .subscribe-area .tpsubscribe__form input {
    width: 100% !important;
    min-width: 0;
    height: 52px;
    padding: 5px 16px 5px 48px !important;
    border: 1px solid #d8dfeb;
    border-radius: 12px;
    background: #fff;
    color: #26395b;
    text-align: left !important;
    direction: ltr !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.subscribe-area .tpsubscribe__form input:focus {
    border-color: #3360c9;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(51, 96, 201, .12);
}

.subscribe-area .tpsubscribe__form span,
html[dir="rtl"] .subscribe-area .tpsubscribe__form span {
    top: 26px !important;
    right: auto !important;
    left: 17px !important;
    transform: translateY(-50%) !important;
    pointer-events: none;
}

@media (min-width: 480px) {
    html[dir="rtl"] .subscribe-area .tpsubscribe__form span {
        right: auto !important;
        left: 159px !important;
    }
}

.subscribe-area .tpsubscribe__form-btn,
html[dir="rtl"] .subscribe-area .tpsubscribe__form-btn {
    position: static !important;
    display: inline-flex;
    min-width: 132px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 12px 22px;
    border: 1px solid #244288;
    border-radius: 12px;
    transform: none !important;
    white-space: nowrap;
}

.subscribe-area .tpsubscribe__form-btn:hover,
.subscribe-area .tpsubscribe__form-btn:focus-visible {
    background: #fff;
    color: #244288;
}

.tpsideinfo,
.tpcartinfo,
.ltn__utilize {
    max-width: 100vw;
}

.tpfooter__copyright-text,
.tpfooter__phone-num,
.tp-breadcrumb__list,
.tpproduct__content-title,
.tplist__content-title {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .tpshop__top {
        margin-inline-start: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tpfooter__top {
        padding-top: 80px !important;
    }

    .tplist__product {
        gap: 18px;
    }
}

@media (max-width: 767.98px) {
    .weekly-product-area .tpproduct-active,
    .weekly-product-area .tpproduct__arrow:hover .swiper-container {
        padding-bottom: 0 !important;
    }

    .weekly-product-area .tpproduct__hover-text,
    .weekly-product-area .tpproduct:hover .tpproduct__hover-text {
        position: static !important;
        bottom: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-top: 1px solid #edf0f5 !important;
        border-radius: 0 0 12px 12px;
        box-shadow: none !important;
    }

    .weekly-product-area .tpproduct__all-item {
        margin-top: 24px !important;
        text-align: center !important;
    }

    .tp-breadcrumb__list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
    }

    .product__filter-content .row {
        row-gap: 16px;
    }

    .product__item-count {
        text-align: center;
    }

    .product__navtabs {
        justify-content: center !important;
    }

    .tp-shop-selector,
    .tp-shop-selector form,
    .tp-shop-selector select {
        width: 100%;
    }

    .tplist__product {
        flex-direction: column;
        align-items: stretch !important;
    }

    .tplist__product-img {
        align-self: center;
        margin-inline: 0 !important;
    }

    .tplist__product-img img {
        width: auto !important;
        max-width: 100%;
    }

    .tpdescription__box {
        padding: 24px 16px !important;
    }

    .pd-custom-tabs {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .pd-custom-tabs .nav-item {
        flex: 0 0 auto;
    }

    #nav-details .d-flex.align-items-start {
        flex-wrap: wrap;
        gap: 4px;
    }

    #nav-details [style*="min-width: 160px"] {
        width: 100%;
        min-width: 0 !important;
    }

    .checkout-coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .checkout-coupon input,
    .checkout-coupon button {
        width: 100%;
        margin: 0 !important;
    }

    .your-order {
        padding-inline: 16px !important;
    }

    .tpfooter__copyright-text {
        display: block;
        line-height: 1.8;
    }

    .tp-btn {
        white-space: normal;
    }

    /* Cart rows become readable cards instead of a 300%-wide table. */
    .cart-area .table-responsive {
        overflow: visible;
    }

    .cart-area .table-content table,
    .cart-area .table-content tbody,
    .cart-area .table-content tr,
    .cart-area .table-content td {
        display: block;
        width: 100% !important;
    }

    .cart-area .table-content table {
        border: 0;
        background: transparent;
    }

    .cart-area .table-content thead {
        display: none;
    }

    .cart-area .table-content tr[data-cart-id] {
        margin-bottom: 18px;
        overflow: hidden;
        border: 1px solid var(--tp-border-1, #e5e7eb);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
    }

    .cart-area .table-content tr[data-cart-id] td {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 14px 16px;
        border-top: 0;
        border-right: 0;
        text-align: center !important;
    }

    .cart-area .table-content tr[data-cart-id] td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #475569;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
    }

    .cart-area .table-content tr[data-cart-id] td.product-thumbnail {
        display: block;
        text-align: center !important;
    }

    .cart-area .table-content tr[data-cart-id] td.product-thumbnail::before {
        content: none;
    }

    .cart-area .table-content tr[data-cart-id] td.product-thumbnail img {
        width: min(140px, 45vw);
    }

    .cart-area .table-content td.product-quantity {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cart-area #emptyCartRow {
        border: 1px solid var(--tp-border-1, #e5e7eb);
        border-radius: 12px;
        background: #fff;
    }

    .cart-area #emptyCartRow td {
        padding: 28px 16px;
        border: 0;
        text-align: center !important;
    }

    .cart-area #emptyCartRow img {
        display: block;
        width: min(150px, 45vw);
        margin: 0 auto 12px;
    }

    .coupon-all {
        display: grid;
        gap: 15px;
        margin-top: 28px;
    }

    .coupon,
    .coupon2 {
        float: none;
        margin-top: 0;
    }

    .coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    #coupon_code {
        width: 100%;
        margin: 0;
    }

    .coupon2 .tp-btn,
    .cart-page-total > .tp-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .cart-page-total {
        padding-top: 35px;
    }

    .cart-page-total > ul > li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-inline: 18px;
    }

    .cart-page-total ul > li > span,
    .cart-page-total ul > li > bdi {
        float: none;
        text-align: end;
    }
}

@media (max-width: 479.98px) {
    .subscribe-area .tpsubscribe__form form.newsletter-form {
        grid-template-columns: 1fr;
    }

    .subscribe-area .tpsubscribe__form-btn,
    html[dir="rtl"] .subscribe-area .tpsubscribe__form-btn {
        width: 100% !important;
    }

    .subscribe-area .tpsubscribe__content p {
        text-align: center !important;
    }

    .checkout-coupon,
    .coupon {
        grid-template-columns: 1fr;
    }

    .checkout-coupon button,
    .coupon .tp-btn {
        width: 100%;
    }

    .tpfooter__top {
        padding-top: 60px !important;
    }
}
/* Career cards use a logical gap so icon/text spacing is correct in LTR and RTL. */
.tp-career-details {
    gap: 30px;
    align-items: flex-start;
}

.tp-career-details-img {
    margin-inline: 0 !important;
}

.tp-career-details-text {
    flex: 1 1 auto;
    min-width: 0;
}

html[dir="rtl"] .tp-career-details-text {
    text-align: right;
}

@media (max-width: 767px) {
    .tp-career-details {
        gap: 20px;
    }
}

/* Keep product-card actions readable in both languages, including narrow cards. */
.tpproduct__hover-btn .addToCartForm {
    width: 100%;
    text-align: center;
}

.tpproduct__hover-btn .tp-btn-2 {
    width: min(100%, 220px);
    padding-inline: 16px;
    white-space: nowrap;
}

/* Drawers must remain above the sticky mobile header (z-index: 99999). */
.tpsideinfo {
    display: block;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0 12px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    z-index: 100001;
}

.tpsideinfo__close {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    z-index: 3;
    width: calc(100% + 24px);
    max-width: none;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 -12px;
    flex-shrink: 0;
}

.tpsideinfo__content {
    width: 100%;
    min-height: auto;
    padding: 0;
    overflow: visible;
    touch-action: pan-y;
}

/* Keep the menu plugin from creating a second competing scroll area. */
.tpsideinfo__content .mean-nav {
    max-height: none;
    overflow: visible;
}

/* MeanMenu marks only the item whose +/- control was activated as opened.
   Keep every cloned submenu collapsed until that state is present. */
.tpsideinfo__content .mean-container .mean-nav ul ul {
    display: none !important;
}

.tpsideinfo__content .mean-container .mean-nav li.dropdown-opened > ul {
    display: block !important;
}

/* Mobile navigation uses logical alignment so hierarchy remains readable in
   both directions. The inline-end space keeps labels clear of +/- controls. */
.tpsideinfo__content .mean-nav ul li,
.tpsideinfo__content .mean-nav ul li a:not(.mean-expand) {
    float: none;
}

.tpsideinfo__content .mean-nav ul li a:not(.mean-expand) {
    box-sizing: border-box;
    padding-block: 10px;
    padding-inline-start: 0;
    padding-inline-end: 38px;
    text-align: start;
}

.tpsideinfo__content .mean-nav ul ul li a:not(.mean-expand) {
    padding-inline-start: 16px;
}

.tpsideinfo__content .mean-nav ul ul ul li a:not(.mean-expand) {
    padding-inline-start: 32px;
}

html[dir="rtl"] .tpsideinfo {
    right: 0;
    left: auto;
    direction: rtl;
    transform: translateX(120%);
}

html[dir="rtl"] .tpsideinfo.tp-sidebar-opened {
    transform: translateX(0);
}

html[dir="rtl"] .tpsideinfo .mean-container .mean-nav,
html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul,
html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul li {
    direction: rtl;
    text-align: right !important;
}

html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul li {
    float: right !important;
}

html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul li > a:not(.mean-expand) {
    float: right !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 38px !important;
    text-align: right !important;
    direction: rtl;
}

html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul ul li > a:not(.mean-expand) {
    padding-right: 16px !important;
}

html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul ul ul li > a:not(.mean-expand) {
    padding-right: 32px !important;
}

html[dir="rtl"] .tpsideinfo .mean-container .mean-nav ul li > a.mean-expand {
    right: auto !important;
    left: 0 !important;
    text-align: center !important;
}

html[dir="rtl"] .tpsideinfo .tpsidebar-categories,
html[dir="rtl"] .tpsideinfo .tpsidebar-categories ul,
html[dir="rtl"] .tpsideinfo .tpsidebar-categories ul li,
html[dir="rtl"] .tpsideinfo .tpsidebar-categories ul li > a,
html[dir="rtl"] .tpsideinfo .tpsideinfo__account-link,
html[dir="rtl"] .tpsideinfo .tpsideinfo__account-link a {
    direction: rtl;
    text-align: right !important;
}

html[dir="rtl"] .tpsideinfo__search form input {
    padding-right: 20px;
    padding-left: 45px;
    text-align: right;
}

html[dir="rtl"] .tpsideinfo__search button {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .tpsideinfo__nabtab .nav {
    direction: rtl;
}

html[dir="rtl"] .tpsideinfo__nabtab .nav li {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="rtl"] .tpsideinfo__nabtab .nav li:last-child {
    margin-left: 0;
}

html[dir="rtl"] .tpsideinfo__account-link a i,
html[dir="rtl"] .tpsideinfo__wishlist-link a i {
    margin-right: 0;
    margin-left: 10px;
}

.tpsideinfo__close i {
    margin: 0 !important;
}

html[dir="rtl"] .tpsideinfo__close {
    direction: rtl;
}

.body-overlay.opened {
    z-index: 100000;
}

/* Use the physical top-right corner for Arabic drawer controls as requested. */
html[dir="rtl"] .tpcart__close {
    right: 14px !important;
    left: auto !important;
}

.tpcart__close {
    display: inline-flex;
    z-index: 4;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36, 66, 136, .18);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(36, 66, 136, .12);
}

html[dir="rtl"] .tpcart__title {
    padding-right: 58px;
}

.cartbody-overlay.opened {
    z-index: 100000;
}

html[dir="rtl"] .tpcart__del {
    order: -1;
    margin-inline-start: 0;
    margin-inline-end: 10px;
}

@media (max-width: 767.98px) {
    /* Stack the two homepage promotions with breathing room on phones. */
    .weekend-banner-area > .container > .row {
        row-gap: 18px;
    }

    html[dir="rtl"] .weekend-banner-area .tpbanner__main-content {
        display: flex;
        width: 58%;
        min-height: 258px;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        margin-right: auto;
        margin-left: 0;
        padding: 28px 14px !important;
        text-align: right;
        direction: rtl;
    }

    html[dir="rtl"] .banner-area .tpbanner__bg3 {
        min-height: 258px;
        padding: 38px 18px 24px !important;
    }

    html[dir="rtl"] .banner-area .tpbanner__bg3 .tpbanner__bg__second-content {
        position: absolute;
        top: 38px;
        right: auto !important;
        left: 22px !important;
        float: none !important;
        width: 48% !important;
        max-width: 48% !important;
        margin: 0 !important;
        text-align: right !important;
        direction: rtl !important;
    }

    html[dir="rtl"] .banner-area .tpbanner__bg3 .tpbanner__title,
    html[dir="rtl"] .banner-area .tpbanner__bg3 .tpbanner__sub-title,
    html[dir="rtl"] .banner-area .tpbanner__bg3 p {
        text-align: right !important;
    }
}

/* Keep every product-card action available on touch layouts (hover is not reliable there). */
@media (max-width: 991.98px), (hover: none), (pointer: coarse) {
    .shop-area-start .tpproduct__shop-item {
        row-gap: 18px;
    }

    .shop-area-start .tpproduct__shop-item > .col {
        display: flex;
    }

    .shop-area-start .tpproduct__shop-item .tpproduct {
        display: flex;
        width: 100%;
        overflow: hidden;
        flex-direction: column;
        margin-bottom: 0 !important;
        border-color: #e4e9f2;
        background: #fff;
    }

    .shop-area-start .tpproduct__shop-item .tpproduct__shopping {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .shop-area-start .tpproduct__shop-item .tpproduct__shopping a,
    .shop-area-start .tpproduct__shop-item .tpproduct:hover .tpproduct__shopping a {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .shop-area-start .tpproduct__shop-item .tpproduct__content {
        flex: 1 1 auto;
    }

    .shop-area-start .tpproduct__shop-item .tpproduct__hover-text,
    .shop-area-start .tpproduct__shop-item .tpproduct:hover .tpproduct__hover-text {
        position: static !important;
        inset: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 14px 16px 16px;
        border: 0 !important;
        border-top: 1px solid #edf0f5 !important;
        border-radius: 0 0 10px 10px;
        background: #fff;
        box-shadow: none !important;
    }
}

/* Core Values artwork contains large white letters; use a contrast label for its title. */
.banner-area .tpbanner__main-thumb.noboreder-radius .tpbanner__main-content {
    position: relative;
    z-index: 1;
}

.banner-area .tpbanner__main-thumb.noboreder-radius .tpbanner__main__title {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 0 !important;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(21, 51, 116, .9);
    color: #fff !important;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    box-shadow: 0 6px 18px rgba(15, 35, 82, .18);
}

@media (max-width: 767.98px) {
    .banner-area .tpbanner__main-thumb.noboreder-radius .tpbanner__main-content,
    html[dir="rtl"] .banner-area .tpbanner__main-thumb.noboreder-radius .tpbanner__main-content {
        display: flex;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 150px;
        align-items: flex-end;
        justify-content: center;
        padding: 20px !important;
        text-align: center !important;
    }

    .banner-area .tpbanner__main-thumb.noboreder-radius .tpbanner__main__title {
        font-size: clamp(20px, 6vw, 26px);
    }
}

/* Product listing pagination: separate it from the final card and use touch-sized controls. */
@media (max-width: 767.98px) {
    .shop-area-start .basic-pagination {
        margin-top: 34px;
        margin-bottom: 60px !important;
    }

    .shop-area-start .basic-pagination nav {
        display: flex;
        justify-content: center;
    }

    .shop-area-start .basic-pagination ul {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 7px;
        border: 1px solid #e1e7f0;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(36, 66, 136, .08);
    }

    .shop-area-start .basic-pagination ul li,
    .shop-area-start .basic-pagination ul li:not(:last-child) {
        margin: 0;
    }

    .shop-area-start .basic-pagination ul li a,
    .shop-area-start .basic-pagination ul li span {
        display: inline-grid;
        width: 38px;
        height: 38px;
        place-items: center;
        line-height: 1;
        border-color: transparent;
        background: #f5f7fb;
        font-size: 13px;
    }

    .shop-area-start .basic-pagination ul li a.current,
    .shop-area-start .basic-pagination ul li span.current {
        border-color: #244288;
        background: #244288;
        color: #fff;
        box-shadow: 0 5px 12px rgba(36, 66, 136, .24);
    }
}

/* Mobile slider pagination: make many bullets readable as one compact control. */
@media (max-width: 575.98px) {
    .weekly-product-area .tpproduct__arrow > .swiper-pagination {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        width: max-content !important;
        max-width: calc(100% - 24px);
        min-height: 28px;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        margin: 16px auto 0 !important;
        padding: 8px 12px;
        border: 1px solid #e1e7f0;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(36, 66, 136, .1);
        transform: none !important;
        direction: ltr;
    }

    .weekly-product-area .tpproduct__arrow > .swiper-pagination .swiper-pagination-bullet {
        flex: 0 0 auto;
        width: 7px;
        height: 7px;
        margin: 0 !important;
        border-radius: 999px;
        background: #9aa8bd;
        opacity: .45;
        transition: width .2s ease, background-color .2s ease, opacity .2s ease;
    }

    .weekly-product-area .tpproduct__arrow > .swiper-pagination .swiper-pagination-bullet-active {
        width: 24px;
        background: #3360c9;
        opacity: 1;
    }
}

/* Product Details: phone layout for both LTR and RTL. */
@media (max-width: 767.98px) {
    .shopdetails-area > .container {
        padding-inline: 12px;
    }

    .shopdetails-area .tpdetails__area {
        margin-inline: 0 !important;
        padding-bottom: 0 !important;
    }

    .shopdetails-area .tpdetails__product,
    .shopdetails-area .tpdescription__box {
        padding: 22px 16px !important;
        margin-bottom: 18px !important;
        border-radius: 14px !important;
        box-shadow: 0 7px 24px rgba(36, 66, 136, .06) !important;
    }

    .shopdetails-area .tpdetails__title-box {
        margin-bottom: 20px;
        padding-bottom: 18px;
        text-align: start;
    }

    .shopdetails-area .tpdetails__title {
        font-size: clamp(20px, 5.8vw, 24px);
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .shopdetails-area .pd-subtitle {
        margin-top: 6px;
        line-height: 1.5;
        text-align: start;
    }

    .shopdetails-area .tpdetails__brand {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 14px;
        margin: 14px 0 0;
        padding: 0;
    }

    .shopdetails-area .tpdetails__brand li {
        margin: 0;
        padding: 0;
    }

    .shopdetails-area .tpdetails__box > .row {
        row-gap: 22px;
    }

    .shopdetails-area .tpproduct-details__nab {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .shopdetails-area .tpproduct-details__nab > nav {
        order: 2;
        margin-top: 12px;
    }

    .shopdetails-area .tpproduct-details__nab > .tab-content {
        order: 1;
        margin-top: 0 !important;
    }

    .shopdetails-area .tpproduct-details__nab .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        gap: 6px;
        overflow-x: auto;
        padding: 6px !important;
        border-radius: 12px;
        background: #f5f7fb;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .shopdetails-area .tpproduct-details__nab .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .shopdetails-area .tpproduct-details__nab .nav-tabs .nav-link {
        flex: 0 0 auto;
        margin: 0 !important;
        overflow: hidden;
        border-radius: 9px;
        background: #fff;
    }

    .shopdetails-area .tpproduct-details__nab .nav-tabs .nav-link img {
        display: block;
        width: 56px;
        height: 56px;
        border-radius: 8px;
        object-fit: contain;
    }

    .shopdetails-area .tpproduct-details__nab .tab-pane.w-img.active {
        display: grid !important;
        min-height: 250px;
        place-items: center;
        overflow: hidden;
        border: 1px solid #e7ebf2;
        border-radius: 12px;
        background: #fafbfc;
    }

    .shopdetails-area .tpproduct-details__nab .tab-pane.w-img > img {
        display: block;
        width: 100%;
        height: 250px;
        padding: 10px;
        object-fit: contain;
    }

    .shopdetails-area .product__details-price-box {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px !important;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .shopdetails-area .product__details-info-list {
        display: grid;
        gap: 7px;
        margin: 0;
        padding: 0;
    }

    .shopdetails-area .product__details-info-list li {
        padding: 8px 11px !important;
        border: 1px solid #edf0f5;
        border-radius: 8px;
        background: #f8fafc;
        line-height: 1.5;
        text-align: start;
        overflow-wrap: anywhere;
    }

    .shopdetails-area .product__details-info-list li::after {
        display: none;
    }

    .shopdetails-area .product__color-switch {
        margin: 18px 0 !important;
        padding: 14px;
        border: 1px solid #edf0f5;
        border-radius: 12px;
        background: #f8fafc;
    }

    .shopdetails-area .product__color-title {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.5;
    }

    .shopdetails-area .tpshop__widget-color-box {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .shopdetails-area .tpshop__widget-color-box .form-check {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 32px;
        margin: 0;
        padding: 0;
    }

    .shopdetails-area .tpshop__widget-color-box .form-check-input {
        position: static;
        float: none;
        margin: 0;
    }

    .shopdetails-area .tpshop__widget-color-box .form-check-label {
        margin: 0 !important;
    }

    .shopdetails-area .product__details-cart {
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .shopdetails-area .product__details-quantity,
    .shopdetails-area .product__details-quantity .addToCartForm {
        width: 100%;
    }

    .shopdetails-area .product__details-quantity .addToCartForm {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .shopdetails-area .product__details-quantity .addToCartForm > b {
        align-self: center;
        justify-self: start;
        font-size: 13px;
    }

    .shopdetails-area .product__details-count {
        justify-self: end;
        margin: 0 !important;
    }

    .shopdetails-area .product__details-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .shopdetails-area .product__details-btn .tp-btn-2 {
        width: 100%;
    }

    .shopdetails-area .product__details-check {
        justify-content: flex-start;
        margin: 14px 0 0;
        padding: 0;
    }

    .shopdetails-area .product__details-check li {
        margin: 0;
    }

    .shopdetails-area .product__details-stock {
        margin-bottom: 0 !important;
        padding: 14px;
        border: 1px solid #edf0f5;
        border-radius: 12px;
        background: #f8fafc;
    }

    .shopdetails-area .product__details-stock ul {
        margin: 0;
        padding: 0;
    }

    .shopdetails-area .product__details-stock li {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 8px;
    }

    .shopdetails-area .product__details-stock li:last-child {
        margin-bottom: 0;
    }

    .shopdetails-area .tpdescription__box .pd-custom-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        margin-bottom: 22px;
        padding: 6px !important;
        overflow: visible !important;
        border: 0;
        border-radius: 12px;
        background: #f1f5f9;
    }

    .shopdetails-area .tpdescription__box .pd-custom-tabs .nav-item {
        display: flex;
        min-width: 0;
    }

    .shopdetails-area .tpdescription__box .pd-custom-tabs .nav-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .shopdetails-area .tpdescription__box .pd-custom-tabs .nav-link {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        gap: 6px;
        padding: 8px 9px !important;
        border-radius: 8px;
        background: #fff !important;
        font-size: 12px !important;
        line-height: 1.35;
        text-align: center;
        white-space: normal !important;
    }

    .shopdetails-area .tpdescription__box .pd-custom-tabs .nav-link.active {
        background: #244288 !important;
        color: #fff !important;
        box-shadow: 0 5px 12px rgba(36, 66, 136, .2);
    }

    .shopdetails-area .tpdescription__box .pd-custom-tabs .nav-link.active::after {
        display: none;
    }

    .shopdetails-area .tpdescription__content,
    .shopdetails-area .pd-localized-description {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.8;
        text-align: start;
        overflow-wrap: anywhere;
    }

    .shopdetails-area .pd-localized-description img,
    .shopdetails-area .tpdescription__content img,
    .shopdetails-area .tpdescription__content iframe {
        max-width: 100%;
        height: auto;
    }
}
