/*
Theme Name: iPrekyba
Theme URI: https://www.iprekyba.eu/
Description: iPrekyba.EU parduotuvės tema spausdintuvams ir toneriams. Twenty Twenty-Five vaikinė tema su WooCommerce stiliais.
Author: iPrekyba.EU
Template: twentytwentyfive
Version: 1.0.4
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: iprekyba
*/

/* ---------- CMYK juosta ---------- */
.ip-cmyk {
	height: 5px;
	background: linear-gradient(90deg, #00AEEF 0 25%, #EC008C 25% 50%, #FFD200 50% 75%, #0F1B2D 75% 100%);
}

/* ---------- Antraštė ---------- */
.wp-block-template-part:has(> .ip-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}
.ip-header { box-shadow: 0 1px 0 var(--wp--preset--color--accent-6); }
.admin-bar .wp-block-template-part:has(> .ip-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-block-template-part:has(> .ip-header) { top: 0; position: relative; } }

.ip-topbar a { color: inherit; text-decoration: none; }
.ip-logo a { text-decoration: none; letter-spacing: -0.02em; }
.ip-logo .ip-logo-dot { color: var(--wp--preset--color--accent-1); }

.ip-header .wp-block-search { flex: 1 1 320px; max-width: 520px; }
.ip-header .wp-block-search__input,
.ip-hero .wp-block-search__input {
	border: 2px solid var(--wp--preset--color--accent-6);
	border-radius: 10px 0 0 10px;
	padding: 0.7rem 1rem;
	font-size: 0.95rem;
}
.ip-hero .wp-block-search__input { border-color: transparent; padding: 1rem 1.2rem; font-size: 1rem; }
.ip-header .wp-block-search__inside-wrapper,
.ip-hero .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.ip-header .wp-block-search__button,
.ip-hero .wp-block-search__button {
	margin-left: 0;
	border-radius: 0 10px 10px 0;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	padding: 0 1.3rem;
	font-weight: 600;
}
.ip-hero .wp-block-search__button { background: #FFD200; color: #0F1B2D; }

.ip-catnav a { text-decoration: none; font-weight: 600; }
.ip-catnav a:hover { color: var(--wp--preset--color--accent-1); }

/* ---------- Hero ---------- */
.ip-hero { position: relative; overflow: hidden; }
.ip-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0,174,239,.35), rgba(0,174,239,0) 70%);
	pointer-events: none;
}
.ip-hero > * { position: relative; z-index: 1; }
.ip-badge {
	display: inline-block;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 999px;
	padding: .3rem .9rem !important;
}
.ip-finder {
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.ip-chips { gap: .5rem !important; }
.ip-chips .wp-block-button__link {
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--accent-6);
	padding: .45rem .9rem;
	font-size: .9rem;
	font-weight: 600;
}
.ip-chips .wp-block-button__link:hover { background: var(--wp--preset--color--accent-2); border-color: var(--wp--preset--color--accent-1); }

/* ---------- Privalumai ---------- */
.ip-usp p strong { display: block; font-size: 1rem; }
.ip-usp .wp-block-column { position: relative; padding-left: 3.25rem; }
.ip-usp .wp-block-column::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15rem;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 10px;
	background: var(--ip-dot, #00AEEF);
	opacity: .15;
}
.ip-usp .wp-block-column::after {
	content: "✓";
	position: absolute;
	left: 0;
	top: .15rem;
	width: 2.4rem;
	line-height: 2.4rem;
	text-align: center;
	font-weight: 800;
	color: var(--ip-dot, #00AEEF);
}
.ip-usp .wp-block-column:nth-child(1) { --ip-dot: #00AEEF; }
.ip-usp .wp-block-column:nth-child(2) { --ip-dot: #EC008C; }
.ip-usp .wp-block-column:nth-child(3) { --ip-dot: #E0A800; }
.ip-usp .wp-block-column:nth-child(4) { --ip-dot: #0F1B2D; }

/* ---------- Kategorijų kortelės ---------- */
.ip-cat {
	position: relative;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	border-top: 4px solid var(--ip-c, #00AEEF) !important;
	height: 100%;
}
.ip-cat:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(15,27,45,.1);
}
.ip-cat h3 a { text-decoration: none; color: inherit; }
.ip-cat h3 a::after { content: ""; position: absolute; inset: 0; }
.ip-cat .ip-more { color: var(--wp--preset--color--accent-1); font-weight: 600; }
.ip-cats .wp-block-column:nth-child(1) .ip-cat { --ip-c: #00AEEF; }
.ip-cats .wp-block-column:nth-child(2) .ip-cat { --ip-c: #EC008C; }
.ip-cats .wp-block-column:nth-child(3) .ip-cat { --ip-c: #FFD200; }

/* ---------- Prekių tinklelis (WooCommerce) ---------- */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product {
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	padding: 1rem !important;
	transition: box-shadow .15s ease, transform .15s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover,
.wc-block-product:hover {
	box-shadow: 0 12px 30px rgba(15,27,45,.08);
	transform: translateY(-2px);
}
.woocommerce ul.products li.product img { border-radius: 10px; background: var(--wp--preset--color--accent-5); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .98rem !important;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	min-height: 2.6em;
}
.woocommerce ul.products li.product .price,
.wc-block-components-product-price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--accent-3) !important;
	font-weight: 800;
	font-size: 1.15rem;
}
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del { color: var(--wp--preset--color--accent-4); font-weight: 400; font-size: .9em; }
.woocommerce span.onsale {
	background: #EC008C;
	color: #fff;
	border-radius: 999px;
	min-height: auto;
	min-width: auto;
	padding: .25rem .7rem;
	line-height: 1.4;
	font-weight: 700;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-product-button__button {
	background: var(--wp--preset--color--accent-1) !important;
	color: #fff !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	padding: .65rem 1rem !important;
	border: 0 !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--wp--preset--color--accent-3) !important; }
.woocommerce .star-rating span::before { color: #E0A800; }

/* Atsargų būsena */
.woocommerce div.product .stock.in-stock { color: #1E9E5A; font-weight: 600; }
.woocommerce div.product .stock.out-of-stock { color: #D12F2F; font-weight: 600; }

/* ---------- Gamintojai ---------- */
.ip-brands p {
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--wp--preset--color--accent-4);
	opacity: .8;
	transition: opacity .15s, color .15s;
}
.ip-brands p:hover { opacity: 1; color: var(--wp--preset--color--accent-3); }
.ip-brands a { text-decoration: none; color: inherit; }

/* ---------- Poraštė ---------- */
.ip-footer a { color: inherit; text-decoration: none; opacity: .85; }
.ip-footer a:hover { opacity: 1; text-decoration: underline; }
.ip-footer .ip-list p { margin: .35rem 0; }
.ip-footer .ip-cmyk { width: 140px; margin-top: 1.5rem; border-radius: 3px; }
.ip-footer .wp-block-separator { margin: 2.5rem 0 1.25rem; }
