/*
Theme Name:   Fish Mox Supply
Theme URI:    https://fishmoxsupply.com
Description:  Flatsome child theme for Fish Mox Supply. Reproduces the T4S/Kalles
              storefront design the shop ran on Shopify, so the move to
              WooCommerce is invisible to visitors.
Author:       Fish Mox Supply
Template:     flatsome
Version: 2.6.1
Text Domain:  fishmox-child
*/

/* Libre Baskerville is only used by .fms-subtitle; Lato/Montserrat come from
   the Customizer typography settings (enqueued by Flatsome). */
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i&display=swap');

/* ============================================================
   FISH MOX SUPPLY — Shopify (T4S/Kalles) look on Flatsome
   Tokens -> Base type -> Header -> Hero/sections -> Tiles ->
   Product cards -> Accordion -> Newsletter -> Footer -> Mobile
   Source of truth: design_ref/IMPLEMENTATION_PLAN.md (section 7)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --fms-container: 1420px;
  --fms-font-body: Lato, sans-serif;
  --fms-font-heading: Montserrat, sans-serif;
  --fms-font-alt: "Libre Baskerville", serif;
  --fms-bg: #fff;
  --fms-text: #333;
  --fms-heading: #333;
  --fms-accent: #b59677;
  --fms-accent-dark: #91704f;
  --fms-accent-warm: #c7894b;
  --fms-secondary: #4d5959;
  --fms-link: #222222;
  --fms-link-hover: #ba5252;
  --fms-dark: #222222;
  --fms-border: #ddd;
  --fms-footer-border: #e6e6e6;
  --fms-gray: #878787;
  --fms-btn-bg: #222;
  --fms-btn-cl: #fff;
  --fms-btn-bg-hover: #b59677;
  --fms-radius: 0px;
  --fms-pr-title: #4d5959;
  --fms-pr-title-hover: #b59677;
  --fms-price: #696969;
  --fms-price-sale: #ec0101;
  --fms-badge-sale: #f68e56;
  --fms-cta: #ffb100;
  --fms-cta-hover: #ff4e00;
  --fms-count-bg: #000000;
  --fms-count-cl: #ffffff;
  --fms-acc-title: #110f0f;
  --fms-medal: #1f2f6b;
  /* Override Flatsome's custom-css tokens */
  --primary-color: #222222;
  --fs-color-primary: #222222;
  --fs-color-secondary: #b59677;
}

/* ---------- 2. BASE TYPOGRAPHY & ELEMENTS ---------- */
body {
  font-family: var(--fms-font-body);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fms-text);
  background-color: var(--fms-bg);
}
h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: var(--fms-font-heading) !important; /* Flatsome inlines heading font via #custom-css */
  font-weight: 400 !important;
  letter-spacing: 2px;
  line-height: 1.4;
  color: var(--fms-heading);
}
h1 { font-size: 37px; } h2 { font-size: 29px; } h3 { font-size: 23px; }
h4 { font-size: 18px; } h5 { font-size: 17px; } h6 { font-size: 15.5px; }

a { color: var(--fms-link); }
@media (hover: hover) and (min-width: 1025px) {
  #content a:not(.button):not(.nav-top-link):not(.woocommerce-LoopProduct-link):hover { color: var(--fms-link-hover); }
}

/* Section titles (Shopify .t4s-title) + Libre Baskerville subtitles */
.fms-title, #content .col-inner > h2.uppercase {
  font-family: var(--fms-font-heading) !important;
  font-size: 20px !important;
  line-height: 28px;
  font-weight: 400 !important;
  letter-spacing: 2px;
  color: var(--fms-secondary) !important;
  text-align: center;
  margin-bottom: 30px;
  text-transform: none; /* titles are typed as authored, not forced uppercase */
}
.fms-subtitle {
  font-family: var(--fms-font-alt);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--fms-gray);
  margin-top: -20px;
  margin-bottom: 30px;
}
@media (max-width: 549px) { .fms-title { margin-bottom: 25px; } }

