/* Design tokens come from theme.json (--wp--preset--*). Mobile first. */
:root { --gap: clamp(1rem, 3vw, 2rem); --line: 1px solid var(--wp--preset--color--line); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999rem; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .75rem 1rem; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

.button, button[type="submit"], input[type="submit"], .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.4rem;
	border: 0; border-radius: 2px; background: var(--wp--preset--color--ink); color: #fff;
	font: 600 .95rem/1.2 var(--wp--preset--font-family--body); text-decoration: none; cursor: pointer;
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--wp--preset--color--accent); color: #fff; }
input, select, textarea { font: inherit; min-height: 44px; padding: .5rem .75rem; border: 1px solid #bbb5ad; border-radius: 2px; background: #fff; color: inherit; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { min-height: 0; }

/* Header */
.banners--announcement { background: var(--wp--preset--color--wash); text-align: center; font-size: .875rem; }
.banners--announcement .banner { margin: 0; padding: .5rem 1rem; }
.site-header { border-bottom: var(--line); position: relative; z-index: 10; background: #fff; }
.site-header__bar { display: grid; grid-template-columns: 48px 1fr auto; column-gap: .25rem; align-items: center; min-height: 68px; }
.site-header__tools { display: flex; justify-content: flex-end; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; color: inherit; cursor: pointer; }
.icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-link__count { position: absolute; top: 4px; right: 2px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: var(--wp--preset--color--accent); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }
.brand { justify-self: center; display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand__logo { width: 40px; height: 40px; }
.brand__name { font-family: var(--wp--preset--font-family--script); font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.site-header--landing { display: flex; justify-content: center; padding: 1rem; }

.js .site-nav:not(.is-open) { display: none; }
.site-nav { border-top: var(--line); }
.site-search { display: flex; padding-block: .75rem; }
.site-search input[type="search"] { flex: 1; min-width: 0; border-right: 0; padding-left: 1.25rem; border-radius: 999px 0 0 999px; }
.site-search button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; min-height: 44px; padding: 0; border: 1px solid #bbb5ad; border-radius: 0 999px 999px 0; background: #fff; color: var(--wp--preset--color--muted); cursor: pointer; }
.site-search button:hover { background: var(--wp--preset--color--wash); color: var(--wp--preset--color--accent); }
.site-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.site-search--bar { display: none; }
.site-nav .menu, .site-nav .menu ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: .75rem 0; color: inherit; text-decoration: none; }
.site-nav .menu > li { border-top: var(--line); }
.site-nav .menu > li > a { font-weight: 600; }
.site-nav .menu .sub-menu { padding: 0 0 .5rem 1rem; }
.site-nav .menu .sub-menu a { padding-block: .55rem; color: var(--wp--preset--color--muted); }
.site-nav .menu .current-menu-item > a { color: var(--wp--preset--color--accent); }

@media (min-width: 600px) {
	.site-header__bar { grid-template-columns: 1fr auto 1fr; }
	.brand__logo { width: 48px; height: 48px; }
	.brand__name { font-size: 1.6rem; }
}

@media (min-width: 960px) {
	/* Logo left, search in the middle, leaving the whole menu row for links. */
	.nav-toggle, .site-search--menu { display: none; }
	.site-header__bar { grid-template-columns: 1fr minmax(0, 28rem) 1fr; column-gap: 1rem; }
	.brand { justify-self: start; }
	.site-search--bar { display: flex; }
	.js .site-nav:not(.is-open), .site-nav { display: block; }
	.site-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.6rem; }
	.site-nav .menu > li { border: 0; position: relative; }
	.site-nav .menu > li > a { font-size: .92rem; }
	.site-nav .menu .sub-menu { position: absolute; top: 100%; left: -1rem; min-width: 15rem; padding: .5rem 1rem; background: #fff; border: var(--line); box-shadow: 0 8px 24px rgb(0 0 0 / .08); opacity: 0; visibility: hidden; }
	.site-nav .menu li:hover > .sub-menu, .site-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
}

/* Language drop-down. */
.languages { font-size: .8rem; font-weight: 600; }
.languages details { position: relative; }
.languages summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding-inline: .6rem; list-style: none; cursor: pointer; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ""; width: .4em; height: .4em; margin-top: -.2em; border: solid currentcolor; border-width: 0 2px 2px 0; rotate: 45deg; }
.languages details[open] summary::after { margin-top: .2em; rotate: 225deg; }
.languages ul { position: absolute; top: 100%; right: 0; z-index: 20; min-width: 9rem; margin: 0; padding: .25rem 0; list-style: none; background: #fff; border: var(--line); box-shadow: 0 8px 24px rgb(0 0 0 / .08); }
.languages a { display: flex; align-items: center; min-height: 44px; padding-inline: 1rem; color: var(--wp--preset--color--muted); text-decoration: none; }
.languages a:hover { background: var(--wp--preset--color--wash); color: inherit; }
.languages a[aria-current] { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.site-header__tools { align-items: center; }
.site-header__tools .languages { margin-right: .25rem; }
.site-header--landing .languages { position: absolute; right: 1rem; top: .75rem; }
/* Phones: a slim strip above the header. Wider screens: beside the icons. */
.languages--top { display: flex; justify-content: flex-end; padding-inline: .5rem; border-bottom: var(--line); }
.languages--top summary { min-height: 36px; }
@media (min-width: 600px) {
	.languages--top { display: none; }
}
@media (max-width: 599px) {
	.languages--bar { display: none; }
	.site-header--landing { flex-direction: column; align-items: center; }
	.site-header--landing .languages { position: static; margin: .25rem 0 -.5rem; }
}

/* Content */
.content { padding-block: var(--gap) calc(var(--gap) * 2); }
.content--home { padding-top: 0; }
.page-title { text-align: center; padding-inline: 1rem; }
.content .entry-content > * { margin-inline: auto; }
.content .entry-content > :not(.alignfull):not(.alignwide) { max-width: min(var(--wp--style--global--content-size), 100% - 2rem); }
.content .entry-content > .alignwide { max-width: min(var(--wp--style--global--wide-size), 100% - 2rem); }
.content .entry-content > .alignfull { max-width: none; }
h1, h2 { text-wrap: balance; }

/* Banners */
.banners--hero { width: 100%; }
.banners--hero .banner { text-align: center; }
.banner__media img { display: block; width: 100%; }
.content .entry-content > .banners.banners--hero { max-width: none; }
.banners--hero .banner__body { padding: var(--gap) 1rem 0; }
.banner__title { margin: 0 0 .5rem; }
.banners--hero .banner__title { font-size: clamp(1.7rem, 5vw, 2.75rem); }
.banners--promo, .banners--tiles { display: grid; gap: var(--gap); }
@media (min-width: 700px) {
	.banners--promo { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
	.banners--tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.banners--promo .banner, .banners--tiles .banner, .banners--category .banner { display: flex; flex-direction: column; background: var(--wp--preset--color--wash); text-align: center; }
.banners--promo .banner__media img { aspect-ratio: 4 / 3; object-fit: contain; }
/* Hero cards: the picture fills a square frame, trimmed evenly if it is not square. */
.banners--tiles .banner__media img { height: auto; aspect-ratio: 1; object-fit: cover; }
.banners--promo .banner__body, .banners--tiles .banner__body, .banners--category .banner__body { padding: 1.25rem; }
.content .entry-content > .banners.banners--tiles { max-width: min(var(--wp--style--global--wide-size), 100% - 2rem); }
.banners--tiles .banner__title { font-size: 1.5rem; }
.banners--category { margin-bottom: var(--gap); }

/* Featured categories: one large square with two stacked beside it. On phones the two sit below. */
.featured-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 100%; max-width: 66rem; margin: 0 auto; padding: 0; list-style: none; }
.featured-categories li { position: relative; aspect-ratio: 1; }
.featured-categories li:first-child { grid-column: 1 / -1; }
.featured-categories a { position: absolute; inset: 0; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(135deg, #8a2d63, #1d5c77); color: #fff; text-decoration: none; }
.featured-categories img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-categories__label { position: relative; width: 100%; padding: 3.5rem 1rem 1rem; background: linear-gradient(transparent, rgb(0 0 0 / .78)); }
.featured-categories__name { margin: 0; font-family: var(--wp--preset--font-family--script); font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 400; line-height: 1.15; }
.featured-categories__more { display: inline-block; font-size: .8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 600px) {
	.featured-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
	.featured-categories li:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (prefers-reduced-motion: no-preference) {
	.featured-categories img { transition: scale .4s; }
	.featured-categories a:hover img { scale: 1.05; }
}

/* Gift vouchers: the two types side by side, each with its own drawing. */
.adelas-voucher { padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3.5rem); background: #3d1f33; color: #fff; }
.adelas-voucher h2.wp-block-heading { margin-top: 0; color: inherit; }
.adelas-voucher .adelas-voucher__types { gap: clamp(1rem, 3vw, 2rem); max-width: 52rem; margin: 2rem auto 1.5rem; }
.adelas-voucher__type { padding: 1.5rem 1.25rem; border-radius: 16px; background: #fff; color: #262626; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.adelas-voucher__type::before { content: ""; display: block; width: min(100%, 17rem); aspect-ratio: 8 / 5; margin: 0 auto; background: center / contain no-repeat; }
.adelas-voucher__type--email::before { background-image: url("../img/voucher-email.svg"); }
.adelas-voucher__type--post::before { background-image: url("../img/voucher-post.svg"); }
.adelas-voucher__type h3.wp-block-heading { margin: .75rem 0 .25rem; font-size: 1.75rem; }
.adelas-voucher__type p { margin: 0; }
.adelas-voucher__type strong { display: inline-block; margin-bottom: .6rem; padding: .2rem .9rem; border-radius: 999px; background: #f1ebe1; color: #8a2d63; font-size: .85rem; }
.adelas-voucher__type strong + br { display: block; content: ""; }
.adelas-voucher .wp-element-button { padding: .75rem 1.75rem; border-radius: 999px; background: #fff; color: #262626; }
.adelas-voucher .wp-element-button:hover { background: #f1ebe1; color: #262626; }

/* Patterns */
.is-style-adelas-quote { margin: 0; padding: 1.25rem; background: var(--wp--preset--color--wash); border: 0; }
.wp-block-details { border-bottom: var(--line); padding-block: .75rem; }
.wp-block-details summary { cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer { border-top: var(--line); background: var(--wp--preset--color--wash); padding-block: var(--gap); font-size: .9rem; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.site-footer a { display: inline-block; padding-block: .5rem; color: inherit; }
.site-footer__legal { margin: 0; text-align: center; color: var(--wp--preset--color--muted); }

@media (prefers-reduced-motion: no-preference) { .site-nav .menu .sub-menu { transition: opacity .15s, visibility .15s; } }

/* Enquiry form */
.enquiry label { display: block; margin-bottom: 1rem; font-weight: 600; }
.enquiry input:not([type="submit"], [type="checkbox"], [type="radio"]), .enquiry textarea { display: block; width: 100%; margin-top: .25rem; font-weight: 400; }
.enquiry__notice { list-style: none; margin: 0 0 1rem; padding: .75rem 1rem; border-left: 3px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--wash); }
.enquiry__notice--error { border-color: #9b1c0b; }
.enquiry__trap { position: absolute; left: -999rem; }
