/*
Theme Name: Padjad
Theme URI: https://padjad.ee
Author: Kristjan Sepp
Author URI: https://seo-agentuur.ee
Description: Käsitsi kirjutatud WooCommerce'i teema padjad.ee jaoks. Pilvine, õhuline, valge-sinine magamistarvete pood.
Version: 2.2.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: padjad
Tags: e-commerce, woocommerce, minimal, light, accessibility-ready
WC requires at least: 8.0
WC tested up to: 9.8
*/

/* ==========================================================================
   PADJAD.EE — "pilved"
   Variable names are deliberately unchanged from v1 so that
   assets/css/woocommerce.css inherits this palette with no edits.
   ========================================================================== */

/* 00 · TOKENS ============================================================= */

:root {
	/* sky */
	--sky-1:   #cfe4f7;
	--sky-2:   #e3f0fb;
	--sky-3:   #eef6fd;

	/* surfaces — v1 names, cloud values */
	--paper:   #fbfdff;
	--paper-2: #eef6fd;
	--paper-3: #dfeefb;
	--white:   #ffffff;

	/* ink */
	--ink:     #1f3550;
	--ink-2:   #5c7691;
	--ink-3:   #93a9bf;

	/* lines */
	--rule:      #dbe8f4;
	--rule-soft: #eaf2fa;

	/* accent — v1 called this clay, now it is the sky blue */
	--clay:      #4a86c4;
	--clay-deep: #356ea8;
	--blue-soft: #a9cbe9;
	--flag:      #d2603f;

	/* type — one family, swap these three lines to change the whole site */
	--sans:  "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: var(--sans);
	--mono:  var(--sans);
	--w-thin: 200;
	--w-body: 300;
	--w-med:  400;
	--w-bold: 500;

	--pad:      clamp(20px, 4vw, 44px);
	--maxw:     1280px;
	--maxw-txt: 68ch;
	--gap:      clamp(20px, 2.4vw, 32px);
	--section:  clamp(56px, 7vw, 96px);

	--r:      18px;
	--r-sm:   12px;
	--r-pill: 44px;
	--line:   1px solid var(--rule);
	--line-s: 1px solid var(--rule-soft);

	--shadow:   0 30px 60px -34px rgba(45, 95, 145, .34);
	--shadow-s: 0 14px 30px -18px rgba(45, 95, 145, .30);

	--head-h: 84px;
	--ease:   cubic-bezier(.22, .61, .36, 1);
	--dur:    .42s;
}

/* 01 · RESET & BASE ======================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--head-h) + 24px);
}

/* The sky lives on the body so the sticky header can be transparent over it
   on every template, not just the homepage. */
body {
	margin: 0;
	color: var(--ink);
	font: var(--w-body) 16px/1.75 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	background-color: var(--paper);
	background-image: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-3) 46%, var(--paper) 100%);
	background-repeat: no-repeat;
	background-size: 100% 460px;
}
body.is-front {
	background-image: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 62%, var(--paper) 100%);
	background-size: 100% 900px;
}
body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }
a { color: inherit; text-decoration: none; }

