/* Keramikos ABC: what the WordPress site adds to the concept's stylesheet (site.css): the skip link, the cookie
   choice, cards for products without a 3D picture yet, plain text pages, the admin bar, form errors. Same tokens. */

/* skip to the content (keyboard) */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--radius, 4px); background: var(--btn); color: var(--on-btn); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main[id^="view-"]:focus { outline: none; }

/* WordPress admin bar (logged-in staff only): the sticky header sits under it */
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* the hidden field that only bots fill */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- cookie choice ---------- */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cc__in { pointer-events: auto; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 14px; padding: 20px 22px; border-radius: 6px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(var(--shadow), 0.45); }
.cc__t { font: 600 1.25rem/1.2 var(--font-display, 'Playfair Display', serif); }
.cc__t:focus { outline: none; }
.cc__p { font-size: 0.9375rem; line-height: 1.55; color: var(--fg-2); }
.cc__p a { color: var(--fg); }
.cc__opts { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.cc__opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.45; }
.cc__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.cc__opt b { display: block; font-weight: 600; color: var(--fg); }
.cc__opt span { color: var(--fg-2); }
.cc__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc__acts .btn { flex: 1 1 auto; justify-content: center; min-width: 9rem; }
.has-cc .bar { visibility: hidden; }
@media (max-width: 560px) { .cc { left: 8px; right: 8px; bottom: 8px; } .cc__in { padding: 14px 16px; gap: 10px; } .cc__t { font-size: 1.0625rem; } .cc__p { font-size: 0.8125rem; line-height: 1.45; } .cc__acts { gap: 8px; } .cc__acts .btn { flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 44px; padding-block: 8px; } }

/* ---------- catalogue cards for products without a 3D picture yet: the shop photo fills the square ---------- */
.cat-card__media .cat-card__one { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cat-item.is-photo .cat-card__media { background: var(--surface-2); }
.mz-media > span.is-one { background-size: contain; background-position: center; background-repeat: no-repeat; }
.mz-media > span.mz-tex.is-one { background-size: cover; }
.cat-grid--search { margin-block: 8px 32px; }
.cat-guide--legacy .cat-guide__body > * + * { margin-top: 0.8em; }
.cat-guide--legacy .cat-guide__body h2, .cat-guide--legacy .cat-guide__body h3 { font: 600 1.35rem/1.25 var(--font-display, 'Playfair Display', serif); margin-top: 1.2em; }
.cat-guide--legacy .cat-guide__body ul { padding-left: 1.2em; list-style: square; }

/* ---------- messages when something could not be sent ---------- */
.cart__msg, .co-err, .buy__err, .salon-form__err, .wd__err { color: var(--err); font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }
.cart__msg { padding: 12px 20px 0; }
.co-err { margin-top: 12px; }
.buy__err { margin-top: 8px; }
[aria-busy="true"] { cursor: progress; }
.line__imglink { display: contents; }
.line__name a { color: inherit; text-decoration: none; }
.line__name a:hover { text-decoration: underline; }
.cartpage .cart__body { padding: 0; }
.cartpage .cart__foot { position: static; padding-inline: 0; }

/* ---------- plain pages: purchase terms, privacy policy, 404, search ---------- */
.page-plain { padding-block: clamp(32px, 6vw, 96px); display: grid; gap: 18px; }
.page-plain__title, .page-text__title { font: 600 clamp(2rem, 1.3rem + 2.6vw, 3.4rem)/1.08 var(--font-display, 'Playfair Display', serif); letter-spacing: -0.02em; max-width: 22ch; }
.page-plain__lede { font-size: var(--step-1, 1.125rem); color: var(--fg-2); max-width: 60ch; }
.page-plain__search { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.page-plain__search input { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius, 4px); background: var(--surface); color: var(--fg); font: inherit; }
.page-plain__links { color: var(--fg-2); }
.page-plain__links a { color: var(--fg); }
.page-text { padding-bottom: clamp(48px, 7vw, 112px); }
.page-text__in { display: grid; gap: 24px; max-width: 46rem; }
.page-text__head { display: grid; gap: 8px; padding-top: clamp(8px, 2vw, 20px); }
.page-text__meta { font-size: 0.875rem; color: var(--fg-2); }
.page-text__body h2 { font: 600 clamp(1.45rem, 1.2rem + 1vw, 1.9rem)/1.2 var(--font-display, 'Playfair Display', serif); margin-top: 1.6em; }
.page-text__body h3 { font-weight: 700; font-size: 1.125rem; margin-top: 1.3em; }
.page-text__body > * + * { margin-top: 0.9em; }
.page-text__body ul, .page-text__body ol { padding-left: 1.3em; }
.page-text__body li + li { margin-top: 0.35em; }
.page-text__body table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.page-text__body th, .page-text__body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
/* WordPress' own table-block styles (borders on every cell, a heavy header line, fixed columns, the figure's side
   margins) give way to the site's quieter rules */
.page-text__body .wp-block-table { margin: 0; overflow-x: auto; }
.page-text__body .wp-block-table table { table-layout: auto; }
.page-text__body .wp-block-table thead { border-bottom: 0; }
.page-text__body .wp-block-table th, .page-text__body .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px 10px 0; overflow-wrap: normal; }
.page-text__body .wp-block-table .has-fixed-layout th, .page-text__body .wp-block-table .has-fixed-layout td { word-break: normal; }
.page-text__body .wp-block-table td:first-child { overflow-wrap: anywhere; }
.page-text__body .wp-block-table th { font-weight: 700; font-size: 0.875rem; border-bottom-color: var(--line-strong, var(--fg)); }
.page-text__body .wp-block-table td:first-child { font-weight: 600; }
@media (max-width: 640px) {
  .page-text__body .wp-block-table table:not(.is-stack) { min-width: 34rem; }
  .page-text__body .wp-block-table table.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-text__body .wp-block-table table.is-stack, .page-text__body .wp-block-table table.is-stack tbody, .page-text__body .wp-block-table table.is-stack tr { display: block; }
  .page-text__body .wp-block-table table.is-stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .page-text__body .wp-block-table table.is-stack tr:first-child { border-top: 1px solid var(--line-strong, var(--fg)); }
  .page-text__body .wp-block-table table.is-stack td { display: grid; grid-template-columns: minmax(6.5rem, 34%) 1fr; gap: 12px; padding: 4px 0; border: 0; }
  .page-text__body .wp-block-table table.is-stack td::before { content: attr(data-label); color: var(--fg-2); font-size: 0.8125rem; font-weight: 600; line-height: 1.6; }
  /* the first cell is the card's title */
  .page-text__body .wp-block-table table.is-stack td:first-child { display: block; font-size: 1rem; padding-bottom: 6px; }
  .page-text__body .wp-block-table table.is-stack td:first-child::before { content: none; }
  .page-text__body .wp-block-table table.is-two td { display: block; }
  .page-text__body .wp-block-table table.is-two td::before { content: none; }
}
.pdp-desc { margin-top: 28px; max-width: 46rem; color: var(--fg-2); }
.pdp-desc > * + * { margin-top: 0.8em; }

