/*
 Theme Name:   Astra Child
 Theme URI:    https://parker.msk.ru
 Description:  Дочерняя тема Astra для Parker.
 Author:       Parker Dev
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* Home and «О нас» (page 1195): full-width Spectra sections are 100vw wide, which includes the vertical scrollbar,
   so they stick out a few px on the right -> no sideways scroll. `clip` keeps sticky/fixed elements working. */
body.home #page,
body.page-id-1195 #page,
body.page-id-2680 #page,
body.page-id-1197 #page,
body.page-id-2678 #page {
	overflow-x: clip;
}

/* Home: top info menu (above-header row of the transparent header) gets a dark strip so its white links
   stay readable over any part of the Hero photo. Font, sizes, menu structure and hover are unchanged. */
body.home #masthead .ast-above-header-bar {
	background-color: #111111;
}

/* «Гравировка»: price table (core table block) */
.pk-price-table {
	margin: 0;
	width: 100%;
}
.pk-price-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.pk-price-table th,
.pk-price-table td {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid #e3e3e3;
	text-align: left;
}
.pk-price-table thead th {
	background: #151616;
	color: #ffffff;
	font-weight: 600;
}
.pk-price-table th:last-child,
.pk-price-table td:last-child {
	text-align: right;
	white-space: nowrap;
}
/* Mobile: longer values («Доставка»: «завтра с 10:00 до 14:00») wrap instead of being cut off. */
@media (max-width: 767px) {
	.pk-price-table th,
	.pk-price-table td {
		padding: 12px 12px;
	}
	.pk-price-table th:last-child,
	.pk-price-table td:last-child {
		white-space: normal;
	}
}

/* Desktop header only (same threshold as astra_tablet_breakpoint in functions.php). */
@media (min-width: 1320px) {
	/* Safety net: the 9-item primary menu must never wrap onto a second row. */
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu {
		flex-wrap: nowrap;
	}
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		white-space: nowrap;
	}

	/* «Коллекции» dropdown: primary menu links are white (made for the grey header), so the submenu gets a dark panel. */
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu .sub-menu {
		background-color: #111111;
	}
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu .sub-menu .menu-link {
		color: #ffffff;
	}
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item:hover > .menu-link,
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item.focus > .menu-link {
		color: #f3d38a;
	}

	/* Pages with a transparent header overlay the hero: keep the hero clear of the info strip above the header. */
	.ast-theme-transparent-header .entry-content > .spectra-is-root-container:first-child {
		/* 2 x strip height (41px): hero content is vertically centred, so only half of the padding shows as a shift.
		   !important beats Spectra's per-block responsive padding (0 on desktop). */
		padding-top: 82px !important;
	}
}

/* Home only: the Hero photo starts at the very top of the page (under the info strip and the header);
   the Hero text keeps its previous place, clear of the logo/menu on every header size.
   A visual shift only - height and layout of the Hero are unchanged. */
body.home .entry-content > .spectra-is-root-container:first-child > .wp-block-spectra-container:first-child {
	position: relative;
	top: 30px;
}
