/*
Theme Name:   Plėvelės langams
Description:  Astra antrinė tema parduotuvei pleveleslangams.lt. Tik šablonai ir CSS, parduotuvės logika yra įskiepyje „pleveles-shop“.
Author:       UAB Ailuda Projektai
Author URI:   https://ailuda.lt/
Template:     astra
Version:      0.1.0
Requires PHP: 8.3
Text Domain:  pleveles-child
*/

/*
 * Fonts, served from this theme so that no visitor's browser has to call
 * Google. Inter and Raleway are variable fonts under the SIL Open Font License
 * (fonts/LICENSE-*.txt), taken from the @fontsource-variable packages. One file
 * holds every weight. "latin-ext" has the Lithuanian letters, and a browser
 * only downloads it for a page that uses them.
 */
@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Raleway;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/raleway-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Raleway;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/raleway-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Design tokens, measured from ailuda.lt (docs/HANDOFF.md, section 4).
 * Component styles are added with the pages that need them. The film page's
 * own are in the plugin (assets/product.css) and use these properties.
 */
:root {
	/* Colour */
	--pls-ink: #090a0e; /* body text, text on orange */
	--pls-heading: #1a1a1a; /* large headings */
	--pls-slate: #4d6772; /* secondary text, links, secondary buttons, selected states */
	--pls-sage: #6c8d8b; /* accent word in section titles, large text only */
	--pls-sage-light: #a7c0be; /* borders of inputs and pills */
	--pls-mist: #d2dfdf; /* dividers and thin borders */
	--pls-mist-light: #ebf0f0; /* fills of option tiles and chips */
	--pls-off-white: #f7f8f9; /* panels and alternating bands */
	--pls-hairline: #e3eaea; /* card borders and table rules */
	--pls-footer: #eeeeee; /* footer background */
	--pls-dark: #1e282d; /* hero and dark cards */
	--pls-orange: #ff914d; /* the one primary action per view */
	--pls-menu: #1e293b; /* links of the main menu */
	--pls-rule: #eaeaea; /* the line under the header */

	/* Type */
	--pls-font-heading: Raleway, sans-serif;
	--pls-font-body: Inter, system-ui, sans-serif;

	/* Shape */
	--pls-radius-control: 10px; /* buttons and inputs */
	--pls-radius-card: 16px; /* cards and panels */
	--pls-radius-chip: 6px;
	--pls-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
	--pls-focus-ring: 3px solid #4d6772;
	--pls-touch-target: 44px; /* minimum height of anything tappable */

	/*
	 * The header stays at the top of the screen while a page is scrolled. Its
	 * height, where it sticks (under WordPress's toolbar, for whoever is logged
	 * in and has one), and where the page under it begins: whatever else sticks
	 * to the top of the screen, in the plugin's stylesheets too, starts there.
	 */
	--pls-header-height: 65px;
	--pls-header-top: var(--wp-admin--admin-bar--height, 0px);
	--pls-sticky-top: calc(var(--pls-header-top) + var(--pls-header-height));
}

/* From 1140 px the header is the row with its links, a little taller than the folded bar. */
@media (min-width: 1140px) {
	:root {
		--pls-header-height: 75px;
	}
}

/* On a phone WordPress's toolbar is not fixed: it leaves the screen with the top of the page. */
@media (max-width: 600px) {
	:root {
		--pls-header-top: 0px;
	}
}

/*
 * What a link into a page or the Tab key brings into view lands under the
 * header, not behind it, with a little air. (:root, not html: WordPress sets
 * this on html for its toolbar alone.)
 */
:root {
	scroll-padding-top: calc(var(--pls-sticky-top) + 16px);
}

/*
 * Astra's own palette, pointed at the tokens. Astra colours links, buttons,
 * headings and text with these four wherever a page has no styles of its own
 * (text pages, the page after checkout, the account pages), and its default is
 * a bright blue that belongs to no other part of the shop.
 */
