/*
Theme Name: Marškinėlių centras
Theme URI: https://www.marskineliucentras.lt/
Author: Marškinėlių centras
Description: Minimalistinė blokinė tema prisistatymo svetainei: spauda ant tekstilės, spaudos būdai, tekstilės katalogas su antkainiu, Instagram ir kontaktų forma.
Version: 1.0.4
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marskineliu-centras
*/

/* ---------- Bendri ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(h1, h2, h3) { text-wrap: balance; }

/* ---------- Antraštė (plaukiojanti juosta) ---------- */
.mc-header-wrap { position: sticky; top: 0; z-index: 50; padding: 16px var(--wp--preset--spacing--30) 0; }
.mc-header { padding: 10px 14px 10px 22px; }
.mc-header-left { gap: 22px !important; }
.mc-announce { padding: 10px 16px; margin-top: 10px !important; font-size: 14px; }
.admin-bar .mc-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .mc-header-wrap { top: 46px; } }
.mc-header {
	background: var(--wp--preset--color--surface);
	border-radius: 22px;
	box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}
.mc-header .wp-block-image img { height: 54px; width: auto; display: block; }
.mc-divider { width: 1px; height: 26px; background: var(--wp--preset--color--line); }
@media (max-width: 900px) { .mc-divider { display: none; } }
@media (max-width: 600px) { .mc-header > .wp-block-buttons { display: none; } .mc-header-left { flex: 1 1 auto; justify-content: space-between !important; } .mc-insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-header .wp-block-navigation a { text-decoration: none; }
.mc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--contrast); }
.mc-announce {
	background: var(--wp--preset--color--primary-mid);
	border-radius: 12px;
}
.mc-announce a { text-decoration: none; font-weight: 600; }

/* ---------- Mygtukai ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
}
.wp-block-button__link:hover { filter: brightness(0.95); }
.mc-arrow-link a { text-decoration: none; font-weight: 800; }
.mc-arrow-link a::after { content: " →"; }

/* ---------- Ženkliukas virš antraštės ---------- */
.mc-badge {
	display: table;
	margin-left: auto !important;
	margin-right: auto !important;
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	padding: 8px 14px !important;
	font-weight: 600;
	font-size: 15px;
}
.mc-badge::before {
	content: "";
	display: inline-block;
	width: 12px; height: 12px;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	margin-right: 10px;
	vertical-align: -1px;
}
.mc-white .mc-badge { background: var(--wp--preset--color--primary-soft); }

