/* GERISGLASS — look of variant C ("магазинът на преден план"). Colors: orange #f49819, dark #1f1f1f / #333. */

:root {
	--geris-orange: #f49819;
	--geris-orange-dark: #e8921b;
	--geris-dark: #1f1f1f;
	--geris-dark-2: #2b2b2b;
	--geris-text: #333;
	--geris-error: #b82105;
	--geris-link: #a35e00;
	/* Kadence button text and fill: dark text on the orange buttons (checked on the live Kadence CSS: btn = palette9, btn-bg = palette1). */
	--global-palette-btn: #1f1f1f;
	--global-palette-btn-hover: #1f1f1f;
	--global-body-font-family: 'Source Sans 3', Arial, sans-serif;
	--global-heading-font-family: 'Oswald', Impact, sans-serif;
	--global-primary-nav-font-family: 'Oswald', Impact, sans-serif;
}

body {
	font-family: var(--global-body-font-family);
	color: var(--geris-text);
}

h1, h2, h3, h4,
.entry-title,
.wp-block-heading,
.geris-section-title {
	font-family: var(--global-heading-font-family);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .3px;
}

/* ---------- Header ---------- */

.site-header .header-navigation .menu > li > a {
	font-family: var(--global-heading-font-family);
	text-transform: uppercase;
	letter-spacing: .4px;
}
/* The menu bar is orange (#f49819, header_bottom_background in the database, class .site-bottom-header-wrap) and Kadence
   makes its links white (2.0:1): dark links instead (hover and the current page are already #1f1f1f in Kadence's CSS). */
.site-header .main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-family: var(--global-heading-font-family);
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--geris-dark);
}
/* All states are the same dark colour, so hover, keyboard focus and the current page get a line under the link instead. */
.site-header .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.site-header .main-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible,
.site-header .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.site-header .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 currentColor;
}

.geris-header-search {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
}
.geris-header-search .woocommerce-product-search {
	display: flex;
	background: #fff;
	border-radius: 3px;
	overflow: hidden;
}
/* The ring is inside the white field (the header is dark, a dark ring outside would not show). */
.geris-header-search .woocommerce-product-search:focus-within {
	outline: 2px solid #1f1f1f;
	outline-offset: -2px;
}
.geris-header-search .search-field:focus {
	outline: 0;
}
.geris-header-search .search-field {
	flex: 1;
	border: 0;
	padding: 9px 12px;
	font-size: 15px;
	min-width: 0;
}
.geris-header-search button[type="submit"] {
	border: 0;
	border-radius: 0;
	background: var(--geris-orange);
	color: var(--geris-dark);
	padding: 0 16px;
	font-weight: 700;
}

/* The search and the link to the other language ([geris_language]) side by side, in the header and the phone menu. */
.geris-header-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
}
.geris-header-tools .geris-header-search {
	flex: 1;
	min-width: 0;
	margin: 0;
}
.geris-languages {
	flex: none;
}
.geris-language {
	display: inline-block;
	padding: 6px 4px;
	color: #fff;
	font-weight: 700;
	letter-spacing: .05em;
	text-decoration: none;
}
.geris-language:hover,
.geris-language:focus-visible {
	color: var(--geris-orange);
	text-decoration: underline;
}

/* ---------- Buttons ---------- */

/* Links in the main content (not the dark header and footer) take the darker orange. */
.content-area {
	--global-palette-highlight: var(--geris-link);
	--global-palette-highlight-alt: var(--geris-dark);
}

.wp-block-button__link,
.geris-btn,
.geris-quote-btn,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--geris-orange);
	color: var(--geris-dark);
	border-radius: 3px;
	font-weight: 700;
	text-decoration: none;
}
.wp-block-button__link:hover,
.geris-btn:hover,
.geris-quote-btn:hover {
	background: var(--geris-orange-dark);
	color: var(--geris-dark);
}
.geris-btn,
.geris-quote-btn {
	display: inline-block;
	padding: 12px 22px;
	border: 0;
	cursor: pointer;
	font-size: 16px;
}
.geris-quote-btn {
	margin-top: 20px;
}

/* ---------- Text moved from the old site ---------- */

/* Each old photo sits in a div.clip; keep the text below it from touching it. */
.entry-content .clip {
	margin: 8px 0 16px;
}
.entry-content .clip img {
	display: block;
	height: auto;
}
/* Old tables are wider than a phone: they scroll sideways instead of being cut off. */
.entry-content table:not(.shop_table):not(.shop_attributes) {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}
.entry-content table:not(.shop_table):not(.shop_attributes) td,
.entry-content table:not(.shop_table):not(.shop_attributes) th {
	padding: 4px 8px;
}
.entry-content p:empty {
	display: none;
}
/* Promotions kept the old site's inline Arial and indents. */
.geris-promo__content [style*="font-family"],
.single-geris_promo .entry-content [style*="font-family"] {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}
.geris-promo__content [style*="text-indent"],
.single-geris_promo .entry-content [style*="text-indent"] {
	text-indent: 0 !important;
}

/* ---------- Home: two entry doors ---------- */

