/*
Theme Name: Tidewell
Author: Alex
Description: A dark, modern WooCommerce block theme for online shops. A glowing hero with a live store preview, rounded product cards and a focused product page, all made of core and WooCommerce blocks and editable in the Site Editor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Requires Plugins: woocommerce
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tidewell
Tags: e-commerce, shop, woocommerce, full-site-editing, block-patterns, wide-blocks, custom-colors, translation-ready
*/

/* ---------- base ---------- */
:root { --tw-aur-1: rgba(74, 172, 240, 0.26); --tw-aur-2: rgba(139, 92, 246, 0.2); --tw-bg: #06090f; --tw-panel: #0b0f17; --tw-line: #1c2331; --tw-line-2: #2a3447; --tw-strong: #ffffff; --tw-text: #e6eaf2; --tw-tint: rgba(255, 255, 255, 0.05); --tw-tint-2: rgba(255, 255, 255, 0.09); --tw-bar: rgba(6, 9, 15, 0.72); --tw-media: #0e1522; --tw-grid: rgba(124, 139, 168, 0.09); --tw-glow: rgba(19, 115, 183, 0.34); --tw-glow-2: rgba(19, 115, 183, 0.22); --tw-foot: linear-gradient(180deg, #06090f, #04060a); --tw-float: rgba(6, 9, 15, 0.78); color-scheme: dark; }
html[data-theme="light"] { --tw-aur-1: rgba(74, 172, 240, 0.22); --tw-aur-2: rgba(167, 139, 250, 0.2); --tw-bg: #f4f7fb; --tw-panel: #ffffff; --tw-line: #e2e8f0; --tw-line-2: #cbd5e1; --tw-strong: #0b1220; --tw-text: #1f2937; --tw-tint: rgba(11, 18, 32, 0.04); --tw-tint-2: rgba(11, 18, 32, 0.08); --tw-bar: rgba(244, 247, 251, 0.8); --tw-media: #e6edf6; --tw-grid: rgba(11, 18, 32, 0.07); --tw-glow: rgba(19, 115, 183, 0.2); --tw-glow-2: rgba(19, 115, 183, 0.1); --tw-foot: linear-gradient(180deg, #f4f7fb, #e9eef5); --tw-float: rgba(255, 255, 255, 0.85); color-scheme: light; }
html[data-theme="light"] body { --wp--preset--color--base: #f4f7fb; --wp--preset--color--surface: #ffffff; --wp--preset--color--raised: #eef2f8; --wp--preset--color--line: #e2e8f0; --wp--preset--color--contrast: #0b1220; --wp--preset--color--muted: #475569; --wp--preset--color--subtle: #56657b; --wp--preset--color--primary-light: #0f6aa8; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--tw-bg); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; background: var(--tw-bg); }
img, video { max-width: 100%; height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--wp--preset--color--primary-light); outline-offset: 3px; }
mark.has-inline-color { padding: 0; }
::selection { background: var(--wp--preset--color--primary); color: #fff; }

/* ---------- header ---------- */
.tw-bar { position: sticky; top: 0; z-index: 50; padding-block: 0.9rem; isolation: isolate; }
.tw-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tw-bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--tw-line); }
.admin-bar .tw-bar { top: 32px; }
.tw-bar .wp-block-site-title a { display: inline-flex; align-items: center; gap: 0.55rem; }
.tw-bar .wp-block-site-title a::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: url("assets/logo-mark.svg") center / contain no-repeat; box-shadow: 0 0 20px rgba(74, 172, 240, 0.4); }
.tw-actions { gap: 0.3rem !important; }
.tw-actions .wp-block-search__button { background: none; color: var(--wp--preset--color--muted); padding: 0.45rem; border: 0; }
.tw-actions .wp-block-search__button:hover { background: none; color: var(--tw-strong); }
.tw-actions .wc-block-customer-account a, .tw-actions .wc-block-mini-cart__button { color: var(--wp--preset--color--muted); }
.tw-actions .wc-block-mini-cart__button { border: 1px solid var(--tw-line-2); border-radius: 999px; padding: 0.35rem 0.75rem; }
.tw-actions .wc-block-mini-cart__button:hover, .tw-actions .wc-block-customer-account a:hover { color: var(--tw-strong); }
.wc-block-mini-cart__badge { background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--tw-bg); color: var(--tw-strong); }

