/*
Theme Name:   Harbor Blue
Description:  Child theme of Kadence for the AmberJack Marine Services store. AmberJack navy & gold identity with switchable seasonal design styles (Appearance → Design style). RTL + LTR, WooCommerce.
Author:       AmberJack Marine Services
Template:     kadence
Version:      3.4.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain:  harbor-blue
License:      GPL-2.0-or-later
*/

/* =========================================================================
   Design tokens — taken from a nautical chart
   deep      : deep-water navy, the brand ink
   teal      : brand turquoise, used for actions
   shallow   : the pale blue charts use for shallow water
   land      : chart buff for land, used for the "help" block
   magenta   : chart magenta (lights, cables), used for sale tags only
   ========================================================================= */
:root {
	--hb-deep: #0a2a43;
	--hb-deep-2: #12395a;
	--hb-deep-3: #1b4a70;
	/* AmberJack gold (from the logo) is the accent; actions are navy. */
	--hb-gold: #c9a24f;
	--hb-gold-light: #e2c47f;
	--hb-gold-dark: #8a6a24;
	--hb-gold-soft: #f6eedb;
	--hb-teal: var(--hb-gold);
	--hb-teal-dark: #154573;
	--hb-shallow: #d7ecf3;
	--hb-shallow-2: #eef6f9;
	--hb-land: #efe4c4;
	--hb-land-line: #d9c99a;
	--hb-magenta: #a3195b;
	--hb-ink: #10243a;
	--hb-muted: #55687c;
	--hb-line: #d5dfe6;
	--hb-bg: #ffffff;
	--hb-danger: #b42318;
	--hb-ok: #067647;

	/* Design-style tokens: every design style (assets/styles/*.css) sets these.
	   --hb-deep is always a dark colour (header, footer, hero): text on it is white. */
	--hb-deep-0: #071f33;          /* darkest: top bar */
	--hb-deep-rgb: 10, 42, 67;     /* --hb-deep as R, G, B for transparent overlays */
	--hb-gold-rgb: 201, 162, 79;   /* --hb-gold as R, G, B for focus rings */
	--hb-tint-rgb: 215, 236, 243;  /* light tint for hairlines on dark */
	--hb-on-deep-soft: #e9eef3;    /* text on dark: strong */
	--hb-on-deep-muted: #c4d4e2;   /* text on dark: secondary */
	--hb-on-deep-faint: #8fa8bf;   /* text on dark: small print */
	--hb-surface: #ffffff;         /* cards, panels, header search, menus */
	--hb-ink-2: #3d4b57;
	--hb-muted-2: #7d8fa0;         /* wordmarks, placeholders */
	--hb-input-line: #b9c7d3;
	--hb-shallow-line: #b6d9e5;
	--hb-warn-bg: #fff8eb;
	--hb-heading-weight: 600;
	--hb-heading-case: none;
	--hb-heading-tracking: 0;
	--hb-btn-radius: var(--hb-radius-sm);
	--hb-btn-case: none;
	--hb-btn-tracking: 0;

	/* legacy aliases (used by plugin markup / inline styles) */
	--hb-navy: var(--hb-deep);
	--hb-navy-2: var(--hb-deep-2);
	--hb-navy-3: var(--hb-deep-3);
	--hb-teal-soft: var(--hb-shallow-2);
	--hb-bg-alt: var(--hb-shallow-2);

	--hb-radius: 6px;
	--hb-radius-sm: 4px;
	--hb-shadow: 0 10px 30px -12px rgba(10, 42, 67, .28);
	--hb-wrap: 1280px;

	/* Fonts: a design style changes only the four named fonts below. */
	--hb-latin-body: "IBM Plex Sans";
	--hb-latin-display: "Barlow Semi Condensed";
	--hb-latin-figures: var(--hb-latin-display);
	--hb-arabic: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
	--hb-arabic-display: var(--hb-arabic);
	--hb-font: var(--hb-latin-body), var(--hb-arabic);
	--hb-display: var(--hb-latin-display), var(--hb-arabic);
	--hb-figures: var(--hb-latin-figures), var(--hb-arabic);

	--global-palette1: var(--hb-teal-dark);
	--global-palette2: var(--hb-deep);
	--global-palette3: var(--hb-deep);
	--global-palette4: var(--hb-ink);
	--global-palette5: var(--hb-muted);
	--global-palette6: #8a99ad;
	--global-palette7: var(--hb-shallow-2);
	--global-palette8: #f7fafb;
	--global-palette9: #ffffff;
	--global-body-font-family: var(--hb-font);
	--global-heading-font-family: var(--hb-display);
}

/* Arabic pages: Readex Pro for everything (body 400, headings 600), so Arabic and the
   Latin words inside it (brands, SKUs, units) share one clear, modern design. */
:lang(ar), .rtl {
	--hb-font: var(--hb-arabic);
	--hb-display: var(--hb-arabic-display);
	--hb-heading-tracking: 0;
}
.rtl h1, .rtl h2, .rtl h3, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }

body {
	font-family: var(--hb-font);
	color: var(--hb-ink);
	background: var(--hb-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.rtl body, body.rtl { line-height: 1.75; }

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3 {
	font-family: var(--hb-display);
	color: var(--hb-deep);
	font-weight: var(--hb-heading-weight);
	letter-spacing: var(--hb-heading-tracking);
	text-transform: var(--hb-heading-case);
}
h1 { line-height: 1.12; }
h2 { line-height: 1.2; }
.rtl h1 { line-height: 1.3; }
.rtl h2 { line-height: 1.35; }

a { color: var(--hb-teal-dark); text-underline-offset: .18em; }
a:hover { color: var(--hb-gold-dark); }
:focus-visible { outline: 2px solid var(--hb-teal); outline-offset: 2px; }

.hb-wrap { max-width: var(--hb-wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .hb-wrap { padding-inline: 24px; } }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; }

/* =========================================================================
   Buttons
   ========================================================================= */
.hb-btn, .button, button.button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--hb-teal-dark);
	color: #fff;
	border: 0;
	border-radius: var(--hb-btn-radius);
	padding: .72em 1.25em;
	font-family: var(--hb-font);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	letter-spacing: var(--hb-btn-tracking);
	text-transform: var(--hb-btn-case);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.hb-btn:hover, .button:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: var(--hb-deep); color: #fff;
}
.hb-btn--ghost { background: transparent; color: var(--hb-deep); box-shadow: inset 0 0 0 1.5px var(--hb-deep); }
.hb-btn--ghost:hover { background: var(--hb-deep); color: #fff; }
.hb-btn--light, .wp-block-button.hb-btn--light .wp-block-button__link { background: var(--hb-surface); color: var(--hb-deep); }
.hb-btn--light:hover, .wp-block-button.hb-btn--light .wp-block-button__link:hover { background: var(--hb-shallow); color: var(--hb-deep); }
.hb-btn--sm { padding: .45em .85em; font-size: .85rem; }
/* Block editor puts the class on the wrapper too; only the link is the button. */
div.wp-block-button.hb-btn--light, div.wp-block-button.hb-btn--light:hover { background: none; padding: 0; box-shadow: none; display: block; }

/* =========================================================================
   Top bar
   ========================================================================= */
.hb-topbar { background: var(--hb-deep); color: var(--hb-on-deep-muted); font-size: .8125rem; }
.hb-topbar .hb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.hb-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hb-topbar a:hover { color: var(--hb-shallow); }
.hb-topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hb-topbar__prefs { display: flex; gap: 6px; align-items: center; }

/* Language / currency switchers */
.hb-switch { position: relative; }
.hb-switch > button {
	background: transparent; color: #fff; border: 1px solid rgba(var(--hb-tint-rgb), .28);
	border-radius: var(--hb-radius-sm); padding: 3px 10px; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.hb-switch > button:hover, .hb-switch.is-open > button { border-color: var(--hb-teal); background: rgba(255, 255, 255, .06); }
.hb-switch__menu {
	display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 1000;
	background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
	box-shadow: var(--hb-shadow); min-width: 180px; padding: 6px; margin: 0; list-style: none;
}
.hb-switch.is-open .hb-switch__menu { display: block; }
.hb-switch__menu a, .hb-switch__menu button {
	display: flex; justify-content: space-between; width: 100%; padding: 8px 10px; border-radius: var(--hb-radius-sm);
	color: var(--hb-ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: start;
}
.hb-switch__menu a:hover, .hb-switch__menu button:hover { background: var(--hb-shallow-2); color: var(--hb-deep); }
.hb-switch__menu [aria-current="true"] { background: var(--hb-shallow); color: var(--hb-deep); font-weight: 600; }
.hb-switch__menu small { color: var(--hb-muted); font-family: var(--hb-figures); }

/* =========================================================================
   Main header
   ========================================================================= */
.hb-header { background: var(--hb-surface); position: sticky; top: 0; z-index: 900; box-shadow: 0 1px 0 var(--hb-line); }
.admin-bar .hb-header { top: 32px; }
.hb-header__main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; min-height: 80px; }

.hb-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hb-deep); font-family: var(--hb-display); font-weight: 700; font-size: 1.4rem; line-height: 1.1; white-space: nowrap; }
.hb-logo:hover { color: var(--hb-deep); }
.hb-logo svg { flex: none; }
.hb-logo small { display: block; font-family: var(--hb-font); font-size: .72rem; font-weight: 500; color: var(--hb-muted); margin-top: 3px; }
.hb-logo img { max-height: 52px; width: auto; }

.hb-search {
	display: flex; border: 1.5px solid var(--hb-deep); border-radius: var(--hb-radius-sm); overflow: hidden;
	background: var(--hb-surface); max-width: 680px; width: 100%; justify-self: center; transition: box-shadow .15s;
}
.hb-search input[type="search"] { flex: 1; border: 0; padding: 11px 16px; font: inherit; font-size: .95rem; min-width: 0; background: transparent; color: var(--hb-ink); box-shadow: none; }
.hb-search input[type="search"]::placeholder { color: var(--hb-muted-2); }
.hb-search input[type="search"]:focus { outline: none; }
.hb-search:focus-within { box-shadow: 0 0 0 3px rgba(var(--hb-gold-rgb), .4); }
.hb-search button { background: var(--hb-deep); color: #fff; border: 0; border-radius: 0; padding: 0 22px; cursor: pointer; display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; }
.hb-search button:hover { background: var(--hb-teal-dark); }

/* Live search suggestions (assets/js/theme.js + harbor-blue-core /search). The form keeps its rounded
   look, but must let the dropdown show outside it. */
.hb-search { position: relative; overflow: visible; }
.hb-search input[type="search"] { border-start-start-radius: inherit; border-end-start-radius: inherit; }
.hb-search button { border-start-end-radius: inherit; border-end-end-radius: inherit; }
.hb-search.is-searching button .hb-ic { animation: hb-ls-pulse .8s ease-in-out infinite; }
@keyframes hb-ls-pulse { 50% { opacity: .35; } }
.hb-livesearch {
	position: absolute; z-index: 1000; top: calc(100% + 6px); inset-inline: 0; max-height: min(70vh, 560px); overflow-y: auto;
	background: var(--hb-surface); color: var(--hb-ink); border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
	box-shadow: 0 24px 48px -20px rgba(var(--hb-deep-rgb), .45); padding: 6px; text-align: start;
}
.hb-livesearch[hidden] { display: none; }
.hb-livesearch ul { list-style: none; margin: 0; padding: 0; }
.hb-livesearch__head { margin: 6px 8px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-muted); }
.rtl .hb-livesearch__head { letter-spacing: 0; font-size: .8rem; }
.hb-livesearch a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--hb-radius-sm); color: inherit; text-decoration: none; }
.hb-livesearch a.is-active, .hb-livesearch a:hover { background: var(--hb-shallow-2); }
.hb-livesearch__cats a { padding-block: 6px; font-weight: 600; color: var(--hb-deep); }
.hb-livesearch__cats small { margin-inline-start: auto; color: var(--hb-muted); font-weight: 400; font-size: .78rem; }
.hb-livesearch__items img { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: var(--hb-radius-sm); background: var(--hb-shallow-2); }
.hb-livesearch__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hb-livesearch__text strong { font-weight: 600; font-size: .92rem; line-height: 1.35; color: var(--hb-ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hb-livesearch__text small { font-size: .75rem; color: var(--hb-muted); }
.hb-livesearch__price { flex: none; display: grid; justify-items: end; gap: 1px; font-family: var(--hb-figures); font-weight: 700; font-size: .92rem; color: var(--hb-deep); white-space: nowrap; }
.hb-livesearch__price del { font-weight: 500; font-size: .76rem; color: var(--hb-muted); }
.hb-livesearch__price .is-sale { color: var(--hb-magenta); }
.hb-livesearch__price em { font-style: normal; font-family: var(--hb-font); font-weight: 600; font-size: .72rem; color: var(--hb-danger); }
.hb-livesearch mark { background: rgba(var(--hb-gold-rgb), .3); color: inherit; border-radius: 2px; padding: 0 1px; }
.hb-livesearch__none { margin: 10px 8px; color: var(--hb-muted); font-size: .9rem; }
.hb-livesearch__all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--hb-line); border-radius: 0 0 var(--hb-radius-sm) var(--hb-radius-sm) !important; font-weight: 600; color: var(--hb-teal-dark) !important; }
@media (max-width: 560px) {
	.hb-livesearch { max-height: 62vh; }
	.hb-livesearch__price { font-size: .84rem; }
}

.hb-actions { display: flex; align-items: center; gap: 4px; }
.hb-action {
	position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px;
	border-radius: var(--hb-radius-sm); color: var(--hb-deep); text-decoration: none; font-size: .75rem; font-weight: 500;
	background: none; border: 0; cursor: pointer;
}
.hb-action:hover { background: var(--hb-shallow-2); color: var(--hb-deep); }
.hb-badge {
	position: absolute; top: 1px; inset-inline-end: 4px; background: var(--hb-teal-dark); color: #fff; border-radius: 999px;
	font-family: var(--hb-figures); font-size: .72rem; font-weight: 600; line-height: 1; padding: 3px 6px; min-width: 18px; text-align: center;
	box-shadow: 0 0 0 2px var(--hb-surface);
}
.hb-badge[data-count="0"] { display: none; }
.hb-menu-toggle { display: none; }

/* =========================================================================
   Navigation / mega menu
   ========================================================================= */
.hb-nav { background: var(--hb-surface); border-top: 1px solid var(--hb-line); }
.hb-nav__list, .hb-nav__list ul { list-style: none; margin: 0; padding: 0; }
.hb-nav__list { display: flex; flex-wrap: wrap; gap: 0; }
.hb-nav__list > li { position: static; }
.hb-nav__list > li > a {
	display: block; padding: 12px 6px 10px; white-space: nowrap; color: var(--hb-deep); text-decoration: none;
	font-weight: 500; font-size: .8rem; border-bottom: 2px solid transparent;
}
@media (min-width: 1440px) { .hb-nav__list { justify-content: space-between; } }
.hb-nav__list > li:hover > a, .hb-nav__list > li:focus-within > a,
.hb-nav__list > li.current-menu-item > a, .hb-nav__list > li.current-menu-ancestor > a { border-bottom-color: var(--hb-teal); color: var(--hb-deep); }
.hb-nav__list > li > .sub-menu {
	display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--hb-surface); border-top: 1px solid var(--hb-line);
	box-shadow: 0 24px 40px -24px rgba(var(--hb-deep-rgb), .35);
	padding: 28px max(16px, calc((100vw - var(--hb-wrap)) / 2 + 24px));
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 32px; z-index: 950;
}
.hb-nav__list > li:hover > .sub-menu, .hb-nav__list > li:focus-within > .sub-menu { display: grid; }
.hb-nav__list .sub-menu a { display: block; padding: 6px 0; color: var(--hb-ink); text-decoration: none; }
.hb-nav__list .sub-menu > li > a { font-weight: 600; color: var(--hb-deep); }
.hb-nav__list .sub-menu .sub-menu a { font-family: var(--hb-font); font-weight: 400; font-size: .9rem; color: var(--hb-muted); padding: 4px 0; }
.hb-nav__list .sub-menu a:hover { color: var(--hb-teal-dark); }
.hb-nav__wrap { position: relative; }

/* =========================================================================
   Language / currency suggestion banner
   ========================================================================= */
.hb-suggest { background: var(--hb-shallow); color: var(--hb-deep); border-bottom: 1px solid var(--hb-shallow-line); font-size: .9rem; }
.hb-suggest .hb-wrap { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-block: 10px; }
.hb-suggest[hidden] { display: none; }

/* =========================================================================
   Hero — deep water drawn as a nautical chart
   ========================================================================= */
.hb-hero {
	position: relative;
	background:
		url("assets/chart-contours.svg") center / cover no-repeat,
		linear-gradient(180deg, var(--hb-deep-2) 0%, var(--hb-deep) 70%);
	color: #fff;
	border-radius: 0;
	padding: clamp(64px, 10vw, 136px) 0 clamp(56px, 8vw, 112px);
	overflow: hidden;
}
/* Align hero copy to the page's start edge, not centered in the constrained layout. */
.hb-hero > .wp-block-group__inner-container { max-width: var(--hb-wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .hb-hero > .wp-block-group__inner-container { padding-inline: 24px; } }
.hb-hero > .wp-block-group__inner-container > * { margin-inline: 0 !important; }
.hb-hero h1, .entry-content .hb-hero h1 {
	color: #fff;
	font-family: var(--hb-display);
	font-weight: var(--hb-heading-weight);
	font-size: clamp(2.3rem, 5.6vw, 4.6rem);
	line-height: 1.08;
	margin: 0 0 22px;
	max-width: 15ch;
	text-wrap: balance;
}
.rtl .hb-hero h1 { line-height: 1.28; }
.hb-hero p { color: var(--hb-on-deep-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 50ch; margin: 0 0 32px; }
.hb-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hb-hero .wp-block-button__link { padding: .9em 1.5em; font-size: 1rem; }
.hb-hero .wp-block-button.is-style-fill .wp-block-button__link { background: var(--hb-teal); color: var(--hb-deep); }
.hb-hero .wp-block-button.is-style-fill .wp-block-button__link:hover { background: var(--hb-surface); color: var(--hb-deep); }
.hb-hero .wp-block-button.hb-btn--light .wp-block-button__link {
	background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--hb-tint-rgb), .55);
}
.hb-hero .wp-block-button.hb-btn--light .wp-block-button__link:hover { background: rgba(var(--hb-tint-rgb), .12); box-shadow: inset 0 0 0 1.5px #fff; }

/* =========================================================================
   Home sections
   ========================================================================= */
.hb-section { padding: clamp(32px, 4vw, 52px) 0; }
/* Sections sit flush against each other (no white strip between coloured bands). */
.entry-content > .hb-section, .entry-content > .wp-block-group.hb-section, .entry-content > .hb-hero--sc { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Two plain sections in a row (e.g. Brands then Help) don't need double padding. */
.entry-content > .hb-section:not(.hb-section--alt) + .hb-section:not(.hb-section--alt) { padding-top: 0; }
.hb-section > .wp-block-group__inner-container { padding-inline: 16px; }
@media (min-width: 768px) { .hb-section > .wp-block-group__inner-container { padding-inline: 24px; } }
.hb-section--alt { background: var(--hb-shallow-2); }
.hb-section > .wp-block-group__inner-container > h2,
.hb-section__head h2 {
	font-size: clamp(1.5rem, 2.6vw, 2.15rem);
	margin: 0 0 20px;
	color: var(--hb-deep);
}
.hb-section__head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.hb-section__head h2 { margin: 0; }

/* Categories: one chart-legend grid with hairline dividers, not separate cards */
.hb-cats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px; background: var(--hb-line); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); overflow: hidden;
}
@media (max-width: 860px) { .hb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hb-cat {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px 20px;
	background: var(--hb-surface); text-decoration: none; color: var(--hb-deep); text-align: start; transition: background-color .15s;
}
.hb-cat:hover { background: var(--hb-shallow-2); color: var(--hb-deep); }
.hb-cat img, .hb-cat > svg {
	width: 96px; height: 96px; object-fit: contain; border-radius: 50%; background: var(--hb-shallow); padding: 10px;
	transition: transform .2s;
}
.hb-cat:hover img { transform: translateY(-2px); }
.hb-cat span { display: grid; gap: 2px; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.hb-cat small { font-family: var(--hb-font); color: var(--hb-muted); font-weight: 400; font-size: .82rem; }

/* Brands: plain wordmarks */
.hb-brands { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; }
.hb-brand {
	font-family: var(--hb-latin-display), sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	color: var(--hb-muted-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.hb-brand:hover { color: var(--hb-deep); border-bottom-color: var(--hb-teal); }

/* Design-style preview notice (managers only, see inc/styles.php) */
.hb-style-previewbar {
	position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 2500; display: flex; gap: 10px; align-items: center;
	background: var(--hb-gold); color: var(--hb-deep); padding: 8px 14px; border-radius: var(--hb-radius-sm); font-size: .85rem;
	box-shadow: var(--hb-shadow);
}
.hb-style-previewbar a { color: var(--hb-deep); font-weight: 600; }

/* Moving brand bar under the home banner. Runs the same way in English and Arabic (brand names are Latin). */
.hb-brandbar { background: var(--hb-surface); border-bottom: 1px solid var(--hb-line); padding: 14px 0; margin: 0; }
.hb-brandbar__viewport {
	overflow: hidden; direction: ltr;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hb-brandbar__track { display: flex; width: max-content; animation: hb-brandbar 40s linear infinite; }
.hb-brandbar:hover .hb-brandbar__track, .hb-brandbar:focus-within .hb-brandbar__track { animation-play-state: paused; }
.hb-brandbar__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.hb-brandbar__list li { margin: 0; padding: 0 clamp(24px, 3.5vw, 48px); }
.hb-brandbar__list a { display: flex; align-items: center; height: 52px; text-decoration: none; }
.hb-brandbar__logo {
	height: 40px; width: auto; max-width: 150px; object-fit: contain;
	filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s;
}
.hb-brandbar__word {
	font-family: var(--hb-latin-display), sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em;
	color: var(--hb-muted-2); transition: color .2s; white-space: nowrap;
}
.hb-brandbar__list a:hover .hb-brandbar__logo, .hb-brandbar__list a:focus-visible .hb-brandbar__logo { filter: none; opacity: 1; }
.hb-brandbar__list a:hover .hb-brandbar__word, .hb-brandbar__list a:focus-visible .hb-brandbar__word { color: var(--hb-deep); }
@keyframes hb-brandbar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.hb-brandbar__track { animation: none; }
	.hb-brandbar__viewport { overflow-x: auto; }
}

/* Help: land-buff block, the counterpart to the deep-water hero */
.hb-help {
	display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
	background: var(--hb-land); color: var(--hb-ink); border: 1px solid var(--hb-land-line); border-radius: var(--hb-radius);
	padding: clamp(28px, 4.5vw, 56px);
}
.hb-help h2, .entry-content .hb-help h2 { color: var(--hb-deep); margin-top: 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 20ch; }
.hb-help p { color: var(--hb-ink-2); max-width: 52ch; }
.hb-help .hb-btn--light { background: var(--hb-deep); color: #fff; }
.hb-help .hb-btn--light:hover { background: var(--hb-teal-dark); color: #fff; }
.hb-help__contacts { display: grid; gap: 0; border-top: 1px solid var(--hb-land-line); }
.hb-help__contacts a {
	display: flex; gap: 12px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--hb-land-line);
	color: var(--hb-deep); font-weight: 600; text-decoration: none; transition: padding .15s, color .15s;
}
.hb-help__contacts a:hover { color: var(--hb-teal-dark); padding-inline-start: 10px; }
.hb-help__contacts bdi { font-family: var(--hb-figures); font-size: 1.1rem; letter-spacing: .01em; }

.hb-usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.hb-usp > div { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
.hb-usp > div > svg { color: var(--hb-teal-dark); flex: none; }
.hb-usp strong { display: block; color: var(--hb-deep); }
.hb-usp span { color: var(--hb-muted); font-size: .9rem; }

/* =========================================================================
   Product cards (WooCommerce loops + blocks)
   ========================================================================= */
.woocommerce ul.products li.product, .wc-block-grid__product, .wc-block-product {
	background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); padding: 0; position: relative;
	overflow: hidden; display: flex; flex-direction: column; box-shadow: none; transition: border-color .15s;
}
.woocommerce ul.products li.product:hover, .wc-block-product:hover { border-color: var(--hb-deep-3); box-shadow: none; }
/* The info panel that slides up on hover (revealing Add to cart) turns 50% transparent gray. */
.woocommerce ul.products li.product .product-details { transition: transform .3s cubic-bezier(.17,.67,.35,.95), background-color .2s; }
.woocommerce ul.products li.product:hover .product-details,
.woocommerce ul.products li.product:focus-within .product-details { background-color: rgba(128, 128, 128, .5); }
.woocommerce ul.products li.product a img, .woocommerce ul.products li.product .woocommerce-loop-image-link img {
	background: var(--hb-shallow-2); margin: 0; border-radius: 0; aspect-ratio: 1; object-fit: contain; width: 100%;
}
.woocommerce ul.products li.product .product-details {
	padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; background: transparent;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--hb-font); font-size: .95rem; font-weight: 600; color: var(--hb-ink); line-height: 1.45; margin: 0 0 4px; padding: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: inherit; text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--hb-teal-dark); }
.woocommerce ul.products li.product .price, .wc-block-components-product-price {
	font-family: var(--hb-figures); color: var(--hb-deep); font-weight: 700; font-size: 1.2rem; margin: 6px 0 2px;
	font-variant-numeric: tabular-nums;
}
.woocommerce ul.products li.product .price del { color: var(--hb-muted); font-weight: 500; font-size: .85em; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--hb-magenta); }
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: .72em; font-weight: 600; color: var(--hb-muted); }
.woocommerce ul.products li.product .product-action-wrap { margin-top: auto; padding-top: 12px; }
.woocommerce ul.products li.product .button {
	width: 100%; background: transparent; color: var(--hb-deep); box-shadow: inset 0 0 0 1.5px var(--hb-deep);
	padding: .65em 1em; font-size: .9rem;
}
.woocommerce ul.products li.product .button:hover { background: var(--hb-deep); color: #fff; }
.woocommerce ul.products li.product .button.product_type_simple { background: var(--hb-teal-dark); color: #fff; box-shadow: none; }
.woocommerce ul.products li.product .button.product_type_simple:hover { background: var(--hb-deep); }
.woocommerce ul.products li.product .button .kadence-svg-iconset { display: none; }
.woocommerce ul.products li.product .button.loading .kadence-svg-iconset:nth-child(2),
.woocommerce ul.products li.product .button.added .kadence-svg-iconset:nth-child(3) { display: inline-flex; }

/* Sale tag: a chart-magenta pennant */
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale, .wc-block-components-product-sale-badge {
	position: absolute; top: 14px; inset-inline-start: 0; inset-inline-end: auto; right: auto; left: auto; min-height: 0; min-width: 0; margin: 0;
	background: var(--hb-magenta); color: #fff; border-radius: 0; padding: 5px 18px 5px 12px;
	font-family: var(--hb-font); font-size: .78rem; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0;
	clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); z-index: 2;
}
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale { left: 0; }
.rtl.woocommerce span.onsale, .rtl .woocommerce span.onsale, .rtl .woocommerce ul.products li.product .onsale { left: auto; right: 0; }
.rtl .woocommerce span.onsale, .rtl span.onsale, .rtl.woocommerce span.onsale,
.rtl .woocommerce ul.products li.product .onsale, .rtl .wc-block-components-product-sale-badge {
	padding: 5px 12px 5px 18px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
}

/* Keep price ranges in reading order (min – max) inside RTL pages. */
.rtl .price, .rtl .wc-block-components-product-price { direction: ltr; unicode-bidi: isolate; }
.rtl ul.products li.product .price { display: block; text-align: right; }
.hb-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--hb-muted); margin: 2px 0 4px; flex-wrap: wrap; }
.hb-card-meta span:first-child { font-family: var(--hb-figures); font-weight: 600; font-size: .85rem; color: var(--hb-deep-3); }
.hb-card-meta bdi { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hb-card-tools { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.hb-icon-btn {
	width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--hb-line); background: rgba(255, 255, 255, .92);
	display: grid; place-items: center; cursor: pointer; color: var(--hb-deep); padding: 0; transition: background-color .15s, color .15s, border-color .15s;
}
.hb-icon-btn:hover { border-color: var(--hb-deep); }
.hb-icon-btn[aria-pressed="true"] { background: var(--hb-deep); border-color: var(--hb-deep); color: #fff; }
.hb-stock { font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hb-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hb-stock--in { color: var(--hb-ok); }
.hb-stock--out { color: var(--hb-danger); }
.hb-stock--back { color: #b54708; }

/* =========================================================================
   Shop / archive with filters
   ========================================================================= */
.hb-shop { display: grid; grid-template-columns: 272px 1fr; gap: 32px; align-items: start; }
.hb-filters {
	position: sticky; top: 150px; background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
	padding: 18px; font-size: .9rem; max-height: calc(100vh - 170px); overflow: auto;
}
.hb-filters h3 { font-size: 1.1rem; color: var(--hb-deep); margin: 0 0 12px; }
.hb-filters details { border-top: 1px solid var(--hb-line); padding: 12px 0; }
.hb-filters summary { cursor: pointer; font-weight: 600; color: var(--hb-deep); }
.hb-filters ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hb-filters label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.hb-filters input[type="checkbox"], .hb-filters input[type="radio"] { accent-color: var(--hb-teal-dark); width: 16px; height: 16px; }
.hb-filters label span.count { margin-inline-start: auto; color: var(--hb-muted); font-family: var(--hb-figures); font-size: .85rem; }
.hb-filters .hb-price { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.hb-filters .hb-price input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--hb-input-line); border-radius: var(--hb-radius-sm); font-family: var(--hb-figures); }
.hb-filters__actions { display: flex; gap: 8px; margin-top: 12px; position: sticky; bottom: -18px; background: var(--hb-surface); padding-block: 10px; }
.hb-filters-toggle, .hb-filters-close { display: none; }
.hb-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hb-chip {
	display: inline-flex; gap: 6px; align-items: center; background: var(--hb-shallow); color: var(--hb-deep);
	border-radius: var(--hb-radius-sm); padding: 4px 10px; font-size: .82rem; text-decoration: none;
}
.hb-chip:hover { background: var(--hb-deep); color: #fff; }
.hb-chip--clear { background: transparent; box-shadow: inset 0 0 0 1px var(--hb-line); }

/* Category tree in the filter column (same on every listing page) */
.hb-cat-tree { gap: 2px !important; }
.hb-cat-tree a { display: flex; align-items: baseline; gap: 6px; padding: 5px 8px; border-radius: var(--hb-radius-sm); color: var(--hb-ink); text-decoration: none; line-height: 1.4; }
.hb-cat-tree a:hover { background: var(--hb-shallow-2); color: var(--hb-deep); }
.hb-cat-tree a .count { margin-inline-start: auto; color: var(--hb-muted); font-family: var(--hb-figures); font-size: .8rem; }
.hb-cat-tree a[aria-current="page"] { background: var(--hb-deep); color: #fff; font-weight: 600; }
.hb-cat-tree a[aria-current="page"] .count { color: var(--hb-on-deep-muted); }
.hb-cat-tree__all a { font-weight: 600; }
.hb-filters .hb-cat-tree details { border: 0; padding: 0; }
.hb-filters .hb-cat-tree summary { list-style: none; display: flex; align-items: center; font-weight: 500; }
.hb-filters .hb-cat-tree summary::-webkit-details-marker { display: none; }
.hb-cat-tree summary::before {
	content: ""; flex: none; width: 7px; height: 7px; margin-inline: 4px 2px;
	border-inline-end: 2px solid var(--hb-muted); border-bottom: 2px solid var(--hb-muted);
	transform: rotate(-45deg); transition: transform .15s;
}
.rtl .hb-cat-tree summary::before { transform: rotate(45deg); }
.hb-cat-tree details[open] > summary::before { transform: rotate(45deg); }
.rtl .hb-cat-tree details[open] > summary::before { transform: rotate(-45deg); }
.hb-cat-tree summary a { flex: 1; }
.hb-cat-tree details ul { margin: 2px 0 6px !important; padding-inline-start: 18px !important; border-inline-start: 2px solid var(--hb-line); }
.hb-cat-tree__top.is-active > a, .hb-cat-tree__top.is-active > details > summary > a:not([aria-current]) { font-weight: 600; color: var(--hb-deep); }
form[data-hb-filter-form].is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* =========================================================================
   Single product
   ========================================================================= */
.single-product div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--hb-deep); }
.single-product div.product p.price, .single-product div.product span.price {
	font-family: var(--hb-figures); color: var(--hb-deep); font-weight: 700; font-size: 1.8rem; font-variant-numeric: tabular-nums;
}
.single-product div.product p.price ins { text-decoration: none; color: var(--hb-magenta); }
.single-product div.product .woocommerce-product-gallery__image { background: var(--hb-shallow-2); border-radius: var(--hb-radius); overflow: hidden; }
.hb-pmeta {
	display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .9rem; margin: 12px 0 18px;
	padding: 14px 0; border-block: 1px solid var(--hb-line);
}
.hb-pmeta dt { color: var(--hb-muted); }
.hb-pmeta dd { margin: 0; font-weight: 600; color: var(--hb-ink); font-variant-numeric: tabular-nums; }
.hb-specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hb-specs th, .hb-specs td { padding: 11px 14px; border-bottom: 1px solid var(--hb-line); text-align: start; vertical-align: top; }
.hb-specs th { width: 38%; color: var(--hb-muted); font-weight: 500; background: transparent; }
.hb-specs td { color: var(--hb-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hb-specs tr:nth-child(odd) th, .hb-specs tr:nth-child(odd) td { background: var(--hb-shallow-2); }
.hb-docs { list-style: none; padding: 0; display: grid; gap: 8px; }
.hb-docs a { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.hb-notice {
	border-inline-start: 3px solid var(--hb-teal-dark); background: var(--hb-shallow-2); color: var(--hb-ink);
	padding: 12px 16px; border-radius: 0 var(--hb-radius-sm) var(--hb-radius-sm) 0; margin: 14px 0; font-size: .92rem;
}
.rtl .hb-notice { border-radius: var(--hb-radius-sm) 0 0 var(--hb-radius-sm); }
.hb-notice--warn { border-color: #d97706; background: var(--hb-warn-bg); }
.hb-product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--hb-display); color: var(--hb-deep); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--hb-teal); }

/* =========================================================================
   Forms (RFQ / compatibility)
   ========================================================================= */
.hb-form { display: grid; gap: 14px; }
.hb-form .hb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hb-form label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--hb-deep); }
.hb-form input, .hb-form textarea, .hb-form select {
	font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--hb-input-line); border-radius: var(--hb-radius-sm); width: 100%; background: var(--hb-surface); color: var(--hb-ink);
}
.hb-form input:focus, .hb-form textarea:focus, .hb-form select:focus { border-color: var(--hb-teal-dark); outline: none; box-shadow: 0 0 0 3px rgba(var(--hb-gold-rgb), .3); }
.hb-form [aria-invalid="true"] { border-color: var(--hb-danger); }
.hb-form .hb-error { color: var(--hb-danger); font-size: .85rem; font-weight: 500; }
.hb-form .hb-success { color: var(--hb-ok); font-weight: 600; }
.hb-hp { position: absolute !important; inset-inline-start: -9999px; }
dialog.hb-dialog { border: 0; border-radius: var(--hb-radius); padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(var(--hb-deep-rgb), .5); }
dialog.hb-dialog::backdrop { background: rgba(var(--hb-deep-rgb), .6); }
.hb-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--hb-deep); color: #fff; }
.hb-dialog__head h2 { color: #fff; font-size: 1.2rem; margin: 0; }
.hb-dialog__head button { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.hb-dialog__body { padding: 22px; }

/* =========================================================================
   Compare & wishlist
   ========================================================================= */
.hb-compare-bar {
	position: fixed; inset-inline: 16px; bottom: 16px; z-index: 990; background: var(--hb-deep); color: #fff; border-radius: var(--hb-radius);
	padding: 10px 12px 10px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between;
	box-shadow: 0 18px 40px -12px rgba(var(--hb-deep-rgb), .55); max-width: 720px; margin-inline: auto;
}
.rtl .hb-compare-bar { padding: 10px 18px 10px 12px; }
.hb-compare-bar strong { font-family: var(--hb-figures); font-size: 1.15rem; }
.hb-compare-bar .hb-btn:not(.hb-btn--light) { background: transparent; box-shadow: inset 0 0 0 1px rgba(var(--hb-tint-rgb), .4); }
.hb-compare-bar[hidden] { display: none; }
.hb-compare-wrap { overflow-x: auto; }
.hb-compare { border-collapse: collapse; min-width: 100%; }
.hb-compare th, .hb-compare td { border: 1px solid var(--hb-line); padding: 12px; vertical-align: top; text-align: start; min-width: 190px; }
.hb-compare th { background: var(--hb-shallow-2); color: var(--hb-deep); font-weight: 600; }
.hb-compare thead td { text-align: center; }
.hb-compare img { max-width: 140px; height: auto; }
.hb-compare tr.is-diff td { background: var(--hb-warn-bg); }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* =========================================================================
   Footer
   ========================================================================= */
.hb-footer {
	background:
		linear-gradient(rgba(var(--hb-deep-rgb), .55), rgba(var(--hb-deep-rgb), .55)),
		url("assets/chart-contours.svg") center 30% / cover no-repeat,
		var(--hb-deep);
	color: var(--hb-on-deep-muted); margin-top: 40px; font-size: .92rem;
}
.hb-footer a { color: #fff; text-decoration: none; }
.hb-footer a:hover { color: var(--hb-teal); }
.hb-footer .hb-logo { color: #fff; }
.hb-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 56px 44px; }
.hb-footer__grid > div > p { max-width: 38ch; margin: 16px 0; }
.hb-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.hb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hb-footer ul a { display: inline-flex; align-items: center; gap: 8px; }
.hb-footer__bottom {
	border-top: 1px solid rgba(var(--hb-tint-rgb), .14); padding-block: 18px; display: flex; justify-content: space-between;
	gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--hb-on-deep-faint);
}

/* =========================================================================
   Mobile drawer
   ========================================================================= */
.hb-drawer { position: fixed; inset: 0; z-index: 2000; display: none; }
.hb-drawer.is-open { display: block; }
.hb-drawer__scrim { position: absolute; inset: 0; background: rgba(var(--hb-deep-rgb), .6); }
.hb-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(360px, 88vw); background: var(--hb-surface); overflow-y: auto; padding: 16px 18px; }
.hb-drawer.is-open .hb-drawer__panel { animation: hb-drawer-in .22s ease-out; }
@keyframes hb-drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.rtl .hb-drawer.is-open .hb-drawer__panel { animation-name: hb-drawer-in-rtl; }
@keyframes hb-drawer-in-rtl { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hb-drawer__panel ul { list-style: none; margin: 0; padding: 0; }
.hb-drawer__panel li a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--hb-line); color: var(--hb-deep); text-decoration: none; font-weight: 600; }
.hb-drawer__panel .sub-menu { display: none; padding-inline-start: 14px; }
.hb-drawer__panel li.is-open > .sub-menu { display: block; }
.hb-drawer__panel .sub-menu a { font-weight: 400; color: var(--hb-ink); }
.hb-drawer__panel .hb-sub-toggle { float: inline-end; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--hb-deep); }
.hb-drawer__prefs { display: grid; gap: 12px; margin-top: 18px; }
.hb-drawer__prefs label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--hb-deep); }
.hb-drawer__prefs select { width: 100%; padding: 10px; border: 1px solid var(--hb-input-line); border-radius: var(--hb-radius-sm); font: inherit; font-weight: 400; }

/* =========================================================================
   AmberJack Marine Services brand layer
   The logo is gold & silver on deep navy, so the logo row is navy.
   ========================================================================= */
.hb-topbar { background: var(--hb-deep-0); }
.hb-header { box-shadow: none; }
/* Full-width navy band behind the logo row. border-image paints it edge to edge without clipping
   (a clip-path here would cut off the live-search dropdown below the row). */
.hb-header__main { background: var(--hb-deep); border-image: linear-gradient(var(--hb-deep) 0 0) fill 0 / 0 / 0 100vmax; min-height: 92px; }
.hb-logo img { display: block; height: 66px; width: auto; max-height: none; }
.hb-logo { padding-block: 6px; }

.hb-header .hb-search { border-color: transparent; background: var(--hb-surface); }
.hb-header .hb-search:focus-within { box-shadow: 0 0 0 3px rgba(var(--hb-gold-rgb), .55); }
.hb-header .hb-search button { background: var(--hb-gold); color: var(--hb-deep); }
.hb-header .hb-search button:hover { background: var(--hb-gold-light); color: var(--hb-deep); }

.hb-header .hb-action { color: var(--hb-on-deep-soft); }
.hb-header .hb-action:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hb-header .hb-badge { background: var(--hb-gold); color: var(--hb-deep); box-shadow: 0 0 0 2px var(--hb-deep); }

/* Language button: always visible, names the language it switches to. */
.hb-header .hb-lang {
	flex-direction: row; gap: 7px; align-self: center; margin-inline-end: 6px;
	padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--hb-gold);
	color: #fff; font-size: .9rem; font-weight: 600; line-height: 1;
}
.hb-header .hb-lang svg { color: var(--hb-gold); width: 20px; height: 20px; }
.hb-header .hb-lang:hover, .hb-header .hb-lang:focus-visible { background: var(--hb-gold); color: var(--hb-deep); }
.hb-header .hb-lang:hover svg, .hb-header .hb-lang:focus-visible svg { color: var(--hb-deep); }
.hb-lang__code { display: none; font-family: var(--hb-figures); font-size: 1rem; }
.hb-lang[lang="ar"] .hb-lang__name, .hb-lang[lang="ar"] .hb-lang__code { font-family: var(--hb-arabic); }

.hb-nav__list > li:hover > a, .hb-nav__list > li:focus-within > a,
.hb-nav__list > li.current-menu-item > a, .hb-nav__list > li.current-menu-ancestor > a { border-bottom-color: var(--hb-gold); }

/* Buttons in the brand colours */
.hb-btn--gold, a.hb-btn--gold { background: var(--hb-gold); color: var(--hb-deep); }
.hb-btn--gold:hover { background: var(--hb-gold-light); color: var(--hb-deep); }
.hb-btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--hb-tint-rgb), .6); }
.hb-btn--outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.hb-hero .wp-block-button.is-style-fill .wp-block-button__link { background: var(--hb-gold); color: var(--hb-deep); }

/* Hero rendered by [hb_hero]: full-bleed, copy on the start edge */
.hb-hero--sc { width: 100vw; margin-inline: calc(50% - 50vw); margin-block: 0; }
.hb-hero__inner { max-width: var(--hb-wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .hb-hero__inner { padding-inline: 24px; } }
.hb-hero--sc .hb-hero__lead { color: var(--hb-on-deep-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 54ch; margin: 0 0 32px; }
.hb-hero--sc .hb-btn { padding: .9em 1.5em; font-size: 1rem; }
.entry-content > .hb-hero--sc:first-child, .entry-content > p:first-child > .hb-hero--sc { margin-top: 0; }

/* Services: one ruled grid, like the category legend */
.hb-services {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
	background: var(--hb-line); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); overflow: hidden;
}
.hb-service { background: var(--hb-surface); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.hb-service__icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--hb-deep); color: var(--hb-gold); margin-bottom: 6px;
}
.hb-service h3 { margin: 0; font-size: 1.3rem; color: var(--hb-deep); }
.hb-service p { margin: 0; color: var(--hb-muted); }
.hb-service ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hb-service li { position: relative; padding-inline-start: 22px; font-size: .95rem; color: var(--hb-ink); }
.hb-service li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 12px; height: 2px; background: var(--hb-gold); }
.hb-services__cta { margin: 24px 0 0; }

/* Projects */
.hb-projects { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch; }
.hb-project { border-radius: var(--hb-radius); padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.hb-project h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.hb-project p { margin: 0; max-width: 56ch; }
.hb-project--marina {
	background:
		linear-gradient(rgba(var(--hb-deep-rgb), .5), rgba(var(--hb-deep-rgb), .5)),
		url("assets/chart-contours.svg") center / cover no-repeat,
		var(--hb-deep);
	color: var(--hb-on-deep-muted);
}
.hb-project--marina h3 { color: #fff; }
.hb-project__figure { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px !important; }
.hb-project__figure bdi { flex: none; white-space: nowrap; font-family: var(--hb-figures); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--hb-gold); }
.hb-project__figure span { color: var(--hb-on-deep-soft); font-weight: 500; max-width: 24ch; }
.hb-project__parts { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(var(--hb-tint-rgb), .18); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.hb-project__parts li { font-size: .92rem; line-height: 1.6; }
.hb-project__parts strong { display: block; color: #fff; font-family: var(--hb-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 2px; }
.hb-project--import { background: var(--hb-land); border: 1px solid var(--hb-land-line); color: var(--hb-ink-2); }
.hb-project--import h3 { color: var(--hb-deep); }
.hb-project--import .hb-btn { margin-top: auto; align-self: flex-start; }

/* Photography (AmberJack company material) */
/* Same photo framing in English and Arabic: one non-directional overlay and a fixed height
   (the headline wraps differently per language, which would otherwise rescale the photo). */
.hb-hero--photo {
	position: relative;
	display: flex; align-items: center;
	min-height: clamp(560px, 72vh, 620px); /* tall enough for the 3-line English headline, so both languages match */
	background:
		linear-gradient(180deg, rgba(var(--hb-deep-rgb), .62) 0%, rgba(var(--hb-deep-rgb), .5) 45%, rgba(var(--hb-deep-rgb), .82) 100%),
		url("assets/photos/marina-sunset.jpg") center 60% / cover no-repeat,
		var(--hb-deep);
	padding: 56px 0 84px;
}
.hb-hero--photo .hb-hero__inner { width: 100%; }
.hb-hero--photo h1, .hb-hero--photo .hb-hero__lead { text-shadow: 0 2px 18px rgba(var(--hb-deep-rgb), .55); }
.hb-hero__caption {
	position: absolute; inset-inline-end: 24px; bottom: 18px; margin: 0;
	display: inline-flex; align-items: center; gap: 6px;
	color: rgba(255, 255, 255, .86); font-size: .8rem; font-weight: 500;
	background: rgba(var(--hb-deep-rgb), .55); padding: 6px 12px; border-radius: 999px;
}
.hb-hero__caption svg { color: var(--hb-gold); }

.hb-service { padding-top: 0; }
.hb-service__photo { margin: 0 calc(-1 * clamp(22px, 3vw, 34px)) 4px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hb-shallow); }
.hb-service__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-service__icon { margin-top: -34px; position: relative; box-shadow: 0 0 0 5px var(--hb-surface); }

.hb-project--marina {
	background:
		linear-gradient(180deg, rgba(var(--hb-deep-rgb), .72), rgba(var(--hb-deep-rgb), .92) 55%),
		url("assets/photos/marina-aerial.jpg") center 30% / cover no-repeat,
		var(--hb-deep);
}
.hb-project--marina .hb-btn { align-self: flex-start; margin-top: 6px; }
.hb-project__photo { margin: calc(-1 * clamp(26px, 4vw, 48px)) calc(-1 * clamp(26px, 4vw, 48px)) 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--hb-radius) var(--hb-radius) 0 0; }
.hb-project__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================================
   Home page as editable blocks (inc/home-blocks.php): same look as the
   [hb_*] sections above. Photos are Cover / Image blocks from the Media Library.
   ========================================================================= */
/* Classic themes get an extra .wp-block-group__inner-container inside each Group block; let the
   cards, rows and grids lay out as if it were not there. */
.hb-services > .wp-block-group__inner-container, .hb-service > .wp-block-group__inner-container,
.hb-projects > .wp-block-group__inner-container, .hb-project > .wp-block-group__inner-container,
.hb-project__figure > .wp-block-group__inner-container, .hb-help > .wp-block-group__inner-container,
.hb-hero__inner > .wp-block-group__inner-container { display: contents; }
/* WordPress's own block spacing must not move grid cards and flex rows. */
.hb-services .hb-service, .hb-projects .hb-project, .hb-help .wp-block-group, .hb-help .hb-help__contacts, .hb-hero__inner .hb-hero__ctas { margin-block: 0; }
.wp-block-button.hb-btn--gold .wp-block-button__link { background: var(--hb-gold); color: var(--hb-deep); }
.wp-block-button.hb-btn--gold .wp-block-button__link:hover { background: var(--hb-gold-light); color: var(--hb-deep); }
.wp-block-button.hb-btn--outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--hb-tint-rgb), .6); }
.wp-block-button.hb-btn--outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
div.wp-block-button.hb-btn--gold, div.wp-block-button.hb-btn--gold:hover,
div.wp-block-button.hb-btn--outline-light, div.wp-block-button.hb-btn--outline-light:hover { background: none; padding: 0; box-shadow: none; }

/* Hero: Cover block (photo + overlay), copy in .hb-hero__inner */
.wp-block-cover.hb-hero--photo { padding: 0; min-height: clamp(560px, 72vh, 620px); background: var(--hb-deep); align-items: stretch; overflow: hidden; }
.wp-block-cover.hb-hero--photo > .wp-block-cover__inner-container { display: flex; align-items: center; width: 100%; max-width: none; padding: 56px 0 84px; color: #fff; }
.wp-block-cover.hb-hero--photo .hb-hero__inner { width: 100%; max-width: var(--hb-wrap); margin-inline: auto !important; }
.hb-hero--photo > .wp-block-cover__background,
.hb-project--marina > .wp-block-cover__background { opacity: 1 !important; }
.hb-hero--photo > .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(var(--hb-deep-rgb), .62) 0%, rgba(var(--hb-deep-rgb), .5) 45%, rgba(var(--hb-deep-rgb), .82) 100%) !important;
}
.wp-block-cover.is-light.hb-hero--photo > .wp-block-cover__inner-container { color: #fff; }

/* Services cards and projects */
.hb-services.wp-block-group { margin-bottom: 0; }
.wp-block-buttons.hb-services__cta { margin: 0; }
.wp-block-cover.hb-project--marina {
	display: block; min-height: 0; padding: clamp(26px, 4vw, 48px); overflow: hidden;
	background: var(--hb-deep); border-radius: var(--hb-radius); color: var(--hb-on-deep-muted);
}
.wp-block-cover.hb-project--marina > .wp-block-cover__inner-container,
.wp-block-cover.is-light.hb-project--marina > .wp-block-cover__inner-container {
	display: flex; flex-direction: column; gap: 14px; height: 100%; width: 100%; max-width: none; color: var(--hb-on-deep-muted);
}
.hb-project--marina > .wp-block-cover__background { background: linear-gradient(180deg, rgba(var(--hb-deep-rgb), .72), rgba(var(--hb-deep-rgb), .92) 55%) !important; }
.hb-project--marina .wp-block-buttons { margin: 6px 0 0; }
.hb-project--import .wp-block-buttons { margin: auto 0 0; }
.hb-project__figure .hb-project__num {
	flex: none; white-space: nowrap; font-family: var(--hb-figures); font-weight: 700;
	font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--hb-gold);
}
.hb-project__figure p:not(.hb-project__num) { color: var(--hb-on-deep-soft); font-weight: 500; max-width: 24ch; }

/* Help box */
.hb-help .wp-block-button.hb-btn--light .wp-block-button__link { background: var(--hb-deep); color: #fff; }
.hb-help .wp-block-button.hb-btn--light .wp-block-button__link:hover { background: var(--hb-teal-dark); color: #fff; }

@media (max-width: 860px) {
	.wp-block-cover.hb-hero--photo { min-height: 640px; }
	.wp-block-cover.hb-hero--photo > .wp-block-cover__inner-container { padding: 56px 0 104px; }
}

/* Category tiles: photos fill the circle */
.hb-cat img { object-fit: cover; padding: 0; border: 4px solid var(--hb-shallow); box-sizing: border-box; }

/* Inner pages: featured image behind the title */
.hb-has-banner .entry-hero-container-inner {
	background:
		linear-gradient(180deg, rgba(var(--hb-deep-rgb), .45) 0%, rgba(var(--hb-deep-rgb), .82) 100%),
		var(--hb-banner) center / cover no-repeat,
		var(--hb-deep);
}
.hb-has-banner .entry-hero .hero-container { min-height: clamp(200px, 28vw, 340px); display: flex; align-items: flex-end; padding-block: 40px; }
.hb-has-banner .entry-hero .entry-title, .hb-has-banner .entry-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; }
.hb-has-banner .entry-hero .kadence-breadcrumbs, .hb-has-banner .entry-hero .woocommerce-breadcrumb, .hb-has-banner .entry-hero a { color: rgba(255, 255, 255, .85); }
.hb-has-banner .entry-hero .hero-section-overlay { display: none; }

/* Marina 5 project page */
.hb-marina { display: grid; gap: 18px; }
.hb-marina h2 { margin: 28px 0 4px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.hb-marina__lead-photo { margin: 0; border-radius: var(--hb-radius); overflow: hidden; position: relative; }
.hb-marina__lead-photo img { width: 100%; height: auto; display: block; }
.hb-marina__lead-photo figcaption, .hb-marina__plan figcaption { font-size: .85rem; color: var(--hb-muted); padding: 10px 2px 0; }
.hb-marina__intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.hb-marina__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--hb-ink); margin: 0; }
.hb-marina__goals, .hb-marina__ops { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hb-marina__goals li, .hb-marina__ops li { position: relative; padding-inline-start: 24px; }
.hb-marina__goals li::before, .hb-marina__ops li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 12px; height: 2px; background: var(--hb-gold); }
.hb-marina__goals { background: var(--hb-shallow-2); border-radius: var(--hb-radius); padding: 22px 24px; }
.hb-marina__parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hb-marina__part img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--hb-radius); display: block; }
.hb-marina__part h3 { margin: 14px 0 4px; font-size: 1.2rem; }
.hb-marina__part p { margin: 0; color: var(--hb-muted); }
.hb-marina__plan { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.hb-marina__plan figure { margin: 0; }
.hb-marina__plan img { width: 100%; height: auto; border-radius: var(--hb-radius); display: block; }
.hb-marina__plan dl { margin: 0; display: grid; gap: 4px; }
.hb-marina__plan dt { font-family: var(--hb-display); font-weight: 600; color: var(--hb-deep); margin-top: 10px; }
.hb-marina__plan dd { margin: 0; color: var(--hb-muted); }
.hb-marina__cta {
	margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--hb-deep); color: var(--hb-on-deep-soft); border-radius: var(--hb-radius); padding: 24px 28px;
}
.hb-marina__cta p { margin: 0; font-size: 1.1rem; font-weight: 500; }
@media (max-width: 860px) {
	.hb-marina__intro, .hb-marina__plan, .hb-marina__parts { grid-template-columns: 1fr; }
	.hb-hero__caption { inset-inline-end: 16px; bottom: 14px; font-size: .74rem; }
	.hb-hero--photo { min-height: 640px; padding: 56px 0 104px; }
}

/* Policy pages (Terms, Shipping, Returns, Warranty) */
.hb-policy { max-width: 820px; margin-inline: auto; counter-reset: hb-sec; color: var(--hb-ink); }
.hb-policy p, .hb-policy li { line-height: 1.8; }
.hb-policy__updated { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px; background: var(--hb-shallow-2); color: var(--hb-muted); font-size: .82rem; font-weight: 500; }
.hb-policy__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--hb-deep); margin: 0 0 26px; }
.hb-policy__glance {
	background: var(--hb-deep); color: var(--hb-on-deep-soft); border-radius: var(--hb-radius); padding: 22px 26px; margin: 0 0 36px;
	border-inline-start: 5px solid var(--hb-gold);
}
.hb-policy__glance .hb-policy__glance-title { margin: 0 0 10px; color: var(--hb-gold); font-family: var(--hb-display); font-size: 1.1rem; }
.hb-policy .hb-policy__glance .wp-block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hb-policy .hb-policy__glance .wp-block-list > li { position: relative; padding-inline-start: 28px; }
.hb-policy .hb-policy__glance .wp-block-list > li::before {
	content: ""; position: absolute; inset-inline-start: 2px; top: .5em; width: 13px; height: 7px; border-radius: 0; background: none;
	border-left: 2px solid var(--hb-gold); border-bottom: 2px solid var(--hb-gold); transform: rotate(-45deg);
}
.hb-policy__glance strong { color: #fff; }
.hb-policy h2 {
	counter-increment: hb-sec; display: flex; align-items: center; gap: 12px;
	font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 34px 0 12px; padding-top: 22px; border-top: 1px solid var(--hb-line);
}
.hb-policy h2::before {
	content: counter(hb-sec); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--hb-shallow); color: var(--hb-deep); font-family: var(--hb-figures); font-size: 1rem; font-weight: 700;
}
.hb-policy ul.wp-block-list { padding-inline-start: 0; list-style: none; display: grid; gap: 8px; }
.hb-policy ul.wp-block-list > li { position: relative; padding-inline-start: 22px; }
.hb-policy ul.wp-block-list > li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-gold); }
.hb-policy ol.hb-policy__steps { list-style: none; counter-reset: hb-step; padding: 0; margin: 12px 0 18px; display: grid; gap: 12px; }
.hb-policy__steps > li { counter-increment: hb-step; position: relative; padding: 14px 18px; padding-inline-start: 62px; background: var(--hb-shallow-2); border-radius: var(--hb-radius); }
.hb-policy__steps > li::before {
	content: counter(hb-step); position: absolute; inset-inline-start: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center; background: var(--hb-gold); color: var(--hb-deep); font-family: var(--hb-figures); font-weight: 700;
}
.hb-policy__note { background: var(--hb-land); border: 1px solid var(--hb-land-line); border-radius: var(--hb-radius); padding: 12px 16px; font-size: .93rem; color: var(--hb-ink-2); }
.hb-policy__table { margin: 14px 0 18px; overflow-x: auto; }
.hb-policy__table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hb-policy__table th { background: var(--hb-deep); color: #fff; text-align: start; padding: 11px 14px; font-weight: 600; }
.hb-policy__table td { padding: 11px 14px; border-bottom: 1px solid var(--hb-line); vertical-align: top; }
.hb-policy__table tr:nth-child(even) td { background: var(--hb-shallow-2); }
.hb-policy__table td:nth-child(2) { font-weight: 600; color: var(--hb-deep); white-space: nowrap; }
.hb-policy__cta { margin-top: 40px; padding: 20px 24px; border-radius: var(--hb-radius); background: var(--hb-shallow-2); border: 1px solid var(--hb-line); font-weight: 500; }
.hb-policy a { color: var(--hb-teal-dark); font-weight: 600; }
@media (max-width: 600px) {
	.hb-policy__table td:nth-child(2) { white-space: normal; }
	.hb-policy__steps > li { padding-inline-start: 56px; }
}

/* Footer & drawer logos */
.hb-logo--footer img { height: 84px; }
.hb-footer__grid > div > .hb-logo--footer { padding: 0; }
.hb-drawer__head {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	background: var(--hb-deep); margin: -16px -18px 12px; padding: 10px 14px;
}
.hb-drawer__head .hb-logo img { height: 52px; }
.hb-drawer__head .hb-action { color: #fff; }
.hb-drawer__head .hb-action:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (max-width: 960px) {
	.hb-services { grid-template-columns: 1fr; }
	.hb-projects { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.hb-header__main { min-height: 64px; }
	.hb-header__main .hb-search { margin-bottom: 12px; }
	.hb-logo img { height: 46px; }
	.hb-header .hb-lang { padding: 7px 10px; margin-inline-end: 2px; }
	.hb-lang__name { display: none; }
	.hb-lang__code { display: inline; }
	.hb-menu-toggle { color: #fff; }
}
@media (max-width: 560px) {
	.hb-project__parts { grid-template-columns: 1fr; }
	.hb-hero--sc .hb-btn { flex: 1 1 100%; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	.hb-shop { grid-template-columns: 1fr; }
	.hb-filters { display: none; position: fixed; inset: 0; z-index: 2100; max-height: none; border-radius: 0; top: 0; border: 0; }
	.hb-filters.is-open { display: block; }
	.hb-filters-toggle { display: inline-flex; margin-bottom: 14px; }
	.hb-filters-close { display: inline-flex; }
	.hb-footer__grid { grid-template-columns: 1fr 1fr; }
	.hb-header__main { gap: 20px; }
}
@media (max-width: 860px) {
	.hb-nav { display: none; }
	.hb-menu-toggle { display: inline-flex; }
	.hb-header__main { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 60px; }
	.hb-header__main > * { min-width: 0; }
	.hb-header__main .hb-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; max-width: none; width: auto; justify-self: stretch; }
	.hb-search input[type="search"] { padding: 10px 14px; }
	.hb-search button { padding: 0 14px; }
	.hb-actions { gap: 0; }
	.hb-action { padding: 6px; }
	.hb-logo { font-size: 1.15rem; }
	.hb-logo svg { width: 34px; height: 34px; }
	.hb-action .hb-action__label { display: none; }
	.hb-topbar__contact span.hb-hide-sm { display: none; }
	.hb-help { grid-template-columns: 1fr; }
	.hb-form .hb-row { grid-template-columns: 1fr; }
	.hb-logo small { display: none; }
	.hb-cat { padding: 18px 16px; }
	.hb-cat img, .hb-cat > svg { width: 76px; height: 76px; }
	.hb-brands { gap: 4px 28px; }
}
@media (max-width: 560px) {
	.hb-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.hb-search button span { display: none; }
	.woocommerce ul.products[class*="columns-"] li.product { width: 48%; margin-inline-end: 4%; }
	.woocommerce ul.products[class*="columns-"] li.product:nth-child(2n) { margin-inline-end: 0; }
	.woocommerce ul.products li.product .product-details { padding: 12px; }
	.woocommerce ul.products li.product .price { font-size: 1.05rem; }
	.hb-hero .wp-block-button { flex: 1 1 100%; }
	.hb-hero .wp-block-button__link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Shop showcase (inc/shop-showcase.php) — department-store opening of /shop/
   ========================================================================= */
.hb-showcase { display: grid; gap: 20px; margin: 0 0 36px; }

/* My account: in Arabic the Login column comes first, on the right */
.rtl .woocommerce .col2-set .col-1, .rtl .woocommerce-page .col2-set .col-1 { float: right; }
.rtl .woocommerce .col2-set .col-2, .rtl .woocommerce-page .col2-set .col-2 { float: left; }

/* Social sign-in under the My account login / register forms (harbor-blue-core/includes/accounts.php) */
.hbc-social { margin-top: 18px; }
.hbc-social__or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--hb-muted); font-size: .85rem; }
.hbc-social__or::before, .hbc-social__or::after { content: ""; flex: 1; height: 1px; background: var(--hb-line); }
.hbc-social .nsl-container { margin: 0 !important; }
.hbc-social .nsl-container-buttons { display: grid !important; gap: 10px; padding: 0 !important; }
.hbc-social .nsl-container-buttons a { margin: 0 !important; text-decoration: none; }
.hbc-social .nsl-button {
	border-radius: var(--hb-btn-radius) !important; box-shadow: inset 0 0 0 1px var(--hb-line) !important;
	min-height: 46px; display: flex !important; align-items: center; transition: filter .15s;
}
.hbc-social .nsl-button:hover { filter: brightness(.96); }
.hbc-social .nsl-button-label-container { font-family: var(--hb-font) !important; font-weight: 600 !important; font-size: .95rem !important; text-transform: none; letter-spacing: 0; }
.rtl .hbc-social .nsl-button { flex-direction: row-reverse; }
.rtl .hbc-social .nsl-button-label-container { text-align: right; }

/* Secure payment strip (inc/payments.php). Marks sit on white chips so brand colours stay exact in every style. */
.hb-payband {
	background: var(--hb-shallow-2); border-top: 1px solid var(--hb-line);
	margin: 40px 0 -40px; padding: 20px 0;
}
.hb-paystrip { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.hb-paystrip__label { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--hb-deep); }
.hb-paystrip__label > .hb-ic {
	flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--hb-deep); color: var(--hb-gold);
}
.hb-paystrip__label span { display: grid; gap: 1px; }
.hb-paystrip__label strong { font-family: var(--hb-display); font-weight: var(--hb-heading-weight); font-size: 1.1rem; line-height: 1.2; text-transform: var(--hb-heading-case); letter-spacing: var(--hb-heading-tracking); }
.hb-paystrip__label small { color: var(--hb-muted); font-size: .85rem; }
.hb-paystrip__marks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hb-paymark {
	display: grid; place-items: center; width: 76px; height: 46px; margin: 0; padding: 0 8px;
	background: #fff; border: 1px solid var(--hb-line); border-radius: 6px; box-shadow: 0 1px 2px rgba(var(--hb-deep-rgb), .06);
}
.hb-paymark img { display: block; max-width: 100%; height: 22px; width: auto; }
.hb-paymark--visa img { height: 20px; }
.hb-paymark--mastercard img { height: 32px; }
.hb-paymark--applepay img { height: 30px; }
/* Checkout: compact, centred under the Place order button */
.hb-paystrip--checkout {
	flex-direction: column; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 14px; text-align: center;
	border: 1px dashed var(--hb-line); border-radius: var(--hb-radius); background: var(--hb-shallow-2);
}
.hb-paystrip--checkout > * { margin: 0 !important; }
.hb-paystrip--checkout .hb-paystrip__label > .hb-ic { width: 32px; height: 32px; padding: 6px; }
.hb-paystrip--checkout .hb-paystrip__label strong { font-size: .98rem; }
.hb-paystrip--checkout .hb-paystrip__label small { font-size: .78rem; }
.hb-paystrip--checkout .hb-paystrip__label span { text-align: start; }
.hb-paystrip--checkout .hb-paystrip__marks { justify-content: center; gap: 8px; }
.hb-paystrip--checkout .hb-paymark { width: 62px; height: 38px; padding: 0 6px; }
.hb-paystrip-slot { max-width: var(--hb-wrap); margin-inline: auto; }
@media (max-width: 720px) {
	.hb-paystrip { justify-content: center; text-align: center; }
	.hb-paystrip__marks { justify-content: center; }
	.hb-paymark { width: 66px; height: 42px; }
}

/* Side photos in the empty page margins of /shop/ (only where there is room for them) */
.hb-shopframe { position: relative; }
.hb-shopside { display: none; }
@media (min-width: 1600px) {
	.hb-shopside {
		display: block; position: absolute; top: 0; bottom: 0;
		width: min(280px, calc((100vw - 100%) / 2 - 64px));
	}
	.hb-shopside--start { inset-inline-end: calc(100% + 32px); }
	.hb-shopside--end { inset-inline-start: calc(100% + 32px); }
	.hb-shopside__card {
		position: sticky; top: 170px; display: block; height: min(calc(100vh - 200px), 760px);
		border-radius: var(--hb-radius); overflow: hidden; box-shadow: var(--hb-shadow); text-decoration: none;
	}
	.hb-shopside__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
	.hb-shopside__card:hover img { transform: scale(1.04); }
	.hb-shopside__cap {
		position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 6px; padding: 48px 18px 18px;
		background: linear-gradient(180deg, transparent, rgba(var(--hb-deep-rgb), .9));
		color: #fff;
	}
	.hb-shopside__cap strong {
		font-family: var(--hb-display); font-weight: var(--hb-heading-weight); font-size: 1.3rem; line-height: 1.15;
		text-transform: var(--hb-heading-case); letter-spacing: var(--hb-heading-tracking);
	}
	.hb-shopside__cap span {
		justify-self: start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
		padding: 6px 12px; border-radius: var(--hb-btn-radius); background: var(--hb-gold); color: var(--hb-deep);
	}
	.rtl .hb-shopside__cap span { text-transform: none; letter-spacing: 0; font-size: .85rem; }
}

/* 1. Wide offer banner */
.hb-sc-banner {
	position: relative; overflow: hidden; border-radius: var(--hb-radius); color: #fff;
	background:
		linear-gradient(90deg, rgba(var(--hb-deep-rgb), .9) 0%, rgba(var(--hb-deep-rgb), .55) 50%, rgba(var(--hb-deep-rgb), .9) 100%),
		url("assets/photos/accessories-display.jpg") center 55% / cover no-repeat,
		var(--hb-deep);
}
.hb-sc-banner__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 48px);
	padding: clamp(22px, 3vw, 34px) clamp(20px, 4vw, 48px); min-height: 170px;
}
.hb-sc-banner__lead {
	margin: 0; font-family: var(--hb-display); font-weight: var(--hb-heading-weight); text-transform: var(--hb-heading-case);
	font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: var(--hb-heading-tracking); color: #fff;
}
.hb-sc-banner__lead span { display: block; }
.hb-sc-banner__lead span + span { color: var(--hb-gold); }
.hb-sc-banner__ring {
	margin: 0; width: 124px; height: 124px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
	background: var(--hb-surface); color: var(--hb-deep); box-shadow: 0 0 0 6px rgba(var(--hb-tint-rgb), .35), 0 0 0 7px rgba(255, 255, 255, .6);
	outline: 2px dashed var(--hb-gold); outline-offset: -10px;
}
.hb-sc-banner__ring small { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--hb-muted); }
.hb-sc-banner__ring strong { font-family: var(--hb-figures); font-size: 2.6rem; font-weight: 700; margin: 2px 0; color: var(--hb-deep); }
.hb-sc-banner__side { justify-self: end; text-align: end; display: grid; gap: 12px; justify-items: end; }
.hb-sc-banner__side p { margin: 0; font-family: var(--hb-display); font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--hb-on-deep-soft); }
.hb-sc-banner__side em { font-style: normal; color: var(--hb-gold); display: block; }

