@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

:root {
  --clark-navy:  #1D252E;
  --clark-red:   #EE2359;
  --clark-cream: #F7F3EE;
  --clark-sand:  #EDE8E1;
  --clark-mid:   #8A8A8A;
  --clark-white: #FFFFFF;
  --clark-dark:  #141414;
  --clark-serif: 'Questrial', sans-serif;
  --clark-sans:  'Questrial', sans-serif;
}

/* ── TOP BAR ── */
.clark-topbar {
  background: var(--clark-navy);
  color: rgba(255,255,255,.85);
  font-family: var(--clark-sans);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 9px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.clark-topbar a { color: inherit; text-decoration: none; }
.clark-topbar a:hover { color: #fff; }
.clark-topbar-right { display: flex; gap: 24px; }

/* ── HEADER WRAPPER ── */
.clark-header {
  background: var(--clark-white);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 0 var(--clark-sand);
  font-family: var(--clark-sans);
}

/* ── LOGO + SEARCH ROW ── */
.clark-header-main {
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.clark-logo {
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.clark-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.clark-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.clark-search form {
  display: flex;
  border: 1.5px solid var(--clark-sand);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s;
}
.clark-search form:focus-within { border-color: var(--clark-navy); }
.clark-search input[type="search"],
.clark-search input[type="text"] {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  font-family: var(--clark-sans);
  font-size: 14px;
  color: var(--clark-dark);
  background: var(--clark-white);
  outline: none;
  box-sizing: border-box;
  min-width: 0;
}
.clark-search input::placeholder { color: #bbb; }
.clark-search-btn {
  position: static !important;
  transform: none !important;
  background: var(--clark-navy) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 18px !important;
  transition: background .2s;
  flex-shrink: 0;
  border-radius: 0 !important;
}
.clark-search-btn:hover { background: var(--clark-red) !important; }
.clark-search-btn svg { width: 18px; height: 18px; stroke: #fff !important; fill: none; stroke-width: 2; }

.clark-utils {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
.clark-util {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--clark-dark);
  font-size: 11px;
  letter-spacing: .04em;
  transition: color .2s;
  font-family: var(--clark-sans);
}
.clark-util:hover { color: var(--clark-red); }
.clark-util svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.clark-btn-assess {
  background: var(--clark-red);
  color: #fff !important;
  border: none;
  padding: 11px 20px;
  font-family: var(--clark-sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s;
  white-space: nowrap;
  font-weight: 500;
  display: inline-block;
}
.clark-btn-assess:hover { background: #c91845; }

/* ── CATEGORY NAV ── */
.clark-nav {
  border-top: 1px solid var(--clark-sand);
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
}
.clark-nav-item {
  position: relative;
}
.clark-nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--clark-dark);
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--clark-sans);
}
.clark-nav-item > a:hover,
.clark-nav-item:hover > a {
  color: var(--clark-red);
  border-bottom-color: var(--clark-red);
}
.clark-nav-item > a svg {
  transition: transform .2s;
}
.clark-nav-item:hover > a svg {
  transform: rotate(180deg);
}
.clark-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--clark-white);
  border: 1px solid var(--clark-sand);
  border-top: 2px solid var(--clark-red);
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 9999;
  padding: 8px 0;
}
.clark-nav-item:hover .clark-dropdown {
  display: block;
}
.clark-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--clark-dark);
  text-decoration: none;
  transition: background .15s, color .15s;
  font-family: var(--clark-sans);
  font-weight: 300;
  border-bottom: none;
  margin-bottom: 0;
}
.clark-dropdown a:hover {
  background: var(--clark-cream);
  color: var(--clark-red);
}

/* ── BENEFITS STRIP ── */
.clark-benefits {
  background: var(--clark-cream);
  border-top: 1px solid var(--clark-sand);
  padding: 9px 40px;
  display: flex;
  gap: 36px;
  align-items: center;
  font-family: var(--clark-sans);
  flex-wrap: wrap;
}
.clark-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--clark-dark);
}
.clark-benefit-check {
  width: 16px;
  height: 16px;
  background: var(--clark-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clark-benefit-check svg {
  width: 9px;
  height: 9px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}

/* ── MOBILE HEADER ── */
.clark-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.clark-mobile-icon {
  position: relative;
  color: var(--clark-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.clark-mobile-icon svg { width: 28px; height: 28px; }
.clark-mobile-icon:hover { color: var(--clark-red); }
.clark-mobile-basket {
  position: relative;
  color: var(--clark-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.clark-mobile-basket svg { width: 28px; height: 28px; }
.clark-mobile-basket:hover { color: var(--clark-red); }
.clark-mobile-basket-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--clark-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.clark-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
}
.clark-hamburger span {
  display: block;
  height: 2px;
  background: var(--clark-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s, width .25s;
  width: 100%;
}
.clark-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.clark-hamburger.is-open span:nth-child(2) { opacity: 0; }
.clark-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER ── */
.clark-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.clark-drawer.is-open { transform: translateX(0); }
.clark-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.clark-drawer-overlay.is-visible { opacity: 1; pointer-events: all; }
.clark-drawer-inner { display: flex; flex-direction: column; min-height: 100%; }

.clark-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--clark-sand);
  flex-shrink: 0;
}
.clark-drawer-header .clark-logo img { height: 36px; }
.clark-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--clark-dark);
}
.clark-drawer-close svg { width: 24px; height: 24px; }

.clark-drawer-search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--clark-sand);
  flex-shrink: 0;
}
.clark-drawer-search form {
  display: flex;
  border: 1.5px solid var(--clark-sand);
  border-radius: 4px;
  overflow: hidden;
}
.clark-drawer-search input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-family: var(--clark-sans);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.clark-drawer-search button {
  background: var(--clark-navy);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.clark-drawer-search button svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }

