/* ============================================================
   Modern overlay - Israeli ecommerce redesign
   Loaded LAST. Overrides legacy style.css / v2.css without
   touching any markup. RTL aware.
   ============================================================ */

:root {
    --m-primary:        #0f2540;   /* deep navy header */
    --m-primary-soft:   #1a3358;
    --m-accent:         #e63946;   /* red for sale / price */
    --m-accent-dark:    #c92a36;
    --m-buy:            #1f9b51;   /* green buy button */
    --m-buy-dark:       #15803d;
    --m-yellow:         #ffd34d;   /* sale ribbon */
    --m-bg:             #f6f7fb;
    --m-card:           #ffffff;
    --m-border:         #e5e8ec;
    --m-border-soft:    #eef0f4;
    --m-text:           #1f2430;
    --m-muted:          #6b7280;
    --m-shadow-sm:      0 1px 3px rgba(15,37,64,.06), 0 1px 2px rgba(15,37,64,.04);
    --m-shadow-md:      0 6px 18px rgba(15,37,64,.08);
    --m-shadow-lg:      0 14px 32px rgba(15,37,64,.14);
    --m-radius:         12px;
    --m-radius-sm:      8px;
    --m-radius-lg:      18px;
}

/* ---------- base typography ---------- */
html, body {
    background: var(--m-bg) !important;
    color: var(--m-text);
}
body {
    font-family: 'Heebo', 'Open Sans Hebrew', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Override the legacy `* { font-family: 'Open Sans Hebrew' }` rule from v2.css.
   Use a non-icon selector so Font Awesome's `font-family: FontAwesome` is preserved. */
body, body :not(i):not(.fa):not([class*="fa-"]):not([class*="glyphicon"]) {
    font-family: 'Heebo', 'Open Sans Hebrew', 'Segoe UI', Arial, sans-serif;
}
/* Hard-assert FontAwesome on icon elements - wins against legacy `*` rules */
.fa, i.fa, [class^="fa-"], [class*=" fa-"] {
    font-family: 'FontAwesome' !important;
    font-weight: normal !important;
    font-style: normal !important;
}
.fa::before, i.fa::before, [class^="fa-"]::before, [class*=" fa-"]::before {
    font-family: 'FontAwesome' !important;
}
/* Same for Bootstrap glyphicons used in legacy search button */
.glyphicon, [class^="glyphicon-"], [class*=" glyphicon-"] {
    font-family: 'Glyphicons Halflings' !important;
}
.container {
    background: transparent !important;
    max-width: 1240px;
}
@media (min-width: 1200px) {
    .container { width: 1200px; }
}

/* outer body wrapper that the legacy header opens */
body > div[style*="background-color:#ffffff"]:first-of-type {
    background: var(--m-bg) !important;
}

/* ---------- links ---------- */
a {
    color: var(--m-primary) !important;
    transition: color .15s ease;
}
a:hover {
    color: var(--m-accent) !important;
    text-decoration: none !important;
}

/* ---------- TOP UTILITY BAR (injected via CSS into desktop header) ---------- */
.m-top-utility {
    background: var(--m-primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    margin: 0 -15px 0 -15px;
}
.m-top-utility .container { padding: 0 25px; }
.m-top-utility a { color: #fff !important; opacity: .9; margin-left: 16px; }
.m-top-utility a:hover { opacity: 1; color: var(--m-yellow) !important; }
.m-top-utility .m-tu-left  { float: left; }
.m-top-utility .m-tu-right { float: right; }
.m-top-utility i { margin-left: 6px; }
.m-top-utility::after { content: ""; display: block; clear: both; }

/* ---------- DESKTOP HEADER (table28 row) ---------- */
#table28 {
    background: #fff;
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow-sm);
    padding: 8px 12px;
    margin: 14px 0 !important;
}
#table28 td { vertical-align: middle; padding: 8px 4px; }
.HeaderLinks {
    color: var(--m-text) !important;
    font-size: 15px !important;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--m-radius-sm);
    display: inline-block;
    transition: background .15s ease, color .15s ease;
}
.HeaderLinks i {
    color: var(--m-primary);
    margin-left: 6px;
    transition: color .15s ease;
}
.HeaderLinks:hover {
    background: var(--m-bg);
    color: var(--m-accent) !important;
}
.HeaderLinks:hover i { color: var(--m-accent); }