/* ---------- buttons and chips ---------- */
.wp-block-button__link, .single_add_to_cart_button { background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%); box-shadow: 0 8px 30px -8px rgba(19, 115, 183, 0.6); transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 34px -6px rgba(74, 172, 240, 0.6); }
.wp-block-button:not(.is-style-ghost):not(.is-style-light) .wp-block-button__link::after { content: " →"; }
.is-style-ghost .wp-block-button__link { background: var(--tw-tint); background-image: none; box-shadow: none; color: var(--wp--preset--color--contrast); border: 1px solid var(--tw-line-2); }
.is-style-ghost .wp-block-button__link:hover { background: var(--tw-tint-2); box-shadow: none; }
.is-style-ghost .wp-block-button__link::after { content: " ↗"; }
.is-style-light .wp-block-button__link { background: #e9edf4; background-image: none; color: #0b1220; box-shadow: none; }
.is-style-eyebrow { font: 600 0.78rem/1 var(--wp--preset--font-family--display); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem; color: var(--wp--preset--color--primary-light); }
.is-style-pill { display: table; margin: 0 auto 1.6rem !important; padding: 0.5rem 0.4rem 0.5rem 0.5rem; border-radius: 999px; border: 1px solid rgba(74, 172, 240, 0.35); background: rgba(19, 115, 183, 0.12); box-shadow: 0 0 28px -6px rgba(74, 172, 240, 0.5); font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.is-style-pill strong { color: var(--tw-strong); font-weight: 600; padding-left: 0.75rem; }
.is-style-pill span { color: var(--wp--preset--color--muted); margin-left: 0.4rem; padding-left: 0.6rem; border-left: 1px solid var(--tw-line-2); }
.is-style-pill a { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: 0.5rem; border-radius: 50%; background: rgba(74, 172, 240, 0.2); color: #fff; }
.tw-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 44rem; margin-inline: auto; }
.is-style-ticks { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin: 1.4rem 0 1.8rem; color: var(--wp--preset--color--muted); }
.is-style-ticks li { position: relative; padding-left: 1.9rem; }
.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(74, 172, 240, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%234aacf0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- panels ---------- */
.is-style-panel, .tw-panel { background: var(--tw-panel); border: 1px solid var(--tw-line); border-radius: 28px; padding: clamp(1.25rem, 2.6vw, 2rem); }
.is-style-panel-glow { background: radial-gradient(70% 90% at 50% 0%, var(--tw-glow-2), transparent 70%), var(--tw-panel); border: 1px solid var(--tw-line); border-radius: 32px; padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; position: relative; }
.tw-section { padding-block: var(--wp--preset--spacing--70); }
.tw-head { padding-bottom: var(--wp--preset--spacing--50); gap: 1rem 2rem !important; }
.tw-head h2 { margin: 0; max-width: 18ch; }
.tw-head p { margin: 0; font-size: 0.9375rem; }
.tw-head p a { color: var(--wp--preset--color--contrast); display: inline-flex; padding: 0.25rem 0; border-bottom: 1px solid var(--tw-line-2); }
.tw-head p a:hover { border-color: var(--wp--preset--color--primary-light); color: var(--wp--preset--color--primary-light); }
.tw-hint { display: none; }
@media (max-width: 800px) { .tw-hint { display: block; color: var(--wp--preset--color--subtle); } }

/* ---------- hero ---------- */
.tw-hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); isolation: isolate; overflow: hidden; }
.tw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 52% at 16% 8%, var(--tw-aur-1), transparent 70%), radial-gradient(40% 48% at 84% 4%, var(--tw-aur-2), transparent 70%), radial-gradient(55% 40% at 50% 0%, var(--tw-glow), transparent 100%); }
.tw-hero-copy { text-align: center; }
.tw-hero-copy h1 { margin: 0 auto; max-width: 17ch; font-size: clamp(2.5rem, 6.4vw, 4.5rem); }
.tw-hero-copy h1 mark { color: var(--wp--preset--color--subtle); }
.tw-hero-copy .tw-lede { margin: 1.6rem auto 0; max-width: 40rem; font-size: var(--wp--preset--font-size--large); }
.tw-hero-copy .wp-block-buttons { margin-top: 2rem; }
.tw-trust { margin-top: 2rem; gap: 0.5rem 2rem !important; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.tw-trust p { margin: 0; }
.tw-trust strong { color: var(--tw-strong); }
.tw-stars { color: #f6b100; letter-spacing: 0.1em; }

/* store preview in a browser frame */
.tw-frame { margin-top: clamp(2.5rem, 5vw, 4rem) !important; border-radius: 14px 14px 10px 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgba(19, 115, 183, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tw-frame-bar { display: flex; align-items: center; gap: 0.4rem; margin: 0 !important; padding: 0.7rem 1rem; background: #eceef2; }
.tw-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd3db; }
.tw-frame-bar span { flex: 0 1 38%; margin: 0 auto; padding: 0.3rem 0.8rem; border-radius: 6px; background: #fff; color: #6b7280; font-size: 0.72rem; text-align: center; }
.tw-frame-body { padding: clamp(1rem, 2.4vw, 1.6rem); color: #111827; }
.tw-frame-nav { display: flex; gap: 1.2rem; align-items: center; margin: 0 0 1.4rem !important; font-size: 0.8rem; color: #4b5563; }
.tw-frame-nav strong { color: #111827; font-size: 0.95rem; margin-right: 0.4rem; }
.tw-frame-nav em { margin-left: auto; font-style: normal; }
.tw-frame-title { color: #111827 !important; font-size: 1.5rem !important; letter-spacing: -0.02em; margin: 0 0 1rem !important; }
@media (max-width: 700px) { .tw-frame-nav span { display: none; } .tw-frame-bar span { flex-basis: 70%; } }

/* ---------- category cards ---------- */
.tw-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tw-cat { margin: 0 !important; padding: 0.75rem 0.75rem 1.4rem !important; display: flex; flex-direction: column; gap: 0.3rem; transition: border-color 0.25s, transform 0.25s; }
.tw-cat:hover { border-color: var(--tw-line-2); transform: translateY(-3px); }
.tw-cat-media { margin: 0 0 0.9rem !important; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: radial-gradient(circle at 50% 30%, var(--tw-glow), transparent 70%), var(--tw-media); }
.tw-cat-media figure { margin: 0; height: 100%; }
.tw-cat-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform 0.6s ease; }
.tw-cat:hover .tw-cat-media img { transform: scale(1.05); }
.tw-cat h3, .tw-cat p { margin: 0 0.7rem !important; }
.tw-cat h3 a { color: var(--tw-strong); }
.tw-cat > p:not(.tw-meta) { color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.tw-cat .tw-meta { margin-top: 0.8rem !important; font-size: 0.8125rem; color: var(--wp--preset--color--primary-light); font-weight: 600; }
@media (max-width: 1000px) { .tw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tw-cats { grid-template-columns: 1fr; } }

/* ---------- product cards (dark) ---------- */
.tw-products { margin-top: 0; }
.tw-products .wc-block-product-template, .tw-products .wp-block-woocommerce-product-template { gap: 1rem !important; margin: 0 !important; padding: 0 !important; }
.tw-products .wc-block-product { background: var(--tw-panel); border: 1px solid var(--tw-line); border-radius: 22px; padding: 0.7rem 0.7rem 1.1rem !important; margin: 0 !important; display: flex; flex-direction: column; position: relative; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.tw-products .wc-block-product:hover { border-color: rgba(74, 172, 240, 0.5); transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(19, 115, 183, 0.55); }
.tw-products .wc-block-components-product-image { margin: 0 0 0.9rem !important; border-radius: 16px; overflow: hidden; background: #e9edf2; }
.tw-products .wc-block-components-product-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 0; transition: transform 0.5s ease; }
.tw-products .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.05); }
.tw-products .wp-block-post-title { margin: 0 0.5rem 0.15rem !important; font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; text-align: left !important; }
.tw-products .wp-block-post-title a { color: var(--tw-strong); }
.tw-products .wc-block-components-product-price { margin: 0 0.5rem 0.9rem !important; text-align: left !important; font-size: 0.9375rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.tw-products .wc-block-components-product-price del { color: var(--wp--preset--color--subtle); }
.tw-products .wc-block-components-product-price ins { text-decoration: none; color: var(--tw-strong); }
.tw-products .wp-block-woocommerce-product-button, .tw-products .wc-block-components-product-button { margin: auto 0.5rem 0 !important; text-align: left !important; justify-content: flex-start !important; }
.tw-products .wp-block-button__link, .tw-products .wc-block-components-product-button__button { background: var(--tw-tint) !important; background-image: none !important; box-shadow: none !important; color: var(--tw-strong) !important; border: 1px solid var(--tw-line-2) !important; border-radius: 999px !important; padding: 0.55em 1.1em !important; font-size: 0.8125rem !important; font-weight: 600 !important; width: auto !important; }
.tw-products .wp-block-button__link::after { content: none; }
.tw-products .wp-block-button__link:hover, .tw-products .wc-block-components-product-button__button:hover { background: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; color: #fff !important; transform: none; }
.tw-products .wc-block-components-product-sale-badge { background: rgba(249, 115, 22, 0.16); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.45); border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; top: 0.6rem; left: 0.6rem; right: auto; }
.tw-products .wp-block-query-pagination { padding: var(--wp--preset--spacing--50) 0 0; font-weight: 600; gap: 0.4rem; }
.tw-products .wp-block-query-pagination a, .tw-products .wp-block-query-pagination span { color: var(--wp--preset--color--muted); padding: 0.45rem 0.85rem; border-radius: 999px; }
.tw-products .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }

/* rail */
.tw-rail .wc-block-product-template, .tw-rail .wp-block-woocommerce-product-template { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.8rem !important; scrollbar-width: thin; scrollbar-color: var(--tw-line-2) transparent; }
.tw-rail .wc-block-product { flex: 0 0 min(280px, 74vw) !important; width: auto !important; scroll-snap-align: start; }

/* light version, inside the browser frame */
.tw-mock .wc-block-product { background: #fff; border: 0; border-radius: 0; padding: 0 0 0.4rem !important; }
.tw-mock .wc-block-product:hover { transform: none; box-shadow: none; }
.tw-mock .wc-block-components-product-image { border-radius: 0; }
.tw-mock .wp-block-post-title { margin-inline: 0 !important; font-size: 0.8125rem; }
.tw-mock .wp-block-post-title a { color: #111827; }
.tw-mock .wc-block-components-product-price { margin-inline: 0 !important; font-size: 0.75rem; color: #4b5563; }
.tw-mock .wc-block-components-product-price ins { color: #111827; }
.tw-mock .wp-block-woocommerce-product-button { margin-inline: 0 !important; }
.tw-mock .wp-block-button__link, .tw-mock .wc-block-components-product-button__button { background: #e5e8ee !important; color: #111827 !important; border: 0 !important; border-radius: 4px !important; font-size: 0.72rem !important; padding: 0.55em 0.9em !important; }
.tw-mock .wp-block-button__link:hover { background: #111827 !important; color: #fff !important; }
.tw-mock .wc-block-components-product-sale-badge { display: none; }
.tw-mock .wc-block-product-template { gap: 0.8rem !important; }

/* ---------- split ---------- */
.tw-split { padding: clamp(1.25rem, 3vw, 3rem) !important; }
.tw-split h2 { margin: 0 0 1rem; max-width: 12ch; }
.tw-split .tw-lede { margin: 0 0 0.4rem; font-size: 1.0625rem; }
.tw-split-media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--tw-line-2); box-shadow: 0 30px 80px -30px rgba(19, 115, 183, 0.6); aspect-ratio: 5 / 4; }
.tw-split-media figure { margin: 0; height: 100%; }
.tw-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.tw-float { position: absolute; left: 1rem; bottom: 1rem; margin: 0 !important; padding: 0.8rem 1rem; border-radius: 14px; background: var(--tw-float); backdrop-filter: blur(10px); border: 1px solid var(--tw-line-2); font-size: 0.8125rem; color: var(--wp--preset--color--muted); line-height: 1.4; }
.tw-float strong { color: var(--tw-strong); font-size: 0.9375rem; }

/* ---------- reviews ---------- */
.tw-reviews .tw-quote { height: 100%; display: flex; flex-direction: column; gap: 0.9rem; }
.tw-quote .tw-stars { margin: 0; font-size: 0.95rem; }
.tw-q { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--tw-text); flex: 1; }
.tw-by { margin: 0; font-size: 0.875rem; color: var(--wp--preset--color--subtle); }
.tw-by strong { color: var(--tw-strong); }

/* ---------- call to action ---------- */
.tw-cta { text-align: center; padding-block: clamp(2.5rem, 7vw, 5rem) !important; }
.tw-cta h2 { margin: 0 auto; max-width: 14ch; }
.tw-cta .tw-lede { margin: 1.2rem auto 0; }
.tw-cta .wp-block-buttons { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.tw-footer { border-top: 1px solid var(--tw-line); padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40); background: var(--tw-foot); }
.tw-footer a { color: var(--wp--preset--color--muted); }
.tw-footer a:hover { color: var(--tw-strong); }
.tw-footer .wp-block-site-title a { color: var(--tw-strong); }
.tw-foot-lead { color: var(--wp--preset--color--muted); max-width: 26ch; margin-top: 0.8rem; }
.tw-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.tw-footer .is-style-eyebrow { color: var(--wp--preset--color--subtle); }
.tw-legal { margin-top: var(--wp--preset--spacing--60); border-top: 1px solid var(--tw-line); padding-top: 1.4rem; color: var(--wp--preset--color--subtle); }
.tw-legal p { margin: 0; }

/* ---------- page headers and shop ---------- */
.tw-pagehead { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 3vw, 2rem); isolation: isolate; text-align: left; }
.tw-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 100% at 50% 0%, var(--tw-glow), transparent 100%); }
.tw-pagehead .wp-block-post-title, .tw-pagehead .wp-block-query-title { margin: 0.4rem 0 0; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.tw-pagehead .wp-block-term-description { color: var(--wp--preset--color--muted); max-width: 40rem; }
.wc-block-components-breadcrumbs, .woocommerce-breadcrumb { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--wp--preset--color--muted); }
.tw-toolbar { padding-block: 1rem 1.6rem; gap: 1rem !important; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tw-chip { padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--tw-line-2); font-size: 0.875rem; font-weight: 500; color: var(--wp--preset--color--muted); transition: background 0.2s, color 0.2s; }
.tw-chip:hover { color: var(--tw-strong); background: var(--tw-tint-2); }
.tw-chip.is-active { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.tw-toolbar .woocommerce-result-count, .tw-toolbar .wc-block-product-results-count { margin: 0; font-size: 0.875rem; color: var(--wp--preset--color--subtle); }
.tw-toolbar select, .woocommerce select, .wc-block-components-select select { background: var(--tw-panel); color: var(--tw-strong); border: 1px solid var(--tw-line-2); border-radius: 999px; padding: 0.5rem 1rem; font: 500 0.875rem var(--wp--preset--font-family--display); }

/* ---------- product page ---------- */
.tw-crumbs { padding-block: 1.2rem 0; }
.tw-pdp { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70); }
.tw-pdp-media .wp-block-woocommerce-product-image-gallery, .tw-pdp-media .woocommerce-product-gallery { width: 100% !important; max-width: none; float: none; margin: 0; }
.tw-pdp-media .woocommerce-product-gallery__wrapper { border: 1px solid var(--tw-line); border-radius: 28px; overflow: hidden; background: #e9edf2; }
.tw-pdp-media .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; border-radius: 0; }
.tw-pdp-media .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin: 0.8rem 0 0 !important; padding: 0; list-style: none; }
.tw-pdp-media .flex-control-thumbs img { border: 1px solid var(--tw-line); border-radius: 12px; opacity: 0.65; cursor: pointer; }
.tw-pdp-media .flex-control-thumbs img.flex-active, .tw-pdp-media .flex-control-thumbs img:hover { opacity: 1; border-color: var(--wp--preset--color--primary-light); }
.tw-pdp-buy { position: sticky; top: 96px; align-self: flex-start; }
.tw-pdp-buy .wp-block-post-title { margin: 0 0 0.6rem; font-size: clamp(2rem, 4vw, 3rem); }
.tw-pdp-buy .wc-block-components-product-price { font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; color: var(--tw-strong); }
.tw-pdp-buy .wc-block-components-product-price del { color: var(--wp--preset--color--subtle); font-size: 1.1rem; }
.tw-pdp-buy .wc-block-components-product-price ins { text-decoration: none; }
.tw-pdp-buy .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.tw-pdp-buy .star-rating, .wc-block-components-product-rating__stars { color: #f6b100; }
.single_add_to_cart_button, .wc-block-components-button:not(.is-link) { background-color: var(--wp--preset--color--primary) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600 !important; padding: 0.95em 1.7em !important; border: 0 !important; }
.single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { background-color: #1a86d1 !important; }
.tw-pdp-buy form.cart { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0; align-items: stretch; }
.quantity .qty { background: var(--tw-panel); color: var(--tw-strong); border: 1px solid var(--tw-line-2); border-radius: 999px; padding: 0.85rem 0.6rem; width: 4.4rem; font-weight: 600; text-align: center; }
.tw-pdp-buy table.variations { width: 100%; border: 0; }
.tw-pdp-buy table.variations th { text-align: left; font-size: 0.8125rem; color: var(--wp--preset--color--muted); padding-bottom: 0.4rem; }
.tw-pdp-buy table.variations select { width: 100%; }
.tw-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0 0 1.4rem; }
.tw-perks p { margin: 0; padding: 0.8rem 0.5rem; text-align: center; font-size: 0.8125rem; color: var(--wp--preset--color--muted); border: 1px solid var(--tw-line); border-radius: 14px; background: var(--tw-panel); }
.tw-acc { border-top: 1px solid var(--tw-line); padding: 0.95rem 0; margin: 0 !important; }
.tw-acc:last-of-type { border-bottom: 1px solid var(--tw-line); margin-bottom: 1.2rem !important; }
.tw-acc summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.tw-acc summary::-webkit-details-marker { display: none; }
.tw-acc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--wp--preset--color--primary-light); }
.tw-acc[open] summary::after { content: "–"; }
.tw-acc p { color: var(--wp--preset--color--muted); margin-top: 0.6rem; }
.wc-block-product-sku, .wp-block-woocommerce-product-meta { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.wc-tabs { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 0 1.5rem; border: 0; flex-wrap: wrap; }
.wc-tabs li a { display: block; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--tw-line-2); color: var(--wp--preset--color--muted); font-size: 0.875rem; font-weight: 500; }
.wc-tabs li.active a, .wc-tabs li.active a:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff !important; }
.wp-block-woocommerce-product-details { color: var(--wp--preset--color--muted); }
.wp-block-woocommerce-product-details h2 { font-size: 1.6rem; }
@media (max-width: 781px) { .tw-pdp-buy { position: static; } }

/* ---------- cart, checkout, account, forms ---------- */
.wc-block-cart, .wc-block-checkout, .woocommerce-account .woocommerce { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], textarea, .wc-block-components-text-input input, .woocommerce form .form-row input.input-text { background: var(--tw-panel) !important; color: var(--tw-strong) !important; border: 1px solid var(--tw-line-2) !important; border-radius: 12px !important; }
.wc-block-components-text-input label, .wc-block-components-form .wc-block-components-text-input.is-active label { color: var(--wp--preset--color--subtle) !important; }
.wc-block-components-totals-wrapper, .wc-block-cart-items, .wc-block-cart-items__row { border-color: var(--tw-line) !important; }
.wp-block-woocommerce-cart-order-summary-block, .wc-block-components-order-summary, .wp-block-woocommerce-checkout-order-summary-block { background: var(--tw-panel); border: 1px solid var(--tw-line); border-radius: 24px; padding: 1.2rem !important; }
.wc-block-components-product-name, .wc-block-components-totals-item__label, .wc-block-formatted-money-amount { color: var(--tw-strong); }
.wc-block-components-radio-control__option, .wc-block-components-checkbox { color: var(--wp--preset--color--muted); }
.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info { border-radius: 14px !important; background: var(--tw-panel) !important; color: var(--tw-strong) !important; border: 1px solid var(--tw-line-2) !important; }
.wc-block-components-quantity-selector { border-radius: 999px; border-color: var(--tw-line-2); background: var(--tw-panel); }
.wc-block-components-quantity-selector input { color: var(--tw-strong); background: transparent !important; border: 0 !important; }

/* ---------- posts and pages ---------- */
.wp-block-post-featured-image img { border-radius: 24px; border: 1px solid var(--tw-line); }
.wp-block-search__inside-wrapper { border-radius: 999px; }
.wp-block-query-pagination a { color: inherit; }
.wp-block-post-title a { color: var(--tw-strong); }
.wp-block-post-date, .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.tw-big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; margin: 0; color: var(--wp--preset--color--subtle); }

.woocommerce span.onsale, .onsale { background: rgba(249, 115, 22, 0.16) !important; color: #fb923c !important; border: 1px solid rgba(249, 115, 22, 0.45); border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 0.4rem 0.8rem !important; top: 1rem !important; left: 1rem !important; right: auto !important; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-tabs::before, .wc-tabs li::before, .wc-tabs li::after { display: none !important; border: 0 !important; }
.wc-tabs li { background: none !important; border: 0 !important; }
.wc-tabs li a { text-decoration: none; }

/* ---------- light / dark switch ---------- */
.tw-mode { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; border: 1px solid var(--tw-line-2); background: var(--tw-tint); color: var(--wp--preset--color--muted); cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.tw-mode:hover { color: var(--tw-strong); background: var(--tw-tint-2); }
.tw-mode svg { width: 1.1rem; height: 1.1rem; grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s; }
.tw-mode .tw-sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }
html[data-theme="light"] .tw-mode .tw-sun { opacity: 1; transform: none; }
html[data-theme="light"] .tw-mode .tw-moon { opacity: 0; transform: rotate(60deg) scale(0.6); }
html[data-theme="light"] .tw-hero-copy h1 mark, html[data-theme="light"] .wp-block-heading mark { color: #56657b; }
html[data-theme="light"] .tw-bar .wp-block-site-title a::before { box-shadow: 0 0 14px rgba(19, 115, 183, 0.35); }
html[data-theme="light"] .tw-frame { box-shadow: 0 40px 90px -34px rgba(19, 115, 183, 0.45), 0 0 0 1px rgba(11, 18, 32, 0.08); }
html[data-theme="light"] .tw-products .wc-block-product:hover { box-shadow: 0 24px 50px -24px rgba(19, 115, 183, 0.4); }

/* sale badges sit on photos, so they are solid */
.tw-products .wc-block-components-product-sale-badge, .woocommerce span.onsale, .onsale { background: #c2410c !important; color: #ffffff !important; border: 0 !important; }
html[data-theme="light"] .is-style-pill a { color: #0f6aa8; }
html[data-theme="light"] .tw-stars, html[data-theme="light"] .star-rating, html[data-theme="light"] .wc-block-components-product-rating__stars { color: #d97706; }
html[data-theme="light"] .is-style-pill { background: rgba(19, 115, 183, 0.08); }

.required, abbr.required { color: #fb923c; text-decoration: none; }
html[data-theme="light"] .required, html[data-theme="light"] abbr.required { color: #c2410c; }
html[data-theme="light"] .tw-stars, html[data-theme="light"] .star-rating, html[data-theme="light"] .wc-block-components-product-rating__stars { color: #b45309; }
.wc-block-components-country-input select, .wc-block-components-state-input select, .wc-blocks-components-select__select { background: var(--tw-panel) !important; color: var(--tw-strong) !important; border-color: var(--tw-line-2) !important; border-radius: 12px !important; }
.wc-blocks-components-select__label, .wc-blocks-components-select .wc-blocks-components-select__label { color: var(--wp--preset--color--subtle) !important; }
.wc-blocks-components-select__expand { fill: var(--wp--preset--color--muted); }

.woocommerce form .form-row .required, .woocommerce-page form .required, .wc-block-components-text-input .required { color: #fb923c; }
html[data-theme="light"] .woocommerce form .form-row .required, html[data-theme="light"] .woocommerce-page form .required { color: #c2410c; }

.tw-bar .wp-block-site-title a::before { flex: none; }
.tw-bar .wp-block-site-title { white-space: nowrap; }
@media (max-width: 600px) {
	.tw-bar .wp-block-site-title { font-size: 1.05rem !important; }
	.tw-actions .wp-block-search { display: none; }
	.tw-actions { gap: 0.15rem !important; }
}

.tw-products .wp-block-woocommerce-product-button, .tw-products .wc-block-components-product-button { align-self: flex-start; width: auto; }
@media (min-width: 601px) and (max-width: 1000px) {
	.tw-grid .wc-block-product-template, .tw-grid .wp-block-woocommerce-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
	.tw-products:not(.tw-rail) .wc-block-product-template, .tw-products:not(.tw-rail) .wp-block-woocommerce-product-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.6rem !important; }
	.tw-products:not(.tw-rail) .wc-block-product { padding: 0.5rem 0.5rem 0.9rem !important; border-radius: 18px; }
	.tw-products .wp-block-post-title { font-size: 0.9rem; margin-inline: 0.2rem !important; }
	.tw-products .wc-block-components-product-price { margin-inline: 0.2rem !important; font-size: 0.85rem; }
	.tw-products .wp-block-woocommerce-product-button { margin-inline: 0.2rem !important; }
	.tw-products .wp-block-button__link, .tw-products .wc-block-components-product-button__button { padding: 0.5em 0.9em !important; font-size: 0.75rem !important; }
	.tw-mock .wc-block-product-template > *:nth-child(n+5) { display: none; }
}

/* the menu folds into a button up to 1000px, so it never wraps on tablets */
@media (max-width: 1000px) {
	.tw-bar .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.tw-bar .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.tw-bar .wp-block-navigation { order: 3; }
	.tw-bar .tw-actions { order: 2; margin-left: auto; }
}
.wp-block-navigation__responsive-container-open { color: var(--tw-strong); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.2rem var(--wp--preset--spacing--40); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--tw-strong); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; padding: 0.5rem 0; }
.wp-block-navigation__responsive-container-close { color: var(--tw-strong); }

.wp-block-navigation__responsive-container.is-menu-open { background-color: var(--tw-bg) !important; color: var(--tw-strong) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 0.4rem; padding-top: 2rem; }

@media (max-width: 420px) {
	.tw-bar .wp-block-site-title a::before { width: 24px; height: 24px; }
	.tw-bar .wp-block-site-title { font-size: 1rem !important; }
	.tw-mode { width: 2rem; height: 2rem; }
	.tw-actions .wc-block-mini-cart__button { padding: 0.28rem 0.55rem; }
	.tw-actions .wc-block-customer-account a { padding: 0.2rem; }
}
@media (max-width: 380px) { .tw-actions .wc-block-customer-account { display: none; } }
@media (max-width: 340px) { .tw-bar .wp-block-site-title { font-size: 0.88rem !important; } .tw-mode { width: 1.8rem; height: 1.8rem; } .tw-actions .wc-block-mini-cart__button { padding: 0.25rem 0.45rem; } }

/* ---------- floating shop cards around the hero headline ---------- */
.tw-hero-copy { position: relative; }
.tw-fcs { position: absolute; inset: 0; pointer-events: none; display: none; }
@media (min-width: 1240px) { .tw-fcs { display: block; } }
.tw-fc { position: absolute; width: 214px; margin: 0 !important; padding: 0.65rem; border-radius: 20px; background: color-mix(in srgb, var(--tw-panel) 88%, transparent); border: 1px solid var(--tw-line-2); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: tw-bob 8s ease-in-out infinite; text-align: left; }
.tw-fc figure { margin: 0 0 0.6rem; border-radius: 14px; overflow: hidden; background: #e9edf2; }
.tw-fc img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 0; }
.tw-fc p { margin: 0; }
.tw-fc-name { font-weight: 600; font-size: 0.9375rem; color: var(--tw-strong); padding-inline: 0.25rem; }
.tw-fc-price { padding: 0.1rem 0.25rem 0.2rem; font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.tw-fc-price strong { color: var(--tw-strong); }
.tw-fc-price s { color: var(--wp--preset--color--subtle); }
.tw-fc-price span { margin-left: 0.2rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: #c2410c; color: #fff; font-size: 0.7rem; font-weight: 700; }
.tw-fc-a { left: -64px; top: 120px; transform: rotate(-4deg); }
.tw-fc-b { right: -48px; top: 54px; width: 224px; padding: 1rem; transform: rotate(3deg); animation-delay: -2s; }
.tw-fc-stars { color: #f6b100; letter-spacing: 0.14em; font-size: 1rem; padding-inline: 0.25rem; }
.tw-fc-b .tw-fc-name { margin-top: 0.3rem; }
.tw-fc-note { font-size: 0.78rem; color: var(--wp--preset--color--subtle); padding: 0.3rem 0.25rem 0; line-height: 1.4; }
.tw-fc-c { left: -34px; top: 400px; width: 238px; gap: 0.7rem !important; align-items: center; transform: rotate(2deg); animation-delay: -4s; }
.tw-fc-c figure { flex: 0 0 52px; width: 52px; margin: 0; border-radius: 12px; }
.tw-fc-toast { font-size: 0.8125rem; line-height: 1.35; color: var(--wp--preset--color--muted); position: relative; padding-right: 1.6rem !important; }
.tw-fc-toast strong { color: var(--tw-strong); font-size: 0.9375rem; }
.tw-fc-toast::after { content: ""; position: absolute; right: 0; top: 50%; width: 1.3rem; height: 1.3rem; margin-top: -0.65rem; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.tw-fc-d { right: -40px; top: 360px; width: auto; padding: 0.8rem 1rem 0.8rem 3.1rem; transform: rotate(-3deg); animation-delay: -6s; }
.tw-fc-d::before { content: ""; position: absolute; left: 0.8rem; top: 50%; width: 1.7rem; height: 1.7rem; margin-top: -0.85rem; background: var(--wp--preset--color--primary-light); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7zM7 19a1.6 1.6 0 1 0 0-.01M17 19a1.6 1.6 0 1 0 0-.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7zM7 19a1.6 1.6 0 1 0 0-.01M17 19a1.6 1.6 0 1 0 0-.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.tw-fc-ship { font-size: 0.8125rem; line-height: 1.35; color: var(--wp--preset--color--muted); white-space: nowrap; }
.tw-fc-ship strong { color: var(--tw-strong); font-size: 0.9375rem; }
@keyframes tw-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .tw-fc { animation: none; } }
html[data-theme="light"] .tw-fc { background: rgba(255, 255, 255, 0.92); box-shadow: 0 26px 50px -26px rgba(11, 18, 32, 0.28); }

.tw-footer .wp-block-site-title a { display: inline-flex; align-items: center; gap: 0.55rem; }
.tw-footer .wp-block-site-title a::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; background: url("assets/logo-mark.svg") center / contain no-repeat; }

/* ---------- journal and articles ---------- */
.tw-pagehead h1, .tw-pagehead .wp-block-post-title, .tw-pagehead .wp-block-query-title { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.3rem 0 0; }
.tw-sub { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--large); max-width: 38rem; margin: 0.9rem 0 0; }
.tw-section { padding-block: var(--wp--preset--spacing--60); }
.tw-posts .wp-block-post-template { gap: 1rem; margin: 0; padding: 0; }
.tw-post { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.7rem 0.7rem 1.3rem !important; height: 100%; transition: border-color 0.25s, transform 0.25s; }
.tw-post:hover { border-color: var(--tw-line-2); transform: translateY(-3px); }
.tw-post .wp-block-post-featured-image { margin: 0 0 0.6rem; border-radius: 16px; overflow: hidden; }
.tw-post .wp-block-post-featured-image img { border: 0; border-radius: 0; width: 100%; height: 100%; object-fit: cover; }
.tw-post > :not(.wp-block-post-featured-image) { margin-inline: 0.5rem; }
.tw-post .wp-block-post-title { margin-block: 0; font-size: 1.2rem !important; line-height: 1.25; letter-spacing: -0.02em; }
.tw-post .wp-block-post-date { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.tw-post .wp-block-post-excerpt { font-size: 0.9375rem; color: var(--wp--preset--color--muted); margin-block: 0; }
.tw-post .wp-block-post-excerpt__more-link { display: none; }
.tw-posts .wp-block-query-pagination { padding-top: var(--wp--preset--spacing--50); gap: 0.4rem; font-weight: 600; justify-content: center; }
.tw-posts .wp-block-query-pagination a, .tw-posts .page-numbers { padding: 0.45rem 0.85rem; border-radius: 999px; color: var(--wp--preset--color--muted); }
.tw-posts .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }
.tw-byline { color: var(--wp--preset--color--subtle); font-size: 0.875rem; margin-top: 0.8rem; }
.tw-article-head .wp-block-post-title { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 22ch; }
.tw-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--tw-text); }
.tw-prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.tw-prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.tw-prose a { text-decoration: underline; text-underline-offset: 3px; }
.tw-prose .wp-block-post-featured-image { margin-bottom: 1.6rem; }
.wp-block-post-navigation-link { font-size: 0.9375rem; }
@media (max-width: 900px) { .tw-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tw-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- light mode: a stronger header and a dark footer ---------- */
html[data-theme="light"] .tw-bar::before { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--tw-line-2); box-shadow: 0 8px 28px -18px rgba(11, 18, 32, 0.28); }
html[data-theme="light"] .tw-bar .wp-block-navigation-item__content { color: #334155; }
html[data-theme="light"] .tw-bar .wp-block-navigation-item__content:hover { color: #0f6aa8; }
html[data-theme="light"] .tw-footer { --wp--preset--color--muted: #b0bcd6; --wp--preset--color--subtle: #8895b0; --wp--preset--color--primary-light: #4aacf0; --tw-strong: #ffffff; --tw-line: #1c2331; --tw-line-2: #2a3447; background: linear-gradient(180deg, #0b1220, #070c16); color: #b0bcd6; border-top: 0; }
html[data-theme="light"] .tw-footer .wp-block-site-title a, html[data-theme="light"] .tw-footer a:hover { color: #fff; }

/* ---------- shop pages: titles, notices and a footer that stays at the bottom ---------- */
h1.wp-block-post-title, h1.wp-block-query-title { font-size: clamp(2rem, 4.4vw, 3rem); }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > footer { margin-top: auto; }
.wp-site-blocks > main.wp-block-group:not(.alignfull), .wp-block-woocommerce-page-content-wrapper > main { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button, .wc-block-components-notice-banner .wc-forward, .wc-block-components-notice-banner a.button { float: none; order: 3; margin-left: auto; padding: 0.5em 1.1em !important; border-radius: 999px !important; background: var(--wp--preset--color--primary) !important; color: #fff !important; font-size: 0.8125rem !important; font-weight: 600; text-decoration: none; }
.woocommerce-message, .woocommerce-info { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.woocommerce-message::before, .woocommerce-info::before { position: static !important; flex: none; }
.wc-block-components-notice-banner { align-items: center; }
.wc-block-components-notice-banner__content { color: var(--tw-strong); }

/* checkout header, confirmation page and selects */
.tw-secure { margin: 0; font-size: 0.8125rem; color: var(--wp--preset--color--subtle); display: inline-flex; align-items: center; gap: 0.45rem; }
.tw-secure::before { content: ""; width: 0.95rem; height: 0.95rem; background: var(--wp--preset--color--primary-light); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-woocommerce-cart-link, .wc-block-cart-link, .wp-block-woocommerce-cart-link a { color: var(--wp--preset--color--muted); }
[class*="order-confirmation"] h2, .woocommerce-order h2, .woocommerce-account h2 { font-size: 1.5rem; margin-top: 2rem; }
.wc-block-order-confirmation-summary { padding: 1.2rem 1.4rem; border: 1px solid var(--tw-line); border-radius: 20px; background: var(--tw-panel); }
.wc-block-order-confirmation-totals table, .wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address, .woocommerce-table, .woocommerce-orders-table { border-radius: 16px; overflow: hidden; border-color: var(--tw-line); }
.wc-block-order-confirmation-totals table td, .wc-block-order-confirmation-totals table th, .woocommerce-table td, .woocommerce-table th { border-color: var(--tw-line); }
.wc-blocks-components-select__container { background: var(--tw-panel) !important; border: 1px solid var(--tw-line-2) !important; border-radius: 12px !important; box-shadow: none !important; }
.wc-blocks-components-select__select { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option-layout { border-color: var(--tw-line-2) !important; border-radius: 14px; }
.wc-block-components-notice-banner button, .wc-block-components-notice-banner__dismiss { color: var(--tw-strong) !important; background: none !important; box-shadow: none !important; }

/* ---------- sticky header and aligned icons ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
.tw-bar { position: relative; }
.tw-bar > .wp-block-group { align-items: center; }
.tw-actions { align-items: center !important; gap: 0.3rem !important; }
.tw-actions > * { margin: 0 !important; display: flex; align-items: center; }
.tw-actions .tw-mode, .tw-actions .wp-block-search__button, .tw-actions .wc-block-customer-account a { width: 2.5rem; height: 2.5rem; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--wp--preset--color--muted); line-height: 1; }
.tw-actions .tw-mode { border-color: var(--tw-line-2); background: var(--tw-tint); }
.tw-actions .wp-block-search__button:hover, .tw-actions .wc-block-customer-account a:hover { background: var(--tw-tint-2); color: var(--tw-strong); }
.tw-actions .wp-block-search { width: auto; }
.tw-actions .wp-block-search__inside-wrapper { min-width: 0; padding: 0; border: 0; }
.tw-actions svg, .tw-actions .wc-block-customer-account__account-icon { width: 1.25rem; height: 1.25rem; display: block; }
.tw-actions .tw-mode svg { width: 1.1rem; height: 1.1rem; }
.tw-actions .wp-block-woocommerce-mini-cart, .tw-actions .wc-block-mini-cart { display: flex; align-items: center; }
.tw-actions .wc-block-mini-cart__button { height: 2.5rem; padding: 0 0.95rem 0 0.8rem !important; display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--tw-line-2); border-radius: 999px; background: var(--tw-tint); color: var(--tw-strong); font-size: 0.875rem; font-weight: 600; line-height: 1; }
.tw-actions .wc-block-mini-cart__button:hover { background: var(--tw-tint-2); }
.tw-actions .wc-block-mini-cart__amount { font-variant-numeric: tabular-nums; }
.tw-actions .wc-block-mini-cart__quantity-badge { display: inline-flex; align-items: center; position: relative; }
.tw-actions .wc-block-mini-cart__badge { top: -0.7rem; right: -0.75rem; }
@media (max-width: 700px) { .tw-actions .wc-block-mini-cart__amount { display: none; } .tw-actions .wc-block-mini-cart__button { padding: 0 0.7rem !important; } }

/* ---------- shop filters ---------- */
.tw-shop-cols { align-items: flex-start; }
.tw-side { position: sticky; top: 96px; align-self: flex-start; }
.admin-bar .tw-side { top: 128px; }
.tw-filters { display: grid; gap: 0; background: var(--tw-panel); border: 1px solid var(--tw-line); border-radius: 24px; padding: 0.4rem 1.2rem 1.2rem; }
.tw-filters-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0 0.6rem; }
.tw-filters-head strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.tw-clear { font-size: 0.8125rem; color: var(--wp--preset--color--primary-light); }
.tw-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-bottom: 0.8rem; }
.tw-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent); color: var(--tw-strong); font-size: 0.78rem; font-weight: 600; }
.tw-tag span[aria-hidden] { opacity: 0.7; font-size: 1rem; line-height: 1; }
.tw-fg { border-top: 1px solid var(--tw-line); padding: 0.85rem 0; }
.tw-fg summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9375rem; }
.tw-fg summary::-webkit-details-marker { display: none; }
.tw-fg summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--wp--preset--color--subtle); border-bottom: 2px solid var(--wp--preset--color--subtle); transform: rotate(45deg); transition: transform 0.2s; margin-right: 0.2rem; }
.tw-fg[open] summary::after { transform: rotate(-135deg); }
.tw-flist { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.1rem; }
.tw-flist a { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.55rem; margin-inline: -0.55rem; border-radius: 10px; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.tw-flist a span { font-size: 0.78rem; color: var(--wp--preset--color--subtle); }
.tw-flist a:hover { background: var(--tw-tint); color: var(--tw-strong); }
.tw-flist a.is-on { background: var(--tw-tint-2); color: var(--tw-strong); font-weight: 600; }
.tw-price { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.7rem; }
.tw-price label { position: relative; display: block; }
.tw-price i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--wp--preset--color--subtle); font-size: 0.875rem; }
.tw-price input { width: 100%; padding: 0.6rem 0.6rem 0.6rem 1.5rem; border-radius: 12px !important; font: 500 0.9rem var(--wp--preset--font-family--display); }
.tw-presets { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.tw-presets a { padding: 0.28rem 0.65rem; border-radius: 999px; border: 1px solid var(--tw-line-2); font-size: 0.78rem; color: var(--wp--preset--color--muted); }
.tw-presets a:hover { color: var(--tw-strong); background: var(--tw-tint-2); }
.tw-checks, .tw-swatches { display: grid; gap: 0.15rem; margin-top: 0.7rem; }
.tw-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tw-ck { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; cursor: pointer; font-size: 0.9375rem; color: var(--wp--preset--color--muted); position: relative; }
.tw-ck input, .tw-sw input { position: absolute; opacity: 0; pointer-events: none; }
.tw-ck .tw-box { flex: none; width: 1.1rem; height: 1.1rem; border-radius: 6px; border: 1.5px solid var(--tw-line-2); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.tw-ck input[type="radio"] + .tw-box { border-radius: 50%; }
.tw-ck input:checked + .tw-box { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.tw-ck input:checked + .tw-box::after { content: ""; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tw-ck input[type="radio"]:checked + .tw-box::after { width: 0.4rem; height: 0.4rem; border: 0; border-radius: 50%; background: #fff; transform: none; }
.tw-ck input:focus-visible + .tw-box, .tw-sw input:focus-visible + .tw-box { outline: 2px solid var(--wp--preset--color--primary-light); outline-offset: 2px; }
.tw-ck:hover { color: var(--tw-strong); }
.tw-ck .tw-name { flex: 1; }
.tw-ck em { font-style: normal; font-size: 0.78rem; color: var(--wp--preset--color--subtle); }
.tw-stars { color: #f6b100; letter-spacing: 0.08em; margin-right: 0.3rem; }
.tw-sw { position: relative; cursor: pointer; }
.tw-sw .tw-box { display: block; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sw); border: 2px solid var(--tw-line-2); box-shadow: inset 0 0 0 2px var(--tw-panel); transition: transform 0.15s, border-color 0.15s; }
.tw-sw:hover .tw-box { transform: scale(1.1); }
.tw-sw input:checked + .tw-box { border-color: var(--wp--preset--color--primary-light); box-shadow: inset 0 0 0 2px var(--tw-panel), 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--primary-light) 40%, transparent); }
.tw-sw .tw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tw-apply { margin-top: 1rem; width: 100%; padding: 0.8em 1em; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; font: 600 0.9rem var(--wp--preset--font-family--display); cursor: pointer; }
.tw-filter-toggle { display: none; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--tw-line-2); background: var(--tw-tint); color: var(--tw-strong); font: 600 0.875rem var(--wp--preset--font-family--display); cursor: pointer; }
.tw-filter-toggle svg { width: 1rem; height: 1rem; }
.tw-toolbar { padding-block: 0 1.2rem; gap: 0.8rem !important; }
.tw-empty { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--tw-line-2); border-radius: 22px; }
.tw-main .tw-grid .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .tw-main .tw-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 1000px) {
	.tw-shop-cols { flex-direction: column; }
	.tw-shop-cols > .wp-block-column { flex-basis: 100% !important; width: 100%; }
	.tw-side { position: static; display: none; }
	.tw-side.is-open { display: block; }
	.tw-filter-toggle { display: inline-flex; }
}
@media (max-width: 600px) { .tw-main .tw-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* header icons: one size, one centre line */
.tw-actions .wp-block-search, .tw-actions .wp-block-search__inside-wrapper { height: 2.5rem; min-height: 0; display: flex; align-items: center; }
.tw-actions .wp-block-search__button, .tw-actions .wp-block-woocommerce-customer-account, .tw-actions .wc-block-customer-account__link { width: 2.5rem !important; height: 2.5rem !important; min-width: 0 !important; }
.tw-actions .wc-block-customer-account__link { display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%; }
.tw-actions .wc-block-customer-account__visual { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; }
.tw-actions svg.search-icon, .tw-actions .wc-block-customer-account__account-icon, .tw-actions .wc-block-mini-cart__icon { width: 1.25rem !important; height: 1.25rem !important; }
.tw-actions .tw-mode svg { width: 1.1rem !important; height: 1.1rem !important; }
.tw-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-price input { min-width: 0; }

.tw-price input, .tw-price label { box-sizing: border-box; max-width: 100%; }
.tw-filters input[type="number"] { box-sizing: border-box; -moz-appearance: textfield; }
