/*
Theme Name: Brewmart Child
Theme URI: https://brewmart.ca
Description: Brewmart — Lululemon-style modern shop. Specialty coffee, tea, ritual goods.
Author: Brewmart
Template: blocksy
Version: 1.0.1
*/

/* ============================================================
   TOKENS — Lululemon-exact (pure white / pure black + Manrope)
   ============================================================ */

:root {
  /* Surfaces */
  --paper:        #ffffff;
  --bg-off:       #fafafa;
  --bg-soft:      #f5f5f5;
  --bg-warm:      #f1ede4;
  --canvas:       #ffffff;

  /* Ink */
  --ink:          #000000;
  --ink-soft:     #1a1a1a;
  --mute:         #6b6b6b;
  --mute-2:       #8a8a8a;
  --hairline:     rgba(0,0,0,0.08);
  --hairline-2:   rgba(0,0,0,0.16);
  --hairline-3:   rgba(0,0,0,0.32);

  /* Accent — sparse, like Lululemon's red */
  --accent:       #d63a1a;
  --accent-deep:  #a8290f;
  --sale:         #cf0d0d;
  --copper:       #d63a1a;
  --copper-deep:  #a8290f;
  --terra:        #d63a1a;
  --terra-deep:   #a8290f;
  --terra-bright: #ee4a26;

  /* Typography (Manrope = closest free Calibre equivalent) */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mark:    "Fraunces", "Cormorant Garamond", Georgia, serif;

  /* Scale (Lululemon-tight) */
  --fs-2xs:       10px;
  --fs-xs:        11px;
  --fs-sm:        13px;
  --fs-base:      15px;
  --fs-md:        17px;
  --fs-lg:        20px;
  --fs-xl:        24px;
  --fs-2xl:       32px;
  --fs-3xl:       44px;
  --fs-4xl:       58px;
  --fs-display-1: clamp(38px, 7vw, 96px);
  --fs-display-2: clamp(30px, 5vw, 64px);
  --fs-display-mega: clamp(56px, 14vw, 180px);

  /* Spacing — Lululemon is tighter than what we had */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 80px;  --s-10: 96px; --s-11: 128px;

  /* Radius — Lululemon is square */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --t-fast: 180ms; --t-base: 280ms; --t-slow: 520ms;

  /* Layout */
  --container: 1320px;
  --container-wide: 1560px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 64px;
  --header-h-mobile: 56px;
}

/* ============================================================
   BASE — Lululemon body
   ============================================================ */

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
}

*::selection { background: var(--ink); color: var(--paper); }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

/* Display + headings */
h1, h2, h3, h4, h5,
.wp-block-heading,
.entry-title,
.product_title,
.woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 var(--s-4);
  text-transform: none;
}
h1 { font-size: var(--fs-display-1); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
h2 { font-size: var(--fs-display-2); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.012em; }

.h-uppercase, .uppercase { text-transform: uppercase; letter-spacing: -0.005em; }

p { margin: 0 0 var(--s-4); color: var(--ink-soft); }
p.lede { font-size: var(--fs-md); color: var(--ink-soft); max-width: 60ch; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--accent); }

/* Eyebrow / small caps label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.section-num {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */

.brewmart-announce {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 9px var(--gutter);
}
.brewmart-announce a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.brewmart-announce a:hover { color: var(--paper); text-decoration-color: var(--accent); }

/* ============================================================
   HEADER — Lululemon sticky white
   ============================================================ */

header.ct-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper) !important;
  border-bottom: 1px solid transparent;
  min-height: var(--header-h);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
body.scrolled header.ct-header {
  border-bottom-color: var(--hairline);
  box-shadow: 0 4px 24px -16px rgba(0,0,0,0.18);
}

.ct-header [data-id="logo"] .site-title,
.ct-header [data-id="logo"] a {
  font-family: var(--font-mark);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: lowercase;
  font-variation-settings: "opsz" 90, "SOFT" 100;
  line-height: 1;
}

.ct-header [data-id="menu"] .menu .menu-item > a,
.ct-header .ct-menu-link {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  position: relative;
}
.ct-header [data-id="menu"] .menu .menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--ink);
  transition: right var(--t-base) var(--ease-out);
}
.ct-header [data-id="menu"] .menu .menu-item > a:hover::after,
.ct-header [data-id="menu"] .menu .current-menu-item > a::after { right: 0; }

@media (max-width: 999px) {
  header.ct-header { min-height: var(--header-h-mobile); }
  header.ct-header [data-id="logo"] a { font-size: 22px; }
}

/* ============================================================
   BUTTONS — Lululemon black rectangles
   ============================================================ */

.wp-block-button__link,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
button.brewmart-btn,
a.brewmart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 16px 28px !important;
  min-height: 48px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link,
