/* ===== Foundation to Wellness — Store & Product Catalogue ===== */
/* Loaded after /holistic-therapy/styles.css — the wrapper (header, hero, cards, viewer, footer)
   comes from there, so the Store matches the Therapy hub and the Library of Light Codes.
   This file only holds the shop pieces: basket, products, store sections and the form pop-up. */

/* ---- Small button variants ---- */
.ht-btn.sh-small { padding: 9px 16px; font-size: 0.72rem; }
.ht-btn.sh-ghost { border-color: rgba(166,135,47,0.5); color: var(--text-muted); box-shadow: none; }
.ht-btn.sh-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.ht-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.ht-subtitle a { color: var(--gold-light); text-decoration: none; }
.ht-subtitle a:hover { color: var(--orange); }
.sh-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ---- Basket button (header CTA) and count ---- */
.sh-basket-btn { cursor: pointer; font-family: var(--font-body, 'Raleway', sans-serif); display: inline-flex; align-items: center; gap: 8px; }
.sh-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold-hover); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; padding: 0 6px; }
.sh-count.bump { animation: sh-bump 0.4s ease; }
@keyframes sh-bump { 50% { transform: scale(1.35); } }

/* ---- Store page sections ---- */
.st-welcome { text-align: center; }
.ht-content.c { text-align: center; }
.st-hero-title { font-size: clamp(1.4rem, 3.6vw, 2.3rem); color: var(--text-light); letter-spacing: 1px; line-height: 1.3; }
.st-hero-title .ht-grid-title { display: block; font-size: inherit; }
.st-sub { color: var(--gold-light); font-weight: 600; font-size: 1.02rem; margin: 16px 0 10px; }
.st-section { max-width: 900px; margin: 54px auto 0; padding: 0 24px; }
.st-title { display: block; text-align: center; margin-bottom: 16px; line-height: 1.35; }
.st-section > .ht-content + .ht-content { margin-top: 14px; }
.st-gap { margin-top: 26px; }
.st-section .blk-video { margin: 20px 0; }
.st-section .blk-heading { margin: 26px 0 12px; }
.st-features { max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.st-feature { background: var(--bg-panel); border: 1px solid rgba(166,135,47,0.35); border-radius: var(--radius); padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; transition: all 0.25s ease; }
a.st-feature:hover { border-color: var(--gold-light); box-shadow: 0 0 16px rgba(212,175,55,0.3); transform: translateY(-2px); }
.st-feature img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 2px solid var(--orange); box-shadow: 0 0 18px rgba(255,87,34,0.4); }
.st-feature p { color: var(--text-muted); margin: 0; font-size: 0.9rem; line-height: 1.6; }
.sh-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin-top: 24px; scrollbar-width: thin; }
.sh-strip img { height: 260px; width: auto; border-radius: 10px; border: 2px solid var(--orange); box-shadow: 0 0 14px rgba(255,87,34,0.35); scroll-snap-align: start; flex: 0 0 auto; object-fit: cover; }
.sh-logos { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }
.sh-logos img { height: 80px; width: auto; max-width: 180px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.sh-embed { max-width: 1000px; margin: 0 auto; }
.sh-insta { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sh-insta[hidden] { display: none; }
.sh-insta-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #1a1a1f center / cover no-repeat; border: 2px solid var(--orange); box-shadow: 0 0 12px rgba(255,87,34,0.3); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.sh-insta-tile:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(255,87,34,0.55); }
.sh-insta-icon { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 0.9rem; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.sh-insta-cap { position: absolute; inset: auto 0 0 0; padding: 30px 10px 10px; font-size: 0.75rem; line-height: 1.4; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.85)); opacity: 0; transition: opacity 0.25s ease; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sh-insta-tile:hover .sh-insta-cap, .sh-insta-tile:focus .sh-insta-cap { opacity: 1; }

/* Instagram post pop-up */
.sh-ig-overlay { z-index: 10015; padding: 20px; }
.sh-ig { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; width: min(980px, 100%); height: min(760px, calc(100vh - 40px)); background: var(--bg-panel); border: 2px solid var(--orange); border-radius: var(--radius); box-shadow: 0 0 30px rgba(255,87,34,0.45); overflow: hidden; }
.sh-ig-media { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; overflow: hidden; }
.sh-ig-media img, .sh-ig-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sh-ig-watch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; text-decoration: none; background: rgba(11,11,13,0.85); }
.sh-ig-side { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; min-height: 0; }
.sh-ig-head { color: var(--gold-light); font-weight: 700; font-size: 0.9rem; padding-right: 36px; }
.sh-ig-head span { color: var(--text-muted); font-weight: 400; }
.sh-ig-caption { flex: 1; overflow-y: auto; white-space: pre-line; color: var(--text-light); font-size: 0.88rem; line-height: 1.6; min-height: 60px; }
.sh-ig-side .ht-btn { align-self: flex-start; }
.sh-ig-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(11,11,13,0.85); color: var(--gold-light); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.sh-ig-nav:hover { border-color: var(--orange); color: var(--orange); }
.sh-ig-nav.prev { left: 10px; }
.sh-ig-nav.next { right: 330px; }
.sh-ig-slide { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.85); color: #111; font-size: 1.2rem; line-height: 1; cursor: pointer; z-index: 1; }
.sh-ig-slide.prev { left: 58px; }
.sh-ig-slide.next { right: 58px; }
.sh-ig-slide[hidden] { display: none; }
.sh-ig-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.sh-ig-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.sh-ig-dots span.on { background: #fff; }
.sh-alert { max-width: 720px; margin: 22px auto 0; border: 1px solid rgba(255,107,94,0.5); background: rgba(255,107,94,0.08); color: #ffb3ab; border-radius: 10px; padding: 14px 18px; font-size: 0.82rem; line-height: 1.6; text-align: center; }
.sh-alert strong { color: #ff8a80; }
#catDisclaimer { margin: 0 auto 40px; }

/* ---- Catalogue: search results and category viewer ---- */
.sh-results { max-width: 1200px; margin: -30px auto 40px; padding: 0 24px; }
.sh-results .blk-heading { margin-bottom: 16px; }
.ht-card[hidden] { display: none !important; }
.ht-menu a.active { color: var(--gold-light); background: rgba(255,87,34,0.12); }
.ht-viewer-header .sh-count { min-width: 20px; height: 20px; font-size: 0.7rem; }
.sh-cat-enquire { background: var(--bg-panel); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px 18px; text-align: center; }
.sh-cat-enquire p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.sh-cat-enquire textarea { width: 100%; background: #0f0e12; color: var(--text-light); border: 1px solid rgba(166,135,47,0.5); border-radius: 8px; padding: 10px 12px; font: 0.92rem var(--font-body, 'Raleway', sans-serif); resize: vertical; }
.sh-cat-enquire textarea:focus { outline: none; border-color: var(--gold-light); }
.sh-desc img { width: calc(33.333% - 8px); max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(166,135,47,0.35); margin: 4px; vertical-align: top; }
.sh-desc p:has(> img:only-child) img { width: auto; max-width: 100%; aspect-ratio: auto; }
.sh-desc .sh-imgs { text-align: center; }
.st-info { max-width: 900px; }
.st-info .st-sub { text-align: center; margin-top: 0; }
.st-info .ht-content h6, .sh-desc h6 { font-family: var(--font-body, 'Raleway', sans-serif); font-size: 1rem; color: var(--gold-light); margin: 18px 0 10px; line-height: 1.5; }
.st-info .ht-content hr { border: 0; border-top: 1px solid rgba(166,135,47,0.35); margin: 22px 0; }
.st-info .ht-content a:not(.ht-btn) { color: var(--gold-light); }
.st-info .ht-content .ht-btn { display: inline-block; margin: 8px 0; text-decoration: none; }
.st-info .ht-intro-actions { margin-top: 30px; }
.st-links { margin-top: 18px; }

/* ---- Products ---- */
.sh-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.sh-product { background: var(--bg-card); border: 1px solid rgba(166,135,47,0.35); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.sh-product:hover { border-color: var(--orange); }
.sh-product.in-basket { border-color: var(--orange); box-shadow: 0 0 14px rgba(255,87,34,0.35); }
.sh-product-img { position: relative; aspect-ratio: 1; background: #222 center / cover no-repeat; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.sh-badge { position: absolute; top: 8px; left: 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(11,11,13,0.85); }
.sh-badge.static { position: static; display: inline-block; }
.sh-badge.in { color: #7ee2a8; border: 1px solid #3fa26b; }
.sh-badge.low { color: #ffcc66; border: 1px solid #c79a2e; }
.sh-badge.out { color: #ff8a80; border: 1px solid #b4483f; }
.sh-badge.enquire { color: var(--gold-light); border: 1px solid var(--gold); }
.sh-product-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sh-product-body h4 { font-family: var(--font-body, 'Raleway', sans-serif); font-size: 0.92rem; font-weight: 600; color: var(--text-light); line-height: 1.35; }
.sh-price { color: var(--orange); font-weight: 700; font-size: 0.9rem; }
.sh-price.request { color: var(--gold-light); font-weight: 600; font-size: 0.8rem; }
.sh-product-body p { margin: 0; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
.sh-add { margin-top: auto; display: flex; gap: 8px; align-items: center; padding-top: 6px; }
.sh-qty { display: inline-flex; align-items: center; border: 1px solid rgba(166,135,47,0.5); border-radius: 8px; }
.sh-qty button { width: 30px; height: 34px; background: none; border: none; color: var(--orange); font-size: 1rem; cursor: pointer; }
.sh-qty span { min-width: 22px; text-align: center; font-size: 0.85rem; }
.sh-add .ht-btn { flex: 1; padding: 10px 8px; font-size: 0.68rem; }

/* Product view (pop-up) */
.sh-prod-overlay { align-items: flex-start; overflow-y: auto; }
.sh-prod-modal { position: relative; max-width: 860px; max-height: none; margin: 20px auto; overflow: visible; }
.sh-product-view { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sh-product-view .sh-main-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid var(--orange); }
.sh-product-view .ht-modal-title { padding-right: 40px; }
.sh-product-view .sh-add { margin-top: 16px; }
.sh-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sh-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.sh-thumbs img.on { border-color: var(--orange); }
.sh-fine { color: var(--text-muted); font-size: 0.78rem; margin: 14px 0 0; }

/* Close button (pop-ups and basket) */
.sh-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(166,135,47,0.5); background: #0d0d10; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; }
.sh-close:hover { color: var(--orange); border-color: var(--gold-hover); }

/* ---- Basket drawer (above the category viewer) ---- */
.sh-drawer-wrap { position: fixed; inset: 0; z-index: 10010; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.sh-drawer-wrap.open { opacity: 1; pointer-events: auto; }
.sh-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg-panel); border-left: 2px solid var(--orange); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
.sh-drawer-wrap.open .sh-drawer { transform: none; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #070707; border-bottom: 2px solid rgba(166,135,47,0.4); }
.sh-drawer-head h2 { color: var(--gold-light); font-size: 1.1rem; }
.sh-drawer-head .sh-close { position: static; }
.sh-drawer-items { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.sh-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: start; background: var(--bg-card); border: 1px solid rgba(166,135,47,0.35); border-radius: 10px; padding: 10px; }
.sh-line img, .sh-line .sh-line-icon { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #222; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.sh-line h4 { font-family: var(--font-body, 'Raleway', sans-serif); margin: 0 0 4px; font-size: 0.88rem; font-weight: 600; color: var(--text-light); }
.sh-line small { color: var(--text-muted); font-size: 0.78rem; display: block; }
.sh-line input { width: 100%; margin-top: 6px; background: #0f0e12; color: var(--text-light); border: 1px solid rgba(166,135,47,0.5); border-radius: 6px; padding: 6px 8px; font: 0.8rem var(--font-body, 'Raleway', sans-serif); }
.sh-line-del { background: none; border: none; color: #ff8a8d; cursor: pointer; font-size: 1rem; }
.sh-drawer-foot { padding: 16px 18px 22px; border-top: 1px solid rgba(166,135,47,0.3); display: flex; flex-direction: column; gap: 10px; }
.sh-drawer-foot p { margin: 0; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; text-align: center; }
.sh-empty { text-align: center; color: var(--text-muted); padding: 30px 10px; line-height: 1.6; }

/* ---- Order Request form pop-up ---- */
.sh-overlay { position: fixed; inset: 0; z-index: 10020; background: rgba(0,0,0,0.75); display: flex; justify-content: center; align-items: flex-start; padding: 20px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.sh-overlay.open { opacity: 1; pointer-events: auto; }
.sh-form-modal { position: relative; max-width: 760px; max-height: none; overflow: visible; margin: 0 auto; padding: 46px 8px 8px; }
.sh-form-modal iframe { display: block; width: 100%; height: 420px; border: 0; background: transparent; }

/* ---- Toast ---- */
.sh-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: #0d0d10; border: 2px solid var(--orange); color: var(--text-light); padding: 10px 18px; border-radius: 10px; z-index: 10030; opacity: 0; transition: all 0.25s; font-size: 0.88rem; pointer-events: none; box-shadow: 0 0 18px rgba(255,87,34,0.4); }
.sh-toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 900px) {
  .sh-insta { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .ht-viewer-header .ht-menu-btn { padding: 8px 10px; }
}
@media (max-width: 600px) {
  .st-section { padding: 0 16px; margin-top: 42px; }
  .sh-results { padding: 0 16px; }
  .sh-strip img { height: 190px; }
  .sh-insta { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sh-ig-overlay { padding: 0; }
  .sh-ig { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; height: 100%; border-radius: 0; border-width: 0; }
  .sh-ig-media { height: 55vh; }
  .sh-ig-side { overflow: hidden; }
  .sh-ig-nav { top: auto; bottom: 14px; transform: none; }
  .sh-ig-nav.next { right: 14px; }
  .sh-ig-nav.prev { left: auto; right: 64px; }
  .sh-ig-slide.prev { left: 10px; }
  .sh-ig-slide.next { right: 10px; }
  .sh-ig-side .ht-btn { margin-right: 110px; }
  .sh-desc img { width: calc(50% - 8px); }
  .sh-product-view { grid-template-columns: 1fr; }
  .sh-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .sh-prod-modal { margin: 0; border-radius: 0; min-height: 100%; }
  .sh-prod-overlay, .sh-overlay { padding: 0; }
  .sh-form-modal { border-radius: 0; min-height: 100%; }
}