/*
 * Storefront layouts (feature store_themes) — loaded after store.css. <body class="theme-classic|theme-compact|theme-bold">.
 * Only overrides; store.css stays the base. Home sections: [data-section] (hero, rx, trust, categories, popular, catalog).
 */

/* a section switched off by the pharmacy (kept in the DOM when the scripts need its ids) */
.sec-off { display: none !important; }

/* staff-only preview notice */
.theme-preview-bar { position: relative; z-index: 41; background: #1e293b; color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; line-height: 1.7; }
.theme-preview-bar a { color: #93c5fd; text-decoration: underline; margin-inline-start: 6px; white-space: nowrap; }

/* ---------- New sections (all layouts) ---------- */
.home-cats { margin-block: 18px; }
.home-cats-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding-inline: 4px; }
.home-cats-head h2 { font-size: 16px; font-weight: 900; }
.home-cats-all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 12px; background: var(--s100); font-size: 12.5px; font-weight: 800; color: var(--brand-navy); }
.home-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .home-cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .home-cats-head h2 { font-size: 18px; } }
@media (min-width: 1024px) { .home-cats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.home-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px 6px; border-radius: 18px; background: #fff; border: 1px solid var(--s200); box-shadow: var(--shadow-xs); text-align: center; transition: border-color .15s, box-shadow .15s, transform .1s; min-width: 0; }
.home-cat:hover { border-color: var(--brand-cyan); box-shadow: var(--shadow-md); }
.home-cat:active { transform: scale(.97); }
.home-cat-ic { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--cyan-50); color: var(--brand-cyan); font-size: 22px; flex-shrink: 0; }
.home-cat-txt { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.home-cat-txt b { font-size: 12.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-cat-txt small { font-size: 11px; color: var(--s500); }
.home-cat-go { display: none; }

.trust-strip { margin-block: 16px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--s200); min-width: 0; }
.trust-list li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.trust-list b { font-size: 12.5px; font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.trust-list small { font-size: 11px; color: var(--s500); line-height: 1.5; }
.trust-ic { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cyan-50); color: var(--brand-cyan); font-size: 18px; }

/* ================= COMPACT: denser grid, smaller hero, list-style categories ================= */
.theme-compact .main { padding-top: 8px; }
.theme-compact .carousel { margin-block: 8px; border-radius: 16px; }
.theme-compact .slide { min-height: 132px; }
.theme-compact .slide-body { padding: 14px 16px; gap: 6px; }
.theme-compact .slide h2 { font-size: 16px; }
.theme-compact .slide p { -webkit-line-clamp: 1; }
.theme-compact .slide-cta { padding: 7px 14px; font-size: 12px; }
.theme-compact .slide-image picture { aspect-ratio: 2 / 1; }
@media (min-width: 640px) { .theme-compact .slide { min-height: 150px; } .theme-compact .slide h2 { font-size: 20px; } }
@media (min-width: 768px) { .theme-compact .slide-image picture { aspect-ratio: 16 / 4; } }

.theme-compact .quick { margin-block: 10px; }
.theme-compact .quick-head { margin-bottom: 6px; }
.theme-compact .quick-head p, .theme-compact .qcard p { display: none; }
.theme-compact .qcard { padding: 12px; border-radius: 14px; }
.theme-compact .qcard-actions { margin-top: 8px; padding-top: 8px; }

.theme-compact .home-cats { margin-block: 10px; }
.theme-compact .home-cats-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--s200); border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .theme-compact .home-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-compact .home-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-compact .home-cat { flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 8px 12px; gap: 10px; border: 0; border-bottom: 1px solid var(--s100); border-radius: 0; box-shadow: none; text-align: start; }
.theme-compact .home-cat:hover { background: var(--cyan-50); box-shadow: none; }
.theme-compact .home-cat-ic { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
.theme-compact .home-cat-txt { flex: 1; flex-direction: row; align-items: baseline; gap: 8px; }
.theme-compact .home-cat-txt b { -webkit-line-clamp: 1; font-size: 13px; }
.theme-compact .home-cat-go { display: flex; color: var(--s400); }

.theme-compact .trust-strip { margin-block: 10px; }
.theme-compact .trust-list li { padding: 8px 10px; border-radius: 12px; }
.theme-compact .trust-ic { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }

.theme-compact .search-wrap { margin-block: 10px 10px; }
.theme-compact .filter-panel { padding: 8px 10px; margin-bottom: 10px; border-radius: 12px; }
.theme-compact .cat-section { margin-bottom: 22px; }
.theme-compact .cat-head { margin-bottom: 8px; padding-bottom: 6px; }
.theme-compact .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .theme-compact .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .theme-compact .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 768px) { .theme-compact .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-compact .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.theme-compact .card { padding: 8px; border-radius: 14px; }
.theme-compact .card-img { margin-bottom: 6px; border-radius: 10px; }
.theme-compact .card h3 { font-size: 12px; }
.theme-compact .card-sub { font-size: 10.5px; padding: 1px 6px; margin-bottom: 2px; }
.theme-compact .card-foot { margin-top: 4px; padding-top: 6px; flex-wrap: wrap; gap: 4px; }
.theme-compact .price-now b { font-size: 13px; }
@media (min-width: 640px) { .theme-compact .add-btn span { display: none; } .theme-compact .add-btn { padding: 8px; } }

/* ================= BOLD: large hero, big rounded cards, strong brand colour bands ================= */
.theme-bold .carousel { border-radius: 28px; margin-block: 18px; border: 0; box-shadow: 0 18px 40px color-mix(in srgb, var(--brand-navy) 28%, transparent); }
.theme-bold .slide { min-height: 260px; }
.theme-bold .slide-body { padding: 28px 22px; gap: 14px; }
.theme-bold .slide h2 { font-size: 26px; }
.theme-bold .slide p { font-size: 14px; -webkit-line-clamp: 3; }
.theme-bold .slide-cta { padding: 13px 24px; font-size: 14px; border-radius: 999px; }
@media (min-width: 640px) { .theme-bold .slide { min-height: 320px; } .theme-bold .slide h2 { font-size: 34px; } .theme-bold .slide-body { padding: 40px; } }
@media (min-width: 768px) { .theme-bold .slide { min-height: 380px; } .theme-bold .slide h2 { font-size: 42px; } .theme-bold .slide p { font-size: 16px; } .theme-bold .slide-image picture { aspect-ratio: 16 / 6; } }

/* colour band behind the quick-order card and the trust strip (full-bleed without horizontal scroll) */
.theme-bold .quick, .theme-bold .trust-strip {
  background: var(--brand-navy); color: #fff; padding-block: 20px;
  box-shadow: 0 0 0 100vmax var(--brand-navy); clip-path: inset(0 -100vmax);
}
.theme-bold .quick-head h2 { color: #fff; font-size: 20px; }
.theme-bold .quick-head p { color: color-mix(in srgb, #fff 80%, var(--brand-navy)); }
.theme-bold .qcard-rx { border-radius: 28px; border: 0; background: #fff; color: var(--brand-navy); }
.theme-bold .trust-list li { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); color: #fff; }
.theme-bold .trust-list small { color: color-mix(in srgb, #fff 78%, var(--brand-navy)); }
.theme-bold .trust-ic { background: #fff; color: var(--brand-navy); }

.theme-bold .home-cats-head h2 { font-size: 20px; }
.theme-bold .home-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .theme-bold .home-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-bold .home-cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-bold .home-cat { min-height: 120px; border-radius: 26px; border: 0; color: #fff; background: linear-gradient(140deg, var(--brand-navy), color-mix(in srgb, var(--brand-navy) 55%, var(--brand-cyan))); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-navy) 22%, transparent); }
.theme-bold .home-cat:nth-child(even) { background: linear-gradient(140deg, var(--cyan-dark), color-mix(in srgb, var(--brand-cyan) 70%, var(--brand-navy))); }
.theme-bold .home-cat-ic { width: 50px; height: 50px; border-radius: 18px; background: rgb(255 255 255 / .18); color: #fff; font-size: 26px; }
.theme-bold .home-cat-txt b { font-size: 14px; }
.theme-bold .home-cat-txt small { color: rgb(255 255 255 / .85); }

.theme-bold .search-wrap input { border-radius: 999px; border-width: 2px; padding-block: 14px; }
.theme-bold .filter-panel { border-radius: 22px; }
.theme-bold .cat-section { margin-bottom: 48px; }
.theme-bold .cat-head { background: var(--brand-navy); color: #fff; border: 0; border-radius: 20px; padding: 12px 14px; margin-bottom: 16px; }
.theme-bold .cat-head h2 { color: #fff; }
.theme-bold .cat-head small, .theme-bold .cat-count { color: color-mix(in srgb, #fff 80%, var(--brand-navy)); }
.theme-bold .cat-head-ic { background: rgb(255 255 255 / .16); color: #fff; }
.theme-bold .grid { gap: 14px; }
@media (min-width: 768px) { .theme-bold .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .theme-bold .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-bold .card { border-radius: 30px; padding: 12px; border: 2px solid var(--s100); }
.theme-bold .card:hover { border-color: var(--brand-cyan); }
.theme-bold .card-img { border-radius: 22px; border: 0; }
@media (min-width: 640px) { .theme-bold .card { padding: 16px; } .theme-bold .card h3 { font-size: 15px; } }
.theme-bold .add-btn { border-radius: 999px; }
.theme-bold .cat-pill { border-radius: 999px; }
