/* ==========================================================
   ZYKE Clothing — shared stylesheet
   Colours are taken from the logo. Change them here once and
   the whole site updates.
   ========================================================== */
:root {
  --bg: #faf9f5;          /* logo background cream */
  --bg-soft: #f1efe9;
  --ink: #0a0a0a;         /* logo black */
  --muted: #6b6a66;
  --line: #dcdad3;
  --accent: #bd6f29;      /* logo "CLOTHING" copper */
  --accent-dark: #9a5718;
  --grey-1: #a6a6a6;      /* logo gradient greys */
  --grey-2: #fafafa;

  --font-display: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-body: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.brand img { height: 70px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 42px); align-items: center; }
.nav-links a {
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; position: relative; z-index: 2; }
/* soft grey triangles echoing the logo */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.hero::before {
  width: 520px; height: 460px; right: -140px; top: -60px;
  background: linear-gradient(90deg, var(--grey-1), var(--grey-2));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: .22;
}
.hero::after {
  width: 420px; height: 380px; left: -160px; bottom: -120px;
  background: linear-gradient(90deg, var(--grey-1), var(--grey-2));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .22;
}
.hero .container { position: relative; z-index: 1; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.page-banner::before {
  content: ""; position: absolute; left: 50%; top: -40px; transform: translateX(-50%);
  width: 620px; height: 300px;
  background: linear-gradient(90deg, var(--grey-1), var(--grey-2));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: .16;
}
.page-banner .container { position: relative; }
.page-banner .lead { margin-inline: auto; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-tile {
  position: relative; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px; overflow: hidden; border: 1px solid var(--line);
  transition: transform .35s;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile.men { background: linear-gradient(160deg, #e9e8e3 0%, #c9c8c3 100%); }
.cat-tile.women { background: linear-gradient(160deg, #f3e6d9 0%, #dfb994 100%); }
.cat-tile::before {
  content: ""; position: absolute; width: 70%; height: 70%; right: -10%; top: -8%;
  background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.cat-tile h3 { font-size: 2.2rem; margin-bottom: .2em; position: relative; }
.cat-tile span.link { position: relative; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; }
.cat-tile span.link::after { content: " →"; color: var(--accent); }

/* ---------- Section heading ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .center { text-align: center; width: 100%; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product { background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.product-img {
  aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img svg { width: 64px; height: 64px; stroke: var(--ink); opacity: .5; fill: none; stroke-width: 1.2; }
.ph-a { background: linear-gradient(135deg, #ecebe6, #cfcec9); }
.ph-b { background: linear-gradient(135deg, #f5ece2, #e2c4a3); }
.ph-c { background: linear-gradient(135deg, #e4e4e4, #b9b9b9); }
.ph-d { background: linear-gradient(135deg, #f1ddc9, #cf9c6a); }
.product-info { padding: 20px 20px 24px; }
.product-info .tag { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.product-info h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 500; margin: 6px 0 4px; letter-spacing: .02em; }
.product-info .price { font-size: 1.1rem; margin: 0 0 14px; }
.product-info .enquire { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.product-info .enquire:hover { color: var(--accent); border-color: var(--accent); }
.note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 34px; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.feature { padding: 10px 14px; }
.feature .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 6px; }
.feature h3 { font-family: var(--font-body); font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.about-body p { font-size: 1.08rem; color: #2a2a28; }
.offer-list { margin: 24px 0 0; }
.offer-list li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.offer-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 12px;
  background: linear-gradient(90deg, var(--grey-1), var(--accent));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.mission {
  background: var(--ink); color: var(--bg); padding: clamp(50px, 8vw, 100px) 0; text-align: center;
}
.mission h2 { color: var(--bg); }
.mission p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); max-width: 30em; margin: 0 auto; line-height: 1.4; color: #e8e6df; }
.mission .eyebrow { color: #d99557; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 80px); }
.contact-info li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info small { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.contact-info a:hover { color: var(--accent); }
.form { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 18px; font-size: .98rem; min-height: 1.4em; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #a33; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d7d0; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 50px; }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .34em; text-transform: uppercase; color: #d99557; font-weight: 500; margin: 0 0 18px; }
.site-footer p { color: #a9a7a0; font-size: .95rem; max-width: 34ch; }
.footer-logo { background: var(--bg); display: inline-block; padding: 10px 16px; margin-bottom: 18px; }
.footer-logo img { height: 56px; width: auto; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #d99557; }
.footer-bottom { border-top: 1px solid #2b2b2b; margin-top: 50px; padding-top: 24px; font-size: .82rem; color: #8b8983; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 18px 24px; border-top: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .brand img { height: 58px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 280px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .product-grid { gap: 14px; }
  .product-info { padding: 14px 12px 18px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Men & women crossing banner (home) ---------- */
.crossing { padding-bottom: clamp(30px, 5vw, 60px); }
.crossing-img { width: min(980px, 100%); height: auto; margin: 30px auto 0; }
.crossing-img { max-height: 640px; object-fit: cover; }

/* ==========================================================
   Shop: cart button, product popup, cart drawer, checkout
   ========================================================== */
.brand { margin-right: auto; }
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; display: grid; place-items: center; }
.cart-btn:hover { color: var(--accent); }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 10px; font-size: .7rem; line-height: 19px; text-align: center;
}
.product { cursor: pointer; }
.product:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.no-scroll { overflow: hidden; }

.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.overlay[hidden] { display: none; }
.close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 10px; }
.close:hover { color: var(--accent); }

.modal { position: relative; background: var(--bg); width: min(900px, 100%); max-height: 92vh; overflow: auto; }
.modal > .close { position: absolute; top: 8px; right: 10px; z-index: 2; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img { aspect-ratio: auto; min-height: 420px; }
.modal-info { padding: clamp(24px, 4vw, 44px); }
.modal-info .tag { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.modal-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 6px 0 8px; }
.modal-price { font-size: 1.4rem; margin: 0 0 14px; }
.modal-desc { color: #2a2a28; font-size: 1rem; }
.modal-details { margin: 0 0 18px; }
.modal-details li { position: relative; padding-left: 20px; font-size: .95rem; color: var(--muted); }
.modal-details li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.opt-label { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; margin: 16px 0 8px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 48px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; font: inherit; }
.size:hover { border-color: var(--ink); }
.size.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.qty button { width: 40px; height: 40px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 40px; text-align: center; }
.qty.small button { width: 30px; height: 30px; font-size: 1rem; }
.qty.small span { min-width: 30px; font-size: .95rem; }
.size-error { color: #a33; font-size: .9rem; margin: 12px 0 0; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.modal-actions .btn { flex: 1; min-width: 150px; text-align: center; }

.overlay:has(.drawer) { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { background: var(--bg); width: min(430px, 100%); height: 100%; display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.6rem; }
.drawer-items { flex: 1; overflow: auto; padding: 8px 20px; }
.empty { text-align: center; color: var(--muted); margin-top: 60px; }
.line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { width: 74px; aspect-ratio: 4/5; }
.line-img svg { width: 28px; height: 28px; }
.line-info { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.line-info span { color: var(--muted); }
.line-info .qty { margin-top: 6px; align-self: flex-start; }
.remove { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.remove:hover { color: #a33; }
.drawer-foot { padding: 18px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.subtotal { display: flex; justify-content: space-between; font-size: 1.15rem; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 24px; font-size: .9rem; letter-spacing: .08em; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.checkout-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.field-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; }
.summary { background: #fff; border: 1px solid var(--line); padding: 28px; position: sticky; top: 110px; }
.summary h3 { margin-bottom: 14px; }
.sum-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sum-line span { display: block; color: var(--muted); }
.sum-line .line-img { width: 64px; }
.sum-total { display: flex; justify-content: space-between; font-size: 1.25rem; padding-top: 16px; }
.empty-checkout { text-align: center; padding: 40px 0; }

@media (max-width: 760px) {
  .cart-btn { order: 1; }
  .nav-toggle { order: 2; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { min-height: 240px; aspect-ratio: 16/10; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .field-row { grid-auto-flow: row; }
}
.modal-actions .btn { padding: 14px 12px; letter-spacing: .2em; white-space: nowrap; }

/* ---------- Home banner ---------- */
.home-banner img { width: 100%; height: auto; display: block; }
.home-banner-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 28px 20px 8px; }

.wa-btn { display: inline-block; margin-top: 12px; text-align: center; }
.form-status a.wa-btn { color: var(--bg); }
@media (max-width: 700px) { .home-banner-actions { padding-top: 22px; } }