a.brewmart-btn.outline {
  background: transparent !important;
  color: var(--ink) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
a.brewmart-btn.outline:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

a.brewmart-btn.light {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--paper) !important;
}
a.brewmart-btn.light:hover {
  background: transparent !important;
  color: var(--paper) !important;
  border-color: var(--paper) !important;
}

a.brewmart-btn.terra {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
}
a.brewmart-btn.terra:hover {
  background: var(--accent-deep) !important;
  border-color: var(--accent-deep) !important;
}

a.brewmart-btn.ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: transparent !important;
  padding: 6px 0 !important;
  min-height: 0;
  font-size: var(--fs-xs) !important;
}
a.brewmart-btn.ghost::after {
  content: "→";
  margin-left: 8px;
  transition: transform var(--t-base) var(--ease-out);
  font-weight: 400;
}
a.brewmart-btn.ghost:hover {
  background: transparent !important;
  color: var(--accent) !important;
}
a.brewmart-btn.ghost:hover::after { transform: translateX(6px); }

@media (max-width: 640px) {
  .wp-block-button__link, .wp-element-button,
  .woocommerce a.button, .woocommerce button.button,
  button.brewmart-btn, a.brewmart-btn {
    padding: 14px 22px !important;
    font-size: 11px !important;
  }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */

.brewmart-section {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.brewmart-section.tight { padding-block: clamp(28px, 4vw, 56px); }
.brewmart-section.canvas { background: var(--canvas); }
.brewmart-section.cream  { background: var(--bg-warm); }
.brewmart-section.dark   { background: var(--ink); color: var(--paper); }
.brewmart-section.dark h1, .brewmart-section.dark h2, .brewmart-section.dark h3 { color: var(--paper); }
.brewmart-section.dark .eyebrow, .brewmart-section.dark .section-num { color: rgba(255,255,255,0.6); }
.brewmart-section.dark p { color: rgba(255,255,255,0.78); }

.brewmart-container { max-width: var(--container); margin: 0 auto; }
.brewmart-container.wide { max-width: var(--container-wide); }
.brewmart-container.full { max-width: none; margin: 0; }

.brewmart-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  align-items: end;
}
@media (min-width: 800px) {
  .brewmart-section-head { grid-template-columns: 1fr auto; gap: var(--s-6); }
}
.brewmart-section-head .head-left { display: flex; flex-direction: column; gap: var(--s-2); }
.brewmart-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.brewmart-section-head p { color: var(--mute); margin: 0; max-width: 44ch; }

/* ============================================================
   HERO — full-bleed Lululemon style, text bottom-left
   ============================================================ */

.brewmart-hero {
  position: relative;
  min-height: 88vh;
  max-height: 1000px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.brewmart-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.brewmart-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.brewmart-hero .eyebrow { color: var(--paper); opacity: 0.88; }
.brewmart-hero h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--paper);
  text-transform: uppercase;
  max-width: 16ch;
}
.brewmart-hero .lede {
  max-width: 42ch;
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.92);
  margin: 0;
}
.brewmart-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); align-items: center; }

.brewmart-hero-meta {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  right: var(--gutter);
  z-index: 2;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper);
  opacity: 0.85;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 640px) {
  .brewmart-hero { min-height: 80vh; }
  .brewmart-hero h1 { font-size: clamp(36px, 11vw, 64px); }
  .brewmart-hero .lede { font-size: var(--fs-sm); }
  .brewmart-hero-meta { display: none; }
  .brewmart-hero-inner { padding-bottom: 32px; gap: var(--s-3); }
  .brewmart-hero-ctas { flex-direction: column; align-items: stretch; gap: var(--s-2); width: 100%; max-width: 320px; }
  .brewmart-hero-ctas a.brewmart-btn { width: 100%; }
}

/* ============================================================
   STATS strip
   ============================================================ */

.brewmart-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 800px) { .brewmart-stats { grid-template-columns: repeat(4, 1fr); } }

.brewmart-stat {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
}
@media (max-width: 799px) {
  .brewmart-stat:nth-child(2n) { border-right: none; }
  .brewmart-stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}
@media (min-width: 800px) { .brewmart-stat:last-child { border-right: none; } }
.brewmart-stat .n {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.brewmart-stat .n sup { font-size: 0.45em; vertical-align: super; font-weight: 500; margin-left: 1px; }
.brewmart-stat .l {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
}

/* ============================================================
   CATEGORY QUICK-LINKS — 4-up bento tiles
   ============================================================ */

.brewmart-quicklinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 600px)  { .brewmart-quicklinks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .brewmart-quicklinks { grid-template-columns: repeat(4, 1fr); } }

