/* Classic theme polish. Loaded last by themes/default so it only refines the original look:
   aligned product cards, readable prices, calmer surfaces, clearer focus, nicer spacing. RTL-safe (logical properties). */

:root {
    --cl-radius: 12px;
    --cl-border: rgba(15, 23, 42, 0.08);
    --cl-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px -6px rgba(15, 23, 42, 0.10);
    --cl-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 14px 30px -10px rgba(15, 23, 42, 0.20);
    --cl-muted: #5f6b7a;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Keyboard focus that is actually visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--web-primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---------- Product cards (grid) ---------- */
.product-single-hover {
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
    border: 1px solid var(--cl-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.product-single-hover:hover {
    box-shadow: var(--cl-shadow-hover);
    transform: translateY(-2px);
}
.product-single-hover > .overflow-hidden {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.product-single-hover .inline_product {
    border: 0;
    height: auto;
}
.product-single-hover .inline_product img {
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--cl-radius) - 4px);
    background: #f6f7f9;
}
.product-single-hover .single-product-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 4px;
    min-height: 0;
    padding: 10px 12px 14px;
}
/* Rating row keeps its height even without reviews, so names and prices line up across the row */
.product-single-hover .rating-show {
    min-height: 20px;
    display: flex;
    justify-content: center !important;
    align-items: center;
}
.product-single-hover .rating-show .tio-star,
.product-single-hover .rating-show .tio-star-half,
.product-single-hover .rating-show .tio-star-outlined {
    font-size: 13px;
}
.product-single-hover .badge-style {
    color: var(--cl-muted);
    font-size: 12px;
}
.product-single-hover .single-product-details .product-name a {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #1f2937;
    -webkit-line-clamp: 2;
    min-height: 2.7em;
}
[dir="rtl"] .product-single-hover .single-product-details .product-name a {
    display: -webkit-box;
    white-space: normal;
    text-align: center;
}
.product-single-hover .single-product-details .product-name a:hover {
    color: var(--web-primary);
}
.product-single-hover .product-price {
    margin-top: auto;
    padding-top: 4px;
    column-gap: 8px;
    row-gap: 0;
}
.product-single-hover .product-price .text-accent {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--web-primary) !important;
}

/* ---------- Old price: readable, sits on the same baseline ---------- */
.category-single-product-price {
    font-size: 13px !important;
    font-weight: 400;
    text-decoration-thickness: 1px;
}

/* ---------- Discount badge ---------- */
.for-discount-value {
    border-radius: var(--cl-radius) 0 8px 0;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    z-index: 2;
}
[dir="rtl"] .for-discount-value {
    border-radius: 0 var(--cl-radius) 0 8px;
}

/* ---------- Horizontal deal cards ---------- */
.flash_deal_product {
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}
.flash_deal_product:hover {
    box-shadow: var(--cl-shadow-hover);
    transform: translateY(-2px);
}
.flash_deal_product_details .flash-product-title {
    line-height: 1.35em;
}
.flash_deal_product_details .flash-product-price {
    font-weight: 700;
}

/* ---------- Section surfaces & headings ---------- */
.rtl .section-title, .section-title {
    letter-spacing: 0;
}
.view-all-text, .web-text-primary {
    font-weight: 600;
}

/* ---------- Header / nav ---------- */
.navbar-stuck-menu, .navbar-sticky {
    transition: box-shadow 0.25s ease;
}
.search_form .input-group, .search-bar-input {
    border-radius: 10px;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.btn:active:not(:disabled) {
    transform: translateY(1px);
}

/* ---------- Form fields ---------- */
.form-control, .custom-select {
    border-radius: 10px;
}
.form-control:focus, .custom-select:focus {
    border-color: var(--web-primary);
    box-shadow: 0 0 0 3px var(--web-primary-o15);
}

/* ---------- Modals ---------- */
.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
}

