:root {
  --fk-white: #fff;
  --fk-off-white: #f5f5f5;
  --fk-light-grey: #ececec;
  --fk-border: #dcdcdc;
  --fk-text: #141414;
  --fk-muted: #666666;
  --fk-near-black: #171717;
  --fk-charcoal: #2a2a2a;
  --fk-container: 1320px;
  --fk-radius: 6px;
  --fk-space-1: 4px;
  --fk-space-2: 8px;
  --fk-space-3: 12px;
  --fk-space-4: 16px;
  --fk-space-6: 24px;
  --fk-space-8: 32px;
  --fk-space-12: 48px;
  --fk-space-16: 64px;
  --fk-shadow: 0 12px 36px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fk-text);
  background: var(--fk-white);
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--fk-near-black); outline-offset: 3px; }

.fk-container { width: min(100% - 32px, var(--fk-container)); margin-inline: auto; }
.fk-main-content { min-height: 60vh; }
/* Hello Elementor's theme.css caps .site-main at 1140px on any page not
   built with the Elementor page editor (matched via an elementor-page-*
   body class) — every WooCommerce archive/product template on this site
   falls into that bucket. Per the Phase 3 full-width decision, remove
   the cap site-wide so .fk-archive / .single-product div.product's own
   min(100% - 32px, var(--fk-container)) width actually has the full
   viewport to compute against, instead of an artificially narrowed one.
   !important is deliberate here: Hello Elementor's own selector is
   `body:not([class*=elementor-page-]) .site-main`, specificity (0,2,1) —
   the body type selector beats this rule's two classes, (0,2,0), even
   though this stylesheet loads later. A plain override never actually
   applied despite looking correct; forcing it is the reliable fix for
   overriding parent-theme framework CSS we don't control. */
.fk-main-content .site-main { max-width: none !important; }
.fk-skip-link { position: fixed; left: 16px; top: -100px; z-index: 99999; padding: 10px 14px; background: var(--fk-text); color: #fff; }
.fk-skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.fk-announcement { background: var(--fk-text); color: #fff; font-size: 13px; text-align: center; padding: 7px 0; letter-spacing: .02em; }
.fk-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--fk-border); backdrop-filter: blur(12px); }
.fk-header-row { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.fk-logo a { display: inline-flex; font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -.03em; }
.fk-logo img { display: block; max-height: 46px; width: auto; }
.fk-menu { display: flex; justify-content: center; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.fk-menu a { font-size: 14px; font-weight: 550; text-decoration: none; }
.fk-menu a:hover { opacity: .62; }

/* Checkout: stripped header/footer (Phase 7 — no full shopping nav while
   completing an order). See header.php/footer.php for the is_checkout()
   conditionals that swap these variants in. */
.fk-site-header--checkout .fk-header-row { display: flex; justify-content: space-between; align-items: center; }
.fk-checkout-header-note { margin: 0; font-size: 13px; font-weight: 650; color: var(--fk-muted); }
.fk-footer--checkout { margin-top: 32px; padding: 20px 0; }
.fk-footer--checkout .fk-footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; text-align: center; color: var(--fk-muted); }

/* Desktop dropdown: hover- and keyboard-focus-revealed, no JS needed.
   Mobile gets its own accordion toggle already built in site.js, which
   targets .fk-mobile-menu li.menu-item-has-children directly — unrelated
   to this, no shared markup to keep in sync beyond the WP menu itself. */
.fk-menu li.menu-item-has-children { position: relative; }
.fk-menu li.menu-item-has-children > a { display: flex; align-items: center; gap: 5px; }
.fk-menu li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border: 1.6px solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); }
.fk-menu .sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 1001; margin: 14px 0 0; padding: 10px; list-style: none; min-width: 220px; background: #fff; border: 1px solid var(--fk-border); border-radius: var(--fk-radius); box-shadow: var(--fk-shadow); opacity: 0; visibility: hidden; transition: opacity .15s ease; }
.fk-menu li.menu-item-has-children:hover > .sub-menu,
.fk-menu li.menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.fk-menu .sub-menu li + li { margin-top: 2px; }
.fk-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fk-menu .sub-menu a:hover { background: var(--fk-light-grey); opacity: 1; }
.fk-header-actions { display: flex; align-items: center; gap: 6px; }
.fk-icon-button { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; color: inherit; background: transparent; border: 0; border-radius: 50%; text-decoration: none; cursor: pointer; }
.fk-icon-button:hover { background: var(--fk-light-grey); }
.fk-cart-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; background: var(--fk-text); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; }
.fk-menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; cursor: pointer; }