/* Buttons: square, Lato 600 14px, #222 -> #b59677 */
.button, button, input[type="submit"], input[type="button"] {
  border-radius: var(--fms-radius) !important;
  font-family: var(--fms-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.button.primary:not(.is-outline), input[type="submit"].primary {
  background-color: var(--fms-btn-bg);
  color: var(--fms-btn-cl);
}
.button.primary:not(.is-outline):hover, input[type="submit"].primary:hover {
  background-color: var(--fms-btn-bg-hover);
  color: var(--fms-btn-cl);
}
/* Hero/CTA orange scheme (Shopify custom1) — add class fms-cta to any hero button */
.button.fms-cta { background-color: var(--fms-cta) !important; color: #fff !important; min-height: 52px; line-height: 52px; padding: 0 45px; }
.button.fms-cta:hover { background-color: var(--fms-cta-hover) !important; }
@media (max-width: 549px) { .button.fms-cta { min-height: 42px; line-height: 42px; padding: 0 30px; } }

/* Kill rounding globally (Shopify: zero radius everywhere) */
.box, .box-image, .banner, input[type="text"], input[type="email"], input[type="search"],
input[type="password"], select, textarea, .nav-dropdown, .lightbox-content {
  border-radius: var(--fms-radius) !important;
}

/* Front page is a built layout: no WP page title block above it */
.home.page .page-title, .home.page .entry-header, .page-id-317 .entry-header { display: none; }

/* Section rhythm: 0 padding + explicit bottom margins */
.fms-sec { padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 50px; }
.fms-sec .row { padding: 0; }
@media (max-width: 549px) { .fms-sec { margin-bottom: 30px; } }
.fms-sec.fms-newsletter { padding-top: 50px !important; padding-bottom: 50px !important; }

/* ---------- 3. TOP BAR ---------- */
#top-bar.header-top, #top-bar {
  background-color: #ffffff !important;
  color: #000000;
  min-height: 50px !important; /* #custom-css sets 30px after us */
  font-size: 14px;
  border-bottom: 0;
}
#top-bar .flex-row { min-height: 50px; }
#top-bar .nav > li > a, #top-bar .nav > li { color: #000000; }
#top-bar strong { color: var(--fms-accent); font-weight: 400; }
/* T4S: a 1170px header container; the message rotator sits in the left
   third of the top bar with its text centred.  The <li> that wraps it only
   holds absolutely positioned <p>s, so without an explicit width it shrank
   to 0px and every message wrapped one word per line. */
#top-bar .container, .header-main .header-inner.container { max-width: 1200px; }
#top-bar .flex-left { flex: 0 0 33.333%; max-width: 33.333%; }
#top-bar .nav > li.html_topbar_left { flex: 1 1 auto; width: 100%; min-width: 0; padding: 0; }
#top-bar .mobile-nav { flex: 1 1 auto; width: 100%; }
/* Rotating messages (fade, JS-driven) */
.fms-topbar-rotator { position: relative; width: 100%; text-align: center; min-height: 24px; }
.fms-topbar-rotator p {
  position: absolute; left: 0; right: 0; top: 0; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 24px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
}
.fms-topbar-rotator p.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- 4. HEADER ---------- */
.header-bg-color, .header-wrapper, .header-main { background-color: #ffffff !important; }
.header-bottom { background-color: #ffffff !important; } /* overrides #custom-css #f1f1f1 */
#masthead.header-main { border-bottom: 1px solid var(--fms-dark); } /* thin #222 rule under logo row */
.header-wrapper .top-divider { display: none; } /* replaced by the border above */
#logo img { padding: 5px 0; }

/* Nav: Lato 14px/400, Title Case, #222 -> #b59677 */
.header-nav.nav-uppercase > li > a,
.nav-uppercase > li > a {
  text-transform: none !important;
  font-family: var(--fms-font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fms-dark);
  padding-left: 17.5px; padding-right: 17.5px;
}
.header-nav > li > a:hover, .header-nav > li.current-menu-item > a { color: var(--fms-accent) !important; }
.header-nav .icon-search, .header-nav .icon-user, .header-nav .icon-heart,
.header-nav .cart-icon, .header-main i { color: var(--fms-dark); font-size: 22px; }
.header-nav > li > a:hover i { color: var(--fms-accent); }

/* Cart: icon + black count bubble only — hide "Cart / $0.00" text */
.header-cart-link .header-cart-title, .header-cart-link .cart-price { display: none !important; }
.cart-icon strong {
  background: var(--fms-count-bg); color: var(--fms-count-cl);
  border: 0; border-radius: 50%;
  width: 19px; height: 19px; line-height: 19px;
  font-size: 11px; margin-left: 5px;
}
.cart-icon strong:after, .cart-icon strong:before { display: none; } /* remove Flatsome basket outline */
/* Hide "Login" label, keep icon-style link */
.account-item .nav-top-link span { font-size: 14px; }

/* Sticky header stays solid white */
.stuck .header-main, .stuck .header-bg-color { background-color: #ffffff !important; }

/* Account + wishlist icons rendered via the header HTML element (Kalles-style
   feather icons with the black count bubble) */
.fms-h-icons { display: inline-flex; align-items: center; gap: 18px; margin: 0 8px; }
.fms-h-icons a { display: inline-flex; align-items: center; color: var(--fms-dark); line-height: 1; }
.fms-h-icons a:hover { color: var(--fms-accent); }
.fms-h-icons svg { width: 22px; height: 22px; }
.fms-h-ico { position: relative; display: inline-block; }
.fms-h-ico .fms-count {
  position: absolute; top: -7px; right: -11px;
  min-width: 17px; height: 17px; line-height: 17px; border-radius: 50%;
  background: var(--fms-count-bg); color: var(--fms-count-cl);
  font-size: 10px; text-align: center; padding: 0 3px;
}

/* ---------- 5. HERO ---------- */
.fms-hero .slider .flickity-page-dots .dot { background: #fff; border-radius: 50%; opacity: .6; }
.fms-hero .slider .flickity-page-dots .dot.is-selected { opacity: 1; }
.fms-hero .flickity-prev-next-button { display: none; } /* no arrows on Shopify hero */
.fms-hero img { width: 100%; display: block; }

/* ---------- 6. COLLECTION TILES (circles) ---------- */
/* Centred in the 1170px container, like the Shopify carousel (370px circles). */
.fms-coll-tiles { justify-content: center; }
/* Flatsome pulls rows inside a .container out by -15px (.container .row:not(.row-collapse)). */
@media (min-width: 850px) { .row.fms-coll-tiles { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; } }
.fms-coll-circle img {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.fms-coll-title { margin: 12px 0 0; text-align: center; }
.fms-coll-title a {
  font-size: 16px; font-weight: 500; color: #000000; text-decoration: none;
}
.fms-coll-title a:hover { color: #8a572a !important; }
@media (max-width: 549px) {
  .fms-coll-tiles .col { padding-left: 5px; padding-right: 5px; } /* ~10px gutters, 3-up on mobile */
}

/* ---------- 7. PRODUCT CARDS ---------- */
/* Flatsome ux_products "normal" style, text below image, left aligned */
.product-small.box { background: transparent; box-shadow: none !important; }
.product-small .box-image { border-radius: 0 !important; }
.product-small .box-text {
  text-align: left !important;
  padding: 15px 0 0; /* --product-space-img-txt: 15px */
  background: transparent;
}
.product-small .box-text .title-wrapper { margin: 0; }
.product-small .product-title, .product-small .name { margin: 0; }
.product-small .product-title a, .product-small .woocommerce-loop-product__title {
  font-family: var(--fms-font-heading) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 16.5px;
  color: var(--fms-pr-title);
}
.product-small .product-title a:hover { color: var(--fms-pr-title-hover) !important; }
.product-small p.category { display: none; } /* Shopify cards have no category line */
.product-small .price-wrapper { margin-top: 0; }
.product-small .price, .product-small .price .amount {
  font-size: 14px; font-weight: 400; color: var(--fms-price);
}
.product-small .price ins, .product-small .price ins .amount {
  color: var(--fms-price-sale); text-decoration: none;
}
.product-small .price del, .product-small .price del .amount { color: var(--fms-gray); }
.product-small .price .t4s-price-from, .price .t4s-price-from { margin-right: 3px; }

/* Sale badge: #f68e56 rectangle, white text (not on homepage grids, but global) */
.badge-container .callout.badge, .badge-inner { border-radius: 0 !important; }
.badge-inner.on-sale, .badge-inner.secondary {
  background-color: var(--fms-badge-sale) !important;
  color: #fff !important;
}

/* Image hover zoom (Shopify pr_img_effect) */
.product-small .box-image img { transition: transform .5s ease, opacity .3s ease; }
.product-small:hover .box-image:not(:has(.back-image)) img { transform: scale(1.06); }
.product-small:hover .box-image .back-image { transform: none; } /* swap cards: fade only, no zoom */

/* Hover action buttons (quick view / add to cart): white -> #b59677 */
.product-small .overlay-tools a, .product-small .image-tools a, a.quick-view {
  background: #ffffff; color: var(--fms-dark);
  border-radius: 0 !important;
  font-size: 12px;
}
.product-small .overlay-tools a:hover, a.quick-view:hover {
  background: var(--fms-accent); color: #fff;
}

/* Grid gutters on mobile ~10px */
@media (max-width: 549px) {
  .fms-sec .row.row-small > .col { padding: 0 5px 10px; }
}

/* ---------- 8. ACCORDION / FAQ ---------- */
.accordion .accordion-item { border-color: var(--fms-border); }
.accordion-title {
  color: var(--fms-acc-title) !important;
  background: #fff;
  border-color: var(--fms-border) !important;
  font-family: var(--fms-font-body);
  font-weight: 400;
  text-align: left;
}
.accordion-item.active .accordion-title, .accordion-title:hover { color: var(--fms-dark) !important; }
.accordion-inner { color: var(--fms-gray); background: #fff; text-align: left; }

/* ---------- 9. NEWSLETTER (homepage band) ---------- */
.fms-newsletter-form { max-width: 500px; margin: 0 auto 15px; }
.fms-nl-bar, .fms-newsletter-form form { display: flex; border: 1px solid #000000; overflow: hidden; background: #fff; }
.fms-newsletter-form input[type="email"] {
  flex: 1 1 auto; height: 42px; margin: 0; border: 0 !important; border-radius: 0 !important;
  background: #ffffff; color: var(--fms-gray); box-shadow: none !important;
  text-align: left; padding: 0 14px;
}
.fms-newsletter-form input::placeholder { color: var(--fms-gray); }
.fms-newsletter-form button[type="submit"], .fms-newsletter-form input[type="submit"] {
  flex: 0 0 auto; height: 42px; margin: 0; border: 0; border-radius: 0 !important;
  background: var(--fms-dark); color: #fff; padding: 0 25px;
  font-family: var(--fms-font-body); font-weight: 600; font-size: 14px;
}
.fms-newsletter-form button[type="submit"]:hover { background: var(--fms-accent); color: #fff; }
.fms-nl-msg { font-size: 13px; color: var(--fms-secondary); margin-top: 8px; }
@media (max-width: 549px) {
  .fms-newsletter-form input[type="email"] { text-align: center; }
  .fms-newsletter-form { margin-bottom: 10px; }
}

/* ---------- 10. FOOTER ---------- */
.footer-wrapper { border-top: 1px solid var(--fms-footer-border); }
.footer-widgets.footer-1, #footer .footer { background-color: #ffffff !important; }
.footer-1 { padding-top: 80px; padding-bottom: 75px; }
.fms-footer-row { padding-top: 80px; padding-bottom: 55px; }
.fms-f-heading {
  font-size: 16px; font-weight: 500; line-height: 22px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--fms-dark);
  margin-bottom: 30px; font-family: var(--fms-font-body);
}
.fms-f-heading.hide-for-small { text-transform: none; } /* "Fish Mox Supply" is not uppercase */
#footer, #footer p, #footer li { font-size: 14px; font-weight: 400; color: var(--fms-dark); }
.fms-f-links { list-style: none; margin: 0; padding: 0; }
.fms-f-links li { margin-bottom: 8px; }
.fms-f-links a, .fms-f-contact a { color: var(--fms-dark); }
.fms-f-links a:hover, .fms-f-contact a:hover { color: var(--fms-accent) !important; }
.fms-f-contact { display: flex; align-items: center; color: var(--fms-dark); margin-bottom: 12px; }
.fms-f-contact svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 24px; vertical-align: middle; }
.fms-f-contact span { margin: 0 5px; }
.fms-f-contact a { display: flex; align-items: center; }
.fms-f-intro { color: var(--fms-dark); font-size: 14px; line-height: 24px; margin-bottom: 15px; }
/* Footer newsletter variant: transparent input, #878787 border, #b59677 button */
.fms-nl-footer form { display: flex; overflow: hidden; border: 0; background: transparent; }
.fms-nl-footer input[type="email"] {
  flex: 1 1 auto; height: 42px; margin: 0; border: 1px solid var(--fms-gray) !important;
  border-right: 0 !important; border-radius: 0 !important; background: transparent;
  color: var(--fms-dark); box-shadow: none !important; padding: 0 12px;
}
.fms-nl-footer button[type="submit"], .fms-nl-footer input[type="submit"] {
  flex: 0 0 auto; height: 42px; margin: 0; border: 0; border-radius: 0 !important;
  background: var(--fms-accent); color: #ffffff; padding: 0 20px;
  font-weight: 600; font-size: 14px;
}
.fms-nl-footer button[type="submit"]:hover { background: #ffffff; color: var(--fms-dark); box-shadow: inset 0 0 0 1px var(--fms-gray); }

/* Bottom bar: white, #222 text, left copyright, no payment icons */
.absolute-footer, .absolute-footer.dark {
  background-color: #ffffff !important;
  color: var(--fms-dark);
  padding: 20px 0 5px;
}
.absolute-footer .copyright-footer { font-size: 14px; color: var(--fms-dark); }
.absolute-footer a { color: var(--fms-dark); }
.absolute-footer a:hover { color: var(--fms-accent-warm) !important; }
.absolute-footer a.fms-accent { color: var(--fms-accent); }
.absolute-footer .payment-icons { display: none !important; } /* Shopify footer has none */
@media (max-width: 549px) {
  .footer-1, .fms-footer-row { padding-top: 45px; padding-bottom: 45px; }
  .fms-f-heading { margin-bottom: 20px; }
  .absolute-footer .copyright-footer { text-align: center; }
}

/* Mobile footer: tap-to-open columns, as the T4S footer collapses <768px */
@media (max-width: 767px) {
  .fms-footer-row .col-inner > .fms-f-heading:not(.hide-for-small) {
    cursor: pointer; position: relative; margin-bottom: 12px;
    border-bottom: 1px solid var(--fms-footer-border); padding-bottom: 12px;
  }
  .fms-footer-row .col-inner > .fms-f-heading:not(.hide-for-small)::after {
    content: "+"; position: absolute; right: 2px; top: 0;
    font-size: 18px; line-height: 1; color: var(--fms-dark);
  }
  .fms-footer-row .col-inner.fms-f-open > .fms-f-heading::after { content: "\2013"; }
  .fms-footer-row .col-inner > :not(.fms-f-heading) { display: none; }
  .fms-footer-row .col-inner.fms-f-open > :not(.fms-f-heading) { display: block; }
}

/* ---------- 11. BACK TO TOP ---------- */
#top-link.back-to-top {
  border-radius: 10% !important;
  border: 2px solid var(--fms-gray) !important;
  color: var(--fms-gray) !important;
  background: #fff !important;
  opacity: 1;
}
#top-link.back-to-top:hover { border-color: #000 !important; color: #000 !important; }
@media (max-width: 849px) {
  #top-link.back-to-top { display: flex !important; bottom: 70px; } /* visible on mobile, above toolbar */
}

/* ---------- 12. MOBILE ---------- */
@media (max-width: 849px) {
  #logo img { max-width: 110px; }
  /* Toolbar */
  .fms-toolbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 399;
    display: flex; align-items: center; justify-content: space-between;
    background: #ffffff; box-shadow: 0 0 9px rgba(0,0,0,.12);
  }
  .fms-toolbar a {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
    padding: 7px 0 6px; color: var(--fms-dark); text-decoration: none; line-height: 1;
  }
  .fms-toolbar a svg, .fms-toolbar .fms-tb-ico svg { width: 20px; height: 20px; } /* T4S icon size */
  .fms-toolbar a span:last-child { font-size: 11px; font-weight: 600; margin-top: 4px; color: var(--fms-dark); }
  .fms-tb-ico { position: relative; display: inline-block; }
  .fms-count {
    position: absolute; top: -6px; right: -10px;
    min-width: 17px; height: 17px; line-height: 17px; border-radius: 50%;
    background: var(--fms-count-bg); color: var(--fms-count-cl);
    font-size: 10px; text-align: center; padding: 0 3px;
  }
  body.has-fms-toolbar { padding-bottom: 60px; }
  body.has-fms-toolbar .footer-wrapper { margin-bottom: 0; }
}
@media (min-width: 850px) { .fms-toolbar { display: none; } }
@media (max-width: 767px) {
  /* Hide account + wishlist header icons below 768px (matches t4s-d-md-inline-block) */
  .header-main .account-item, .header-main .header-divider, .header-main .wishlist-item { display: none !important; }
}

/* ---------- 13. BRAND MEDAL BADGE (merchant custom CSS, verbatim port) ---------- */
.fms-mb{--fms-mb-bg:#1f2f6b;--fms-mb-size:70px;position:absolute;z-index:4;top:12px;right:12px;
  width:var(--fms-mb-size);height:var(--fms-mb-size);border-radius:50%;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  background:radial-gradient(circle at 30% 25%,#2d4291 0%,var(--fms-mb-bg) 70%);color:#fff;line-height:1;
  font-family:inherit;box-shadow:inset 0 0 0 3px var(--fms-mb-bg),inset 0 0 0 4px rgba(255,255,255,.55),0 4px 14px rgba(20,30,70,.22);
  transition:opacity .2s ease}
.fms-mb span{display:block;font-size:calc(var(--fms-mb-size)*.115);font-weight:600;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.fms-mb b{display:block;font-size:calc(var(--fms-mb-size)*.32);font-weight:700;letter-spacing:-.02em;margin:2px 0 1px}
.fms-mb small{display:block;font-size:calc(var(--fms-mb-size)*.135);font-weight:500;letter-spacing:.02em;opacity:.9}
.fms-mb--single{--fms-mb-size:92px;top:18px;right:auto;left:18px}
/* Card medals sit in .col-inner, next to the card box (catalogue and [ux_products] grids). */
@media (hover:hover){.col-inner:hover > .fms-mb--card{opacity:0}}
@media (max-width:767px){.fms-mb{--fms-mb-size:62px;top:8px;right:8px}.fms-mb--single{--fms-mb-size:74px;top:12px;right:auto;left:12px}}

/* ============================================================
   14. CARRIED OVER — collection/blog long-copy styling
   (the ~2,900-word /collections/* descriptions and the 97
   /blogs/infos/* articles keep the treatment they launched with)
   ============================================================ */
.category-page-row .term-description a,
.term-description a,
.entry-content a {
  color: var(--fms-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.term-description a:hover,
.entry-content a:hover { color: var(--fms-link-hover); }

.term-description table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.term-description table th,
.term-description table td,
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--fms-footer-border);
  padding: 10px 12px;
  text-align: left;
}
.term-description table th,
.entry-content table th {
  background-color: #faf8f6;
  font-family: var(--fms-font-heading);
  font-weight: 600;
}

/* Long collection copy sits below the product grid (Shopify position_desc: 2) */
.category-page-row .term-description {
  order: 99;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--fms-footer-border);
}

.entry-content { font-size: 16px; line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; margin-bottom: .6em; }

/* ============================================================
   15. HEADER ICONS - the Shopify theme's thin icons (T4S header, stroke
   1.2): search 22px, account 24px, wishlist and cart 22px; each count is a
   15px black bubble with white figures (Flatsome's cart fragment keeps
   updating the <strong>); icons grow 15% on hover (T4S is--hover2).
   ============================================================ */
.header-main .header-search > a > i.icon-search,
.header-cart-link .cart-icon {
  position: relative; display: inline-block; width: 22px; height: 22px; vertical-align: middle;
  font-size: 0 !important; line-height: 0; color: var(--fms-dark); background: none;
}
.header-main .header-search > a > i.icon-search { --fms-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 19'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.03 11.68A5.784 5.784 0 112.85 3.5a5.784 5.784 0 018.18 8.18zm.26 1.12a6.78 6.78 0 11.72-.7l5.4 5.4a.5.5 0 11-.71.7l-5.41-5.4z' fill='%23000'/%3E%3C/svg%3E"); }
.header-cart-link .cart-icon { --fms-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
.header-main .header-search > a > i.icon-search::before,
.header-cart-link .cart-icon::before {
  content: "" !important; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: currentColor;
  -webkit-mask: var(--fms-ico) no-repeat center / contain; mask: var(--fms-ico) no-repeat center / contain;
  transition: transform .35s cubic-bezier(.25,.1,.25,1);
}
.header-cart-link:hover .cart-icon { color: var(--fms-accent); }
/* Flatsome's inline header CSS forces #222 (!important) on .header-main .cart-icon strong and nav icons. */
.header-main .nav > li.header-search > a:hover > i.icon-search { color: var(--fms-accent) !important; }
.header-main .header-cart-link .cart-icon strong,
.fms-h-ico .fms-count {
  position: absolute; top: -4px; right: -6px; width: 15px; min-width: 15px; height: 15px;
  margin: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: 1px 1px 3px rgba(0,0,0,.3);
  font-family: var(--fms-font-body); font-size: 10px; font-weight: 400; line-height: 15px; letter-spacing: 0; text-align: center;
  background: var(--fms-count-bg) !important; color: var(--fms-count-cl) !important;
}
.header-cart-link .cart-icon strong:before, .header-cart-link .cart-icon strong:after { display: none; }
.fms-h-icons svg { stroke-width: 1.2; transition: transform .35s cubic-bezier(.25,.1,.25,1); }
.fms-h-icons > a:first-child svg { width: 24px; height: 24px; }
@media (hover: hover) and (min-width: 1025px) {
  .header-main .header-search > a:hover > i.icon-search::before,
  .header-cart-link:hover .cart-icon::before,
  .fms-h-icons a:hover svg { transform: scale(1.15); }
}

/* ============================================================
   16. SHIPPING PROTECTION TOGGLE (Shopify snippet fms-ship-protect,
   verbatim) - cart drawer and Cart block order summary.
   ============================================================ */
.fms-sp,.fms-sp:hover,.fms-sp:focus{-webkit-appearance:none;appearance:none;width:100%;min-width:0!important;height:auto!important;font:inherit;color:inherit;text-transform:none;letter-spacing:normal;box-shadow:none;outline:none}
.fms-sp{display:flex;text-align:left;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:inherit;line-height:1.3}
.fms-sp:hover{border-color:#143583}
.fms-sp__box{flex:0 0 18px;width:18px;height:18px;border:1.5px solid #9aa3b2;border-radius:4px;display:flex;align-items:center;justify-content:center;background:#fff;transition:background .15s,border-color .15s}
.fms-sp__box svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.fms-sp[aria-pressed=true] .fms-sp__box{background:#143583;border-color:#143583}
.fms-sp[aria-pressed=true] .fms-sp__box svg{opacity:1}
.fms-sp:focus-visible .fms-sp__box{outline:2px solid #143583;outline-offset:2px}
.fms-sp__icon svg{width:22px;height:22px;display:block}
.fms-sp__text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.fms-sp__text strong{font-size:14px;font-weight:700;color:#143583}
.fms-sp__text small{font-size:12px;color:#6b7280;margin-top:2px}
.fms-sp__price{font-size:14px;font-weight:700;color:#111827;white-space:nowrap}
.fms-sp.is-busy{opacity:.75;cursor:progress}
.fms-sp--page{max-width:420px;margin:0 0 14px auto}
@media (max-width:767px){.fms-sp--page{margin:0 auto 14px}}
/* Flatsome's button defaults */
.fms-sp{min-height:0;margin-right:0;text-shadow:none;vertical-align:top;max-width:100%}
.fms-sp__price .amount,.fms-sp__price bdi{font-weight:700;color:#111827}
.wp-block-woocommerce-cart .fms-sp--page{max-width:none;margin:16px 0 0}

/* ============================================================
   17. COLLECTION PAGES - the Shopify grid sat in the 1170px container
   (4 columns of ~270px cards), not across the 1420px site width.
   ============================================================ */
.woocommerce-page .shop-page-title .page-title-inner,
.woocommerce-page .category-page-row { max-width: 1200px; }

/* ============================================================
   18. CART DRAWER UPSELL - the Shopify drawer's "You may also like"
   box (mini_cart_upsell), pointed at the 5% two-bottle discount, and
   that discount shown in the drawer footer like the Shopify subtotal.
   ============================================================ */
.fms-ups{margin:15px 0 5px;border-radius:5px;overflow:hidden;box-shadow:0 0 3px 0 rgba(0,0,0,.2);background:#fff;color:#4d5959;font-family:var(--fms-font-body)}
.fms-ups__title{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;background:rgba(221,221,221,.3);font-size:15px;font-weight:500;line-height:1.3;text-align:center;color:#4d5959}
.fms-ups.is-bundle .fms-ups__title{font-size:14px;font-weight:700;color:#143583;text-align:left}
.fms-ups__medal{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700;background:radial-gradient(circle at 30% 25%,#2d4291 0%,#1f2f6b 70%);box-shadow:inset 0 0 0 2px #1f2f6b,inset 0 0 0 3px rgba(255,255,255,.55)}
.fms-ups__item{display:flex;align-items:center;gap:10px;padding:10px}
.fms-ups__item:not(:last-child){border-bottom:4px double #e5e5e5}
.fms-ups__img{position:relative;flex:0 0 64px;width:64px;height:64px;border-radius:2px;overflow:hidden;background:#f7f8fa}
.fms-ups__img img{width:100%;height:100%;object-fit:contain;display:block}
.fms-ups__chip{position:absolute;top:2px;right:2px;width:22px;height:22px;border-radius:50%;background:#1f2f6b;color:#fff;font-size:9px;font-weight:700;line-height:22px;text-align:center}
.fms-ups__body{flex:1 1 auto;min-width:0}
.fms-ups__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.35;color:#4d5959}
.fms-ups__name:hover{color:#b59677}
.fms-ups__price{margin-top:2px;font-size:14px;line-height:1.4;color:#696969}
.fms-ups__price del{color:#868686;font-size:13px}
.fms-ups__price ins{color:#ec0101;text-decoration:none;margin-left:2px}
.fms-ups__off{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:3px;background:#143583;color:#fff;font-size:10px;font-weight:700;line-height:1.4;vertical-align:1px}
.fms-ups .fms-ups__sel{display:block;width:100%;height:28px;min-height:0;margin:5px 0 0;padding:0 22px 0 8px;border:1px solid #d8dbe2;border-radius:5px;background-color:#fff;font-size:12px;line-height:1.5;color:#1f2937;box-shadow:none}
.fms-ups .fms-ups__add{flex:0 0 auto;min-height:0;height:32px;margin:0;padding:0 14px;border:0;border-radius:5px;background:#143583;color:#fff;font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;line-height:32px}
.fms-ups .fms-ups__add:hover{background:#0f2a6b;color:#fff}
.fms-ups .fms-ups__add[disabled]{opacity:.6;cursor:progress}
.fms-drawer-disc{display:flex;justify-content:space-between;gap:10px;margin:0 0 8px;font-size:13px;line-height:1.35;font-weight:600;color:#047857}
.fms-drawer-disc span:last-child{white-space:nowrap}
.fms-drawer-disc .amount{color:inherit}
.fms-drawer-sub del{margin-right:4px;font-weight:400;color:#868686}

/* ============================================================
   19. FREE SHIPPING BAR ($60, inc/free-ship.php) - drawer and Cart block,
   the Shopify cart's wording; the accent fill turns green when reached.
   ============================================================ */
.fms-ship-bar{margin:0 0 14px;font-family:var(--fms-font-body)}
.fms-ship-bar__text{margin:0 0 7px;font-size:13px;line-height:1.4;color:#4d5959;text-align:center}
.fms-ship-bar__text strong{color:#1f2937}
.fms-ship-bar__track{position:relative;height:8px;border-radius:99px;background:#ececec;overflow:hidden}
.fms-ship-bar__track span{display:block;height:100%;border-radius:99px;background:#b59677;transition:width .4s ease}
.fms-ship-bar.is-done .fms-ship-bar__text strong{color:#047857}
.fms-ship-bar.is-done .fms-ship-bar__track span{background:#047857}
.wp-block-woocommerce-cart .fms-ship-bar{margin:16px 0 0}
.fms-ups__ship{margin-top:2px;font-size:11.5px;font-weight:600;color:#047857}

/* ============================================================
   20. CONVERSION DETAILS - card buttons (Add to cart / Choose options),
   a pill-shaped 5% badge on phone-sized cards, the promise strip above
   product grids, the home promo button.
   ============================================================ */
.product-small .add-to-cart-button{margin-top:10px}
.product-small .add-to-cart-button .button{display:block;width:100%;margin:0;font-size:12px;letter-spacing:.03em}
.product-small .add-to-cart-button .added_to_cart{display:none!important}
@media (max-width:549px){
  .fms-mb--card{width:auto;height:auto;top:6px;right:6px;padding:3px 7px;border-radius:20px;flex-direction:row;align-items:baseline;gap:3px;box-shadow:0 2px 6px rgba(20,30,70,.25)}
  .fms-mb--card span,.fms-mb--card small{font-size:8px;letter-spacing:.04em}
  .fms-mb--card b{margin:0;font-size:11px}
}
.fms-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 26px;padding:12px 0;border-top:1px solid #ececec;border-bottom:1px solid #ececec;list-style:none}
.fms-values li{display:flex;align-items:center;justify-content:center;gap:9px;margin:0;font-family:var(--fms-font-body);font-size:13px;font-weight:600;line-height:1.3;color:#4d5959}
.fms-values svg{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:#143583;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fms-values__medal{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;background:radial-gradient(circle at 30% 25%,#2d4291 0%,#1f2f6b 70%)}
@media (max-width:849px){.fms-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.fms-values li{justify-content:flex-start;font-size:12px}}
.fms-promo-cta{margin:18px 0 0;text-align:center}
.fms-promo-cta .button{margin:0}
