/* Our own overrides — loaded after the Webflow CSS.
   Keep edits here instead of touching the generated Webflow stylesheets. */

/* The vote box is a ranking display (Phase 1), not an interactive button yet. */
.voted-container.ranking-count {
  cursor: default;
}

/* Netlify Forms spam honeypot — hidden from humans. */
.hidden-field {
  display: none;
}

/* Homepage layout: the Webflow desktop ("non-mobile") two-column block only has
   room above ~1280px — below that the product column and welcome/guides overlap.
   Instead of stacking the guides, reflow to a single column: the welcome block +
   the row of three Featured Guides stay on top, and the product list is pushed
   below (full width). Webflow's own ≤767px rules take over for phones. */
@media screen and (max-width: 1199px) {
  /* Use the robust stacked ("mobile") block (the desktop grid uses fixed heights
     that overlap/gap below ~1280px). */
  .section-3.non-mobile {
    display: none !important;
  }
  .section-3.mobile {
    display: block !important;
  }
  /* Webflow hides the mobile product list above 767px — show it in this range. */
  .section-3.mobile .newest-product-block.mobile {
    display: block !important;
  }
}
/* ...but keep the three Featured Guides in a ROW (not stacked). Flex-wrap lets
   them drop to fewer-per-row on true phones. */
@media screen and (min-width: 620px) {
  .section-3.mobile .div-block-50 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
  }
  .section-3.mobile .div-block-50 > .div-block-51 {
    flex: 1 1 100%;
  }
  .section-3.mobile .div-block-50 > .div-block-49.post-tile {
    flex: 1 1 0;
    min-width: 200px;
    margin: 0;
  }
}

/* Homepage welcome text — a single clean line of spacing between paragraphs
   (replaces the old empty spacer paragraphs). */
.rich-text-block-6 .paragraph-20 {
  margin: 0 0 1em;
}
.rich-text-block-6 .paragraph-20:last-child {
  margin-bottom: 0;
}

/* Homepage "Remedies & Accessories" section link — bigger + bolder than the
   "Recently Added" / "Most Popular" sub-headings (which are 18px/700). */
.section-3.mobile .text-block-121,
.section-3.non-mobile .text-block-119 {
  font-size: 26px;
  font-weight: 800;
}

/* --- FAQ accordion (progressive enhancement) --------------------------
   Without JS the answers render open (SEO/accessibility-friendly).
   The FAQ script adds `.accordion-ready`, which collapses them and makes
   the question clickable. */
.c-accordion-item.accordion-ready .c-accordion-item-q {
  cursor: pointer;
}
.c-accordion-item.accordion-ready .c-accordion-item-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.c-accordion-item.accordion-ready.is-open .c-accordion-item-a {
  max-height: 2000px;
}
.c-accordion-item.accordion-ready .c-accordion-item-q-icon {
  transition: transform 0.3s ease;
}
.c-accordion-item.accordion-ready.is-open .c-accordion-item-q-icon {
  transform: rotate(45deg);
}

/* --- Mobile navigation -------------------------------------------------
   Webflow set the menu to height:0 on small phones and used webflow.js to
   expand it. We dropped that JS, so this is a clean hamburger + slide-down
   reimplementation. Hidden entirely on desktop. */
.nav-toggle {
  display: none;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #1a1a1a;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

@media screen and (max-width: 1199px) {
  .navigation-wrap {
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 60;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
  }
  /* Collapsed menu: a full-width slide-down anchored under the header. */
  .navigation-menu-wrapper.no-print {
    position: absolute !important;
    inset: 100% 0 auto 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background-color: #d0e4f3;
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: center !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: max-height 0.28s ease;
    z-index: 55;
  }
  .navigation-menu-wrapper.no-print.is-open {
    max-height: 80vh;
    padding: 8px 0 14px !important;
  }
  .navigation-menu-wrapper.no-print .nav-item {
    width: 100%;
    margin: 10px 0 !important;
    text-align: center;
  }
  /* Hamburger → X when open */
  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- Product detail page (uses the Webflow template classes) ----------- */
.product-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #2f6fb0;
  text-decoration: none;
  font-weight: 600;
}
.product-back:hover {
  text-decoration: underline;
}
/* Match the live site's product title size (Webflow only applied 24px via the
   .w--current state, which the static page doesn't get). */
.product-detail .product-title.prodcut-page-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
/* Affiliate / price-disclaimer note — smaller. */
.buy-on-amazon .italic-text-2 {
  font-size: 11px;
  color: #6a7480;
}
.product-related-block {
  margin-top: 40px;
}
.product-related-block .text-block-103 {
  margin-bottom: 14px;
}

/* --- Remedies & Accessories directory ---------------------------------- */
.rmd-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.rmd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0 24px;
}
.rmd-search {
  /* ~25% shorter than before (was ~337px) and no longer grows to fill the row,
     leaving room for Reset on the same line. */
  flex: 0 1 250px;
  min-width: 0;
  margin: 0 !important;
  height: 44px;
}
.rmd-sortby {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.rmd-sortby .rmd-select {
  height: 44px;
}
.rmd-select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
}
.rmd-reset {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #d0e4f3;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
}
.rmd-reset:hover {
  background: #bcd8ee;
}
/* Multi-select treatment-area filter */
.rmd-filter {
  position: relative;
}
.rmd-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
}
.rmd-filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
}
.rmd-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  cursor: pointer;
}
.rmd-filter-option:hover {
  background: #eef5fb;
}
.rmd-filter-option input {
  width: 17px;
  height: 17px;
  flex: none;
}
.rmd-filter-clearcats {
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-top: 6px;
  padding: 10px 8px;
  border: 0;
  border-top: 1px solid #eee;
  background: #fff;
  color: #2f6fb0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Suggest-a-product form */
.rmd-submit {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #e8e8e8;
  font-family: "Open Sans", sans-serif;
}
.rmd-submit-title {
  font-family: Merriweather, serif;
  font-size: 24px;
  margin: 0 0 6px;
}
.rmd-submit-intro {
  color: #4a4a4a;
  margin: 0 0 18px;
}
.rmd-submit-form {
  max-width: 560px;
}
.rmd-field {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.rmd-field input,
.rmd-field textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
}
.rmd-field textarea {
  min-height: 110px;
  resize: vertical;
}
.rmd-submit-button {
  background: #5db1ff;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
}
.rmd-submit-button:hover {
  background: #4aa0f0;
}

/* Two-column page: product list on the left, suggestion form on the right. */
.rmd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.rmd-main {
  min-width: 0;
}
.rmd-side .rmd-submit {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  position: sticky;
  top: 20px;
}
@media screen and (max-width: 900px) {
  .rmd-layout {
    grid-template-columns: 1fr;
  }
  .rmd-side .rmd-submit {
    position: static;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e8e8e8;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
/* Single column of products (two-column page layout) */
.products-grid.rmd-single {
  grid-template-columns: 1fr;
}
/* High-level product description on the Remedies cards */
.product-card-desc {
  margin-top: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #5a6470;
}
.products-grid .product-container,
.products-grid .product-container.home {
  width: 100%;
  margin: 0;
}
.products-grid .product-card[hidden] {
  display: none;
}
.rmd-empty {
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  padding: 40px 0;
}
.rmd-empty button,
.rmd-clear {
  background: none;
  border: 0;
  color: #2f6fb0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.rmd-count {
  margin-top: 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #6a7480;
}

@media screen and (max-width: 600px) {
  .rmd-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}
