/*
Theme Name: Pimi Salon
Author: Pimi Studio
Description: Shared parent theme for Pimi Studio salon websites: data model, three switchable designs, booking and shop modules.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: pimi-salon
*/

/* Base: tokens are overridden per design in designs/X/style.css */
:root {
	--bg: #fff; --ink: #222; --muted: #555; --accent: #8a3b5a; --on-accent: #fff; --soft: #f3eef0; --line: #ddd; --focus: #8a3b5a;
	--radius: 6px; --font-head: Georgia, serif; --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main [id] { scroll-margin-top: 6rem; } /* clear the sticky header of designs A and B */
.pimi-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.pimi-skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: .75rem 1rem; background: #fff; color: #000; }
.pimi-skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pimi-demo { position: relative; z-index: 50; padding: .6rem 16px; background: #111; color: #fff; text-align: center; font: .9rem/1.4 system-ui, sans-serif; }
.pimi-btn, .a-btn, .b-btn, .c-btn { display: inline-block; min-height: 44px; padding: .7rem 1.4rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: 600 1rem/1.3 var(--font-body); text-decoration: none; cursor: pointer; }
.pimi-booking iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
.pimi-booking p { max-width: 60ch; }

/* Pages outside the front page (shop, cart, checkout...) */
.pimi-shell { border-bottom: 1px solid var(--line); background: var(--bg); }
.pimi-shell-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.pimi-shell-brand { font: 700 1.4rem var(--font-head); text-decoration: none; }
.pimi-shell ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.pimi-shell ul a { display: inline-block; padding: .6rem 0; text-decoration: none; }
.pimi-page { padding-block: 2.5rem 4rem; }
.pimi-shell-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
input, select, textarea { max-width: 100%; padding: .55rem .7rem; border: 1px solid #767676; border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; }

/* WooCommerce, in the active design's colours and type */
.woocommerce, .woocommerce-page { color: var(--ink); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce a.added_to_cart,
.wc-block-components-button:not(.is-link) { min-height: 44px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-family: var(--font-body); font-weight: 600; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.1); }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce div.product .product_title { font-family: var(--font-head); color: var(--ink); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent); font-weight: 600; }
.woocommerce ul.products li.product img { border-radius: min(var(--radius), 16px); }
.woocommerce .woocommerce-breadcrumb, .woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }
.woocommerce table.shop_table, .woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); }
.woocommerce-tabs ul.tabs li a, .woocommerce div.product .woocommerce-tabs ul.tabs li a { color: inherit; }
.woocommerce span.onsale { background: var(--accent); color: var(--on-accent); }

/* Demo-store notice: in flow (not fixed over the header), in the design's colours */
.woocommerce-store-notice, p.demo_store { position: static; display: block; margin: 0; padding: .6rem 16px; background: var(--accent); color: var(--on-accent); text-align: center; font: .9rem/1.4 var(--font-body); box-shadow: none; }
.woocommerce-store-notice a, p.demo_store a { color: inherit; }
/* Checkout/cart blocks hard-code white fields; follow the design so dark designs stay readable */
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-combobox .components-combobox-control input, .wc-block-components-quantity-selector input { background: var(--bg) !important; color: var(--ink) !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox .components-form-token-field__label { color: var(--muted) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { background: var(--bg); border-color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--line); background: var(--soft); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--bg); border-bottom-color: var(--bg); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.wc-block-components-order-summary-item__quantity { background: var(--accent); border-color: var(--bg); color: var(--on-accent); box-shadow: none; }
/* Order-received summary: wrap cleanly at narrow widths */
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0 0 2rem; padding: 0; }
.woocommerce ul.order_details li { float: none; margin: 0; padding: 0; border: 0; }
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
