/*
Theme Name: Digitouch Shopee
Theme URI: https://digitouchshopee.com
Author: Digitouch Shopee
Description: Block theme for Digitouch Shopee — traditional Indian goods. Concept A structure, Concept C typography. Lime #A4DE02, black, white. Square corners, hairlines only, no shadows, no gradients, no carousel.
Version: 1.0.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitouch-shopee
Tags: block-theme, e-commerce, custom-colors, custom-menu, translation-ready
*/

/* ---------- self-hosted fonts: two weights only ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/sourceserif4-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --lime: #a4de02;
  --ink: #000000;
  --paper: #ffffff;
  --muted: #4a4a4a;
  --rule: rgba(0, 0, 0, 0.12);
  --warm: #f2f1ec;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- block-theme resets: the design owns spacing ---------- */
.wp-site-blocks > *,
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group,
.wp-block-template-part { margin-block-start: 0; }
.wp-block-heading { margin-block-start: 0; margin-block-end: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-list { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- announcement bar ---------- */
.announce { background: var(--ink); color: #fff; }
.announce .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
.announce a { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.announce .dismiss {
  margin-left: auto;
  flex: none;
  background: none;
  border: 0;
  color: #fff;
  opacity: 0.65;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.announce p { margin: 0; }
.announce.is-dismissed { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}
.hamburger {
  order: 1;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.hamburger span { display: block; height: 1px; background: var(--ink); }
.brand { order: 2; margin: 0 auto; display: block; }
.brand img { height: 30px; width: auto; }
.header-actions { order: 3; display: flex; align-items: center; gap: 14px; }

.nav, .seam { display: none; }

@media (min-width: 1024px) {
  .header-inner { min-height: 76px; gap: 26px; }
  .hamburger { display: none; }
  .brand { order: 1; margin: 0; }
  .brand img { height: 38px; }
  .nav {
    display: flex;
    align-items: center;
    gap: 24px;
    order: 2;
  }
  .nav a {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--lime); }
  .seam {
    display: block;
    order: 3;
    width: 1px;
    height: 18px;
    background: var(--rule);
    flex: none;
  }
  .nav-trade { order: 4; }
  .header-actions { order: 5; margin-left: auto; }
}

/* mobile drawer: the two navs drop below the header row and stack */
@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; padding-bottom: 0; }
  .nav.is-open {
    display: block;
    order: 6;
    flex: 1 0 100%;
    background: var(--paper);
    padding: 4px 0 8px;
  }
  .nav-trade.is-open {
    order: 7;
    border-top: 1px solid var(--rule);
  }
  .nav.is-open a {
    display: block;
    padding: 12px 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open a:last-child { border-bottom: 0; }
  .nav.is-open + .seam { display: none; }
}

.icon-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn svg { display: block; }
.cart-count {
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid var(--ink);
}
.currency {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 16px 4px 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 4 4-4' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
@media (max-width: 1023px) { .currency, .header-actions .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--lime);
  border: 1px solid var(--lime);
  color: var(--ink);
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.btn:hover { opacity: 0.85; }
.btn-outline { background: transparent; border-color: var(--ink); }
.btn-sm { padding: 11px 18px; }
.btn-block { width: 100%; }

.link-underline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

/* ---------- placeholders ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm);
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.ph span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  text-align: center;
  padding: 12px;
  max-width: 88%;
}
.ph-4x5 { aspect-ratio: 4 / 5; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-3x2 { aspect-ratio: 3 / 2; }
.ph-hero { aspect-ratio: 4 / 5; }

/* the figure wrapper must not interfere with the aspect box */
.ph > figure.wp-block-image,
.ph > .wp-block-image { display: contents; }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.rule-lime { height: 1px; background: var(--lime); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
@media (min-width: 900px) { .section-head { margin-bottom: 44px; } }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

h2.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- hero ---------- */
.hero { padding: 36px 0 0; }
@media (min-width: 900px) { .hero { padding: 72px 0 0; } }
.hero-inner { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 72px;
    align-items: center;
  }
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
  margin: 0;
}
@media (min-width: 900px) { .hero-sub { font-size: 17px; } }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 30px;
}
.hero-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 52px 0 0;
}
@media (min-width: 900px) { .hero-rule { margin-top: 88px; } }

/* ---------- cards ---------- */
.grid-3, .grid-4 { display: grid; gap: 28px 24px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 400px) {
  .grid-4 { gap: 24px 14px; }
}

.card { display: block; }
.card .cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.card .price { font-size: 14px; margin: 0 0 10px; }
.card .price em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.card .view {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}
.tile { display: block; }
.tile .label {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.tile .count { color: var(--muted); }

/* ---------- heritage ---------- */
.heritage { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .heritage { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
}
.heritage p { color: var(--muted); max-width: 46ch; }
.heritage p.eyebrow { color: var(--muted); }

/* ---------- trade band ---------- */
.trade-band { background: var(--ink); color: #fff; padding: 56px 0; }
@media (min-width: 900px) { .trade-band { padding: 104px 0; } }
.trade-band .eyebrow { color: var(--lime); }
.trade-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.trade-band .lede {
  font-size: 17px;
  line-height: 1.5;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}
.trade-inner { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .trade-inner { grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: end; }
}
.trade-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 900px) {
  .trade-actions { align-items: flex-end; text-align: right; }
}
.trade-note {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- assurance ---------- */
.assurance { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.assurance-inner { display: grid; }
@media (min-width: 768px) { .assurance-inner { grid-template-columns: repeat(4, 1fr); } }
.assurance-item { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.assurance-item:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .assurance-item {
    padding: 32px 24px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }
  .assurance-item:first-child { border-left: 0; padding-left: 0; }
  .assurance-item:last-child { padding-right: 0; }
}
.assurance-item .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.assurance-item .v { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 24px; }
@media (min-width: 900px) { .site-footer { padding: 80px 0 28px; } }
.brand-band { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .brand-band { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.brand-band img { height: 44px; width: auto; margin-bottom: 18px; }
.brand-band p { font-size: 14px; color: var(--muted); max-width: 44ch; }
.identity {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.identity strong { color: var(--ink); font-weight: 400; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) { .footer-nav { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.footer-nav h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; font-size: 14px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

.footer-trade {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  margin: 40px 0 24px;
  font-size: 13px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
}
.footer-legal a { border-bottom: 1px solid var(--rule); }

/* ================= wholesale page ================= */
.page-head { padding: 44px 0 36px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .page-head { padding: 80px 0 64px; } }
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.page-lede { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 58ch; margin: 0; }
@media (min-width: 900px) { .page-lede { font-size: 19px; } }

.paths { display: grid; border: 1px solid var(--rule); margin-top: 8px; }
@media (min-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
.path {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 32px;
  border-bottom: 1px solid var(--rule);
}
.path:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .path { padding: 44px 40px 48px; border-bottom: 0; }
  .path + .path { border-left: 1px solid var(--rule); }
}
.path .eyebrow { margin-bottom: 12px; }
.path h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.path p { font-size: 15px; color: var(--muted); max-width: 40ch; }
.path .actions { margin-top: auto; padding-top: 24px; }

.moq-block {
  border: 1px solid var(--ink);
  padding: 14px 16px;
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  max-width: 34ch;
}

/* supply list */
.supply { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 768px) { .supply { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.supply li {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
  font-size: 15px;
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }
.steps li { border-top: 1px solid var(--ink); padding: 18px 0 4px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: var(--muted);
}
.steps h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.steps p { font-size: 14px; color: var(--muted); margin: 0; }

/* trade terms */
.terms { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .terms { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.term { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.term .k {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.term .v { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

/* faq */
.faq { border-top: 1px solid var(--rule); margin: 0; }
.faq .q {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  display: grid;
  gap: 4px;
}
@media (min-width: 768px) {
  .faq .q { grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: baseline; }
}
.faq .q dt { font-size: 15px; }
.faq .q dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* closing cta */
.closing { border-top: 1px solid var(--ink); }
.closing-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 52px;
}
@media (min-width: 900px) {
  .closing-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 72px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
.closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0;
}
.closing .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
@media (min-width: 900px) { .closing .actions { justify-content: flex-end; } }
.closing .retail-note { font-size: 13px; color: var(--muted); margin: 0; }

/* utilities */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ================= real catalogue photography ================= */
/* Placeholder boxes keep their aspect ratio; the photo sits inside them
   on white, uncropped, so a 1:1 catalogue shot is never stretched. */
.ph.ph-photo { background: #fff; padding: 6%; }
.ph.ph-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ph-cap {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 10px 0 0;
}
.note-provisional {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 76ch;
}

/* trade catalogue strip (wholesale page) */
.trade-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
@media (min-width: 768px) { .trade-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trade-strip { grid-template-columns: repeat(6, 1fr); gap: 26px 20px; } }
.trade-strip .name { font-size: 13px; line-height: 1.35; margin: 10px 0 4px; }
.trade-strip .meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* category coverage counts */
.coverage { display: grid; border-top: 1px solid var(--rule); margin-top: 34px; }
@media (min-width: 768px) { .coverage { grid-template-columns: repeat(5, 1fr); } }
.coverage .c { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.coverage .c:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .coverage .c { padding: 18px 20px; border-bottom: 0; border-left: 1px solid var(--rule); }
  .coverage .c:first-child { border-left: 0; padding-left: 0; }
}
.coverage .n {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 7px;
}
.coverage .t { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- WooCommerce / archive fallbacks, kept in the same system ---------- */
.wc-archive { padding: 44px 0 64px; }
.wc-archive .page-title { margin-bottom: 12px; }
.wc-archive .products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .wc-archive .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .wc-archive .products { grid-template-columns: repeat(4, 1fr); } }
.wc-archive .products img { width: 100%; height: auto; background: var(--warm); }
.wc-archive .products h2,
.wc-archive .products .woocommerce-loop-product__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 14px 0 6px;
}
.wc-archive .products .price { font-size: 14px; }

/* ---------- block-theme specifics ---------- */
.section.section-tight { padding-top: 0; }
.section.section-pad-top { padding-top: 36px; }
@media (min-width: 900px) { .section.section-pad-top { padding-top: 36px; } }
.lede-narrow { max-width: 64ch; }
.muted-label { color: var(--muted); }
.footer-legal p,
.footer-trade p { margin: 0; }
.brand img,
.wp-block-site-logo.brand img { height: 30px !important; width: auto !important; }
@media (min-width: 1024px) {
  .brand img,
  .wp-block-site-logo.brand img { height: 38px !important; }
}
.footer-logo img,
.wp-block-site-logo.footer-logo img { height: 44px !important; width: auto !important; }
.wp-block-site-logo.footer-logo { margin-bottom: 18px; }
.trade-strip .item p { margin: 0; }
.trade-strip .item .name { margin: 10px 0 4px; }
.hero-media .ph-cap { margin-top: 10px; }

/* ---------- WooCommerce block templates: shop and category archives ---------- */
.wp-site-blocks > main.is-layout-constrained,
main.is-layout-constrained:has(> .archive-head),
main.is-layout-constrained:has(> .product-head) {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 44px 20px 72px;
}
@media (min-width: 768px) {
  .wp-site-blocks > main.is-layout-constrained,
  main.is-layout-constrained:has(> .archive-head),
  main.is-layout-constrained:has(> .product-head) { padding: 44px 40px 80px; }
}
main.is-layout-constrained .wc-block-breadcrumbs,
main.is-layout-constrained .wp-block-woocommerce-breadcrumbs { font-size: 12px; color: var(--muted); }
main.is-layout-constrained .wp-block-query-title,
main.is-layout-constrained .wc-block-components-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 8px 0 18px;
}
main.is-layout-constrained .wc-block-product-results-count,
main.is-layout-constrained .wc-block-catalog-sorting { font-size: 12px; color: var(--muted); }
.wc-block-product-template { gap: 28px 24px; }
.wc-block-components-product-image img { background: var(--warm); }
.wc-block-components-product-title,
.wc-block-components-product-title a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.3;
}
.wc-block-components-product-price { font-size: 14px; }
.wc-block-components-product-button .wp-block-button__link,
main.is-layout-constrained .wp-element-button {
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wc-block-product-template {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wc-block-components-product-name,
.wc-block-components-product-title a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.3;
}

/* ---------- shop: archive head, catalogue bar, empty collection ---------- */
.archive-head {
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.archive-head .woocommerce-breadcrumb {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--muted);
}
.archive-head .wp-block-query-title { margin: 0; }
.archive-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
  margin: 14px 0 0;
}
@media (min-width: 900px) { .archive-lede { font-size: 18px; } }

.archive-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.archive-bar .wc-block-catalog-sorting { margin: 0; }

.wc-block-product-template { margin-top: 28px; }
.wc-block-product-template .wp-block-post-title a { display: block; }
.wc-block-components-product-price { color: var(--ink); }

/* the empty collection: real Digitouch copy instead of "No results found" */
.no-results {
  border-top: 1px solid var(--ink);
  padding: 26px 0 0;
  margin-top: 28px;
  max-width: 62ch;
}
.no-results .label { color: var(--muted); margin: 0 0 16px; }
.no-results-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.no-results-lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 22px;
}
.no-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}
.no-results-actions .wp-block-button__link {
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
}
.no-results-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.no-results-note a { border-bottom: 1px solid var(--lime); }

/* ---------- shop: single product ---------- */
.product-main { margin: 8px 0 8px; row-gap: 32px; }
.product-media .woocommerce-product-gallery { margin: 0; }
.product-media img { background: var(--warm); }
.product-buy { padding-top: 4px; }
.product-cat {
  color: var(--muted);
  margin: 0 0 12px;
}
.product-cat a { border-bottom: 1px solid var(--lime); }
.product-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.product-price { margin: 0 0 16px; }
.product-summary {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 8px;
}
.product-cta form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
}
.product-cta .quantity input {
  width: 74px;
  padding: 13px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
}
.product-cta .single_add_to_cart_button {
  border-radius: 0;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
}
.product-cta .single_add_to_cart_button:hover { opacity: 0.85; }
.product-assurance {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin: 0 0 6px;
}
.product-assurance p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 8px;
}
.product-assurance a { border-bottom: 1px solid var(--lime); }
.product-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.product-details { margin-top: 40px; }
@media (min-width: 900px) {
  .product-main { margin: 24px 0 8px; }
  .product-details { margin-top: 64px; }
}

/* an empty collection: drop the empty results bar and grid, keep the copy */
body:has(.no-results) .archive-bar,
body:has(.no-results) .wc-block-product-template { display: none; }
body:has(.no-results) .no-results { margin-top: 28px; }
body:has(.no-results) main.is-layout-constrained:has(> .archive-head) { padding-bottom: 52px; }

/* single product: breadcrumbs sit inside the content column, not the page edge */
.product-head { padding: 0; }
.product-head .woocommerce-breadcrumb { margin: 0 0 20px; font-size: 12px; color: var(--muted); }

/* ---------- two-journey primary navigation: labelled groups (rev 21) ---------- */
.nav-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f6f;
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 3px; }
  .nav-links { display: flex; align-items: center; gap: 18px; }
  .nav a.drawer-only { display: none; }
}
@media (max-width: 1023px) {
  .nav-links { display: block; }
  .nav.is-open .nav-label { padding: 14px 0 2px; }
}

/* ---------- single product: keep the product columns at full width ----------
   The breadcrumb block in .product-head is floated (.alignleft), so the head
   collapses to zero height and the following flex columns block computes a
   zero width: at 390px media + title collapsed and the page overflowed
   sideways, on desktop the product was pushed into the right half.
   flow-root contains the float; width:100% pins the columns container. */
.product-head { display: flow-root; }
.product-main { width: 100%; }
@media (max-width: 781px) {
  .product-main > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- header category menu: real category archives ---------- */
.nav .nav-cats { position: relative; display: inline-block; }
.nav .nav-cats > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav .nav-cats > summary::-webkit-details-marker { display: none; }
.nav .nav-cats > summary::marker { content: ""; }
.nav .nav-cats[open] > summary { border-bottom-color: var(--lime); }
.nav .nav-cats ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 250px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}
.nav .nav-cats ul a {
  display: block;
  padding: 9px 18px;
  border-bottom: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav .nav-cats ul a:hover { background: var(--warm); }
@media (max-width: 1023px) {
  .nav .nav-cats { display: block; }
  .nav .nav-cats > summary {
    display: block;
    padding: 12px 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--rule);
  }
  .nav .nav-cats ul {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    padding: 0 0 4px 16px;
    border: 0;
    box-shadow: none;
  }
  .nav .nav-cats ul a { padding: 10px 0; border-bottom: 0; }
}

/* ---------- product photography: the whole product, never cropped ---------- */
.wc-block-components-product-image { background: #fff; }
.wc-block-components-product-image img {
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  background: #fff;
}
.product-media .woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image img,
.product-media img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  background: #fff;
}
.product-media .flex-control-thumbs img {
  object-fit: contain !important;
  background: #fff;
}


/* ---------- shop & category archive product grid (rev 27) ----------
   Each product is one card in a fixed column: 2 up to 767px, 3 from 768px,
   4 from 1024px. The photo sits in a fixed 1:1 box and the whole product is
   shown (object-fit: contain), never cropped or zoomed. The inline
   object-fit:cover WooCommerce writes on each product image is overridden
   here, which is why !important is required. */
.wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px 16px;
  align-items: start;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 32px 24px;
  }
}
@media (min-width: 1024px) {
  .wc-block-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
.wc-block-product-template > li {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  float: none;
}
.wc-block-product-template .wc-block-components-product-image {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--warm, #f5f3ee);
}
.wc-block-product-template .wc-block-components-product-image a {
  display: block;
  width: 100%;
}
.wc-block-product-template .wc-block-components-product-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}
