/* Shared site shell: tokens, base, header, search and footer.
   Source of truth for both Next.js (imported by globals.css) and the WordPress theme.
   After editing, run `npm run sync:theme` to copy it to wordpress/themes/meduolis/assets/shell.css. */
:root {
  --brand: #49352b;
  --brand-hover: #65483a;
  --ink: #392e29;
  --muted: #74685f;
  --paper: #faf8f4;
  --surface: #f1eee8;
  --line: #e8e5df;
  --line-strong: #a3968d;
  --focus: #946f4c;
  --container: 1280px;
  --gutter: 40px;
  --section: clamp(64px, 7vw, 100px);
  --topbar-height: 36px;
  --header-height: 96px;
  --radius: 4px;
  --radius-media: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 10px 30px -18px #392e2955;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 Raleway, Arial, sans-serif; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #e7dacb; color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 1px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.22; letter-spacing: -.018em; }
h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.005em; }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
a:hover { text-decoration: underline; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; min-height: 50px; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; text-align: center; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }
.button:active { transform: translateY(1px); }
.text-link { position: relative; display: inline-block; padding-block: 10px 6px; border-bottom: 1px solid var(--line-strong); font-size: 15px; font-weight: 600; transition: border-color .2s var(--ease), color .2s var(--ease); }
.text-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
/* A line in the link colour sweeps in from the left on hover and out to the right. */
.text-link::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.skip-link { position: absolute; top: -100px; left: var(--gutter); padding: 12px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); z-index: 20; }
.skip-link:focus { top: 8px; }

