/*
 * Édességker Webshop - the stand-alone look (option "Önálló webshop oldal").
 *
 * Only loaded when the site is the shop and nothing else: it restyles the
 * whole page - Astra's palette, body, header, announcement bar, footer and
 * the front page sections. On an existing site (edessegker.hu) it is off and
 * the site keeps its own header, footer and design; storefront.css styles
 * the shop content either way.
 *
 * Widths: everything lines up with the header - content --ek-wrap (1320px,
 * Astra's site-content-width) wide, --ek-gutter at the sides on narrower
 * screens. Tokens are in storefront.css.
 */

:root {
	/* Astra's default palette (blue accent, slate text) colours whatever this
	   sheet does not name - the scroll-to-top button, the mobile menu icon,
	   headings inside page content. Map it onto the --ek-* tokens
	   (defined in storefront.css). */
	--ast-global-color-0: var(--ek-brand);
	--ast-global-color-1: var(--ek-brand-d);
	--ast-global-color-2: var(--ek-ink);
	--ast-global-color-3: var(--ek-text);
	--ast-global-color-4: #FFFFFF;
	--ast-global-color-5: var(--ek-surface);
	--ast-global-color-6: var(--ek-ink);
	--ast-global-color-7: var(--ek-line);
	--ast-global-color-8: var(--ek-ink);
	--ek-gold: #FCC50F;          /* the logo's gold: footer link hover only */
}

/* =========================================================================
   Base
   ====================================================================== */

/* Scoped to body.ek-site, one class above a bare element: the site's own
   theme typography would otherwise win. Astra prints it as
   `h1, .entry-content :where(h1)` - on edessegker.hu Marcellus at 48-72px -
   and Inter for the body; `html` also outweighs an Elementor kit's
   `.elementor-kit-N h1`. Links stay weak (:where), so buttons keep their colours. */
