/* =========================================================================
   Yachtneeds theme - clean marketplace
   Base stylesheet loaded on every page, no build step; keep it under 40 KB. Sections:
   1 tokens  2 base  3 layout  4 controls  5 header  6 navigation
   7 hero  8 grids & cards  9 listing  9b shared commerce bits  10 footer  11 misc
   Page-only styles live in catalog.css, product.css, checkout.css, account.css and blog.css,
   loaded by Views/Shared/Head.cshtml on those pages only.
   ========================================================================= */

/* 1. tokens */
:root {
    --c-ink: #14202e;
    --c-text: #2b3746;
    --c-muted: #5f6b7a;
    --c-line: #e2e7ee;
    --c-surface: #f4f6f9;
    --c-bg: #ffffff;
    --c-navy: #0d2b4c;
    --c-navy-2: #16406c;
    --c-accent: #f28c00;
    --c-accent-ink: #c86f00;
    --c-sale: #d63a2f;
    --c-ok: #1f8a4c;
    --c-focus: #2f7de1;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(16, 32, 52, .06), 0 4px 16px rgba(16, 32, 52, .06);
    --shadow-lg: 0 12px 40px rgba(16, 32, 52, .16);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1360px;
    --gutter: clamp(12px, 3vw, 24px);
    --header-h: 64px;
}