/* Shared navigation */
.site-header { position: sticky; top: calc(-1 * var(--topbar-height)); z-index: 10; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* Cocoa announcement bar: a verified store fact on the left, direct contact on the right. */
.topbar { background: var(--brand); color: #eadfd3; font-size: 13px; }
.topbar .container { min-height: var(--topbar-height); display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.topbar-note { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-weight: 500; letter-spacing: .01em; }
.topbar-contacts { display: flex; align-items: center; gap: 26px; }
.topbar-contacts a, .topbar-contacts span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { opacity: .7; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar a:focus-visible, .site-footer a:focus-visible { outline-color: #f1e3d3; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 35px; }
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { width: 132px; height: 78px; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; gap: 34px; flex: 1; }
.desktop-nav a { padding-block: 14px; font-size: 15px; font-weight: 500; text-underline-offset: 8px; }
[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; color: inherit; border: 0; border-radius: 50%; transition: background-color .2s var(--ease); }
.icon-button:hover { background: var(--surface); }
.icon-button[aria-expanded="true"] { background: var(--surface); }
.mobile-menu { display: none; }
.mobile-navigation { padding-block: 4px 18px; border-top: 1px solid var(--line); }
.mobile-navigation a { display: block; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.mobile-navigation a:last-child { border-bottom: 0; }
.search-form { padding-block: 14px 28px; }
.search-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.search-field { position: relative; max-width: 860px; }
.search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2 2 12' stroke='%2374685f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.search-row { display: flex; gap: 12px; }
.search-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; max-height: min(560px, calc(100dvh - var(--header-height) - 150px)); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-media); box-shadow: 0 24px 50px -24px #392e2955; }
.search-suggestions [role="listbox"] { transition: opacity .2s var(--ease); }
.search-suggestions[aria-busy="true"] [role="listbox"] { opacity: .55; }
.search-suggestions [role="option"] { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--radius); }
.search-suggestions [role="option"]:hover, .search-suggestions [aria-selected="true"] { background: var(--surface); text-decoration: none; }
.search-suggestions img, .search-no-image { display: block; width: 48px; height: 58px; object-fit: cover; border-radius: 3px; background: var(--surface); }
.search-name { font-size: 15px; line-height: 1.4; }
.search-price { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.search-message { margin: 0; padding: 14px 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.search-all { display: block; margin-top: 4px; padding: 12px 10px 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; text-align: center; }
.search-all:hover { color: var(--brand); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.search-form input[type="search"] { flex: 1; min-width: 0; min-height: 50px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 16px; transition: border-color .2s var(--ease); }
.search-form input[type="search"]:focus { border-color: var(--brand); }

/* Footer */
.site-footer { background: var(--brand); color: #eadfd3; }
.footer-brand { display: flex; align-items: center; gap: 16px; padding-block: 52px 36px; background: linear-gradient(#ffffff1f, #ffffff1f) bottom center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.4; color: #d6c6b6; }
.footer-brand .footer-name { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.footer-grid { display: grid; grid-template-columns: .9fr 1.1fr 1.3fr 1.1fr; gap: 48px; padding-block: 40px 56px; }
.footer-grid h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.footer-grid a { display: flex; align-items: center; gap: 10px; width: fit-content; padding-block: 5px; font-size: 15px; color: #eadfd3; transition: color .2s var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-grid p { max-width: 36ch; margin-bottom: 12px; font-size: 15px; line-height: 1.7; color: #d6c6b6; }
.footer-contacts p { display: flex; align-items: center; gap: 10px; margin: 0; padding-block: 5px; color: #eadfd3; }
.footer-contacts svg { opacity: .7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; color: #c6b3a2; font-size: 13px; background: linear-gradient(#ffffff1f, #ffffff1f) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-bottom p { margin: 0; }

/* Cart count, read from WooCommerce in both apps. */
.cart-link { position: relative; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: lining-nums tabular-nums; pointer-events: none; }
/* WordPress toolbar for signed-in editors; on narrow screens it scrolls away instead of staying fixed. */
.admin-bar .site-header { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--topbar-height)); }
@media (max-width: 600px) { .admin-bar .site-header { top: calc(-1 * var(--topbar-height)); } }

@media (max-width: 1050px) {
  :root { --gutter: 28px; }
  .header-inner { gap: 20px; }.desktop-nav { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --topbar-height: 30px; --header-height: 76px; --section: 60px; }
  .topbar .container { justify-content: center; font-size: 12px; }.topbar-contacts { display: none; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .brand { grid-column: 2; grid-row: 1; }.brand img { width: 104px; height: 62px; }
  .mobile-menu { display: inline-flex; grid-column: 1; grid-row: 1; margin-left: -10px; }
  .desktop-nav { display: none; }.header-actions { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 0; margin-right: -10px; }
  .search-form { padding-bottom: 20px; }.search-form .button { padding-inline: 18px; }
  .search-suggestions [role="option"] { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; align-content: center; }.search-suggestions img, .search-no-image { width: 44px; height: 53px; grid-row: span 2; }.search-name { font-size: 14px; }.search-price { font-size: 13px; }
  .button, .text-link { font-size: 14px; }
  .footer-brand { padding-block: 40px 28px; }.footer-grid { gap: 28px 24px; padding-block: 32px 40px; }.footer-grid section { grid-column: 1 / -1; }.footer-grid h2 { margin-bottom: 8px; }.footer-grid a, .footer-contacts p { padding-block: 8px; }.footer-bottom { flex-direction: column; gap: 6px; }
}
/* One missing-page design for Next.js and WordPress. */
.missing-page { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 7vw, 96px); text-align: center; }
.missing-page-art { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 28px; color: var(--brand); font-size: clamp(128px, 15vw, 190px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.missing-page-zero { position: relative; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.missing-page-zero img { position: absolute; width: 78%; max-width: none; height: auto; top: 50%; left: 50%; transform: translate(-50%, -46%) rotate(-8deg); }
.missing-page h1 { margin-bottom: 20px; font-size: clamp(32px, 3.5vw, 46px); }
.missing-page-description { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-size: 16px; }
.missing-page-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 28px; }
.missing-page-help { width: fit-content; max-width: 100%; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.missing-page-help a { color: var(--ink); text-decoration: underline; }
@media (max-width: 480px) {
  .missing-page-art { margin-bottom: 24px; }
  .missing-page-actions { flex-direction: column; gap: 12px; }
  .missing-page-actions .button { width: 100%; max-width: 280px; }
  .missing-page-break { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