html body.ek-site { background: #FFFFFF; color: var(--ek-text); font-size: 15px; line-height: 1.6; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
html body.ek-site, .ek-site :where(button, input, select, textarea, .ast-button, .button, .ast-custom-button, .menu-link) { font-family: var(--ek-font); }
.ek-site .search-form :is(.search-field, .search-submit) { font-family: var(--ek-font); } /* 404 and search results: Astra's own rule outweighs the line above */
html body.ek-site :is(h1, h2, h3, h4, h5, h6, .entry-title) { font-family: var(--ek-font); color: var(--ek-ink); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
html body.ek-site :is(h1, .entry-title) { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
html body.ek-site :is(h2) { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
html body.ek-site :is(h3) { font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
/* Search results and archive titles: Astra sizes them with its own, heavier rule (#primary outweighs it). */
.ek-site #primary .ast-archive-description .ast-archive-title,
.ek-site #primary .ast-archive-description .ast-archive-title * { font-family: var(--ek-font); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: var(--ek-ink); }
:where(.ek-site) a { color: var(--ek-ink); text-underline-offset: .18em; }
:where(.ek-site) a:hover, :where(.ek-site) a:focus-visible { color: var(--ek-brand-d); }
:focus-visible { outline: 2px solid var(--ek-ink); outline-offset: 3px; }
::selection { background: var(--ek-pink); color: var(--ek-ink); }
.ek-site .site-content > .ast-container { padding-top: 24px; padding-bottom: 72px; }

/* =========================================================================
   Announcement bar + header
   ====================================================================== */

.ek-site .ek-announce { background: var(--ek-ink); color: #FCE9EE; font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.ek-site .ek-announce ul {
	display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap;
	list-style: none; margin: 0 auto; padding: 7px var(--ek-gutter); max-width: var(--ek-wrap);
}
.ek-site .ek-announce li { margin: 0; display: flex; align-items: center; gap: 8px; }
.ek-site .ek-announce li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--ek-brand); margin-right: 20px; }

/* Stays in view while scrolling a long catalogue. */
.ek-site #masthead.site-header { position: sticky; top: 0; z-index: 99; background: #FFFFFF; border-bottom: 1px solid var(--ek-line); }
@media (min-width: 783px) { .ek-site.admin-bar #masthead.site-header { top: 32px; } }
.ek-site .site-header .ast-primary-header-bar,
.ek-site .site-header .main-header-bar,
.ek-site .site-header .ast-below-header-bar { background: #FFFFFF; border: 0; }
.ek-site .ast-primary-header-bar .site-primary-header-wrap { min-height: 64px; }
/* The theme's header height and padding settings (edessegker.hu: 15px above and below) would make it taller. */
.ek-site .site-header .ast-primary-header-bar { padding-top: 0; padding-bottom: 0; }
.ek-site.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item { line-height: 64px; }
/* Astra sizes the logo by width (a theme setting); by height it stays one size whatever its shape. */
.ek-site .site-header .custom-logo-link img { width: auto; max-width: none; height: 46px; max-height: none; }

.ek-site #masthead .main-header-menu .menu-item > .menu-link {
	font-family: var(--ek-font); color: var(--ek-ink); font-size: 14.5px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 0 13px;
}
.ek-site #masthead .main-header-menu .menu-item.focus:not(.current-menu-item) > .menu-link,
.ek-site #masthead .main-header-menu .menu-item.current-menu-item.menu-item-type-custom > .menu-link { color: var(--ek-ink); }
.ek-site #masthead .main-header-menu .menu-item.current-menu-item:not(.menu-item-type-custom) > .menu-link,
.ek-site #masthead .main-header-menu .menu-item.current_page_item:not(.menu-item-type-custom) > .menu-link,
.ek-site.single-product #masthead .main-header-menu .menu-item.current_page_parent > .menu-link,
.ek-site.tax-product_cat #masthead .main-header-menu .menu-item.current_page_parent > .menu-link {
	color: var(--ek-brand-d); font-weight: 600;
}
.ek-site #masthead .main-header-menu .menu-item > .menu-link:hover { color: var(--ek-brand-d); }
.ek-site .ast-builder-menu-1 { margin-left: 16px; }

/* The search field itself ([ek_search], Astra HTML element 1) is in storefront.css. */
.ek-site .ast-header-account-wrap svg, .ek-site .ast-site-header-cart svg { color: var(--ek-ink); fill: var(--ek-ink); }
.ek-site .ast-site-header-cart .ast-cart-menu-wrap .count,
.ek-site .ast-woo-header-cart-info-wrap { color: var(--ek-ink); border-color: var(--ek-ink); }
.ek-site .ast-site-header-cart .ast-cart-menu-wrap .count:after { background: var(--ek-brand); }
.ek-site .site-header-section > .ast-builder-layout-element:not(:first-child) { margin-left: 4px; }

/* The second selector outweighs Astra's own `.ast-header-button-1[data-section*=…] .ast-builder-button-wrap .ast-custom-button`
   (the theme's button font and padding settings). */
.ek-site .ast-header-button-1 .ast-custom-button,
.ek-site .ast-header-button-1[data-section] .ast-builder-button-wrap .ast-custom-button {
	background: var(--ek-brand); color: #FFFFFF; border: 0; border-radius: 9999px; box-shadow: none;
	padding: 9px 18px; font-family: var(--ek-font); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none;
}
.ek-site .ast-header-button-1 .ast-custom-button:hover,
.ek-site .ast-header-button-1[data-section] .ast-builder-button-wrap .ast-custom-button:hover { background: var(--ek-brand-d); color: #FFFFFF; }
/* A partner who is logged in has nothing left to register. */
.ek-site.logged-in .ast-header-button-1 { display: none; }

.ek-site .ast-header-html-1 .ast-builder-html-element p { margin: 0; }

/* Phones: logo, account, cart, menu; the search on its own row. */
.ek-site .ast-mobile-header-wrap .ast-primary-header-bar .site-primary-header-wrap { min-height: 60px; }
.ek-site .ast-mobile-header-wrap .custom-logo-link img { height: 40px; }
.ek-site .ast-mobile-header-wrap .ast-below-header-bar { border: 0; }
.ek-site .ast-mobile-header-wrap .ast-below-header-bar .site-below-header-wrap { min-height: 0; padding-bottom: 10px; }
.ek-site .ast-mobile-header-wrap .ek-search { width: 100%; }
.ek-site .ast-mobile-header-wrap .ast-header-html-1 { width: 100%; }
.ek-site .ast-mobile-header-wrap .ast-header-html-1 > .ast-header-html { flex: 1; }
.ek-site .ast-mobile-header-wrap .site-header-below-section-center { flex: 1; }
.ek-site .ast-mobile-header-wrap .site-header-below-section-center > * { width: 100%; }

/* =========================================================================
   Footer
   Chocolate, as edessegker.hu's own footer. It replaces the theme's: a site
   that had a footer would otherwise show it underneath, with colours meant
   for its own design. The copyright line is .ek-footer__bottom.
   ====================================================================== */

.ek-site .site-footer { display: none; }
.ek-site .ek-footer { background: var(--ek-ink); color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }
.ek-site .ek-footer__inner {
	max-width: calc(var(--ek-wrap) + 2 * var(--ek-gutter)); margin: 0 auto; padding: 48px var(--ek-gutter) 36px;
	display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px;
}
.ek-site .ek-footer__logo { display: block; width: auto; height: 52px; margin-bottom: 14px; }
.ek-site .ek-footer__brand p { max-width: 26em; margin: 0; }
.ek-site .ek-footer__brand p.ek-footer__meta { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.ek-site .ek-footer__brand p.ek-footer__meta a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.ek-site .ek-footer__col h2 {
	font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase;
	color: #FFFFFF; margin: 4px 0 14px;
}
.ek-site .ek-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ek-site .ek-footer__col li { margin: 0 0 8px; }
.ek-site .ek-footer__col a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.ek-site .ek-footer a:hover, .ek-site .ek-footer a:focus { color: var(--ek-gold); }
.ek-site .ek-footer :focus-visible { outline-color: var(--ek-gold); }
.ek-site .ek-footer__bottom {
	width: min(var(--ek-wrap), calc(100% - 2 * var(--ek-gutter))); margin: 0 auto; padding: 18px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
	font-size: 12.5px; color: rgba(255, 255, 255, .6);
}
.ek-site .ek-footer__bottom p { margin: 0; }
.ek-site .ek-footer__bottom a { color: rgba(255, 255, 255, .6); text-decoration: none; }
/* Raspberry, so it still shows over the chocolate footer. */
.ek-site #ast-scroll-top { width: 40px; height: 40px; border-radius: 50%; background: var(--ek-brand); }

/* =========================================================================
   Front page
   ====================================================================== */

.ek-site.home .site-content > .ast-container { padding-top: 20px; padding-bottom: 64px; }
.ek-site.home .entry-content > * { margin-bottom: 0; }
/* The front page is a full-width page (no Astra box), so its sections set
   their own width - otherwise they run from edge to edge of the screen while
   the header and footer stop at --ek-wrap. */
.ek-site.ast-page-builder-template .entry-content[data-ast-blocks-layout] > :is(.ek-hero, .ek-usps, .ek-section, .ek-cta-band) {
	box-sizing: border-box; width: auto;
	max-width: min(var(--ek-wrap), calc(100% - 2 * var(--ek-gutter)));
	margin-left: auto; margin-right: auto;
}
/* Astra centres every grandchild of page content with auto side margins,
   which shrinks grid items to their content - and the photo collage, whose
   tiles take their height from their width, to nothing. Same specificity as
   Astra's rule, later in the cascade. */
.ek-site.ast-page-builder-template .entry-content[data-ast-blocks-layout] > :is(.ek-hero, .ek-usps, .ek-section, .ek-cta-band) > * {
	margin-left: 0; margin-right: 0;
}

.ek-site .ek-hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 80px); align-items: center;
	padding: clamp(28px, 4vw, 56px); border-radius: 24px;
	background: linear-gradient(135deg, var(--ek-pink) 0%, var(--ek-butter) 100%);
}
.ek-site .ek-eyebrow {
	display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 9999px; background: #FFFFFF;
	font-size: 12px; font-weight: 600; color: var(--ek-brand-d); letter-spacing: .02em;
}
.ek-site .ek-hero h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; }
.ek-site .ek-lede { font-size: 16px; color: var(--ek-text); max-width: 32em; margin: 0 0 24px; }
.ek-site .ek-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.ek-site .ek-hero .ek-btn--ghost { background: #FFFFFF; border-color: #FFFFFF; }
.ek-site .ek-hero .ek-btn--ghost:hover { border-color: var(--ek-ink); }
/* .entry-content: Astra gives every `.entry-content ul` 20px of padding and browser margins. */
.ek-site .entry-content .ek-hero__stats { display: flex; flex-wrap: wrap; gap: 12px 0; list-style: none; margin: 0; padding: 0; }
.ek-site .ek-hero__stats li { margin: 0; display: flex; flex-direction: column; padding: 0 24px; }
.ek-site .ek-hero__stats li:first-child { padding-left: 0; }
.ek-site .ek-hero__stats li + li { border-left: 1px solid rgba(61, 7, 3, .12); }
.ek-site .ek-hero__stats strong { font-size: 18px; font-weight: 700; color: var(--ek-ink); line-height: 1.2; letter-spacing: -.01em; }
.ek-site .ek-hero__stats span { font-size: 13px; color: var(--ek-muted); }

.ek-site .entry-content .ek-usps {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
	list-style: none; margin-top: 16px; margin-bottom: 0; padding: 0;
}
.ek-site .ek-usps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); }
.ek-site .ek-usps .ek-icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--ek-mint); color: var(--ek-ink); }
.ek-site .ek-usps li:nth-child(2) .ek-icon { background: var(--ek-butter); }
.ek-site .ek-usps li:nth-child(3) .ek-icon { background: var(--ek-sky); }
.ek-site .ek-usps li:nth-child(4) .ek-icon { background: var(--ek-pink); }
.ek-site .ek-usps strong { display: block; color: var(--ek-ink); font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.ek-site .ek-usps span { font-size: 13px; color: var(--ek-muted); line-height: 1.45; }

.ek-site .ek-section { margin-top: 64px; }
.ek-site .ek-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ek-site .ek-section__head h2 { margin: 0; }
.ek-site .ek-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ek-ink); white-space: nowrap; }
.ek-site .ek-link-arrow .ek-icon { width: 16px; height: 16px; transition: transform .2s; }
.ek-site .ek-link-arrow:hover .ek-icon { transform: translateX(3px); }
.ek-site .ek-section .woocommerce { margin: 0; }