/* hero banner image (the long /3.jpg one) */
a > img[src*="/3.jpg"], a > img[src="images/3.jpg"] {
    border-radius: var(--m-radius-lg) !important;
    box-shadow: var(--m-shadow-md);
    overflow: hidden;
}

/* ---------- NEWS / RUNNING BAR ---------- */
.row .col-md-12 > div[style*="background-color:#F7F7F7"] {
    background: linear-gradient(90deg, #fff 0%, var(--m-bg) 100%) !important;
    border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius) !important;
    height: auto !important;
    min-height: 42px;
    padding: 8px 14px !important;
    box-shadow: var(--m-shadow-sm);
}

/* ---------- SIDEBAR ---------- */
.sidebartitles {
    background: var(--m-primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--m-radius) var(--m-radius) 0 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    text-align: right !important;
    position: relative;
    box-shadow: var(--m-shadow-sm);
}
.sidebartitles::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--m-yellow);
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 10px;
    position: relative;
    top: -2px;
}

.sidebarmenu {
    background: #fff;
    border: 1px solid var(--m-border);
    border-top: 0;
    border-radius: 0 0 var(--m-radius) var(--m-radius);
    /* IMPORTANT: do NOT use overflow:hidden here - the sub-menu UL
       is position:absolute and flies out to the LEFT of the sidebar. */
    overflow: visible;
    box-shadow: var(--m-shadow-sm);
    margin-bottom: 18px;
    position: relative;
}
/* Round the inner UL's last item instead of using overflow:hidden on the parent */
.sidebarmenu > ul > li:last-child > a {
    border-radius: 0 0 var(--m-radius) var(--m-radius);
}

/* ---- Sub-menu flyout (categories with children) ----
   IMPORTANT: NO horizontal margin here - any gap between the parent <li>
   and this flyout creates a dead zone that triggers mouseout and closes
   the sub-menu before the cursor can reach it. The flyout must sit flush
   against the parent item's edge. */
.sidebarmenu ul li ul {
    background: #fff !important;
    border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius-sm) !important;
    box-shadow: var(--m-shadow-md) !important;
    width: 220px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
    overflow: visible;
}
.sidebarmenu ul li ul li a {
    background: #fff !important;
    border-bottom: 1px solid var(--m-border-soft) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--m-text) !important;
}
.sidebarmenu ul li ul li:last-child a { border-bottom: 0 !important; }
.sidebarmenu ul li ul li a:hover {
    background: var(--m-bg) !important;
    color: var(--m-accent) !important;
    padding-right: 14px !important; /* don't trigger the parent's hover-shift on flyout items */
}
.sidebarmenu ul li ul li a:hover::before { content: none !important; }

/* Visual hint that an item has children (caret) */
.sidebarmenu ul li > a.subfolderstyle {
    background-image: none !important;
}
.sidebarmenu ul li > a.subfolderstyle::after {
    content: "\f104"; /* fa-angle-left = points to flyout direction in RTL */
    font-family: 'FontAwesome' !important;
    color: var(--m-muted);
    float: left;
    margin-top: 2px;
    transition: color .15s ease, transform .15s ease;
}
.sidebarmenu ul li > a.subfolderstyle:hover::after {
    color: var(--m-accent);
    transform: translateX(-3px);
}
.sidebarmenu ul li a {
    background: #fff !important;
    color: var(--m-text) !important;
    border-bottom: 1px solid var(--m-border-soft) !important;
    padding: 12px 16px !important;
    font-weight: 500;
    transition: background .15s ease, color .15s ease, padding .15s ease;
    position: relative;
}
.sidebarmenu ul li a:link,
.sidebarmenu ul li a:visited,
.sidebarmenu ul li a:active {
    background: #fff !important;
}
.sidebarmenu ul li a:hover {
    background: var(--m-bg) !important;
    color: var(--m-accent) !important;
    padding-right: 22px !important;
}
.sidebarmenu ul li a:hover::before {
    content: "\f104"; /* fa angle-left, RTL points to item */
    font-family: 'FontAwesome' !important;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--m-accent);
}
.sidebarmenu ul li:last-child a { border-bottom: 0 !important; }

