/* =============================================================================
   Darplay Tweaks - site-wide vertical spacing (all front-end pages)

   Neve FSE 1.1.9 (block theme) stacks several gaps between the header and
   the first content. Measured 14 Nov 2026 (cart, 1280px): header 93px for a
   ~40px logo (24px inline padding above and below), then 24px before <main>,
   then 24px before the page title, and a 56px title. At ~1024px the header
   is split 50/50, so the menu wraps to a second line (header 132px).
   These rules go when the theme is replaced.
   ============================================================================= */

/* 1) Header: less empty space around the logo and menu.
      (The theme writes the padding inline on the block, hence !important.
      The header is nested: header > header > .wp-block-group > .wp-block-columns.) */
header.wp-block-template-part .wp-block-columns.alignfull {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

/* Logo column a fixed 200px (the logo is ~150px wide) instead of half the
   header; the menu gets the rest, so it stays on one line at laptop widths.
   (Not "auto": the logo image would then grow to its full file size.) */
header.wp-block-template-part .wp-block-columns.alignfull > .wp-block-column:first-child {
	flex: 0 0 200px !important;
	max-width: 200px;
}

header.wp-block-template-part .wp-block-columns.alignfull > .wp-block-column:last-child {
	flex: 1 1 0 !important;
	min-width: 0;
}

header.wp-block-template-part .wp-block-navigation__container {
	gap: 22px;
}

/* 2) Less space between the header and the page content. */
.wp-site-blocks > main {
	margin-block-start: 12px;
}

/* 3) Page titles ("Количка", "Поръчка", ...): smaller, close to the top. */
main > .wp-block-post-title {
	margin-block-start: 8px;
	margin-block-end: 16px;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.2;
}

main > .wp-block-post-title + * {
	margin-block-start: 0;
}

/* 4) Store messages ("... added to the cart"): no empty band above them. */
.wc-block-store-notices:not(:has(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-error, .woocommerce-info)) {
	display: none;
}

.wc-block-store-notices .woocommerce-notices-wrapper > :first-child {
	margin-top: 0;
}

/* Phones: a bit tighter still. */
@media (max-width: 600px) {
	header.wp-block-template-part .wp-block-columns.alignfull {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}

	.wp-site-blocks > main {
		margin-block-start: 8px;
	}
}