/* Featured products ([ek_featured], 10 in 5 columns): only full rows at every width. */
@media (min-width: 922px) and (max-width: 1199px) {
	.ek-site .ek-section ul.products:not(.elementor-grid).columns-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ek-site .ek-section ul.products.columns-5 > li:nth-child(n+9) { display: none; }
}
@media (min-width: 545px) and (max-width: 921px) { .ek-site .ek-section ul.products.columns-5 > li:nth-child(n+10) { display: none; } }
@media (max-width: 544px) { .ek-site .ek-section ul.products.columns-5 > li:nth-child(n+9) { display: none; } }

/* "Hogyan működik?": three numbered steps. */
/* background: a site may style .ek-steps for its own pages (edessegker.hu's Additional CSS does). */
.ek-site .entry-content .ek-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; background: none; }
.ek-site .ek-steps li {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start;
	margin: 0; padding: 20px; background: var(--ek-surface); border-radius: var(--ek-r);
}
.ek-site .ek-steps__n {
	grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--ek-ink); color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1;
}
.ek-site .ek-steps h3 { margin: 4px 0 4px; font-size: 16px; }
.ek-site .ek-steps p { margin: 0; font-size: 14px; color: var(--ek-text); }

.ek-site .ek-cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
	margin-top: 64px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--ek-pink);
}
.ek-site .ek-cta-band h2 { margin: 0 0 6px; }
.ek-site .ek-cta-band p { color: var(--ek-text); margin: 0; max-width: 36em; }

