/*
 * Oxa base styles.
 * Resets, typography defaults, and layout primitives only.
 * Component styles live next to their templates under /components/<name>/styles.css.
 */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  font-family: var(--oxa-font-sans);
  font-size: 16px;
  line-height: 1.618;
  color: var(--oxa-text);
  background: var(--oxa-bg);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body { min-height: 100vh; }
/* SOLOS base (eflow-core/style.css): long words wrap inside their box (the narrow "Blini tani" button on phones breaks
   into 4 lines on live), no sideways page scroll, smooth anchor scrolling. */
body { -ms-word-wrap: break-word; word-wrap: break-word; overflow-x: hidden; }
html { scroll-behavior: smooth; }

img, svg, video { max-width: 100%; height: auto; display: block; }
/* Same base table rule as solos.shop (eflow-core/style.css): no gap between cells, 1.41575em below, full width. */
table { border-collapse: separate; border-spacing: 0; border-color: inherit; text-indent: 0; margin: 0 0 1.41575em; width: 100%; }

a { color: inherit; text-decoration: none; transition: color var(--oxa-dur) var(--oxa-ease); }
a:hover { color: var(--oxa-accent); }

/* SOLOS base (eflow-core/style.css): headings margin 0 0 .5407911001em, paragraphs 0 0 1.41575em. */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5407911001em 0; font-weight: 600; }
h1 { font-size: var(--oxa-fs-4xl); line-height: 1.214; letter-spacing: -1px; font-weight: 300; }
h2 { font-size: var(--oxa-fs-xl); line-height: 1.618; font-weight: 300; }
h3 { font-size: 1.618em; line-height: 1.618; font-weight: 300; }
h4 { font-size: var(--oxa-fs-md); }

p { margin: 0 0 1.41575em 0; }

/* SOLOS parent-theme base (eflow-core/style.css). */
b, strong { font-weight: 600; }
label { font-weight: 400; }
table td, table th { padding-bottom: .4rem; text-align: left; vertical-align: top; }
table th { font-weight: 600; }

/* SOLOS (child-theme/dist/style.css): headings and paragraphs inside .woocommerce
   are white. On shop and product pages that class is on <body>, so it also turns
   the footer contact lines and the filter drawer's "X" white. */
.woocommerce h1, .woocommerce h2, .woocommerce h3, .woocommerce h4, .woocommerce h5, .woocommerce h6,
.woocommerce p { color: #ffffff; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Layout primitives — small set, intentionally not a full utility framework. */

.oxa-container {
  width: 100%;
  max-width: var(--oxa-wide-width);
  margin-inline: auto;
  padding-inline: var(--oxa-space-4);
}

.oxa-content {
  max-width: var(--oxa-content-width);
  margin-inline: auto;
}

.oxa-stack > * + * { margin-top: var(--oxa-space-3); }
.oxa-stack-lg > * + * { margin-top: var(--oxa-space-5); }

.oxa-section {
  padding-block: clamp(var(--oxa-space-5), 8vw, var(--oxa-space-8));
}

.oxa-eyebrow {
  display: inline-block;
  font-size: var(--oxa-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oxa-muted);
}

.oxa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--oxa-radius);
  background: var(--oxa-primary);
  color: var(--oxa-on-primary);
  font-weight: 500;
  border: 1px solid var(--oxa-primary);
  transition: transform var(--oxa-dur) var(--oxa-ease), background var(--oxa-dur) var(--oxa-ease);
}
.oxa-btn:hover { transform: translateY(-1px); color: var(--oxa-on-primary); }

.oxa-btn--ghost {
  background: transparent;
  color: var(--oxa-text);
  border-color: var(--oxa-border);
}

.oxa-grid {
  display: grid;
  gap: var(--oxa-space-4);
}

.oxa-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.oxa-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.oxa-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.oxa-card {
  background: var(--oxa-surface);
  border: 1px solid var(--oxa-border);
  border-radius: var(--oxa-radius-lg);
  padding: var(--oxa-space-4);
}

.oxa-render-error {
  background: #fff4f4;
  color: #842029;
  border: 1px solid #f5c2c7;
  padding: 0.75rem 1rem;
  border-radius: var(--oxa-radius);
  font-family: var(--oxa-font-mono);
  font-size: var(--oxa-fs-sm);
}