/* ---------- Mobile ---------- */
@media (max-width: 575px) {
    .product-single-hover {
        box-shadow: var(--cl-shadow) !important;
    }
    .product-single-hover .single-product-details {
        padding: 8px 8px 12px;
    }
    .product-single-hover .product-price .text-accent {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-single-hover, .flash_deal_product, .btn {
        transition: none;
    }
    .product-single-hover:hover, .flash_deal_product:hover {
        transform: none;
    }
}

/* The empty spacer used on cards without a discount made those images sit lower than discounted ones */
.product-single-hover .for-discount-value-null,
.product-single-hover .inline_product > .d-flex.justify-content-end {
    display: none;
}
.product-single-hover .inline_product > .d-flex:empty {
    display: none;
}
.flash-deals-wrapper .product-single-hover:not(:hover) {
    background: #fff;
}

/* ---------- Product page ---------- */
.product-total-unit-price {
    font-weight: 400 !important;
    color: var(--cl-muted) !important;
    text-decoration-thickness: 1px;
}
.__review-overview .nav--tabs {
    justify-content: flex-start !important;
    gap: 6px;
    border-bottom: 1px solid var(--cl-border);
    padding-bottom: 10px;
    margin-top: 0 !important;
}
.__review-overview .nav--tabs li a {
    font-size: 14px;
    font-weight: 500;
}
.__review-overview .nav--tabs li a:not(.active):hover {
    background: var(--web-primary-o10);
}
.__review-overview .tab-pane,
.product-details-description {
    text-align: start !important;
}
.product-details-description,
.product-details-description p,
.product-details-description li {
    font-size: 15px !important;
    line-height: 1.7;
    color: #374151;
}
.__review-overview {
    border: 1px solid var(--cl-border);
    box-shadow: var(--cl-shadow);
}

/* ---------- Listing filters ---------- */
input[type="number"].form-control, .price-filter input {
    min-width: 0;
}

/* ---------- Store name shown when no logo file has been uploaded ---------- */
.store-name-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -0.01em;
    color: var(--web-primary);
    white-space: nowrap;
}
.store-name-logo--footer {
    color: #fff;
    line-height: 1.2;
}
.navbar-brand .store-name-logo { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Dropdowns: one consistent look instead of the browser's default select ---------- */
select.custom-select,
select.form-control,
select.product-list-filter-on-viewpage {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-inline-end: 36px;
    cursor: pointer;
}
[dir="rtl"] select.custom-select,
[dir="rtl"] select.form-control,
[dir="rtl"] select.product-list-filter-on-viewpage {
    background-position: left 14px center;
}
select.product-list-filter-on-viewpage {
    border: 0;
    font-weight: 600;
    color: #1f2937;
    padding-block: 4px;
}
select.product-list-filter-on-viewpage:focus-visible {
    border-radius: 6px;
}
select.custom-select:hover,
select.form-control:hover {
    border-color: var(--web-primary-o40);
}

/* The listing sidebar forced the native arrow with a more specific rule, so match it */
.__search-sidebar .custom-select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-inline-end: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    border-radius: 10px !important;
}
[dir="rtl"] .__search-sidebar .custom-select {
    background-position: left 14px center;
}
#min_price, #max_price {
    font-size: 13px;
    padding-inline: 8px;
    text-overflow: ellipsis;
}


/* =====================================================================
   Modern layer: type, header, navigation, sections, footer
   ===================================================================== */
:root {
    --font-family-sans-serif: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-family-monospace: "Inter", "Cairo", ui-monospace, monospace;
    --cl-bg: #f6f7f9;
    --cl-ink: #111827;
    --cl-radius-lg: 18px;
}
body {
    font-family: var(--font-family-sans-serif);
    background: var(--cl-bg);
    color: var(--cl-ink);
    font-size: 15px;
    line-height: 1.55;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.015em; font-weight: 700; color: var(--cl-ink); }
.row, .container { font-feature-settings: "cv11", "ss01"; }

/* ---------- Top bar: quiet and slim ---------- */
.topbar {
    background: #fff !important;
    border-bottom: 1px solid var(--cl-border);
    font-size: 13px;
}
.topbar .topbar-link, .topbar .topbar-text { color: var(--cl-muted) !important; }
.topbar .topbar-link:hover { color: var(--web-primary) !important; }

/* ---------- Header ---------- */
.navbar-sticky.bg-light, .navbar-sticky .navbar:not(.navbar-stuck-menu) {
    background: #fff !important;
}
.navbar-sticky { box-shadow: none; }
.navbar-sticky.navbar-stuck {
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.22);
}
.navbar-brand .store-name-logo { font-size: 1.6rem; }
.navbar-tool-icon-box.bg-secondary, .navbar-tool .navbar-tool-icon-box {
    background: #f3f4f6 !important;
    border-radius: 50% !important;
    transition: background 0.2s ease, transform 0.15s ease;
}
.navbar-tool:hover .navbar-tool-icon-box { background: var(--web-primary-o10) !important; }
.search_form, .input-group-overlay.search-form-mobile { }
.input-group-overlay .form-control, .search-bar-input {
    border-radius: 999px !important;
    border: 1.5px solid #e5e7eb !important;
    background: #f9fafb !important;
    height: 46px;
    padding-inline-start: 20px;
    box-shadow: none !important;
}
.input-group-overlay .form-control:focus, .search-bar-input:focus {
    background: #fff !important;
    border-color: var(--web-primary) !important;
    box-shadow: 0 0 0 4px var(--web-primary-o10) !important;
}
.search_button, .input-group-overlay .input-group-append-overlay .btn, .input-group-append-overlay .search_button {
    border-radius: 999px !important;
}

