/**
 * Habesha Market - Homepage hero, newsletter, footer, first Shop page styles (Aug-Sep 2026)
 * Part of the site CSS moved from Customizer > Additional CSS on 2026-11-15 (original lines 1-421).
 * Files 01-08 load in number order; the order matters (later rules win), so keep it.
 */

body.home .entry-header,
body.home .page-header,
body.home .site-content > .entry-header {
	display: none;
}

/* Featured products: remove WooCommerce default inline box around price+button from [add_to_cart] shortcode */
.add_to_cart_inline {
	border: none !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 10px !important;
}
.add_to_cart_inline .button {
	width: 100% !important;
	text-align: center !important;
	box-sizing: border-box !important;
}

/* Content alignment: keep hero / featured-products / vores-historie text aligned with the header logo and other full-width sections (matches theme's 1280px site-container grid) */
.hm-align {
	max-width: var(--global-content-width, 1280px);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	box-sizing: border-box;
	width: 100%;
}

/* Hero inset (2026-09-19): the old rule here removed the side padding at >=1280px, on the assumption that the theme already capped the columns at 1232px. It caps at 1280px, so the hero text sat 24px left of the logo. The shared .hm-align padding now applies at every width. */

/* Hero banner: full-bleed background photo (single layer, cover) + light legibility gradient
   for the dark text on the left. Photo (hero-background-stone-counter.jpg) has its own built-in
   negative space on the left, so no dual-layer cover/contain trick is needed. */
.site-hero-banner {
	position: relative;
	background-color: var(--global-palette8);
	background-image: linear-gradient(to right, rgba(250,248,240,0.75) 0%, rgba(250,248,240,0.55) 40%, rgba(250,248,240,0.15) 62%, rgba(250,248,240,0) 78%), url('https://habeshamarket.dk/wp-content/uploads/2026/09/hero-background-ethiopia-collection.webp');
	background-position: 90% center;
	background-repeat: no-repeat;
	background-size: cover;
}
/* Prevent WordPress core's default column-stacking behavior (fires up to 781px) from
   collapsing the hero's single 45%-width text column to full width, which pushes the heading
   text into the flourish text at tablet widths like 768px. Keeps the side-by-side composition
   consistent from 768px all the way up; the ≤767px rule below narrows the column further for
   true mobile. */
.site-hero-banner .wp-block-columns.hm-align {
	flex-wrap: nowrap !important;
}
.site-hero-banner .wp-block-columns.hm-align .wp-block-column {
	flex-basis: 45% !important;
	max-width: 45% !important;
}

@media (max-width: 767px) {
	/* 2026-09-13 mobile redesign: keep the same side-by-side composition as desktop (text column
	   left, photo visible right) instead of stacking the column to full width - matches the
	   mobile reference mockup, which mirrors desktop's layout at mobile size rather than a
	   full-width stacked/flat-scrim treatment. */
	.site-hero-banner .wp-block-columns.hm-align {
		flex-wrap: nowrap !important;
	}
	.site-hero-banner .wp-block-columns.hm-align .wp-block-column {
		flex-basis: 58% !important;
		max-width: 58% !important;
	}
	.site-hero-banner {
		background-image: linear-gradient(to right, rgba(250,248,240,0.72) 0%, rgba(250,248,240,0.4) 45%, rgba(250,248,240,0) 68%), url('https://habeshamarket.dk/wp-content/uploads/2026/09/hero-background-ethiopia-collection.webp');
		background-position: 85% center;
		padding-top: 32px !important;
		padding-bottom: 32px !important;
	}
	/* Narrower 58% column needs smaller type than desktop's 42px/17px to wrap into clean
	   short lines instead of mid-word breaks. */
	
	
}

/* Newsletter signup (homepage) - keep email field + Tilmeld button on one line on desktop,
   and vertically center the form column against the heading/text column. */
@media (min-width: 768px) {
	.kt-row-column-wrap.kt-has-2-columns:has(#wpforms-498) {
		align-items: center !important;
	}
	#wpforms-form-498 {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 12px !important;
	}
	#wpforms-form-498 .wpforms-field-container {
		flex: 1 1 auto !important;
		margin-bottom: 0 !important;
	}
	#wpforms-form-498 .wpforms-field-container .wpforms-field-email {
		margin-bottom: 0 !important;
	}
	#wpforms-form-498 .wpforms-field-email .wpforms-field-medium {
		width: 100% !important;
		max-width: 100% !important;
	}
	#wpforms-form-498 .wpforms-submit-container {
		flex: 0 0 auto !important;
		margin-top: 0 !important;
	}
	#wpforms-form-498 .wpforms-submit-container .wpforms-submit {
		height: 43px !important;
		white-space: nowrap !important;
	}
}

