/* sanaappeeeee theme 1.1 — painted paper studio. Tokens come from theme.json + the plugin's storefront.css. */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background-color: #fbf5ea;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: #f0c25a; color: #2f2622; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #1f5f8b; outline-offset: 3px; }

/* Header: paper strip with a hand-drawn wavy edge */
.sana-site-header { position: sticky; top: 0; z-index: 40; background-color: rgba(251, 245, 234, .94) !important; backdrop-filter: blur(6px); border-bottom: 0 !important; }
.sana-site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M0 2 Q 15 9 30 4 T 60 4 T 90 4 T 120 3' fill='none' stroke='%232f2622' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left top / 240px 10px; pointer-events: none; }
.admin-bar .sana-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sana-site-header { top: 46px; } }
.sana-site-header .wp-block-site-title a { display: inline-block; transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1); }
.sana-site-header .wp-block-site-title a:hover { transform: rotate(-3deg) scale(1.04); }
.wp-block-navigation .wp-block-navigation-item__content { position: relative; padding: .2em .1em; }
.wp-block-navigation .wp-block-navigation-item__content::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -4px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 30 2 70 2 98 5' fill='none' stroke='%23f0c25a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; transform: scaleX(0); transform-origin: left; transition: transform 320ms cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.wp-block-navigation .wp-block-navigation-item__content:hover::after, .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.wp-block-navigation .wp-block-navigation-item__content:hover { text-decoration: none; }
.wc-block-mini-cart__button, .wp-block-woocommerce-customer-account a { border-radius: 999px; transition: transform 200ms cubic-bezier(.34, 1.56, .64, 1); }
.wc-block-mini-cart__button:hover, .wp-block-woocommerce-customer-account a:hover { transform: rotate(-8deg) scale(1.08); }
.wc-block-mini-cart__badge { background: #b5533a !important; color: #fff !important; border: 2px solid #2f2622; }

.wp-site-blocks main { min-height: 50vh; }

/* Page titles get a painted underline */
main h1.wp-block-post-title, main h1.wp-block-query-title { position: relative; display: inline-block; font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); }
main h1.wp-block-post-title::after, main h1.wp-block-query-title::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -.12em; height: .36em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15c40-8 82-11 124-9 36 2 70 7 104 5 22-1 44-4 64-7' fill='none' stroke='%23e9a3a0' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; z-index: -1; }
main h1.wp-block-post-title, main h1.wp-block-query-title { z-index: 0; }
.single-product main h1.wp-block-post-title::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15c40-8 82-11 124-9 36 2 70 7 104 5 22-1 44-4 64-7' fill='none' stroke='%23f0c25a' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Buttons from blocks: sticker style */
.wp-element-button, .wp-block-button__link, .wc-block-components-button:not(.is-link), .single_add_to_cart_button, .wc-block-components-product-button__button {
	border: 2px solid #2f2622 !important; border-radius: 999px !important; box-shadow: 4px 4px 0 #2f2622 !important; font-weight: 700 !important;
	transition: transform 160ms cubic-bezier(.2, .7, .2, 1), box-shadow 160ms cubic-bezier(.2, .7, .2, 1), background-color 160ms !important;
}
.wp-element-button:hover, .wp-block-button__link:hover, .wc-block-components-button:not(.is-link):hover, .single_add_to_cart_button:hover, .wc-block-components-product-button__button:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 #2f2622 !important; }
.wp-element-button:active, .wp-block-button__link:active, .single_add_to_cart_button:active, .wc-block-components-product-button__button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #2f2622 !important; }