.fk-search-panel { border-top: 1px solid var(--fk-border); background: #fff; }
.fk-search-inner { padding-block: 18px; }
.fk-search-panel form, .fk-mobile-search form { display: flex; gap: 8px; }
.fk-search-panel input[type="search"], .fk-mobile-search input[type="search"] { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--fk-border); border-radius: var(--fk-radius); background: #fff; }
.fk-search-panel button, .fk-mobile-search button { min-height: 48px; padding: 0 22px; border: 1px solid var(--fk-text); border-radius: var(--fk-radius); background: var(--fk-text); color: #fff; cursor: pointer; }

.fk-mobile-drawer { position: fixed; inset: 0; z-index: 2000; }
.fk-mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.fk-mobile-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 390px); overflow-y: auto; padding: 20px; background: #fff; box-shadow: var(--fk-shadow); }
.fk-mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fk-mobile-search { margin-bottom: 24px; }
.fk-mobile-menu { margin: 0; padding: 0; list-style: none; }
.fk-mobile-menu li { border-bottom: 1px solid var(--fk-border); }
.fk-mobile-menu a { display: block; padding: 14px 2px; font-weight: 600; text-decoration: none; }
body.fk-menu-open { overflow: hidden; }

.fk-footer { margin-top: 72px; padding: 64px 0 24px; background: var(--fk-light-grey); border-top: 1px solid var(--fk-border); }
.fk-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(5,1fr); gap: 32px; }
.fk-footer h2 { margin: 0 0 14px; font-size: 15px; }
.fk-footer-brand { margin-bottom: 12px; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.fk-footer p { max-width: 38ch; color: var(--fk-muted); }
.fk-footer-menu { margin: 0; padding: 0; list-style: none; }
.fk-footer-menu li + li { margin-top: 8px; }
.fk-footer-menu a { color: var(--fk-muted); text-decoration: none; }
.fk-footer-menu a:hover { color: var(--fk-text); }
.fk-footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--fk-border); font-size: 13px; }
.fk-footer-social { display: flex; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.fk-footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fk-border); color: var(--fk-text); }
.fk-footer-social a:hover { background: var(--fk-text); color: var(--fk-off-white); }
.fk-newsletter-form { display: flex; gap: 8px; }
.fk-newsletter-form input[type="email"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--fk-border); border-radius: 4px; font: inherit; }
.fk-newsletter-form button { padding: 10px 16px; border: 0; border-radius: 4px; background: var(--fk-text); color: var(--fk-off-white); font: inherit; cursor: pointer; }
.fk-newsletter-note { margin-top: 8px; font-size: 12px; color: var(--fk-muted); }

@media (max-width: 900px) {
  .fk-header-row { grid-template-columns: auto 1fr auto; gap: 10px; min-height: 64px; }
  .fk-menu-toggle { display: grid; }
  .fk-primary-nav { display: none; }
  .fk-logo { text-align: center; }
  .fk-header-actions .fk-icon-button:nth-child(2) { display: none; }
  .fk-footer-grid { grid-template-columns: repeat(3,1fr); }
  .fk-footer-grid > section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .fk-container { width: min(100% - 28px, var(--fk-container)); }
  .fk-announcement { font-size: 12px; }
  .fk-logo img { max-height: 38px; }
  .fk-footer { margin-top: 48px; padding-top: 48px; }
  .fk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; }
}

/* Buttons (used outside WooCommerce templates, e.g. 404 / search empty state) */
.fk-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--fk-radius); font-weight: 700; text-decoration: none; line-height: 1.2; transition: opacity .2s ease; }
.fk-button--primary { background: var(--fk-text); color: var(--fk-white); border: 1px solid var(--fk-text); }
.fk-button--primary:hover { opacity: .82; }
.fk-button--ghost { background: transparent; color: var(--fk-text); border: 1px solid var(--fk-border); }
.fk-button--ghost:hover { border-color: var(--fk-text); }

/* Pills (popular categories / brands lists) */
.fk-pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.fk-pill { display: inline-flex; padding: 9px 16px; border: 1px solid var(--fk-border); border-radius: 999px; color: var(--fk-text); text-decoration: none; font-size: 14px; }
.fk-pill:hover { border-color: var(--fk-text); background: var(--fk-light-grey); }

/* 404 and search zero-result state */
.fk-error-page, .fk-search-results-page { padding: 64px 0 96px; text-align: center; }
.fk-error-eyebrow { margin: 0 0 8px; color: var(--fk-muted); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.fk-error-page h1, .fk-search-empty h1 { margin: 0 0 14px; font-size: clamp(28px,4vw,42px); letter-spacing: -.03em; }
.fk-error-lede { max-width: 56ch; margin: 0 auto 32px; color: var(--fk-muted); }
.fk-error-search { max-width: 480px; margin: 0 auto 40px; }
.fk-error-search form { display: flex; }
.fk-error-search input[type="search"] { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--fk-border); border-radius: var(--fk-radius) 0 0 var(--fk-radius); font: inherit; }
.fk-error-search button { min-height: 48px; padding: 0 18px; border: 1px solid var(--fk-text); border-radius: 0 var(--fk-radius) var(--fk-radius) 0; background: var(--fk-text); color: var(--fk-white); }
.fk-error-section { margin-bottom: 36px; }
.fk-error-section h2 { margin: 0 0 14px; font-size: 15px; }
.fk-error-section .fk-pill-list { justify-content: center; margin-bottom: 0; }
.fk-error-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Search results with actual matches */
.fk-search-heading { margin: 0 0 28px; font-size: clamp(22px,3vw,32px); }
.fk-search-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 34px 20px; margin: 0; padding: 0; list-style: none; text-align: left; }
.fk-search-item__link { display: block; text-decoration: none; color: inherit; }
.fk-search-item__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; margin-bottom: 12px; background: var(--fk-light-grey); }
.fk-search-item__title { margin: 0 0 6px; font-size: 16px; }
.fk-search-item__excerpt { margin: 0; color: var(--fk-muted); font-size: 14px; }
.fk-search-pagination { margin-top: 48px; }

@media (max-width: 900px) {
  .fk-search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .fk-error-search form { flex-direction: column; }
  .fk-error-search input[type="search"], .fk-error-search button { border-radius: var(--fk-radius); }
  .fk-error-search button { margin-top: 8px; }
}
