/* =====================================================================
   Online Store (store.php)  -  dark sci-fi theme, same palette as the site
   The moving neon border on cards comes from astro-theme.css (.store-card / .store-tile)
   ===================================================================== */

/* ---------- hero ---------- */
.store-hero {
  position: relative;
  padding: 132px 0 44px;
  background:
    radial-gradient(ellipse at 18% 60%, rgba(124, 58, 237, 0.24), transparent 45%),
    radial-gradient(ellipse at 88% 55%, rgba(34, 211, 238, 0.14), transparent 45%),
    var(--a-dots),
    linear-gradient(180deg, #050816 0%, #0e1142 60%, #050816 100%);
  background-size: auto, auto, 48px 48px, auto;
}
.store-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #8b95c9; margin-bottom: 14px; }
.store-crumbs a { color: #cfd6ff; }
.store-crumbs a:hover { color: var(--a-cyan); }
.store-crumbs strong { color: var(--a-cyan); font-weight: 600; }
.store-eyebrow { display: block; color: var(--a-cyan); font-size: 13px; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px; }
.store-hero h1 { color: #fff; font-size: 46px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
.store-lead { max-width: 720px; color: var(--a-text); font-size: 17px; line-height: 1.7; margin: 0 0 22px; }
.store-lead strong { color: #fff; }
.store-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.store-pill {
  padding: 8px 20px;
  color: #cfd6ff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--a-line);
  border-radius: 30px;
  transition: all 0.3s ease;
}
.store-pill:hover { color: var(--a-cyan); border-color: var(--a-cyan); }
.store-pill.active { color: #fff; background: var(--a-grad); border-color: transparent; box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45); }
.store-pill-jump { border-style: dashed; }

/* ---------- store home: category tiles ---------- */
.store-body {
  padding: 40px 0 90px;
  background: linear-gradient(180deg, #050816 0%, #0a0d2b 50%, #050816 100%);
}
.store-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.store-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.store-tile:hover { transform: translateY(-8px); box-shadow: 0 18px 44px rgba(34, 211, 238, 0.2); color: inherit; }
.store-tile-img { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: #0a0d2b; }
.store-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.6s ease; }
.store-tile:hover .store-tile-img img { transform: scale(1.06); }
.store-tile-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.store-tile-count { align-self: flex-start; padding: 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #fff; background: var(--a-grad); border-radius: 20px; margin-bottom: 12px; }
.store-tile h2 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.store-tile p { color: var(--a-text); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.store-tile-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.store-tile-subs em { font-style: normal; font-size: 12.5px; color: var(--a-cyan); padding: 3px 12px; border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 20px; }
.store-tile-cta { margin-top: auto; color: var(--a-cyan); font-weight: 700; font-size: 15px; }
.store-tile-cta i { margin-left: 6px; transition: transform 0.3s ease; }
.store-tile:hover .store-tile-cta i { transform: translateX(6px); }

.store-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.store-steps > div { padding: 24px; text-align: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--a-line); border-radius: 16px; }
.store-steps b { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: var(--a-grad-135); border-radius: 50%; margin-bottom: 12px; box-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
.store-steps h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.store-steps p { color: var(--a-text); font-size: 14.5px; margin: 0; }
.store-steps em { color: var(--a-cyan); font-style: normal; font-weight: 600; }

/* ---------- category page parts ---------- */
.store-part { position: relative; padding: 64px 0 70px; scroll-margin-top: 80px; }
.store-part-a { background: radial-gradient(ellipse at 15% 45%, rgba(124, 58, 237, 0.2), transparent 45%), var(--a-dots), linear-gradient(180deg, #050816 0%, #0f1142 50%, #050816 100%); background-size: auto, 48px 48px, auto; }
.store-part-b { background: radial-gradient(ellipse at 85% 45%, rgba(34, 211, 238, 0.14), transparent 45%), var(--a-dots), linear-gradient(180deg, #050816 0%, #0a1e44 50%, #050816 100%); background-size: auto, 48px 48px, auto; }
.store-part-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.store-part-icon { flex: 0 0 auto; width: 84px; height: 64px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(34, 211, 238, 0.5); box-shadow: 0 0 22px rgba(124, 58, 237, 0.4); }
.store-part-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-part-head h2 { color: #fff; font-size: 32px; margin: 0 0 4px; }
.store-part-head h2 small { margin-left: 10px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--a-cyan); border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 20px; vertical-align: middle; }
.store-part-head p { color: var(--a-text); margin: 0; font-size: 15px; }

/* toolbar (search + group chips) */
.store-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 26px; }
.store-search { position: relative; flex: 0 1 360px; min-width: 240px; margin: 0; }
.store-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--a-cyan); }
.store-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 26px;
  outline: none;
}
.store-search input::placeholder { color: #8b95c9; }
.store-search input:focus { border-color: var(--a-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16); }
.store-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.store-chip { padding: 6px 15px; font-size: 13px; color: #cfd6ff; background: rgba(124, 58, 237, 0.16); border: 1px solid rgba(124, 58, 237, 0.5); border-radius: 20px; cursor: pointer; transition: all 0.25s ease; }
.store-chip:hover { color: #fff; border-color: var(--a-cyan); }
.store-chip.active { color: #fff; background: var(--a-grad); border-color: transparent; }
.store-result-count { color: #8b95c9; font-size: 13px; margin-left: auto; }

/* ---------- product cards (all the same size) ---------- */
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.store-card { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.store-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(34, 211, 238, 0.18); }
.store-card.is-extra, .store-card.is-hidden { display: none; }
.store-card-img { position: relative; aspect-ratio: 4 / 3; background: #0a0d2b; overflow: hidden; }
.store-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.store-card:hover .store-card-img img { transform: scale(1.07); }
.store-badge { position: absolute; top: 10px; left: 10px; padding: 4px 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #ff3d9a, #7c3aed); border-radius: 20px; box-shadow: 0 0 14px rgba(255, 61, 154, 0.5); }
.store-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.store-group { align-self: flex-start; margin-bottom: 8px; padding: 2px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; color: var(--a-cyan); border: 1px solid rgba(34, 211, 238, 0.45); border-radius: 20px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card h3 { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.35; min-height: 43px; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card p { color: var(--a-text); font-size: 13px; line-height: 1.55; min-height: 40px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.store-price { color: #fff; font-weight: 700; font-size: 15px; }
.store-price-ask { color: #8b95c9; font-weight: 500; font-size: 12.5px; }
.store-enquire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--a-grad);
  border-radius: 20px;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-enquire:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34, 211, 238, 0.4); }
.store-enquire-alt { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(34, 211, 238, 0.55); }

.store-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.store-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(14, 165, 198, 0.4));
  border: 1px solid rgba(34, 211, 238, 0.6);
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-more[hidden] { display: none; }
.store-more:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(34, 211, 238, 0.4); }
.store-more i { transition: transform 0.3s ease; }
.store-more.open i { transform: rotate(180deg); }

.store-empty { padding: 30px; text-align: center; color: var(--a-text); background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--a-line); border-radius: 14px; }
.store-empty[hidden] { display: none; }
.store-empty a { color: var(--a-cyan); }

.store-help { padding: 60px 0 70px; text-align: center; background: linear-gradient(180deg, #050816 0%, #140a3a 50%, #050816 100%); }
.store-help h3 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.store-help p { color: var(--a-text); margin-bottom: 20px; }
.store-help-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .store-hero { padding-top: 112px; }
  .store-hero h1 { font-size: 36px; }
  .store-tiles { grid-template-columns: 1fr; }
  .store-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .store-part { padding: 48px 0 54px; }
  .store-part-head { align-items: flex-start; }
  .store-part-head h2 { font-size: 26px; }
  .store-card-body { padding: 12px; }
  .store-card h3 { font-size: 14px; min-height: 38px; }
  .store-card p { display: none; }
  .store-card-foot { flex-wrap: wrap; }
  .store-result-count { margin-left: 0; width: 100%; }
}
@media (max-width: 400px) {
  .store-hero h1 { font-size: 30px; }
  .store-enquire { padding: 6px 11px; font-size: 12px; }
}


.store-part-head h2 small { display: inline-block; white-space: nowrap; }
@media (max-width: 575px) { .store-part-head h2 small { display: block; margin: 6px 0 0; width: max-content; } }


/* =====================================================================
   PHONES + TABLETS: search bar, popular chips, trust strip, product rows, list view
   ===================================================================== */
.st-search, .st-quick, .st-view, .st-trust, .st-rail-sec { display: none; }
@media (max-width: 1099px) {
  .st-search { display: flex; align-items: center; position: relative; max-width: 640px; margin: 16px 0 0; padding: 4px 4px 4px 44px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 999px; box-shadow: 0 0 22px rgba(34, 211, 238, 0.12); }
  .st-search i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #22d3ee; }
  .st-search input { flex: 1; min-width: 0; height: 40px; color: #fff; font-size: 14px; background: transparent; border: 0; outline: 0; }
  .st-search input::placeholder { color: #8b95c9; }
  .st-search button { flex: 0 0 auto; height: 38px; padding: 0 20px; border: 0; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(135deg, #7c3aed, #0ea5c6); }
  .st-quick { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 0; padding: 2px 0 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .st-quick::-webkit-scrollbar { display: none; }
  .st-quick a { flex: 0 0 auto; padding: 7px 14px; font-size: 12.5px; color: #dfe4ff; white-space: nowrap; background: rgba(124, 58, 237, 0.16); border: 1px solid rgba(124, 58, 237, 0.55); border-radius: 999px; }
  .st-view { display: inline-flex; margin-top: 12px; padding: 3px; border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
  .st-view button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 12.5px; color: #aab3dd; background: transparent; border: 0; border-radius: 999px; }
  .st-view button.active { color: #fff; background: linear-gradient(135deg, #7c3aed, #0ea5c6); }
  .st-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
  .st-trust div { padding: 11px 6px; text-align: center; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(34, 211, 238, 0.28); border-radius: 14px; }
  .st-trust i { display: block; margin-bottom: 4px; font-size: 19px; color: #22d3ee; }
  .st-trust b { display: block; color: #fff; font-size: 12.5px; }
  .st-trust span { display: block; color: #9aa5d6; font-size: 10.5px; }
  .st-rail-sec { display: block; margin-top: 24px; }
  .st-rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .st-rail-head h2 { margin: 0; color: #fff; font-size: 18px; }
  .st-rail-head a { color: #22d3ee; font-size: 12.5px; font-weight: 600; }
  .st-rail { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .st-rail::-webkit-scrollbar { display: none; }
  .st-rail > .store-card { flex: 0 0 156px; width: 156px; height: auto; scroll-snap-align: start; }
  .st-rail > .store-card .store-card-img { aspect-ratio: 4 / 3; height: auto !important; }
  .st-rail > .store-card .store-card-body p { display: none; }
  .st-rail > .store-card h3 { font-size: 12.5px; min-height: 34px; }
  .st-rail-more { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #dfe4ff; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
  .st-rail-more span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: #22d3ee; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 50%; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .st-rail > .store-card { flex-basis: 210px; width: 210px; }
  .st-rail > .store-card h3 { font-size: 14px; }
}
/* list layout (chosen with the Grid / List switch) */
@media (max-width: 1099px) {
  body.st-list .store-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  body.st-list .store-card { flex-direction: row !important; height: auto !important; }
  body.st-list .store-card .store-card-img { flex: 0 0 122px; width: 122px; height: auto !important; aspect-ratio: auto; }
  body.st-list .store-card .store-card-img img { height: 100%; }
  body.st-list .store-card .store-card-body { flex: 1; min-width: 0; padding: 10px 12px !important; }
  body.st-list .store-card .store-card-body h3 { min-height: 0 !important; font-size: 13.5px !important; }
  body.st-list .store-card .store-card-body p { display: -webkit-box !important; min-height: 0 !important; font-size: 11.5px; }
  body.st-list .store-card .store-card-foot { flex-direction: row !important; align-items: center !important; }
}


/* =====================================================================
   NEW PRODUCT CARD (phones + tablets): photo with tag and heart, short spec line, price pill, Enquire + Call
   ===================================================================== */
.st-tag, .st-heart, .st-call { display: none; }
@media (max-width: 1099px) {
  .store-card { border-radius: 20px !important; }
  .store-card .store-card-img {
    position: relative; aspect-ratio: 5 / 4 !important; height: auto !important;
    background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.5), rgba(10, 13, 43, 0.96) 72%) !important;
  }
  .store-card .store-card-img img { width: 100%; height: 100%; object-fit: cover; }
  .store-card .store-card-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 22, 0) 55%, rgba(5, 8, 22, 0.7) 100%); }
  .store-card .st-tag {
    display: inline-flex; position: absolute; left: 8px; top: 8px; z-index: 2; max-width: 68%; padding: 3px 9px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.4px;
    color: #22d3ee; background: rgba(5, 8, 22, 0.8); border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .store-card .st-heart {
    display: flex; position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0;
    color: #fff; font-size: 14px; background: rgba(5, 8, 22, 0.62); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; transition: transform 0.2s ease, color 0.2s ease;
  }
  .store-card .st-heart:active { transform: scale(0.86); }
  .store-card .st-heart.is-saved { color: #ff4d8d; background: rgba(255, 77, 141, 0.16); border-color: #ff4d8d; }
  .store-card .store-badge { top: auto !important; bottom: 8px; left: 8px; font-size: 9.5px; padding: 3px 9px; z-index: 3; }
  .store-card .store-card-body { padding: 10px 11px 12px !important; }
  .store-card .store-card-body .store-group { display: none !important; }
  .store-card .store-card-body h3 { font-size: 13px !important; line-height: 1.3 !important; min-height: 34px !important; margin: 0 0 4px !important; }
  .store-card .store-card-body p { display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-height: 0 !important; margin: 0 0 8px !important; font-size: 11px !important; color: #9aa5d6; }
  .store-card .store-card-foot { display: grid !important; grid-template-columns: 1fr 38px; gap: 8px; align-items: center !important; padding-top: 4px !important; border-top: 0 !important; }
  .store-card .store-price { grid-column: 1 / -1; }
  .store-card .store-price-ask { justify-self: start; padding: 3px 10px; font-size: 10.5px !important; font-weight: 600; color: #fbbf24 !important; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 999px; }
  .store-card .store-enquire { justify-content: center; height: 36px; padding: 0 10px !important; font-size: 12px !important; border-radius: 12px !important; }
  .store-card .st-call { display: flex; width: 38px; height: 36px; align-items: center; justify-content: center; color: #22d3ee; font-size: 14px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 12px; }
  .st-saved-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 12.5px; color: #aab3dd; background: transparent; border: 0; border-radius: 999px; }
  .st-saved-btn i { color: #ff4d8d; }
  .st-saved-btn b { min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; color: #fff; background: #ff4d8d; border-radius: 999px; }
  body.st-only-saved .st-saved-btn { color: #fff; background: linear-gradient(135deg, #ff4d8d, #7c3aed); }
  body.st-only-saved .store-card:not(.is-saved-card) { display: none !important; }
  .st-saved-empty { margin-bottom: 14px; }
  /* list layout with the new card */
  body.st-list .store-card .store-card-img { flex: 0 0 122px !important; width: 122px; aspect-ratio: auto !important; height: auto !important; }
  body.st-list .store-card .store-card-body p { -webkit-line-clamp: 2; }
  body.st-list .store-card .store-card-foot { grid-template-columns: 1fr 38px; }
}