/*
 * aster surface layer: structured trade-catalogue look.
 * Palette and markup are the theme's. Rules of this file:
 *  - white tiles on a grey page; no borders at rest (the contrast contains)
 *  - every section opens with one header: title over a rule
 *  - hover never moves anything: ring or colour only, 150ms
 *  - one focus ring, visible only for keyboard focus
 *  - primary action = solid dark green, secondary = outline, lime is the accent
 */
:root {
    --r: 4px;
    --page: #f6f7f4;
    --line: rgba(24, 44, 37, .12);
    --line-strong: rgba(24, 44, 37, .28);
    --ink: var(--primary-dark, #182c25);
    --ease: 150ms cubic-bezier(.2, 0, 0, 1);
    --hover-tint: color-mix(in srgb, var(--bs-primary) 11%, #fff);
}
[theme="dark"] { --page: #121715; --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .28); --ink: #fff; }

body { background-color: var(--page); line-height: 1.7;
    /* soft dot grid, drawn in CSS (no image to load) */
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1.2px);
    background-size: 22px 22px; background-position: 11px 11px; }
.main-content { row-gap: 3rem !important; padding-block: 1.5rem 3.5rem !important; }
.rounded, .rounded-3, .rounded-10 { border-radius: var(--r) !important; }
.card { border: 0; border-radius: var(--r); box-shadow: none; }

/* Section header: title sits on a rule */
.sec-head, .main-content .card .border-bottom:has(> .styled-title) {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
    border-bottom: 1px solid var(--line-strong) !important; padding-bottom: 0 !important; margin-bottom: 1.25rem !important;
}
.sec-head h2, .main-content .styled-title {
    margin: 0; padding-bottom: .75rem; margin-bottom: -1px; font-size: 1.25rem; font-weight: 800; line-height: 1.3;
    border-bottom: 3px solid var(--ink);
}
.main-content .styled-title::after { display: none; }
.sec-head .btn-link, .main-content .border-bottom > .btn-link { padding-bottom: .75rem; font-weight: 600; white-space: nowrap; }

/* Links */
a { text-underline-offset: .25em; }
.btn-link, .main-content a.btn-link { color: var(--ink); text-decoration: none; transition: color var(--ease); }
.btn-link:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.main-menu > li > a { transition: color var(--ease); }
.main-menu > li > a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--bs-primary); text-decoration-thickness: 2px; text-underline-offset: .5em; }