/* sidebar info pages list-group */
.list-group {
    border-radius: 0 0 var(--m-radius) var(--m-radius);
    overflow: hidden;
    box-shadow: var(--m-shadow-sm);
}
.list-group-item {
    border-color: var(--m-border-soft) !important;
    padding: 12px 16px !important;
    color: var(--m-text) !important;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.list-group-item:hover {
    background: var(--m-bg) !important;
    color: var(--m-accent) !important;
}

/* ---------- MAILING LIST BOX ---------- */
.jointomailinglistframe {
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-primary-soft) 100%) !important;
    border: 0 !important;
    border-radius: var(--m-radius) !important;
    padding: 18px !important;
    box-shadow: var(--m-shadow-md);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.jointomailinglistframe::after {
    content: "\f0e0";
    font-family: 'FontAwesome' !important;
    position: absolute;
    bottom: -20px;
    left: -10px;
    font-size: 110px;
    color: rgba(255,255,255,.07);
    pointer-events: none;
}
.jointomailinglisttitle {
    color: #fff !important;
    font-size: 20px !important;
    text-align: right !important;
    margin-bottom: 6px;
}
.jointomailinglistframe div { color: rgba(255,255,255,.85); }
.jointomailinglistframe input.form-control {
    border-radius: var(--m-radius-sm) !important;
    border: 0 !important;
    height: 40px;
    padding: 0 12px;
    font-size: 14px !important;
}
.jointomailinglistframe .btn-info {
    background: var(--m-yellow) !important;
    border-color: var(--m-yellow) !important;
    color: var(--m-primary) !important;
    font-weight: 700 !important;
    border-radius: var(--m-radius-sm) !important;
    padding: 9px 22px !important;
    width: 100%;
    box-shadow: 0 2px 0 rgba(0,0,0,.08);
    transition: transform .1s ease, background .15s ease;
}
.jointomailinglistframe .btn-info:hover {
    background: #ffc01a !important;
    color: var(--m-primary) !important;
    transform: translateY(-1px);
}

/* ---------- SEARCH BAR ---------- */
.input-group .form-control {
    border-radius: var(--m-radius-sm) 0 0 var(--m-radius-sm) !important;
    border: 1px solid var(--m-border) !important;
    box-shadow: none !important;
    height: 42px;
    font-size: 15px !important;
    padding: 0 14px;
}
[dir="rtl"] .input-group .form-control,
html[dir="rtl"] .input-group .form-control {
    border-radius: 0 var(--m-radius-sm) var(--m-radius-sm) 0 !important;
}
.input-group .input-group-btn .btn,
.input-group-btn .btn {
    background: var(--m-primary) !important;
    border-color: var(--m-primary) !important;
    color: #fff !important;
    height: 42px;
    border-radius: var(--m-radius-sm) 0 0 var(--m-radius-sm) !important;
    padding: 0 18px !important;
    transition: background .15s ease;
}
[dir="rtl"] .input-group .input-group-btn .btn {
    border-radius: 0 var(--m-radius-sm) var(--m-radius-sm) 0 !important;
}
.input-group-btn .btn:hover {
    background: var(--m-accent) !important;
    border-color: var(--m-accent) !important;
}

