/* Veryplants Wholesale — site stylesheet
   Loads after colors_and_type.css. Faire-inspired: clean, dense, retail-buyer focused. */

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--vp-body); background: var(--vp-white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container--form   { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--cream { background: var(--vp-cream); }
.section--ink   { background: var(--vp-ink); color: white; }
.section--off   { background: var(--vp-off-white); }

/* ---------- ANNOUNCEMENT ---------- */
.ann { background: var(--vp-ink); color: white; text-align: center; font-size: 13px; padding: 9px 24px; letter-spacing: 0.04em; }
.ann b { color: var(--vp-orange); font-weight: 700; }

/* Consumer redirect strip (logged-out only). Sits above the wholesale
   announcement bar to give confused consumers an off-ramp to the D2C sites. */
.vp-consumer-redirect { background: var(--vp-cream); color: var(--vp-ink); text-align: center; font-size: 12px; padding: 7px 24px; border-bottom: 1px solid var(--vp-line); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.vp-consumer-redirect span { color: var(--vp-body); }
.vp-consumer-redirect .vp-consumer-redirect__cta { display: inline-flex; align-items: center; gap: 6px; }
.vp-consumer-redirect a { color: var(--vp-link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.vp-consumer-redirect a:hover { color: var(--vp-link-hover); }
@media (max-width: 600px) {
	.vp-consumer-redirect { font-size: 11px; gap: 6px; padding: 6px 12px; }
}

/* ---------- RESELLER BAR (logged-in only) ---------- */
.rbar { background: var(--vp-trade-green); color: white; padding: 0 24px; height: 38px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.rbar .left { display: flex; align-items: center; gap: 16px; }
.rbar .left .pill { background: rgba(255,255,255,0.18); padding: 3px 9px; border-radius: 999px; font-size: 11px; }
.rbar .right { display: flex; align-items: center; gap: 20px; }
.rbar a:hover { text-decoration: underline; }

/* ---------- HEADER ---------- */
.hdr { background: white; border-bottom: 1px solid var(--vp-line); padding: 14px 24px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 50; }
.hdr .brand { color: var(--vp-ink); display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.hdr .brand .brand-logo { height: 30px; width: auto; display: block; }
.hdr .brand .tag { font-family: var(--font-body); font-size: 10px; font-weight: 700; color: var(--vp-trade-green); letter-spacing: 0.12em; text-transform: uppercase; align-self: center; }
.hdr .search { display: flex; align-items: center; gap: 8px; background: var(--vp-cream); padding: 8px 14px; border-radius: 8px; max-width: 480px; width: 100%; }
.hdr .search input { background: transparent; border: none; outline: none; flex: 1; font-size: 14px; color: var(--vp-ink); font-family: inherit; }
.hdr .search svg { width: 16px; height: 16px; color: var(--vp-muted); }
.hdr nav.primary { display: flex; gap: 22px; font-size: 13px; font-weight: 600; }
.hdr nav.primary a { color: var(--vp-ink); padding: 6px 0; position: relative; }
.hdr nav.primary a:hover { color: var(--vp-orange-700); text-decoration: none; }
.hdr nav.primary a.is-active { color: var(--vp-orange-700); }
.hdr nav.primary a.is-active::after { content:''; position: absolute; left: 0; right: 0; bottom: -16px; height: 2px; background: var(--vp-orange); }
.hdr .actions { display: flex; gap: 14px; align-items: center; }
.hdr .actions a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 0; }
.hdr .actions svg { width: 18px; height: 18px; }
.hdr .actions .cart-pill { position: relative; }
.hdr .actions .cart-pill .n { position: absolute; top: -3px; right: -10px; background: var(--vp-orange); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.hdr .login-btn { background: var(--vp-ink); color: white; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.hdr .login-btn:hover { background: var(--vp-orange-700); text-decoration: none; }

/* ---------- SUBNAV ---------- */
.subnav { background: white; border-bottom: 1px solid var(--vp-line); padding: 0 24px; }
.subnav .row { max-width: 1400px; margin: 0 auto; display: flex; gap: 24px; overflow-x: auto; }
.subnav a { padding: 14px 0; font-size: 13px; font-weight: 600; color: var(--vp-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--vp-ink); text-decoration: none; }
.subnav a.is-active { color: var(--vp-ink); border-bottom-color: var(--vp-orange); }

/* ---------- BUTTONS ---------- */
.btn { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--vp-orange); color: white; }
.btn--primary:hover { background: var(--vp-orange-700); }
.btn--trade { background: var(--vp-trade-green); color: white; }
.btn--trade:hover { background: var(--vp-trade-green-700); }
.btn--ink { background: var(--vp-ink); color: white; }
.btn--ink:hover { background: var(--vp-orange-700); }
.btn--secondary { background: white; color: var(--vp-ink); border-color: var(--vp-ink); }
.btn--secondary:hover { background: var(--vp-ink); color: white; }
.btn--ghost { background: transparent; color: var(--vp-ink); padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--vp-orange-700); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 14px; }
.btn--sm { padding: 9px 16px; font-size: 12px; }

/* ---------- INPUTS ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12px; font-weight: 600; color: var(--vp-ink); letter-spacing: 0.04em; }
.field .hint { font-size: 12px; color: var(--vp-muted); }
.input, .select, .textarea { font-family: inherit; font-size: 15px; color: var(--vp-ink); padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--vp-line-strong); background: white; outline: none; width: 100%; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--vp-ink); }
.textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.checkbox { display: inline-flex; gap: 10px; align-items: start; font-size: 14px; color: var(--vp-body); cursor: pointer; }
.checkbox input { margin-top: 2px; accent-color: var(--vp-trade-green); }

/* ---------- BADGES ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge--margin { background: var(--vp-trade-green); color: white; }
.badge--new    { background: var(--vp-orange); color: white; }
.badge--locked { background: var(--vp-cream); color: var(--vp-orange-700); }
.badge--ink    { background: var(--vp-ink); color: white; }
.badge--out    { background: white; color: var(--vp-error); border: 1.5px solid var(--vp-error); }
.badge--soft   { background: var(--vp-cream); color: var(--vp-ink); }

/* ---------- PRODUCT CARD ---------- */
.pcard { background: white; border: 1px solid var(--vp-line); transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); display: flex; flex-direction: column; }
.pcard:hover { box-shadow: var(--shadow-md); }
.pcard .media { aspect-ratio: 1; display: grid; place-items: center; padding: 22px; position: relative; overflow: hidden; }
.pcard .media img { max-width: 78%; max-height: 78%; object-fit: contain; }
.pcard .media.is-lifestyle { padding: 0; }
.pcard .media.is-lifestyle img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.pcard .media .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .body { padding: 16px 18px 20px; border-top: 1px solid var(--vp-line); display: flex; flex-direction: column; gap: 8px; }
.pcard .title { font-family: var(--font-display); font-size: 20px; color: var(--vp-muted); line-height: 1.15; }
.pcard .meta { font-size: 12px; color: var(--vp-muted); }
.pcard .foot { display: flex; justify-content: space-between; align-items: end; margin-top: 6px; gap: 12px; }
.pcard .price { font-weight: 700; font-size: 18px; color: var(--vp-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.pcard .price-meta { font-size: 11px; color: var(--vp-muted); margin-top: 4px; }
.pcard .locked { font-weight: 600; font-size: 13px; color: var(--vp-orange-700); }
.pcard .msrp { font-size: 12px; color: var(--vp-muted); margin-top: 2px; }

/* ---------- BREADCRUMB ---------- */
.crumb { display: flex; gap: 6px; font-size: 12px; color: var(--vp-muted); padding: 14px 0; }
.crumb a:hover { color: var(--vp-orange-700); text-decoration: none; }
.crumb .sep { opacity: 0.5; }

/* ---------- FOOTER ---------- */
.ft { background: var(--vp-ink); color: rgba(255,255,255,0.75); padding: 56px 24px 28px; margin-top: 64px; }
.ft .inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.ft h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: white; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.ft a { display: block; font-size: 13px; padding: 4px 0; }
.ft a:hover { color: var(--vp-orange); text-decoration: none; }
.ft .brandcol h3 { font-family: var(--font-display); font-size: 22px; color: white; margin: 0 0 10px; }
.ft .brandcol p { line-height: 1.6; max-width: 360px; margin: 0 0 14px; font-size: 13px; }
.ft .legal { max-width: 1400px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 8px; }
/* Override .ft a { display: block; } for the inline Privacy / Terms row in .legal so the dot separator stays on one line. */
.ft .legal a { display: inline; padding: 0; }
.ft .social { display: flex; gap: 12px; margin-top: 8px; }
.ft .social a { padding: 6px; }
.ft .social svg { width: 18px; height: 18px; color: white; }
@media (max-width: 880px) { .ft .inner { grid-template-columns: 1fr 1fr; } }

/* ---------- TRUST STRIP ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--vp-line); border-bottom: 1px solid var(--vp-line); }
.trust > div { padding: 18px 24px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--vp-line); }
.trust > div:last-child { border-right: none; }
.trust svg { width: 22px; height: 22px; color: var(--vp-orange-700); flex-shrink: 0; }
.trust .t-title { font-weight: 700; font-size: 13px; color: var(--vp-ink); }
.trust .t-sub { font-size: 12px; color: var(--vp-muted); }
@media (max-width: 880px) { .trust { grid-template-columns: 1fr 1fr; } }

/* ---------- TYPE HELPERS ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vp-orange-700); }
.eyebrow--green { color: var(--vp-trade-green); }
.eyebrow--muted { color: var(--vp-muted); }
.h-display { font-family: var(--font-display); color: var(--vp-muted); line-height: 1.05; }
.lead { font-size: 18px; line-height: 1.6; color: var(--vp-body); }

/* ---------- UTILITY ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.icn { width: 1em; height: 1em; display: inline-block; }
.divider { height: 1px; background: var(--vp-line); margin: 32px 0; }

/* ---------- LOGIN STATE TOGGLE ---------- */
/* Pages render both states; toggle .is-logged-in on <body> to switch. */
body.is-logged-in .show-out  { display: none !important; }
body:not(.is-logged-in) .show-in { display: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .hdr { grid-template-columns: auto 1fr auto; }
  .hdr .search { display: none; }
}
@media (max-width: 720px) {
  .hdr nav.primary { display: none; }
}
@media (max-width: 600px) {
  /* Phone header: tighter padding, smaller logo, hide WHOLESALE tag
     (the URL and the page already context the wholesale-ness) so the
     login + cart buttons have room. */
  .hdr { padding: 10px 14px; gap: 12px; grid-template-columns: auto 1fr auto; }
  .hdr .brand .brand-logo { height: 24px; }
  .hdr .brand .tag { display: none; }
  .hdr .actions { gap: 10px; }
  .hdr .login-btn { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
  .hdr .actions .show-in { display: none; }
  /* Logged-in label collapsed on phone; account icon still tappable. */
  .hdr .actions .account-link svg { width: 22px; height: 22px; }
  .vp-consumer-redirect { padding: 6px 12px; font-size: 11px; flex-direction: column; gap: 2px; }
  .ann { padding: 8px 12px; font-size: 12px; }
}
/* Defensive: never let a stray wide child force horizontal scroll. */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }
