/* ============================================================
   header-footer.css — global header + off-canvas + footer.
   ============================================================ */

/* ---------- Orange top bar ---------- */
.wbr-topbar {
	height: 8px;
	background: var(--color-accent);   /* brand orange-red */
	position: relative; z-index: 950;
}

/* ---------- Header ---------- */
.site-header {
	background: var(--color-white);
	border-bottom: 1px solid #eee;
	position: sticky; top: 0; z-index: 900;
}

/* On the home page the header is transparent and overlays the hero video
   (the orange top bar stays). */
.home .site-header {
	position: absolute; inset-inline: 0; top: 8px;   /* below the orange bar */
	background: transparent;
	border-bottom: none;
	z-index: 20;
}
.home .wbr-topbar { position: absolute; inset-inline: 0; top: 0; z-index: 30; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;   /* actions (right, RTL) — logo (left) */
	gap: 20px;
	min-height: 84px;
}
.site-header__brand { flex: 0 0 auto; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__burger img, .site-header__account img { display: block; width: 34px; height: auto; }

/* Inner-page header: container-fill widget (right) | logo (center) | menu (left) */
.site-header--inner .site-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
	padding-top: 20px;   /* clearance so the container's #badge + top edge clear the orange bar */
}
.site-header--inner .site-header__actions { justify-self: start; }               /* col 1 = right in RTL */
.site-header--inner .site-header__brand   { justify-self: center; }               /* col 2 = center */
.site-header--inner .site-header__widget  { justify-self: end; min-width: 0; }     /* col 3 = left in RTL */
.site-header__widget { max-width: 340px; }
.site-header__widget .wpc3-slider, .site-header__widget .wpc3-container { margin: 0 !important; }
.site-header__brand img,
.site-header .custom-logo { max-height: 60px; width: auto; }
.site-header__logo-text { font-weight: var(--fw-bold); font-size: 24px; color: var(--color-accent); }

/* Nav lives in the off-canvas panel (burger-driven) to match the minimal original header. */
.site-header__nav { display: none; }
.wbr-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	justify-content: flex-start;
}
.wbr-menu li { position: relative; }
.wbr-menu a {
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 18px;
	color: var(--color-primary);
	padding: 8px 0;
	display: inline-block;
}
.wbr-menu a:hover,
.wbr-menu .current-menu-item > a { color: var(--color-accent); }