.clark-drawer-nav { flex: 1; }
.clark-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.clark-drawer-item { border-bottom: 1px solid var(--clark-sand); }
.clark-drawer-item > a,
.clark-drawer-item-row > a {
  display: block;
  padding: 15px 20px;
  font-family: var(--clark-sans);
  font-size: 15px;
  color: var(--clark-dark);
  text-decoration: none;
  font-weight: 500;
}
.clark-drawer-item-row {
  display: flex;
  align-items: center;
}
.clark-drawer-item-row > a { flex: 1; }
.clark-drawer-expand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  color: var(--clark-mid);
  display: flex;
  align-items: center;
}
.clark-drawer-expand svg { width: 18px; height: 18px; transition: transform .2s; }
.clark-drawer-expand.is-open svg { transform: rotate(180deg); }

.clark-drawer-sub {
  display: none;
  background: var(--clark-cream);
  border-top: 1px solid var(--clark-sand);
}
.clark-drawer-sub.is-open { display: block; }
.clark-drawer-sub-item { border-bottom: 1px solid rgba(0,0,0,.06); }
.clark-drawer-sub-item:last-child { border-bottom: none; }
.clark-drawer-sub-item a {
  display: block;
  padding: 12px 20px 12px 32px;
  font-family: var(--clark-sans);
  font-size: 14px;
  color: #555;
  text-decoration: none;
}
.clark-drawer-sub-item a:hover { color: var(--clark-red); }

.clark-drawer-ctas {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--clark-sand);
  flex-shrink: 0;
}
.clark-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 4px;
  font-family: var(--clark-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}