/* ---------- Navigation band: white, with a clear primary Categories button ---------- */
.navbar-stuck-menu {
    background: #fff !important;
    border-top: 1px solid var(--cl-border);
    border-bottom: 1px solid var(--cl-border);
}
.navbar-stuck-menu > .container { padding-block: 8px !important; }
.navbar-stuck-menu .navbar-nav .nav-link,
.navbar-stuck-menu .navbar-nav .nav-item > a,
.navbar-stuck-menu .navbar-nav .nav-item > button {
    color: #374151 !important;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}
.navbar-stuck-menu .navbar-nav .nav-item > a:not(.category-menu-toggle-btn)::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--web-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.navbar-stuck-menu .navbar-nav .nav-item:hover > a:not(.category-menu-toggle-btn)::after,
.navbar-stuck-menu .navbar-nav .nav-item.active > a:not(.category-menu-toggle-btn)::after { transform: scaleX(1); }
.navbar-stuck-menu .navbar-nav .nav-item:hover > a:not(.category-menu-toggle-btn),
.navbar-stuck-menu .navbar-nav .nav-item.active > a:not(.category-menu-toggle-btn) { color: var(--web-primary) !important; }

.mega-nav .nav-item .nav-link.category-menu-toggle-btn,
.navbar-stuck-menu .mega-nav .nav-link {
    background: var(--web-primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    box-shadow: 0 6px 16px -6px var(--web-primary);
    transition: filter 0.2s ease, transform 0.15s ease;
}
.mega-nav .nav-item .nav-link.category-menu-toggle-btn:hover { filter: brightness(1.08); }
.mega-nav .nav-link svg path { fill: #fff !important; }
.mega-nav .nav-link::after { border-top-color: #fff !important; }
.mega-nav .nav-link .text-capitalize, .mega-nav .nav-link span { color: #fff !important; }

.dropdown-menu {
    border: 1px solid var(--cl-border);
    border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.25);
    padding: 8px;
}
.dropdown-item { border-radius: 8px; padding: 8px 12px; }
.dropdown-item:hover { background: var(--web-primary-o10); color: var(--web-primary); }

/* ---------- Sections ---------- */
.container.rtl, section.container { position: relative; }
.section-header h2, .section-header .section-title, .featured_deal h2,
.view-all-text ~ *, .flash-deals-wrapper h2, .new-arrival-section h2,
.feature-product-title, .widget-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}
.view-all-text, a.view-all-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--web-primary-o10);
    color: var(--web-primary) !important;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}
.view-all-text:hover { background: var(--web-primary); color: #fff !important; text-decoration: none; }

.flash-deals-wrapper {
    background: linear-gradient(135deg, var(--web-primary-o05), var(--web-primary-o10)) !important;
    border: 1px solid var(--web-primary-o10);
    border-radius: 22px;
    padding: 28px 30px;
}
.featured_deal, .featured_deal_left { border-radius: var(--cl-radius-lg); }
.featured_deal { box-shadow: var(--cl-shadow); }

/* Home hero: rounded, with a soft shadow; the category list becomes a card */
.carousel-inner, .owl-carousel .owl-item img.__slide-img, #main-banner, .main-banner-slide, .home-slider, .__slide-img {
    border-radius: var(--cl-radius-lg);
}
.__shadow-5px, .category-menu, .__cat-menu, .mega-nav ~ .__w-18rem {
    border-radius: var(--cl-radius-lg);
}

/* Category circles */
.categories-title, .category-item { transition: transform 0.2s ease; }
.category-item:hover, .category-card:hover { transform: translateY(-3px); }

/* ---------- Footer ---------- */
.page-footer {
    background: #0f1a14 !important;
    border-top: 4px solid var(--web-primary);
    margin-top: 48px;
}
.page-footer .footer-header {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff !important;
    opacity: 0.95;
}
.page-footer a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
.page-footer a:hover { color: #fff; text-decoration: none; }
.page-footer .form-control { border-radius: 999px !important; height: 48px; }
.page-footer .subscribe-button { border-radius: 999px !important; }

/* ---------- Primary buttons ---------- */
.btn { border-radius: 999px; }
.btn-number { border-radius: 8px; }

/* Quantity stepper (product page, its bottom bar, quick view): one pill, as tall as the buttons beside it */
.quantity-box {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 2px;
    width: 124px;
    min-width: 124px;
    height: 44px;
    padding: 3px;
    background: #fff;
    border-radius: 999px !important;
    transition: border-color 0.2s ease;
}
.quantity-box.border-base { border-color: color-mix(in srgb, var(--web-primary) 28%, #e5e7eb) !important; }
.quantity-box.border-base:focus-within { border-color: var(--web-primary) !important; }
.quantity-box .input-group-btn { display: flex; }
.quantity-box .btn-number {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}
.quantity-box .btn-number:focus { box-shadow: none; }
.quantity-box .btn-number:focus-visible { outline: 2px solid var(--web-primary); outline-offset: -2px; }
.quantity-box .btn-number:not(:disabled):active { background: color-mix(in srgb, var(--web-primary) 20%, transparent); }
@media (hover: hover) {
    .quantity-box .btn-number:not(:disabled):hover { color: #fff !important; background: var(--web-primary); }
}
.quantity-box .btn-number:disabled { cursor: default; opacity: 0.3; }
/* style.css makes these 35px squares (!important) */
.product-quantity .quantity-box .btn-number,
.product-quantity .quantity-box .input-number { height: 36px !important; }
.product-quantity .quantity-box .btn-number { border-radius: 50% !important; }
.quantity-box .input-number {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 36px;
    padding: 0 !important;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    background: transparent !important;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
}
.quantity-box .input-number::-webkit-inner-spin-button,
.quantity-box .input-number::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
[theme="dark"] .quantity-box { background: transparent; }
[theme="dark"] .quantity-box .input-number { color: #e5e7eb; }

/* Colour and option rows: the name stays level with the first line of choices, however many lines they take */
.product-option-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.product-option-row > .product-description-label { flex: 0 0 auto; margin: 0; padding: 0; line-height: 26px; }
.product-option-row > :last-child { flex: 1 1 0; min-width: 0; }
.product-option-row .checkbox-alphanumeric { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.product-option-row .checkbox-alphanumeric label { height: 26px; margin: 0; line-height: 24px; }
.product-option-row .checkbox-color { row-gap: 8px; margin: 0; }

/* phones: the stepper and both buttons of the bottom bar share one row without leaving the screen */
@media (max-width: 575px) {
    .product-details-sticky-bottom .quantity-box { width: 104px; min-width: 104px; }
    .product-details-sticky-bottom .quantity-box .btn-number { flex-basis: 32px; width: 32px; }
    .product-details-sticky-bottom .product-add-and-buy-section { flex: 1; min-width: 0; }
    .product-details-sticky-bottom .product-add-and-buy-section .btn {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        padding-inline: 0.5rem;
        white-space: nowrap;
        border-radius: 999px; /* style.css squares them under 370px */
    }
}
.btn--primary, .btn-primary, .btn-accent {
    background: var(--web-primary);
    border-color: var(--web-primary);
    box-shadow: 0 8px 18px -10px var(--web-primary);
}
.btn--primary:hover, .btn-primary:hover { filter: brightness(1.08); }

/* ---------- Pages: breathing room ---------- */
.page-title, .page-title-overlap { letter-spacing: -0.02em; }

/* ---------- Fixes after the modern layer ---------- */
/* "Offers" is a button with a hard-coded white label (it sat on the old coloured band) */
.navbar-stuck-menu .btn.dropdown-toggle,
.navbar-stuck-menu .nav-item .btn {
    color: #374151 !important;
    font-weight: 500;
    font-size: 15px;
    background: transparent;
    box-shadow: none;
    padding-inline: 14px;
}
.navbar-stuck-menu .btn.dropdown-toggle:hover,
.navbar-stuck-menu .btn.dropdown-toggle[aria-expanded="true"] { color: var(--web-primary) !important; }

/* Section cards share one radius */
.__featured-deal-wrap, .__featured-deal-wrap.bg--light,
.__shadow-2, .__shadow-2 > .__p-20px, .bg-white.rounded.overflow-hidden {
    border-radius: 20px !important;
}
.__featured-deal-wrap.bg--light {
    background: linear-gradient(135deg, var(--web-primary-o05), var(--web-primary-o10)) !important;
    border: 1px solid var(--web-primary-o10);
}
.__shadow-2 { box-shadow: var(--cl-shadow) !important; border: 1px solid var(--cl-border); }

/* Prices never break in the middle of an amount */
.flash-product-price, .product-price .text-accent, .discounted-unit-price,
.category-single-product-price { white-space: nowrap; }

/* Clearance Sale: a clean tag instead of the old ribbon graphic */
.clearance-sale-title-bg {
    background-image: none !important;
    width: auto;
    min-height: 0;
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 4px;
}
.clearance-sale-title-bg .title,
.clearance-sale-title-bg .sub-title {
    position: static;
    width: auto;
    transform: none !important;
    line-height: 1.2;
}
.clearance-sale-title-bg .title span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 8px 18px -8px rgba(239, 68, 68, 0.7);
}
.clearance-sale-title-bg .sub-title {
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: start;
}
.clearance-sale-title-bg .sub-title span::before { content: "\26A1\FE0E\00a0"; }

/* Deal-of-the-day and sidebar cards */
.__deal-of-the-day, .deal_of_the_day, [class*="deal-of-the-day"] { border-radius: 20px; overflow: hidden; }

/* ---------- Second pass ---------- */
section.featured_deal { border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
section.featured_deal .container { background: transparent; }

/* Slides in a carousel row stretch to the same height */
.flash-deals-wrapper .owl-stage,
.new-arrival-section .owl-stage { display: flex; }
.flash-deals-wrapper .owl-item,
.new-arrival-section .owl-item { display: flex; }
.flash-deals-wrapper .owl-item > *,
.new-arrival-section .owl-item > * { width: 100%; }
.flash-deals-wrapper .owl-item .product-single-hover { height: auto; flex: 1 1 auto; }

.clearance-sale-title-bg { flex-direction: column; }

.input-group-overlay, .search-form, .search_form { border-radius: 999px; overflow: hidden; }
.input-group-overlay .form-control { border-radius: 999px !important; }

/* Category list as a card. No overflow clipping here: the subcategory flyouts open outside the list. */
.category-menu-wrap .category-menu { border-radius: var(--cl-radius-lg); box-shadow: var(--cl-shadow); }

/* Full-width blocks on phones sit flush, so they shouldn't have clipped rounded corners */
@media (max-width: 767px) {
    .flash-deals-wrapper { border-radius: 0 !important; border-inline: 0 !important; padding: 20px 14px; }
    .container > .__shadow-2, .container > .__shadow-2 > .__p-20px { border-radius: 16px !important; }
}

/* ---------- Section headers line up with the product row ---------- */
.__p-20px > .d-flex.px-sm-3,
.__p-20px > .d-flex.flex-between {
    padding-inline: 0 !important;
}
.category-product-view-all .view-all-text { margin-inline-end: 0; }
.category-product-view-all .view-all-text i { margin-inline: 4px 0 !important; float: none !important; margin-top: 0 !important; }
.for-feature-title { letter-spacing: -0.01em; }

/* Every product carousel row stretches its cards to the tallest one */
.owl-carousel:has(.product-single-hover) .owl-stage { display: flex; }
.owl-carousel:has(.product-single-hover) .owl-item { display: flex; height: auto; }
.owl-carousel:has(.product-single-hover) .owl-item > * { width: 100%; }
.owl-carousel:has(.product-single-hover) .product-single-hover { height: auto; flex: 1 1 auto; }

/* Those negative margins offset the header's old side padding, which is gone now */
html[dir] .category-product-view-title,
html[dir] .category-product-view-all { margin-inline: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Deal of the day card */
.__deal-of-the-day, .deal-of-the-day, .deal_of_the_day, [class*="deal"][class*="day"] { border-radius: 20px; }

/* Sliding cards stay inside the content width instead of bleeding into the card's padding */
.carousel-wrap-2 {
    overflow: hidden;
    padding-block: 6px;
    margin-block: -6px;
}

/* The "delivering to" pill sits above the product page's sticky bar instead of on top of it */
#region-pill {
    transition: bottom 0.25s ease;
}
html[style*="--sticky-offset"] #region-pill {
    bottom: calc(var(--sticky-offset, 0px) + 1rem);
}


/* =====================================================================
   Floating buttons (WhatsApp + back to top)
   ===================================================================== */
.floating-btn-grp {
    bottom: 24px;
    inset-inline-end: 20px;
    right: auto;
    gap: 12px;
    align-items: flex-end;
}
[dir="ltr"] .floating-btn-grp { right: 20px; left: auto; }
[dir="rtl"] .floating-btn-grp { left: 20px; right: auto; }
.floating-btn-grp.has-product-details-sticky { bottom: calc(var(--sticky-offset, 130px) + 16px); }

.wa-widget-send-button { padding: 0 !important; }
.wa-widget-send-button a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.wa-widget-send-button .wa-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.65), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-widget-send-button .wa-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.45;
    animation: cl-wa-pulse 2.6s ease-out infinite;
    z-index: -1;
}
.wa-widget-send-button .wa-messenger-svg-whatsapp {
    width: 56px;
    height: 56px;
    filter: none;
    transform: none;
}
.wa-widget-send-button:hover .wa-messenger-svg-whatsapp { transform: none; filter: none; }
.wa-widget-send-button:hover .wa-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 28px -6px rgba(37, 211, 102, 0.75), 0 2px 6px rgba(0, 0, 0, 0.14);
}
.wa-widget-send-button .wa-label {
    order: -1;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
[dir="rtl"] .wa-widget-send-button .wa-label { order: 1; transform: translateX(-10px); }
.wa-widget-send-button a:hover .wa-label,
.wa-widget-send-button a:focus-visible .wa-label { opacity: 1; transform: none; }
.wa-widget-send-button a:focus-visible .wa-icon { outline: 3px solid #fff; box-shadow: 0 0 0 5px #25d366; }
@keyframes cl-wa-pulse {
    0%   { transform: scale(1);   opacity: 0.45; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Back to top: a quiet round button that matches */
.floating-btn-grp .btn-scroll-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff !important;
    color: var(--web-primary);
    border: 1px solid var(--cl-border);
    box-shadow: var(--cl-shadow);
    display: grid;
    place-items: center;
    margin-inline-end: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.floating-btn-grp .btn-scroll-top:hover { transform: translateY(-2px); box-shadow: var(--cl-shadow-hover); }
.floating-btn-grp .btn-scroll-top .btn-scroll-top-icon { color: var(--web-primary); font-size: 16px; position: static; }

@media (max-width: 575px) {
    .floating-btn-grp { bottom: 16px; }
    [dir="ltr"] .floating-btn-grp { right: 14px; }
    [dir="rtl"] .floating-btn-grp { left: 14px; }
    .wa-widget-send-button .wa-icon, .wa-widget-send-button .wa-messenger-svg-whatsapp { width: 50px; height: 50px; }
    .wa-widget-send-button .wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-widget-send-button .wa-icon::before { animation: none; opacity: 0; }
}

/* =====================================================================
   Product card: Add to cart
   ===================================================================== */
.card-add-to-cart-wrap { padding: 10px 12px 12px; margin-top: auto; }
.product-single-hover .single-product-details { padding-bottom: 0; }
.card-add-to-cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--web-primary);
    border-radius: 999px;
    background: transparent;
    color: var(--web-primary);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.card-add-to-cart i { font-size: 16px; line-height: 1; }
.card-add-to-cart:hover:not(:disabled) {
    background: var(--web-primary);
    color: #fff;
    box-shadow: 0 8px 18px -10px var(--web-primary);
}
.card-add-to-cart:active:not(:disabled) { transform: translateY(1px); }
.card-add-to-cart.is-loading { opacity: 0.7; pointer-events: none; }
.card-add-to-cart.is-added { background: var(--web-primary); color: #fff; }
.card-add-to-cart:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    background: #f3f4f6;
    cursor: not-allowed;
}
@media (max-width: 575px) {
    .card-add-to-cart-wrap { padding: 8px 8px 10px; }
    .card-add-to-cart { height: 36px; font-size: 12.5px; gap: 6px; }
}


/* ---------- Categories dropdown: clearer open state ---------- */
.mega-nav .category-menu-toggle-btn::after { transition: transform 0.2s ease; }
header:has(.megamenu-wrap.show) .mega-nav .category-menu-toggle-btn::after { transform: rotate(180deg); }
header:has(.megamenu-wrap.show) .mega-nav .category-menu-toggle-btn { filter: brightness(0.92); }
.megamenu-wrap { transition: opacity 0.18s ease, visibility 0.18s ease; }
.megamenu-wrap .category-menu-wrap .category-menu {
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.35);
    border: 1px solid var(--cl-border);
}
.category-menu-wrap .mega_menu { border-radius: var(--cl-radius-lg); box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.35); }

/* A dimmed backdrop makes it obvious the menu is open, even where the page already shows the same list (home) */
.megamenu-wrap.show::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(15, 23, 42, 0.38);
    z-index: -1;
    animation: cl-fade-in 0.18s ease;
}
.megamenu-wrap.show .category-menu-wrap { position: relative; z-index: 1; }
@keyframes cl-fade-in { from { opacity: 0; } to { opacity: 1; } }


/* ---------- WhatsApp: one flat circle with a clean glyph (replaces the earlier layered look) ---------- */
.wa-widget-send-button .wa-icon {
    width: 54px;
    height: 54px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(18, 140, 74, 0.55);
}
.wa-widget-send-button .wa-icon svg { display: block; width: 28px; height: 28px; }
.wa-widget-send-button:hover .wa-icon {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(18, 140, 74, 0.6);
}
/* a thin ring that expands and fades, instead of a filled halo */
.wa-widget-send-button .wa-icon::before {
    background: transparent;
    border: 2px solid #25d366;
    opacity: 0.5;
    animation: cl-wa-ring 3s ease-out infinite;
}
@keyframes cl-wa-ring {
    0%   { transform: scale(1);    opacity: 0.5; }
    60%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 575px) {
    .wa-widget-send-button .wa-icon { width: 50px; height: 50px; }
    .wa-widget-send-button .wa-icon svg { width: 26px; height: 26px; }
}


/* =====================================================================
   Account area, forms, trust tiles
   ===================================================================== */
.user-profile-container {
    background: transparent !important;
    max-width: 1290px;
}
.__customer-sidebar {
    border-radius: var(--cl-radius-lg);
    border: 1px solid var(--cl-border);
    box-shadow: var(--cl-shadow);
    padding: 16px 14px;
}
.__customer-sidebar .widget-title a {
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}
.__customer-sidebar .widget-title a:hover { background: var(--web-primary-o07); }
.__customer-sidebar .widget-title a.active-menu { background: var(--web-primary-o10); }
.__customer-profile.customer-profile-wishlist,
.__customer-profile {
    border-radius: var(--cl-radius-lg);
}
.__customer-profile > .card,
.customer-profile-wishlist, .__customer-profile .bg-white {
    border-radius: var(--cl-radius-lg);
}

/* Form fields: neutral borders (the old ones had a blue tint) */
.form-control, .custom-select, .input-group-text, .iti input {
    border-color: #e5e7eb;
    background-color: #fff;
}
.form-control:hover:not(:focus) { border-color: #cfd4dc; }
.form-control::placeholder { color: #9ca3af; }

/* Trust tiles above the footer (About us / Contact / FAQ) */
.footer-top-slide-item, .shipping-method-system {
    border-radius: var(--cl-radius-lg);
}
.shipping-policy-web .footer-top-slide-item {
    background: #fff;
    border: 1px solid var(--cl-border);
    box-shadow: var(--cl-shadow);
    padding: 8px 12px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shipping-policy-web .footer-top-slide-item:hover { transform: translateY(-2px); box-shadow: var(--cl-shadow-hover); }
.owl-item:not(:last-child) .footer-top-slide-item::after { display: none; }
.__card .form-control, .__card .custom-file-label, .__card .card-header { border-color: #e5e7eb; }
.__card .card-header { background: #fafafa; }

/* Sign-in icon: brand colour instead of the fixed blue image */
.auth-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--web-primary-o10);
    color: var(--web-primary);
}

/* Page banners (Brands, Categories, Shops): brand-tinted gradient instead of the fixed blue image */
.bg-primary-light, .bg-primary-light[data-bg-img] {
    background: linear-gradient(135deg, var(--web-primary-o05), var(--web-primary-o15)) !important;
    border: 1px solid var(--web-primary-o10);
    border-radius: 20px !important;
}
.bg-primary-light .text-primary, .bg-primary-light h1, .bg-primary-light h2 { color: var(--web-primary-dark) !important; }

/* Brand / category tiles */
.brand_div {
    border-radius: 14px;
    border: 1px solid var(--cl-border);
    background: #fff;
    box-shadow: var(--cl-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand_div:hover { transform: translateY(-3px); box-shadow: var(--cl-shadow-hover); }
.brand_div img { border-radius: 10px; }

/* Latest Products: one grid where every card has the same height (rows included) */
.__deal-of .col-xl-9 > .row,
.__deal-of [class*="col-"] > .row.mt-0.g-2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
    margin-inline: 0;
}
.__deal-of .row.mt-0.g-2 > [class*="col-"] { width: auto; max-width: none; padding: 0; display: flex; }
.__deal-of .row.mt-0.g-2 > [class*="col-"] > div { width: 100%; display: flex; }
.__deal-of .row.mt-0.g-2 .product-single-hover { width: 100%; }
@media (max-width: 1199px) { .__deal-of .row.mt-0.g-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .__deal-of .row.mt-0.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.__deal-of .row.mt-0.g-2 { gap: 12px !important; }
/* Names reserve two lines so prices line up across a row */
.product-single-hover .single-product-details .product-name { min-height: 2.8em; display: flex; align-items: flex-start; justify-content: center; }
.product-single-hover .single-product-details .product-name a { display: -webkit-box; }
@media (min-width: 1200px) { .__deal-of .row.mt-0.g-2 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.__deal-of .row.mt-0.g-2::before, .__deal-of .row.mt-0.g-2::after { display: none !important; content: none !important; }
.__deal-of .row.mt-0.g-2 { display: grid !important; }
.product-single-hover .rating-show { height: 22px; min-height: 22px; max-height: 22px; overflow: hidden; }

/* ---------- RTL fixes ---------- */
[dir="rtl"] .clearance-sale-title-bg { transform: none; }
.input-group-overlay .form-control.search-bar-input, .search_form .form-control { padding-inline-end: 64px; }
.card-add-to-cart { white-space: nowrap; padding-inline: 8px; gap: 6px; min-width: 0; }
.card-add-to-cart span:not(.sr-only) { overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .card-add-to-cart { font-size: 13px; }
/* never the screen-reader label of the icon-only button: unclipped, it widened the page on phones */
.card-add-to-cart span:not(.sr-only) { overflow: visible; text-overflow: clip; line-height: 1.3; padding-block: 2px; }
[dir="rtl"] .card-add-to-cart { font-size: 12.5px; }
[dir="rtl"] .card-add-to-cart i { font-size: 15px; }

/* Flash deal banner: title sits on a frosted panel so it stays readable on any banner photo */
.__flash-deals-bg { border-radius: var(--cl-radius-lg) !important; overflow: hidden; }
.__flash-deals-bg .col-lg-8.text-primary {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 16px 22px;
    max-width: calc(66.666% - 24px);
    margin-inline-end: auto;
}
.__flash-deals-bg .flash_deal_title { color: var(--web-primary-dark, var(--web-primary)) !important; }

/* Placeholder text needs more contrast than the browser default on the light field background */
.form-control::placeholder, .search-bar-input::placeholder, input::placeholder, textarea::placeholder { color: #6b7280; opacity: 1; }

/* Compact icon-only add to cart on horizontal cards */
.flash_deal_product { position: relative; }
.card-add-to-cart.card-add-to-cart--compact {
    position: absolute; inset-block-end: 10px; inset-inline-end: 10px;
    width: 36px; height: 36px; padding: 0; gap: 0;
    border-radius: 50%; background: #fff; z-index: 2;
}
.card-add-to-cart.card-add-to-cart--compact i { font-size: 17px; }
.flash_deal_product .flash_deal_product_details { padding-inline-end: 40px !important; }

/* Filter sidebar / drawer: neutral field borders, price inputs that fit */
.cz-sidebar select, .cz-sidebar .form-control, .cz-sidebar .custom-select { border-color: #e5e7eb; border-radius: 12px; }
.cz-sidebar select:focus, .cz-sidebar .form-control:focus { border-color: var(--web-primary); box-shadow: 0 0 0 3px var(--web-primary-o10); }
.cz-sidebar input[type="number"], .cz-sidebar .price-range input, .cz-sidebar input[name="max_price"], .cz-sidebar input[name="min_price"] { min-width: 0; padding-inline: 10px; text-overflow: ellipsis; }

/* Order tracking / order details: the stock icons are blue, so shift them to the brand colour */
.order-track-info .media-tab-media img, img[src$="icons/downloads.png"] { filter: hue-rotate(-128deg) saturate(1.1); }
.order-track-info .nav-link:not(.active-status) .media-tab-media img { opacity: 0.55; }
.col-12.text-center > a.text-center { color: var(--web-primary); font-weight: 600; }
.col-12.text-center > a.text-center:hover { text-decoration: underline; }

/* Account tables: brand-tinted header instead of the stock pale blue; container lines up with the page grid */
.thead-light th, .table .thead-light th { background-color: var(--web-primary-o05) !important; border-color: transparent !important; color: #1f2937; }
.user-profile-container { max-width: 1260px; margin-inline: auto; padding-inline: 0; }
.__table .thead-light, .__table .thead-light tr, .__table .thead-light td, .__table-2 thead, .__table-2 thead td { background-color: var(--web-primary-o05) !important; }

/* Best selling / Top rated rows: compact add to cart sits in the row's corner, outside the link */
.__best-selling-item { position: relative; }
.__best-selling-item .card-add-to-cart--compact { inset-block-end: 6px; inset-inline-end: 6px; width: 34px; height: 34px; }
.__best-selling-item .best-selling-details { padding-inline-end: 38px; }

/* Review button: readable amber instead of the pale stock warning colour */
.btn-warning { background-color: #b45309 !important; border-color: #b45309 !important; color: #fff !important; }
.btn-warning:hover, .btn-warning:focus { background-color: #92400e !important; border-color: #92400e !important; }
.btn-warning i { margin-inline-end: 4px; vertical-align: -1px; }

/* ---------- Search and Subscribe buttons: sit fully inside their pill field, evenly inset ---------- */
.input-group-overlay.search-form-mobile .search_form,
.search_form .d-flex { position: relative; }
.navbar form .search_button, .search_form .search_button {
    position: absolute !important;
    top: 4px !important; bottom: 4px;
    inset-inline-end: 4px !important; inset-inline-start: auto !important;
    left: auto; right: auto;
    height: auto; width: 56px; margin: 0; padding: 0;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 999px !important; border: 0;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
[dir="rtl"] .navbar form .search_button, [dir="rtl"] .search_form .search_button { left: 4px; right: auto; }
[dir="ltr"] .navbar form .search_button, [dir="ltr"] .search_form .search_button { right: 4px; left: auto; }
.search_button .input-group-text { background: transparent !important; border: 0; padding: 0; height: auto; width: 100%; justify-content: center; }
.search_button:hover { filter: brightness(1.08); }
.search_button:active { transform: scale(0.96); }
.search-bar-input { padding-inline-end: 70px !important; }

.page-footer .subscribe-border { height: 52px; border-radius: 999px !important; padding-inline: 20px 130px !important; }
.page-footer .subscribe-button {
    position: absolute; top: 6px; bottom: 6px; height: auto !important;
    inset-inline-end: 6px !important;
    padding: 0 20px; border: 0; border-radius: 999px !important;
    background: #fff; color: #111; font-size: 13px !important; font-weight: 700;
    text-transform: none; letter-spacing: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.page-footer .subscribe-button:hover { background: var(--web-primary); color: #fff; }
/* theme.css forces 5px right corners on the appended search input; keep the full pill */
.input-group-overlay .appended-form-control:not(.rounded-right-0),
[dir="rtl"] .input-group-overlay .appended-form-control:not(.rounded-right-0) { border-radius: 999px !important; }
.input-group-overlay .search_form { overflow: visible; }

/* ---------- Carousel arrows: round white buttons, inset from the row's edges, centred vertically ---------- */
.owl-theme.owl-carousel { position: relative; }
.owl-theme .owl-nav:not(.disabled) {
    position: absolute; top: 50%; inset-inline: 0; left: 0; width: 100% !important; height: 0 !important;
    display: flex !important; justify-content: space-between; align-items: center;
    pointer-events: none; margin: 0; z-index: 5;
}
.owl-theme .owl-nav button.owl-prev, .owl-theme .owl-nav button.owl-next {
    pointer-events: auto;
    width: 38px; height: 38px; margin: 0 12px !important; padding: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    background: #fff !important; color: var(--web-primary) !important;
    border: 1px solid var(--cl-border) !important; border-radius: 50% !important;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.28);
    transform: translateY(-50%) !important;
    transition: opacity 0.25s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.owl-theme .owl-nav button.owl-prev:hover, .owl-theme .owl-nav button.owl-next:hover {
    background: var(--web-primary) !important; color: #fff !important; box-shadow: 0 8px 18px -6px var(--web-primary);
}
.owl-theme .owl-nav button.owl-prev *, .owl-theme .owl-nav button.owl-next * { color: inherit !important; font-size: 18px; line-height: 1; background: transparent !important; }
.owl-theme .owl-nav button.disabled { opacity: 0.35; cursor: default; }
.owl-theme:not(:hover) .owl-nav { opacity: 0; }
.owl-theme .owl-nav { opacity: 1; }
@media (hover: none) { .owl-theme:not(:hover) .owl-nav { opacity: 1; } }
@media (max-width: 767px) {
    .owl-theme .owl-nav button.owl-prev, .owl-theme .owl-nav button.owl-next { width: 32px; height: 32px; margin: 0 6px !important; }
}
/* the three-card "featured" list manages its own arrows */
#featured_products_list.owl-theme .owl-nav button.owl-prev, #featured_products_list.owl-theme .owl-nav button.owl-next { transform: translateY(-50%) !important; }

/* ---------- Mobile fixes ---------- */
/* my desktop search-button rule must not re-show the button that Bootstrap hides below 768px */
@media (max-width: 767.98px) {
    .search_form .search_button.d-none, .navbar form .search_button.d-none { display: none !important; }
    .search-bar-input { padding-inline-end: 20px !important; }
    .close-search-form-mobile { white-space: nowrap; flex-shrink: 0; padding-inline: 12px 4px; align-self: center; }
    .search-form-mobile .search_form .d-flex { flex-wrap: nowrap; }
    /* arrows would sit on top of the card text in the narrow one-card carousels; swiping works on touch */
    .owl-theme .owl-nav { display: none !important; }
}
@media (max-width: 575.98px) {
    .card-add-to-cart.card-add-to-cart--compact { inset-block-start: 8px; inset-block-end: auto; width: 32px; height: 32px; }
    .flash_deal_product .flash_deal_product_details { padding-inline-end: 40px !important; }
    .__best-selling-item .card-add-to-cart--compact { inset-block-start: auto; inset-block-end: 6px; }
}
@media (max-width: 767.98px) {
    .input-group-overlay.search-form-mobile { background: #fff !important; border-bottom: 1px solid var(--cl-border); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.25); border-radius: 0 0 var(--cl-radius-lg, 18px) var(--cl-radius-lg, 18px) !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .__deal-of .row.mt-0.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .__deal-of .row.mt-0.g-2 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.navbar-stuck-menu .navbar-nav { align-items: center; }
.navbar-stuck-menu .navbar-nav .nav-item, .navbar-stuck-menu .navbar-nav .nav-link { display: flex; align-items: center; }
.navbar-stuck-menu .navbar-nav .nav-link.dropdown-toggle::after { margin-inline-start: 6px; }

/* ---------- Narrow widths ---------- */
.__featured-deal-wrap .w-0 span.text-nowrap { white-space: normal !important; }
@media (max-width: 991.98px) {
    /* two-up / one-up deal cards are too narrow for a bottom-corner button next to the price */
    .card-add-to-cart.card-add-to-cart--compact { inset-block-start: 8px; inset-block-end: auto; width: 32px; height: 32px; }
    .flash_deal_product .flash_deal_product_details { padding-inline-end: 40px !important; }
    .__best-selling-item .card-add-to-cart--compact { inset-block-start: auto; inset-block-end: 6px; }
}
@media (max-width: 379.98px) {
    .mobile-head .navbar > .container { flex-wrap: nowrap; gap: 4px; padding-inline: 10px; }
    .mobile-head .navbar-brand { margin: 0 !important; min-width: 0 !important; flex-shrink: 1; }
    .mobile-head .store-name-logo, .mobile-head .navbar-brand img { font-size: 17px; max-height: 28px; }
    .mobile-head .navbar-tool { margin-inline-start: 4px !important; }
    .mobile-head .navbar-tool-icon-box { width: 34px; height: 34px; }
}
