/* =====================================================================
   Home page – "Explore Popular Modafinil Products "
   Everything is scoped to .fp-section so the shop page (which also uses
   .prod-box / .btn-qty1) is not affected.
   Brand: green #0B4D44 · deep #06231F · amber #F0883E · cream #FFF3E3
   ===================================================================== */
.fp-section {
  --fp-green: #0B4D44;
  --fp-green-2: #146B5F;
  --fp-deep: #06231F;
  --fp-amber: #F0883E;
  --fp-amber-2: #D9692A;
  --fp-cream: #FFF3E3;
  --fp-soft: #F7F4EA;
  --fp-line: #EADFD0;
  --fp-ink: #082E29;
  --fp-muted: #5F716D;
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #fff 0%, var(--fp-soft) 100%);
  font-family: "Lexend", system-ui, sans-serif;
}

/* ---------- header ---------- */
.fp-section .fp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.fp-section .fp-head h2 { margin: 8px 0 6px; }
.fp-section .fp-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
  background: var(--fp-cream); color: var(--fp-green); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.fp-section .fp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fp-amber); }
.fp-section .fp-sub { margin: 0; color: var(--fp-muted); font-size: 15px; }
.fp-section .fp-all {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px;
  border: 1.5px solid var(--fp-green); color: var(--fp-green); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.fp-section .fp-all:hover { background: var(--fp-green); color: var(--fp-cream); transform: translateY(-1px); }
.fp-section .fp-all span { transition: transform .2s; }
.fp-section .fp-all:hover span { transform: translateX(3px); }

/* ---------- carousel: equal-height cards, room for shadows ---------- */
.fp-section .owl-stage-outer { padding: 8px 0 14px; }
.fp-section .owl-stage { display: flex; }
.fp-section .owl-item { display: flex; }
.fp-section .owl-item .item { display: flex; width: 100%; }

/* ---------- card ---------- */
.fp-section .fp-card {
  display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0;
  background: #fff; border: 1px solid var(--fp-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,77,68,.05), 0 10px 26px rgba(11,77,68,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.fp-section .fp-card:hover { transform: translateY(-4px); border-color: rgba(240,136,62,.7); box-shadow: 0 2px 4px rgba(11,77,68,.06), 0 18px 38px rgba(11,77,68,.14); }
.fp-section .fp-card form { display: flex; flex-direction: column; height: 100%; }

/* image */
.fp-section .fp-img {
  position: relative; margin: 10px 10px 0; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 15%, #fff 0%, var(--fp-soft) 60%, #efe8d2 100%);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.fp-section .fp-img a { display: block; width: 100%; height: 100%; }
.fp-section .fp-card .fp-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.fp-section .fp-card:hover .fp-img img { transform: scale(1.05); }
.fp-section .fp-save, .fp-section .fp-stock {
  position: absolute; z-index: 2; top: 10px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.fp-section .fp-save { left: 10px; background: var(--fp-amber); color: var(--fp-ink); }
.fp-section .fp-stock { right: 10px; background: #fff; }
.fp-section .fp-stock.low { color: #8a5a00; }
.fp-section .fp-stock.out { color: #b42318; }
.fp-section [hidden] { display: none !important; }

/* body */
.fp-section .fp-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; text-align: left; }
.fp-section .fp-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.fp-section .fp-card h3 a { color: var(--fp-ink); text-decoration: none; }
.fp-section .fp-card h3 a:hover { color: var(--fp-green); }
.fp-section .fp-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-muted); margin-bottom: 8px; }

/* ---------- variation chips ---------- */
/* even grid: 3 packs sit side by side in one row, more wrap neatly */
.fp-section .fp-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-bottom: 14px; }
.fp-section .btn-qty1.fp-pack {
  position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; padding: 7px 6px; border-radius: 12px; white-space: nowrap;
  background: #fff !important; color: var(--fp-green);
  border: 1.5px solid var(--fp-line); box-shadow: none;
  font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.fp-section .btn-qty1.fp-pack:hover { border-color: var(--fp-green); background: #f3f8f1 !important; color: var(--fp-green); box-shadow: none; transform: translateY(-1px); }
.fp-section .btn-qty1.fp-pack:focus-visible { outline: 3px solid rgba(240,136,62,.6); outline-offset: 2px; }
.fp-section .btn-qty1.fp-pack.active {
  background: var(--fp-green) !important; color: var(--fp-cream); border-color: var(--fp-green);
  box-shadow: 0 6px 14px rgba(11,77,68,.25);
}
/* tick badge on the corner of the selected chip */
.fp-section .btn-qty1.fp-pack.active::before {
  content: ""; position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18);
  background: var(--fp-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D2B1A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- price ---------- */
.fp-section .fp-price { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: var(--fp-soft); text-align: left; }
.fp-section .fp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.fp-section .fp-price .price-value { font-size: 22px; font-weight: 800; color: var(--fp-green); letter-spacing: -.01em; }
.fp-section .fp-was { color: #9aa59a; font-size: 14px; font-weight: 500; }
.fp-section .fp-per { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--fp-muted); }

/* ---------- buttons ---------- */
.fp-section .fp-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.fp-section .btn-order-now.fp-order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 46px; padding: 11px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--fp-amber) 0%, var(--fp-amber-2) 100%); color: var(--fp-ink);
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 18px rgba(217,105,42,.32);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.fp-section .btn-order-now.fp-order:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(217,105,42,.4); filter: saturate(1.08); color: var(--fp-ink); background: linear-gradient(135deg, var(--fp-amber) 0%, var(--fp-amber-2) 100%); }
.fp-section .btn-order-now.fp-order:active { transform: translateY(0); }
.fp-section .btn-order-now.fp-order:focus-visible { outline: 3px solid var(--fp-green); outline-offset: 2px; }
.fp-section .btn-order-now.fp-order:disabled { background: #e6e1d2; color: #8a8f86; box-shadow: none; transform: none; cursor: not-allowed; }
.fp-section .btn-details.fp-details {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 42px; padding: 9px 16px; border-radius: 12px;
  background: transparent; color: var(--fp-green); border: 1.5px solid var(--fp-green);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s;
}
.fp-section .btn-details.fp-details:hover { background: var(--fp-green); color: var(--fp-cream); }
.fp-section .btn-details.fp-details:focus-visible { outline: 3px solid rgba(240,136,62,.6); outline-offset: 2px; }

/* ---------- dots ---------- */
.fp-section .owl-theme .owl-dots { margin-top: 18px; }
.fp-section .owl-theme .owl-dots .owl-dot span { width: 9px; height: 9px; background: #d8d2bf; transition: width .2s, background .2s; }
.fp-section .owl-theme .owl-dots .owl-dot.active span,
.fp-section .owl-theme .owl-dots .owl-dot:hover span { width: 26px; border-radius: 99px; background: var(--fp-green); }

/* ---------- phones ---------- */
@media (max-width: 575.98px) {
  .fp-section { padding: 40px 0 28px; }
  .fp-section .fp-head { align-items: flex-start; margin-bottom: 18px; }
  .fp-section .fp-all { padding: 8px 14px; font-size: 13px; }
  .fp-section .fp-body { padding: 12px 12px 14px; }
  .fp-section .fp-card h3 { font-size: 16px; }
  .fp-section .btn-qty1.fp-pack { min-height: 42px; font-size: 13px; }   /* comfy tap target */
  .fp-section .fp-price .price-value { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-section .fp-card, .fp-section .fp-card .fp-img img, .fp-section .btn-qty1.fp-pack,
  .fp-section .btn-order-now.fp-order, .fp-section .fp-all { transition: none; }
  .fp-section .fp-card:hover, .fp-section .fp-card:hover .fp-img img { transform: none; }
}