.brewmart-quicklink {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
  color: var(--paper);
  isolation: isolate;
}
.brewmart-quicklink-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow) var(--ease-out);
}
.brewmart-quicklink:hover .brewmart-quicklink-bg { transform: scale(1.05); }
.brewmart-quicklink::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.brewmart-quicklink-label {
  position: absolute;
  left: var(--s-5); right: var(--s-5); bottom: var(--s-5);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-3);
}
.brewmart-quicklink-label h3 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brewmart-quicklink-label .sub {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.88;
  font-weight: 500;
}
.brewmart-quicklink-label .arrow {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.7);
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.brewmart-quicklink:hover .arrow { background: var(--paper); color: var(--ink); }

@media (max-width: 599px) {
  .brewmart-quicklink { aspect-ratio: 4 / 5; }
  .brewmart-quicklink-label .arrow { width: 36px; height: 36px; }
}

/* ============================================================
   BRAND DIRECTORY
   ============================================================ */

.brewmart-brands {
  background: var(--canvas);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.brewmart-brands-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-7);
}
@media (min-width: 900px) {
  .brewmart-brands-head { grid-template-columns: 1.2fr 0.8fr; gap: var(--s-8); }
}
.brewmart-brands-head h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 16ch;
}
.brewmart-brands-head h2 em {
  font-family: var(--font-mark);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-transform: none;
}
.brewmart-brands-head p { color: var(--mute); margin: 0 0 var(--s-4); max-width: 50ch; font-size: var(--fs-md); }

.brewmart-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline-2);
  border-left: 1px solid var(--hairline-2);
}
@media (min-width: 600px)  { .brewmart-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .brewmart-brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .brewmart-brands-grid { grid-template-columns: repeat(5, 1fr); } }

.brewmart-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px) var(--s-4);
  border-right: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
  position: relative;
  text-align: center;
  min-height: clamp(110px, 14vw, 160px);
  background: var(--canvas);
  transition: background var(--t-base) var(--ease-out);
}
.brewmart-brand:hover { background: var(--bg-warm); color: var(--ink); }

.brewmart-brand-name {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.brewmart-brand.roaster .brewmart-brand-name {
  font-family: var(--font-mark);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.brewmart-brand-meta {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.brewmart-brand:hover .brewmart-brand-meta { opacity: 1; }

.brewmart-brands-foot {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.brewmart-brands-foot .count {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
}

/* ============================================================
   FEATURED PRODUCT SPOTLIGHT
   ============================================================ */

.brewmart-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 900px) {
  .brewmart-spotlight { grid-template-columns: 1.1fr 0.9fr; }
}

.brewmart-spotlight-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}
@media (min-width: 900px) { .brewmart-spotlight-img { aspect-ratio: auto; min-height: 620px; } }

.brewmart-spotlight-body {
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-5);
  padding: clamp(32px, 5vw, 64px);
  background: var(--bg-warm);
}
.brewmart-spotlight-body h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brewmart-spotlight-body h2 em {
  font-family: var(--font-mark);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
  display: block;
}
.brewmart-spotlight-body .price-row {
  display: flex; gap: var(--s-5); align-items: baseline;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-4) 0;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  flex-wrap: wrap;
}
.brewmart-spotlight-body .price-row strong {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
}
.brewmart-spotlight-notes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.brewmart-spotlight-notes span {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 1px solid var(--hairline-3);
  padding: 7px 12px;
}

/* ============================================================
   BEST SELLERS GRID
   ============================================================ */

.brewmart-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-2);
}
@media (min-width: 600px)  { .brewmart-product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-3); } }
@media (min-width: 1100px) { .brewmart-product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-6) var(--s-4); } }

.brewmart-product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.brewmart-product-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  overflow: hidden;
}
.brewmart-product-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18) 100%);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out);
}
.brewmart-product:hover .brewmart-product-img::after { opacity: 1; }
.brewmart-product-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 8px;
  line-height: 1;
}
.brewmart-product-tag.terra,
.brewmart-product-tag.copper { background: var(--accent); }
.brewmart-product-tag.sale { background: var(--sale); }

.brewmart-product-roaster {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-top: var(--s-3);
}
.brewmart-product h4 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
}
.brewmart-product .meta-line {
  font-size: var(--fs-xs);
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.brewmart-product .price {
  margin-top: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* ============================================================
   EDITORIAL FULL-BLEED FEATURE
   ============================================================ */

.brewmart-feature {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  color: var(--paper);
}
.brewmart-feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
}
.brewmart-feature-inner {
  position: relative; z-index: 2;
  max-width: 50ch;
}
.brewmart-feature h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: var(--paper);
  line-height: 0.96;
  margin: 0 0 var(--s-5);
}
.brewmart-feature p { color: rgba(255,255,255,0.92); margin: 0 0 var(--s-6); max-width: 44ch; font-size: var(--fs-md); }

/* ============================================================
   BREW GUIDES / JOURNAL
   ============================================================ */

.brewmart-guides {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 800px) { .brewmart-guides { grid-template-columns: repeat(3, 1fr); } }