/* WordPress' own classes the editor may leave in content */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-block-image img, .page-text__body img { max-width: 100%; height: auto; }
.nav-links { display: flex; gap: 14px; margin-top: 24px; }
.nav-links .page-numbers { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius, 4px); text-decoration: none; color: var(--fg); }
.nav-links .page-numbers.current { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }

/* WooCommerce's own account pages (sign-in, lost password, orders, addresses): the site's fields and buttons */
.page-text .woocommerce { max-width: 34rem; }
.page-text .woocommerce h2 { font-size: 1.5rem; margin: 0 0 16px; }
.page-text .woocommerce form .form-row, .page-text .woocommerce .woocommerce-form-row { display: grid; gap: 6px; margin: 0 0 16px; }
.page-text .woocommerce label { font-size: 0.875rem; font-weight: 600; }
.page-text .woocommerce .required { color: var(--fg-2); text-decoration: none; border: 0; }
.page-text .woocommerce input.input-text, .page-text .woocommerce select, .page-text .woocommerce textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--fg); font: 600 1rem var(--font-ui);
}
.page-text .woocommerce input.input-text:focus-visible, .page-text .woocommerce select:focus-visible, .page-text .woocommerce textarea:focus-visible { outline: none; border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.page-text .woocommerce .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0 0 14px; }
.page-text .woocommerce .woocommerce-form-login__rememberme input { width: 18px; height: 18px; accent-color: var(--btn); }
.page-text .woocommerce button.button, .page-text .woocommerce a.button, .page-text .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: var(--radius);
  border: 1.5px solid transparent; background: var(--btn); color: var(--on-btn); font: 600 0.9375rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
}
.page-text .woocommerce button.button:hover, .page-text .woocommerce a.button:hover { background: color-mix(in srgb, var(--btn) 86%, var(--caramel)); }
.page-text .woocommerce .lost_password { margin: 12px 0 0; }
.page-text .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.page-text .woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.page-text .woocommerce-MyAccount-navigation .is-active a { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.page-text .woocommerce table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.page-text .woocommerce th, .page-text .woocommerce td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.page-text .woocommerce-error, .page-text .woocommerce-message, .page-text .woocommerce-info { list-style: none; margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--mark, #C4956A); background: var(--surface-2, #F3EFE9); }