.site-header__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.site-header__account, .site-header__cart { color: var(--color-primary); position: relative; display: inline-flex; }
.site-header__account:hover, .site-header__cart:hover { color: var(--color-accent); }
.site-header__cart-count {
	position: absolute; top: -8px; inset-inline-start: -8px;
	background: var(--color-accent); color: #fff;
	font-size: 11px; line-height: 1; min-width: 18px; height: 18px;
	border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

/* Burger (always visible — the site uses an off-canvas menu at all sizes).
   Reset aggressively so the global button styling can't turn it into a red box. */
.site-header__burger {
	display: flex;
	flex-direction: column; gap: 5px;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	padding: 8px !important; cursor: pointer; border-radius: 0 !important;
	width: auto !important; height: auto !important;
}
.site-header__burger span {
	display: block; width: 26px; height: 3px; border-radius: 3px;
	background: var(--color-accent); transition: transform .2s, opacity .2s;
}

/* ---------- Cart trigger ---------- */
.site-header__cart {
	position: relative; display: inline-flex; align-items: center;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	padding: 4px !important; cursor: pointer; color: var(--color-primary) !important;
	width: auto !important; height: auto !important; border-radius: 0 !important;
}
.site-header__cart:hover { color: var(--color-accent) !important; }

/* ---------- Cart drawer ---------- */
.wbr-cart { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.wbr-cart.is-open { visibility: visible; }
.wbr-cart__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.wbr-cart.is-open .wbr-cart__overlay { opacity: 1; }
.wbr-cart__panel {
	position: absolute; top: 0; left: 0; height: 100%;
	width: min(390px, 90vw); background: #fff; display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform .28s ease;   /* slides in from the left */
	box-shadow: 8px 0 30px rgba(0,0,0,.14);
}
.wbr-cart.is-open .wbr-cart__panel { transform: translateX(0); }
.wbr-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eee; }
.wbr-cart__head h3 { margin: 0; font-size: 20px; color: var(--color-primary); }
.wbr-cart__close {
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	font-size: 30px !important; line-height: 1; color: var(--color-primary) !important;
	cursor: pointer; padding: 0 !important; width: auto !important; height: auto !important; border-radius: 0 !important;
}
.wbr-cart__body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.wbr-cart .woocommerce-mini-cart { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.wbr-cart .woocommerce-mini-cart-item {
	display: flex; gap: 12px; align-items: center;
	padding: 16px 0 !important; margin: 0 !important; border-bottom: 1px solid #f0f0f0; position: relative;
}
.wbr-cart .wbr-cart__link { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; color: var(--color-primary); font-weight: 600; font-size: 14px; }
.wbr-cart .wbr-cart__link img { width: 60px; height: auto; border-radius: 8px; margin: 0 !important; flex: 0 0 auto; }
.wbr-cart .wbr-cart__controls { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.wbr-cart .woocommerce-mini-cart-item .remove {
	position: static !important; margin: 0 !important; padding: 0 !important;
	color: var(--color-accent) !important; font-size: 20px; align-self: center; flex: 0 0 auto;
}
/* In-drawer quantity stepper */
.wbr-qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-top: 6px; }
.wbr-qty__btn {
	width: 30px; height: 30px; background: #f5f5f5 !important; border: 0 !important; box-shadow: none !important;
	color: #333 !important; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 !important;
	border-radius: 0 !important; display: grid; place-items: center; width: 30px !important; height: 30px !important;
}
.wbr-qty__btn:hover { background: var(--color-accent) !important; color: #fff !important; }
.wbr-qty__val { width: 42px; height: 30px; text-align: center; border: 0; font-size: 14px; direction: ltr; background: #fff; padding: 0; }
.wbr-qty__val:focus { outline: none; }
.wbr-qty__price { display: inline-block; font-weight: 700; color: var(--color-blue); font-size: 14px; }
.wbr-cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid #eee; font-weight: 700; font-size: 16px; }
.wbr-cart .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.wbr-cart .woocommerce-mini-cart__buttons .button { width: 100%; text-align: center; margin: 0; }
.wbr-cart .woocommerce-mini-cart__empty-message { text-align: center; color: #777; padding: 30px 0; }

/* ---------- Off-canvas ---------- */
.wbr-offcanvas { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.wbr-offcanvas.is-open { visibility: visible; }
.wbr-offcanvas__overlay {
	position: absolute; inset: 0; background: rgba(0,0,0,.45);
	opacity: 0; transition: opacity .25s;
}
.wbr-offcanvas.is-open .wbr-offcanvas__overlay { opacity: 1; }
.wbr-offcanvas__panel {
	position: absolute; top: 0; right: 0; height: 100%;   /* anchored to the RIGHT */
	width: min(320px, 84vw); background: #fff; padding: 64px 24px 24px;
	transform: translateX(100%); transition: transform .25s ease;  /* slides in from the right (transforms ignore direction) */
	box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.wbr-offcanvas.is-open .wbr-offcanvas__panel { transform: translateX(0); }
.wbr-offcanvas__close {
	position: absolute; top: 14px; left: 18px;   /* top-left of the right-hand panel */
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	font-size: 34px !important; line-height: 1;
	color: var(--color-primary) !important; cursor: pointer; padding: 0 !important;
	width: auto !important; height: auto !important; border-radius: 0 !important;
}
.wbr-menu--vertical { flex-direction: column; align-items: stretch; gap: 4px; }
.wbr-menu--vertical a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; margin-top: 48px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent-2); }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
	gap: 32px;
	padding-block: 48px;
}
.site-footer__title { color: var(--color-accent-2); font-size: 16px; font-weight: var(--fw-bold); margin-bottom: 16px; }
/* Bulleted link lists */
.site-footer__col ul { padding-inline-start: 4px; }
.site-footer__col ul li {
	margin-bottom: 10px; font-weight: var(--fw-thin); font-size: 14px;
	position: relative; padding-inline-start: 16px;
}
.site-footer__col ul li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .6em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-2);
}
/* Colourful logo (no invert) */
.site-footer__brand .custom-logo, .site-footer__brand img { max-width: 140px; margin-bottom: 16px; }
/* Contact icons row under the logo */
.site-footer__social { display: flex; gap: 12px; }
.site-footer__icon {
	display: inline-grid; place-items: center; width: 38px; height: 38px;
	border-radius: 50%; background: rgba(255,255,255,.1); color: #fff;
	transition: background .15s, color .15s;
}
.site-footer__icon:hover { background: var(--color-accent-2); color: #3a1500; }
.site-footer__newsletter p { font-size: 14px; font-weight: var(--fw-thin); opacity: .9; margin-bottom: 14px; }
.site-footer__newsletter-row {
	display: flex; align-items: center; gap: 8px;
	background: #2b2b2b; border-radius: 14px; padding: 5px 6px;
	max-width: 320px;
}
.site-footer__newsletter-row input {
	flex: 1; min-width: 0; padding: 8px 14px; border: 0; background: transparent;
	font-family: var(--font-primary); font-size: 14px; color: #fff;
	direction: rtl; text-align: right;
}
.site-footer__newsletter-row input::placeholder { color: #aaa; }
.site-footer__newsletter-row input:focus { outline: none; }
.site-footer__nl-submit {
	flex: 0 0 auto; width: 44px; height: 38px; border-radius: 12px !important;  /* rounded rectangle */
	background: var(--color-accent) !important; color: #fff !important; border: 0 !important;
	display: grid; place-items: center; cursor: pointer; padding: 0 !important;
	transition: filter .15s;
}
.site-footer__nl-submit:hover { filter: brightness(.92); }
.site-footer__credit {
	border-top: 1px solid rgba(255,255,255,.12);
	font-size: 13px; padding-block: 16px; opacity: .8;
}
.site-footer__credit .wbr-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.site-header__nav { display: none; }        /* desktop nav hidden; use off-canvas */
	.site-header__burger { display: flex; }
	.site-header__inner { gap: 12px; }
	.site-header__brand { margin-inline-end: auto; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}
