/*
Theme Name: nadrukujto
Theme URI: https://www.nadrukujto.pl
Author: nadrukujto.pl
Description: Motyw sklepu nadrukujto.pl – odważny streetwear: czerń, żółty #FFD400, grube napisy jak nadruk z folii flex. Stworzony pod WooCommerce i edytor witryny.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nadrukujto
*/

/* Drobne poprawki, których nie da się wyrazić w theme.json */
.ndt-promo p { margin: 0; }
.ndt-tile { aspect-ratio: 3 / 4; }
.ndt-tile a { text-decoration: none; color: inherit; }
.ndt-tile a::after { content: ""; position: absolute; inset: 0; }
.ndt-tile { position: relative; transition: transform .15s ease; }
.ndt-tile:hover { transform: translateY(-4px); }
.ndt-sticker { display: inline-block; transform: rotate(-4deg); }
.ndt-header-search .wp-block-search__input { border: 2px solid var(--wp--preset--color--ink); border-right: 0; min-height: 48px; padding: 0 16px; }
.ndt-header-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.ndt-header-search .wp-block-search__button { margin: 0; min-height: 48px; }
.wc-block-mini-cart__button { background: var(--wp--preset--color--yellow); font-weight: 800; min-height: 44px; }
.wp-block-navigation .ndt-nav-highlight > a { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--yellow) !important; padding: 8px 12px; }
:where(.wp-block-woocommerce-product-collection) .wc-block-components-product-image img { background: var(--wp--preset--color--sand); }
.wc-block-components-product-badge, .wc-block-components-product-sale-badge { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--yellow); border: 0; border-radius: 0; font-weight: 800; text-transform: uppercase; }
@media (max-width: 781px) {
	.ndt-hide-mobile { display: none !important; }
}

/* Nagłówek na tablecie/telefonie (zsynchronizowane z „Dodatkowym CSS” w edytorze witryny) */
@media (max-width: 781px) {
	header .wp-block-group:has(> .wp-block-site-logo) { display: grid !important; grid-template-columns: 1fr auto; gap: 12px !important; align-items: center; }
	header .wp-block-group:has(> .wp-block-site-logo) > .wp-block-search { grid-column: 1 / -1; order: 3; }
	header .wp-block-group:has(> .wp-block-site-logo) .wp-block-site-logo img { width: 190px !important; }
	header > .wp-block-navigation .wp-block-navigation__container { flex-wrap: nowrap !important; overflow-x: auto; gap: 18px !important; padding-bottom: 4px; }
	header > .wp-block-navigation .wp-block-navigation-item { flex: none; }
	.ndt-promo { flex-direction: column; gap: 2px !important; text-align: center; }
}

/* ---- Baner świąteczny „sweter” ---- */
.ndt-xmas{position:relative;overflow:hidden;background:#0E3B26;color:#fff;padding:112px var(--wp--style--root--padding-right,24px) 112px var(--wp--style--root--padding-left,24px)!important;margin-top:0!important}
.ndt-xmas::before,.ndt-xmas::after{content:"";position:absolute;left:0;right:0;height:45px;background:url(assets/img/pas.svg) repeat-x 0 0/48px 45px;image-rendering:pixelated}
.ndt-xmas::before{top:24px}.ndt-xmas::after{bottom:24px}
.ndt-xmas__tag{display:inline-block;background:#FFD400;color:#111;font-weight:800;font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;padding:6px 10px;margin:0}
.ndt-xmas .ndt-xmas__title{color:#fff;font-size:clamp(2.6rem,5.4vw,5rem);margin:.35em 0 .3em}
.ndt-xmas__hl{background:none;color:#FFD400}
.ndt-xmas__lead{font-size:1.2rem;line-height:1.5;color:rgba(255,255,255,.86);max-width:34em}
.ndt-xmas__btns{margin-top:1.6rem;gap:12px}
.ndt-btn-yellow .wp-block-button__link{background:#FFD400;color:#111;border:2px solid #FFD400}
.ndt-btn-yellow .wp-block-button__link:hover{background:#fff;border-color:#fff;color:#111}
.ndt-btn-ghost .wp-block-button__link{background:transparent;color:#fff;border:2px solid #fff}
.ndt-btn-ghost .wp-block-button__link:hover{background:#fff;color:#111}
.ndt-xmas__info{margin-top:1.4rem;font-size:.875rem;color:rgba(255,255,255,.7)}
.ndt-xmas__img{margin:0}.ndt-xmas__img img{width:100%;height:auto;display:block;filter:drop-shadow(0 18px 30px rgba(0,0,0,.25))}
@media (max-width:781px){
 .ndt-xmas{padding-top:88px!important;padding-bottom:80px!important}
 .ndt-xmas::before,.ndt-xmas::after{height:33px;background-size:35px 33px}
 .ndt-xmas::before{top:18px}.ndt-xmas::after{bottom:18px}
 .ndt-xmas__cols{flex-direction:column-reverse}
 .ndt-xmas .ndt-xmas__title{font-size:2.5rem}
 .ndt-xmas__lead{font-size:1.05rem}
 .ndt-xmas__btns .wp-block-button{flex:1 1 100%}.ndt-xmas__btns .wp-block-button__link{width:100%}
}