/* ---------- Sekcijos ---------- */
.mc-main > * { margin-block-start: 0 !important; }
.mc-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.mc-hero { padding-top: 80px; padding-bottom: 48px; }
.mc-hero > h1 + p { margin-top: 22px !important; }
.mc-hero > .wp-block-buttons { margin-top: 28px !important; }
.mc-lead { color: var(--wp--preset--color--muted); font-size: 19px; max-width: 620px; margin-left: auto !important; margin-right: auto !important; }
.mc-left .mc-lead { margin-left: 0 !important; }
.mc-badge-left { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
.mc-soft { background: var(--wp--preset--color--primary-soft); }
.mc-white { background: var(--wp--preset--color--surface); }

/* ---------- Kortelės ---------- */
.mc-card {
	background: var(--wp--preset--color--surface);
	border-radius: 32px;
	overflow: hidden;
	height: 100%;
}
.mc-card .wp-block-image { margin: 0; }
.mc-card .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.mc-card-body { padding: 32px 36px 36px; }
.mc-card-sm { background: var(--wp--preset--color--surface); border-radius: 28px; padding: 30px; height: 100%; box-sizing: border-box; }
.mc-step {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 14px;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 800; font-size: 18px; margin: 0;
}
.wp-block-columns.mc-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.mc-equal > .wp-block-column > * { flex-grow: 1; }

/* ---------- Darbų juosta ---------- */
.mc-reel { display: flex; gap: 18px; justify-content: center; align-items: flex-end; overflow-x: auto; padding-bottom: 8px; }
.mc-reel .wp-block-image { flex: 0 0 220px; margin: 0; position: relative; }
.mc-reel .wp-block-image img { width: 220px; height: 380px; object-fit: cover; border-radius: 28px; display: block; }
.mc-reel .wp-block-image:nth-child(1) img, .mc-reel .wp-block-image:nth-child(5) img { height: 330px; }
.mc-reel .wp-block-image:nth-child(3) img { height: 420px; outline: 3px solid var(--wp--preset--color--primary); outline-offset: 4px; }
.mc-reel figcaption {
	position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
	margin: 0; white-space: nowrap;
	background: rgba(11, 15, 25, 0.78); color: #fff;
	font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px;
}
@media (max-width: 1200px) { .mc-reel { justify-content: flex-start; } }

/* ---------- Gamintojai ---------- */
.mc-brands p { font-size: 22px; font-weight: 800; color: var(--wp--preset--color--muted); letter-spacing: -0.02em; margin: 0; }

/* ---------- Spaudos būdų blokas ---------- */
.mc-methods { background: var(--wp--preset--color--primary-soft); border-radius: 36px; padding: 18px; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mc-methods > * { margin: 0 !important; }
.mc-method { background: var(--wp--preset--color--surface); border-radius: 20px; padding: 20px 22px; }
.mc-method h3 { margin: 0; font-size: 20px; }
.mc-method p { margin: 4px 0 0; font-size: 14px; color: var(--wp--preset--color--muted); }
.mc-method.is-accent { background: var(--wp--preset--color--primary); grid-column: span 2; }
.mc-method.is-accent p { color: var(--wp--preset--color--contrast); font-weight: 600; }
.mc-method a { text-decoration: none; }

/* ---------- Spaudos būdų kortelės ---------- */
.mc-tag { display: inline-block; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast); font-weight: 700; font-size: 13px; padding: 5px 12px !important; border-radius: 14px; margin: 0; }
.mc-facts { border-top: 1px solid var(--wp--preset--color--line); padding-top: 14px; font-size: 14px; }
.mc-facts p { margin: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
.mc-facts strong { font-weight: 600; text-align: right; }

/* ---------- Lentelė ---------- */
.mc-table { background: var(--wp--preset--color--surface); border-radius: 28px; overflow-x: auto; margin: 0; }
.mc-table table { min-width: 720px; border-collapse: collapse; width: 100%; }
.mc-table th, .mc-table td { border: none; border-bottom: 1px solid #EEF1F4; padding: 16px 22px; text-align: left; }
.mc-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--muted); }
.mc-table thead { border-bottom: none; }

.mc-cta { background: var(--wp--preset--color--contrast); color: #fff; border-radius: 30px; padding: 32px 36px !important; margin-top: 32px !important; }
.mc-cta h3, .mc-cta p { color: #fff; }

/* ---------- Instagram / tinklelis ---------- */
.mc-insta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; width: 100%; }
.mc-insta-grid a { display: block; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #EEF1F4; }
.mc-insta-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Kontaktai ---------- */
.mc-contact-box { background: var(--wp--preset--color--surface); border-radius: 40px; padding: clamp(24px, 5vw, 56px) !important; }
.mc-contact-lines p { font-size: 18px; font-weight: 600; margin: 6px 0; }
.mc-contact-lines a { text-decoration: none; }
.mc-map iframe { width: 100%; height: 240px; border: 0; border-radius: 24px; display: block; }
.mc-form { background: var(--wp--preset--color--base); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.mc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.mc-form input[type="text"], .mc-form input[type="email"], .mc-form input[type="tel"], .mc-form textarea {
	border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 14px 16px;
	font: inherit; font-size: 15px; background: #fff; color: inherit;
}
.mc-form button {
	height: 54px; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast);
	border: none; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.mc-form .mc-hp { position: absolute; left: -9999px; }
.mc-notice { padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.mc-notice.ok { background: #DCFCE7; color: #14532D; }
.mc-notice.err { background: #FEE2E2; color: #7F1D1D; }

/* ---------- Tekstilė ---------- */
.mc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.mc-pills a { display: inline-block; padding: 11px 18px; border-radius: 14px; border: 1px solid var(--wp--preset--color--line); background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.mc-pills a.is-active, .mc-pills a:hover { background: var(--wp--preset--color--contrast); color: #fff; border-color: var(--wp--preset--color--contrast); }
.mc-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.mc-product { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.mc-product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #EEF1F4; }
.mc-product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.mc-product-meta { font-size: 13px; color: var(--wp--preset--color--muted); }
.mc-product h3 { margin: 0; font-size: 19px; }
.mc-product-price { margin-top: auto; padding-top: 12px; border-top: 1px solid #EEF1F4; display: flex; justify-content: space-between; align-items: baseline; }
.mc-product-price strong { font-size: 26px; font-weight: 800; }
.mc-product .mc-btn-dark { text-align: center; background: var(--wp--preset--color--contrast); color: #fff; text-decoration: none; padding: 12px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.mc-demo-note { border: 1px dashed var(--wp--preset--color--primary); background: #F0FAFE; border-radius: 18px; padding: 16px 20px; margin-bottom: 24px; font-size: 15px; }
/* WooCommerce kortelių suapvalinimas */
.woocommerce ul.products li.product, .wc-block-grid__product { background: #fff; border-radius: 28px; padding-bottom: 18px !important; overflow: hidden; }
.woocommerce ul.products li.product a img { border-radius: 0; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding: 0 18px; }

/* ---------- Katalogai ---------- */
.mc-catalog { background: #fff; border-radius: 24px; padding: 22px; border: 1px solid var(--wp--preset--color--line); }
.mc-catalog p { margin: 0; }
.mc-catalog a { text-decoration: none; }

/* ---------- Poraštė ---------- */
.mc-footer { padding-top: 28px; padding-bottom: 40px; }
.mc-footer-inner { border-top: 1px solid var(--wp--preset--color--line); padding-top: 28px; color: var(--wp--preset--color--muted); font-size: 14px; }
.mc-footer .wp-block-image img { height: 40px; width: auto; }

/* ---------- Meniu tarpai ir skirtukai ---------- */
.mc-header .wp-block-navigation__container { gap: 8px 0 !important; align-items: center; }
.mc-header .wp-block-navigation-item > a { padding: 10px 16px; margin: 0 7px; line-height: 1.2; border-radius: 12px; transition: background-color .15s; }
.mc-header .wp-block-navigation__container > .wp-block-navigation-item:first-child > a { margin-left: 0; }
.mc-header .wp-block-navigation-item > a:hover, .mc-header .wp-block-navigation-item > a:focus-visible, .mc-header .wp-block-navigation-item > a[aria-current="page"]:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast); }
.mc-header .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item { border-left: 1px solid var(--wp--preset--color--line); }
/* Mobiliajame meniu (atidarytame) – be skirtukų */
.mc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-left: 0 !important; }
.mc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a { padding: 10px 14px; margin: 0; font-size: 20px; }