/* Shop grid: pinned polaroids */
.wp-block-woocommerce-product-collection .wc-block-product { position: relative; background: #fffdf8; padding: 10px 10px 16px; border-radius: 6px; box-shadow: 0 1px 1px rgba(47, 38, 34, .06), 0 10px 24px -8px rgba(47, 38, 34, .22); transform: rotate(-1.6deg); transition: transform 280ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 280ms; margin-bottom: 1.6rem; }
.wp-block-woocommerce-product-collection .wc-block-product:nth-child(3n+2) { transform: rotate(1.4deg); }
.wp-block-woocommerce-product-collection .wc-block-product:nth-child(3n+3) { transform: rotate(-.8deg); }
.wp-block-woocommerce-product-collection .wc-block-product::before { content: ""; position: absolute; top: -12px; left: 50%; width: 78px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: repeating-linear-gradient(45deg, rgba(240, 194, 90, .85) 0 8px, rgba(240, 194, 90, .65) 8px 16px); z-index: 3; }
.wp-block-woocommerce-product-collection .wc-block-product:nth-child(3n+2)::before { background: repeating-linear-gradient(45deg, rgba(169, 203, 224, .9) 0 8px, rgba(169, 203, 224, .7) 8px 16px); transform: translateX(-50%) rotate(5deg); }
.wp-block-woocommerce-product-collection .wc-block-product:nth-child(3n+3)::before { background: repeating-linear-gradient(45deg, rgba(156, 191, 134, .9) 0 8px, rgba(156, 191, 134, .7) 8px 16px); }
.wp-block-woocommerce-product-collection .wc-block-product:hover { transform: rotate(0) translateY(-8px) scale(1.02); box-shadow: 0 2px 2px rgba(47, 38, 34, .06), 0 22px 36px -12px rgba(47, 38, 34, .32); }
.wc-block-components-product-image { border-radius: 3px; overflow: hidden; }
.sana-collection-grid .wc-block-components-product-image img, .wc-block-product .wc-block-components-product-image img { border-radius: 3px; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.05); }
.sana-card-media { position: relative; }
.wp-block-woocommerce-product-collection .wp-block-post-title { font-family: Platypi, Georgia, serif !important; font-weight: 500 !important; font-size: 1.1rem !important; margin: .8rem 0 .15rem !important; }
.wp-block-woocommerce-product-collection .wc-block-components-product-price { color: #93402b; font-weight: 700; }
.wc-block-components-product-stock-indicator { font-size: .8125rem; color: #5f4f45; margin: 0 0 .5rem; }
.wp-block-woocommerce-product-collection .wc-block-components-product-stock-indicator, .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button { text-align: left !important; justify-content: flex-start !important; align-items: flex-start !important; }
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button .wp-block-button__link { margin-left: 0 !important; }
.wc-block-catalog-sorting select, .woocommerce-ordering select { min-height: 42px; border: 2px solid #2f2622; border-radius: 999px; padding: 0 2.2em 0 1em; background-color: #fffdf8; font: inherit; font-weight: 600; }

/* Single product */
.single-product .wp-block-post-title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem); }
.wp-block-woocommerce-product-image-gallery { background: #fffdf8; padding: 12px; border-radius: 6px; box-shadow: 0 1px 1px rgba(47, 38, 34, .06), 0 14px 30px -10px rgba(47, 38, 34, .28); }
.woocommerce-product-gallery .flex-control-thumbs li img { border-radius: 4px; border: 2px solid transparent; }
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border-color: #2f2622; }
.woocommerce-product-gallery img { border-radius: 3px; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-size: 1.45rem; color: #93402b; font-weight: 700; }
.woocommerce div.product form.cart, .wc-block-add-to-cart-form form.cart { display: block; }
.wc-block-add-to-cart-form .quantity input, .woocommerce .quantity .qty { min-height: 48px; border-radius: 12px; border: 2px solid #2f2622; background: #fffdf8; }
.wc-block-add-to-cart-form .single_add_to_cart_button, .woocommerce .single_add_to_cart_button { min-height: 50px; padding-inline: 1.7em !important; background: #b5533a !important; color: #fff !important; }
.woocommerce-tabs .tabs, .wc-tabs { border-bottom: 2px dashed #e2d3bd !important; }
.woocommerce-tabs .tabs li.active a, .wc-tabs li.active a { text-decoration: underline; text-decoration-color: #f0c25a; text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* Footer: teal with a painted wave */
.sana-site-footer, footer.wp-block-group.sana-site-footer.has-background { position: relative; background-color: #2f6b63 !important; color: #fbf5ea !important; }
.sana-site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 18C100 2 200 2 300 16s200 18 300 2 200-18 300-2 200 16 300 2V30H0Z' fill='%232f6b63'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.sana-footer { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 782px) { .sana-footer { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sana-footer__brand .sana-wordmark { font-family: Platypi, Georgia, serif; font-style: italic; font-weight: 600; font-size: 2rem; color: #fbf5ea; text-decoration: none; display: inline-block; transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1); }
.sana-footer__brand .sana-wordmark:hover { transform: rotate(-3deg); }
.sana-footer__brand p { color: #e9e1d2; max-width: 32ch; }
.sana-footer h2 { font-family: "Ysabeau Office", system-ui, sans-serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #f0c25a; margin: 0 0 .8rem; font-weight: 800; }
.sana-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sana-footer a { color: #fbf5ea; text-decoration: none; }
.sana-footer a:hover { text-decoration: underline; text-decoration-color: #f0c25a; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sana-footer .sana-link { color: #f0c25a; }
.sana-footer__legal { grid-column: 1 / -1; border-top: 2px dashed rgba(251, 245, 234, .3); padding-top: 1rem; font-size: .85rem; color: #e9e1d2; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Checkout & cart pick up the paper + ink look */
.wc-block-components-text-input input, .wc-block-components-select select, .wc-blocks-components-select__select, .wc-block-components-textarea { border: 2px solid #2f2622 !important; border-radius: 12px !important; background: #fffdf8 !important; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { --wp--preset--color--contrast: #2f2622; }

@media (prefers-reduced-motion: reduce) {
	.wc-block-components-product-image img, .wp-block-woocommerce-product-collection .wc-block-product, .wp-element-button, .wp-block-button__link, .single_add_to_cart_button { transition: none !important; }
	.wc-block-product:hover .wc-block-components-product-image img, .wp-block-woocommerce-product-collection .wc-block-product:hover { transform: none; }
}