/* =========================================================================
   Tablets and phones
   ====================================================================== */

@media (max-width: 1200px) {
	.ek-site .main-header-menu .menu-item > .menu-link { padding: 0 9px; }
}
@media (max-width: 921px) {
	.ek-site .ek-announce li + li { display: none; }
	.ek-site .ek-hero { grid-template-columns: minmax(0, 1fr); }
	.ek-site .ek-hero__art { max-width: 460px; }
	.ek-site .entry-content .ek-usps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ek-site .entry-content .ek-steps { grid-template-columns: minmax(0, 1fr); }
	.ek-site .ek-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ek-site .ek-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 544px) {
	:root { --ek-gutter: 16px; }
	.ek-site .site-content > .ast-container { padding-top: 16px; padding-bottom: 56px; }
	.ek-site .ek-hero { padding: 24px 20px; border-radius: 20px; }
	.ek-site .ek-hero__cta .ek-btn { flex: 1 1 100%; }
	.ek-site .ek-hero__stats li { padding: 0 16px; }
	.ek-site .ek-hero__stats strong { font-size: 16px; }
	.ek-site .ek-hero__stats span { font-size: 12px; }
	.ek-site .entry-content .ek-usps { grid-template-columns: minmax(0, 1fr); }
	.ek-site .ek-section, .ek-site .ek-cta-band { margin-top: 48px; }
	.ek-site .ek-section__head { align-items: center; }
	.ek-site .ek-cta-band { border-radius: 16px; }
	.ek-site .ek-cta-band .ek-btn { width: 100%; }
	.ek-site .ek-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 40px; }
}