p a,
.entry-content a:not(.btn) {
	color: var(--clay-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	text-decoration-color: var(--blue-soft);
	transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
p a:hover, .entry-content a:not(.btn):hover { text-decoration-color: currentColor; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
hr { border: 0; border-top: var(--line); margin: 2.4rem 0; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--clay); color: #fff; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--ink); color: #fff; padding: 14px 20px;
	font: var(--w-med) 13px/1 var(--sans); border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 02 · TYPOGRAPHY ========================================================= */

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--sans);
	font-weight: var(--w-thin);
	line-height: 1.06;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.d1 { font-size: clamp(42px, 6.4vw, 92px); }
.d2 { font-size: clamp(28px, 3.4vw, 46px); }
.d3 { font-size: clamp(23px, 2.4vw, 32px); font-weight: var(--w-body); letter-spacing: -.024em; }
.d4 { font-size: 21px; font-weight: var(--w-med); letter-spacing: -.02em; }

.label {
	display: inline-block;
	font: var(--w-med) 11.5px/1 var(--sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.label--ink  { color: var(--ink); }
.label--clay { color: var(--clay); }

.eyebrow {
	display: inline-block;
	font: var(--w-med) 12px/1 var(--sans);
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--clay);
}

.num { font-variant-numeric: tabular-nums; }

.lead {
	font-size: clamp(17px, 1.4vw, 18.5px);
	line-height: 1.75;
	color: var(--ink-2);
	max-width: 52ch;
	margin: 0;
}
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.7; }

/* 03 · LAYOUT ============================================================= */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 900px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .label, .section--ink .eyebrow { color: var(--blue-soft); }
.section--ink .lead { color: rgba(255, 255, 255, .74); }

.section--sky {
	background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* centred section masthead */
.sec-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	margin-bottom: clamp(30px, 3.6vw, 46px);
}
.sec-head__body { display: contents; }
.sec-head__meta { display: contents; }
.sec-head p { color: var(--ink-2); max-width: 54ch; margin: 0; }
.sec-head__link { margin-top: 6px; }

/* 04 · BUTTONS & FORMS ==================================================== */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 17px 34px;
	border-radius: var(--r-pill);
	background: var(--clay);
	color: #fff;
	border: 1.5px solid var(--clay);
	font: var(--w-med) 15px/1 var(--sans);
	box-shadow: 0 12px 26px -14px rgba(74, 134, 196, .75);
	cursor: pointer;
	transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); box-shadow: none; }
.btn--ghost:hover { background: #fff; border-color: var(--blue-soft); color: var(--clay-deep); }

.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--clay-deep); }

.btn--sm { padding: 13px 22px; font-size: 14px; }
.btn--block { width: 100%; }

.tlink {
	display: inline-flex; align-items: center; gap: 9px;
	font: var(--w-med) 15px/1 var(--sans);
	color: var(--clay-deep);
	transition: gap .22s var(--ease);
}
.tlink:hover { gap: 15px; }
.tlink svg { width: 14px; height: 9px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }

input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="password"], input[type="number"], input[type="url"], input[type="date"],
select, textarea {
	width: 100%;
	padding: 15px 18px;
	background: #fff;
	color: var(--ink);
	border: 1.5px solid var(--rule);
	border-radius: var(--r-sm);
	font-family: var(--sans);
	font-weight: var(--w-body);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
	-webkit-appearance: none; appearance: none;
}
textarea { min-height: 150px; resize: vertical; }
select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f3550' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--blue-soft);
	box-shadow: 0 0 0 4px rgba(169, 203, 233, .3);
}
::placeholder { color: var(--ink-3); opacity: 1; }

label {
	display: block; margin-bottom: 8px;
	font: var(--w-med) 14px/1 var(--sans); color: var(--ink-2);
}

.field-inline {
	display: flex; align-items: stretch;
	background: #fff; border: 1.5px solid var(--rule);
	border-radius: var(--r-pill); padding: 5px 5px 5px 22px;
}
.field-inline input { flex: 1; border: 0; background: none; padding: 12px 0; }
.field-inline input:focus { box-shadow: none; }
.field-inline button {
	flex: none; padding: 13px 26px; border-radius: var(--r-pill);
	background: var(--clay); color: #fff; font: var(--w-med) 14px/1 var(--sans);
	transition: background .2s var(--ease);
}
.field-inline button:hover { background: var(--clay-deep); }

/* 05 · HEADER / NAV / DRAWERS ============================================= */

.announce {
	background: var(--paper-2);
	color: var(--ink-2);
	font: var(--w-med) 12px/1 var(--sans);
	letter-spacing: .08em;
	overflow: hidden;
}
.announce__in { display: flex; align-items: center; justify-content: center; gap: 28px; height: 40px; }
.announce__sep { color: var(--blue-soft); }
/* Only one line fits on a phone, so the three take turns rather than two of
   them simply never being seen. Items are children 1, 3 and 5 — the hidden
   separators still count. */
