/*
Theme Name: OlegMobil
Theme URI: https://olegmobil.com
Author: UAB „Teleksas“
Author URI: https://www.teleksas.lt
Description: Katalogo tema OlegMobil telefonų parduotuvei su pristatymu. WooCommerce veikia tik kaip katalogas: be krepšelio ir atsiskaitymo, su skambučio, WhatsApp ir užklausų mygtukais.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 8.0
WC requires at least: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olegmobil
*/

:root {
	--om-accent: #C2410C;
	--om-ink: #111827;
	--om-ink-2: #4B5563;
	--om-muted: #6B7280;
	--om-line: #E5E7EB;
	--om-line-2: #D1D5DB;
	--om-field: #9CA3AF;
	--om-bg: #F5F6F8;
	--om-card: #FFFFFF;
	--om-tile: #EEF0F3;
	--om-dark: #111827;
	--om-dark-2: #1F2937;
	--om-wa: #0E7A3E;
	--om-blue: #1D4ED8;
	--om-radius: 16px;
	--om-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--om-bg);
	color: var(--om-ink);
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--om-ink); }
a:hover { color: #B23A0A; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 16px; background: #fff; color: var(--om-ink); border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--om-blue); outline-offset: 2px; }

.om-wrap { max-width: var(--om-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.om-section { padding-top: 56px; padding-bottom: 56px; }
.om-h2 { margin: 0 0 20px; font-size: 32px; font-weight: 800; }

/* Mygtukai */
.om-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.om-btn svg { flex: none; }
.om-btn--lg { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; }
.om-btn--dark { background: var(--om-dark); color: #fff; }
.om-btn--dark:hover { background: #000; color: #fff; }
.om-btn--wa { background: var(--om-wa); color: #fff; }
.om-btn--wa:hover { background: #0B6332; color: #fff; }
.om-btn--accent { background: var(--om-accent); color: #fff; }
.om-btn--accent:hover { filter: brightness(0.92); color: #fff; }
.om-btn--ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.om-btn--ghost:hover { background: #fff; color: var(--om-ink); }

/* Antraštė */
.om-header { background: #fff; border-bottom: 1px solid var(--om-line); }
.om-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.om-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--om-ink); }
.om-logo__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--om-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.om-logo__text { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.om-logo img { max-height: 48px; width: auto; }
.om-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.om-nav a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; font-size: 15px; }
.om-nav .current-menu-item > a, .om-nav .current-menu-ancestor > a { color: var(--om-accent); }
.om-nav ul ul { display: none; }
.om-header__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.om-header__nav { border-top: 1px solid var(--om-line); }
.om-header__navin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.om-search { position: relative; flex: 0 1 240px; display: flex; }
.om-search input { width: 100%; height: 36px; padding: 0 38px 0 14px; border: 1px solid var(--om-line-2); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--om-ink); }
.om-search input::placeholder { color: var(--om-muted); }
.om-search input:focus { border-color: var(--om-ink-2); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.18); }
.om-search button { position: absolute; top: 0; right: 2px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--om-ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.om-search button:hover { color: var(--om-ink); }

/* Pagrindinis blokas */
.om-hero { background: var(--om-dark); color: #fff; }
.om-hero__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.om-hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.om-hero__eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FDBA8C; }
.om-hero h1, .om-hero__title { margin: 0; font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.om-hero__lead { margin: 0; font-size: 19px; line-height: 1.55; color: #D1D5DB; max-width: 560px; }
.om-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.om-hero__media { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.om-hero__media img { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }

/* Pranašumai */
.om-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.om-benefit { background: var(--om-card); border: 1px solid var(--om-line); border-radius: var(--om-radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.om-benefit svg { color: var(--om-accent); }
.om-benefit h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.om-benefit p { margin: 0; font-size: 15px; color: var(--om-ink-2); }

/* Kategorijos */
.om-cats-section { padding-top: 32px; }
.om-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.om-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 14px 12px 16px; background: #fff; border: 1px solid var(--om-line); border-radius: var(--om-radius); text-decoration: none; text-align: center; transition: border-color .15s, box-shadow .15s; }
.om-cat:hover { border-color: var(--om-ink); box-shadow: 0 4px 14px rgba(17,24,39,.08); color: var(--om-ink); }
.om-cat__img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--om-tile); overflow: hidden; }
.om-cat__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.om-cat__name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.om-cat__count { font-size: 13px; color: var(--om-ink-2); }
.om-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.om-pills a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; border: 1px solid var(--om-line-2); text-decoration: none; font-weight: 700; }
.om-pills a:hover, .om-pills .is-current a { background: var(--om-dark); border-color: var(--om-dark); color: #fff; }

/* Prekių tinklelis ir kortelės */
.om-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.om-head-row .om-h2 { margin: 0; }
.om-head-row > a { font-weight: 700; }

ul.products, .om-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.om-card { background: var(--om-card); border: 1px solid var(--om-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.om-card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--om-tile); }
.om-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.om-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.om-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; color: #fff; background: var(--om-accent); }
.om-badge--blue { background: var(--om-blue); }
.om-badge--grey { background: #374151; }
.om-badge--ok { background: #DCFCE7; color: #14532D; }
.om-badge--wait { background: #FEF3C7; color: #78350F; }
.om-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.om-card__title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: 0; }
.om-card__title a { text-decoration: none; }
.om-card__meta { margin: 0; font-size: 14px; color: var(--om-ink-2); }
.om-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.om-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 24px; font-weight: 800; }
.om-price del { order: 2; font-size: 15px; font-weight: 500; color: var(--om-muted); }
.om-price ins { text-decoration: none; }
.om-price .screen-reader-text { position: absolute !important; }

/* Formos */
.om-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.om-form .om-full { grid-column: 1 / -1; }
.om-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.om-form input, .om-form select, .om-form textarea {
	min-height: 48px; padding: 10px 14px; border: 1px solid var(--om-field); border-radius: 10px;
	font: inherit; font-weight: 500; font-size: 16px; background: #fff; color: var(--om-ink); width: 100%;
}
.om-form textarea { min-height: 96px; resize: vertical; }
.om-form .om-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.om-form__note { margin: 0; font-size: 13px; color: var(--om-ink-2); }
.om-notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; margin: 0 0 16px; }
.om-notice--ok { background: #DCFCE7; color: #14532D; }
.om-notice--err { background: #FEE2E2; color: #7F1D1D; }

.om-sell { background: #fff; border-top: 1px solid var(--om-line); border-bottom: 1px solid var(--om-line); }
.om-sell__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.om-sell__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.om-sell__text h2 { margin: 0; font-size: 36px; font-weight: 800; }
.om-sell__text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--om-ink-2); }
.om-sell__form { flex: 1 1 480px; min-width: 0; }

/* Atsiliepimai */
.om-reviews { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--om-line); border-radius: var(--om-radius); padding: 28px; }
.om-reviews p { margin: 0; font-size: 18px; font-weight: 600; }

/* Kontaktai */
.om-contacts { background: var(--om-dark); color: #fff; }
.om-contacts__in { display: flex; flex-wrap: wrap; gap: 40px; }
.om-contacts__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.om-contacts h2 { margin: 0; font-size: 36px; font-weight: 800; }
.om-contacts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; font-size: 17px; }
.om-contacts dt { color: #9CA3AF; }
.om-contacts dd { margin: 0; white-space: pre-line; }
.om-contacts a { color: #fff; font-weight: 700; }
.om-contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.om-contacts__map { flex: 1 1 420px; min-width: 0; min-height: 320px; border-radius: 18px; overflow: hidden; background: var(--om-dark-2); }
.om-contacts__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Poraštė */
.om-footer { background: #0B1220; color: #9CA3AF; font-size: 14px; }
.om-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.om-footer a { color: #D1D5DB; }
.om-footer__links, .om-footer__menu { display: flex; flex-wrap: wrap; gap: 20px; }
.om-footer__menu { list-style: none; margin: 0; padding: 0; }

/* Apatinė juosta telefone */
.om-callbar { display: none; }
@media (max-width: 720px) {
	body { padding-bottom: 76px; }
	.om-callbar {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--om-line); box-shadow: 0 -4px 16px rgba(17,24,39,.08);
	}
	.om-header__cta { display: none; }
	.om-search { flex: 1 1 100%; margin-bottom: 10px; }
	.om-search input { font-size: 16px; height: 40px; }
	.om-search button { height: 40px; width: 40px; }
	.om-nav { width: 100%; overflow-x: auto; }
	.om-nav ul { flex-wrap: nowrap; gap: 0 20px; }
	.om-nav a { white-space: nowrap; }
	.om-hero__in { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
	.om-hero h1, .om-hero__title { font-size: 34px; }
	.om-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.om-cat__name { font-size: 15px; }
	.om-hero__lead { font-size: 17px; }
	.om-h2, .om-sell__text h2, .om-contacts h2 { font-size: 26px; }
	.om-section { padding-top: 40px; padding-bottom: 40px; }
	.om-form { grid-template-columns: minmax(0, 1fr); }
	.om-single__title { font-size: 28px; }
}

/* WooCommerce: katalogas */
.om-shop { padding-top: 24px; padding-bottom: 64px; }
.woocommerce-breadcrumb { font-size: 14px; color: var(--om-ink-2); margin: 0 0 16px; }
.woocommerce-breadcrumb a { color: var(--om-ink-2); }
.woocommerce-products-header__title, .om-shop .page-title, .om-page-title { margin: 0 0 16px; font-size: 36px; font-weight: 800; }
.term-description { color: var(--om-ink-2); max-width: 760px; margin-bottom: 16px; }
.woocommerce-result-count { margin: 0 0 16px; color: var(--om-ink-2); font-size: 14px; float: left; }
.woocommerce-ordering { float: right; margin: 0 0 16px; }
.woocommerce-ordering select { min-height: 44px; padding: 0 12px; border: 1px solid var(--om-field); border-radius: 10px; font: inherit; background: #fff; }
.woocommerce-result-count + .woocommerce-ordering + ul.products, .woocommerce-ordering + ul.products { clear: both; }
.woocommerce-pagination ul { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--om-line-2); text-decoration: none; font-weight: 700; }
.woocommerce-pagination .current { background: var(--om-dark); color: #fff; border-color: var(--om-dark); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--om-line); margin: 0 0 16px; }

/* WooCommerce: prekės puslapis */
.om-single { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.om-single__gallery { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.om-single__main { aspect-ratio: 1 / 1; border-radius: 20px; background: var(--om-tile); overflow: hidden; }
.om-single__main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.om-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.om-thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--om-tile); overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.om-thumbs button[aria-current="true"] { border-color: var(--om-ink); }
.om-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.om-single__summary { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.om-single__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.om-single__title { margin: 0; font-size: 38px; font-weight: 800; }
.om-single .om-price { margin-top: 0; font-size: 38px; }
.om-single .om-price del { font-size: 20px; }
.om-specs { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; background: #fff; border: 1px solid var(--om-line); border-radius: var(--om-radius); padding: 20px; }
.om-specs dt { color: var(--om-ink-2); }
.om-specs dd { margin: 0; font-weight: 700; }
.om-single__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.om-single__actions .om-btn { min-height: 56px; font-size: 17px; }
.om-box { background: #fff; border: 1px solid var(--om-line); border-radius: var(--om-radius); padding: 20px; }
.om-box h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: 0; }
.om-single__desc { margin-top: 48px; max-width: 820px; }
.om-single__desc h2 { font-size: 24px; }
.related.products { margin-top: 56px; }
.related.products > h2 { font-size: 28px; font-weight: 800; margin: 0 0 20px; }

/* Puslapiai */
.om-page { padding-top: 40px; padding-bottom: 64px; }
.om-content { max-width: 820px; font-size: 17px; line-height: 1.7; }
.om-content h2 { font-size: 26px; margin: 32px 0 12px; }
.om-content h3 { font-size: 20px; margin: 24px 0 8px; }