/* =========================================================================
   Page not found (Astra's 404 with its search box)
   ====================================================================== */
.ek-site.error404 .ast-404-layout-1 { padding: clamp(40px, 8vw, 96px) 0 24px; text-align: center; }
.ek-site.error404 .ast-404-layout-1 .page-title { font-family: var(--ek-font); font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--ek-ink); }
.ek-site.error404 .ast-404-layout-1 .page-sub-title { margin: 10px auto 0; max-width: 32em; font-family: var(--ek-font); font-size: 16px; line-height: 1.6; color: var(--ek-text); }
.ek-site.error404 .ast-404-search { max-width: 420px; margin: 24px auto 0; }
.ek-site.error404 .ast-404-search .search-form { position: relative; display: block; margin: 0; }
.ek-site.error404 .ast-404-search .search-form label { display: block; width: 100%; margin: 0; }
.ek-site.error404 .ast-404-search .search-field {
	width: 100%; height: 46px; margin: 0; padding: 0 52px 0 20px; border: 1px solid var(--ek-line-strong); border-radius: 9999px;
	background: #FFFFFF; box-shadow: none; font-family: var(--ek-font); font-size: 15px; color: var(--ek-ink);
}
.ek-site.error404 .ast-404-search .search-field:focus { border-color: var(--ek-ink); box-shadow: var(--ek-focus); outline: none; }
.ek-site.error404 .ast-404-search button.search-submit {
	position: absolute; top: 5px; right: 5px; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: var(--ek-surface); color: var(--ek-ink); cursor: pointer;
}
.ek-site.error404 .ast-404-search button.search-submit:hover { background: var(--ek-pink); color: var(--ek-brand-d); }
.ek-site.error404 .ast-404-search input[type="submit"] { display: none; }
.ek-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; }
.entry-content a.ek-btn, .ek-404-links a.ek-btn { text-decoration: none; }
