/* ============================================================
   4 CLOVER EQUINE — Website components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .35s var(--ease);
  background: var(--forest-800); color: var(--cream);
}
.btn:hover { background: var(--pine-900); transform: translateY(-1px); }
.btn--brass { background: var(--brass-500); color: var(--pine-950); }
.btn--brass:hover { background: var(--brass-600); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--forest-800); }
.btn--ghost:hover { background: var(--forest-800); color: var(--cream); border-color: var(--forest-800); }
.btn--ghost-light { background: transparent; border-color: rgba(244,238,224,.5); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--pine-900); border-color: var(--cream); }
.btn--sm { padding: 12px 22px; font-size: 0.7rem; }
.btn--block { width: 100%; }

.link-arrow {
  font-family: var(--sans); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest-800);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid transparent; padding-bottom: 3px; transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 16px; border-bottom-color: var(--brass-500); }
.link-arrow .ar { color: var(--brass-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 84px;
  background: var(--paper); border-bottom: 1px solid var(--line-light);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.over-hero {
  position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent;
}
.site-header.over-hero .brandmark, .site-header.over-hero .nav a, .site-header.over-hero .head-cart { color: var(--cream); }
.site-header.over-hero.scrolled {
  position: fixed; background: var(--paper); border-bottom-color: var(--line-light);
}
.site-header.over-hero.scrolled .brandmark,
.site-header.over-hero.scrolled .nav a,
.site-header.over-hero.scrolled .head-cart { color: var(--forest-800); }

.brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-800); flex-shrink: 0; }
.brandmark .mark-clover { width: 38px; height: 38px; overflow: visible; flex: none; }
.brandmark .mark-clover .m-leaf { fill: currentColor; }
.brandmark .mark-clover .m-lucky { fill: var(--brass-500); }
/* over a hero photo: collapse the lucky leaf to one ink so it reads on imagery */
.site-header.over-hero:not(.scrolled) .brandmark .mark-clover .m-lucky { fill: currentColor; }
.brandmark .wm { font-family: var(--display); font-size: 1.42rem; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.brandmark .wm .wm-serif { display: block; font-weight: 500; }
.brandmark .wm small { display:block; font-family: var(--sans); font-weight: 400; font-size: 0.46rem; letter-spacing: 0.34em; margin-top: 4px; opacity: .7; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-family: var(--sans); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-700);
  text-decoration: none; position: relative; padding: 4px 0; transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brass-500); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--forest-800); }

.head-right { display: flex; align-items: center; gap: 24px; }
.head-cart { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-700); }
.head-cart .count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brass-500);
  color: var(--pine-950); font-size: 0.64rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 1.5px; background: currentColor; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-900); color: var(--cream); padding: 80px 48px 36px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-grid h4 { font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-300); margin: 0 0 22px; }
.footer-grid a { display: block; color: rgba(244,238,224,.72); text-decoration: none; font-weight: 300; padding: 7px 0; font-size: 0.95rem; transition: color .25s; }
.footer-grid a:hover { color: var(--cream); }
.foot-news input { width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--cream); font-family: var(--sans); font-size: 0.95rem; }
.foot-news input::placeholder { color: rgba(244,238,224,.4); }
.foot-bottom { max-width: 1200px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(244,238,224,.5); letter-spacing: 0.04em; }

/* ---------- Layout helpers ---------- */
.section { padding: 110px 48px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.sec-head .eyebrow { color: var(--brass-600); display: block; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem,4.5vw,3.4rem); line-height: 1.12; margin: 0 0 24px; color: var(--ink-900); }
.sec-head p { font-family: var(--sans); font-weight: 300; font-size: 1.08rem; line-height: 1.7; color: var(--ink-500); margin: 0; }
.sec-head.on-dark h2 { color: var(--cream); }
.sec-head.on-dark p { color: rgba(244,238,224,.72); }

/* ---------- Product / listing cards ---------- */
.prod { text-decoration: none; color: inherit; display: block; }
.prod .img { position: relative; aspect-ratio: 4/5; border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.prod .img .ph { position: absolute; inset: 0; }
.prod .tagchip { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--brass-500); color: var(--pine-950);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }
.prod .add {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.prod:hover .add { opacity: 1; transform: translateY(0); }
.prod .nm { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.prod .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.prod .price { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--forest-800); }
.prod .cat { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(14,33,26,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .4s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; background: var(--paper); z-index: 201;
  transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer .ch { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--line-light); }
.cart-drawer .ch h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0; }
.cart-drawer .close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-500); line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); align-items: center; }
.cart-row .thumb { width: 64px; height: 78px; border-radius: 2px; }
.cart-row .nm { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.cart-row .qty { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-500); margin-top: 4px; }
.cart-row .rp { font-family: var(--sans); font-weight: 500; font-size: 0.9rem; }
.cart-row .rm { background: none; border: 0; color: var(--ink-500); cursor: pointer; font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; padding: 0; }
.cart-foot { padding: 24px 28px; border-top: 1px solid var(--line-light); }
.cart-foot .row { display: flex; justify-content: space-between; font-family: var(--sans); margin-bottom: 18px; }
.cart-foot .row .t { font-family: var(--serif); font-size: 1.3rem; }
.cart-empty { text-align: center; color: var(--ink-500); padding: 60px 20px; font-weight: 300; }

/* ---------- Mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; background: var(--pine-900); z-index: 150; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: var(--serif); font-size: 2rem; color: var(--cream); text-decoration: none; padding: 10px; }
.mobile-nav .mclose { position: absolute; top: 28px; right: 32px; background: none; border: 0; color: var(--cream); font-size: 2rem; cursor: pointer; }

@media (max-width: 920px) {
  .site-header, .section, .site-footer { padding-left: 24px; padding-right: 24px; }
  .nav { display: none; }
  .burger { display: flex; color: inherit; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .head-right .label-hide { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--pine-900); color: var(--cream); padding: 14px 26px; border-radius: 3px; font-family: var(--sans);
  font-size: 0.86rem; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: all .4s var(--ease); display:flex; align-items:center; gap:12px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-500); }
