/*
Theme Name: Milusie
Theme URI: https://www.milusie.jarczok.pl
Description: Ciepły, ręcznie robiony motyw dla sklepu Milusie (child Twenty Twenty-Five).
Author: Milusie
Template: twentytwentyfive
Version: 1.3.0
Text Domain: milusie
*/

/* --- Bazowe --- */
.wp-block-button__link { border-radius: 8px; }
h1, h2, h3 { letter-spacing: 0.2px; }
.site-title a:hover { color: var(--wp--preset--color--terracotta); }
.wp-block-post-featured-image img, .wc-block-components-product-image img { border-radius: 10px; }

/* --- Animacje przyciskow i kart --- */
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(46,42,38,.16); }
.wc-block-components-product-image img { transition: transform .35s ease; }
.wc-block-product:hover img, li.wc-block-product-template__item:hover img { transform: scale(1.04); }

/* --- HERO --- */
.milusie-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #F8E2C4 0%, #F1D3A8 40%, #E9C08A 70%, #F7E7CD 100%) !important;
	background-size: 200% 200% !important;
	animation: milusieGradient 22s ease-in-out infinite;
	border-bottom: 3px dashed rgba(166,90,58,.30);
	min-height: 360px;
}
.milusie-hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'><g fill='none' stroke='%23C1663F' stroke-width='2.4' stroke-linecap='round' opacity='0.22'><path d='M2 16 q12 12 24 0'/><path d='M26 16 q12 12 24 0'/><path d='M-10 34 q12 12 24 0'/><path d='M14 34 q12 12 24 0'/><path d='M38 34 q12 12 24 0'/><path d='M2 -2 q12 12 24 0'/><path d='M26 -2 q12 12 24 0'/></g></svg>");
	background-size: 52px 52px;
	opacity: .7;
	pointer-events: none;
	animation: milusieStitches 90s linear infinite;
}
.milusie-hero::after {
	content: "";
	position: absolute; right: -70px; top: -70px; width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, rgba(193,102,63,.34), rgba(193,102,63,0) 70%);
	pointer-events: none;
	animation: milusieFloat 18s ease-in-out infinite;
}
@keyframes milusieGradient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes milusieFloat { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(-18px,22px,0)} }
@keyframes milusieStitches { from{background-position:0 0} to{background-position:52px 52px} }

/* Wejscie tresci hero */
.milusie-hero h1, .milusie-hero p, .milusie-hero .wp-block-buttons {
	animation: milusieIn .9s ease both;
}
.milusie-hero p { animation-delay: .12s; }
.milusie-hero .wp-block-buttons { animation-delay: .24s; }
@keyframes milusieIn { from{opacity:0; transform: translateY(14px)} to{opacity:1; transform:none} }

/* Plywajace klebki */
.milusie-hero .milusie-deco { position: absolute; pointer-events: none; opacity: .92; filter: drop-shadow(0 10px 18px rgba(46,42,38,.18)); }
.milusie-deco-1 { width: 195px; height: 195px; right: 2%; top: 6%; animation: milusieBob 6s ease-in-out infinite; }
.milusie-deco-2 { width: 120px; height: 120px; right: 9%; bottom: 7%; animation: milusieBob 9s ease-in-out infinite reverse; opacity: .9; }
.milusie-deco svg { transform-origin: 50% 50%; animation: milusieSpin 60s linear infinite; }
.milusie-deco-2 svg { animation: milusieSpin 80s linear infinite reverse; }
@keyframes milusieSpin { to { transform: rotate(360deg); } }
@keyframes milusieBob { 0%,100%{ transform: translateY(0) rotate(-10deg) } 50%{ transform: translateY(-26px) rotate(10deg) } }
@media (max-width: 900px) {
	.milusie-deco-1 { width: 130px; height: 130px; right: 4%; top: 4%; }
	.milusie-deco-2 { width: 88px; height: 88px; right: 8%; bottom: 8%; display: block; }
}

/* Animowana nitka (scieg) biegnaca przez dol hero */
.milusie-thread { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none; opacity: .9; }
.milusie-thread svg { width: 100%; height: 100%; display: block; }
.milusie-thread path { animation: milusieThread 16s linear infinite; }
@keyframes milusieThread { from{stroke-dashoffset:0} to{stroke-dashoffset:-180} }

/* Kotek z klębkiem (wektor) */
.milusie-cat { position: absolute; right: 3%; bottom: 6%; width: 300px; height: 250px; pointer-events: none; animation: milusieBob 8s ease-in-out infinite; }
.milusie-cat svg { width: 100%; height: 100%; }
.milusie-cat .m-tail { transform-origin: 74px 166px; animation: catTail 3.2s ease-in-out infinite; }
.milusie-cat .m-yball { transform-origin: 198px 150px; animation: catBall 7s linear infinite; }
@keyframes catTail { 0%,100%{ transform: rotate(-8deg) } 50%{ transform: rotate(10deg) } }
@keyframes catBall { to { transform: rotate(360deg) } }
@media (max-width: 900px) { .milusie-cat { width: 210px; height: 175px; right: 2%; bottom: 6%; } }

/* Tekst hero nie wchodzi pod kłębki (desktop) */
@media (min-width: 901px) {
	.milusie-hero h1,
	.milusie-hero p { max-width: 47%; }
}

