/* ==========================================================================
   AlphaBuds theme — WooCommerce default markup, content pages, footer,
   and the Flatsome shortcode shim's layout primitives.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset-ish baseline (no theme framework underneath us any more)
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;background:var(--os-surface);color:var(--os-ink);font-size:16px;}
img,svg,video{max-width:100%;height:auto;}
img{vertical-align:middle;}
button,input,select,textarea{font:inherit;color:inherit;}
button{cursor:pointer;}
table{border-collapse:collapse;width:100%;}
hr{border:0;border-top:1px solid var(--os-line);margin:28px 0;}
figure{margin:0;}
ul,ol{padding-left:1.25em;}

.os-main-region{display:block;min-height:40vh;}

/* --------------------------------------------------------------------------
   WooCommerce catalog grid (Woo's default ul.products markup)
   -------------------------------------------------------------------------- */
.woocommerce ul.products,
ul.products{
  list-style:none;margin:0;padding:0;
  display:grid;gap:16px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
ul.products li.product{margin:0;padding:0;list-style:none;display:flex;}
ul.products li.product > .os-pc{width:100%;}
ul.products::before,ul.products::after{content:none;}

@media (min-width:1500px){ ul.products{grid-template-columns:repeat(5,minmax(0,1fr));} }
@media (max-width:1100px){ ul.products{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width:820px){  ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;} }
@media (max-width:420px){  ul.products{gap:10px;} }

.os-shop{max-width:var(--os-max);margin:0 auto;padding:0 20px 56px;}

/* Shim product grid */
.os-grid{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0;}
.os-grid--6{grid-template-columns:repeat(6,minmax(0,1fr));}
.os-grid--3{grid-template-columns:repeat(3,minmax(0,1fr));}
.os-grid--2{grid-template-columns:repeat(2,minmax(0,1fr));}
@media (max-width:1100px){.os-grid,.os-grid--6{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:820px){.os-grid,.os-grid--6,.os-grid--3{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}}

/* Woo notices / messages already themed in product.css */
.woocommerce-notices-wrapper:empty{display:none;}

/* --------------------------------------------------------------------------
   Content pages & prose
   -------------------------------------------------------------------------- */
.os-page{padding:26px 0 60px;}
.os-page--narrow{max-width:820px;}
.os-page__hd{margin-bottom:24px;}
.os-page__t{margin:0 0 8px;font-size:clamp(1.7rem,3.2vw,2.5rem);font-weight:790;letter-spacing:-.03em;}
.os-page__meta{margin:0;color:var(--os-muted);font-size:.87rem;font-weight:600;}
.os-page__hero{margin:0 0 26px;}
.os-page__hero img{border-radius:var(--os-r-lg);width:100%;}

.os-prose{font-size:1rem;line-height:1.72;color:var(--os-ink-2);}
.os-prose h2{font-size:clamp(1.3rem,2.2vw,1.75rem);margin:1.7em 0 .5em;}
.os-prose h3{font-size:clamp(1.1rem,1.7vw,1.3rem);margin:1.5em 0 .45em;}
.os-prose h4{font-size:1.05rem;margin:1.3em 0 .4em;}
.os-prose p{margin:0 0 1.1em;}
.os-prose ul,.os-prose ol{margin:0 0 1.2em;padding-left:1.35em;}
.os-prose li{margin-bottom:.45em;}
.os-prose a{color:var(--os-green);text-decoration:underline;text-underline-offset:2px;}
.os-prose a:hover{color:var(--os-green-600);}
.os-prose img{border-radius:var(--os-r);}
.os-prose blockquote{
  margin:1.6em 0;padding:16px 22px;border-left:3px solid var(--os-green);
  background:var(--os-surface-2);border-radius:0 var(--os-r) var(--os-r) 0;color:var(--os-ink-2);
}
.os-prose table{margin:1.4em 0;font-size:.94rem;}
.os-prose th,.os-prose td{border:1px solid var(--os-line);padding:10px 12px;text-align:left;}
.os-prose th{background:var(--os-surface-2);font-weight:700;}

/* --------------------------------------------------------------------------
   Flatsome shim primitives
   -------------------------------------------------------------------------- */
.os-sec{padding:clamp(26px,3.6vw,48px) 0;}
.os-sec--dark{background:var(--os-ink);color:#fff;}
.os-sec--dark h1,.os-sec--dark h2,.os-sec--dark h3,.os-sec--dark p{color:#fff;}

.os-row{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:22px;align-items:start;
}
.os-row--vmid{align-items:center;}
.os-row--hcenter{justify-items:center;}
.os-row--collapse{gap:0;}
.os-col{grid-column:span var(--os-span,12);min-width:0;}
@media (max-width:820px){
  .os-col{grid-column:span var(--os-span-sm,12);}
}
@media (max-width:560px){
  .os-row{gap:16px;}
  .os-col{grid-column:span 12;}
}

.os-utext,.os-textbox{min-width:0;}
.os-utext > :first-child,.os-textbox > :first-child{margin-top:0;}
.os-utext > :last-child,.os-textbox > :last-child{margin-bottom:0;}
/* Flatsome's text_box is a transparent positioning container, not a card.
   Giving it a light panel background inverted pages that were authored for a
   dark section and made their text unreadable. */
.os-textbox{background:transparent;border:0;padding:0;border-radius:0;}
.os-divider{margin:26px 0;}
.os-uimg{border-radius:var(--os-r);}
.os-ustack{display:grid;gap:16px;}

.os-banner{
  position:relative;display:block;overflow:hidden;
  border-radius:var(--os-r-lg);
  background-size:cover;background-position:center;
  background-color:var(--os-surface-3);
  min-height:220px;
  text-decoration:none;color:inherit;
}
.os-banner__in{
  position:relative;z-index:2;
  padding:clamp(20px,3vw,40px);
  display:flex;flex-direction:column;justify-content:center;
  min-height:220px;
}
.os-banner__in:empty{display:none;}

/* --------------------------------------------------------------------------
   Post grid (blog, archives, search, shim)
   -------------------------------------------------------------------------- */
.os-archive{padding:26px 0 60px;}
.os-postgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:8px 0 30px;}
@media (max-width:940px){.os-postgrid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:600px){.os-postgrid{grid-template-columns:1fr;}}

.os-post{
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
  background:#fff;border:1px solid var(--os-line);border-radius:var(--os-r-lg);
  overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.os-post:hover{border-color:#cfdccf;box-shadow:var(--os-sh-2);transform:translateY(-3px);}
.os-post__img{display:block;background:var(--os-surface-2);aspect-ratio:16/9;overflow:hidden;}
.os-post__img img{width:100%;height:100%;object-fit:cover;}
.os-post__img:empty{display:none;}
.os-post__body{display:flex;flex-direction:column;padding:16px 17px 18px;}
.os-post__meta{font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--os-muted);margin-bottom:7px;}
.os-post__t{font-size:1.02rem;font-weight:720;line-height:1.35;letter-spacing:-.015em;margin-bottom:8px;color:var(--os-ink);}
.os-post:hover .os-post__t{color:var(--os-green);}
.os-post__x{font-size:.9rem;line-height:1.6;color:var(--os-muted);}

.os-pagination{display:flex;justify-content:center;margin-top:26px;}
.os-pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap;}
.os-pagination .page-numbers{
  min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;
  border:1.5px solid var(--os-line);border-radius:var(--os-r-pill);
  color:var(--os-ink-2);font-weight:680;font-size:.9rem;padding:0 12px;text-decoration:none;
}
.os-pagination .page-numbers:hover{border-color:var(--os-green);color:var(--os-green);}
.os-pagination .page-numbers.current{background:var(--os-green);border-color:var(--os-green);color:#fff;}

.os-empty{color:var(--os-muted);}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.os-404{padding:70px 20px 90px;text-align:center;max-width:640px;}
.os-404__t{font-size:clamp(1.7rem,3.4vw,2.5rem);margin:0 0 12px;font-weight:790;letter-spacing:-.03em;}
.os-404__s{color:var(--os-muted);margin:0 0 26px;font-size:1.02rem;}
.os-404__cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:30px;}
.os-404__search{max-width:440px;margin:0 auto;}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.os-footer{background:var(--os-ink);color:rgba(255,255,255,.72);margin-top:40px;}
.os-footer__top{padding:clamp(34px,4.4vw,58px) 0;}
.os-footer__grid{
  display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px;
}
@media (max-width:900px){.os-footer__grid{grid-template-columns:1fr 1fr;gap:28px;}}
@media (max-width:520px){.os-footer__grid{grid-template-columns:1fr;gap:24px;}}

.os-footer__brand img{height:52px;width:auto;margin-bottom:14px;}
.os-footer__word{display:block;font-size:1.4rem;font-weight:800;color:#fff;margin-bottom:14px;letter-spacing:-.03em;}
.os-footer__word span{color:var(--os-leaf);}
.os-footer__blurb{margin:0 0 16px;font-size:.9rem;line-height:1.65;max-width:38ch;color:rgba(255,255,255,.66);}
.os-footer__contact a{
  display:inline-flex;align-items:center;gap:8px;color:#fff;
  font-weight:700;text-decoration:none;font-size:.98rem;
}
.os-footer__contact a:hover{color:var(--os-leaf);}
.os-footer__contact svg{color:var(--os-leaf);}
.os-footer__age{
  display:flex;align-items:center;gap:7px;margin:14px 0 0;
  font-size:.8rem;color:rgba(255,255,255,.5);
}

.os-footer__ct{
  color:#fff;font-size:.75rem;font-weight:760;letter-spacing:.08em;
  text-transform:uppercase;margin:0 0 14px;
}
.os-footer__col ul{list-style:none;margin:0;padding:0;}
.os-footer__col li{margin-bottom:10px;}
.os-footer__col a{
  color:rgba(255,255,255,.7);text-decoration:none;font-size:.91rem;
  transition:color .14s ease;
}
.os-footer__col a:hover{color:#fff;}

.os-footer__bar{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;}
.os-footer__barin{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.os-footer__bar p{margin:0;font-size:.79rem;color:rgba(255,255,255,.5);}
.os-footer__legal{max-width:60ch;}

/* Keep the mobile tab bar clear of the footer */
@media (max-width:1099px){
  .os-footer{padding-bottom:8px;}
}

/* --------------------------------------------------------------------------
   Span-based text blocks.
   These live inside <a> wrappers (so the whole card is one link target) and
   were relying on the old theme's blanket normalisation to stack. State it.
   -------------------------------------------------------------------------- */
.os-hcard__t,.os-hcard__s,
.os-cat__t,.os-cat__n,
.os-post__meta,.os-post__t,.os-post__x,
.os-pc__eyebrow,.os-pc__t,
.os-trust__t,.os-trust__s,
.os-act__lbl,.os-act__sub{
  display:block;
}
.os-hcard > span:not(.os-hcard__ico):not(.os-hcard__go){flex:1;min-width:0;}
.os-post__body,.os-pc__body{display:flex;flex-direction:column;}
.os-cat__body{display:block;}

/* The rail card's price row and CTA stay flex */
.os-pc__price{display:flex;}
.os-pc__cta{display:flex;}

/* --------------------------------------------------------------------------
   Product card: link area + buy area
   -------------------------------------------------------------------------- */
.os-pc{display:flex;flex-direction:column;height:100%;
  background:#fff;border:1px solid var(--os-line);border-radius:var(--os-r-lg);
  overflow:hidden;position:relative;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.os-pc:hover{border-color:#cfdccf;box-shadow:var(--os-sh-2);transform:translateY(-3px);}
.os-pc__link{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit;}
.os-pc__link:hover{color:inherit;}

.os-pc__buy{
  padding:0 13px 14px;display:flex;flex-direction:column;gap:8px;margin-top:auto;
}
.os-pc__buy:empty{display:none;}

/* Whatever the loop prints in here gets the house style. */
.os-pc__buy select{
  width:100%;height:42px;margin:0;
  border:1.5px solid var(--os-line);border-radius:var(--os-r-pill);
  background-color:#fff;padding:0 34px 0 15px;
  font-size:.85rem;font-weight:640;color:var(--os-ink);font-family:var(--os-font);
  appearance:none;-webkit-appearance:none;box-shadow:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c6a60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
}
.os-pc__buy select:focus{border-color:var(--os-green);outline:none;
  box-shadow:0 0 0 3px rgba(23,117,60,.12);}

.os-pc__buy a.button,
.os-pc__buy button,
.os-pc__buy input[type="submit"]{
  display:flex;align-items:center;justify-content:center;gap:7px;
  width:100%;margin:0;min-height:42px;padding:11px 14px;
  border:1.5px solid transparent;border-radius:var(--os-r-pill);
  background:var(--os-green-050);color:var(--os-green-700);
  font-size:.86rem;font-weight:700;font-family:var(--os-font);
  letter-spacing:0;text-transform:none;text-decoration:none;box-shadow:none;
  transition:background .16s ease,color .16s ease;
}
.os-pc__buy a.button:hover,
.os-pc__buy button:hover{background:var(--os-green);color:#fff;}
.os-pc__buy a.added{background:var(--os-green);color:#fff;}
.os-pc__buy .added_to_cart{
  font-size:.78rem;font-weight:700;color:var(--os-green);
  text-align:center;text-decoration:underline;min-height:0;padding:2px 0;background:none;
}
.os-pc__buy .quantity{display:none;}

/* Product labels plugin badge, when it lands in the buy area */
.os-pc__buy .wcpl-label,
.os-pc__buy .advanced-product-label{align-self:flex-start;}

/* The standalone card keeps its own CTA */
.os-pc__cta{margin-top:11px;}

/* --------------------------------------------------------------------------
   quick-variation-pills mu-plugin ships a dark palette (#1a1a1a on #3a3a3a)
   that predates this design. Its `.qvp .qvp-select` outranks our element
   selector, so override it by name inside the card.
   -------------------------------------------------------------------------- */
.os-pc__buy .qvp{width:100%;display:flex;flex-direction:column;gap:8px;}
.os-pc__buy .qvp-select,
.os-pc .qvp .qvp-select{
  background-color:#fff !important;
  color:var(--os-ink) !important;
  border:1.5px solid var(--os-line) !important;
  border-radius:var(--os-r-pill) !important;
  height:42px !important;
  padding:0 34px 0 15px !important;
  font-family:var(--os-font) !important;
  font-size:.85rem !important;font-weight:640 !important;
  box-shadow:none !important;
}
.os-pc__buy .qvp-select:focus{
  border-color:var(--os-green) !important;
  box-shadow:0 0 0 3px rgba(23,117,60,.12) !important;
}
.os-pc__buy .qvp-add,
.os-pc__buy .qvp-btn,
.os-pc__buy .qvp button,
.os-pc__buy .qvp a.button{
  background:var(--os-green-050) !important;
  color:var(--os-green-700) !important;
  border:1.5px solid transparent !important;
  border-radius:var(--os-r-pill) !important;
  min-height:42px !important;
  font-family:var(--os-font) !important;
  font-size:.86rem !important;font-weight:700 !important;
  text-transform:none !important;letter-spacing:0 !important;
  box-shadow:none !important;
}
.os-pc__buy .qvp-add:hover,
.os-pc__buy .qvp-btn:hover,
.os-pc__buy .qvp button:hover{
  background:var(--os-green) !important;color:#fff !important;
}

/* Product-label plugin pill sits above the picker, left aligned */
.os-pc__buy .berocket_better_labels{margin:0;}
.os-pc__buy .berocket_better_labels .berocket_better_label_widget{margin:0;}

/* --------------------------------------------------------------------------
   WooCommerce ships a float-based catalog layout in woocommerce-layout.css
   (`ul.products{display:flex}` + `li.product{float:left;width:22.05%}`) that
   was winning over the grid above and squeezing five columns into a phone.
   Override the whole layout system rather than fighting it rule by rule.
   -------------------------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products{
  display:grid !important;
  float:none !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product{
  float:none !important;
  width:auto !important;
  /* Woo also pins `flex:0 0 calc(20% - 16px)` and a matching max-width on the
     item. Inside a grid the flex shorthand is inert but the max-width still
     caps the track, which crushed every card to ~18px. */
  flex:0 0 auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  clear:none !important;
  display:flex !important;
}
.woocommerce ul.products li.product > .os-pc,
ul.products li.product > .os-pc{width:100% !important;}
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after{content:none !important;}

@media (min-width:1500px){
  .woocommerce ul.products,.woocommerce-page ul.products,ul.products{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (max-width:1100px){
  .woocommerce ul.products,.woocommerce-page ul.products,ul.products{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:820px){
  .woocommerce ul.products,.woocommerce-page ul.products,ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
}

/* --------------------------------------------------------------------------
   WooCommerce's clearfix pseudo-elements (`ul.products::before{content:" ";
   display:table}`) become GRID ITEMS once the list is a grid, so they consumed
   the first cell of the catalog and shifted every product one place right.
   They must be removed, not merely emptied.
   -------------------------------------------------------------------------- */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after{
  content:none !important;
  display:none !important;
}

/* Posts without a featured image get a quiet branded panel rather than a grey
   void — 24 of the 58 published posts have no thumbnail. */
.os-post__img--empty{
  background:
    radial-gradient(circle at 30% 30%, rgba(23,117,60,.10), transparent 60%),
    var(--os-surface-2);
  position:relative;
}
.os-post__img--empty::after{
  content:"";
  position:absolute;inset:0;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2317753c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='.28'%3E%3Cpath d='M11 20A7 7 0 0 1 4 13c0-6 7-11 16-11 0 9-4 16-9 18z'/%3E%3Cpath d='M4 21c2-4 5-7 9-9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:44px 44px;
}
.os-archive__desc{margin-top:12px;max-width:70ch;}
.os-empty{padding:30px 0 50px;color:var(--os-muted);}
.os-empty p{margin:0 0 16px;}

/* 404 ---------------------------------------------------------------------- */
.os-404{padding:64px 20px 80px;text-align:center;max-width:720px;}
.os-404__code{
  margin:0 0 6px;font-size:clamp(3.4rem,8vw,5.2rem);font-weight:800;
  letter-spacing:-.05em;line-height:1;
  background:linear-gradient(120deg,var(--os-leaf),var(--os-green));
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.os-404__t{font-size:clamp(1.5rem,3vw,2.15rem);margin:0 0 12px;font-weight:790;letter-spacing:-.03em;}
.os-404__s{color:var(--os-muted);margin:0 auto 26px;font-size:1rem;line-height:1.65;max-width:52ch;}
.os-404__search{max-width:440px;margin:0 auto 22px;}
.os-404__cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:34px;}
.os-404__label{
  font-size:.72rem;font-weight:760;letter-spacing:.08em;text-transform:uppercase;
  color:var(--os-muted);margin:0 0 12px;
}
.os-404__chips{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-bottom:30px;}
.os-404__help{font-size:.9rem;color:var(--os-muted);margin:0;}
.os-404__help a{color:var(--os-green);font-weight:650;}

/* Pages that bring their own hero + <h1> render edge-to-edge; the theme adds
   no title block and no wrap so their own layout is untouched. */
.os-page--bare{padding-top:0;}
.os-page__body--full{max-width:none;}
.os-page__body--full > :first-child{margin-top:0;}

/* Base ink for headings comes from body; re-assert it for the theme's own
   chrome so nothing depends on inheritance from a page's custom section. */
.os-page__t,.os-head__t,.os-cathero__t,.os-404__t,
.os-post__t,.os-pc__t,.os-footer__ct,.os-strain__t{color:var(--os-ink);}
.os-footer__ct{color:#fff;}
.os-hero__t{color:#fff;}
.os-trust__t{color:#fff;}
.os-rew__t{color:#fff;}

/* Contrast rescue — see the matching block in app.js. Kept to a single class
   so any element with its own inline colour still wins. */
.os-on-dark,
.os-on-dark p,
.os-on-dark li,
.os-on-dark span,
.os-on-dark td,
.os-on-dark h1,.os-on-dark h2,.os-on-dark h3,
.os-on-dark h4,.os-on-dark h5,.os-on-dark h6{
  color:rgba(255,255,255,.88);
}
.os-on-dark strong,.os-on-dark b{color:#fff;}
.os-on-dark a:not(.os-btn){color:var(--os-leaf);}
.os-on-dark a:not(.os-btn):hover{color:#8fe8ab;}

/* A light card nested inside a dark section goes back to ink. */
.os-on-light,
.os-on-light p,
.os-on-light li,
.os-on-light span,
.os-on-light td,
.os-on-light h1,.os-on-light h2,.os-on-light h3,
.os-on-light h4,.os-on-light h5,.os-on-light h6{
  color:var(--os-ink);
}
.os-on-light a:not(.os-btn){color:var(--os-green);}
