/* Header controls and compact favorite overlays; approved card geometry stays intact. */
body>header.has-header-tools{gap:16px}
.header-tools{display:flex;align-items:center;gap:2px;flex-shrink:0;margin-left:auto}
.header-tool-button{position:relative;width:44px;height:44px;display:grid;place-items:center;padding:10px;border:0;background:transparent;color:var(--ink)}
.header-tool-button svg,.header-search-field svg,.header-favorite-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.header-tool-button::after,body>header.has-header-tools>.bag::after,.mobile-menu-toggle::after{content:"";position:absolute;bottom:2px;left:50%;width:22px;height:2px;background:var(--olive);transform:translateX(-50%);opacity:0;pointer-events:none}
body>header.has-header-tools>.bag,.mobile-menu-toggle{position:relative}
.header-tool-button[aria-expanded=true]::after,.header-tool-button:active::after,body>header.has-header-tools>.bag:active::after,.mobile-menu-toggle[aria-expanded=true]::after{opacity:1}
@media(hover:hover){.header-tool-button:hover::after,body>header.has-header-tools>.bag:hover::after,.mobile-menu-toggle:hover::after{opacity:1}}
.header-tool-button:hover,.header-tool-button[aria-expanded=true],body>header.has-header-tools>.bag:hover{background:transparent}
.header-favorites-count{position:absolute;right:1px;top:0;min-width:17px;height:17px;padding:0 3px;border-radius:50%;background:var(--olive);color:white;font-size:10px;line-height:17px;text-align:center}
body>header.has-header-tools>.bag{display:flex;align-items:center;gap:6px;white-space:nowrap;flex-shrink:0}
body>header.has-header-tools>.bag .mobile-bag-icon{display:block;width:22px;height:22px}
body>header.has-header-tools>.bag .icon-arrow-up-right{display:none}
body>header.has-header-tools>.bag>span:not(.mobile-bag-label){margin:0}
.header-tools-layer{position:fixed;inset:var(--header-tools-top,106px) 0 0;z-index:91}
.header-tools-outside{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(45,51,42,.18)}
.header-tools-panel{position:absolute;right:5%;top:0;width:500px;max-width:90vw;max-height:100%;overflow:auto;overscroll-behavior:contain;padding:24px;background:var(--paper);border:1px solid var(--line);box-shadow:0 8px 20px #2d332a12;outline:none}
.header-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.header-tools-heading h2{font-family:inherit;font-size:20px;letter-spacing:0;font-weight:500;margin:0}
.header-tools-close,.header-tools-browse{min-height:44px;background:transparent;border:0;border-bottom:1px solid var(--ink);padding:8px 0;font:inherit;font-size:13px}
.header-search-form label{font-size:12px;margin:0 0 7px}
.header-search-field{display:flex;align-items:stretch;border:1px solid var(--line);background:#fbfaf6}
.header-search-field input{min-width:0;width:100%;font:inherit;font-size:16px;padding:12px;border:0;background:transparent;border-radius:0;color:var(--ink)}
.header-search-field button{width:44px;flex-shrink:0;background:transparent;border:0;display:grid;place-items:center}
.header-search-field input:focus,.header-search-field input:focus-visible{outline:none;box-shadow:none}
.header-search-field:focus-within{border-color:var(--olive)}
.header-search-field button:focus-visible,.header-tool-button:focus-visible{outline:2px solid var(--olive);outline-offset:2px}
.header-tools-status,.header-tools-storage{font-size:12px;color:var(--muted);margin:14px 0}
.header-result{display:grid;grid-template-columns:64px minmax(0,1fr) 44px;align-items:center;gap:12px;border-top:1px solid var(--line);padding:14px 0}
.header-result-image{width:64px;height:64px;object-fit:contain;background:white}
.header-result>div{grid-column:2}.header-result>.header-favorite-toggle{grid-column:3}
.header-result-title{font-size:13px;font-weight:500;margin:0;line-height:1.5;overflow-wrap:anywhere}
.header-result-links{display:flex;flex-wrap:wrap;gap:16px}
.header-result-links a{display:inline-flex;align-items:center;min-height:36px;text-decoration:underline;text-underline-offset:4px;font-size:12px}
.header-category-result{padding:10px 0}
.header-category-result .header-result-links a{min-height:44px}
.header-result-kind{font-size:11px;color:var(--muted);margin:1px 0}
.header-favorite-toggle{width:44px;min-height:44px;padding:10px;display:grid;place-items:center;border:0;background:transparent;color:var(--olive)}
.header-favorite-toggle[aria-pressed=true] svg{fill:var(--olive)}
.header-tools-current:empty{display:none}
.header-tools-current>p{font-size:12px;margin:0;color:var(--muted)}
.header-tools-current{margin-bottom:16px}
body.header-tools-open{overflow:hidden}
@media(min-width:641px){body>header.has-header-tools>nav{flex:1;justify-content:center;min-width:0}body>header.has-header-tools>.header-tools{margin-left:0}}
@media(min-width:641px) and (max-width:1200px){body>header.has-header-tools{gap:10px}body>header.has-header-tools>.brand img{width:210px}body>header.has-header-tools>nav{gap:18px}body>header.has-header-tools>.bag{padding:10px}body>header.has-header-tools>.bag>.mobile-bag-label{display:none}}
@media(min-width:641px) and (max-width:820px){body>header.has-header-tools>.brand img{width:clamp(135px,calc(100vw - 506px),180px)}body>header.has-header-tools>nav{gap:10px;font-size:11px}}
@media(max-width:640px){body>header.has-mobile-menu.has-header-tools{grid-template-columns:44px minmax(0,1fr) 92px 44px;gap:4px}.header-tools{gap:4px;margin:0}body>header.has-mobile-menu.has-header-tools>.bag{position:relative;width:44px;padding:7px;gap:0}body>header.has-header-tools>.bag>span:not(.mobile-bag-label){position:absolute;right:-3px;top:-3px;width:18px;height:18px;font-size:10px}body>header.has-header-tools>.bag .mobile-bag-icon{width:22px;height:22px}.header-tools-panel{right:0;width:100%;max-width:100%;padding:18px 5%}.header-result{grid-template-columns:56px minmax(0,1fr) 44px;gap:8px}.header-result-image{width:56px;height:56px}body>header.has-header-tools:not(:has(>.bag)){grid-template-columns:44px minmax(0,1fr) 92px}}
/* The visible icon bottoms align with the menu's bottom stroke; tap targets stay 44 px. */
@media(max-width:640px){body>header.has-mobile-menu.has-header-tools>.bag{border:0;background:transparent}body>header.has-header-tools .header-tool-button>svg,body>header.has-header-tools>.bag>.mobile-bag-icon{transform:translateY(-3px)}}

.has-card-favorite{position:relative}
.has-card-favorite>.card-favorite-toggle{position:absolute;z-index:3;top:0;right:0;width:44px;height:44px;min-height:44px;padding:7px;align-items:start;justify-items:end;border:0;border-radius:0;background:transparent;color:#000;cursor:pointer}
.has-card-favorite>.card-favorite-toggle:hover{background:transparent}
.has-card-favorite>.card-favorite-toggle[aria-pressed=true] svg{fill:#000;stroke:#000}
.card-favorite-toggle:focus-visible{outline:2px solid var(--olive);outline-offset:0}
.has-card-favorite>.product-art>span:first-child:not(.illustration-badge),.has-card-favorite>.sale-photo>.sale-kind{max-width:calc(100% - 58px)}
/* Keep wrapped category labels aligned when initial buttons become product links. */
.has-card-favorite>.product-art>span:first-child:not(.illustration-badge){text-align:left}

/* Compact mobile icon spacing: keep basket and logo fixed, preserve 44px touch targets. */
@media(max-width:640px){body>header.has-header-tools>.header-tools{gap:0;transform:translateX(8px)}.header-tool-button{flex-shrink:0}}

/* Small corner hearts retain a generous invisible touch target. */
.has-card-favorite>.card-favorite-toggle svg{width:19px;height:19px}

/* Keep the basket marked throughout rental and purchase checkout. */
body[data-enquiry-page]>header.has-header-tools>.bag::after{opacity:1}

/* Sharing lives inside the existing favorites panel; the page and cards keep their layout. */
.header-favorite-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 20px;margin:0 0 16px}
.header-favorite-actions[hidden],.header-favorite-share[hidden]{display:none}
.header-favorite-actions button{font-size:13px;cursor:pointer;text-align:left}
.header-favorite-actions button:disabled{color:var(--muted);border-color:var(--line);cursor:default}
.header-favorite-actions button:focus-visible{outline:2px solid var(--olive);outline-offset:3px}
.header-favorite-share{margin-bottom:18px;min-width:0}
.header-favorite-share label{display:block;font-size:12px;margin-bottom:6px}
.header-favorite-share input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:0;background:white;color:var(--ink);font:inherit;font-size:13px}
.header-favorite-share input:focus-visible{outline:2px solid var(--olive);outline-offset:2px}
.header-favorite-share p{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}
@media(max-width:640px){.header-favorite-share input{font-size:16px}}
