/* =====================================================================
   Hachayal — Wave 3 "Mobbin" redesign layer (v0.19.x)
   Loaded AFTER app.css/woo.css only while option `hachayal_mobbin_redesign`
   is on. Kill-switch: wp option update hachayal_mobbin_redesign 0 + Varnish ban
   (also restores the classic 6-card hero markup).
   References (mobbin.com): bella bento hero, lululemon product tiles,
   Square value-prop row + category tiles, Shopify Supply / KÖPPEN product
   cards, beehiiv section headers.
   ===================================================================== */

:root{--hc-wide:1280px;--hc-r-xl:24px;--hc-r-lg:20px;--hc-gap-bento:12px}

/* ---------- A. Hero → light canvas + navy copy panel + product bento ---------- */
.hc-hero{background:var(--hc-mist);color:var(--hc-ink);padding-block:var(--hc-gap-bento)!important;padding-inline:var(--hc-gap-bento)}
.hc-hero::before{display:none}
.hc-hero__inner{max-width:var(--hc-wide)}
.hc-hero__grid{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:var(--hc-gap-bento);align-items:stretch}
.hc-hero__copy{
	position:relative;isolation:isolate;overflow:hidden;
	display:flex;flex-direction:column;justify-content:center;
	padding:clamp(1.6rem,.9rem + 3vw,3.25rem);border-radius:var(--hc-r-xl);color:#fff;
	background:
		radial-gradient(520px 260px at 0% 112%,rgba(224,123,26,.2),transparent 62%),
		linear-gradient(160deg,var(--hc-navy) 0%,var(--hc-navy-dark) 100%);
}
.hc-hero__copy::before{
	content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.05;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
	background-size:48px 48px;
}
.hc-hero__title{font-size:clamp(1.9rem,1.1rem + 2.6vw,3.1rem);line-height:1.1;letter-spacing:-.01em;margin-bottom:.85rem}
.hc-hero__sub{font-size:1.05rem}
/* .hc-btn on the block WRAPPER also matched the base button rule → a button inside a button (82px). Reset the wrapper; the link carries the style. */
.wp-block-button.hc-btn,.wp-block-button.hc-btn:hover{background:none;border:0;padding:0;border-radius:0;box-shadow:none;min-height:0}
.hc-hero__cta .wp-block-button__link{border-radius:999px;min-height:48px;padding-inline:1.5rem;display:inline-flex;align-items:center}