/* Footer bottom row: align copyright and legal links consistently
   (copyright was centered while legal links were left-aligned, reading as "unaligned"). */
.site-footer-bottom-section-1 .site-info-inner p {
	text-align: left !important;
}
.site-footer-bottom-section-2 .site-info-inner p {
	text-align: right !important;
}


/* Footer legal links: "Handelsbetingelser" is a real link inside plain white footer text;
   without this it inherits the theme's default dark-green link color, which is nearly
   invisible against the dark olive footer background. Match the surrounding white text,
   keep an underline so it still reads as clickable. */
.site-footer-bottom-section-2 .site-info-inner a {
	color: #FFFFFF !important;
	text-decoration: underline !important;
}
.site-footer-bottom-section-2 .site-info-inner a:hover {
	color: #E8E3D3 !important;
}

/* Newsletter "Tilmeld" submit button (WPForms) was using the plugin's own default green/radius
   instead of the site's button style (#545934, 6px radius, 14px/600 weight, 44px min height) used everywhere
   else (hero, product cards, story link). Match it to the site's button design system. */
#wpforms-form-498 #wpforms-submit-498 {
	background-color: #545934 !important;
	border-radius: 6px !important;
	padding: 0 20px !important;
	min-height: 44px !important;
	font-family: inherit !important; font-size: 14px !important;
	font-weight: 600 !important;
	height: auto !important;
}
#wpforms-form-498 #wpforms-submit-498:hover,
#wpforms-form-498 #wpforms-submit-498:focus {
	background-color: #4a4e2c !important;
}

/* Mobile reference design: trust-badge row (leaf/truck/lock/heart) should be a 2x2 grid
   on mobile, not a single stacked column - matches the approved mobile mockup. */
@media (max-width: 767px) {
	.kb-row-layout-id8_fd141f-7e .kt-row-column-wrap {
		grid-template-columns: 1fr 1fr !important;
		column-gap: 20px !important;
		row-gap: 28px !important;
	}
}

/* Mobile reference design: footer tagline ("En del af en rigere hverdag") sits beside the
   social icons on desktop only - the mobile mockup's footer omits it (space is tight next
   to two stacked icons), so hide it below the tablet breakpoint rather than let it wrap
   awkwardly against the icon column. */
@media (max-width: 767px) {
	.site-footer-top-section-3 .footer-widget2 {
		display: none !important;
	}
}

/* Mobile reference design: newsletter heading/subtext/form are centered on mobile
   (they're left-aligned next to the form on desktop, which is unchanged). */
@media (max-width: 767px) {
	.kb-row-layout-id8_80cc34-b7 .wp-block-kadence-column p,
	.kb-row-layout-id8_80cc34-b7 .wp-block-kadence-column h2,
	.kb-row-layout-id8_80cc34-b7 .wp-block-kadence-column h3 {
		text-align: center !important;
	}
	.kb-row-layout-id8_80cc34-b7 .wpforms-submit-container {
		text-align: center !important;
	}
}

/* Footer top row: vertically center logo/nav/social+tagline columns so mixed font sizes (heading vs nav vs icons) sit on a shared visual center instead of all top-aligning to the tallest column. */
.site-footer-top-section-1.footer-section-inner-items-1 {
	align-items: center;
}

/* Footer top row, inner zone: vertically center the social icons and the adjacent tagline text against each other. */
.site-footer-top-section-3.footer-section-inner-items-2 {
	align-items: center;
}

/* Footer top row (grid): vertically center all 3 columns (logo/nav/social+tagline) against each other on their shared grid row — supersedes the align-items rule on the individual column above, which had no effect since it targeted a grid item, not the grid container. */
.site-top-footer-inner-wrap.site-footer-row-columns-3 {
	align-items: center;
}


