/* Plastidip tvarka: mobilusis meniu. */
.pdm {
	--pd-red: #ea0029;
	--pd-dark: #1c1c1c;
	--pd-text: #161616;
	--pd-muted: #767676;
	--pd-line: #ececec;
	--pd-soft: #f5f5f4;
	position: fixed;
	inset: 0;
	z-index: 100001;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--pd-text);
	-webkit-font-smoothing: antialiased;
}
.pdm[hidden] { display: none; }
html.pdm-lock, html.pdm-lock body { overflow: hidden !important; }

.pdm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, .55);
	opacity: 0;
	transition: opacity .25s ease;
}
.pdm-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(88vw, 400px);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 8px 0 32px rgba(0, 0, 0, .18);
	transform: translateX(-102%);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}
.pdm.is-open .pdm-overlay { opacity: 1; }
.pdm.is-open .pdm-panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.pdm-overlay, .pdm-panel { transition: none; }
}

.pdm a { color: inherit; text-decoration: none; }
.pdm button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; min-height: 0; line-height: 1; }
.pdm svg { display: block; }
.pdm :focus-visible { outline: 2px solid var(--pd-red); outline-offset: 2px; }

/* Viršus: paieška ir uždarymas vienoje eilutėje ant tamsaus fono. */
.pdm-top {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 6px 12px 16px;
	background: var(--pd-dark);
}
.pdm-close {
	flex: none;
	width: 44px;
	height: 44px;
	display: grid !important;
	place-items: center;
	color: #fff !important;
	border-radius: 50% !important;
}
.pdm-close:hover { background: rgba(255, 255, 255, .08) !important; }
.pdm-close svg { width: 24px; height: 24px; }

.pdm-search {
	position: relative;
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.pdm-search input[type="search"] {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 44px 0 44px;
	border: 0 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--pd-text);
	font: 500 15px/48px Montserrat, system-ui, sans-serif;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.pdm-search input[type="search"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(234, 0, 41, .45) !important; }
.pdm-search input::placeholder { color: #8d8d8d; opacity: 1; }
.pdm-search input::-webkit-search-cancel-button { display: none; }
.pdm-search-ico {
	position: absolute;
	left: 14px;
	top: 14px;
	color: #8d8d8d;
	pointer-events: none;
}
.pdm-search-ico svg { width: 20px; height: 20px; }
.pdm-search-clear {
	position: absolute;
	right: 6px;
	top: 6px;
	width: 36px;
	height: 36px;
	display: grid !important;
	place-items: center;
	color: #8d8d8d !important;
}
.pdm-search-clear[hidden] { display: none !important; }
.pdm-search-clear svg { width: 18px; height: 18px; }

.pdm-scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
}
.pdm-main[hidden], .pdm-results[hidden] { display: none; }

/* Plytelė „Ratlankiams“: viena, kompaktiška eilutė. */
.pdm-tiles { display: grid; gap: 10px; }
.pdm-tile {
	position: relative;
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	padding: 14px 16px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--pd-soft);
	transition: transform .15s ease;
}
.pdm-tile:active { transform: scale(.98); }
.pdm-tile-ico { grid-row: span 2; width: 34px; height: 34px; color: var(--pd-text); }
.pdm-tile-ico svg { width: 34px; height: 34px; }
.pdm-tile strong { align-self: end; font-size: 16px; font-weight: 700; line-height: 1.2; }
.pdm-tile span:last-child { align-self: start; font-size: 12px; line-height: 1.35; color: var(--pd-muted); }
.pdm .pdm-tile--ratas { background: var(--pd-dark); color: #fff; }
.pdm-tile--ratas .pdm-tile-ico { color: var(--pd-red); }
.pdm-tile--ratas span:last-child { color: rgba(255, 255, 255, .7); }

/* Skyrių antraštės. */
.pdm-sec { margin-top: 24px; }
.pdm-sec h3 {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pd-muted);
}

/* Kategorijos. */
.pdm-cats, .pdm-sub { list-style: none; margin: 0; padding: 0; }
.pdm-cat { border-bottom: 1px solid var(--pd-line); }
.pdm-cat:first-child { border-top: 1px solid var(--pd-line); }
.pdm-row { display: flex; align-items: center; min-height: 54px; }
.pdm-row > a { flex: 1; padding: 14px 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.pdm-toggle {
	flex: none;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	display: grid !important;
	place-items: center;
	border-radius: 10px !important;
	color: var(--pd-text) !important;
}
.pdm-toggle:hover { background: var(--pd-soft) !important; }
.pdm-toggle svg { width: 22px; height: 22px; transition: transform .2s ease; }
.pdm-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.pdm-sub { padding: 0 0 10px; }
.pdm-sub[hidden] { display: none; }
.pdm-sub a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 6px 10px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #2b2b2b;
}
.pdm-sub a:hover, .pdm-sub a[aria-current="page"] { background: var(--pd-soft); }
.pdm-sub a[aria-current="page"] { font-weight: 700; }
.pdm-sub a.pdm-all { color: var(--pd-red); font-weight: 600; gap: 4px; padding-left: 10px; }
.pdm-all svg { width: 16px; height: 16px; }

/* Informacinės nuorodos. */
.pdm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.pdm-links a {
	padding: 11px 10px;
	border-radius: 12px;
	text-align: center;
	background: var(--pd-soft);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

/* Kontaktai. */
.pdm-contact { margin-top: 22px; padding: 14px; border-radius: 16px; background: var(--pd-soft); }
.pdm-call {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--pd-red);
	color: #fff !important;
}
.pdm-call-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.pdm-call-ico svg { width: 20px; height: 20px; }
.pdm-call small { display: block; font-size: 12px; line-height: 1.2; opacity: .85; }
.pdm-call strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.pdm-cinfo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pdm-cinfo li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; line-height: 1.35; color: #3a3a3a; }
.pdm-cinfo svg { flex: none; width: 18px; height: 18px; color: var(--pd-muted); }
.pdm-cinfo a { text-decoration: underline; text-decoration-color: #c8c8c8; text-underline-offset: 3px; }

/* Paieškos rezultatai. */
.pdm-r-msg { margin: 8px 0; font-size: 14px; line-height: 1.5; color: var(--pd-muted); }
.pdm-r-msg a { color: var(--pd-red); font-weight: 600; }
.pdm-r-list { list-style: none; margin: 0; padding: 0; }
.pdm-r-list li { margin: 0; border-bottom: 1px solid var(--pd-line); }
.pdm-r-list a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 0; }
.pdm-r-list img, .pdm-r-noimg { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--pd-soft); }
.pdm-r-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pdm-r-price { font-size: 13px; font-weight: 600; color: #3a3a3a; }
.pdm-r-out { margin-left: 8px; font-weight: 500; color: var(--pd-muted); }
.pdm-r-all {
	display: block;
	margin-top: 14px;
	padding: 13px;
	border-radius: 12px;
	background: var(--pd-dark);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

/* Kompiuteryje meniu nerodomas. */
@media (min-width: 1025px) { .pdm { display: none !important; } }