.brewmart-guide { display: flex; flex-direction: column; gap: var(--s-3); }
.brewmart-guide-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease-out);
}
.brewmart-guide:hover .brewmart-guide-img { transform: scale(1.03); }
.brewmart-guide-meta { color: var(--mute); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; margin-top: var(--s-2); }
.brewmart-guide h3 { margin: 0; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.015em; }
.brewmart-guide p { color: var(--mute); margin: 0; }

/* ============================================================
   NEWSLETTER
   ============================================================ */

.brewmart-newsletter {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) { .brewmart-newsletter { grid-template-columns: 1.2fr 1fr; gap: var(--s-9); } }
.brewmart-newsletter h2 {
  margin: 0 0 var(--s-3);
  max-width: 18ch;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4vw, 48px);
}
.brewmart-newsletter form {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--s-5);
}
.brewmart-newsletter input[type="email"] {
  flex: 1; min-width: 220px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: var(--s-3) 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--paper);
  outline: none;
  transition: border-color var(--t-base) var(--ease-out);
}
.brewmart-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.brewmart-newsletter input[type="email"]:focus { border-bottom-color: var(--paper); }

/* ============================================================
   PRODUCT CARDS (Woo catalog) — Lululemon-style edge-to-edge
   ============================================================ */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--s-4) var(--s-2) !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (min-width: 600px)  { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: var(--s-5) var(--s-3) !important; } }
@media (min-width: 1100px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr) !important; gap: var(--s-6) var(--s-4) !important; } }

.woocommerce ul.products li.product {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  list-style: none;
  margin: 0 !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.woocommerce ul.products li.product a img {
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
  width: 100%;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: var(--s-3) 0 2px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.woocommerce ul.products li.product .price {
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: -0.005em;
}
.woocommerce ul.products li.product .button {
  width: auto !important;
  margin-top: var(--s-3) !important;
  font-size: 10px !important;
  padding: 10px 14px !important;
  min-height: 0 !important;
}
.woocommerce span.onsale {
  background: var(--sale) !important;
  color: var(--paper) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 5px 8px !important;
  border-radius: 0 !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1 !important;
}
.woocommerce ul.products li.product .entry-meta { display: none; }

/* ============================================================
   SHOP / CATEGORY PAGE
   ============================================================ */

body.woocommerce .ct-container,
body.archive .ct-container { max-width: var(--container-wide) !important; }

.woocommerce .page-title,
.woocommerce-products-header__title {
  font-size: clamp(36px, 6vw, 72px) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.035em !important;
  text-align: center;
  margin: clamp(40px, 6vw, 64px) 0 var(--s-3) !important;
}
.woocommerce .term-description,
.term-description {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--s-6) !important;
  color: var(--mute);
  font-size: var(--fs-md);
}

.woocommerce .woocommerce-result-count {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin: var(--s-5) 0;
}
.woocommerce .woocommerce-ordering select {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  padding: 8px 28px 8px 12px;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-2);
  padding: 10px 16px;
  background: var(--paper) !important;
  color: var(--ink) !important;
  margin: 0 4px;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */

.woocommerce div.product .product_title {
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.025em !important;
  margin-bottom: var(--s-4) !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-display);
  font-size: var(--fs-2xl) !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}