/* Home sections: centered, 1240px wide, with side padding (Kadence wraps group content in an inner container). */
.home .entry-content > .wp-block-group {
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}
.home .entry-content > .wp-block-group > .wp-block-group__inner-container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}
.geris-doors {
	margin-top: 20px;
}

.geris-doors .wp-block-columns {
	gap: 16px;
	margin-bottom: 0;
}
.geris-door {
	position: relative;
	min-height: 300px;
	height: 100%;
	padding: 28px;
	border-radius: 4px;
	overflow: hidden;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: var(--geris-dark-2);
}
/* The photo and the dark overlay are positioned against the door itself, the text sits above them. */
.geris-door > .wp-block-group__inner-container {
	position: static;
	width: 100%;
}
.geris-door h2,
.geris-door p,
.geris-door .wp-block-buttons {
	position: relative;
	z-index: 2;
}
.geris-door h2 {
	color: #fff;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.05;
	margin: 0 0 6px;
}
.geris-door p {
	margin: 0 0 14px;
	opacity: .92;
}
.geris-door .geris-door__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0 !important;
	height: 100%;
}
.geris-door .geris-door__img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.geris-door--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(transparent 15%, rgba(0, 0, 0, .82));
}

/* ---------- Section headings ---------- */

.geris-section-head {
	margin-top: 40px;
	margin-bottom: 12px;
	border-bottom: 2px solid #eee;
	padding-bottom: 6px;
}
.geris-section-head h2,
.geris-section-title {
	font-size: 26px;
	margin: 0;
}
.geris-section-head a {
	color: var(--geris-link);
	font-weight: 700;
	text-decoration: none;
}
.geris-section-title {
	margin: 40px 0 12px;
}
/* An empty section (e.g. "Най-продавани" without sales): a heading with nothing after it is not shown. The second form
   is for a classic theme, where WordPress wraps the group's content in an inner container. */
.wp-block-group:has(> .geris-section-head:last-child) {
	display: none;
}
.wp-block-group:has(> .wp-block-group__inner-container > .geris-section-head:last-child) {
	display: none;
}

/* ---------- Albums ---------- */

.geris-albums {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.geris-album-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 4px;
	overflow: hidden;
	background: #eee;
	color: #fff;
	text-decoration: none;
}
.geris-album-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.geris-album-card:hover img {
	transform: scale(1.04);
}
.geris-album-card__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 12px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .78));
	font-weight: 700;
}

/* ---------- Promotions ---------- */

.geris-promos {
	display: grid;
	gap: 16px;
}
.geris-promo {
	border-left: 4px solid var(--geris-orange);
	background: #faf8f5;
	padding: 16px 20px;
	border-radius: 0 4px 4px 0;
}
.geris-promo__title {
	margin: 0 0 4px;
	font-size: 22px;
}
.geris-promo__period {
	margin: 0 0 8px;
	color: var(--geris-link);
	font-weight: 700;
}
.geris-promo__image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 8px 0 12px;
	border-radius: 3px;
}

/* ---------- Forms (quote, contact) ---------- */

.geris-form {
	max-width: 760px;
}
.geris-form .geris-field {
	margin: 0 0 16px;
}
.geris-form label {
	font-weight: 600;
}
.geris-form input[type="text"],
.geris-form input[type="email"],
.geris-form input[type="tel"],
.geris-form input[type="number"],
.geris-form select,
.geris-form textarea {
	width: 100%;
	display: block;
	margin-top: 4px;
}
.geris-form fieldset {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 12px 16px 16px;
	margin: 0 0 16px;
}
.geris-form legend {
	font-weight: 700;
	padding: 0 6px;
}
.geris-form .geris-consent label,
.geris-form fieldset label {
	font-weight: 400;
}
/* Check boxes and Да/Не big enough to tap on a phone. */
.geris-form input[type="checkbox"],
.geris-form input[type="radio"],
.woocommerce form input[type="checkbox"],
.geris-optout input[type="checkbox"] {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}
.geris-form fieldset label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 18px;
	padding: 6px 0;
}
/* Feedback form: the 11 NPS choices wrap on a phone instead of scrolling sideways. */
.geris-form .geris-scale {
	display: flex;
	flex-wrap: wrap;
}
.geris-form .geris-scale label {
	margin-right: 14px;
}
.geris-form details {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}
.geris-form summary {
	cursor: pointer;
	font-weight: 700;
}
.geris-form details[open] > summary {
	margin-bottom: 12px;
}
.geris-feedback-note {
	border: 1px solid #e5e5e5;
	background: #f7f7f7;
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 16px;
}
.geris-item {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr);
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #eee;
}
.geris-item .geris-field-error {
	grid-column: 1 / -1;
}
.geris-add-item {
	background: none;
	border: 1px dashed var(--geris-orange);
	color: var(--geris-link);
	padding: 8px 14px;
	border-radius: 3px;
	cursor: pointer;
	font-weight: 700;
}
.geris-add-item:disabled {
	opacity: .4;
	cursor: default;
}
.geris-field-error {
	color: var(--geris-error);
	font-size: 14px;
	margin: 4px 0 0;
}
.geris-form-errors {
	border: 1px solid var(--geris-error);
	background: #fdf2f0;
	color: var(--geris-error);
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
}
.geris-form-errors p {
	margin: 0;
}
.geris-form-sent {
	border: 1px solid #2e7d32;
	background: #eef7ee;
	color: #1b5e20;
	padding: 14px 18px;
	border-radius: 4px;
	font-weight: 600;
}
.geris-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Contacts and office pickup ---------- */

.geris-contacts {
	margin: 0 0 24px;
}
.geris-contacts__phones {
	list-style: none;
	margin: 8px 0;
	padding: 0;
}
.geris-contacts__phones li {
	margin: 4px 0;
}
.geris-pickup {
	margin-top: 4px;
	font-size: 14px;
	color: #555;
}

/* ---------- Checkout: invoice block ---------- */

.geris-invoice {
	margin: 24px 0;
	padding: 12px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}
/* Two-column checkout (every box floats as a half): the block is printed just before "Вашата поръчка",
   so it opens the right column, above the order table, the payment methods and the button. */
@media (min-width: 1025px) {
	.woocommerce-checkout .geris-invoice {
		float: left;
		width: 50%;
		margin-top: 0;
		padding-left: var(--global-md-spacing, 2rem);
		box-sizing: border-box;
	}
}
.geris-invoice h3 {
	font-size: 20px;
	margin: 0 0 8px;
}
.geris-invoice .optional {
	display: none;
}

/* "Плащане с карта" until there is a contract with a bank: shown, but it cannot be chosen (geris-core's CardPlaceholderGateway). */
.geris-card-unavailable > label {
	opacity: 0.6;
	cursor: not-allowed;
}
.geris-card-note {
	display: block;
	font-size: 14px;
	color: #555;
}

/* ---------- Shop: product filters (sidebar of the shop and category pages) ---------- */

.geris-product-filters h2 {
	font-size: 20px;
	margin: 0 0 12px;
}
.geris-product-filters h3 {
	font-size: 16px;
}
/* The theme puts the sidebar beside the products from 1025px and under them below that. The filters are shown as
   they are down to 783px, so they go beside the products there too; below that they are one button that opens them
   over the page, and the button goes above the products. */
@media (min-width: 783px) and (max-width: 1024px) {
	.has-left-sidebar .content-container {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 32px;
	}
	.has-left-sidebar #secondary {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}
	.has-left-sidebar #main {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}
}
@media (max-width: 782px) {
	.has-left-sidebar .content-container {
		display: flex;
		flex-direction: column;
	}
	.has-left-sidebar #secondary {
		order: -1;
		margin-bottom: 16px;
	}
}

/* ---------- EU-funded projects (above the footer) ---------- */

/* Dark, because the logo strip's captions are white on a transparent background. */
.geris-eu-project {
	background: var(--geris-dark-2);
	padding: 24px var(--global-content-edge-padding, 1.5rem);
	font-size: 14px;
	color: #e0e0e0;
}
.geris-eu-project__inner {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	gap: 16px 40px;
}
.geris-eu-project strong {
	color: #fff;
}
.geris-eu-project__logos {
	position: relative;
	display: inline-block;
	justify-self: start;
	max-width: calc(100% - 4px);
	margin: 2px;
	line-height: 0;
}
.geris-eu-project__logos img {
	display: block;
	max-width: 100%;
	height: auto;
}
/* On a coloured background the EU flag needs a white border 1/25 of its height (2px of 50px). The flag is the
   strip's first 76 of 455 px, so the border is drawn around that part instead of changing the official file. */
.geris-eu-project__logos::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 16.7%;
	height: 100%;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}
.geris-eu-project p {
	margin: 0 0 8px;
}
.geris-eu-project__disclaimer {
	font-size: 13px;
	color: #bdbdbd;
}
.geris-eu-project__item + .geris-eu-project__item {
	border-top: 1px solid rgba(255, 255, 255, .15);
	padding-top: 16px;
}
@media (min-width: 1025px) {
	.geris-eu-project__inner {
		grid-template-columns: 1fr 1fr;
	}
	.geris-eu-project__logos {
		grid-column: 1 / -1;
	}
	.geris-eu-project__item + .geris-eu-project__item {
		border-top: 0;
		padding-top: 0;
		border-left: 1px solid rgba(255, 255, 255, .15);
		padding-left: 40px;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	color: #d6d6d6;
}
.site-footer a {
	color: #fff;
}
.site-footer a:hover {
	color: var(--geris-orange);
}
.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
	color: #fff;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.geris-albums {
		grid-template-columns: repeat(2, 1fr);
	}
	.geris-door {
		min-height: 220px;
		padding: 20px;
	}
	.geris-item {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.geris-item .geris-item-note {
		grid-column: 1 / -1;
	}
	.geris-section-head h2,
	.geris-section-title {
		font-size: 21px;
	}
	.geris-section-head p {
		font-size: 14px;
		white-space: nowrap;
	}
}