/* ---------- FEATURED CAROUSEL (ca-container) ---------- */
.ca-container {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius-lg) !important;
    height: 360px !important;
    box-shadow: var(--m-shadow-md);
    overflow: hidden;
    margin: 0 0 24px 0 !important;
}
.ca-item-main {
    background: #fff !important;
    background-image: none !important;
    border-radius: var(--m-radius-lg) !important;
    padding: 28px !important;
}
.TodayProductName {
    font-size: 22px !important;
    color: var(--m-primary) !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-decoration: none !important;
}
.TodayProductName:hover { color: var(--m-accent) !important; }
.TodayProductmodel {
    background: var(--m-bg);
    color: var(--m-muted) !important;
    font-size: 13px !important;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}
.ShortDesc {
    color: var(--m-muted);
    font-size: 14px;
    line-height: 1.6;
}
.TodayProductprice {
    font-size: 24px !important;
    color: var(--m-accent) !important;
    font-weight: 800 !important;
}
.TodayProductCallNow {
    background: var(--m-yellow);
    color: var(--m-primary) !important;
    font-weight: 700 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px !important;
    display: inline-block;
}

/* carousel "previous" / "next" pill buttons - Hebrew text labels.
   Hebrew is encoded as CSS unicode escapes so this file stays pure ASCII
   and decodes identically regardless of how the browser interprets the source. */