:root {
	--ast-global-color-0: var(--pls-slate); /* links and buttons */
	--ast-global-color-1: var(--pls-ink); /* links and buttons under the pointer */
	--ast-global-color-2: var(--pls-heading); /* headings */
	--ast-global-color-3: var(--pls-ink); /* text */
}

/*
 * Base type. Lining numerals, because Raleway otherwise draws old-style digits
 * in prices.
 */
body,
button,
input,
select,
textarea {
	font-family: var(--pls-font-body);
}

body {
	color: var(--pls-ink);
	font-size: 16px;
	line-height: 1.6;
	font-variant-numeric: lining-nums;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.entry-title,
.page-title {
	font-family: var(--pls-font-heading);
	font-weight: 800;
	color: var(--pls-heading);
}

/*
 * "Pereiti prie turinio", the link a keyboard meets first on every page: the
 * shop's ring and colours in place of Astra's thin dotted line and blue.
 */
.skip-link:focus {
	background-color: #fff;
	color: var(--pls-ink);
	font-family: var(--pls-font-body);
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

/*
 * WooCommerce's path above a list or a product ("Pradžia / Plėvelės"). Its
 * grey is a shade too light for text of this size (4.48 to 1 on white, where
 * 4.5 is asked for), so it gets the slate that the film page's path has.
 */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
	color: var(--pls-slate);
}

.woocommerce .woocommerce-breadcrumb a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--pls-ink);
}

.woocommerce .woocommerce-breadcrumb a:focus-visible {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

/*
 * A message of WooCommerce above a page ("Į krepšelį įdėta: …", or why
 * something was not): a white card with the sign of what happened, the words,
 * and the way on as a quiet button at its end. WooCommerce and the theme draw
 * a grey bar with a coloured line on top and a button that floats.
 *
 * The page opens with the keyboard's focus on the message, so that a screen
 * reader says it. It is not a control and nothing is done with it, so it shows
 * no ring: a ring round the whole message read as a frame of the message, and
 * a heavy one. Its button shows the ring like every other.
 *
 * The class is there twice to outweigh the theme's ".entry-content
 * .woocommerce-message".
 */
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info):is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 20px;
	padding: 12px 14px 12px 18px;
	border: 1px solid var(--pls-hairline);
	border-radius: var(--pls-radius-card);
	background: #fff;
	box-shadow: var(--pls-shadow-card);
	color: var(--pls-ink);
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
	outline: 0;
}

/* The sign: WooCommerce's own, in the row instead of pinned to the corner. */
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info)::before {
	position: static;
	display: block;
	flex: none;
	font-size: 20px;
	line-height: 1;
}

.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info)::before {
	color: var(--pls-slate);
}

/* The box WooCommerce clears its floating button with: in a row it would be an item of its own. */
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info)::after {
	content: none;
}

/* What went wrong is a list, of one line as a rule: the line is laid out like a message. */
.woocommerce-notices-wrapper .woocommerce-error > li {
	display: flex;
	flex: 1 1 240px;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	min-width: 0;
}

/* The way on, at the end of the row: an outline in slate, 44 px tall. Not the filled button, which is for the page's own action. */
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) .button.button,
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) .button.button:hover,
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) .button.button:focus {
	order: 0;
	display: inline-flex;
	align-items: center;
	float: none;
	min-height: var(--pls-touch-target);
	margin: 0 0 0 auto;
	padding: 0 18px;
	border: 0;
	border-radius: var(--pls-radius-control);
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--pls-slate);
	color: var(--pls-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) .button.button:hover {
	background: var(--pls-mist-light);
}

/* The theme draws a thin dotted line here, with ".woocommerce .woocommerce-message a.button.wc-forward:focus-visible": the class is there three times to outweigh that. */
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) a.button.button.button:focus-visible {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

/*
 * The Cart and Checkout blocks are "wide" blocks. Below 1280 px Astra pulls a
 * wide block 20 px to the left without making it any wider, which puts the
 * cart against the edge of a phone's screen and leaves 40 px empty on its
 * right. The selector repeats Astra's own, to outweigh it.
 */
body .entry-content[data-ast-blocks-layout] > :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout).alignwide {
	margin-left: 0;
	margin-right: 0;
}

/*
 * The film page and the landing page (the plugin's templates) run edge to edge
 * and bring their own 1240 px wrapper. functions.php asks Astra for its full
 * width layout there; this takes off the padding Astra still gives such a page.
 */
body.pls-edge-to-edge #main.site-main {
	padding: 0;
}

/*
 * Every other page sits in Astra's container. On a wide screen it gets the
 * 24 px at its sides that the header, the footer and the plugin's pages have
 * (Astra: 20 px), so that a page's title starts exactly under the logo. Below
 * 1140 px, where the header folds, the header itself moves to 20 px.
 */
@media (min-width: 1140px) {
	.site-content > .ast-container {
		padding-right: 24px;
		padding-left: 24px;
	}
}

/*
 * Astra keeps 60 px above and below a page's content from 1200 px up and
 * nothing at all below that, which puts a title against the header's line and
 * the last paragraph against the footer. The selector is Astra's own.
 */
@media (max-width: 1199px) {
	.ast-plain-container.ast-no-sidebar #primary {
		margin-top: 32px;
		margin-bottom: 56px;
	}
}

/*
 * Titles of the pages that have no template of their own: the pages of text,
 * the cart, the checkout, the account, the catalogue and its lists. Handoff
 * section 4 asks for Raleway 800 at 44 to 52 px; on a phone it is smaller, so
 * that "Kaip išmatuoti langą" takes two lines and not three.
 */
header.entry-header .entry-title,
.woocommerce-products-header .page-title {
	margin: 0 0 24px;
	font-size: clamp(32px, 5.4vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.5px;
	color: var(--pls-heading);
}

/* ---------- A product without a page of its own: the tool kit ---------- */

/*
 * WooCommerce's product page as Astra draws it. A film has the plugin's page;
 * this is what the tool kit gets, and anything else the owner adds that is not
 * sold by the metre. It takes the film page's sizes: the name in the heading
 * face, one orange button 54 px tall, the quantity as tall beside it. Astra
 * draws them at 20, 36 and 40 px.
 *
 * Every selector starts with WooCommerce's own ".woocommerce div.product", and
 * repeats a class where Astra's rule would outweigh it. Not with Astra's
 * ".woocommerce-js": that class is only there once a script has run.
 */
.woocommerce div.product .product_title.entry-title {
	margin: 0 0 12px;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.5px;
}

.woocommerce div.product p.price.price {
	margin: 0 0 12px;
	color: var(--pls-ink);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	max-width: 520px;
	color: var(--pls-slate);
}

.woocommerce div.product div.images :is(.woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder) {
	overflow: hidden;
	border-radius: var(--pls-radius-card);
}

/* The quantity and the button in one row, whatever the width. A product with variants has them one box further in. */
.woocommerce div.product :is(form.cart:not(.variations_form, .grouped_form), .woocommerce-variation-add-to-cart) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
}

/* WooCommerce clears its floats with two empty boxes, which would stand in the row as its first and last item. */
.woocommerce div.product :is(form.cart:not(.variations_form, .grouped_form), .woocommerce-variation-add-to-cart)::before,
.woocommerce div.product :is(form.cart:not(.variations_form, .grouped_form), .woocommerce-variation-add-to-cart)::after {
	content: none;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce div.product form.cart .quantity .qty.qty {
	width: 76px;
	height: 54px;
	min-height: 54px;
	padding: 0 8px;
	border: 1.5px solid var(--pls-sage-light);
	border-radius: var(--pls-radius-control);
	background: #fff;
	color: var(--pls-ink);
	font-size: 16px;
	text-align: center;
}

.woocommerce div.product form.cart .quantity .qty.qty:focus {
	border-color: var(--pls-slate);
	box-shadow: 0 0 0 1.5px var(--pls-slate);
	outline: 0;
}

/* The one orange button of the view. Ink on orange, not white: white on #ff914d is too faint to read. */
.woocommerce div.product form.cart .button.single_add_to_cart_button.single_add_to_cart_button,
.woocommerce div.product form.cart .button.single_add_to_cart_button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button.single_add_to_cart_button:focus {
	display: inline-flex;
	/* 160 px: beside the quantity it still fits a phone of 320 px. */
	flex: 1 1 160px;
	align-items: center;
	justify-content: center;
	max-width: 360px;
	min-height: 54px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: var(--pls-radius-control);
	background: var(--pls-orange);
	box-shadow: none;
	color: var(--pls-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button.single_add_to_cart_button:hover {
	filter: brightness(0.93);
}

.woocommerce div.product form.cart .button.single_add_to_cart_button.single_add_to_cart_button:focus-visible {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

.woocommerce div.product .product_meta {
	color: var(--pls-slate);
}

.woocommerce div.product .product_meta a {
	padding: 14px 0;
	color: var(--pls-slate);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce div.product .product_meta a:hover {
	color: var(--pls-ink);
}

.woocommerce div.product .product_meta a:focus-visible {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

/* ---------- Pages of text ---------- */

/*
 * A column narrow enough to read, starting where the logo starts. Astra
 * centres whatever is narrower than its container; the selector repeats
 * Astra's own to outweigh it.
 */
.pls-text-page .entry-content[data-ast-blocks-layout] > * {
	max-width: 760px;
	margin-right: auto;
	margin-left: 0;
}

/*
 * Not everything on a page of text is text. The steps and the video of "Kaip
 * klijuoti" (the plugin's .pls-guide) are given the page's whole frame, and
 * the block decides by itself what to do with it: side by side where there is
 * room, one under another in a column where there is not. Held to the column
 * of text, it left a third of a wide screen with nothing on it. The films to
 * tick on "Plėvelių pavyzdžiai" (.pls-samples) are given it too: a list of
 * two dozen films is four in a row there, and two in the column.
 */
.pls-text-page .entry-content[data-ast-blocks-layout] > :is(.pls-guide, .pls-samples) {
	max-width: none;
}

.pls-text-page .entry-content :where(h2, h3, h4) {
	margin: 40px 0 12px;
	line-height: 1.25;
}

.pls-text-page .entry-content :where(h2) {
	font-size: 28px;
}

.pls-text-page .entry-content :where(h3) {
	font-size: 22px;
}

.pls-text-page .entry-content :where(h4) {
	font-size: 18px;
}

.pls-text-page .entry-content :where(p, ul, ol, table, figure) {
	margin-top: 0;
	margin-bottom: 16px;
}

.pls-text-page .entry-content :where(ul, ol) {
	padding-left: 1.25em;
}

.pls-text-page .entry-content :where(li) {
	margin-bottom: 6px;
}

.pls-text-page .entry-content :where(a) {
	color: var(--pls-slate);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pls-text-page .entry-content :where(a:hover) {
	color: var(--pls-ink);
}

.pls-text-page .entry-content :where(a:focus-visible) {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

/* A link in a line of text: the padding gives a finger 44 px to land on and moves nothing. */
.pls-text-page .entry-content :where(p a, li a) {
	padding: 12px 0;
}

/* ---------- Header: template-parts/header.php, design from reference/shop.html ---------- */

/*
 * It stays in sight while the page is scrolled (the owner, 2026-11-18): a
 * visitor who is far down a page gets to another one without scrolling back.
 * The reference pages let it scroll away.
 */
.pls-header {
	position: sticky;
	top: var(--pls-header-top);
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--pls-rule);
	color: var(--pls-ink);
	font-size: 16px;
	line-height: 1.6;
}

.pls-header *,
.pls-header *::before,
.pls-header *::after {
	box-sizing: border-box;
}

.pls-header :is(a, summary):focus-visible {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

.pls-header svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pls-header__bar {
	display: flex;
	align-items: center;
	gap: 8px 32px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 24px;
}

.pls-header__brand,
.pls-header__brand:hover,
.pls-header__brand:focus {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: var(--pls-touch-target);
	margin-right: auto;
	color: var(--pls-ink);
	text-decoration: none;
}

/* With the header's class in front: on a shop page ".woocommerce img" sets every picture to its natural height. */
.pls-header .pls-header__logo {
	display: block;
	width: auto;
	max-width: none;
	height: 50px;
}

.pls-header__name {
	display: flex;
	flex-direction: column;
	padding-left: 14px;
	border-left: 1px solid var(--pls-mist);
	line-height: 1.2;
}

.pls-header__title {
	font-family: var(--pls-font-heading);
	font-size: 20px;
	font-weight: 800;
	white-space: nowrap;
}

.pls-header__sub {
	color: var(--pls-slate);
	font-size: 13px;
}

.pls-header__nav {
	display: flex;
	align-items: center;
	gap: 0 28px;
}

.pls-header__link,
.pls-header__link:focus {
	display: inline-flex;
	align-items: center;
	min-height: var(--pls-touch-target);
	color: var(--pls-menu);
	text-decoration: none;
	white-space: nowrap;
}

.pls-header__link:hover {
	color: var(--pls-slate);
}

/* The page the visitor is on: an orange line under its link. */
.pls-header__link[aria-current="page"] {
	box-shadow: inset 0 -2px 0 var(--pls-orange);
	color: var(--pls-ink);
	font-weight: 600;
}

.pls-header__service,
.pls-header__service:hover,
.pls-header__service:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--pls-touch-target);
	padding: 0 18px;
	border-radius: var(--pls-radius-control);
	box-shadow: inset 0 0 0 1.5px var(--pls-slate);
	color: var(--pls-ink);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.pls-header__service:hover {
	filter: brightness(0.93);
}

.pls-header__service svg {
	stroke-width: 1.6;
}

.pls-header__tools {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pls-header__cart,
.pls-header__cart:hover,
.pls-header__cart:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--pls-touch-target);
	height: var(--pls-touch-target);
	color: var(--pls-ink);
}

.pls-header__cart svg {
	stroke-width: 1.7;
}

.pls-header__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--pls-orange);
	color: var(--pls-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

/* An empty cart has no number. */
.pls-header__count[hidden] {
	display: none;
}

/* The folded menu. Only below 1000 px. */
.pls-header__menu {
	display: none;
}

.pls-header__menu > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--pls-touch-target);
	height: var(--pls-touch-target);
	color: var(--pls-ink);
	cursor: pointer;
	list-style: none;
}

.pls-header__menu > summary::-webkit-details-marker {
	display: none;
}

.pls-header__menu > summary svg {
	stroke-width: 2;
}

.pls-header__menu > nav {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 8px 20px 20px;
	border-bottom: 1px solid var(--pls-rule);
	background: #fff;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	/* The header does not scroll away, so its open menu cannot either: on a phone held sideways it scrolls in itself. */
	max-height: calc(100vh - var(--pls-sticky-top));
	max-height: calc(100dvh - var(--pls-sticky-top));
	overflow-y: auto;
}

.pls-header__menu .pls-header__link {
	width: 100%;
}

/* In a column a line under the link would run the width of the screen. A mark at its side instead. */
.pls-header__menu .pls-header__link[aria-current="page"] {
	padding-left: 12px;
	box-shadow: inset 3px 0 0 var(--pls-orange);
}

.pls-header__menu .pls-header__service {
	margin-top: 8px;
}

/*
 * The row is 1158 px wide: the logo and the name, five links, the button and
 * the cart, with 32 px between the three groups. (The design's row had four
 * links and was 1027 px; "Durų dekoras" is the fifth.) From 1180 px down the
 * gaps close to 24 px, and it fits a screen of 1140 px with 18 px to spare.
 */
@media (max-width: 1179px) {
	.pls-header__bar {
		gap: 8px 24px;
	}

	.pls-header__nav {
		gap: 0 24px;
	}
}

/*
 * Below 1140 px the row does not fit however it is squeezed: the links fold
 * behind a menu button, and the bar is the 64 px one of
 * reference/product-mobile.html. A tablet on its side (1024 px) is on this
 * side of the fold since the row has five links.
 */
@media (max-width: 1139px) {
	.pls-header__bar {
		min-height: 64px;
		padding: 0 12px 0 20px;
	}

	.pls-header__brand,
	.pls-header__brand:hover,
	.pls-header__brand:focus {
		gap: 10px;
	}

	.pls-header .pls-header__logo {
		height: 40px;
	}

	.pls-header__name {
		padding-left: 10px;
	}

	.pls-header__title {
		font-size: 16px;
	}

	.pls-header__sub {
		font-size: 12px;
	}

	.pls-header__nav {
		display: none;
	}

	.pls-header__menu {
		display: block;
	}
}

/* The narrowest phones (320 px): the same bar with less air, so that the name is not cut. */
@media (max-width: 359px) {
	.pls-header__bar {
		gap: 8px;
		padding: 0 8px 0 20px;
	}

	.pls-header__brand,
	.pls-header__brand:hover,
	.pls-header__brand:focus {
		gap: 8px;
	}

	.pls-header__name {
		padding-left: 8px;
	}

	.pls-header__title {
		font-size: 15px;
	}

	.pls-header__tools {
		gap: 0;
	}
}

/* ---------- Footer: template-parts/footer.php, design from reference/shop.html ---------- */

.pls-footer {
	background: var(--pls-footer);
	color: var(--pls-ink);
	font-size: 16px;
	line-height: 1.6;
}

.pls-footer *,
.pls-footer *::before,
.pls-footer *::after {
	box-sizing: border-box;
}

.pls-footer a {
	color: var(--pls-slate);
	text-decoration: none;
}

.pls-footer a:hover {
	color: var(--pls-ink);
	text-decoration: underline;
}

.pls-footer a:focus-visible {
	outline: var(--pls-focus-ring);
	outline-offset: 2px;
}

.pls-footer__columns {
	display: flex;
	flex-wrap: wrap;
	gap: 36px 56px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 24px 28px;
}

.pls-footer__about,
.pls-footer__column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* 260 px, not the reference's 220: there the shop's name fits its column with 0.4 px to spare, and here it did not. */
.pls-footer__about {
	flex: 1 1 260px;
	gap: 10px;
}

.pls-footer__column {
	flex: 1 1 180px;
	gap: 6px;
}

.pls-footer .pls-footer__logo {
	display: block;
	width: auto;
	max-width: none;
	height: 56px;
	margin-bottom: 6px;
}

.pls-footer__company {
	color: var(--pls-slate);
}

.pls-footer .pls-footer__title {
	margin: 0 0 6px;
	font-family: var(--pls-font-heading);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--pls-ink);
}

.pls-footer .pls-footer__legal {
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 24px 32px;
	color: var(--pls-slate);
	font-size: 15px;
	text-align: center;
}

/*
 * A link in a line of text keeps the line's height. Padding above and below
 * an inline link moves nothing and gives a finger 44 px to land on.
 */
.pls-footer__legal a,
.woocommerce .woocommerce-breadcrumb a {
	padding: 13px 0;
}

/* On a touch screen every link is a target of its own: a phone, and a tablet however wide. */
@media (max-width: 899px), (pointer: coarse) {
	.pls-footer__about,
	.pls-footer__column {
		gap: 0;
	}

	.pls-footer__about a,
	.pls-footer__column a {
		display: inline-flex;
		align-items: center;
		min-height: var(--pls-touch-target);
	}

	.pls-footer .pls-footer__logo {
		margin-bottom: 14px;
	}
}
