/* WEAR WILD LTD — ecproduct.uk
   ------------------------------------------------------------------
   The look is the one the business already uses: Open Sans, a warm
   near-black, and the yellow that carries every action. What is not
   carried over is the layout it came with, where the footer sat on top
   of the products and the pictures never arrived at all. */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --ink:        #0a0500;
  --body:       #504e4a;
  --muted:      #8a8681;
  --faint:      #a9a49d;

  --accent:     #ffcd05;
  --accent-hi:  #ffd633;
  --accent-ink: #0a0500;

  --bg:         #ffffff;
  --surface:    #f7f6f4;
  --surface-2:  #efece7;
  --line:       #e6e3de;
  --line-soft:  #f0edE8;

  --ok:         #157a45;
  --sale:       #c0392b;

  --r:    6px;
  --r-lg: 10px;
  --wrap: 1240px;

  --shadow-1: 0 1px 2px rgb(10 5 0 / .06);
  --shadow-2: 0 6px 20px -6px rgb(10 5 0 / .14);
  --shadow-3: 0 22px 48px -16px rgb(10 5 0 / .26);

  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 15px/1.65 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ── the bar above the logo ─────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--body);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  min-height: 40px; padding-top: 7px; padding-bottom: 7px;
}
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { color: var(--accent); flex: none; }
.topbar a:hover { color: var(--ink); }

/* ── masthead ───────────────────────────────────────────────────── */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: center; }
.brand img { width: 40px; height: 40px; }
.brand b {
  display: block; font-size: 20px; font-weight: 700; letter-spacing: .1em; color: var(--ink);
}
.brand small {
  display: block; font-size: 9.5px; letter-spacing: .26em; color: var(--muted); font-weight: 600;
}
.mast-left { display: flex; align-items: center; gap: 10px; }
.mast-right { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

.iconbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px; border: 0; border-radius: var(--r);
  background: transparent; color: var(--ink); cursor: pointer;
  font-size: 13.5px; font-weight: 600;
  transition: background .15s;
}
.iconbtn:hover { background: var(--surface); }
.iconbtn .count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ── category nav ───────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav .wrap {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  padding-top: 0; padding-bottom: 0;
}
.nav a, .nav button {
  border: 0; background: transparent; cursor: pointer;
  padding: 14px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--body);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav button:hover { color: var(--ink); }
.nav .on { color: var(--ink); border-bottom-color: var(--accent); }

/* ── hero ───────────────────────────────────────────────────────── */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding-top: 54px; padding-bottom: 54px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.12;
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%); }
.hero p { margin: 16px 0 0; font-size: 16px; max-width: 46ch; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 16px; text-align: center;
}
.hero-stat b { display: block; font-size: 24px; color: var(--ink); }
.hero-stat span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

/* ── buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .15s, border-color .15s, transform .06s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #241a12; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── trust strip ────────────────────────────────────────────────── */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  padding-top: 22px; padding-bottom: 22px;
}
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { color: var(--accent); flex: none; margin-top: 2px; }
.trust-item b { display: block; font-size: 13.5px; color: var(--ink); }
.trust-item span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── section heads ──────────────────────────────────────────────── */
.section { padding: 46px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-head h2 { font-size: 24px; letter-spacing: -.01em; }
.section-head p { margin: 7px 0 0; font-size: 14px; color: var(--muted); }
.count-pill {
  font-size: 12px; color: var(--muted); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}

/* ── filters ────────────────────────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button {
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--body);
  font-size: 12.5px; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── product grid ───────────────────────────────────────────────── */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover { border-color: #d6d1c9; box-shadow: var(--shadow-2); transform: translateY(-2px); }

.card-media {
  position: relative; display: block;
  aspect-ratio: 1 / 1; background: var(--surface);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform .3s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 4px 9px; border-radius: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.tag-sale { background: var(--sale); color: #fff; }
.tag-out  { background: var(--ink); color: #fff; }

.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.card-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
}
.card-body h3 { font-size: 14px; font-weight: 600; line-height: 1.42; }
.card-body h3 a:hover { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.card-spec {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 11px; display: flex; align-items: center; gap: 10px; }
.price { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-was { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.card-foot .btn { margin-left: auto; padding: 9px 14px; font-size: 12.5px; }

.empty {
  grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}

/* ── product page ───────────────────────────────────────────────── */
.crumbs {
  padding: 16px 0; font-size: 12px; color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--faint); }

.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px;
  padding-bottom: 40px;
}
.gallery-main {
  aspect-ratio: 1 / 1; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.thumbs { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button {
  width: 72px; height: 72px; padding: 5px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s;
}
.thumbs button:hover { border-color: var(--muted); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-info h1 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.3; }
.product-price { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
.product-price .price { font-size: 30px; }
.product-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.stock { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.stock i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block;
}
.stock.out i { background: var(--sale); }

.buy { margin-top: 22px; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.qty button {
  width: 40px; height: 46px; border: 0; background: var(--bg); cursor: pointer;
  font-size: 17px; color: var(--ink);
}
.qty button:hover { background: var(--surface); }
.qty input {
  width: 46px; height: 46px; border: 0; text-align: center;
  font: 600 15px 'Open Sans', sans-serif; color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { flex: 1; min-width: 190px; padding: 14px 22px; }

.spec-table { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-table h2 {
  margin: 0; padding: 12px 18px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.spec-table dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 38%) 1fr; }
.spec-table dt, .spec-table dd {
  margin: 0; padding: 10px 18px; font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table dt { color: var(--muted); }
.spec-table dd { color: var(--ink); overflow-wrap: anywhere; }
.spec-table dt:nth-last-of-type(1), .spec-table dd:nth-last-of-type(1) { border-bottom: 0; }

.notfound { padding: 80px 20px; text-align: center; }
.notfound h1 { font-size: 26px; }
.notfound p { margin: 12px 0 24px; color: var(--muted); }

/* ── basket drawer ──────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgb(10 5 0 / .42);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.scrim.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(430px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-3);
}
.drawer.show { transform: none; }
.drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 16px; flex: 1; }
.drawer-close {
  border: 0; background: transparent; cursor: pointer; color: var(--muted);
  padding: 6px; border-radius: var(--r);
}
.drawer-close:hover { background: var(--surface); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }

.line { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.line:last-child { border-bottom: 0; }
.line-media {
  width: 64px; height: 64px; flex: none; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.line-media img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.line-main { flex: 1; min-width: 0; }
.line-main h4 { font-size: 13px; font-weight: 600; line-height: 1.4; }
.line-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.line-row { margin-top: 9px; display: flex; align-items: center; gap: 10px; }
.line-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r);
}
.line-qty button {
  width: 27px; height: 27px; border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.line-qty button:hover { background: var(--surface); }
.line-qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.line-row .price { margin-left: auto; font-size: 14.5px; }
.line-drop {
  border: 0; background: transparent; cursor: pointer; color: var(--faint);
  font-size: 11.5px; text-decoration: underline; padding: 0;
}
.line-drop:hover { color: var(--sale); }

.sums { font-size: 13.5px; }
.sums div { display: flex; justify-content: space-between; padding: 5px 0; }
.sums .total {
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.sums b { font-variant-numeric: tabular-nums; }
.drawer-foot .btn { margin-top: 14px; }
.drawer-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); text-align: center; }

.enquiry {
  margin-top: 12px; padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px;
}
.enquiry b { display: block; color: var(--ink); margin-bottom: 6px; }
.enquiry pre {
  margin: 10px 0; padding: 10px; max-height: 170px; overflow: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 11px; white-space: pre-wrap;
}

/* ── footer ─────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #cfc9c1; margin-top: 20px; }
.footer a { color: #cfc9c1; }
.footer a:hover { color: var(--accent); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px;
  padding: 48px 0 34px;
}
.footer .brand b { color: #fff; }
.footer .brand small { color: var(--faint); }
.footer-name { margin-top: 16px; font-weight: 700; color: #fff; font-size: 14px; letter-spacing: .04em; }
.footer address { font-style: normal; margin-top: 6px; font-size: 13px; line-height: 1.7; }
.footer .regno { margin: 10px 0 0; font-size: 12px; color: var(--faint); }
.footer .contact { margin: 12px 0 0; font-size: 13px; line-height: 1.8; }
.footer-col h4 {
  color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 13px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 13px; }
.footer-legal {
  border-top: 1px solid rgb(255 255 255 / .1);
  padding: 18px 0 26px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--faint);
}
.footer-legal .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal .pay { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.footer-legal .pay span {
  border: 1px solid rgb(255 255 255 / .18); border-radius: 3px;
  padding: 3px 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .07em;
}

/* ── toast ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: var(--r);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-3); transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── policy pages ───────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
.doc-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.doc-back:hover { color: var(--ink); }
.doc h1 { margin-top: 18px; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.02em; }
.doc-sub { margin: 12px 0 0; font-size: 16px; line-height: 1.65; }
.doc-date { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.doc h2 { margin: 38px 0 0; font-size: 18px; scroll-margin-top: 20px; }
.doc p, .doc li { font-size: 15px; line-height: 1.78; }
.doc p { margin: 12px 0 0; }
.doc h2 + p { margin-top: 9px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc-note {
  margin-top: 18px; padding: 15px 17px; border-radius: var(--r-lg);
  background: var(--surface); border-left: 3px solid var(--accent);
}
.doc-note p { margin: 0; color: var(--ink); font-size: 14.5px; }
.doc-table { margin-top: 16px; overflow-x: auto; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.doc-table th {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line);
}
.doc-contact { margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.doc-contact b { display: block; font-size: 14.5px; color: var(--ink); }
.doc-contact address { font-style: normal; margin-top: 5px; font-size: 14px; line-height: 1.7; }

/* ── narrower screens ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .masthead .wrap { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; }
  .mast-left { display: none; }
  .topbar .wrap { gap: 14px; font-size: 11.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card-body { padding: 12px 12px 14px; }
  .card-foot { flex-wrap: wrap; }
  .card-foot .btn { width: 100%; margin-left: 0; }
  .trust .wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal .pay { margin-left: 0; }
  .section { padding: 32px 0; }
}