.ca-nav span {
    background: #fff !important;
    border: 1px solid var(--m-border) !important;
    border-radius: 22px !important;
    width: auto !important;
    min-width: 78px !important;
    height: 40px !important;
    margin-top: -20px !important;
    padding: 0 18px !important;
    box-shadow: var(--m-shadow-sm);
    opacity: 1 !important;
    text-indent: 0 !important;
    /* The carousel script injects literal "Previous"/"Next" text inside the span.
       Collapse that text via font-size:0 - our ::before pseudo sets its own font-size. */
    font-size: 0 !important;
    color: var(--m-primary);
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
}
.ca-nav span::before {
    font-family: 'Heebo', 'Open Sans Hebrew', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 38px;
    color: var(--m-primary);
    text-indent: 0;
    display: inline-block;
    text-align: center;
    direction: rtl;
    unicode-bidi: embed;
}
/* "הקודם" = previous, on the right side in RTL */
.ca-nav span.ca-nav-prev::before { content: "\05D4\05E7\05D5\05D3\05DD"; }
/* "הבא" = next, on the left side in RTL */
.ca-nav span.ca-nav-next::before { content: "\05D4\05D1\05D0"; }
.ca-nav span:hover {
    background: var(--m-primary) !important;
    border-color: var(--m-primary) !important;
    transform: translateY(-1px);
}
.ca-nav span:hover::before { color: #fff !important; }
.ca-nav span.ca-nav-prev,
.ca-nav span.ca-nav-next { display: block !important; }
.ca-nav span.ca-nav-prev { right: 12px !important; left: auto !important; }
.ca-nav span.ca-nav-next { left: 12px !important; right: auto !important; }

/* ---------- PRODUCT GRID CARDS ---------- */
.productcontainer {
    border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius) !important;
    background: #fff !important;
    padding: 14px !important;
    height: 380px !important;
    box-shadow: var(--m-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.productcontainer:hover {
    transform: translateY(-4px);
    box-shadow: var(--m-shadow-lg);
    border-color: #d6dde6 !important;
}
.productcontainer > div:nth-child(1) {  /* product name */
    height: auto !important;
    min-height: 44px;
    margin-bottom: 8px;
}
.productcontainer .ProductName,
.productcontainer .ProductName0,
.productcontainer .ProductName1 {
    font-size: 14px !important;
    color: var(--m-text) !important;
    font-weight: 600 !important;
    line-height: 1.35;
    text-decoration: none !important;
}
.productcontainer .ProductName:hover,
.productcontainer .ProductName0:hover,
.productcontainer .ProductName1:hover { color: var(--m-accent) !important; }

.productcontainer > div:nth-child(2) {  /* image well */
    background: var(--m-bg) !important;
    border-radius: var(--m-radius-sm);
    height: 180px !important;
    margin-bottom: 10px;
}
.productcontainer > div:nth-child(2) img {
    transition: transform .25s ease;
    padding: 8px;
}
.productcontainer:hover > div:nth-child(2) img {
    transform: scale(1.06);
}

/* price inside card */
.productcontainer .price {
    color: var(--m-accent) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    display: inline-block;
}
.PriceBeforeVat {
    color: var(--m-muted);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}
.ProductCallNow {
    background: var(--m-yellow);
    color: var(--m-primary) !important;
    font-weight: 700 !important;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px !important;
    display: inline-block;
}

/* sale ribbon */
.tavit {
    background: var(--m-accent) !important;
    color: #fff !important;
    top: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    right: auto !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-weight: 700;
    font-size: 12px !important;
    box-shadow: 0 2px 8px rgba(230,57,70,.35);
    z-index: 5 !important;
}

/* ---------- BUTTONS ---------- */
.btn {
    border-radius: var(--m-radius-sm) !important;
    font-weight: 600 !important;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
    border-width: 0;
    padding: 8px 18px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-success {
    background: var(--m-buy) !important;
    border-color: var(--m-buy) !important;
    color: #fff !important;
    box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.btn-success:hover {
    background: var(--m-buy-dark) !important;
    border-color: var(--m-buy-dark) !important;
    color: #fff !important;
}
.btn-default {
    background: #fff !important;
    border: 1px solid var(--m-border) !important;
    color: var(--m-text) !important;
}
.btn-default:hover {
    background: var(--m-bg) !important;
    color: var(--m-primary) !important;
}
.btn-info {
    background: var(--m-primary) !important;
    border-color: var(--m-primary) !important;
    color: #fff !important;
}
.btn-info:hover {
    background: var(--m-primary-soft) !important;
    border-color: var(--m-primary-soft) !important;
    color: #fff !important;
}

/* product card "buy" link */
.productcontainer a.btn-success {
    width: 100%;
    text-align: center;
    padding: 9px 6px !important;
    margin-top: auto;
    font-size: 14px !important;
}

/* ---------- LEFT FLOATING BANNERS (catalog1 / catalog2) ---------- */
.catalog1, .catalog2 {
    border-radius: 0 var(--m-radius) var(--m-radius) 0 !important;
    box-shadow: var(--m-shadow-md);
    font-weight: 700;
    line-height: 1.3;
    transition: transform .15s ease, background-color .15s ease;
}
.catalog1:hover, .catalog2:hover { transform: translateX(-4px); }

/* ---------- PAGINATION ---------- */
table[bgcolor="#dedede"] {
    background: #fff !important;
    border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius-sm);
    overflow: hidden;
    border-collapse: separate !important;
}
table[bgcolor="#dedede"] td {
    background: transparent !important;
    border: 0 !important;
    padding: 6px 10px !important;
}
table[bgcolor="#dedede"] td a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--m-primary) !important;
    font-weight: 600;
}
table[bgcolor="#dedede"] td a:hover {
    background: var(--m-primary);
    color: #fff !important;
}
table[bgcolor="#dedede"] font[color="orange"] {
    background: var(--m-primary) !important;
    color: #fff !important;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: inherit !important;
}

/* ---------- BREADCRUMB ---------- */
.mybreadcrumb {
    background: #fff !important;
    border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius-sm);
    padding: 10px 14px !important;
    margin-bottom: 14px;
}
.mybreadcrumb * { color: var(--m-muted) !important; }
.mybreadcrumb a:hover { color: var(--m-accent) !important; }

