/*
 * Bayt theme — home & living department store look: slim charcoal service
 * bar, white header with a wide search and labelled account/cart, a colour
 * departments bar with a two-pane mega menu, edge-to-edge slider, promise
 * strip, welcome line with brands, square department tiles, offer banners,
 * product rails, department rows with a photo banner, clean cards with a
 * full-width add-to-cart button and a warm linen footer.
 * Markup: views/layouts/_header-bayt.php, _footer-bayt.php,
 * views/site/_home-bayt.php, views/site/_product-card-bayt.php.
 * Colours follow the theme tokens, so the store editor's colour pickers work.
 */

html[data-theme="bayt"] {
    --by-red: var(--theme-color-primary, #a3192e);
    --by-red-dark: color-mix(in srgb, var(--by-red) 82%, #000);
    --by-on-red: var(--theme-color-text-inverse, #fff);
    --by-ink: var(--theme-color-text, #1d2939);
    --by-char: var(--theme-color-secondary, #1d2939);
    --by-muted: var(--theme-color-text-muted, #667085);
    --by-line: var(--theme-color-border, #e7e1d8);
    --by-linen: var(--theme-color-surface, #f6f2ec);
    --by-white: var(--theme-color-surface-raised, #fff);
    --by-sale: var(--theme-color-danger, #c81e1e);
    --by-shadow: 0 10px 30px rgba(29, 41, 57, 0.10);
    --by-r: 10px;
}

html[data-theme="bayt"] body { background: var(--theme-color-bg, #fff); }
html[data-theme="bayt"] .container { max-width: 1360px; }
html[data-theme="bayt"] .sf-main, html[data-theme="bayt"] .sf-main:has(.sf-home) { padding-bottom: 0; background: transparent; }

/* =================== Header =================== */
html[data-theme="bayt"] .by-header { position: relative; z-index: 1030; background: var(--by-white); }
html[data-theme="bayt"] .by-header[data-sticky="1"] { position: sticky; top: 0; }
html[data-theme="bayt"] .by-header.is-scrolled { box-shadow: 0 4px 18px rgba(29, 41, 57, 0.10); }
html[data-theme="bayt"] .by-service { background: var(--by-char); color: rgba(255, 255, 255, 0.86); font-size: 13px; }
html[data-theme="bayt"] .by-service-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
html[data-theme="bayt"] .by-service-msg { display: flex; gap: 24px; min-width: 0; }
html[data-theme="bayt"] .by-service-msg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="bayt"] .by-service i { margin-inline-end: 6px; opacity: 0.85; }
html[data-theme="bayt"] .by-service-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }
html[data-theme="bayt"] .by-service a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
html[data-theme="bayt"] .by-service a:hover { color: #fff; }
@media (max-width: 767.98px) { html[data-theme="bayt"] .by-service-msg span + span { display: none; } }

html[data-theme="bayt"] .by-main-row { display: flex; align-items: center; gap: 32px; min-height: 92px; }
html[data-theme="bayt"] .by-brand img { height: var(--by-logo-h, 44px); width: auto; display: block; }
html[data-theme="bayt"] .by-icon-btn { border: 0; background: none; padding: 0; font-size: 28px; color: var(--by-ink); line-height: 1; }
html[data-theme="bayt"] .by-search { position: relative; flex: 1; max-width: 720px; margin-inline: auto; display: flex; align-items: center; height: 50px; border: 2px solid var(--by-line); border-radius: var(--by-r); background: var(--by-white); overflow: hidden; transition: border-color 0.2s; }
html[data-theme="bayt"] .by-search:focus-within { border-color: var(--by-red); }
html[data-theme="bayt"] .by-search-ico { position: absolute; inset-inline-start: 16px; color: var(--by-muted); font-size: 17px; pointer-events: none; }
html[data-theme="bayt"] .by-search input { flex: 1; min-width: 0; height: 100%; border: 0; padding-inline: 46px 14px; outline: none; background: transparent; color: var(--by-ink); font-size: 15px; }
html[data-theme="bayt"] .by-search button { height: 100%; padding: 0 26px; border: 0; background: var(--by-red); color: var(--by-on-red); font-weight: 700; transition: background 0.2s; }
html[data-theme="bayt"] .by-search button:hover { background: var(--by-red-dark); }
html[data-theme="bayt"] .by-actions { display: flex; align-items: center; gap: 26px; }
html[data-theme="bayt"] .by-action { position: relative; display: flex; align-items: center; gap: 10px; color: var(--by-ink); text-decoration: none; }
html[data-theme="bayt"] .by-action > i, html[data-theme="bayt"] .by-cart-icon > i { font-size: 26px; line-height: 1; }
html[data-theme="bayt"] .by-action-text { display: flex; flex-direction: column; line-height: 1.25; }
html[data-theme="bayt"] .by-action-text small { color: var(--by-muted); font-size: 12px; }
html[data-theme="bayt"] .by-action-text strong { font-size: 14px; font-weight: 700; }
html[data-theme="bayt"] .by-action:hover { color: var(--by-red); }
html[data-theme="bayt"] .by-cart-icon { position: relative; display: inline-block; }
html[data-theme="bayt"] .by-cart-icon .sf-cart-badge { position: absolute; top: -7px; inset-inline-end: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--by-red); color: var(--by-on-red); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--by-white); box-sizing: content-box; }

html[data-theme="bayt"] .by-bar { background: var(--by-red); }
html[data-theme="bayt"] .by-bar-row { position: relative; display: flex; align-items: center; gap: 26px; min-height: 52px; }
html[data-theme="bayt"] .by-dept { align-self: stretch; }
html[data-theme="bayt"] .by-dept-btn { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 20px; border: 0; background: rgba(0, 0, 0, 0.2); color: var(--by-on-red); font-weight: 700; font-size: 15px; white-space: nowrap; }
html[data-theme="bayt"] .by-dept-btn .bi-chevron-down { font-size: 11px; transition: transform 0.2s; }
html[data-theme="bayt"] .by-dept.is-open .by-dept-btn .bi-chevron-down { transform: rotate(180deg); }
html[data-theme="bayt"] .by-mega { display: none; position: absolute; top: 100%; inset-inline: 12px; z-index: 8; background: var(--by-white); border-radius: 0 0 var(--by-r) var(--by-r); box-shadow: var(--by-shadow); min-height: 380px; overflow: hidden; }
html[data-theme="bayt"] .by-dept.is-open .by-mega { display: flex; }
html[data-theme="bayt"] .by-mega-list { flex: 0 0 260px; margin: 0; padding: 10px 0; list-style: none; background: var(--by-linen); }
html[data-theme="bayt"] .by-mega-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 22px; color: var(--by-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
html[data-theme="bayt"] .by-mega-list a i { font-size: 11px; opacity: 0.6; }
html[data-theme="bayt"] .by-mega-list a.is-active { background: var(--by-white); color: var(--by-red); box-shadow: inset 3px 0 0 var(--by-red); }
html[dir="rtl"][data-theme="bayt"] .by-mega-list a.is-active { box-shadow: inset -3px 0 0 var(--by-red); }
html[data-theme="bayt"] .by-mega-pane { flex: 1; display: flex; gap: 24px; padding: 24px 28px; min-width: 0; }
html[data-theme="bayt"] .by-mega-pane[hidden] { display: none; }
html[data-theme="bayt"] .by-mega-cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 18px 28px; }
html[data-theme="bayt"] .by-mega-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--by-line); }
html[data-theme="bayt"] .by-mega-head > a:first-child { font-size: 19px; font-weight: 700; color: var(--by-ink); text-decoration: none; }
html[data-theme="bayt"] .by-mega-all { color: var(--by-red); text-decoration: none; font-size: 14px; font-weight: 600; }
html[data-theme="bayt"] .by-mega-title { display: block; color: var(--by-ink); font-weight: 700; text-decoration: none; margin-bottom: 6px; }
html[data-theme="bayt"] .by-mega-title:hover, html[data-theme="bayt"] .by-mega-col li a:hover { color: var(--by-red); }
html[data-theme="bayt"] .by-mega-col ul { margin: 0; padding: 0; list-style: none; }
html[data-theme="bayt"] .by-mega-col li a { display: block; padding: 3px 0; color: var(--by-muted); text-decoration: none; font-size: 14px; }
html[data-theme="bayt"] .by-mega-empty { grid-column: 1 / -1; color: var(--by-muted); }
html[data-theme="bayt"] .by-mega-art { position: relative; flex: 0 0 230px; border-radius: var(--by-r); background: var(--by-linen); display: grid; place-items: center; text-decoration: none; overflow: hidden; }
html[data-theme="bayt"] .by-mega-art img { width: 70%; aspect-ratio: 1; object-fit: contain; transition: transform 0.4s; }
html[data-theme="bayt"] .by-mega-art:hover img { transform: scale(1.06); }
html[data-theme="bayt"] .by-mega-art span { position: absolute; bottom: 16px; padding: 7px 18px; border-radius: 999px; background: var(--by-char); color: #fff; font-size: 13px; font-weight: 700; }
html[data-theme="bayt"] .by-menu { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
html[data-theme="bayt"] .by-menu-link { display: block; padding: 6px 0; white-space: nowrap; color: var(--by-on-red); text-decoration: none; font-weight: 600; font-size: 15px; opacity: 0.92; }
html[data-theme="bayt"] .by-menu-link:hover, html[data-theme="bayt"] .by-menu-link.active { color: var(--by-on-red); opacity: 1; box-shadow: inset 0 -2px 0 currentColor; }
html[data-theme="bayt"] .by-sale { margin-inline-start: auto; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--by-white); color: var(--by-red); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
html[data-theme="bayt"] .by-sale:hover { background: var(--by-char); color: #fff; }
html[data-theme="bayt"] .by-m-depts { margin-bottom: 18px; }
html[data-theme="bayt"] .by-m-title { display: block; margin-bottom: 6px; color: var(--by-muted); font-size: 13px; }
html[data-theme="bayt"] .by-m-depts summary, html[data-theme="bayt"] .by-m-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--by-line); color: var(--by-ink); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none; }
html[data-theme="bayt"] .by-m-depts summary::-webkit-details-marker { display: none; }
html[data-theme="bayt"] .by-m-depts summary i { font-size: 12px; transition: transform 0.2s; }
html[data-theme="bayt"] .by-m-depts details[open] summary i { transform: rotate(180deg); }
html[data-theme="bayt"] .by-m-depts ul { margin: 0; padding: 6px 14px 10px; list-style: none; background: var(--by-linen); }
html[data-theme="bayt"] .by-m-depts ul a { display: block; padding: 7px 0; color: var(--by-ink); text-decoration: none; }
@media (min-width: 992px) { html[data-theme="bayt"] .by-offcanvas { flex: 1; min-width: 0; } html[data-theme="bayt"] .by-menu { flex-wrap: nowrap; overflow: hidden; } }
@media (max-width: 1199.98px) { html[data-theme="bayt"] .by-action-text { display: none; } html[data-theme="bayt"] .by-actions { gap: 18px; } }
@media (max-width: 991.98px) {
    html[data-theme="bayt"] .by-main-row { flex-wrap: wrap; gap: 12px 16px; min-height: 0; padding-block: 12px; }
    html[data-theme="bayt"] .by-brand { margin-inline-end: auto; }
    html[data-theme="bayt"] .by-brand img { height: min(var(--by-logo-h, 44px), 36px); }
    html[data-theme="bayt"] .by-search { order: 5; flex: 1 0 100%; height: 46px; max-width: none; }
    html[data-theme="bayt"] .by-search button { padding: 0 18px; }
    html[data-theme="bayt"] .by-bar { display: contents; }
    html[data-theme="bayt"] .by-bar-row { min-height: 0; gap: 0; }
    html[data-theme="bayt"] .by-offcanvas .by-menu { flex-direction: column; gap: 0; }
    html[data-theme="bayt"] .by-offcanvas .by-menu-link { color: var(--by-ink); padding: 12px 4px; border-bottom: 1px solid var(--by-line); box-shadow: none !important; }
}

/* =================== Shared =================== */
html[data-theme="bayt"] .by-block { margin-top: 56px; }
html[data-theme="bayt"] .by-head { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--by-line); position: relative; }
html[data-theme="bayt"] .by-head::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 64px; height: 3px; background: var(--by-red); }
html[data-theme="bayt"] .by-h2 { margin: 0; font-size: clamp(21px, 2vw, 28px); font-weight: 700; color: var(--by-ink); display: inline-flex; align-items: center; gap: 10px; }
html[data-theme="bayt"] .by-more { margin-inline-start: auto; color: var(--by-red); text-decoration: none; font-weight: 700; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
html[data-theme="bayt"] .by-more:hover { color: var(--by-red-dark); }
html[data-theme="bayt"] .by-more i { transition: transform 0.2s; }
html[data-theme="bayt"] .by-more:hover i { transform: translateX(-3px); }
html[dir="ltr"][data-theme="bayt"] .by-more i, html[dir="ltr"][data-theme="bayt"] .by-banner-cta i, html[dir="ltr"][data-theme="bayt"] .by-mega-all i { transform: scaleX(-1); }
html[data-theme="bayt"] .by-sub { margin: -10px 0 20px; color: var(--by-muted); }
html[data-theme="bayt"] .by-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--by-r); border: 0; background: var(--by-red); color: var(--by-on-red); font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.2s; }
html[data-theme="bayt"] .by-btn:hover { background: var(--by-red-dark); color: var(--by-on-red); }
html[data-theme="bayt"] .by-btn.is-light { background: #fff; color: var(--by-ink); }
html[data-theme="bayt"] .by-btn.is-light:hover { background: var(--by-char); color: #fff; }

/* =================== Hero =================== */
html[data-theme="bayt"] .by-slider { background: var(--by-linen); }
html[data-theme="bayt"] .by-slide { min-height: 460px; }
html[data-theme="bayt"] .by-slide.is-image { display: block !important; background-size: cover; background-position: center; aspect-ratio: 1920 / 640; min-height: 0; }
html[data-theme="bayt"] .by-slide.is-tone-0 { background: linear-gradient(100deg, var(--by-linen) 0%, #fff 100%); }
html[data-theme="bayt"] .by-slide.is-tone-1 { background: linear-gradient(100deg, #eef2f1 0%, #fbfcfc 100%); }
html[data-theme="bayt"] .by-slide.is-tone-2 { background: linear-gradient(100deg, #f4eef0 0%, #fff 100%); }
html[data-theme="bayt"] .by-slide-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; min-height: 460px; padding-block: 40px; }
html[data-theme="bayt"] .by-slide-eyebrow { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--by-red) 12%, #fff); color: var(--by-red); font-weight: 700; font-size: 14px; }
html[data-theme="bayt"] .by-slide-text h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 800; line-height: 1.15; color: var(--by-ink); margin-bottom: 14px; }
html[data-theme="bayt"] .by-slide-text p { color: var(--by-muted); font-size: 17px; margin-bottom: 28px; max-width: 480px; }
html[data-theme="bayt"] .by-slide-art { position: relative; height: 380px; display: grid; place-items: center; }
html[data-theme="bayt"] .by-slide-disc { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #fff; box-shadow: 0 30px 60px -30px rgba(29, 41, 57, 0.35); }
html[data-theme="bayt"] .by-slide-art img { position: relative; width: 290px; height: 290px; object-fit: contain; }
html[data-theme="bayt"] .by-slide-off { position: absolute; top: 24px; inset-inline-end: 14%; width: 92px; height: 92px; border-radius: 50%; background: var(--by-red); color: var(--by-on-red); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 12px 24px -10px var(--by-red); }
html[data-theme="bayt"] .by-slide-off strong { font-size: 25px; }
html[data-theme="bayt"] .by-slide-off small { font-size: 13px; }
html[data-theme="bayt"] .by-slider .swiper-pagination-bullet-active { background: var(--by-red); }
@media (max-width: 991.98px) {
    html[data-theme="bayt"] .by-slide:not(.is-image), html[data-theme="bayt"] .by-slide-inner { min-height: 0; }
    html[data-theme="bayt"] .by-slide.is-image:not(.sf-copy-slide) { aspect-ratio: 16 / 9; }
    html[data-theme="bayt"] .by-slide.is-image.sf-copy-slide { min-height: 300px; }
    html[data-theme="bayt"] .by-slide-inner { grid-template-columns: 1fr; text-align: center; gap: 6px; padding-block: 22px 44px; }
    html[data-theme="bayt"] .by-slide-art { order: -1; height: 210px; }
    html[data-theme="bayt"] .by-slide-disc { width: 200px; height: 200px; }
    html[data-theme="bayt"] .by-slide-art img { width: 160px; height: 160px; }
    html[data-theme="bayt"] .by-slide-off { width: 64px; height: 64px; inset-inline-end: 6%; }
    html[data-theme="bayt"] .by-slide-off strong { font-size: 18px; }
    html[data-theme="bayt"] .by-slide-text p { margin-inline: auto; margin-bottom: 18px; font-size: 15px; }
}

/* =================== Promises =================== */
html[data-theme="bayt"] .by-promises { border-bottom: 1px solid var(--by-line); background: var(--by-white); }
html[data-theme="bayt"] .by-promises ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding-block: 22px; list-style: none; }
html[data-theme="bayt"] .by-promises li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; border-inline-start: 1px solid var(--by-line); }
html[data-theme="bayt"] .by-promises li:first-child { border: 0; }
html[data-theme="bayt"] .by-promises i { font-size: 30px; color: var(--by-red); line-height: 1; }
html[data-theme="bayt"] .by-promises strong { display: block; font-weight: 700; color: var(--by-ink); }
html[data-theme="bayt"] .by-promises small { color: var(--by-muted); font-size: 13px; }
@media (max-width: 991.98px) {
    html[data-theme="bayt"] .by-promises ul { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding-block: 16px; }
    html[data-theme="bayt"] .by-promises li { justify-content: flex-start; gap: 10px; padding: 0 8px; border: 0; }
    html[data-theme="bayt"] .by-promises i { font-size: 24px; }
    html[data-theme="bayt"] .by-promises strong { font-size: 14px; }
    html[data-theme="bayt"] .by-promises small { display: none; }
}

/* =================== Welcome & brands =================== */
html[data-theme="bayt"] .by-welcome { text-align: center; }
html[data-theme="bayt"] .by-welcome-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; color: var(--by-ink); margin-bottom: 8px; }
html[data-theme="bayt"] .by-welcome-sub { color: var(--by-muted); margin: 0 auto 26px; max-width: 620px; }
html[data-theme="bayt"] .by-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
html[data-theme="bayt"] .by-brands a { height: 86px; display: grid; place-items: center; padding: 12px 18px; border: 1px solid var(--by-line); border-radius: var(--by-r); background: var(--by-white); color: var(--by-ink); text-decoration: none; font-weight: 700; transition: border-color 0.2s, box-shadow 0.2s; }
html[data-theme="bayt"] .by-brands a:hover { border-color: var(--by-red); box-shadow: var(--by-shadow); }
html[data-theme="bayt"] .by-brands img { max-width: 100%; max-height: 54px; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s, opacity 0.2s; }
html[data-theme="bayt"] .by-brands a:hover img { filter: none; opacity: 1; }
@media (max-width: 991.98px) { html[data-theme="bayt"] .by-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } html[data-theme="bayt"] .by-brands a { height: 70px; } }

/* =================== Category tiles =================== */
html[data-theme="bayt"] .by-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
html[data-theme="bayt"] .by-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--by-ink); text-decoration: none; text-align: center; }
html[data-theme="bayt"] .by-cat-img { width: 100%; aspect-ratio: 1; margin-bottom: 8px; border-radius: var(--by-r); background: var(--by-linen); display: grid; place-items: center; overflow: hidden; transition: box-shadow 0.3s; }
html[data-theme="bayt"] .by-cat img { width: 66%; height: 66%; object-fit: contain; transition: transform 0.4s; }
html[data-theme="bayt"] .by-cat-name { font-weight: 700; font-size: 15px; }
html[data-theme="bayt"] .by-cat small { color: var(--by-muted); font-size: 12.5px; }
html[data-theme="bayt"] .by-cat:hover .by-cat-img { box-shadow: inset 0 0 0 2px var(--by-red); }
html[data-theme="bayt"] .by-cat:hover img { transform: scale(1.08); }
html[data-theme="bayt"] .by-cat:hover .by-cat-name { color: var(--by-red); }
@media (max-width: 1199.98px) { html[data-theme="bayt"] .by-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { html[data-theme="bayt"] .by-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } html[data-theme="bayt"] .by-cat-name { font-size: 13px; } html[data-theme="bayt"] .by-cat small { display: none; } }

/* =================== Offer banners =================== */
html[data-theme="bayt"] .by-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
html[data-theme="bayt"] .by-banners.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-theme="bayt"] .by-banner { position: relative; display: flex; align-items: center; min-height: 210px; padding: 26px 28px; border-radius: var(--by-r); overflow: hidden; text-decoration: none; color: var(--by-ink); }
html[data-theme="bayt"] .by-banner.is-tone-0 { background: var(--by-linen); }
html[data-theme="bayt"] .by-banner.is-tone-1 { background: #e9efee; }
html[data-theme="bayt"] .by-banner.is-tone-2 { background: color-mix(in srgb, var(--by-red) 10%, #fff); }
html[data-theme="bayt"] .by-banner-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 58%; }
html[data-theme="bayt"] .by-banner-eyebrow { color: var(--by-red); font-weight: 700; font-size: 14px; }
html[data-theme="bayt"] .by-banner strong { font-size: 23px; line-height: 1.25; font-weight: 800; }
html[data-theme="bayt"] .by-banner-cta { margin-top: 6px; font-weight: 700; font-size: 14px; border-bottom: 2px solid currentColor; padding-bottom: 2px; display: inline-flex; gap: 6px; align-items: center; }
html[data-theme="bayt"] .by-banner img { position: absolute; inset-inline-end: 14px; bottom: 50%; transform: translateY(50%); width: 42%; max-width: 170px; aspect-ratio: 1; object-fit: contain; transition: transform 0.4s; }
html[data-theme="bayt"] .by-banner:hover { color: var(--by-ink); }
html[data-theme="bayt"] .by-banner:hover img { transform: translateY(50%) scale(1.07); }
@media (max-width: 991.98px) { html[data-theme="bayt"] .by-banners, html[data-theme="bayt"] .by-banners.is-2 { grid-template-columns: 1fr; gap: 12px; } html[data-theme="bayt"] .by-banner { min-height: 160px; } html[data-theme="bayt"] .by-banner strong { font-size: 20px; } }

/* =================== Product grid, rail & card =================== */
html[data-theme="bayt"] .by-grid { display: grid; grid-template-columns: repeat(var(--by-cols, 5), minmax(0, 1fr)); gap: 18px; }
html[data-theme="bayt"] .by-grid.is-4 { --by-cols: 4; }
@media (max-width: 1199.98px) { html[data-theme="bayt"] .by-grid { --by-cols: 4 !important; } }
@media (max-width: 991.98px) { html[data-theme="bayt"] .by-grid { --by-cols: 3 !important; } }
@media (max-width: 575.98px) { html[data-theme="bayt"] .by-grid { --by-cols: 2 !important; gap: 10px; } }

html[data-theme="bayt"] .by-rail { position: relative; }
html[data-theme="bayt"] .by-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
html[data-theme="bayt"] .by-rail-track::-webkit-scrollbar { display: none; }
html[data-theme="bayt"] .by-rail-item { scroll-snap-align: start; display: flex; }
html[data-theme="bayt"] .by-rail-item > .by-card { flex: 1; }
html[data-theme="bayt"] .by-rail-btn { position: absolute; top: 34%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--by-line); background: var(--by-white); color: var(--by-ink); display: grid; place-items: center; box-shadow: var(--by-shadow); transition: background 0.2s, color 0.2s; }
html[data-theme="bayt"] .by-rail-btn:hover { background: var(--by-red); color: var(--by-on-red); border-color: var(--by-red); }
html[data-theme="bayt"] .by-rail-btn.is-prev { inset-inline-start: -20px; }
html[data-theme="bayt"] .by-rail-btn.is-next { inset-inline-end: -20px; }
html[dir="ltr"][data-theme="bayt"] .by-rail-btn i { transform: scaleX(-1); }
@media (max-width: 1199.98px) { html[data-theme="bayt"] .by-rail-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 991.98px) { html[data-theme="bayt"] .by-rail-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); } html[data-theme="bayt"] .by-rail-btn { display: none; } }
@media (max-width: 575.98px) { html[data-theme="bayt"] .by-rail-track { grid-auto-columns: 46%; gap: 10px; } }

html[data-theme="bayt"] .by-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--by-line); border-radius: var(--by-r); background: var(--by-white); overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s; }
html[data-theme="bayt"] .by-card:hover { border-color: color-mix(in srgb, var(--by-line) 40%, var(--by-muted)); box-shadow: var(--by-shadow); }
html[data-theme="bayt"] .by-card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; }
html[data-theme="bayt"] .by-card-media > a { display: block; height: 100%; padding: 10%; }
html[data-theme="bayt"] .by-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
html[data-theme="bayt"] .by-card:hover .by-card-media img { transform: scale(1.05); }
html[data-theme="bayt"] .by-card-flags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
html[data-theme="bayt"] .by-flag { padding: 3px 9px; border-radius: 4px; background: var(--by-char); color: #fff; font-size: 12px; font-weight: 700; }
html[data-theme="bayt"] .by-flag.is-sale { background: var(--by-sale); }
html[data-theme="bayt"] .by-flag.is-new { background: #157f3d; }
html[data-theme="bayt"] .by-card-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; border-top: 1px solid var(--by-line); }
html[data-theme="bayt"] .by-card-brand { color: var(--by-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="bayt"] .by-card-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-theme="bayt"] .by-card-title a { color: var(--by-ink); text-decoration: none; }
html[data-theme="bayt"] .by-card-title a:hover { color: var(--by-red); }
html[data-theme="bayt"] .by-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 4px; }
html[data-theme="bayt"] .by-now { font-size: 18px; font-weight: 800; color: var(--by-red); }
html[data-theme="bayt"] .by-now small { font-size: 12px; font-weight: 700; }
html[data-theme="bayt"] .by-was { color: var(--by-muted); font-size: 13.5px; }
html[data-theme="bayt"] .by-add { margin-top: 8px; width: 100%; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--by-char); border-radius: 8px; background: transparent; color: var(--by-char); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; transition: background 0.2s, color 0.2s, border-color 0.2s; }
html[data-theme="bayt"] .by-add:hover, html[data-theme="bayt"] .by-add:focus-visible { background: var(--by-red); border-color: var(--by-red); color: var(--by-on-red); }
html[data-theme="bayt"] .by-add .spinner-border { margin: 0 !important; }
html[data-theme="bayt"] .by-add.is-out { border-color: var(--by-line); color: var(--by-muted); background: var(--by-linen); cursor: default; }
html[data-theme="bayt"] .by-card.is-out .by-card-media img { opacity: 0.55; }
@media (max-width: 575.98px) {
    html[data-theme="bayt"] .by-card-body { padding: 10px; }
    html[data-theme="bayt"] .by-card-title { font-size: 13.5px; }
    html[data-theme="bayt"] .by-now { font-size: 16px; }
    html[data-theme="bayt"] .by-add { height: 36px; font-size: 13px; }
    html[data-theme="bayt"] .by-add i { display: none; }
}