.woocommerce div.product .quantity input.qty {
  border: 1px solid var(--hairline-2);
  padding: 12px 8px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */

.ct-footer {
  background: var(--ink) !important;
  color: var(--paper);
  font-size: var(--fs-sm);
}
.ct-footer * { color: var(--paper); }
.ct-footer a:hover { color: var(--accent); }

/* ============================================================
   MOTION
   ============================================================ */

.reveal { animation: brewmartReveal var(--t-slow) var(--ease-out) both; }
.reveal-stagger > * { animation: brewmartReveal var(--t-slow) var(--ease-out) both; }
.reveal-stagger > *:nth-child(2) { animation-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { animation-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { animation-delay: 180ms; }
.reveal-stagger > *:nth-child(5) { animation-delay: 240ms; }
@keyframes brewmartReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   WP CORE / BLOCKSY OVERRIDES (homepage full-bleed)
   ============================================================ */

body.home .hero-section,
body.home .ct-hero-section,
body.home .entry-header,
body.home .page-title { display: none !important; }

body.home main,
body.home main > article,
body.home main > article > .entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

body.home .is-layout-constrained > .brewmart-hero,
body.home .is-layout-constrained > .brewmart-section,
body.home .is-layout-constrained > .brewmart-announce,
body.home .is-layout-constrained > .brewmart-brands,
body.home .is-layout-constrained > .brewmart-feature,
body.home .entry-content > .brewmart-hero,
body.home .entry-content > .brewmart-section,
body.home .entry-content > .brewmart-announce,
body.home .entry-content > .brewmart-brands,
body.home .entry-content > .brewmart-feature {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

body.home .ct-container,
body.home .ct-main-styles { padding-inline: 0 !important; max-width: none !important; }

/* ============================================================
   OFFCANVAS MOBILE NAV — injected via blocksy:header:offcanvas:mobile:top
   ============================================================ */
#offcanvas .brewmart-offcanvas-nav { padding: 24px 28px 32px; }
#offcanvas .brewmart-offcanvas-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#offcanvas .brewmart-offcanvas-menu li { list-style: none; margin: 0; padding: 0; }
#offcanvas .brewmart-offcanvas-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out);
}
#offcanvas .brewmart-offcanvas-menu a:hover,
#offcanvas .brewmart-offcanvas-menu .current-menu-item > a {
  color: var(--accent) !important;
  padding-left: 6px;
}
#offcanvas .brewmart-offcanvas-menu .sub-menu { list-style: none; margin: 8px 0 8px 12px; padding: 0; }
#offcanvas .brewmart-offcanvas-menu .sub-menu a {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hide Blocksy's default empty mobile-menu element — we render our own via the offcanvas hook */
#offcanvas nav.mobile-menu[data-id="mobile-menu"] { display: none; }

/* ============================================================
   LOGO — custom_logo image set; hide the site-title text wordmark
   ============================================================ */
header.ct-header [data-id="logo"] .site-title-container, header.ct-header [data-id="logo"] .site-title, header.ct-header [data-id="logo"] .ct-site-title { display: none !important; visibility: hidden !important; }
header.ct-header .site-logo-container { display: inline-flex; align-items: center; }
header.ct-header .custom-logo,
header.ct-header .site-logo-container img { height: 32px; width: auto; max-height: 32px; display: block; }
@media (max-width: 999px) {
  header.ct-header .custom-logo,
  header.ct-header .site-logo-container img { height: 26px; max-height: 26px; }
}


/* ============================================================
   STICKY MOBILE PDP BAR — Lululemon pattern
   ============================================================ */
.brewmart-sticky-buy { display: none; }

@media (max-width: 999px) {
  body.single-product .brewmart-sticky-buy {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #ffffff;
    border-top: 1px solid var(--hairline);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
    z-index: 200;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
  }
  body.single-product .brewmart-sticky-buy[data-state="shown"] { transform: translateY(0); }

  .brewmart-sticky-main {
    display: flex; align-items: center; gap: 12px;
  }
  .brewmart-sticky-img {
    width: 44px; height: 44px; object-fit: cover; flex-shrink: 0;
    background: #f4f4f4;
  }
  .brewmart-sticky-info {
    flex: 1; min-width: 0; line-height: 1.2;
  }
  .brewmart-sticky-name {
    font-family: var(--font-body);
    font-size: 13px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -0.005em;
  }
  .brewmart-sticky-price {
    font-family: var(--font-body);
    font-size: 13px; font-weight: 700; color: var(--ink);
    margin-top: 2px;
  }
  .brewmart-sticky-price del {
    color: var(--mute); font-weight: 500; margin-right: 4px;
  }
  .brewmart-sticky-price ins {
    text-decoration: none; color: var(--sale, #cf0d0d);
  }
  .brewmart-sticky-add {
    flex-shrink: 0;
    background: var(--ink) !important;
    color: var(--paper) !important;
    border: none; border-radius: 0;
    padding: 13px 22px;
    font-family: var(--font-body);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    cursor: pointer; line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease-out, transform 0.15s ease-out;
    min-height: 44px;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .brewmart-sticky-add:active { transform: scale(0.98); }
  .brewmart-sticky-add:disabled { opacity: 0.7; cursor: wait; }

  .brewmart-sticky-prb {
    margin-bottom: 10px;
    min-height: 0;
  }
  .brewmart-sticky-prb:empty { display: none; }
  /* Stripe's PRB renders a button — size it for thumb reach */
  .brewmart-sticky-prb #wc-stripe-payment-request-button,
  .brewmart-sticky-prb .wc-stripe-payment-request-wrapper,
  .brewmart-sticky-prb .wc-stripe-payment-request-button-separator { display: block; }
  .brewmart-sticky-prb .StripeElement,
  .brewmart-sticky-prb iframe { width: 100% !important; min-height: 44px !important; }

  /* Reserve scroll space so the bar doesn't cover the page bottom */
  body.single-product { padding-bottom: 76px; }
  body.single-product.has-prb-in-sticky { padding-bottom: 128px; }
}

/* ============================================================
   v0.7 — MINIMAL REDESIGN: whitespace, type hierarchy, simplification
   ============================================================ */

/* Announcement bar — quieter, less shouty */
.brewmart-announce {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-top: none !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
}
.brewmart-announce a { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* More generous section spacing site-wide */
.ermona-section,
body.home .entry-content > section,
body.home .entry-content > div { margin-top: 0; }
@media (min-width: 800px) {
  .ermona-section { padding: 80px 0 !important; }
}
.ermona-section + .ermona-section { border-top: 1px solid var(--hairline); }

/* Section eyebrow + title */
.ermona-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
  margin-bottom: 12px;
}
.ermona-section-title {
  font-family: var(--font-body) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05 !important;
  margin: 0 0 16px !important;
  color: var(--ink) !important;
}
.ermona-section-lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 560px;
  margin: 0 0 40px;
}

/* Category quicklinks — flat tiles, no shadow, square corners */
.ermona-quicklink {
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.ermona-quicklink-bg {
  filter: brightness(0.85);
  transition: filter var(--t-base) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.ermona-quicklink:hover .ermona-quicklink-bg { filter: brightness(1); }

/* Brand directory — slim, typographic */
.ermona-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
}
@media (max-width: 999px) { .ermona-brand-grid { grid-template-columns: repeat(2, 1fr); } }
.ermona-brand-grid a {
  background: var(--paper);
  padding: 24px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
}
.ermona-brand-grid a:hover { background: var(--ink); color: var(--paper); }

/* Newsletter — minimal */
.ermona-newsletter {
  padding: 80px 0 !important;
  text-align: center;
  background: var(--paper) !important;
  border-top: 1px solid var(--hairline);
}
.ermona-newsletter input[type="email"] {
  border: none !important;
  border-bottom: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 12px 4px !important;
  font-size: 16px !important;
  width: min(420px, 100%);
  text-align: center;
}
.ermona-newsletter input:focus { outline: none; border-bottom-width: 2px !important; }

/* Generic content sections within homepage */
.brewmart-hero {
  position: relative; min-height: 88vh; background: #000;
  display: flex; align-items: flex-end; padding-bottom: 64px;
  overflow: hidden;
}
.brewmart-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none; z-index: 1;
}
.brewmart-hero > .ct-container, .brewmart-hero > div { position: relative; z-index: 2; }
.brewmart-hero h1, .brewmart-hero .hero-eyebrow, .brewmart-hero .brewmart-hero-subtitle { color: #fff !important; }
.brewmart-hero h1 {
  font-size: clamp(48px, 8vw, 96px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 0.96 !important;
  text-transform: uppercase;
  margin: 0 !important;
  max-width: 12ch;
}
.brewmart-hero .hero-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  opacity: 0.85;
}

/* Product page (PDP) — minimal */
body.single-product .entry-summary .entry-title {
  font-family: var(--font-body) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 8px !important;
}
body.single-product .entry-summary .price {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin: 0 0 24px !important;
}
body.single-product .entry-summary .woocommerce-product-details__short-description {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px !important;
}
body.single-product form.cart button.single_add_to_cart_button {
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  min-height: 56px !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: none !important;
}
body.single-product form.cart .quantity input[type="number"] {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  height: 56px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Tabs (Description, Additional info, Reviews) */
body.single-product .woocommerce-tabs .tabs {
  list-style: none; margin: 48px 0 0 !important; padding: 0 !important;
  display: flex; gap: 32px;
  border-bottom: 1px solid var(--hairline) !important;
}
body.single-product .woocommerce-tabs .tabs li {
  padding: 0; margin: 0; background: transparent !important;
  border: none !important; border-radius: 0 !important;
}
body.single-product .woocommerce-tabs .tabs li a {
  display: block; padding: 16px 0 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--mute) !important;
  border-bottom: 2px solid transparent !important;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
body.single-product .woocommerce-tabs .tabs li.active a,
body.single-product .woocommerce-tabs .tabs li a:hover {
  color: var(--ink) !important;
  border-bottom-color: var(--ink) !important;
}
body.single-product .woocommerce-tabs .panel {
  padding: 32px 0 !important;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

/* Body background — pure white for minimal feel */
body { background: var(--paper) !important; }

/* Tighten breadcrumbs everywhere */
.ct-breadcrumbs, nav.woocommerce-breadcrumb {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--mute);
}
.ct-breadcrumbs a, nav.woocommerce-breadcrumb a { color: var(--mute); text-decoration: none; }
.ct-breadcrumbs a:hover, nav.woocommerce-breadcrumb a:hover { color: var(--ink); }

/* ============================================================
   v0.8 — Universal archive header (shop, category, tag, search)
   ============================================================ */
body.woocommerce-shop .entry-header,
body.post-type-archive-product .entry-header,
body.tax-product_cat .entry-header,
body.tax-product_tag .entry-header,
body.woocommerce-page.archive .entry-header,
.hero-section[data-type="type-2"] {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 64px 0 56px !important;
  margin: 0 0 var(--s-6) !important;
  text-align: center;
}
body.woocommerce-shop .entry-header .page-title,
body.post-type-archive-product .entry-header .page-title,
body.tax-product_cat .entry-header .page-title,
body.tax-product_tag .entry-header .page-title,
body.archive.woocommerce-page .entry-header .page-title,
.hero-section[data-type="type-2"] .page-title {
  color: var(--paper) !important;
  font-family: var(--font-body) !important;
  font-size: clamp(36px, 6vw, 64px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin: 0 !important;
}
body.woocommerce-shop .entry-header .ct-breadcrumbs,
body.post-type-archive-product .entry-header .ct-breadcrumbs,
body.tax-product_cat .entry-header .ct-breadcrumbs,
.hero-section[data-type="type-2"] .ct-breadcrumbs {
  color: rgba(255,255,255,0.7) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 16px !important;
}
body.tax-product_cat .entry-header .term-description {
  color: rgba(255,255,255,0.78) !important;
  font-size: 15px !important;
  max-width: 580px;
  margin: 16px auto 0 !important;
  line-height: 1.55;
}
@media (max-width: 999px) {
  body.woocommerce-shop .entry-header,
  body.post-type-archive-product .entry-header,
  body.tax-product_cat .entry-header,
  .hero-section[data-type="type-2"] { padding: 48px 0 40px !important; }
}

/* ============================================================
   v0.8 — PDP tabs: kill the blue underline (Blocksy default color)
   ============================================================ */
body.single-product .woocommerce-tabs .tabs[role="tablist"] li {
  border: none !important;
  background: transparent !important;
}
body.single-product .woocommerce-tabs .tabs[role="tablist"] li a,
body.single-product .woocommerce-tabs .tabs li a {
  background: transparent !important;
  --tab-background: transparent !important;
}
body.single-product .woocommerce-tabs .tabs[role="tablist"] li.active::before,
body.single-product .woocommerce-tabs .tabs[role="tablist"] li.active::after,
body.single-product .woocommerce-tabs .tabs[role="tablist"]::before,
body.single-product .woocommerce-tabs .tabs[role="tablist"]::after { display: none !important; }
/* The colored line comes from Blocksy's --tab-background variable on the active tab */
body.single-product .woocommerce-tabs {
  --tab-background: var(--ink) !important;
}

/* ============================================================
   v0.8 — Cart + Checkout (block-based)
   ============================================================ */
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header {
  background: var(--paper) !important;
  color: var(--ink) !important;
  padding: 48px 0 24px !important;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
body.woocommerce-cart .entry-header .page-title,
body.woocommerce-checkout .entry-header .page-title,
body.woocommerce-account .entry-header .page-title {
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  text-transform: none !important;
}

/* WC Blocks — Cart */
.wp-block-woocommerce-cart .wc-block-cart__main {
  font-family: var(--font-body);
}
.wp-block-woocommerce-cart .wc-block-cart-items {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.wp-block-woocommerce-cart .wc-block-cart-item__product-name,
.wp-block-woocommerce-cart .wc-block-components-product-name {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.wp-block-woocommerce-cart .wc-block-components-product-price__value,
.wp-block-woocommerce-cart .wc-block-formatted-money-amount {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper {
  border-top: 1px solid var(--hairline) !important;
  padding-top: 16px !important;
}
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  min-height: 56px !important;
  padding: 16px 24px !important;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector input {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--paper) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* WC Blocks — Checkout */
.wp-block-woocommerce-checkout .wc-block-components-title {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em !important;
  color: var(--ink) !important;
}
.wp-block-woocommerce-checkout input[type="text"],
.wp-block-woocommerce-checkout input[type="email"],
.wp-block-woocommerce-checkout input[type="tel"],
.wp-block-woocommerce-checkout select,
.wc-block-components-text-input input {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--paper) !important;
  font-family: var(--font-body) !important;
}
.wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  min-height: 56px !important;
}
.wp-block-woocommerce-checkout-express-payment-block { margin-bottom: 32px; }

/* ============================================================
   v0.8 — My Account
   ============================================================ */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; padding: 0; margin: 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--hairline);
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--ink) !important;
  text-decoration: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--terra); }
body.woocommerce-account form input[type="text"],
body.woocommerce-account form input[type="email"],
body.woocommerce-account form input[type="password"],
body.woocommerce-account form input[type="tel"] {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  font-family: var(--font-body) !important;
  width: 100%;
}
body.woocommerce-account form button.button,
body.woocommerce-account form input.button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  padding: 16px 28px !important;
  min-height: 56px !important;
}

/* ============================================================
   v0.8 — 404 + search results
   ============================================================ */
body.error404 main, body.search-no-results main {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 16px !important;
}
body.error404 main h1, body.search-no-results main h1 {
  font-size: clamp(64px, 12vw, 128px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  margin: 0 0 8px !important;
}
body.error404 main .ct-search-form, body.search-no-results main .ct-search-form { max-width: 480px; margin: 24px auto; }

/* ============================================================
   v0.8 — Cart icon in header (Blocksy) — clean look
   ============================================================ */
.ct-header-cart .ct-dynamic-count {
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  min-width: 18px; height: 18px;
  border-radius: 50%;
}
.ct-cart-content .ct-cart-title { font-weight: 700 !important; }

/* ============================================================
   v0.8 — Generic input focus + accessibility
   ============================================================ */
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 2px;
}

/* ============================================================
   v0.9 — Override Blocksy's primary blue (#2872fa) globally
   ============================================================ */
:root, body, body * {
  --theme-palette-color-1: #000000 !important;
  --theme-palette-color-2: #1a1a1a !important;
  --theme-link-initial-color: #000000 !important;
  --theme-link-hover-color: var(--terra) !important;
  --tab-background: #000000 !important;
}
/* Ensure product loop and cart prices never inherit blue */
[data-products] .price,
[data-products] .price *,
ul.products .price,
ul.products .price *,
.woocommerce-Price-amount,
.woocommerce-Price-amount *,
.wc-block-formatted-money-amount,
.wc-block-components-product-price *,
.wc-block-components-product-name {
  color: #000 !important;
}
/* Cart upsell / 'New in store' product card */
.wp-block-woocommerce-empty-cart-block .price,
.wp-block-woocommerce-empty-cart-block .price *,
.wp-block-woocommerce-empty-cart-block a { color: #000 !important; }
/* Buttons + accents stay terracotta */
.wp-block-button__link:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--terra) !important; }

/* Selected/active tab color */
.woocommerce-tabs .tabs li.active a { color: #000 !important; }

/* Form-field focus accent */
input:focus, textarea:focus, select:focus {
  border-color: #000 !important;
  outline-color: #000 !important;
}

/* Final fallback: any element that explicitly used the old palette */
[style*="#2872fa"] { color: #000 !important; background: #fff !important; }


/* ============================================================
   v1.0 — HEADER: bigger logo, centered nav, cart + account icons
   ============================================================ */
@media (min-width: 1000px) {
  header.ct-header [data-row="middle"] > .ct-container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center;
    gap: 32px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  header.ct-header [data-row="middle"] [data-column="start"] {
    grid-column: 1;
    justify-self: start;
  }
  header.ct-header [data-row="middle"] [data-column="end"] {
    grid-column: 2 / 4;
    justify-self: end;
    display: flex !important;
    align-items: center;
    gap: 0;
    width: auto !important;
  }
  /* Make the column-end stretch so we can center nav + push icons right */
  header.ct-header [data-row="middle"] {
    --middle-min: 80px;
  }
  /* Nav menu — push to center via grid trick: take available width */
  header.ct-header [data-column="end"] [data-items="primary"] {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
  header.ct-header [data-column="end"] nav.menu-container {
    margin-right: 32px;
  }
  header.ct-header [data-column="end"] nav.menu-container ul.menu {
    display: flex !important;
    gap: 32px !important;
    align-items: center;
  }
  header.ct-header [data-column="end"] nav.menu-container ul.menu .menu-item > a {
    padding: 8px 0 !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: var(--ink) !important;
    line-height: 1;
  }
}

/* Logo size */
header.ct-header .custom-logo,
header.ct-header .site-logo-container img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
}
@media (max-width: 999px) {
  header.ct-header .custom-logo,
  header.ct-header .site-logo-container img { height: 30px !important; max-height: 30px !important; }
}

/* Search button — minimal */
header.ct-header .ct-header-search,
header.ct-header .ct-header-trigger {
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
  color: var(--ink) !important;
  min-height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
header.ct-header .ct-header-search:hover,
header.ct-header .ct-header-trigger:hover { color: var(--terra) !important; }

/* Account + cart icons */
.brewmart-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color var(--t-fast) var(--ease-out);
}
.brewmart-icon-link:hover { color: var(--terra); }
.brewmart-icon-link svg { display: block; }
.brewmart-cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--terra);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 16px;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
}
.brewmart-cart-count[data-count="0"] { display: none; }

/* Hide brewmart-icon-link on mobile (hamburger covers it) */
@media (max-width: 999px) {
  .brewmart-icon-link { display: none; }
}

/* ============================================================
   v1.0 — Mobile responsiveness for new homepage sections
   ============================================================ */
@media (max-width: 999px) {
  .ermona-section [style*='grid-template-columns:repeat(3,1fr)'],
  .ermona-section [style*='grid-template-columns:repeat(4,1fr)'] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .ermona-section [style*='grid-template-columns:1.1fr 1fr'] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .ermona-section [style*='aspect-ratio:4/5'][style*='min-height:480px'] {
    min-height: 360px !important;
    aspect-ratio: 4/5 !important;
  }
  .ermona-section [style*='font-size:48px'] {
    font-size: 32px !important;
  }
}
@media (max-width: 689px) {
  .ermona-section [style*='grid-template-columns:repeat(3,1fr)'] {
    grid-template-columns: 1fr !important;
  }
}