/* ---------- PAGE TITLE ---------- */
.pagetitle {
    background: linear-gradient(90deg, var(--m-primary) 0%, var(--m-primary-soft) 100%) !important;
    border-radius: var(--m-radius);
    padding: 14px 18px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: var(--m-shadow-sm);
    margin-bottom: 14px;
}

/* ---------- FOOTER ---------- */
.hidden-xs > br + table[background*="FooterBG.jpg"],
table[background*="FooterBG.jpg"] {
    background: var(--m-primary) !important;
    border-radius: var(--m-radius);
    margin-top: 30px;
    overflow: hidden;
}
table[background*="FooterBG.jpg"] td {
    background: transparent !important;
    padding: 18px 8px !important;
}
table[background*="FooterBG.jpg"] td img { display: none; }
.FooterLinks {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
}
.FooterLinks:hover {
    background: rgba(255,255,255,.1);
    color: var(--m-yellow) !important;
}

/* ---------- MOBILE HEADER ---------- */
.hidden-md.hidden-lg.hidden-sm {
    background: #fff;
}
.hidden-md.hidden-lg.hidden-sm > .row:first-of-type a img {
    border-radius: 0 0 var(--m-radius-lg) var(--m-radius-lg);
}
.hidden-md.hidden-lg.hidden-sm > .row[style*="background-color:#ffffff"] {
    background: #fff !important;
    border-bottom: 1px solid var(--m-border) !important;
    box-shadow: var(--m-shadow-sm);
    padding: 12px 0 !important;
    position: sticky;
    top: 0;
    z-index: 999;
}
#baricon {
    width: 42px; height: 42px;
    background: var(--m-primary);
    color: #fff !important;
    border-radius: var(--m-radius-sm);
    text-align: center;
    line-height: 42px;
    font-size: 18px !important;
    cursor: pointer;
}
.fa-shopping-cart.fa-2x { font-size: 1.6em !important; }

/* slide-in mobile menu */
#slide-panel {
    background: #fff !important;
    box-shadow: 4px 0 22px rgba(0,0,0,.18);
    width: 280px !important;
    max-width: 85vw !important;
}
#slide-panel > div[style*="background-color:#121212"] {
    background: var(--m-primary) !important;
    padding: 22px 18px !important;
}
#slide-panel h2 { font-size: 19px !important; margin: 0; font-weight: 700; }
#slide-panel .list-group { border-radius: 0 !important; box-shadow: none; }
#slide-panel .list-group-item {
    padding: 14px 18px !important;
    border-color: var(--m-border-soft) !important;
    font-size: 15px !important;
    border-left: 0 !important; border-right: 0 !important;
}
#slide-panel .list-group-item i {
    color: var(--m-primary);
    transition: color .15s ease;
}
#slide-panel .list-group-item:hover i { color: var(--m-accent); }
#closeslide {
    display: inline-block;
    background: var(--m-bg);
    color: var(--m-primary) !important;
    padding: 8px 14px;
    border-radius: var(--m-radius-sm);
    font-weight: 600;
}

/* ---------- STICKY MOBILE BOTTOM NAV (m-bottom-nav, injected by header) ---------- */
.m-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    border-top: 1px solid var(--m-border);
    z-index: 999;
    display: flex;
    padding: 6px 4px env(safe-area-inset-bottom, 6px) 4px;
}
.m-bottom-nav a {
    flex: 1;
    text-align: center;
    color: var(--m-text) !important;
    font-size: 11px !important;
    padding: 6px 2px;
    text-decoration: none !important;
    line-height: 1.1;
    transition: color .15s ease;
    position: relative;
}
.m-bottom-nav a i {
    display: block;
    font-size: 19px;
    margin-bottom: 4px;
    color: var(--m-primary);
    transition: color .15s ease;
}
.m-bottom-nav a:hover, .m-bottom-nav a:active {
    color: var(--m-accent) !important;
}
.m-bottom-nav a:hover i, .m-bottom-nav a:active i {
    color: var(--m-accent);
}
.m-bottom-nav .m-bn-badge {
    position: absolute;
    top: 0;
    left: calc(50% + 4px);
    background: var(--m-accent);
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    line-height: 14px;
}
@media (max-width: 767px) {
    body { padding-bottom: 64px; }
}
@media (min-width: 768px) {
    .m-bottom-nav { display: none; }
}