/* 2. Category list | deal | promo cards */
.hb-sc-main {
	position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 16px;
	background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); padding: 16px;
}
.hb-sc-cats { position: static; }
.hb-sc-cats__title {
	display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 4px 4px 12px; border-bottom: 2px solid var(--hb-gold);
	font-family: var(--hb-display); font-weight: var(--hb-heading-weight); font-size: 1.15rem; color: var(--hb-deep);
	text-transform: var(--hb-heading-case); letter-spacing: var(--hb-heading-tracking);
}
.hb-sc-cats ul { list-style: none; margin: 0; padding: 0; }
.hb-sc-cats > ul > li > a {
	display: flex; align-items: center; gap: 8px; padding: 9px 6px; border-bottom: 1px dashed var(--hb-line);
	color: var(--hb-ink); text-decoration: none; font-size: .9rem; transition: background-color .15s, color .15s, padding .15s;
}
.hb-sc-cats > ul > li > a::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--hb-gold); }
.hb-sc-cats > ul > li > a span { flex: 1; min-width: 0; }
.hb-sc-cats > ul > li > a .hb-ic { flex: none; color: var(--hb-muted); }
.rtl .hb-sc-cats > ul > li > a .hb-ic { transform: scaleX(-1); }
.hb-sc-cats > ul > li:last-child > a { border-bottom: 0; }
.hb-sc-cats > ul > li:hover > a, .hb-sc-cats > ul > li:focus-within > a { background: var(--hb-shallow-2); color: var(--hb-deep); padding-inline-start: 10px; }
.hb-sc-badge {
	flex: none; font-style: normal; font-size: .64rem; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .04em;
	padding: 4px 6px; border-radius: var(--hb-radius-sm); color: #fff;
}
.hb-sc-badge--sale { background: var(--hb-magenta); }
.hb-sc-badge--new { background: var(--hb-teal-dark); }
/* Sub-category flyout covers the deal and cards area */
.hb-sc-cats__flyout {
	display: none; position: absolute; z-index: 5; top: 16px; bottom: 16px; inset-inline-start: calc(250px + 16px + 16px); inset-inline-end: 16px;
	background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow);
	padding: 24px 28px; grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: auto 1fr; gap: 6px 28px;
}
.hb-sc-cats li:hover > .hb-sc-cats__flyout, .hb-sc-cats li:focus-within > .hb-sc-cats__flyout { display: grid; }
.hb-sc-cats__flyout > p { margin: 0 0 6px; grid-column: 1; }
.hb-sc-cats__flyout > p a { font-family: var(--hb-display); font-weight: var(--hb-heading-weight); font-size: 1.3rem; color: var(--hb-deep); text-decoration: none; text-transform: var(--hb-heading-case); }
.hb-sc-cats__flyout ul { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; align-content: start; }
.hb-sc-cats__flyout ul a { display: block; padding: 7px 0; color: var(--hb-ink); text-decoration: none; border-bottom: 1px solid var(--hb-line); }
.hb-sc-cats__flyout ul a:hover { color: var(--hb-teal-dark); }
.hb-sc-cats__photo { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: var(--hb-radius); }

/* Deal of the season */
.hb-sc-deal {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 12px;
	border-radius: var(--hb-radius); padding: clamp(20px, 3vw, 36px);
	background: url("assets/chart-contours.svg") center / cover no-repeat, var(--hb-shallow-2);
	min-height: 360px;
}
.hb-sc-deal__eyebrow { margin: 0 0 6px; color: var(--hb-gold-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.hb-sc-deal__title {
	margin: 0; font-family: var(--hb-display); font-weight: var(--hb-heading-weight); text-transform: var(--hb-heading-case);
	font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; color: var(--hb-deep); letter-spacing: var(--hb-heading-tracking);
}
.hb-sc-deal__title bdi { color: var(--hb-magenta); }
.hb-sc-deal__name { margin: 14px 0 4px; font-weight: 600; font-size: 1.05rem; color: var(--hb-ink); }
.hb-sc-deal__price { margin: 0 0 18px; font-family: var(--hb-figures); font-size: 1.35rem; font-weight: 700; color: var(--hb-deep); }
.hb-sc-deal__price del { color: var(--hb-muted); font-weight: 500; font-size: .8em; }
.hb-sc-deal__price ins { text-decoration: none; color: var(--hb-magenta); }
.rtl .hb-sc-deal__price { direction: ltr; text-align: right; }
.hb-sc-deal__ctas { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.hb-sc-deal__more { color: var(--hb-teal-dark); font-weight: 600; font-size: .92rem; }
.hb-sc-deal__media { display: block; align-self: stretch; }
.hb-sc-deal__media img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; border-radius: var(--hb-radius); mix-blend-mode: multiply; transition: transform .3s; }
.hb-sc-deal:hover .hb-sc-deal__media img { transform: scale(1.03) rotate(-1deg); }
.hb-sc-deal--photo { background: linear-gradient(rgba(var(--hb-deep-rgb), .55), rgba(var(--hb-deep-rgb), .55)), url("assets/photos/accessories-collage.jpg") center / cover; }
.hb-sc-deal--photo .hb-sc-deal__title { color: #fff; }

/* Three category promo cards */
.hb-sc-cards { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.hb-sc-card {
	position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 14px 16px; border-radius: var(--hb-radius); color: #fff; text-decoration: none; min-height: 104px;
	background: var(--hb-deep);
}
.hb-sc-card--2 { background: var(--hb-gold-dark); }
.hb-sc-card--3 { background: var(--hb-deep-3); }
.hb-sc-card__text { display: grid; gap: 10px; justify-items: start; position: relative; z-index: 1; }
.hb-sc-card strong { font-family: var(--hb-display); font-weight: var(--hb-heading-weight); font-size: 1.1rem; line-height: 1.2; text-transform: var(--hb-heading-case); letter-spacing: var(--hb-heading-tracking); }
.hb-sc-card__btn {
	font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px;
	background: var(--hb-surface); color: var(--hb-deep); border-radius: var(--hb-btn-radius);
}
.hb-sc-card__img {
	flex: none; width: 84px; height: 84px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
	transition: transform .3s;
}
.hb-sc-card:hover { color: #fff; }
.hb-sc-card:hover .hb-sc-card__img { transform: scale(1.08); }
.hb-sc-card:hover .hb-sc-card__btn { background: var(--hb-gold); color: var(--hb-deep); }

/* 3. Category tiles */
.hb-sc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hb-sc-tile {
	display: grid; gap: 4px; align-content: start; background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
	padding: 12px 12px 16px; text-decoration: none; color: var(--hb-deep); transition: border-color .15s, transform .15s;
}
.hb-sc-tile__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--hb-radius-sm); background: var(--hb-shallow-2); margin-bottom: 10px; }
.hb-sc-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hb-sc-tile strong {
	font-family: var(--hb-display); font-weight: var(--hb-heading-weight); font-size: .98rem; line-height: 1.25;
	text-transform: uppercase; letter-spacing: .03em;
}
.rtl .hb-sc-tile strong { letter-spacing: 0; }
.hb-sc-tile small { color: var(--hb-gold-dark); font-size: .74rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; }
.rtl .hb-sc-tile small { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.hb-sc-tile:hover { border-color: var(--hb-deep-3); transform: translateY(-2px); color: var(--hb-deep); }
.hb-sc-tile:hover .hb-sc-tile__media img { transform: scale(1.06); }

@media (max-width: 1180px) {
	.hb-sc-main { grid-template-columns: 220px minmax(0, 1fr); }
	.hb-sc-cards { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hb-sc-cats__flyout { inset-inline-start: calc(220px + 32px); bottom: auto; min-height: 360px; }
}
@media (max-width: 1024px) {
	.hb-sc-main { grid-template-columns: minmax(0, 1fr); padding: 12px; }
	.hb-sc-cats { display: none; } /* the Filters panel lists every category on small screens */
	.hb-sc-tiles { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.hb-sc-tile { scroll-snap-align: start; }
}
@media (max-width: 720px) {
	.hb-showcase { gap: 14px; margin-bottom: 24px; }
	.hb-sc-banner__inner { grid-template-columns: 1fr auto; min-height: 0; padding: 18px; row-gap: 12px; }
	.hb-sc-banner__lead { font-size: 1.9rem; }
	.hb-sc-banner__side { grid-column: 1 / -1; justify-self: stretch; justify-items: start; text-align: start; }
	.hb-sc-banner__side p { display: none; }
	.hb-sc-banner__ring { width: 88px; height: 88px; outline-offset: -7px; }
	.hb-sc-banner__ring strong { font-size: 1.8rem; }
	.hb-sc-banner__ring small { font-size: .66rem; }
	.hb-sc-deal { grid-template-columns: minmax(0, 1fr) 110px; min-height: 0; padding: 16px; gap: 14px; }
	.hb-sc-deal__title { font-size: 2rem; }
	.hb-sc-deal__name { margin-top: 8px; font-size: .95rem; }
	.hb-sc-deal__price { font-size: 1.1rem; margin-bottom: 12px; }
	.hb-sc-deal__media img { max-height: 150px; }
	.hb-sc-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; }
	.hb-sc-card { scroll-snap-align: start; }
}