/* =================== Special discounts band =================== */
html[data-theme="bayt"] .by-deals { margin-top: 56px; padding-block: 36px 40px; background: var(--by-linen); }
html[data-theme="bayt"] .by-deals .by-h2 i { width: 36px; height: 36px; border-radius: 50%; background: var(--by-red); color: var(--by-on-red); display: grid; place-items: center; font-size: 17px; }

/* =================== Department rows =================== */
html[data-theme="bayt"] .by-dept-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
html[data-theme="bayt"] .by-dept-row.is-flip { grid-template-columns: minmax(0, 1fr) 300px; }
html[data-theme="bayt"] .by-dept-row.is-flip .by-dept-art { order: 2; }
html[data-theme="bayt"] .by-dept-art { position: relative; display: block; border-radius: var(--by-r); background: linear-gradient(180deg, var(--by-linen), color-mix(in srgb, var(--by-linen) 70%, var(--by-muted))); overflow: hidden; text-decoration: none; min-height: 340px; }
html[data-theme="bayt"] .by-dept-art img { position: absolute; top: 12%; left: 50%; width: 66%; aspect-ratio: 1; transform: translateX(-50%); object-fit: contain; transition: transform 0.4s; }
html[data-theme="bayt"] .by-dept-art:hover img { transform: translateX(-50%) scale(1.06); }
html[data-theme="bayt"] .by-dept-art-text { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; background: linear-gradient(0deg, rgba(29, 41, 57, 0.78), rgba(29, 41, 57, 0)); }
html[data-theme="bayt"] .by-dept-art-text strong { color: #fff; font-size: 22px; font-weight: 800; text-align: center; }
@media (max-width: 991.98px) {
    html[data-theme="bayt"] .by-dept-row, html[data-theme="bayt"] .by-dept-row.is-flip { grid-template-columns: 1fr; }
    html[data-theme="bayt"] .by-dept-row.is-flip .by-dept-art { order: 0; }
    html[data-theme="bayt"] .by-dept-art { min-height: 180px; }
    html[data-theme="bayt"] .by-dept-art img { top: 10%; width: 36%; left: 75%; }
    html[data-theme="bayt"] .by-dept-art-text { align-items: flex-start; top: 0; justify-content: center; background: linear-gradient(90deg, rgba(29, 41, 57, 0) 30%, rgba(29, 41, 57, 0.7)); }
    html[dir="ltr"][data-theme="bayt"] .by-dept-art-text { background: linear-gradient(270deg, rgba(29, 41, 57, 0) 30%, rgba(29, 41, 57, 0.7)); }
    html[data-theme="bayt"] .by-dept-art-text strong { text-align: start; }
}
@media (max-width: 991.98px) { html[dir="rtl"][data-theme="bayt"] .by-dept-art img { left: 22%; } }

/* =================== Newsletter =================== */
html[data-theme="bayt"] .by-news { display: flex; align-items: center; gap: 22px 32px; flex-wrap: wrap; padding: 34px 40px; border-radius: var(--by-r); background: var(--by-char); color: #fff; }
html[data-theme="bayt"] .by-news > i { font-size: 44px; color: color-mix(in srgb, var(--by-red) 50%, #fff); line-height: 1; }
html[data-theme="bayt"] .by-news-text { flex: 1 1 300px; }
html[data-theme="bayt"] .by-news h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; margin: 0 0 4px; color: #fff; }
html[data-theme="bayt"] .by-news p { color: rgba(255, 255, 255, 0.75); margin: 0; }
html[data-theme="bayt"] .by-news-form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 520px; }
html[data-theme="bayt"] .by-news-form input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 0; border-radius: var(--by-r); outline: none; background: #fff; color: #1d2939; }
@media (max-width: 575.98px) { html[data-theme="bayt"] .by-news { padding: 24px 18px; } html[data-theme="bayt"] .by-news > i { display: none; } html[data-theme="bayt"] .by-news-form { flex-direction: column; } }

/* =================== Footer =================== */
html[data-theme="bayt"] .by-footer { margin-top: 70px; background: var(--by-linen); color: var(--by-ink); }
html[data-theme="bayt"] .by-help { background: var(--by-red); color: var(--by-on-red); }
html[data-theme="bayt"] .by-help-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-block: 18px; }
html[data-theme="bayt"] .by-help-text { display: flex; align-items: center; gap: 14px; }
html[data-theme="bayt"] .by-help-text > i { font-size: 34px; line-height: 1; }
html[data-theme="bayt"] .by-help-text strong { display: block; font-size: 18px; font-weight: 800; }
html[data-theme="bayt"] .by-help-text span { opacity: 0.85; font-size: 14px; }
html[data-theme="bayt"] .by-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
html[data-theme="bayt"] .by-help-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--by-ink); font-weight: 700; text-decoration: none; }
html[data-theme="bayt"] .by-help-btn.is-wa { background: #25d366; color: #fff; }
html[data-theme="bayt"] .by-help-btn:hover { background: var(--by-char); color: #fff; }
html[data-theme="bayt"] .by-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 56px 44px; }
html[data-theme="bayt"] .by-footer h3 { font-size: 16px; font-weight: 800; margin-bottom: 18px; color: var(--by-ink); }
html[data-theme="bayt"] .by-footer ul { list-style: none; margin: 0; padding: 0; }
html[data-theme="bayt"] .by-footer li { margin-bottom: 10px; }
html[data-theme="bayt"] .by-footer a { color: var(--by-muted); text-decoration: none; transition: color 0.2s; }
html[data-theme="bayt"] .by-footer a:hover { color: var(--by-red); }
html[data-theme="bayt"] .by-foot-logo img { display: block; height: 40px; width: auto; margin-bottom: 16px; }
html[data-theme="bayt"] .by-foot-brand p { color: var(--by-muted); line-height: 1.75; margin-bottom: 18px; }
html[data-theme="bayt"] .by-foot-social { display: flex; gap: 10px; }
html[data-theme="bayt"] .by-footer .by-social-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--by-white); color: var(--by-ink); border: 1px solid var(--by-line); }
html[data-theme="bayt"] .by-footer .by-social-btn:hover { background: var(--by-red); border-color: var(--by-red); color: var(--by-on-red); }
html[data-theme="bayt"] .by-foot-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--by-muted); }
html[data-theme="bayt"] .by-foot-contact i { color: var(--by-red); }
html[data-theme="bayt"] .by-foot-bottom { background: var(--by-char); color: rgba(255, 255, 255, 0.8); font-size: 14px; }
html[data-theme="bayt"] .by-foot-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 16px; }
html[data-theme="bayt"] .by-pay { display: flex; gap: 10px; flex-wrap: wrap; }
html[data-theme="bayt"] .by-pay span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 991.98px) { html[data-theme="bayt"] .by-foot-grid { grid-template-columns: 1fr 1fr; padding-block: 40px 28px; gap: 26px 20px; } html[data-theme="bayt"] .by-foot-brand, html[data-theme="bayt"] .by-foot-contact { grid-column: 1 / -1; } }