/* ---------- TRUST BAR (m-trust, injected) ---------- */
.m-trust {
    background: #fff;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 14px;
    margin: 14px 0;
    box-shadow: var(--m-shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-around;
    align-items: center;
}
.m-trust .m-tr-item {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 6px;
}
.m-trust .m-tr-item i {
    width: 40px; height: 40px;
    background: var(--m-bg);
    color: var(--m-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.m-trust .m-tr-item .m-tr-title {
    font-weight: 700;
    color: var(--m-text);
    font-size: 14px;
    display: block;
    line-height: 1.3;
}
.m-trust .m-tr-item .m-tr-sub {
    color: var(--m-muted);
    font-size: 12px;
    display: block;
}

/* ---------- TABLES (legacy) - cleanup ---------- */
table[border="0"] td { border: 0; }

/* ---------- BASKET / FORMS ---------- */
.form-control {
    border-radius: var(--m-radius-sm) !important;
    box-shadow: none !important;
    border-color: var(--m-border) !important;
    height: 40px;
    font-size: 14px !important;
}
textarea.form-control { height: auto; }
input.input_shadow,
input.newinput_shadow {
    border-radius: var(--m-radius-sm) !important;
    border: 1px solid var(--m-border) !important;
    height: 36px !important;
    background: #fff !important;
    background-image: none !important;
    padding: 0 10px;
    font-size: 14px !important;
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 991px) {
    .productcontainer { height: auto !important; min-height: 360px; }
    #table28 td { padding: 6px 2px; }
    .HeaderLinks { font-size: 13px !important; padding: 8px 6px; }
    .HeaderLinks i { display: block; margin: 0 auto 4px auto; }
    .HeaderLinks span { display: block; }
}
@media (max-width: 767px) {
    body, * { font-size: 14px; }
    .container { padding-left: 12px; padding-right: 12px; }
    .ca-container { height: auto !important; min-height: 380px; }
    .ca-item-main { padding: 14px !important; }
    .ca-item-main table td:first-child { display: block; width: 100% !important; }
    .ca-item-main table td:last-child  { display: block; width: 100% !important; text-align: center !important; }
    .ca-item-main img { max-height: 180px !important; }
    .productcontainer { height: auto !important; min-height: 340px; padding: 10px !important; }
    .productcontainer > div:nth-child(2) { height: 150px !important; }
    .TodayProductName { font-size: 18px !important; }
    .TodayProductprice { font-size: 20px !important; }
    .productcontainer .price { font-size: 18px !important; }
    .col-xs-6 { padding-left: 6px; padding-right: 6px; }
    .row { margin-left: -6px; margin-right: -6px; }
    /* hide the floating left catalog buttons on phones */
    .catalog1, .catalog2 { display: none !important; }
}
@media (max-width: 480px) {
    .productcontainer { min-height: 320px; }
    .productcontainer > div:nth-child(2) { height: 130px !important; }
}

/* ---------- IMAGES ---------- */
img { max-width: 100%; height: auto; }
.img-responsive { max-width: 100% !important; height: auto !important; }

/* ---------- SCROLLBAR (subtle) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--m-bg); }
::-webkit-scrollbar-thumb { background: #c5cbd4; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--m-primary); }

/* ---------- KILL legacy ugly bg images on carousel ---------- */
.ca-icon { display: none !important; }

/* ---------- KEEP legacy carousel scroll behavior ---------- */
.ca-wrapper { white-space: nowrap; }
.ca-item { white-space: normal; }
