/* ============ Utility bar ============ */
.utility-bar {
  background: var(--support);
  color: #fff;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  font-size: 12.5px;
}
.utility-bar a { color: #fff; opacity: .85; }
.utility-bar a:hover { opacity: 1; }
.utility-bar__links { display: flex; gap: var(--space-lg); }
.utility-bar__links ul { display: flex; gap: var(--space-md); }

/* ============ Site header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--ink-10);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  height: var(--header-h);
  transition: height .2s ease;
}
.site-header.is-scrolled .site-header__row { height: var(--header-h-scrolled); }

.site-logo { display: flex; align-items: center; }
.site-logo img,
.site-logo__img {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: height .2s ease;
}
.site-header.is-scrolled .site-logo img { height: 30px; }

.site-search { position: relative; max-width: 560px; width: 100%; }
.site-search input[type="search"] {
  width: 100%;
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-pill);
  padding: 12px 52px 12px 20px;
  font-size: 14px;
  background: var(--surface);
}
.site-search input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.site-search button {
  position: absolute;
  right: 4px; top: 4px; bottom: 4px;
  width: 40px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
}
.site-search button svg { stroke: #fff; }

.header-actions { display: flex; align-items: center; gap: var(--space-md); }
.header-icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
}
.header-icon-btn:hover { background: var(--surface); }
.header-icon-btn .count {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ============ Category nav ============ */
.category-nav {
  background: var(--accent);
  border-bottom: 0;
}
.category-nav__list {
  display: flex;
  gap: var(--space-lg);
  height: 48px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav__list::-webkit-scrollbar { display: none; }
.category-nav__list a {
  font-size: 14px;
  font-weight: 600;
  /* Dark ink on the brand orange = 5.96:1. White would be 2.93:1 and fail AA. */
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.category-nav__list a:hover,
.category-nav__list a.is-active {
  color: var(--ink);
  border-color: var(--ink);
}

.mobile-menu-toggle { display: none; }

/* ============ Cart drawer ============ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg);
  z-index: 400;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__overlay {
  position: fixed; inset: 0;
  background: rgba(28,25,23,.45);
  z-index: 399;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.cart-drawer__overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--ink-10);
}
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-drawer__foot { padding: var(--space-lg); border-top: 1px solid var(--ink-10); }
.cart-drawer__totals { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: var(--space-md); }

/* ============ Site footer ============ */
.site-footer { background: var(--support); color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .footer-logo { display: inline-block; margin-bottom: var(--space-md); }
.footer-brand img { height: 30px; width: auto; max-width: 160px; object-fit: contain; }
.footer-brand p { font-size: 14px; opacity: .75; margin-bottom: var(--space-md); }
.footer-col h4 { color: #fff; font-family: var(--font-heading); font-size: 15px; margin-bottom: var(--space-md); }
.footer-col ul li { margin-bottom: var(--space-sm); font-size: 14px; }
.social-row { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.newsletter-form { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.newsletter-form input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-md);
  font-size: 13px; opacity: .7;
}

/* ============ Mobile bottom nav ============ */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--ink-10);
  z-index: 300;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-bottom-nav__list { display: flex; }
.mobile-bottom-nav__list li { flex: 1; }
.mobile-bottom-nav__list a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px;
  font-size: 11px; color: var(--ink-60);
}
.mobile-bottom-nav__list a.is-active { color: var(--accent-text); }

.mobile-cart-fab {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent);
  z-index: 301;
  border: 4px solid var(--bg);
}
@media (max-width: 960px) { .mobile-cart-fab { display: flex; } }

/* ============ Floating buttons (site-wide) ============ */
.scroll-top-btn {
  position: fixed;
  right: var(--space-md);
  bottom: 78px;
  width: 44px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 260;
}
.scroll-top-btn.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 961px) { .scroll-top-btn { bottom: var(--space-lg); } }

.whatsapp-bubble {
  position: fixed;
  right: var(--space-md);
  bottom: 128px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 260;
}
.whatsapp-bubble::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}
@media (min-width: 961px) { .whatsapp-bubble { bottom: 86px; } }

/* ============ Mobile responsive (continued) ============ */
@media (max-width: 960px) {
  .site-header__row { grid-template-columns: auto auto 1fr auto; height: 64px; }
  .site-logo img, .site-logo__img { height: 28px; max-width: 130px; }
  .site-search { display: none; }
  .utility-bar { display: none; }
  .category-nav { display: none; }
  .mobile-menu-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 62px; }
}

/* ============ Icon buttons (SVG, min 44px hit area) ============ */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
}
.icon-btn:hover { background: var(--surface); }
.social-row a { color: #fff; }