/* --- Pasek CTA --- */
.milusie-band { background: linear-gradient(180deg,#E7DCCB 0%,#F3EADB 100%) !important; border-top: 3px dashed rgba(166,90,58,.35); }

/* --- Komunikaty WooCommerce w naszej kolorystyce --- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	border-radius: 10px !important;
	border-top: none !important;
	background: #F6F0E6 !important;
	color: #2E2A26 !important;
	border-left: 5px solid #C1663F !important;
	box-shadow: 0 6px 16px rgba(46,42,38,.08);
}
.woocommerce-message { border-left-color: #7C8B6F !important; }
.woocommerce-error { border-left-color: #B23B3B !important; }
.woocommerce-info { border-left-color: #C1663F !important; }
.woocommerce-message::before { color: #7C8B6F !important; }
.woocommerce-info::before { color: #C1663F !important; }
.woocommerce-error::before { color: #B23B3B !important; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
	background: #C1663F !important; color: #fff !important; border-radius: 8px !important;
}
/* komunikaty blokowe (nowy checkout/koszyk) */
.wc-block-components-notice-banner { border-radius: 10px !important; border: none !important; }
.wc-block-components-notice-banner.is-success { background: #F1F4EC !important; box-shadow: inset 0 0 0 2px #7C8B6F; color:#2E2A26 !important; }
.wc-block-components-notice-banner.is-info { background: #F6F0E6 !important; box-shadow: inset 0 0 0 2px #C1663F; color:#2E2A26 !important; }
.wc-block-components-notice-banner.is-error { background: #FBEDEA !important; box-shadow: inset 0 0 0 2px #B23B3B; color:#2E2A26 !important; }
.wc-block-components-notice-banner > svg { fill: #C1663F !important; }
.wc-block-components-notice-banner.is-success > svg { fill: #7C8B6F !important; }
.wc-block-components-notice-banner.is-error > svg { fill: #B23B3B !important; }

/* --- Dostepnosc --- */
/* Uwaga: dekoracje pozostaja animowane takze przy systemowym "reduce motion",
   zeby byly widoczne (swiadoma decyzja wlasciciela sklepu, ruch jest lagodny). */

/* === HERO Z WIDEO (eksperyment, tlo z Grok Imagine) === */
.milusie-hero { background: #F6E7D2 !important; min-height: 460px; }
.milusie-hero::before, .milusie-hero::after { display: none !important; }
.milusie-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.milusie-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.milusie-hero-media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(251,241,226,.95) 0%, rgba(251,241,226,.70) 45%, rgba(251,241,226,.22) 100%);
}
.milusie-hero > h1, .milusie-hero > p, .milusie-hero > .wp-block-buttons { position: relative; z-index: 2; }
.milusie-cat, .milusie-thread { display: none !important; }
/* Wideo pozostaje widoczne takze przy "reduce motion" (swiadomy wybor wlasciciela). */

/* === KLASYCZNY KOSZYK / KASA w naszej palecie === */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce #place_order {
	background: #C1663F !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0.7em 1.25em !important;
	font-weight: 600 !important;
	transition: background .2s ease, transform .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #place_order:hover { background: #A65A3A !important; transform: translateY(-1px); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: #7C8B6F !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce .select2-container .select2-selection--single {
	background: #FFFDF9 !important;
	border: 1px solid #E3D6C0 !important;
	border-radius: 8px !important;
	padding: 0.6em 0.8em !important;
}
.woocommerce form .form-row label { color: #4A443D !important; font-weight: 600; }
.woocommerce-checkout #payment { background: #F6F0E6 !important; border-radius: 12px !important; padding: 1rem 1.1rem !important; }
.woocommerce-checkout #payment ul.payment_methods { border: none !important; padding: 0 !important; }
.woocommerce-checkout #payment div.payment_box { background: #EFE6D6 !important; border-radius: 8px; color: #4A443D !important; }
.woocommerce table.shop_table { border: 1px solid #E7DCCB !important; border-radius: 12px !important; overflow: hidden; }
.woocommerce table.shop_table th { background: #F6F0E6 !important; }
.woocommerce-checkout h3, .woocommerce-cart h2 { font-family: Georgia, "Times New Roman", serif; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { margin-bottom: 1rem; }

/* Baner cookies (RODO, informacyjny) */
.milusie-cookie {
	position: fixed;
	left: 1rem; right: 1rem; bottom: 1rem;
	z-index: 9999;
	background: #FBF7F0;
	border: 1px solid #E3D6C0;
	border-left: 5px solid #C1663F;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(46,42,38,.18);
	padding: 1rem 1.1rem;
	display: flex; flex-wrap: wrap; gap: .75rem 1rem;
	align-items: center; justify-content: space-between;
	max-width: 1000px; margin: 0 auto;
}
.milusie-cookie p { margin: 0; font-size: .95rem; color: #2E2A26; }
.milusie-cookie a { color: #A65A3A; }
.milusie-cookie button {
	background: #C1663F; color: #fff; border: none; border-radius: 8px;
	padding: .6em 1.2em; font-weight: 600; cursor: pointer;
}
.milusie-cookie button:hover { background: #A65A3A; }
@media (max-width: 600px) { .milusie-cookie { flex-direction: column; align-items: stretch; } }