/* Focus: one ring, keyboard only */
:where(a, button, input, select, textarea, [tabindex]):focus { outline: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bg-primary-light :focus-visible, .header-top :focus-visible, .footer :focus-visible { outline-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.header .search-box { border: 0; border-radius: var(--r); background: var(--page); transition: background-color var(--ease), box-shadow var(--ease); }
.header .search-box:focus-within { background: var(--bs-white); box-shadow: 0 0 0 2px var(--ink); }
.header .search-box :focus, .header .search-box :focus-visible { outline: none !important; box-shadow: none !important; }
.header .search-box .select-wrap, .header .search-box .form-control, .header .search-box input { background: transparent; border: 0; border-radius: 0; }
.header .search-box button { border-radius: 0 var(--r) var(--r) 0 !important; }
[dir="rtl"] .header .search-box button { border-radius: var(--r) 0 0 var(--r) !important; }
.header .search-box .dropdown-menu, .header .dropdown--menu { z-index: 1050; border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: none; padding: .25rem 0; }
.header .search-box .dropdown-menu a, .header .dropdown--menu a { padding: .5rem 1rem; transition: background-color var(--ease); }
.header .search-box .dropdown-menu a:hover, .header .dropdown--menu a:hover { background: var(--page); color: var(--ink); }

/* Buttons: primary solid dark green, secondary outline */
.btn { min-height: 2.75rem; --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .875rem; --bs-btn-border-radius: var(--r);
    font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-transform: none;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.btn.btn-primary { --btn-fill: color-mix(in srgb, var(--ink), #fff 14%); --bs-btn-bg: var(--btn-fill); --bs-btn-border-color: var(--btn-fill); --bs-btn-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--ink), #fff 26%); --bs-btn-hover-border-color: color-mix(in srgb, var(--ink), #fff 26%); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink); --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--btn-fill); --bs-btn-disabled-border-color: var(--btn-fill); --bs-btn-disabled-color: #fff; }
#coupon-code-apply { min-height: 2.25rem; --bs-btn-padding-x: 1rem; }
.btn.btn-primary:focus-visible { outline-color: var(--ink); }
.btn.btn-outline-primary, .btn.btn-outline-success { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-bg: transparent;
    --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--ink), #000 14%); --bs-btn-active-color: #fff; }
.btn-cta-inverse { background: #fff; border: 1px solid #fff; color: var(--ink) !important; }
.btn-cta-inverse:hover { background: var(--bs-primary); border-color: var(--bs-primary); color: var(--ink) !important; }
.btn-cta-inverse:active { background: color-mix(in srgb, var(--bs-primary), #000 12%); }
.header .search-box button.btn-primary { padding-inline: 1.5rem; }

/* Tabs: squared segmented control */
.nav.nav--tabs { display: inline-flex; gap: 2px !important; padding: 3px; background: color-mix(in srgb, var(--ink) 9%, var(--page)); border: 0; border-radius: var(--r); }
.nav--tabs button, .nav--tabs a { border-radius: 2px !important; padding: .6rem 1.4rem !important; font-weight: 700; transition: background-color var(--ease), color var(--ease); }
.nav--tabs button::after, .nav--tabs a::after { display: none !important; }
.nav--tabs button:hover:not(.active), .nav--tabs a:hover:not(.active) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav--tabs :focus-visible { outline-offset: -4px; }
.nav.nav--tabs button.active, .nav.nav--tabs a.active { background: var(--ink); color: #fff !important; }

/* Product card: white tile, ring on hover, nothing moves */
.product, .store-product__top { border: 0 !important; border-radius: var(--r) !important; background: var(--bs-white); box-shadow: none; transition: background-color var(--ease); }
.product__top { background: transparent; border-radius: var(--r) var(--r) 0 0 !important; padding: .5rem; }
.product__top::after, .store-product__top::after { display: none !important; }
.product__actions a { transform: none !important; border-radius: var(--r) !important; transition: opacity var(--ease), background-color var(--ease) !important; }
.product__actions a:hover { background: var(--ink); color: #fff; }
.product__discount-badge { border-radius: 2px !important; font-weight: 700; }
.product__new-price { font-weight: 800; font-size: 1.0625rem !important; }
.product__new-price, .product__old-price { font-variant-numeric: tabular-nums; }
.product__old-price { opacity: .55; }
@media (hover: hover) { .product:hover { background: var(--hover-tint); } .product:hover .product__title { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; } }
.product:focus-within { background: var(--hover-tint); }

/* Tiles: category, vendor */
.home-cat, .store-list .store-product { background: var(--bs-white); border: 0; border-radius: var(--r); transition: background-color var(--ease); }
@media (hover: hover) { .home-cat:hover, .store-list .store-product:hover { background: var(--hover-tint); } }
.store-list { gap: .75rem !important; justify-content: stretch !important; }
.store-list .store-product { flex: 1 1 0; min-width: 9rem; padding: 1.25rem 1rem; }
.store-product .avatar, .store-product .avatar img { border-radius: var(--r) !important; }
.store-product .avatar { width: 5rem; height: 5rem; background: transparent; border: 0; box-shadow: none; transform: none; }
.store-product .avatar img { object-fit: contain; }
.store-product h6 { color: var(--ink); transition: none; }

/* Full-width dark bands (top-rated, featured deals, sell-on-Paysphere): same dark green and a barely-there dot grid */
section.bg-primary-light, .sell-cta { --band: var(--primary-dark, #182c25); background-color: var(--band);
    /* soft fixed spotlight over a barely-there dot grid */
    background-image: radial-gradient(34rem 22rem at 50% 0%, color-mix(in srgb, var(--bs-primary) 17%, transparent), transparent 72%),
        radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px);
    background-size: 100% 100%, 24px 24px; }

/* Product rows sit directly on the page */
.main-content .card:has(.product, .store-product) { background: transparent; }
.main-content .card:has(.product, .store-product) > .card-body { padding: 0; }
.main-content .swiper { padding-block: 2px; margin-block: -2px; }
.main-banner, .main-banner img, .main-banner .swiper, .main-banner .swiper-slide { border-radius: var(--r); }

/* Home: category tiles */
.home-cat-row { display: flex; gap: .75rem; overflow-x: auto; padding-block: 2px; scroll-snap-type: x proximity; }
.home-cat { flex: 1 0 8rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.25rem .75rem 1rem; text-align: center; scroll-snap-align: start; color: var(--title-color); }
.home-cat__img { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; }
.home-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.home-cat__name { font-size: .9375rem; font-weight: 700; line-height: 1.4; }
.home-cat:hover { color: var(--title-color); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.store-product .position-relative, .store-product .avatar { flex: none; }
.store-product { gap: .75rem !important; }

/* Secondary action (e.g. "Buy now" beside "Add to cart"): outline */
.btn.btn-secondary { --bs-btn-color: var(--ink); --bs-btn-bg: transparent; --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-bg: color-mix(in srgb, var(--ink), #000 14%); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--ink);
    --bs-btn-disabled-bg: transparent; --bs-btn-disabled-color: var(--ink); --bs-btn-disabled-border-color: var(--line-strong); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }

/* Header with tabs on the same rule as the title */
.sec-head--tabs { align-items: flex-end; flex-wrap: wrap; }
.sec-head--tabs .nav.nav--tabs { margin-bottom: .6rem; }
.sec-head--tabs > nav, .sec-head--tabs .nav-nowrap { min-width: 0; max-width: 100%; }
@media (max-width: 767px) { .sec-head--tabs > nav { flex: 1 1 100%; } }

/* Product page: the price is the strongest element; side boxes use the hairline */
.product__price div.text-primary.fs-1-5rem { color: var(--ink) !important; font-size: 2rem !important; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.main-content :is(.border, .border-primary-light, .border--gray) { border-color: var(--line) !important; }
.main-content .card.border-primary-light { background: var(--bs-white); }

/* Secondary action: tonal fill, no outline */
.btn.btn-secondary, .btn.btn-outline-primary, .btn.btn-outline-success {
    --bs-btn-color: var(--ink); --bs-btn-bg: color-mix(in srgb, var(--ink) 9%, #fff); --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: color-mix(in srgb, var(--ink) 16%, #fff); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--ink); --bs-btn-active-bg: color-mix(in srgb, var(--ink) 24%, #fff); --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: color-mix(in srgb, var(--ink) 9%, #fff); --bs-btn-disabled-color: var(--ink); --bs-btn-disabled-border-color: transparent;
}
/* Accent action on dark surfaces */
.btn-accent { --bs-btn-bg: var(--bs-primary); --bs-btn-color: #15251d; --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary), #fff 22%); --bs-btn-hover-color: #15251d; --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary), #000 10%); --bs-btn-active-color: #15251d;
    background: var(--bs-btn-bg); color: var(--bs-btn-color); border: 1px solid var(--bs-btn-border-color); }
.btn-accent:hover { background: var(--bs-btn-hover-bg); color: var(--bs-btn-hover-color); border-color: transparent; }
.btn-accent:active { background: var(--bs-btn-active-bg); }

/* No outlines on content: boxes use a tint, only floating menus keep a hairline */
.main-content .border:not(.avatar):not(.rounded-circle), .main-content .border-primary-light, .main-content .border--gray { border: 0 !important; }
.main-content .border.rounded:not(.avatar):not(.swiper-container):not(.product), .main-content .card.border-primary-light { background: color-mix(in srgb, var(--ink) 5%, #fff); }
.main-content .card.border-primary-light { background: var(--bs-white); }
.nav--tabs :focus-visible, .btn:focus-visible { outline-offset: 2px; }

/* Sell on Paysphere: dark green band, headline and button on one side, the selling points as numbered rows */
.sell-cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.sell-cta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.sell-cta__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.75rem; }
.sell-cta h2 { color: #fff; font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 1.25rem; }
html:not([dir="rtl"]) .sell-cta h2 { letter-spacing: -.02em; line-height: 1.08; }
.sell-cta p { color: rgba(255, 255, 255, .78); font-size: 1.0625rem; max-width: 46ch; margin: 0; text-wrap: pretty; }
.sell-cta .btn { min-width: 11rem; }
.sell-cta__points { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; }
.sell-cta__points li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; align-content: center; margin: 0; padding-block: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.sell-cta__points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.sell-cta__no { color: var(--bs-primary); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sell-cta__points h3 { margin: 0; color: #fff; font-size: 1.1875rem; font-weight: 600; line-height: 1.45; }
.sell-cta__points p { margin: .25rem 0 0; max-width: none; color: rgba(255, 255, 255, .7); font-size: .875rem; line-height: 1.65; }
/* the rows appear one after another when the band scrolls into view (custom.js arms and triggers it) */
.sell-cta__points.is-armed li { opacity: 0; transform: translateY(1rem); }
.sell-cta__points.is-armed.is-in li { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, 0, 0, 1), transform .7s cubic-bezier(.2, 0, 0, 1); }
.sell-cta__points.is-in li:nth-child(2) { transition-delay: .22s; }
.sell-cta__points.is-in li:nth-child(3) { transition-delay: .44s; }
/* corner tiles: rectangular halftone fields that bleed off the band edges */
.sell-cta__tile { position: absolute; z-index: -1; pointer-events: none; }
.sell-cta__tile--dots { inset-block-start: 0; inset-inline-start: 0; width: clamp(7rem, 16vw, 14rem); height: clamp(3.5rem, 7vw, 6.5rem);
    background: radial-gradient(circle, var(--bs-primary) 1.2px, transparent 1.7px) 0 0 / 10px 10px; opacity: .2; }
.sell-cta__tile--plus { inset-block-end: 0; inset-inline-end: 0; width: clamp(7rem, 14vw, 12rem); height: clamp(5rem, 11vw, 9rem); opacity: .18;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2394d41c' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") 0 0 / 16px 16px; }
@media (max-width: 991px) { .sell-cta__grid { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 575px) { .sell-cta__tile--plus { display: none; } }

/* B2B advantage: one-line intro, then four white cards in a row that rise in softly and lift on hover */
.b2b-cards__intro { margin-block-end: clamp(1.5rem, 3vw, 2.25rem); }
.b2b-cards h2 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.b2b-cards__intro p { margin: 0; color: var(--bs-body-color); font-size: .875rem; line-height: 1.8; text-wrap: pretty; }
@media (min-width: 992px) { .b2b-cards h2 { white-space: nowrap; } }
.b2b-cards__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.b2b-cards__grid li { display: flex; flex-direction: column; gap: .875rem; margin: 0; padding: 1.75rem; background: var(--bs-white); border-radius: var(--r);
    transition: transform .35s cubic-bezier(.2, 0, 0, 1), box-shadow .35s cubic-bezier(.2, 0, 0, 1); }
.b2b-cards__grid li i { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--r); background: var(--hover-tint); color: var(--primary-dark, #182c25);
    font-size: 1.5rem; line-height: 1; transition: background-color .35s cubic-bezier(.2, 0, 0, 1), transform .35s cubic-bezier(.2, 0, 0, 1); }
.b2b-cards h3 { margin: .25rem 0 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.b2b-cards h3::after { content: ""; display: block; width: 1.5rem; height: 2px; margin-top: .75rem; background: var(--bs-primary); transition: width .4s cubic-bezier(.2, 0, 0, 1); }
.b2b-cards__grid p { margin: 0; font-size: .875rem; line-height: 1.75; color: var(--bs-body-color); }
@media (hover: hover) {
    .b2b-cards__grid li:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -18px rgba(24, 44, 37, .32); }
    .b2b-cards__grid li:hover i { background: var(--bs-primary); transform: scale(1.06); }
    .b2b-cards__grid li:hover h3::after { width: 3rem; }
}
/* each card fades and rises as it scrolls into view (browsers without scroll timelines simply show the cards) */
@keyframes b2b-rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .b2b-cards__grid li { animation: b2b-rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 45%; }
        .b2b-cards__grid li:nth-child(2) { animation-range: entry 6% entry 51%; }
        .b2b-cards__grid li:nth-child(3) { animation-range: entry 12% entry 57%; }
        .b2b-cards__grid li:nth-child(4) { animation-range: entry 18% entry 63%; }
    }
}
@media (max-width: 991px) { .b2b-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .b2b-cards__grid { grid-template-columns: 1fr; } .b2b-cards__grid li { padding: 1.5rem; } }

/* All vendors: same tile as the home page */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; }
.store-item { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.25rem 1rem; text-align: center; background: var(--bs-white); border-radius: var(--r); transition: background-color var(--ease); color: var(--title-color); }
.store-item .avatar { width: 5rem; height: 5rem; border: 0; border-radius: var(--r); background: transparent; }
.store-item .avatar img { object-fit: contain; border-radius: var(--r); }
.store-item h6 { margin: 0; font-weight: 700; line-height: 1.4; color: var(--ink); }
.store-item p { margin: 0; color: var(--bs-body-color); font-size: .875rem; }
@media (hover: hover) { .store-item:hover { background: var(--hover-tint); } }
.main-content .card:has(.vendor-grid) { background: transparent; }
.main-content .card:has(.vendor-grid) > .card-body { padding: 0; }
.store-product .avatar, .store-item .avatar { overflow: hidden; display: grid; place-items: center; }
.store-product .avatar img, .store-item .avatar img { position: static !important; width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: contain; }

/* Loading indicator: replaces the GIF with a scrim, a top progress bar and a small ring */
.preloader { background: color-mix(in srgb, var(--page) 78%, transparent); }
.preloader::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.preloader::after { content: ""; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--ink) 16%, transparent); border-top-color: var(--ink); }
.preloader .bar, .preloader::before { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .preloader::after { animation: spin .8s linear infinite; }
    .preloader::before { background: linear-gradient(90deg, transparent 0 30%, var(--bs-primary) 30% 70%, transparent 70%) 0 0 / 200% 100%, color-mix(in srgb, var(--ink) 12%, transparent); animation: sweep 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }

/* Header: frosted glass once it sticks over the content */
.header .sticky { background: color-mix(in srgb, var(--bs-white) 72%, transparent) !important; -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: none !important; border-bottom: 1px solid var(--line); }
.header .header-main { box-shadow: none !important; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-transparency: reduce) { .header .sticky { background: var(--bs-white) !important; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header .sticky.animated { animation-duration: .25s; }

/* Modals and drawers: tinted, blurred backdrop (all Bootstrap versions) */
.modal-backdrop, .offcanvas-backdrop { background: rgba(24, 44, 37, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-backdrop.show, .offcanvas-backdrop.show, .modal-backdrop.fade.show { opacity: 1; }
.modal-backdrop.fade, .offcanvas-backdrop.fade { transition: opacity .2s ease; }
@media (prefers-reduced-transparency: reduce) { .modal-backdrop, .offcanvas-backdrop { background: rgba(24, 44, 37, .6); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* RTL: directional icons point the reading direction */
[dir="rtl"] :is(.bi-chevron-right, .bi-chevron-left, .bi-chevron-double-right, .bi-chevron-double-left, .bi-arrow-right, .bi-arrow-left, .bi-arrow-right-short, .bi-arrow-left-short, .bi-caret-right, .bi-caret-left, .bi-caret-right-fill, .bi-caret-left-fill, .tio-chevron-right, .tio-chevron-left, .tio-back-ui, .tio-arrow-forward, .tio-arrow-backward, .tio-first-page, .tio-last-page) { display: inline-block; transform: scaleX(-1); }

/* RTL carousels: "next" sits on the left and points left, "previous" on the right */
[dir="rtl"] .swiper-nav { direction: rtl; }
[dir="rtl"] .swiper-button-prev:not(.position-static) { left: auto; right: var(--swiper-navigation-sides-offset, 10px); }
[dir="rtl"] .swiper-button-next:not(.position-static) { right: auto; left: var(--swiper-navigation-sides-offset, 10px); }
[dir="rtl"] .swiper-button-prev::after, [dir="rtl"] .swiper-button-next::after { display: inline-block; transform: scaleX(-1); }

/* RTL: numbers, emails and dial codes are always read left to right, but sit on the start (right) side */
[dir="rtl"] :is(input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input.phone-input) { direction: ltr; text-align: right; }
[dir="rtl"] :is(input[type="email"], input[type="url"], input[type="tel"], input[type="number"])::placeholder { direction: rtl; }
[dir="rtl"] .iti__selected-dial-code, [dir="rtl"] .iti__dial-code { direction: ltr; unicode-bidi: isolate; }

/* RTL pagination: previous/next glyphs point the reading direction */
[dir="rtl"] .pagination .page-item:is(:first-child, :last-child) .page-link { transform: scaleX(-1); }

/* Map-picker button inside the address field */
.form-control :is(.border-start)[data-bs-toggle="modal"] { cursor: pointer; border: 0 !important; margin-inline-start: .5rem; padding: 0 !important;
    width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r);
    background: var(--hover-tint); color: var(--ink); transition: background-color var(--ease); }
.form-control :is(.border-start)[data-bs-toggle="modal"]:hover { background: color-mix(in srgb, var(--bs-primary) 24%, #fff); }

/* Transfer proof box on the customer's order page */
.proof-box { margin-top: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bs-white); }
.proof-box.is-needed { border-color: var(--bs-warning); background: color-mix(in srgb, var(--bs-warning) 10%, var(--bs-white)); }

/* When the dark sell band is the last section it meets the feature strip directly (no light gap) */
.main-content:has(> .sell-cta:last-child) { padding-bottom: 0 !important; }

/* Feature strip: four items, hairline dividers, icon in a soft lime tile */
.feature-strip { background: var(--bs-white); }
.feature-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.feature-strip li { display: flex; align-items: center; gap: 1rem; padding: 1.75rem 1.5rem; background: var(--bs-white); }
.feature-strip ul li:not(:last-child) { margin: 0; }
.feature-strip li i { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r); background: var(--hover-tint);
    color: var(--primary-dark, #182c25); font-size: 1.375rem; line-height: 1; }
.feature-strip h5 { margin: 0 0 .125rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.feature-strip p { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--bs-body-color); }
@media (max-width: 991px) { .feature-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .feature-strip ul { grid-template-columns: 1fr; } .feature-strip li { padding: 1.25rem 1rem; } }