/* Hero decorative script-style tag ("Good Food Brighter Days"), top-right corner of the hero photo, matching the approved reference design. Uses the site's existing italic Lora heading font rather than adding a new webfont dependency. */
.hero-decorative-tag {
	position: absolute;
	top: 32px;
	right: 48px;
	text-align: right;
	font-family: var(--global-heading-font-family, serif);
	font-style: italic;
	font-size: 20px;
	line-height: 1.35;
	color: #FBF9F7;
	z-index: 2;
	text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.hero-decorative-tag-rule {
	display: block;
	width: 64px;
	margin: 8px 0 0 auto;
	border-top: 1px solid rgba(251,249,247,0.85);
}
@media (max-width: 781px) {
	.hero-decorative-tag {
		font-size: 14px;
		top: 16px;
		right: 20px;
	}
	.hero-decorative-tag-rule {
		width: 44px;
	}
}


/* Shop page category tiles: rounded image, circular arrow-link button matching the approved reference design. */
.category-tile-img img {
	border-radius: 10px;
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1.5;
	object-fit: cover;
}
.category-tile {
	position: relative;
}
.category-tile-arrow {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	border: 1px solid #545934;
	color: #545934;
	text-decoration: none;
	font-size: 18px;
	background-color: #FBF9F7;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.category-tile-arrow:hover {
	background-color: #545934;
	color: #FFFFFF;
}


/* Shop page: style the native WooCommerce product loop to match the site's rounded-card design instead of the plain default, so it never drifts out of sync with real inventory. */
ul.products li.product {
	background-color: #F4F1EA;
	border-radius: 8px;
	padding: 20px 20px 24px;
}
ul.products li.product img {
	border-radius: 6px;
}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
	color: #2e3320;
}
ul.products li.product .price {
	color: #A85C32;
}


/* Footer top row: Kadence's theme CSS force-stacks this row to a single column between 720px-1024px
   (a fixed tablet breakpoint with no native customizer control). Three short items (logo/nav/social+tagline)
   don't need to stack that early, so restore the 3-column layout down to 600px — stacking only at genuine
   mobile width, where the earlier alignment fix + this row's own responsive behavior already look correct. */
@media screen and (min-width: 601px) and (max-width: 1024px) {
	.site-footer-row-container-inner .site-footer-row.site-footer-row-tablet-column-layout-default,
	.site-footer-row-container-inner .site-footer-row.site-footer-row-tablet-column-layout-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
	}
}


/* Footer logo lockup: tighten the gap between "Habesha Market Denmark" and the "SMAG - HANDVAERK - KULTUR" tagline beneath it, matching the approved design's tight lockup spacing instead of the default paragraph margin + loose heading line-height. */
.footer-widget1 h2 {
	margin-bottom: 2px;
}
.footer-widget1 p {
	margin-top: 0;
	color: var(--global-palette5);
}

.footer-widget1 section.widget {
	margin-bottom: 0;
}


/* Newsletter section: tighten the gap between "Få inspiration og nyheder" and its supporting text, matching the approved design's tight heading+paragraph rhythm instead of the default WordPress heading margin. */
.kadence-column8_44650f-c8 h2 {
	margin-bottom: 4px;
}
.kadence-column8_44650f-c8 p {
	margin-top: 0;
}


/* Shop page: muted 'coming soon' category tiles — no product photo (nothing real to show yet), no arrow-link (nothing to click through to). Honest placeholder, not a stock-photo stand-in for inventory that doesn't exist. */
.category-tile-soon {
	background-color: #F4F1EA;
	border-radius: 10px;
	padding: 28px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 168px;
}
.category-tile-soon-visual {
	color: #A6A096;
	margin-bottom: 12px;
}
.category-tile-soon-title {
	color: #767066;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
}
.category-tile-soon-badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.4px;
	color: #A6A096;
	background-color: #FFFFFF;
	border: 1px solid #E3DFD5;
	border-radius: 20px;
	padding: 3px 12px;
}


/* Shop page: non-transactional 'coming soon' product teaser cards — no price, no Add to Cart, not linked to any purchasable product. Fills visual space honestly without implying anything is actually orderable. */
.product-teaser-card {
	background-color: #FBF9F7;
	border: 1px dashed #D8D2C4;
	border-radius: 8px;
	padding: 24px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 140px;
}
.product-teaser-visual {
	color: #C9BFA8;
	margin-bottom: 10px;
}
.product-teaser-title {
	color: #767066;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
}
.product-teaser-badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.4px;
	color: #A6A096;
	background-color: #FFFFFF;
	border: 1px solid #E3DFD5;
	border-radius: 20px;
	padding: 3px 12px;
}


/* Shop page: teaser cards with real (but non-transactional) photos — image fills the card, badge overlays it, still no price/button. */
.product-teaser-card {
	padding: 0;
	overflow: hidden;
	position: relative;
	min-height: 0;
}
.product-teaser-photo {
	width: 100%;
	aspect-ratio: 1.5;
	overflow: hidden;
}
.product-teaser-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(35%);
	opacity: 0.85;
}
.product-teaser-card .product-teaser-title {
	margin: 14px 16px 6px;
}
.product-teaser-card .product-teaser-badge {
	margin: 0 16px 16px;
}