@media (max-width: 700px) {
	.announce__in { gap: 0; position: relative; }
	.announce__sep { display: none; }
	.announce__item {
		position: absolute; inset: 0;
		display: flex; align-items: center; justify-content: center;
		opacity: 0;
		animation: announce-cycle 13.5s var(--ease) infinite;
	}
	.announce__item:nth-child(3) { animation-delay: -9s; }
	.announce__item:nth-child(5) { animation-delay: -4.5s; }
}

@keyframes announce-cycle {
	0%, 2%    { opacity: 0; transform: translateY(7px); }
	5%, 28%   { opacity: 1; transform: none; }
	31%, 100% { opacity: 0; transform: translateY(-7px); }
}

/* Without motion there is no rotation to see, so fall back to the first line. */
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
	.announce__item { animation-name: none !important; opacity: 0; }
	.announce__item:first-child { opacity: 1; }
}

.site-head {
	position: sticky; top: 0; z-index: 90;
	background: transparent;
	transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-head.is-stuck {
	background: rgba(251, 253, 255, .92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	box-shadow: 0 10px 30px -22px rgba(45, 95, 145, .5);
}
.site-head__in { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); height: var(--head-h); }
.site-head__l { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* gap separates the mark from the wordmark only — the wordmark is one span,
   so no stray space creeps in before the .ee */
.brand {
	display: inline-flex; align-items: center; gap: 10px;
	font: var(--w-body) 27px/1 var(--sans);
	letter-spacing: -.03em; white-space: nowrap;
}
.brand__wm { display: inline-block; }
.brand__dot { color: var(--clay); }
.brand img { max-height: 34px; width: auto; }

.brand__mark { width: 37px; height: 31px; flex: none; display: block; }
.brand__mark-back  { fill: var(--blue-soft); opacity: .5; }
.brand__mark-front { fill: var(--clay); }
.brand:hover .brand__mark-front { fill: var(--clay-deep); }
.site-foot .brand__mark-back  { fill: var(--blue-soft); opacity: .35; }
.site-foot .brand__mark-front { fill: var(--blue-soft); }

.nav { display: flex; }
.nav ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a { display: block; padding: 8px 0; font: var(--w-body) 16px/1 var(--sans); transition: color .2s var(--ease); }
.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-parent > a { color: var(--clay); }

.nav li { position: relative; }
.nav .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 210px;
	background: #fff; border-radius: var(--r); padding: 12px 0;
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu a { padding: 9px 22px; font-size: 15px; }
.nav .sub-menu a:hover { color: var(--clay); }

.utils { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.util {
	width: 44px; height: 44px; border-radius: var(--r-pill);
	display: grid; place-items: center;
	background: #fff; box-shadow: var(--shadow-s);
	transition: transform .2s var(--ease);
}
.util:hover { transform: translateY(-2px); }
.util svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.util:hover svg { stroke: var(--clay); }
.util__txt { display: none; }

.util--cart {
	width: auto; padding: 0 20px; gap: 9px;
	display: inline-flex; align-items: center;
	background: var(--ink); color: #fff;
	font: var(--w-med) 14px/1 var(--sans);
}
.util--cart svg { stroke: #fff; }
.util--cart:hover svg { stroke: #fff; }
.util--cart .util__txt { display: none; }
@media (min-width: 1100px) { .util--cart .util__txt { display: inline; } }

.util__count {
	min-width: 22px; height: 22px;
	display: inline-grid; place-items: center; padding: 0 7px;
	background: var(--clay); color: #fff; border-radius: var(--r-pill);
	font-size: 12px; font-variant-numeric: tabular-nums;
}

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-s); place-items: center; }
.burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 4px; }
.burger.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 1000px) {
	.nav { display: none; }
	.burger { display: grid; }
	.site-head__in { gap: 14px; }
}

.scrim {
	position: fixed; inset: 0; z-index: 95;
	background: rgba(31, 53, 80, .34);
	backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
	opacity: 0; visibility: hidden;
	transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.scrim.is-on { opacity: 1; visibility: visible; }

.drawer {
	position: fixed; top: 0; bottom: 0; right: 0; z-index: 100;
	width: min(430px, 100%);
	display: flex; flex-direction: column;
	background: var(--paper);
	border-radius: var(--r) 0 0 var(--r);
	transform: translateX(100%);
	transition: transform var(--dur) var(--ease);
	visibility: hidden;
	box-shadow: -30px 0 70px -40px rgba(45, 95, 145, .5);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer--left { right: auto; left: 0; border-radius: 0 var(--r) var(--r) 0; transform: translateX(-100%); width: min(360px, 100%); }
.drawer--left.is-open { transform: translateX(0); }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px var(--pad); flex: none; }
.drawer__close { width: 38px; height: 38px; border-radius: var(--r-pill); background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-s); }
.drawer__close svg { width: 15px; height: 15px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
.drawer__close:hover svg { stroke: var(--clay); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--pad) 28px; -webkit-overflow-scrolling: touch; }
.drawer__foot { flex: none; padding: 22px var(--pad); background: var(--paper-2); }

.mnav a {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 16px 0;
	border-bottom: var(--line-s);
	font-size: 22px; font-weight: var(--w-body); letter-spacing: -.02em;
}
.mnav a:hover { color: var(--clay); }
.mnav .sub-menu a { font-size: 16px; padding-left: 16px; color: var(--ink-2); }
.mnav__i { font-size: 12px; color: var(--ink-3); }

.search-pane {
	position: fixed; inset: 0 0 auto; z-index: 100;
	background: var(--paper);
	border-radius: 0 0 var(--r) var(--r);
	padding: clamp(26px, 5vw, 60px) 0;
	transform: translateY(-100%); visibility: hidden;
	transition: transform var(--dur) var(--ease), visibility var(--dur);
	box-shadow: var(--shadow);
}
.search-pane.is-open { transform: translateY(0); visibility: visible; }
.search-pane__row { display: flex; align-items: center; gap: 16px; }
.search-pane input[type="search"] {
	flex: 1; border: 0; background: none; padding: 12px 0;
	font-size: clamp(24px, 4vw, 44px); font-weight: var(--w-thin); letter-spacing: -.03em;
}
.search-pane input[type="search"]:focus { box-shadow: none; }
.search-pane__hint { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-pane__hint a {
	padding: 8px 16px; background: #fff; border-radius: var(--r-pill);
	box-shadow: var(--shadow-s); font-size: 14px; color: var(--ink-2);
}
.search-pane__hint a:hover { color: var(--clay); }

/* 06 · FOOTER ============================================================= */

.site-foot { background: var(--ink); color: rgba(255, 255, 255, .74); }
.site-foot a { color: rgba(255, 255, 255, .74); transition: color .2s var(--ease); }
.site-foot a:hover { color: #fff; }
.site-foot .label { color: var(--blue-soft); }

.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gap); padding-block: clamp(48px, 6vw, 80px); }
.foot-brand { font-size: clamp(28px, 3.2vw, 40px); font-weight: var(--w-thin); letter-spacing: -.03em; color: #fff; }
.foot-col ul { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; font-size: 15px; }
.foot-note { max-width: 34ch; margin-top: 16px; font-size: 14.5px; line-height: 1.7; }

.foot-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 13.5px; color: rgba(255, 255, 255, .55);
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.foot-pay span { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-pill); font-size: 12.5px; }

@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }

/* 07 · HOMEPAGE =========================================================== */

.hero { position: relative; overflow: hidden; }
.hero__in { position: relative; z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 22px; }
.hero__in .lead { max-width: 52ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.hero__mini { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.hero__mini span { display: flex; gap: 8px; align-items: center; }
.hero__mini svg { width: 16px; height: 16px; stroke: var(--clay); fill: none; stroke-width: 2; }

.scene { position: relative; margin-top: -6px; z-index: 2; }
.scene svg { width: 100%; height: auto; display: block; }
.chip {
	position: absolute; z-index: 4;
	background: #fff; border-radius: var(--r-pill); padding: 11px 18px;
	/* the hairline matters: chips often sit on top of a white cloud */
	border: 1px solid var(--rule);
	box-shadow: var(--shadow-s);
	font: var(--w-med) 14px/1 var(--sans);
	display: flex; gap: 10px; align-items: center;
}
.chip b { font-weight: var(--w-med); color: var(--clay); }
.chip--a { left: 7%; top: 30%; }
.chip--b { right: 8%; top: 16%; }
.chip--c { right: 13%; bottom: 36%; }
@media (max-width: 860px) { .chip { display: none; } }

/* floating trust card */
.trust {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--r);
	box-shadow: var(--shadow);
	margin-top: -40px; position: relative; z-index: 6; overflow: hidden;
}
.trust__i { padding: 24px; display: flex; gap: 14px; align-items: center; border-right: var(--line-s); }
.trust__i:last-child { border-right: 0; }
.trust svg { width: 24px; height: 24px; stroke: var(--clay); fill: none; stroke-width: 1.5; flex: none; }
.trust b { display: block; font-weight: var(--w-med); font-size: 15px; }
.trust small { color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 1080px) {
	.trust { grid-template-columns: 1fr 1fr; }
	.trust__i:nth-child(2) { border-right: 0; }
	.trust__i:nth-child(-n+2) { border-bottom: var(--line-s); }
}
@media (max-width: 560px) {
	.trust { grid-template-columns: 1fr; }
	.trust__i { border-right: 0; border-bottom: var(--line-s); }
	.trust__i:last-child { border-bottom: 0; }
}

/* category cloud cards */
.cls { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.cl {
	background: #fff; border-radius: var(--r); padding: 24px;
	box-shadow: var(--shadow-s);
	display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cl:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cl__im {
	width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 6px;
	background: linear-gradient(180deg, var(--sky-3), var(--paper-3));
}
.cl h3 { font-size: 25px; font-weight: var(--w-body); letter-spacing: -.028em; }
.cl small { color: var(--ink-2); font-size: 14px; }
@media (max-width: 1080px) { .cls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cls { grid-template-columns: 1fr; } }

/* product grid — shared with the Woo loop */
.pgrid, .woocommerce ul.products {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
	margin: 0; padding: 0; list-style: none;
}
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .pgrid, .pgrid--3, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pgrid, .pgrid--3, .woocommerce ul.products { grid-template-columns: 1fr; } }

.pcard {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border-radius: var(--r); overflow: hidden;
	box-shadow: var(--shadow-s);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard__media {
	position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
	background: linear-gradient(180deg, #f2f8fe, #e2eefa);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__link { position: absolute; inset: 0; z-index: 1; }

.pcard__flag {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	background: #fff; color: var(--clay);
	border-radius: var(--r-pill); padding: 7px 14px;
	font: var(--w-med) 12px/1 var(--sans);
	box-shadow: var(--shadow-s);
}
.pcard__flag--sale { background: var(--clay); color: #fff; }
.pcard__flag--soft { background: #fff; color: var(--ink-2); }

.pcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; text-align: center; align-items: center; }
.pcard__meta { font: var(--w-med) 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pcard__title { font-size: 21px; font-weight: var(--w-body); letter-spacing: -.026em; }
.pcard:hover .pcard__title { color: var(--clay-deep); }
.pcard__price { font-size: 22px; font-weight: var(--w-med); font-variant-numeric: tabular-nums; }
.pcard__price del { font-size: 15px; font-weight: var(--w-body); color: var(--ink-3); margin-right: 8px; }
.pcard__price ins { text-decoration: none; color: var(--clay); }
.pcard__add { margin-top: auto; padding-top: 12px; width: 100%; }
.pcard__add .btn, .pcard .btn { width: 100%; }
.pcard .added_to_cart { display: none; }

.pstars { display: flex; gap: 3px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.pstars svg { width: 13px; height: 13px; fill: var(--blue-soft); }

/* firmness picker */
.pick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pick__col {
	background: #fff; border-radius: var(--r); padding: 28px;
	box-shadow: var(--shadow-s);
	display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pick__col:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pick__meter { display: flex; gap: 5px; align-items: flex-end; height: 26px; }
.pick__meter i { display: block; width: 24px; background: var(--paper-3); border-radius: 3px; }
.pick__meter i.on { background: var(--clay); }
.pick__meter i:nth-child(1) { height: 9px; }
.pick__meter i:nth-child(2) { height: 15px; }
.pick__meter i:nth-child(3) { height: 21px; }
.pick__meter i:nth-child(4) { height: 26px; }
.pick__t { font-size: 26px; font-weight: var(--w-body); letter-spacing: -.028em; }
.pick__d { font-size: 15px; color: var(--ink-2); flex: 1; margin: 0; }
@media (max-width: 900px) { .pick__grid { grid-template-columns: 1fr; } }

/* editorial split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, var(--sky-3), var(--paper-3)); aspect-ratio: 5 / 4; box-shadow: var(--shadow-s); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: var(--line-s); vertical-align: top; }
.spec th { width: 40%; font-weight: var(--w-med); font-size: 14px; color: var(--ink-3); }
.spec td { font-size: 15px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* reviews */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.quote {
	background: #fff; border-radius: var(--r); padding: 28px;
	box-shadow: var(--shadow-s);
	display: flex; flex-direction: column; gap: 16px;
}
.quote__stars { display: flex; gap: 3px; }
.quote__stars svg { width: 14px; height: 14px; fill: var(--blue-soft); }
.quote__t { font-size: 18px; line-height: 1.6; color: var(--ink); flex: 1; }
.quote__by { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* journal rows */
.jrow {
	display: grid; grid-template-columns: 120px 1fr 260px 60px; gap: var(--gap);
	align-items: center; padding: 20px 0; border-bottom: var(--line);
	transition: padding-left .3s var(--ease);
}
.jrow:first-of-type { border-top: var(--line); }
.jrow:hover { padding-left: 12px; }
.jrow__t { font-size: 22px; font-weight: var(--w-body); letter-spacing: -.026em; }
.jrow:hover .jrow__t { color: var(--clay-deep); }
.jrow__x { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrow__go { font-size: 14px; color: var(--ink-3); text-align: right; }
@media (max-width: 1080px) { .jrow { grid-template-columns: 110px 1fr 50px; } .jrow__x { display: none; } }
@media (max-width: 600px)  { .jrow { grid-template-columns: 1fr; gap: 6px; } .jrow__go { display: none; } }

/* closing band */
.band { background: linear-gradient(180deg, var(--paper), var(--paper-2)); text-align: center; }
.band .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.news__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.news__form { display: flex; flex-direction: column; gap: 12px; }
.news__fine { font-size: 13.5px; color: rgba(255, 255, 255, .55); max-width: 42ch; margin: 0; }
.section--ink .field-inline { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.section--ink .field-inline input { color: #fff; }
.section--ink .field-inline input::placeholder { color: rgba(255, 255, 255, .5); }
@media (max-width: 820px) { .news__in { grid-template-columns: 1fr; } }

/* 08 · BLOG & PAGES ======================================================= */

.page-head { padding-block: clamp(34px, 4.6vw, 68px) clamp(24px, 3vw, 40px); background: linear-gradient(180deg, var(--sky-2), var(--paper)); }
.page-head__in { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a:hover { color: var(--clay); }
.crumbs .sep { opacity: .5; }

.entry-content { max-width: var(--maxw-txt); font-size: 17px; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { font-size: clamp(25px, 2.6vw, 34px); font-weight: var(--w-body); margin-top: 1.9em; }
.entry-content h3 { font-size: clamp(20px, 2vw, 25px); font-weight: var(--w-med); margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { list-style: disc; margin-bottom: .5em; }
.entry-content ol li { list-style: decimal; }
.entry-content blockquote {
	margin: 2em 0; padding: 24px 28px; background: #fff;
	border-radius: var(--r); box-shadow: var(--shadow-s);
	font-size: 19px; line-height: 1.6;
}
.entry-content img { border-radius: var(--r); }
.entry-content figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 13px 12px; border-bottom: var(--line-s); text-align: left; }
.entry-content code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }

.plist { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 940px) { .plist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plist { grid-template-columns: 1fr; } }
.pitem { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pitem:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pitem > a { display: block; padding-bottom: 22px; }
.pitem__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); margin-bottom: 16px; }
.pitem__media img { width: 100%; height: 100%; object-fit: cover; }
.pitem__t { font-size: 21px; font-weight: var(--w-body); letter-spacing: -.026em; margin: 8px 0; padding: 0 22px; }
.pitem .label, .pitem p { padding: 0 22px; }
.pitem:hover .pitem__t { color: var(--clay-deep); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	background: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow-s);
	font-size: 15px; transition: background .2s var(--ease), color .2s var(--ease);
}
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--clay); color: #fff; }

.err404 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: clamp(60px, 10vw, 140px); }
.err404__n { font-size: clamp(80px, 18vw, 220px); font-weight: var(--w-thin); line-height: .8; letter-spacing: -.05em; color: var(--paper-3); }

/* Contact page — [padjad_kontakt] */

/* The reading measure is right for prose and wrong for a two-column form, so
   the cap lifts only on pages that actually carry the block. */
.entry-content:has(.kontakt) { max-width: none; }

.kontakt { display: grid; grid-template-columns: 1.4fr .6fr; gap: var(--gap); align-items: start; margin-top: 10px; }
@media (max-width: 880px) { .kontakt { grid-template-columns: 1fr; } }

.kontakt__form, .kontakt__side {
	background: #fff; border-radius: var(--r);
	box-shadow: var(--shadow-s); padding: clamp(22px, 3vw, 38px);
}

.kontakt__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 560px) { .kontakt__fields { grid-template-columns: 1fr; } }
.kontakt__row { margin: 0; }
.kontakt__row--wide { grid-column: 1 / -1; }
.kontakt__submit { margin-top: 4px; }
.kontakt__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kontakt__note {
	display: flex; flex-direction: column; gap: 4px;
	margin-bottom: 26px; padding: 16px 20px;
	border-radius: var(--r-sm); font-size: 15.5px;
}
.kontakt__note b { font-weight: var(--w-med); }
.kontakt__note span { color: var(--ink-2); }
.kontakt__note--ok { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--blue-soft); }
.kontakt__note--bad { background: #fdf4f1; box-shadow: inset 0 0 0 1.5px #eec8bd; }

.kontakt__side { display: flex; flex-direction: column; gap: 18px; }
.kontakt__list { display: flex; flex-direction: column; gap: 16px; }
.kontakt__list li {
	display: flex; flex-direction: column; gap: 4px;
	padding-bottom: 16px; border-bottom: var(--line-s); font-size: 16px;
}
.kontakt__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.kontakt__list a:hover { color: var(--clay-deep); }

/* 09 · UTILITIES & MOTION ================================================= */

.stack { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; } .stack-14 { gap: 14px; } .stack-22 { gap: 22px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.center { text-align: center; align-items: center; }
.mt-0 { margin-top: 0; }
.tar { text-align: right; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.rv { opacity: 1; transform: none; }
}

body.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-head { top: 46px; } }

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { /* required by WP theme check */ }
