/*
Theme Name: We Like Printing
Theme URI: https://welikeprinting.com
Author: We Like Printing
Description: A bold "sticker" style block theme (pairs with the WLP Orders plugin) for We Like Printing, a screen printing and heat transfer shop in Battle Ground, WA. Thick black outlines, pastel-neon fills, chunky rounded cards. Fonts are bundled locally.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wlp
*/

/* Sticker components that theme.json can't express on its own */
:root { --wlp-outline: 3px solid var(--wp--preset--color--ink); }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Sticker card: add class "is-sticker" to any Group/Column/Cover */
.is-sticker {
	border: var(--wlp-outline);
	border-radius: 24px;
	overflow: hidden;
}
.is-sticker.is-tilt-left  { transform: rotate(-1.5deg); }
.is-sticker.is-tilt-right { transform: rotate(1.5deg); }
.is-sticker img { border-radius: 0; }

/* Buttons: chunky, outlined, press-down on hover (no drop shadows) */
.wp-block-button__link,
.wp-element-button {
	border: var(--wlp-outline);
	transition: transform .12s ease, background-color .12s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover { transform: translateY(-2px) rotate(-1deg); }
.wp-block-button__link:active,
.wp-element-button:active { transform: translateY(1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: var(--wlp-outline);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

/* Header: nav left, small logo centered, quote button right, on mustard */
.wlp-header { border-bottom: var(--wlp-outline); position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--mustard); }
.admin-bar .wlp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wlp-header { top: 46px; } }
.wlp-header-row { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.wlp-header-row > .wlp-header-right { justify-self: end; }
.wlp-header .wp-block-site-logo img { max-height: 76px; width: auto; }
.wlp-header .wp-block-site-title a { text-decoration: none; }
.wlp-header .wp-block-navigation { font-family: var(--wp--preset--font-family--baloo); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--wp--preset--color--grape); }
.wlp-header .wp-block-navigation-item a { padding: .3rem .8rem; border: 3px solid transparent; border-radius: 999px; text-decoration: none; }
.wlp-header .wp-block-navigation-item a:hover,
.wlp-header .current-menu-item > a { border-color: var(--wp--preset--color--ink); background: var(--wp--preset--color--white); }
.wlp-header .current-menu-item > a { color: var(--wp--preset--color--grape-hi); }
@media (max-width: 781px) {
	.wlp-header-row { grid-template-columns: 1fr auto; }
	.wlp-header-row > .wlp-header-logo { order: -1; justify-self: start; }
	.wlp-header-row > .wlp-header-nav { order: 2; justify-self: end; }
	.wlp-header-row > .wlp-header-right { grid-column: 1 / -1; justify-self: stretch; }
	.wlp-header-row > .wlp-header-right .wp-block-buttons { justify-content: center; }
}

/* WooCommerce account + cart icons (added to the header by WooCommerce) */
.wlp-header .wp-block-woocommerce-customer-account,
.wlp-header .wp-block-woocommerce-mini-cart { display: inline-flex; align-items: center; }
.wlp-header-nav { gap: .25rem; flex-wrap: nowrap; }

/* Hero logo */
.wlp-hero-logo img { max-width: min(560px, 100%); height: auto; margin: 0 auto; display: block; }

/* Footer */
.wlp-footer { border-top: var(--wlp-outline); }
.wlp-footer a { color: inherit; }

/* Marquee-style tag strip */
.wlp-tags { gap: .6rem; }
.wlp-tags p {
	margin: 0; padding: .3rem .9rem;
	border: 3px solid var(--wp--preset--color--ink); border-radius: 999px;
	font-weight: 700; font-size: .95rem; background: var(--wp--preset--color--white);
}

/* Step numbers */
.wlp-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem; margin: 0;
	border: var(--wlp-outline); border-radius: 50%;
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--baloo); font-weight: 800; font-size: 1.4rem;
}

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="url"], select, textarea {
	border: var(--wlp-outline); border-radius: 16px; padding: .7rem 1rem;
	background: var(--wp--preset--color--white); font: inherit; width: 100%; box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { outline: 4px solid var(--wp--preset--color--purple); outline-offset: 2px; }
input[type="submit"], button[type="submit"] {
	border: var(--wlp-outline); border-radius: 999px; padding: .8rem 1.6rem; cursor: pointer;
	background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--baloo); font-weight: 800; font-size: 1.1rem;
}

/* Post cards */
.wlp-post-card { border: var(--wlp-outline); border-radius: 24px; overflow: hidden; background: var(--wp--preset--color--white); height: 100%; }
.wlp-post-card .wp-block-post-featured-image { margin: 0; border-bottom: var(--wlp-outline); }

/* Gallery / images */
.wp-block-gallery .wp-block-image img,
.wp-block-image.is-style-sticker img { border: var(--wlp-outline); border-radius: 20px; }

/* Accessibility */
:focus-visible { outline: 4px solid var(--wp--preset--color--purple); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.wp-block-button__link:hover, .wp-element-button:hover { transform: none; }
}
@media (max-width: 781px) {
	.is-sticker.is-tilt-left, .is-sticker.is-tilt-right { transform: none; }
}

/* ---- Sticker Card block style (Group) ---- */
.wp-block-group.is-style-sticker { border: var(--wlp-outline); border-radius: 24px; padding: 1.75rem; }


/* ---- Tables ---- */
.wp-block-table table { border-collapse: separate; border-spacing: 0; border: var(--wlp-outline); border-radius: 16px; overflow: hidden; width: 100%; }
.wp-block-table th { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--baloo); text-align: left; }
.wp-block-table th, .wp-block-table td { padding: .75rem 1rem; border: 0; border-bottom: 2px solid var(--wp--preset--color--ink); }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr:nth-child(even) td { background: #f4fffe; }

/* ---- WooCommerce ---- */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product { border: var(--wlp-outline); border-radius: 24px; padding: 1rem; background: var(--wp--preset--color--white); }
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img { border-radius: 16px; border: 3px solid var(--wp--preset--color--ink); }
.woocommerce span.onsale, .wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--coral); color: var(--wp--preset--color--ink);
	border: var(--wlp-outline); border-radius: 999px; font-weight: 800; min-height: 0; min-width: 0; line-height: 1; padding: .45rem .8rem;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border: var(--wlp-outline) !important; border-radius: 999px !important;
	background: var(--wp--preset--color--lime) !important; color: var(--wp--preset--color--ink) !important;
	font-family: var(--wp--preset--font-family--baloo); font-weight: 800;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--cyan) !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--wp--preset--color--coral) !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: var(--wlp-outline); border-radius: 16px; background: var(--wp--preset--color--cyan); }
.woocommerce-error { background: var(--wp--preset--color--coral); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--wp--preset--color--ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--baloo); font-weight: 800; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 3px solid var(--wp--preset--color--ink); border-radius: 999px 999px 0 0; background: var(--wp--preset--color--white); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--wp--preset--color--lime); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.wc-block-components-text-input input, .wc-block-components-select select, .wc-block-components-textarea { border: var(--wlp-outline) !important; border-radius: 16px !important; }
.wc-block-cart, .wc-block-checkout { font-family: var(--wp--preset--font-family--inter); }