/* Visually-hidden helper for accessible labels. */
.oxa-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Page wrapper (page.php): SOLOS content padding, no page title. */
.oxa-page { padding: 20px; }
.oxa-page > .wp-block-heading { margin-bottom: 12.1137px; } /* SOLOS "OFFERS" h2, measured on live */
/* SOLOS .entry-content: at most --max-width (1500px), centred (measured on live at 1440, 1536 and 1920px:
   content 1385 / 1481 / 1500px wide inside the 20px page padding). */
.oxa-page > * { max-width: var(--oxa-max-width); margin-inline: auto; }

@media (min-width: 768px) {
  .oxa-page { padding-block: 8px; }
}

/* ---------------------------------------------------------------------------
 * Header
 * Mobile first: toggle + account | logo | search + cart. From 768px: logo left,
 * menu button + icons right. Menu links from 1024px (SOLOS md / lg).
 * ------------------------------------------------------------------------- */

/* SOLOS header.main-menu: at most --max-width (1500px), centred — so above 1500px
   the logo, menu, icons and orange line keep a margin on both sides. */
.oxa-site-header {
  position: sticky; top: 0; z-index: 999;
  max-width: var(--oxa-max-width);
  margin-inline: auto;
  background: var(--oxa-bg);
  padding-block: 20px;
}

.oxa-header-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  grid-template-areas: "toggle account brand search cart";
  align-items: center;
  column-gap: 16px;
  width: 90%;
  margin-inline: auto;
  border-bottom: 2px solid var(--oxa-accent);
  border-radius: 2px;
}

.oxa-menu-toggle   { grid-area: toggle; }
.oxa-header-account { grid-area: account; }
/* The space under the logo makes the row 107px tall, so the icons centre at the
   same height as in SOLOS (where it was the hidden menu wrapper's py-3). */
.oxa-site-brand    { grid-area: brand; justify-self: center; padding-bottom: 24px; }
.oxa-header-search { grid-area: search; }
.oxa-header-cart   { grid-area: cart; margin-left: -4px; }
.oxa-site-nav      { display: none; }

.oxa-site-brand img { width: 64px; height: auto; margin-top: 20px; }

.oxa-header-icon {
  display: flex; align-items: center;
  padding: 0; border: 0; background: none;
  color: var(--oxa-text);
  cursor: pointer;
}
.oxa-header-icon svg { width: 24px; height: 24px; }
.oxa-menu-toggle svg,
.oxa-search-toggle svg { width: 28px; height: 28px; }
/* SOLOS hard-codes the search and menu icon colours, so only account and cart
   change colour on hover. */
.oxa-search-toggle,
.oxa-search-toggle:hover { color: rgba(255, 255, 255, .5); }
.oxa-header-account:hover,
.oxa-header-cart .cart-contents:hover { color: var(--oxa-accent); }

.oxa-menu-toggle__close { display: none; }
.oxa-site-header.is-menu-open .oxa-menu-toggle__open  { display: none; }
.oxa-site-header.is-menu-open .oxa-menu-toggle__close { display: block; }

/* Search: the icon reveals the field. */
.oxa-header-search { display: flex; align-items: center; gap: 8px; margin: 0; }
.oxa-header-search__input {
  display: none;
  width: 200px;
  padding: 4px 0;
  border: 0; outline: 0;
  background: transparent;
  color: var(--oxa-text);
  font-weight: 500;
}
.oxa-header-search.is-open .oxa-header-search__input { display: block; }
.oxa-header-search__input::-webkit-search-cancel-button { filter: invert(1); }

/* Cart link + count badge (markup from inc/solos/cart/cart.php). */
.oxa-header-cart .cart-contents { display: flex; align-items: center; color: var(--oxa-text); }
.oxa-header-cart .cart-contents > div { position: relative; }
.oxa-header-cart .cart-contents svg { width: 24px; height: 24px; }
.oxa-header-cart .count {
  position: absolute; top: -8px; right: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px;
  border-radius: 9999px;
  background: var(--oxa-accent);
  color: #ffffff;
  font-size: 10px; font-weight: 500; line-height: 1.5rem;
}

/* Drawer (below 1024px). SOLOS mobile menu: top-level links only; tapping a
   parent slides in its children under a "< Back" link (site-header behaviour). */