/* Bento: lead tile spans both rows; two compact tiles stack beside it */
.hc-hero__cards--bento{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:var(--hc-gap-bento);max-width:none;margin:0}
.hc-hero__cards--bento .hc-hero-card{
	position:relative;background:#fff;border:1px solid var(--hc-line);border-radius:var(--hc-r-xl);
	box-shadow:none;color:var(--hc-ink);text-align:start;transition:box-shadow .2s ease,border-color .2s ease
}
.hc-hero__cards--bento .hc-hero-card--lead{grid-row:span 2}
.hc-hero__cards--bento .hc-hero-card__imgwrap{
	flex:1 1 auto;aspect-ratio:auto;min-height:130px;margin:8px 8px 0;border-radius:calc(var(--hc-r-xl) - 6px);background:var(--hc-mist)
}
.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__imgwrap{min-height:260px}
.hc-hero__cards--bento .hc-hero-card__img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8%;box-sizing:border-box;mix-blend-mode:multiply}
.hc-hero-card__body{display:flex;flex-direction:column;gap:.15rem;padding:.7rem 1rem 1rem;text-align:start}
.hc-hero__cards--bento .hc-hero-card__title{margin:0;min-height:0;font-weight:600;font-size:.9rem;color:var(--hc-ink)}
.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__title{font-size:1.08rem;line-height:1.3}
.hc-hero__cards--bento .hc-hero-card__price{margin:0;color:var(--hc-navy);font-weight:800;font-size:.95rem}
.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__price{font-size:1.15rem}
.hc-hero-card__kicker{font-size:.75rem;font-weight:700;letter-spacing:.04em;color:var(--hc-cta-dark)}
.hc-hero-card__go{
	display:inline-flex;align-items:center;gap:.35rem;align-self:flex-start;margin-top:.6rem;
	min-height:40px;padding:0 1rem;border-radius:999px;background:var(--hc-navy);color:#fff;font-weight:600;font-size:.85rem;
	transition:background .15s ease
}
.hc-hero-card__go svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.2;flex:0 0 auto}
/* compact tiles: the "view" pill collapses into a corner arrow chip (Square ↗) */
.hc-hero__cards--bento .hc-hero-card:not(.hc-hero-card--lead) .hc-hero-card__go{
	position:absolute;inset-block-start:16px;inset-inline-end:16px;margin:0;width:34px;min-height:34px;height:34px;padding:0;
	justify-content:center;font-size:0;background:#fff;color:var(--hc-navy);border:1px solid var(--hc-line);z-index:1
}
.hc-hero__cards--bento .hc-hero-card:hover{transform:none;border-color:#cdd5de;box-shadow:0 18px 38px -22px rgba(16,36,56,.4)}
.hc-hero__cards--bento .hc-hero-card:hover .hc-hero-card__go{background:var(--hc-navy-dark);color:#fff}
.hc-hero__cards--bento .hc-hero-card:not(.hc-hero-card--lead):hover .hc-hero-card__go{background:var(--hc-navy);border-color:var(--hc-navy)}
@media (prefers-reduced-motion:no-preference){
	.hc-hero__cards--bento .hc-hero-card__img{transition:transform .35s ease}
	.hc-hero__cards--bento .hc-hero-card:hover .hc-hero-card__img{transform:scale(1.04)}
}

/* Category chips: white panel on the light canvas */
.hc-hero__pills{margin-top:var(--hc-gap-bento);padding:.85rem 1rem;border:1px solid var(--hc-line);border-radius:var(--hc-r-lg);background:#fff}
.hc-hero__pills-label{color:var(--hc-muted)}
.hc-hero__pill{background:var(--hc-mist);border-color:var(--hc-line);color:var(--hc-navy);min-height:40px}
.hc-hero__pill:hover{background:#fff;border-color:var(--hc-navy);color:var(--hc-navy)}
.hc-hero__pill--all{background:var(--hc-cta);border-color:var(--hc-cta);color:#fff}
.hc-hero__pill--all:hover{background:var(--hc-cta-dark);border-color:var(--hc-cta-dark);color:#fff}

@media (max-width:900px){
	.hc-hero__grid{grid-template-columns:1fr}
	.hc-hero__cards--bento{grid-template-columns:1.25fr 1fr;grid-template-rows:auto auto;max-width:640px;margin-inline:auto;width:100%}
	.hc-hero__cards--bento .hc-hero-card__imgwrap{min-height:110px}
	.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__imgwrap{min-height:200px}
}
@media (max-width:560px){
	.hc-hero__copy{padding:1.5rem 1.1rem 1.35rem}
	.hc-hero__title{font-size:1.75rem;line-height:1.12;margin-bottom:.6rem}
	.hc-hero__sub{font-size:.97rem;line-height:1.55}
	.hc-hero__cta{gap:.6rem}
	.hc-hero__assure{margin-top:1rem;gap:.35rem 1rem}
	.hc-hero__assure span{font-size:.84rem}
	/* three equal compact tiles — no horizontal scroller (RTL overflow leak) */
	.hc-hero__cards--bento{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:8px}
	.hc-hero__cards--bento .hc-hero-card--lead{grid-row:auto}
	.hc-hero__cards--bento .hc-hero-card{border-radius:var(--hc-r-lg)}
	.hc-hero__cards--bento .hc-hero-card__imgwrap,
	.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__imgwrap{flex:0 0 auto;min-height:0;aspect-ratio:1/1;margin:6px 6px 0;border-radius:14px}
	.hc-hero-card__body{padding:.45rem .55rem .65rem}
	.hc-hero__cards--bento .hc-hero-card__title,
	.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__title{font-size:.76rem;line-height:1.3}
	.hc-hero__cards--bento .hc-hero-card__price,
	.hc-hero__cards--bento .hc-hero-card--lead .hc-hero-card__price{font-size:.82rem}
	.hc-hero-card__kicker,.hc-hero__cards--bento .hc-hero-card__go{display:none}
	.hc-hero__pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:.75rem}
	.hc-hero__pills-label{grid-column:1 / -1}
	.hc-hero__pill{justify-content:center;text-align:center;min-height:44px;padding:.35rem .6rem;font-size:.84rem;line-height:1.25}
}

/* ---------- B. Value props → flat Square-style row with hairline dividers ---------- */
.hc-vprops{
	background:#fff;border-block:1px solid var(--hc-line);gap:0;padding-block:0;
	padding-inline:max(20px,calc((100% - var(--hc-wide)) / 2))
}
.hc-vprops__cell{
	display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.8rem;row-gap:.1rem;align-items:center;align-content:center;
	text-align:start;background:transparent;border:0;border-radius:0;box-shadow:none;padding:1.35rem 1.15rem;transform:none
}
.hc-vprops__cell + .hc-vprops__cell{border-inline-start:1px solid var(--hc-line)}
.hc-vprops__ico{grid-row:span 2;width:44px;height:44px;padding:11px;box-sizing:border-box;background:var(--hc-mist);border-radius:12px;stroke:var(--hc-navy)}
.hc-vprops__label{font-size:.92rem;line-height:1.25}
.hc-vprops__sub{font-size:.8rem}
.hc-vprops__cell--link:hover{transform:none;box-shadow:none;background:var(--hc-mist)}
.hc-vprops__cell--link:hover .hc-vprops__ico{background:#fff}
@media (max-width:900px){
	.hc-vprops{grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:0}
	.hc-vprops__cell{padding:.95rem 1rem;border-block-end:1px solid var(--hc-line)}
	.hc-vprops__cell + .hc-vprops__cell{border-inline-start:0}
	.hc-vprops__cell:nth-child(odd):not(:last-child){border-inline-end:1px solid var(--hc-line)}
	.hc-vprops__cell:last-child:nth-child(odd){grid-column:1 / -1;border-block-end:0}
	.hc-vprops__ico{width:38px;height:38px;padding:9px}
	.hc-vprops__label{font-size:.86rem}
	.hc-vprops__sub{font-size:.76rem}
}

/* constrained .hc-section groups had 0 side padding on phones (content touched the screen edge) */
.hc-main > .hc-section{padding-inline:clamp(16px,4vw,24px)}

/* ---------- C. Section headers → big title + outline pill link ---------- */
.hc-shead{align-items:flex-end;margin-bottom:1.75rem}
.hc-shead__kicker{text-transform:none;letter-spacing:.01em;font-size:.85rem;color:var(--hc-muted);margin-bottom:.2rem}
.hc-shead__title{font-size:clamp(1.55rem,1.15rem + 1.6vw,2.35rem);line-height:1.15;letter-spacing:-.01em}
.hc-shead__title::after{display:none}
.hc-shead__all{
	display:inline-flex;align-items:center;min-height:44px;padding:0 1.15rem;border:1.5px solid var(--hc-navy);border-radius:999px;
	color:var(--hc-navy);font-size:.88rem;transition:background .15s ease,color .15s ease
}
.hc-shead__all:hover{background:var(--hc-navy);color:#fff;text-decoration:none}
@media (max-width:600px){.hc-shead{flex-direction:row;align-items:flex-end;gap:.75rem 1rem;margin-bottom:1.25rem}}

/* ---------- D. Product cards → borderless, tinted image well (Shopify Supply / KÖPPEN) ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{gap:1.9rem 1.15rem}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{
	background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible;text-align:start
}
@media (hover:hover){.woocommerce ul.products li.product:hover{transform:none;box-shadow:none}}
/* core Woo hangs the badge at -.5em (was clipped by the old overflow:hidden) → pin it inside the well, RTL-safe */
.woocommerce ul.products li.product span.onsale{top:auto;left:auto;right:auto;inset-block-start:10px;inset-inline-start:10px;margin:0}
.woocommerce ul.products li.product .hc-loop-media{border-radius:16px;background:var(--hc-mist)}
/* the well owns the tint; images are transparent + multiply so white packshot backgrounds take it.
   Primary is an Imagify <picture> → pad the picture, not its inner <img> (else double padding / nested blend). */
.woocommerce ul.products li.product img{margin:0;border-radius:0;padding:0;background:transparent;object-fit:contain}
.woocommerce ul.products li.product .hc-loop-media__img{padding:7%;box-sizing:border-box;object-fit:contain;background:transparent;mix-blend-mode:multiply}
.woocommerce ul.products li.product picture.hc-loop-media__img img{width:100%;height:100%;aspect-ratio:auto}
/* home best-sellers: core/shortcode wpautop leaves <p>/<br> inside each card → flatten so price sits under the title */
.hc-featured ul.products li.product p{display:contents}
.hc-featured ul.products li.product br{display:none}
.hc-featured ul.products li.product > a.woocommerce-LoopProduct-link{flex:0 0 auto}
.hc-featured ul.products li.product > p > a.woocommerce-LoopProduct-link{flex:1 1 auto}
/* multiply would blend the hover-swap image INTO the primary → hide the primary while the swap shows */
@media (hover:hover){
	.woocommerce ul.products li.product:hover .hc-loop-media--has-swap:has(.is-loaded) .hc-loop-media__img:not(.hc-loop-media__img--secondary){opacity:0}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover){
	.woocommerce ul.products li.product .hc-loop-media__img{transition:transform .35s ease,opacity .4s ease}
	.woocommerce ul.products li.product:hover .hc-loop-media__img{transform:scale(1.04)}
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:.75rem .1rem 0;font-weight:600;font-size:.92rem;color:var(--hc-ink)}
.woocommerce ul.products li.product .price{display:block;margin:0;padding:.2rem .1rem 0;color:var(--hc-navy);font-weight:800;font-size:1.02rem}
.woocommerce ul.products li.product a.button,.woocommerce ul.products li.product .button{
	margin:.7rem 0 0;align-self:stretch;min-height:44px;border-radius:999px;
	background:transparent;color:var(--hc-navy);border:1.5px solid var(--hc-navy);font-weight:700;font-size:.875rem
}
@media (hover:hover){
	.woocommerce ul.products li.product:hover a.button,
	.woocommerce ul.products li.product a.button:hover,
	.woocommerce ul.products li.product .button:hover{background:var(--hc-navy);color:#fff;border-color:var(--hc-navy)}
}
.woocommerce ul.products li.product .added_to_cart{margin:.45rem 0 0;border-radius:999px}
/* PLP had 0 side padding on phones; borderless wells need a gutter */
@media (max-width:900px){.hc-plp-main{padding-inline:clamp(12px,3.5vw,20px)}}
@media (max-width:560px){
	.woocommerce ul.products,.woocommerce-page ul.products{gap:1.4rem .75rem}
	.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.85rem}
}

/* ---------- E. Shop-by-mission → equal portrait tiles + corner arrow chip (Square) ---------- */
.hc-mission-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--hc-gap-bento);margin-top:0}
.hc-mission-tile,.hc-mission-tile--wide{grid-column:auto}
.hc-mission-tile .hc-dept-card__banner,
.hc-mission-tile--wide .hc-dept-card__banner{aspect-ratio:3/4;border-radius:var(--hc-r-lg);box-shadow:none}
.hc-mission-tile .hc-dept-card__banner::after{
	content:"";position:absolute;z-index:2;inset-block-start:12px;inset-inline-end:12px;width:36px;height:36px;border-radius:50%;
	background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314324B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17 7 7M7 16V7h9'/%3E%3C/svg%3E") center/16px no-repeat;
	transition:transform .2s ease
}
.hc-mission-tile .hc-dept-card__banner:hover::after{transform:scale(1.08)}
/* white packshots: contain on a tinted well (no crop) + dark caption instead of a muddy scrim */
.hc-mission-tile .hc-dept-card__banner{background:var(--hc-mist);border:1px solid var(--hc-line)}
.hc-mission-tile .hc-dept-card__banner img{object-fit:contain;padding:14% 12% 34%;box-sizing:border-box;mix-blend-mode:multiply}
.hc-mission-tile .hc-scrim{display:none}
.hc-mission-tile .hc-dept-card__bannercap{padding:1rem 1.1rem 1.1rem}
.hc-mission-tile .hc-dept-card__bannername{font-size:1.15rem;color:var(--hc-ink)}
.hc-mission-tile .hc-dept-card__bannercount{color:var(--hc-muted)}
.hc-mission-tile .hc-dept-card__banner::after{border:1px solid var(--hc-line)}
@media (max-width:900px){
	.hc-mission-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}
	.hc-mission-tile{grid-column:span 2}
	.hc-mission-tile:nth-child(n+4){grid-column:span 3}
	.hc-mission-tile:nth-child(n+4) .hc-dept-card__banner{aspect-ratio:4/3}
}
@media (max-width:560px){
	.hc-mission-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
	.hc-mission-tile,.hc-mission-tile:nth-child(n+4){grid-column:span 1}
	.hc-mission-tile .hc-dept-card__banner,.hc-mission-tile:nth-child(n+4) .hc-dept-card__banner{aspect-ratio:4/5}
	.hc-mission-tile--wide{grid-column:1 / -1}
	.hc-mission-tile--wide .hc-dept-card__banner{aspect-ratio:16/10}
	/* % padding is width-based: leave room for a 2-line caption; the wide tile pads its sides instead */
	.hc-mission-tile .hc-dept-card__banner img{padding:10% 14% 50%}
	.hc-mission-tile--wide .hc-dept-card__banner img{padding:5% 30% 21%}
	.hc-mission-tile .hc-dept-card__bannercap{padding:.75rem .85rem .85rem}
	.hc-mission-tile .hc-dept-card__bannername{font-size:1rem}
	.hc-mission-tile .hc-dept-card__banner::after{width:32px;height:32px;background-size:14px}
}
@media (prefers-reduced-motion:reduce){.hc-mission-tile .hc-dept-card__banner::after{transition:none}}

/* ---------- F. Navy bands → inset rounded panels (bento consistency) ---------- */
.hc-recruit,.hc-finalcta{
	width:calc(100% - 2 * var(--hc-gap-bento));max-width:var(--hc-wide);margin:clamp(.5rem,.2rem + 1.5vw,1.5rem) auto;
	border-radius:var(--hc-r-xl);overflow:hidden;
	background:
		radial-gradient(560px 280px at 0% 115%,rgba(224,123,26,.16),transparent 62%),
		linear-gradient(160deg,var(--hc-navy) 0%,var(--hc-navy-dark) 100%)
}
.hc-recruit__inner,.hc-finalcta__inner{padding-inline:clamp(1.15rem,.5rem + 3vw,3rem)}
.hc-recruit__card{border-radius:var(--hc-r-lg)}
.hc-recruit__cta .hc-btn,.hc-finalcta__cta .hc-btn{border-radius:999px}
