/* Handmade Store Core — component styles. Colours come from the theme (theme.json presets). */
:root {
	--hs-ink: var(--wp--preset--color--contrast, #0F2340);
	--hs-paper: var(--wp--preset--color--base, #FFFFFF);
	--hs-accent: var(--wp--preset--color--accent-1, #2462D0);
	--hs-dark: var(--wp--preset--color--accent-2, #0F2340);
	--hs-muted: var(--wp--preset--color--accent-4, #4B5A70);
	--hs-line: var(--wp--preset--color--accent-5, #DCE3EE);
	--hs-sage: var(--wp--preset--color--accent-6, #8DB4F5);
	--hs-stone: var(--wp--preset--color--accent-7, #EEF3FA);
	--hs-radius: 0px;
	--hs-display: var(--wp--preset--font-family--heading, "Bricolage Grotesque", sans-serif);
}

/* Trust bar (only rendered when the facts are verified in the config) */
.hs-trust-bar { background: var(--hs-dark); color: #EEF3FA; font-size: .75rem; letter-spacing: .1em; }
.hs-trust-bar ul { list-style: none; margin: 0 auto; padding: .55rem 16px; max-width: 1240px; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 2.5rem; }
.hs-trust-bar li { display: inline-flex; align-items: center; gap: .5rem; }
.hs-trust-bar .hs-icon { color: var(--hs-sage); }

/* Header nav: menu icon opens a drawer panel on every screen size */
.hs-nav { position: static; }
.hs-nav__toggle > summary { cursor: pointer; list-style: none; min-width: 44px; height: 44px; display: inline-flex; align-items: center; gap: .4rem; margin-left: -6px; padding: 0 6px; color: var(--hs-ink); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.hs-nav__toggle > summary::-webkit-details-marker { display: none; }
.hs-nav__toggle[open] > summary svg path { d: path("M5 5L19 19M19 5L5 19"); }
.hs-nav__list, .hs-nav__list ul { list-style: none; margin: 0; padding: 0; }
.hs-nav__toggle[open] > .hs-nav__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border-top: 1px solid var(--hs-line); border-bottom: 1px solid var(--hs-line); box-shadow: 0 18px 30px -20px rgba(15, 35, 64, .3); padding: .75rem max(16px, calc((100vw - 1240px) / 2)) 1.25rem; display: flex; flex-direction: column; }
.hs-nav__list a, .hs-nav__cats summary { display: flex; align-items: center; min-height: 48px; padding: 0 .25rem; color: var(--hs-ink); text-decoration: none; font-family: var(--hs-display); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid var(--hs-line); cursor: pointer; list-style: none; }
.hs-nav__list a:hover, .hs-nav__list a:focus-visible, .hs-nav__cats summary:hover { color: var(--hs-accent); }
.hs-nav__cats summary::-webkit-details-marker { display: none; }
.hs-nav__cats summary::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.hs-nav__cats details[open] summary::after { transform: rotate(-135deg); }
.hs-nav__cats ul a { font-family: inherit; font-size: 1rem; padding-left: 1rem; }

/* Buttons: square, 48px tall. Sage with espresso text (readable), outline variant for add to cart */
.hs-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--hs-accent); color: #fff; padding: .9rem 2rem; border-radius: 0; text-decoration: none; font-weight: 500; letter-spacing: .08em; font-size: .9375rem; border: 0; cursor: pointer; transition: background-color .2s ease; }
.hs-button:hover, .hs-button:focus-visible { background: var(--hs-dark); color: #fff; }
.hs-button--outline { background: #fff; color: var(--hs-accent); box-shadow: inset 0 0 0 1.5px var(--hs-accent); width: 100%; }
.hs-button--outline:hover, .hs-button--outline:focus-visible { background: var(--hs-accent); color: #fff; }
.hs-center { text-align: center; margin-top: 2.5rem; }
.hs-eyebrow { font-size: .75rem; letter-spacing: 0; color: var(--hs-muted); margin: 0 0 .5rem; }
:focus-visible { outline: 3px solid var(--hs-accent); outline-offset: 2px; }

/* Home: full-width banner (Home page featured image) or stone band with text + product photo */
.hs-banner { position: relative; margin-top: 0 !important; min-height: clamp(22rem, 55vw, 36rem); display: flex; align-items: center; overflow: hidden; }
.hs-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-banner__box { position: relative; margin-left: max(16px, calc((100vw - 1240px) / 2)); max-width: 34rem; background: rgba(255, 255, 255, .92); padding: clamp(1.5rem, 4vw, 3rem); }
.hs-hero { background: var(--hs-stone); color: var(--hs-ink); margin-top: 0 !important; padding: clamp(2.5rem, 6vw, 5rem) clamp(16px, 4vw, 48px); }
.hs-hero__inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 782px) { .hs-hero--media .hs-hero__inner { grid-template-columns: 1.1fr 1fr; } }
.hs-hero__title { margin: 0 0 1rem; font-family: var(--hs-display); font-weight: 800; font-size: clamp(2.75rem, 1.6rem + 5vw, 5.75rem); line-height: .95; letter-spacing: -0.035em; color: var(--hs-ink); max-width: 13ch; }
.hs-hero__tagline { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--hs-muted); max-width: 32rem; margin: 0 0 2rem; }
.hs-hero__media { display: block; position: relative; text-decoration: none; }
.hs-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.hs-hero__caption { position: absolute; left: 0; bottom: 0; background: var(--hs-dark); color: #EEF3FA; font-size: .8125rem; letter-spacing: 0; padding: .5rem .85rem; }

/* Featured product: photo left, details right */
.hs-feature { display: grid; gap: 2rem; padding: clamp(3rem, 6vw, 5rem) 0 0; align-items: start; }
@media (min-width: 782px) { .hs-feature { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.hs-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #F3F3F3; }
.hs-feature__title { font-family: var(--hs-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem) !important; line-height: 1.1; margin: 0 0 1rem !important; }
.hs-feature__title a { color: inherit; text-decoration: none; }
.hs-feature__price { font-size: 1.15rem; letter-spacing: .08em; margin: 0 0 1.25rem; }
.hs-feature__desc { color: var(--hs-muted); }
.hs-feature__cart { display: grid; gap: .5rem; margin: 1.5rem 0 1rem; max-width: 26rem; }
.hs-feature__cart label { font-size: .875rem; color: var(--hs-muted); }
.hs-feature__cart input { width: 8rem; min-height: 48px; border: 1px solid var(--hs-ink); padding: 0 .75rem; font: inherit; text-align: center; margin-bottom: .75rem; }
.hs-feature__more { display: inline-flex; min-height: 44px; align-items: center; color: var(--hs-accent); text-decoration: none; letter-spacing: .04em; }
.hs-feature__more:hover { text-decoration: underline; }

/* Computer screens: menu links shown inline in the header */
@media (min-width: 1000px) {
	.hs-nav--wide .hs-nav__toggle > summary { display: none; }
	.hs-nav--wide .hs-nav__toggle > .hs-nav__list { position: static; display: flex; flex-direction: row; align-items: center; gap: .25rem 1.75rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
	.hs-nav--wide .hs-nav__list > li > a, .hs-nav--wide .hs-nav__cats summary { font-family: inherit; font-size: .875rem; font-weight: 600; letter-spacing: 0; border: 0; min-height: 44px; padding: 0; }
	.hs-nav--wide .hs-nav__list > li > a { box-shadow: inset 0 -2px 0 transparent; }
	.hs-nav--wide .hs-nav__list > li > a:hover, .hs-nav--wide .hs-nav__list > li > a:focus-visible { box-shadow: inset 0 -2px 0 var(--hs-accent); color: var(--hs-ink); }
	.hs-nav--wide .hs-nav__cats summary::after { margin-left: .5rem; }
	.hs-nav--wide .hs-nav__cats { position: relative; }
	.hs-nav--wide .hs-nav__cats ul { position: absolute; top: 100%; left: -1rem; min-width: 14rem; background: #fff; border: 1px solid var(--hs-line); box-shadow: 0 18px 30px -20px rgba(15, 35, 64, .3); padding: .5rem 1rem; z-index: 60; }
	.hs-nav--wide .hs-nav__cats ul a { font-size: .95rem; padding: 0; border-bottom: 1px solid var(--hs-line); }
	.hs-nav--wide .hs-nav__cats ul li:last-child a { border-bottom: 0; }
}

/* Dark service band: 4 columns with circled icons */
.hs-services { background: var(--hs-dark); color: #EEF3FA; margin-top: clamp(3rem, 6vw, 5rem) !important; }
.hs-services ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.hs-services li { text-align: center; padding: 2.5rem 1.25rem; border-right: 1px solid rgba(238, 243, 250, .14); font-size: .9rem; line-height: 1.6; }
.hs-services li:last-child { border-right: 0; }
.hs-services__icon { width: 3.25rem; height: 3.25rem; border: 1.5px solid var(--hs-sage); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--hs-sage); margin-bottom: 1rem; }
.hs-services h3 { color: #fff; font-family: var(--hs-display); font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; text-transform: none; }
.hs-services p { margin: 0 0 .5rem; color: #D6E2F5; }
.hs-services a { color: var(--hs-sage); }

/* Home FAQ preview: centred heading with eyebrow */
.hs-home-faq { text-align: center; }
.hs-home-faq .hs-faq { text-align: left; margin: 0 auto; }

.hs-section { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.hs-section > h2, .wp-block-post-content .hs-section > h2 { font-family: var(--hs-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin: 0 0 1.75rem; }

/* Categories: square tiles with a dark label strip */
.hs-cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 782px) { .hs-cat-tiles { grid-template-columns: repeat(4, 1fr); } }
.hs-cat-tiles li { position: relative; overflow: hidden; background: var(--hs-stone); min-height: 10rem; }
.hs-cat-tiles a { display: block; height: 100%; color: #fff; text-decoration: none; }
.hs-cat-tiles img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.hs-cat-tiles a:hover img, .hs-cat-tiles a:focus-visible img { transform: scale(1.04); }
.hs-cat-tiles__name { position: absolute; left: 0; bottom: 0; padding: .55rem .9rem; background: var(--hs-dark); color: #EEF3FA; font-family: var(--hs-display); font-weight: 500; font-size: 1.1rem; letter-spacing: .04em; }
.hs-cat-tiles li:not(:has(img)) .hs-cat-tiles__name { position: static; display: flex; align-items: flex-end; height: 100%; }

/* About teaser */
.hs-about-teaser { border-top: 1px solid var(--hs-line); margin-top: clamp(2.5rem, 5vw, 4rem); }

@media (prefers-reduced-motion: reduce) { .hs-cat-tiles img, .hs-button { transition: none; } .hs-cat-tiles a:hover img { transform: none; } }

/* Readable heading sizes inside policy pages (the parent theme's are poster-sized). */
.entry-content h2, .wp-block-post-content h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); margin-top: 2rem; }

/* Policy links */
.hs-policy-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hs-policy-links--checkout { font-size: .9rem; margin: 1rem 0; }

/* Footer */
.hs-footer { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 782px) { .hs-footer { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.hs-footer__name { font-family: var(--hs-display); font-size: 1.6rem; letter-spacing: 0; margin: 0 0 .75rem; color: #fff; }
.hs-footer__trust { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.hs-footer__trust li { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: .9rem; }
.hs-footer__trust-icon { flex: none; width: 2.25rem; height: 2.25rem; background: rgba(141, 180, 245, .15); display: inline-flex; align-items: center; justify-content: center; color: var(--hs-sage); }
.hs-footer__heading { margin: 0 0 .75rem; }
.hs-footer__links { list-style: none; padding: 0; margin: 0; }
.hs-footer__links li { margin: 0; border-bottom: 1px solid rgba(238, 243, 250, .12); }
.hs-footer__links a { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.hs-footer__links a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--hs-sage); }
.hs-footer__info { font-style: normal; line-height: 1.9; }
.hs-footer a { color: inherit; }
.hs-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(238, 243, 250, .14); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.hs-footer__legal p { margin: 0; }

/* Tables */
.hs-table-wrap { overflow-x: auto; }
.hs-table { width: 100%; border-collapse: collapse; }
.hs-table th, .hs-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--hs-line); vertical-align: top; }

/* Contact */
.hs-contact dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; }
.hs-contact dt { font-weight: 600; }
.hs-contact dd { margin: 0; }
.hs-contact address { font-style: normal; }
.hs-form { max-width: 36rem; }
.hs-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.hs-form input[type=text], .hs-form input[type=email], .hs-form textarea { width: 100%; box-sizing: border-box; padding: .7rem; border: 1px solid var(--hs-muted); border-radius: var(--hs-radius); font: inherit; background: #fff; color: #1d1a17; }
.hs-form [aria-invalid=true] { border-color: #b32d2e; border-width: 2px; }
.hs-field-error { color: #b32d2e; margin: .25rem 0 0; font-size: .9rem; }
.hs-form__note { font-size: .9rem; color: var(--hs-muted); }
.hs-notice { padding: .75rem 1rem; border-radius: var(--hs-radius); }
.hs-notice--success { background: #e7f4ea; color: #14532d; }
.hs-notice--error { background: #fbeaea; color: #7f1d1d; }
.hs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.hs-faq { max-width: 52rem; }
.hs-faq__item { border-top: 1px solid var(--hs-line); }
.hs-faq__item:last-of-type { border-bottom: 1px solid var(--hs-line); }
.hs-faq__item summary { cursor: pointer; padding: 1rem 0; list-style: none; display: flex; align-items: center; gap: .85rem; }
.hs-faq__item summary::-webkit-details-marker { display: none; }
.hs-faq__item summary::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--hs-accent); background: no-repeat center / 70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%232462D0' stroke-width='2'/%3E%3C/svg%3E"); }
.hs-faq__item summary::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.hs-faq__item[open] summary::after { transform: rotate(-135deg); }
.hs-faq__q { display: inline; font-family: var(--hs-display); font-weight: 600; font-size: 1.2rem !important; margin: 0 !important; letter-spacing: .01em; }
.hs-faq__a { padding: 0 0 1.25rem 1.95rem; color: var(--hs-muted); }
.hs-faq__a { padding: 0 0 1rem; }

/* Product page */
.hs-badges { margin: .5rem 0; }
.hs-badge { display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .1em; background: var(--hs-stone); color: var(--hs-accent); padding: .3rem .65rem; border-radius: 0; }
.hs-lead-time, .hs-product-policies { font-size: .95rem; color: var(--hs-muted); }

/* Admin-only notices on the front end */
.hs-admin-missing { border: 2px dashed #b32d2e; background: #fff6f6; color: #5c1414; padding: 1rem 1.25rem; margin: 1rem 0; border-radius: var(--hs-radius); font-size: .95rem; }
.hs-admin-missing ul { margin: .5rem 0 0 1.25rem; }

/* Footer contact list: icon + link, clear hover */
.hs-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hs-footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: .75rem; align-items: start; line-height: 1.55; }
.hs-footer__contact .hs-icon { color: var(--hs-sage); margin-top: .15rem; }
.hs-footer__contact address { font-style: normal; }
.hs-footer__contact a { text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; overflow-wrap: anywhere; }
.hs-footer__contact a:hover, .hs-footer__contact a:focus-visible { color: var(--hs-sage); border-bottom-color: currentColor; }
.hs-footer__links a { transition: color .2s ease, padding-left .2s ease; }
.hs-footer__links a:hover, .hs-footer__links a:focus-visible { padding-left: .25rem; }
@media (prefers-reduced-motion: reduce) { .hs-footer__contact a, .hs-footer__links a { transition: none; } .hs-footer__links a:hover { padding-left: 0; } }

/* FAQ categories */
.hs-faq__cat { margin: 2.5rem 0 .75rem !important; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem) !important; }
.hs-faq__cat:first-child { margin-top: 0 !important; }
.hs-faq__a ul { margin: .25rem 0 .5rem 1.1rem; }

/* Preview products (illustration until real photos arrive) */
.woocommerce ul.products li.product > a { position: relative; display: block; }
.hs-preview-badge { position: absolute; left: .5rem; top: .5rem; z-index: 2; background: var(--hs-dark); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .55rem; line-height: 1.3; max-width: calc(100% - 1rem); }
.hs-hero__media .hs-preview-badge { top: .75rem; left: .75rem; }
.hs-coming-soon { margin: .35rem 0 0; font-size: .85rem; font-weight: 600; color: var(--hs-accent); }
.hs-preview-notice { margin: 1rem 0; padding: .85rem 1rem; background: var(--hs-stone); border-left: 4px solid var(--hs-accent); font-size: .95rem; line-height: 1.5; }

/* Product page policy links: two separate links, spaced, no separator glyph */
.hs-product-policies { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* Contact details: stack label above value on phones, let long emails wrap */
.hs-contact dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .hs-contact dl { grid-template-columns: 1fr; gap: .15rem 0; } .hs-contact dd { margin-bottom: .75rem; } }