.oxa-drawer {
  position: absolute; top: calc(100% - 8px); left: 0;
  width: 100%; height: 100vh;
  overflow-y: auto;
  background: var(--oxa-bg);
}
.oxa-drawer > nav { width: 80%; padding-top: 16px; position: relative; overflow: hidden; }
.oxa-drawer[hidden] { display: none; }
.oxa-drawer-menu, .oxa-drawer-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.oxa-drawer-menu > li { padding-inline: 20px; }
.oxa-drawer-menu .sub-menu { display: none; }
.oxa-drawer-menu a {
  display: block;
  padding: 4px 0;
  color: var(--oxa-text);
  text-transform: uppercase;
  font-size: 18px; font-weight: 500; line-height: 28px;
}
.oxa-drawer-back {
  width: 80%;
  color: var(--oxa-text);
  text-transform: uppercase;
  font-size: 16px; font-weight: 500; line-height: 24px;
  cursor: pointer;
}
.oxa-drawer-back[hidden] { display: none; }
.oxa-drawer-menu--drill { transition: transform .3s ease; }
.oxa-drawer-menu--drill > li { padding-inline: 24px; }
.oxa-drawer-menu--drill.is-from-right { transform: translateX(100%); }
.oxa-drawer-menu--drill.is-from-left  { transform: translateX(-100%); }
.oxa-drawer-heading {
  padding-block: 11px;
  color: #b0b0b0;
  font-size: 20px; font-weight: 700; line-height: 28px;
}

@media (max-width: 1023px) {
  .oxa-header-search.is-open .oxa-header-search__input {
    position: absolute; top: 100%; left: 0; right: 0;
    width: auto;
    padding: 12px 0;
    background: var(--oxa-bg);
    border-bottom: 1px solid var(--oxa-border);
  }
}

/* From 768px: SOLOS desktop row (full-width line, logo left, icons right).
   768–1023px: no menu links; the menu button sits before the icons (SOLOS shows
   it in the same group, as a 16×28 icon) and opens the drawer. */
@media (min-width: 768px) {
  .oxa-header-bar {
    display: flex;
    column-gap: 12px;
    width: 100%;
    padding: 36px 16px 20px 0;
  }
  .oxa-site-brand { padding-bottom: 0; }
  .oxa-site-brand img { width: 85px; margin-top: 0; }
  /* Icons sit 8px above the logo/menu centre line, as in SOLOS. */
  .oxa-menu-toggle,
  .oxa-header-search,
  .oxa-header-account,
  .oxa-header-cart { position: relative; top: -8px; flex-shrink: 0; }
  .oxa-menu-toggle { order: 2; margin-left: auto; }
  .oxa-menu-toggle svg { width: 16px; }
  .oxa-header-search { order: 3; }
  .oxa-header-account { order: 4; margin-left: 8px; }
  .oxa-header-cart { order: 5; margin-left: 0; }
}

@media (min-width: 1024px) {
  .oxa-header-bar { padding-right: 0; }
  .oxa-menu-toggle, .oxa-drawer { display: none; }
  /* The menu starts right after the logo (no gap); 12px above/below as the SOLOS
     menu wrapper (py-3), which sets the row height when items wrap at 1024px. */
  .oxa-site-nav { display: block; flex: 1; margin-left: -12px; padding-block: 12px; }
  .oxa-header-account { margin-left: -4px; }

  .oxa-site-menu {
    display: flex; align-items: center; gap: 32px;
    list-style: none; margin: 0; padding: 0 64px;
  }
  .oxa-site-menu > li { position: relative; padding-inline: 16px; }
  .oxa-site-menu a {
    position: relative;
    display: block;
    padding-block: 4px;
    color: var(--oxa-text);
    text-transform: uppercase;
    font-size: 18px; font-weight: 500; line-height: 28px;
  }
  .oxa-site-menu a:hover { color: var(--oxa-accent); }
  /* The current page's menu item keeps its colour on hover (SOLOS). */
  .oxa-site-menu .current-menu-item > a,
  .oxa-site-menu .current-menu-item > a:hover { color: var(--oxa-text); }

  .oxa-site-menu .sub-menu {
    display: none;
    position: absolute; top: 100%; left: 16px; z-index: 10;
    width: 300px;
    list-style: none; margin: 0; padding: 12px 6px;
    background: var(--oxa-dropdown);
    opacity: .9;
  }
  .oxa-site-menu .sub-menu .sub-menu { position: static; width: auto; padding: 0; }
  .oxa-site-menu li:hover > .sub-menu,
  .oxa-site-menu li:focus-within > .sub-menu { display: block; }
  .oxa-site-menu .sub-menu li { padding-inline: 16px; }
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */

.oxa-site-footer {
  background: var(--oxa-surface);
  color: var(--oxa-text);
  padding: 16px;
}

.oxa-footer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.oxa-footer-logo { width: 85px; height: auto; }
.oxa-footer-company p { margin-bottom: 1.41575em; } /* SOLOS: 22.652px at 16px */
.oxa-footer-contact { color: var(--oxa-accent); }
.oxa-footer-directions { color: var(--oxa-text); text-decoration: underline; }

.oxa-footer-brands {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  list-style: none; margin: 0 0 16px; padding: 0;
}
.oxa-footer-brands img { width: 100%; height: auto; }

.oxa-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oxa-footer-menu, .oxa-footer-social { list-style: none; margin: 0; padding: 0; }
.oxa-footer-menu { padding-inline: 20px; }
.oxa-footer-menu a {
  display: block;
  padding-block: 4px;
  color: var(--oxa-text);
  text-transform: uppercase;
  font-size: 18px; font-weight: 500; line-height: 28px;
}
.oxa-footer-social a { color: var(--oxa-accent); font-size: 12px; font-weight: 500; line-height: 1rem; }
.oxa-footer-menu a:hover, .oxa-footer-social a:hover { color: var(--oxa-accent); }

/* Copyright centred in the free space, credit on the right; both shrink and wrap
   on narrow screens (SOLOS post-footer). */
.oxa-post-footer {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--oxa-max-width); /* SOLOS #post-footer-container */
  margin-inline: auto;
  padding: 8px;
}
.oxa-post-footer p { margin: 0 0 1.41575em; }
.oxa-post-footer .oxa-post-footer__copy { margin-inline: auto; text-align: center; }
.oxa-post-footer__credit { text-align: right; }
.oxa-post-footer__credit a { color: var(--oxa-accent); font-size: 14px; font-weight: 600; line-height: 1.25rem; }

@media (min-width: 768px) {
  .oxa-site-footer { padding: 20px 0; }
  /* SOLOS #solos-footer-container: at most --max-width (1500px), centred. */
  .oxa-footer-grid { grid-template-columns: 1fr 1fr; max-width: var(--oxa-max-width); margin: 35px auto 0; }
  /* SOLOS: logo mb-10 (40px) plus the 16px gap (gap-4) of the grid it shares with the text block. */
  .oxa-footer-logo { margin-bottom: 56px; }
  .oxa-footer-contact--first { margin-top: 80px; }
  .oxa-footer-brands img { margin-bottom: 40px; border-right: 1px solid #f3f4f6; }
  .oxa-footer-brands li:last-child img { border-right: 0; }
}

@media (min-width: 1024px) {
  .oxa-footer-menu { padding-inline: 64px; }
  .oxa-footer-menu li { padding-inline: 16px; }
  .oxa-footer-social { padding-inline: 64px; }
  .oxa-footer-social a { padding-inline: 16px; font-size: 16px; line-height: 1.5rem; text-transform: uppercase; }
  /* The current page's menu item keeps its colour on hover (SOLOS). */
  .oxa-footer-menu .current-menu-item > a,
  .oxa-footer-menu .current-menu-item > a:hover { color: var(--oxa-text); }
}

/* 404 page (404.php, markup copied from eflow-core): the Tailwind utility classes it uses, with Tailwind's values,
   limited to .error-404 so nothing else is affected. */
.error-404 .flex { display: flex; }
.error-404 .items-center { align-items: center; }
.error-404 .justify-center { justify-content: center; }
.error-404 .mt-8 { margin-top: 2rem; }
.error-404 .text-center { text-align: center; }
.error-404 .text-white { color: #ffffff; }
.error-404 .text-accent { color: var(--oxa-accent); }
.error-404 .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.error-404 .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.error-404 .font-semibold { font-weight: 600; }
.error-404 .font-bold { font-weight: 700; }
.error-404 .pb-1\.5 { padding-bottom: 0.375rem; }
.error-404 .border-b { border-bottom: 1px solid; }
.error-404 .border-gray-300 { border-color: #d1d5db; }
.error-404 .border-accent { border-color: var(--oxa-accent); }

/* Design refresh (2026-10-27): a visible keyboard focus. Delete this block to go back to the live-identical look. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--oxa-accent); outline-offset: 2px; }