/* 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--c-text); background: var(--c-bg); }
img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--c-navy-2); text-decoration: none; }
a:hover { color: var(--c-accent-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--c-ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
h2 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
.hidden, [hidden] { display: none !important; }
noscript { display: block; }

/* 3. layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.master-wrapper-page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.master-wrapper-content { flex: 1 0 auto; padding-block: 20px 48px; }
.master-column-wrapper { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.master-column-wrapper > * { min-width: 0; }
.center-1, .center-2, .home-intro, #typesense-results-container { flex: 1 1 100%; }
.side-2 { flex: 1 1 100%; }
/* _ColumnsTwo renders breadcrumb (or the account page title), center-2, side-2: keep the full-width row first */
.master-column-wrapper > .breadcrumb, .master-column-wrapper > .page-title { flex: 1 1 100%; order: -2; margin-bottom: 0; }
@media (min-width: 1025px) {
    .side-2 { flex: 0 0 280px; order: -1; }
    .center-2 { flex: 1 1 0; }
}
.breadcrumb { font-size: 13px; color: var(--c-muted); margin: 0 0 16px; flex: 1 1 100%; }
.breadcrumb ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .delimiter { color: #a3adba; }
.breadcrumb strong { color: var(--c-ink); font-weight: 600; }
.page-title { margin-bottom: 16px; }
.page-title h1 { margin: 0; }
.page-body { min-width: 0; }
.topic-block, .topic-page { max-width: 900px; }
.home-intro { color: var(--c-muted); }
.home-intro h1, .home-intro h2 { color: var(--c-ink); }

/* 4. controls */
button, input, select, textarea { font: inherit; color: inherit; }
.button-1, .button-2, button.button-1, button.button-2, input[type=submit], input[type=button] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-align: center; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.button-1, input[type=submit] { background: var(--c-accent); color: #fff; }
.button-1:hover, input[type=submit]:hover { background: var(--c-accent-ink); color: #fff; }
.button-2, input[type=button] { background: #fff; color: var(--c-navy); border-color: var(--c-line); }
.button-2:hover, input[type=button]:hover { border-color: var(--c-navy); color: var(--c-navy); }
button[disabled], .button-1[disabled] { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea {
    width: 100%; max-width: 100%; min-height: 42px; padding: 8px 12px; background: #fff;
    border: 1px solid #cdd5df; border-radius: var(--radius-sm); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-focus); box-shadow: 0 0 0 3px rgba(47, 125, 225, .15); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--c-navy); vertical-align: middle; }
label { font-weight: 500; }
.inputs { margin-bottom: 14px; }
.inputs label { display: block; margin-bottom: 4px; font-size: 14px; }
.inputs.reversed { display: flex; align-items: center; gap: 8px; }
.inputs.reversed label { margin: 0; }
.required { color: var(--c-sale); margin-left: 2px; }
/* nop renders the required marker after the input: show it after the label instead */
.inputs:has(> .required) > label::after { content: " *"; color: var(--c-sale); }
.inputs > .required { display: none; }
.field-validation-error, .message-error, .validation-summary-errors { color: var(--c-sale); font-size: 13px; }
.fieldset, .section { margin-bottom: 28px; }
.fieldset > .title, .section > .title { font-size: 1.05rem; font-weight: 700; color: var(--c-ink); margin-bottom: 12px; }
.form-fields { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.buttons { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.data-table, .cart, .compare-products-table { width: 100%; font-size: 14px; }
.data-table th, .cart th { text-align: left; font-weight: 600; color: var(--c-muted); background: var(--c-surface); padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.data-table td, .cart td { padding: 12px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table-wrapper { overflow-x: auto; }
.qty-input, .productQuantityTextBox { width: 72px !important; text-align: center; }

/* notifications and dialogs (nop core markup) */
#bar-notification { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; width: min(560px, calc(100% - 24px)); }
#bar-notification .bar-notification { display: none; position: relative; padding: 14px 44px 14px 16px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-lg); }
#bar-notification .bar-notification.success { background: var(--c-ok); }
#bar-notification .bar-notification.error { background: var(--c-sale); }
#bar-notification .bar-notification.warning { background: #b86e00; }
#bar-notification .content { margin: 0; }
#bar-notification a { color: #fff; text-decoration: underline; }
#bar-notification .close { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; cursor: pointer; opacity: .85; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); }
.ajax-loading-block-window { position: fixed; inset: 50% auto auto 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 1001; border-radius: 50%; border: 4px solid var(--c-line); border-top-color: var(--c-accent); animation: spin .8s linear infinite; }
.ajax-loading-block-window .loading-image { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ui-dialog { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; z-index: 1002; max-width: calc(100vw - 24px); }
.ui-dialog-titlebar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--c-line); font-weight: 700; }
.ui-dialog-titlebar-close { border: 0; background: none; width: 28px; height: 28px; font-size: 0; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='%2314202e' stroke-width='2'/%3E%3C/svg%3E") center/18px no-repeat; }
.ui-dialog-content { padding: 18px; }
.ui-widget-overlay { position: fixed; inset: 0; background: rgba(13, 25, 40, .5); z-index: 1001; }
.ui-helper-hidden-accessible { position: absolute; left: -9999px; }

/* 5. header */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: relative; z-index: 50; }
.header-ribbon { font-size: 13px !important; padding: 7px var(--gutter) !important; }
.header-ribbon a { color: inherit; text-decoration: underline; }
.topbar { background: var(--c-navy); color: #dce6f2; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.topbar a { color: #fff; }
/* Products / Suppliers: a two-option switch, the current one filled white */
.mobile-marketplace-directory-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(0, 0, 0, .2); }
.mobile-marketplace-directory-tabs__link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px; border-radius: 999px; color: #dce6f2 !important; font-size: 14px; font-weight: 700; }
.mobile-marketplace-directory-tabs__link .icon { width: 18px; height: 18px; }
.mobile-marketplace-directory-tabs__link:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.mobile-marketplace-directory-tabs__link.is-active { background: #fff; color: var(--c-navy) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.header-selectors-wrapper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.header-selectors-wrapper select { min-height: 30px; padding: 2px 28px 2px 10px; font-size: 13px; background-color: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E"); }
.header-selectors-wrapper select option { color: var(--c-text); }
.header-selectors-wrapper label { font-weight: 400; color: #c4d3e4; white-space: nowrap; }
.header-selectors-wrapper > div { display: flex; align-items: center; gap: 6px; }
.header-selectors-wrapper .mobile-selector { display: none !important; }
.site-nav .header-selectors-wrapper { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--c-line); }
.site-nav .header-selectors-wrapper > div { flex-direction: column; align-items: stretch; gap: 4px; }
.site-nav .header-selectors-wrapper label { color: var(--c-muted); font-size: 13px; }
.site-nav .header-selectors-wrapper select { min-height: 40px; color: var(--c-text); background-color: #fff; border-color: #cdd5df; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='1.6'/%3E%3C/svg%3E"); }

.header-main__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); padding-block: 10px; }
.header-logo { flex: none; }
.header-logo .logo { display: block; width: clamp(150px, 16vw, 210px); }
.header-logo img { display: block; width: 100%; height: auto; aspect-ratio: 495 / 91; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--c-ink); cursor: pointer; }
.store-search-box { flex: 1 1 auto; min-width: 0; max-width: 760px; }
#typesense-search-form, #small-search-box-form { display: flex; align-items: center; position: relative; }
.store-search-box .search-input-wrapper { position: relative; flex: 1 1 auto; }
.store-search-box .search-box-text, #typesense-searchbox {
    width: 100%; height: 46px; min-height: 46px; padding: 0 40px 0 16px; border: 2px solid var(--c-navy);
    border-radius: var(--radius-sm); font-size: 15px; box-shadow: none;
}
/* typesense-search.css hides the submit button (search runs as you type) */
.store-search-box .search-box-button { height: 46px; min-height: 46px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-navy); color: #fff; padding: 0 22px; }
.store-search-box .search-box-button:hover { background: var(--c-navy-2); }
.clear-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--c-muted); cursor: pointer; }
.clear-search-icon.show { display: block !important; }
.mobile-search-tabs-row { display: none; }

.header-links-wrapper { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.header-links__item { position: relative; }
.header-link { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--c-ink); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.header-link::-webkit-details-marker { display: none; }
.header-link:hover, .account-menu[open] > .header-link { background: var(--c-surface); color: var(--c-ink); }
.header-link__label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.header-links__item--compare .header-link__label, .header-links__item--wishlist .header-link__label { display: none; }
.cart-qty { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 11px; font-weight: 700; }
/* wishlist count is the "({0})" resource text, rewritten by AjaxCart: shown as plain text */
.wishlist-qty { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.account-menu__panel, .mini-shopping-cart {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 280px; padding: 14px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.account-menu__panel { display: grid; gap: 4px; }
.account-menu__panel a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--c-text); }
.account-menu__panel a:hover { background: var(--c-surface); }
.account-menu__panel .button-1 { color: #fff; justify-content: center; }
.account-menu__name { margin: 0 0 6px; padding: 0 10px 8px; border-bottom: 1px solid var(--c-line); font-weight: 600; color: var(--c-ink); }
.inbox-unread { margin-left: 6px; color: var(--c-muted); }

.mini-shopping-cart { width: 340px; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.flyout-cart:hover .mini-shopping-cart, .flyout-cart:focus-within .mini-shopping-cart, .flyout-cart.active .mini-shopping-cart { visibility: visible; opacity: 1; transform: none; }
.mini-shopping-cart .items { max-height: 320px; overflow-y: auto; display: grid; gap: 10px; }
.mini-shopping-cart .item { display: grid; grid-template-columns: 64px 1fr 28px; gap: 10px; align-items: start; }
.mini-shopping-cart .picture { height: 64px; overflow: hidden; }
.mini-shopping-cart .item img { display: block; width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: 0; }
.mini-shopping-cart .remove-item { display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-muted); cursor: pointer; }
.mini-shopping-cart .remove-item:hover { border-color: var(--c-sale); color: var(--c-sale); }
.mini-shopping-cart .remove-item .icon { width: 14px; height: 14px; }
.mini-shopping-cart .name { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink); line-height: 1.35; }
.mini-shopping-cart .attributes { font-size: 12px; color: var(--c-muted); }
.mini-shopping-cart .meta { display: flex; gap: 6px; font-size: 13px; color: var(--c-muted); }
.mini-shopping-cart .price { color: var(--c-ink); font-weight: 600; }
.mini-shopping-cart .flyout-lower { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.mini-shopping-cart .totals { display: flex; justify-content: space-between; margin-bottom: 10px; }
.mini-shopping-cart .buttons { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-shopping-cart .empty { margin: 0; color: var(--c-muted); }
.search-wrap { display: none; }
.search-wrap > span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 44px; color: var(--c-ink); cursor: pointer; }

/* 6. navigation */
.site-nav { border-top: 1px solid var(--c-line); background: #fff; }
.main-menu, .main-menu__group > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; min-height: 48px; }
.main-menu__item > a { display: inline-flex; align-items: center; height: 48px; padding: 0 7px; font-size: 14px; font-weight: 600; color: var(--c-ink); white-space: nowrap; border-bottom: 2px solid transparent; }
.main-menu__item > a:hover, .main-menu__item > a[aria-current] { color: var(--c-navy-2); border-bottom-color: var(--c-accent); }
.main-menu__item--cta > a { height: 34px; margin-inline: 4px; border: 1px solid var(--c-accent); border-radius: 999px; color: var(--c-accent-ink); }
.main-menu__item--cta > a:hover { background: var(--c-accent); color: #fff; border-bottom-color: var(--c-accent); }
.site-nav__trust { min-height: 44px; }
/* 300px, the Trustpilot default: narrower, the badge can stack onto two lines taller than the row */
.site-nav__trust .trustpilot-widget { width: 100%; min-width: 300px; }

@media (max-width: 1024px) {
    :root { --header-h: 56px; }
    /* sticky creates a stacking context: the drawer inside it can only sit above the overlay if the header does */
    .site-header { position: sticky; top: 0; z-index: 50; }
    html.no-scroll .site-header { z-index: 90; }
    .topbar__inner { min-height: 48px; }
    .topbar .header-selectors-wrapper { display: none; }
    .mobile-marketplace-directory-tabs { flex: 1; }
    .mobile-marketplace-directory-tabs__link { flex: 1; justify-content: center; }
    .header-main__inner { gap: 6px; padding-block: 6px; }
    .nav-toggle { display: inline-flex; margin-left: -8px; }
    .header-logo { flex: 1 1 auto; display: flex; justify-content: center; }
    .header-logo .logo { width: 150px; }
    .header-link__label, .header-links__item--compare { display: none; }
    .header-link { padding: 0 8px; position: relative; }
    .header-link .cart-qty { position: absolute; top: 4px; right: 0; min-width: 18px; height: 18px; font-size: 10px; }
    .wishlist-qty { display: none; }
    .search-wrap { display: block; }
    .mini-shopping-cart { display: none; }
    .account-menu__panel { position: fixed; top: auto; right: 8px; left: 8px; width: auto; }

    /* inline search panel (opened by .search-wrap via the search box script) */
    .store-search-box { display: none; }
    .store-search-box.open { display: block; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px var(--gutter) 14px; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); }
    .store-search-box.open .mobile-search-tabs-row { display: flex; flex: 0 0 100%; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
    .store-search-box.open #typesense-search-form { flex-wrap: wrap; }
    .store-search-box.open .search-input-wrapper { flex: 1 1 100%; min-width: 0; }    .search-mode-tabs { display: flex; gap: 6px; }
    .search-mode-tab { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
    .search-mode-tab--active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
    .mobile-search-close-button { border: 0; background: none; font-size: 13px; color: var(--c-muted); cursor: pointer; }

    /* off-canvas navigation */
    .site-nav { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 80; border: 0; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; box-shadow: var(--shadow-lg); }
    .site-nav.is-open { transform: none; }
    .site-nav__inner { padding: 0 0 12px; }
    .site-nav__head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--c-line); font-weight: 700; color: var(--c-ink); }
    .nav-close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: none; color: var(--c-ink); cursor: pointer; }
    .main-menu, .main-menu__group > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-menu__item > a { display: flex; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--c-line); }
    .main-menu__item--cta > a { margin: 12px 20px; justify-content: center; border-bottom: 1px solid var(--c-accent); }
    .site-nav__trust { margin: 16px 10px; }
    .overlayOffCanvas { position: fixed; inset: 0; z-index: 70; background: rgba(13, 25, 40, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
    .overlayOffCanvas.show { opacity: 1; visibility: visible; }
}
@media (min-width: 1025px) {
    .overlayOffCanvas, .site-nav__head { display: none; }
    /* menu row: links (Contact Us onward pushed right) and the Trustpilot badge beside them */
    .site-nav__inner { display: flex; align-items: center; gap: 4px; }
    .main-menu { flex: 1 1 auto; min-width: 0; }
    .main-menu__group { margin-left: auto; }
    .site-nav__trust { flex: 0 0 300px; display: flex; align-items: center; }
}
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* 7. hero / banners */
.hero { background: var(--c-surface); }
.centralized-banner-carousel { position: relative; max-width: 1920px; margin: 0 auto; overflow: hidden; }
.homepage-swiper, .category-swiper { aspect-ratio: 1920 / 400; position: relative; overflow: hidden; }
.homepage-swiper .swiper-slide, .homepage-swiper .banner-single__slide,
.category-swiper .swiper-slide, .category-swiper .banner-single__slide { height: 100%; }
/* the image must fill the reserved banner box (otherwise a wide image leaves an empty band under it on mobile) */
.centralized-banner-carousel .banner-single__wrapper, .centralized-banner-carousel .swiper-slide > a,
.centralized-banner-carousel .banner-single__slide > a { display: block; height: 100%; }
.centralized-banner-carousel picture, .centralized-banner-carousel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; height: 100%; }
.banner-swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }
.banner-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child),
.banner-swiper:not(.swiper-initialized) .swiper-button-prev,
.banner-swiper:not(.swiper-initialized) .swiper-button-next { display: none; }
.banner-swiper .swiper-button-prev, .banner-swiper .swiper-button-next { color: #fff; }
.banner-swiper .swiper-pagination-bullet-active { background: #fff; }
@media (max-width: 768px) {
    .homepage-swiper { aspect-ratio: 768 / 432; }
    .category-swiper { aspect-ratio: 1200 / 400; }
}

/* 8. grids & cards */
.home-page .page-body { display: grid; gap: 40px; }
.home-page-section-title, .home-page .title, .product-grid > .title { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); margin: 0 0 14px; }
.home-page-sale-products-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.home-page-sale-products-header .home-page-section-title { margin: 0; }
.home-page-sale-products-copy p { margin: 4px 0 0; color: var(--c-muted); }
.home-page-sale-products-cta { flex: none; }

.item-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.product-grid .item-grid, .search-results .item-grid { grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: 12px; }
@media (min-width: 640px) { .product-grid .item-grid, .search-results .item-grid { gap: 16px; } }
.item-box { min-width: 0; }

.product-item { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.product-item:hover { border-color: #cfd8e3; box-shadow: var(--shadow); }
.product-item .picture { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--c-line); }
.product-item .picture > a { display: block; width: 100%; height: 100%; }
.product-item .picture img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.discount-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: var(--c-sale); color: #fff; font-size: 12px; font-weight: 700; }
.product-item .btn-wrapper { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .15s; }
.product-item:hover .btn-wrapper, .product-item:focus-within .btn-wrapper { opacity: 1; }
.product-item .btn-wrapper button { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; background: #fff center/18px no-repeat; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.product-item .add-to-wishlist-button { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-9.3-9A5 5 0 0 1 12 6a5 5 0 0 1 9.3 5c-2.3 4.6-9.3 9-9.3 9Z' fill='none' stroke='%2314202e' stroke-width='2'/%3E%3C/svg%3E") !important; }
.product-item .add-to-compare-list-button { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16M17 4v16M3 8l4-4 4 4M13 16l4 4 4-4' fill='none' stroke='%2314202e' stroke-width='2'/%3E%3C/svg%3E") !important; }
.product-item .details { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 6px; }
.product-item .product-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.product-item .product-title a { color: var(--c-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-item .product-title a:hover { color: var(--c-navy-2); }
.product-item .sku { font-size: 12px; color: var(--c-muted); }
.product-item .description { display: none; }
.product-item .add-info { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.product-item .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.product-item .actual-price { font-size: 17px; font-weight: 700; color: var(--c-ink); }
.product-item .old-price { font-size: 13px; color: var(--c-muted); text-decoration: line-through; }
.product-item .tax-shipping-info, .product-item .base-price-pangv { flex-basis: 100%; font-size: 12px; color: var(--c-muted); }
.product-item .buttons { margin: 0; display: grid; gap: 6px; }
.product-item .product-box-add-to-cart-button { width: 100%; min-height: 38px; font-size: 13px; background: var(--c-navy); color: #fff; border: 0; }
.product-item .product-box-add-to-cart-button:hover { background: var(--c-navy-2); color: #fff; }
.product-rating-box .rating, .rating { position: relative; width: 80px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 24 22'%3E%3Cpath d='m12 1 3.1 6.9 7.4.7-5.6 5 1.7 7.4L12 17.2 5.4 21l1.7-7.4-5.6-5 7.4-.7z' fill='%23d6dde6'/%3E%3C/svg%3E") repeat-x 0 0 / 16px 14px; }
.product-rating-box .rating div, .rating div { height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 24 22'%3E%3Cpath d='m12 1 3.1 6.9 7.4.7-5.6 5 1.7 7.4L12 17.2 5.4 21l1.7-7.4-5.6-5 7.4-.7z' fill='%23f2a100'/%3E%3C/svg%3E") repeat-x 0 0 / 16px 14px; }

/* category tiles */
.category-grid .item-grid, .sub-category-grid .item-grid, .manufacturer-grid .item-grid, .vendor-grid .item-grid { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 12px; }
/* homepage top categories: one row on desktop (auto-fit stretches the tiles when fewer than the tracks that fit) */
.home-page-category-grid .item-grid { grid-template-columns: repeat(auto-fit, minmax(min(46%, 150px), 1fr)); }
.category-item, .sub-category-item, .manufacturer-item, .vendor-item { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.category-item:hover, .sub-category-item:hover, .manufacturer-item:hover, .vendor-item:hover { box-shadow: var(--shadow); }
.category-item .picture, .sub-category-item .picture, .manufacturer-item .picture, .vendor-item .picture { aspect-ratio: 4 / 3; background: var(--c-surface); }
.category-item .picture a, .sub-category-item .picture a, .manufacturer-item .picture a, .vendor-item .picture a { display: block; height: 100%; }
.category-item .picture img, .sub-category-item .picture img, .manufacturer-item .picture img, .vendor-item .picture img { width: 100%; height: 100%; object-fit: cover; }
.category-item .title, .sub-category-item .title, .manufacturer-item .title, .vendor-item .title { margin: 0; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.category-item .title a, .sub-category-item .title a, .manufacturer-item .title a, .vendor-item .title a { color: var(--c-ink); }

/* 9. listing */
.product-selectors { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding: 10px 12px; background: var(--c-surface); border-radius: var(--radius); font-size: 14px; }
.product-selectors > div { display: flex; align-items: center; gap: 8px; }
.product-selectors select { min-height: 36px; width: auto; }
.product-selectors span { color: var(--c-muted); }
.product-viewmode { order: 3; }
.viewmode-icon { display: inline-grid; place-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; color: var(--c-ink); font-size: 13px; font-weight: 600; }
.viewmode-icon.selected { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
@media (max-width: 640px) {
    .product-selectors { display: grid; grid-template-columns: 1fr 1fr; }
    .product-selectors > div { flex-direction: column; align-items: stretch; gap: 4px; }
    .product-selectors > div > span:last-child:not(:first-child) { display: none; }
    .product-selectors select { width: 100%; }
    .product-viewmode { display: none !important; }
}
/* list view mode */
.product-list .item-grid { grid-template-columns: 1fr; }
.product-list .product-item { flex-direction: row; }
.product-list .product-item .picture { flex: 0 0 min(34%, 220px); border-bottom: 0; border-right: 1px solid var(--c-line); }
.product-list .product-item .description { display: block; font-size: 13px; color: var(--c-muted); }
.product-list .product-item .product-title { font-size: 16px; }
.product-list .product-item .buttons { justify-content: start; }
.product-list .product-item .product-box-add-to-cart-button { width: auto; padding-inline: 28px; }
.pager { margin: 28px 0 0; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager li a, .pager li span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-ink); font-weight: 600; }
.pager li.current-page span { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.pager li a:hover { border-color: var(--c-navy); }
.block { margin-bottom: 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.block .title { padding: 12px 14px; border-bottom: 1px solid var(--c-line); font-weight: 700; color: var(--c-ink); }
.block .listbox { padding: 10px 14px; }
.block .list { list-style: none; margin: 0; padding: 0; }
.block .list li { padding: 5px 0; }
.block .list a { color: var(--c-text); }
.block .list .active > a { color: var(--c-navy-2); font-weight: 700; }
.block .sublist { list-style: none; padding-left: 12px; margin: 4px 0; }
.no-result { padding: 24px; text-align: center; color: var(--c-muted); background: var(--c-surface); border-radius: var(--radius); }

/* Typesense results (markup built by public.typesense.js). typesense-search.css forces display:block !important
   while body.typesense-search-active is set, so the grid needs the same flag and a more specific selector. */
@media (min-width: 769px) {
    body.typesense-search-active #typesense-results-container { display: grid !important; }
    #typesense-results-container { grid-template-columns: clamp(220px, 22vw, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
    #typesense-results-container .side-2 { grid-column: 1; grid-row: 1; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
    #typesense-results-container .center-2 { grid-column: 2; grid-row: 1; min-width: 0; }
}

/* 9b. shared commerce bits (page sections live in product.css, checkout.css, account.css, blog.css) */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table td, .data-table th { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.add-to-cart-qty-wrapper { display: inline-flex; align-items: stretch; height: 48px; border: 1px solid #cdd5df; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.add-to-cart-qty-wrapper .plus, .add-to-cart-qty-wrapper .minus { width: 40px; border: 0; background: var(--c-surface); color: var(--c-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.add-to-cart-qty-wrapper .plus:hover, .add-to-cart-qty-wrapper .minus:hover { background: var(--c-line); }
.add-to-cart-qty-wrapper .qty-input { width: 56px !important; min-height: 0; height: 100%; border: 0; border-radius: 0; text-align: center; font-weight: 600; }
.address-item, .order-item { padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.address-item .title, .order-item .title { margin-bottom: 8px; font-weight: 700; color: var(--c-ink); }
.address-item ul, .order-item ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }

/* 404: the text is an admin-edited topic with inline centring, which breaks bullet lists */
.not-found-page { max-width: 720px; margin-inline: auto; }
.not-found-page .topic-block { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.not-found-page .topic-block-body p, .not-found-page .topic-block-body li { text-align: left !important; }
.not-found-page .topic-block-body ul { padding-left: 20px; }

/* 10. footer */
.site-footer { margin-top: auto; background: var(--c-navy); color: #c4d3e4; font-size: 14px; }
.site-footer a { color: #e6eef7; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-trust { background: #fff; color: var(--c-text); border-top: 1px solid var(--c-line); }
.footer-trust__inner { display: grid; gap: 16px; align-items: center; padding-block: 18px; }
@media (min-width: 900px) { .footer-trust__inner { grid-template-columns: 1fr minmax(320px, 460px); } }
.footer-trust .trustpilot-widget { min-height: 52px; }
.footer-trust a { color: var(--c-navy-2); }
.newsletter { display: grid; gap: 6px; }
.newsletter .title { font-weight: 700; color: var(--c-ink); }
.newsletter-subscribe-block { display: flex; gap: 0; }
.newsletter-email input[type=email], .newsletter-subscribe-text { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.newsletter-subscribe-block .newsletter-email { flex: 1; display: flex; }
.newsletter-subscribe-block .newsletter-email > * { flex: 1; }
.newsletter-subscribe-button, #newsletter-subscribe-button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; background: var(--c-navy) !important; color: #fff !important; }
.newsletter-validation, .newsletter-result { font-size: 13px; color: var(--c-muted); }
.footer-main__inner { display: grid; gap: 28px; padding-block: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-main__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .footer-main__inner { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-logo { display: inline-block; width: 190px; padding: 10px 12px; background: #fff; border-radius: var(--radius-sm); }
.footer-logo img { display: block; width: 100%; }
.footer-brand__text { margin: 14px 0; max-width: 360px; }
.footer-block__title { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-block .list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-lower { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer-lower__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.footer-disclaimer { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pay-options { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.pay-options img { display: block; width: 40px; height: 25px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
ul.social-sharing { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.site-footer .social-sharing a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.site-footer .social-sharing a:hover { background: var(--c-accent); }
.site-footer .social-sharing svg { width: 18px; height: 18px; }

/* 11. misc */
.eu-cookie-bar-notification { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; max-width: 560px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.scroll-back-button { display: none; }
.admin-header-links { background: #222; color: #fff; text-align: center; font-size: 12px; font-weight: 700; line-height: 32px; }
.admin-header-links a, .admin-header-links span, .admin-header-links .impersonate { display: inline-block; margin: 0 10px; color: #fff; }
.admin-header-links .finish-impersonation { padding: 0 12px; background: #555; }
.trustpilot-widget a { color: inherit; }
