/* ==========================================================================
   yourmedilife — old WordPress home structure in the new design (2026-11-25)
   Loaded after style.min.css + responsive.css (includes/header.php).
   Remove this file + its <link> to undo.
   ========================================================================== */

/* ── Top bar promo ("10% OFF ON REGULAR ORDERS") ── */
.bw-topbar__promo { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-right: 14px; }
.bw-topbar__hours { cursor: default; }

/* ── Hero slider with text + buttons over the image ── */
.bw-hero--overlay .bw-carousel,
.bw-hero--overlay .bw-carousel-track { height: 460px; border-radius: 12px; }
.bw-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55));
  padding: 24px;
}
.bw-hero-text { max-width: 720px; color: #fff; }
.bw-hero-kicker { font-style: italic; font-size: 1.35rem; margin: 0 0 6px; opacity: .95; }
.bw-hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0; letter-spacing: .02em; }
.bw-hero-sub { font-size: clamp(1.2rem, 2.6vw, 1.9rem); text-transform: uppercase; font-weight: 600; margin: 8px 0 0; }
.bw-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.bw-hero-btn {
  display: inline-block; padding: 10px 20px; border: 2px solid #fff; border-radius: 999px;
  color: #fff; font-weight: 600; text-decoration: none; transition: background .2s, color .2s;
}
.bw-hero-btn:hover { background: #fff; color: #111; }
.bw-hero-btn--solid { background: var(--p, #16a34a); border-color: var(--p, #16a34a); }
.bw-hero-btn--solid:hover { background: var(--p-dk, #15803d); border-color: var(--p-dk, #15803d); color: #fff; }
.bw-hero-link { position: absolute; inset: 0; z-index: 1; }

/* ── Horizontal product row (old "Generic Viagra & Sildenafil" slider) ── */
.bw-hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.bw-hscroll > * { scroll-snap-align: start; min-width: 0; }

/* ── Product grids: 5 / 6 per row like the old site ── */
.bw-product-grid.bw-grid-5 { grid-template-columns: repeat(5, 1fr); }
.bw-product-grid.bw-grid-6 { grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* ── 3 feature boxes, 4 news posts ── */
.bw-trust-section .bw-trust-grid.bw-trust-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bw-blog-grid.bw-blog-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Home SEO article ── */
.bw-home-seo h2 { font-size: 1.35rem; margin: 22px 0 8px; }
.bw-home-seo h2:first-child { margin-top: 0; font-size: 1.6rem; }
.bw-home-seo ul, .bw-home-seo ol { padding-left: 22px; margin: 8px 0; }
.bw-home-seo li p { margin: 2px 0; }
.bw-home-seo hr { border: 0; border-top: 1px solid #e5e7eb; margin: 18px 0; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .bw-product-grid.bw-grid-6 { grid-template-columns: repeat(4, 1fr); }
  .bw-product-grid.bw-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .bw-hscroll { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
  .bw-blog-grid.bw-blog-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bw-hero--overlay .bw-carousel, .bw-hero--overlay .bw-carousel-track { height: 340px; }
  .bw-hero-kicker { font-size: 1.05rem; }
  .bw-hero-btn { padding: 8px 14px; font-size: .9rem; }
  .bw-product-grid.bw-grid-6, .bw-product-grid.bw-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .bw-hscroll { grid-auto-columns: 46%; gap: 12px; }
  .bw-trust-section .bw-trust-grid.bw-trust-grid-3 { grid-template-columns: 1fr; }
  .bw-blog-grid.bw-blog-grid-4 { grid-template-columns: 1fr; }
  .bw-topbar__promo { display: block; margin: 0 0 2px; }
}

/* ── Menu bar: 11 items (Home, All Categories, 6 old menu categories, Articles, Tools, Offers) must fit ── */
@media (min-width: 1025px) {
  .bw-catnav__link { padding-left: 11px; padding-right: 11px; font-size: .86rem; white-space: nowrap; }
}

/* ── "Browse our categories": grid of 20 like the old site (desktop), scroll row on phones ── */
@media (min-width: 769px) {
  .bw-category-scroll { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 18px; }
  .bw-category-scroll .bw-category-circle { width: calc((100% - 9 * 12px) / 10); }
}

/* ── Phones: top bar = promo text + WhatsApp icon only (phone/email/track/prescription are in the menu drawer) ── */
@media (max-width: 768px) {
  .bw-topbar__inner { flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 8px; }
  .bw-topbar__left > a, .bw-topbar__hours, .bw-topbar__right > a:not([href*="wa.me"]) { display: none !important; }
  .bw-topbar__promo { display: inline; margin: 0; font-size: .78rem; }
  .bw-topbar__right a[href*="wa.me"] { font-size: .8rem; }
  .bw-hero-btns { max-width: 100%; }
}

/* ── Split hero slides (image file named split-*.webp: cut-out photo on brand colour, text left) ── */
.bw-slide--split { overflow: hidden; }
.bw-slide--tone1 { background: linear-gradient(105deg, #12452a 0%, #15803d 62%, #1c9a4b 100%); }
.bw-slide--tone0 { background: linear-gradient(105deg, #0e2433 0%, #12404f 60%, #17596b 100%); }
.bw-split { position: relative; height: 100%; display: flex; align-items: center; padding: 0 6% 0 88px; }
.bw-split::after { /* soft light disc behind the photo */
  content: ""; position: absolute; right: 9%; bottom: -18%; width: 470px; height: 470px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 68%); pointer-events: none;
}
.bw-split__text { position: relative; z-index: 2; max-width: 520px; color: #fff; }
.bw-split__kicker { margin: 0 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bbf7d0; }
.bw-slide--tone0 .bw-split__kicker { color: #a5e3ef; }
.bw-split__title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.bw-split__sub { margin: 14px 0 0; font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,.86); }
.bw-split__btn {
  display: inline-block; margin-top: 26px; padding: 12px 30px; border-radius: 999px; background: #fff; color: #14532d;
  font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s;
}
.bw-slide--tone0 .bw-split__btn { color: #0e2433; }
.bw-split__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.bw-split__img { position: absolute; right: 7%; bottom: 0; z-index: 1; height: 96%; width: auto; max-width: 48%; object-fit: contain; object-position: bottom right; }

@media (max-width: 768px) {
  .bw-split { padding: 0 20px 0 24px; align-items: flex-start; padding-top: 34px; }
  .bw-split__text { max-width: 62%; }
  .bw-split__kicker { font-size: .7rem; }
  .bw-split__title { font-size: 1.7rem; }
  .bw-split__sub { font-size: .88rem; margin-top: 8px; }
  .bw-split__btn { margin-top: 16px; padding: 9px 20px; font-size: .9rem; }
  .bw-split__img { right: -4%; height: 78%; max-width: 58%; }
  .bw-split::after { width: 260px; height: 260px; right: -6%; }
}
@media (max-width: 768px) {
  .bw-hero--overlay .bw-carousel-prev, .bw-hero--overlay .bw-carousel-next { display: none; } /* swipe on phones */
  .bw-split__img { right: 0; max-width: 50%; height: 72%; }
}