.clark-drawer-cta--primary { background: var(--clark-red); color: #fff; }
.clark-drawer-cta--secondary { background: var(--clark-cream); color: var(--clark-dark); border: 1px solid var(--clark-sand); }
.clark-drawer-cta svg { width: 16px; height: 16px; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .clark-topbar { padding: 8px 24px; font-size: 11px; }
  .clark-topbar-right { gap: 16px; }
  .clark-header-main { padding: 14px 24px; gap: 20px; }
  .clark-nav { padding: 0 24px; }
  .clark-benefits { padding: 8px 24px; gap: 20px; }
}

@media (max-width: 768px) {
  /* Hide desktop elements */
  .clark-topbar { display: none; }
  .clark-search { display: none; }
  .clark-utils { display: none; }
  .clark-nav { display: none; }
  .clark-benefits { display: none; }

  /* Show mobile elements */
  .clark-mobile-actions { display: flex; }

  .clark-header-main { padding: 12px 16px; gap: 12px; }
  .clark-logo img { height: 36px; }
}

/* ── VAT RELIEF COMPACT WIDGET ── */
.clark-vat-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f6f9;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 12px 0 4px;
  font-family: var(--clark-sans);
  width: fit-content;
  clear: both;
}
.clark-vat-widget svg {
  width: 14px;
  height: 14px;
  stroke: #EE2359;
  flex-shrink: 0;
}
.clark-vat-widget-text {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}
.clark-vat-widget-text strong { color: #1D252E; }

/* Toggle switch */
.clark-vat-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.clark-vat-toggle input { opacity: 0; width: 0; height: 0; }
.clark-vat-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background .2s;
}
.clark-vat-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.clark-vat-toggle input:checked + .clark-vat-slider { background: #EE2359; }
.clark-vat-toggle input:checked + .clark-vat-slider::before { transform: translateX(18px); }

.clark-vat-state {
  font-size: 12px;
  font-weight: 600;
  color: #1D252E;
  white-space: nowrap;
}
.clark-vat-state.relief-on { color: #EE2359; }

/* Price suffix */
.clark-vat-suffix {
  font-size: .75em;
  font-weight: 400;
  color: #777;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .clark-vat-widget { flex-wrap: wrap; }
  .clark-vat-widget-text { display: none; }
}

/* Footer widget — hidden, exists only as a JS checkbox anchor */
.clark-vat-widget--footer {
  display: none !important;
}

/* ── Live search dropdown ─────────────────────────────────────────────────── */
.clark-search { position: relative; }

.clark-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26,39,68,.13);
  z-index: 9999;
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
}
.clark-search-results.is-open { display: block; }

.clark-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f2f4;
  transition: background .15s;
}
.clark-search-result:last-child { border-bottom: none; }
.clark-search-result:hover { background: #f7f8fa; }

.clark-search-result-img {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f8fa;
  flex-shrink: 0;
}
.clark-search-result-info { flex: 1; min-width: 0; }
.clark-search-result-title {
  font-size: 14px; font-weight: 600;
  color: #1a2744;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clark-search-result-meta {
  font-size: 12px; color: #888;
  margin-top: 2px;
}
.clark-search-result-price {
  font-size: 13px; font-weight: 700;
  color: #EE2359; white-space: nowrap;
}

.clark-search-no-results {
  padding: 16px 14px;
  font-size: 13px; color: #888; text-align: center;
}

.clark-search-all-link {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: #1a2744;
  background: #f7f8fa;
  border-top: 1px solid #e8eaed;
  text-decoration: none;
}
.clark-search-all-link:hover { background: #eef0f3; }

/* Mobile variant sits inside the drawer — no absolute positioning */
.clark-search-results--mobile {
  position: static;
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: none;
  border: 1px solid #e8eaed;
}

.clark-price-from {
  font-size: .75em;
  font-weight: 400;
  color: #888;
  margin-right: 2px;
}

/* Category archive infinite scroll sentinel */
.cp-load-sentinel { height: 60px; display: flex; align-items: center; justify-content: center; margin-top: 32px; }
.cp-spinner { width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: #1a1a1a; border-radius: 50%; display: none; }
.cp-spinner.is-loading { display: block; animation: cp-spin .7s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

.clark-vat-learn {
  display: block;
  font-size: .75em;
  color: #EE2359;
  text-decoration: underline;
  margin-top: 2px;
}
.clark-vat-learn:hover { color: #c41a48; }
