/* ============================================================
   Vet Egypt — Public storefront (brand themed)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --brand: #1F5FA8;
  --accent: #4CC94C;
  --brand-dark: color-mix(in srgb, var(--brand) 70%, #000);
  --brand-darker: color-mix(in srgb, var(--brand) 45%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --accent-dark: color-mix(in srgb, var(--accent) 75%, #000);
  --ink: #0f1e33;
  --body: #33506e;
  --muted: #6b8299;
  --line: #e3ebf3;
  --bg: #f2f6fa;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px -14px color-mix(in srgb, var(--brand) 45%, transparent);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.4; }

/* ---------------- header ---------------- */
.st-head { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(10, 30, 50, .12); }
.st-top {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 55%, var(--brand-darker) 100%);
  display: flex; align-items: center; gap: 16px; padding: 10px 22px; flex-wrap: wrap;
}
.st-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.st-logo img {
  width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}
.st-logo span { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.st-logo span b { color: var(--accent); }

.st-search { display: flex; flex: 1; min-width: 240px; background: #fff; border-radius: 10px; overflow: hidden; }
.st-search select { border: none; background: #eef3f8; font-family: inherit; font-size: 12px; padding: 0 10px; color: #52667a; max-width: 130px; }
.st-search input { flex: 1; border: none; padding: 12px 14px; font-family: inherit; font-size: 13.5px; outline: none; }
.st-search button { border: none; background: var(--accent); width: 54px; cursor: pointer; font-size: 17px; }
.st-search button:hover { background: var(--accent-dark); }
.st-actions { display: flex; align-items: center; gap: 10px; }
.st-actions a {
  font-size: 12px; font-weight: 700; color: #fff; padding: 8px 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .35);
}
.st-actions a:hover { background: rgba(255, 255, 255, .12); }
.st-actions .st-wa { background: var(--accent); border-color: var(--accent); color: #08320b; }

.st-nav {
  background: var(--brand-darker); display: flex; gap: 22px; padding: 9px 22px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.st-nav::-webkit-scrollbar { display: none; }
.st-nav a { color: #d9e7f4; font-size: 12.5px; font-weight: 600; }
.st-nav a:hover { color: var(--accent); }

/* ---------------- layout ---------------- */
.st-main { max-width: 1280px; margin: 0 auto; padding: 18px 18px 40px; display: grid; gap: 18px; }
.st-crumb { font-size: 12px; color: var(--muted); }
.st-crumb a { color: var(--brand); font-weight: 700; }

/* ---------------- search block ---------------- */
.st-searchblock {
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  border-radius: var(--radius); padding: 34px 24px; text-align: center; color: #fff;
}
.st-searchblock h1 { color: #fff; font-size: 26px; margin-bottom: 16px; }
.st-bigsearch { display: flex; max-width: 720px; margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; }
.st-bigsearch input { flex: 1; border: none; padding: 15px 18px; font-family: inherit; font-size: 14px; outline: none; }
.st-bigsearch button { border: none; background: var(--accent); color: #08320b; font-weight: 800; padding: 0 28px; font-family: inherit; cursor: pointer; }
.st-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.st-chips a { background: rgba(255, 255, 255, .16); color: #fff; border-radius: 99px; padding: 6px 14px; font-size: 12px; }
.st-chips a:hover { background: var(--accent); color: #08320b; }

/* ---------------- hero ---------------- */
.st-hero { position: relative; border-radius: var(--radius); overflow: hidden; height: 320px; background: var(--brand-darker); }
.st-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s ease; display: flex; align-items: center;
}
.st-slide.on { opacity: 1; }
.st-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 25, 45, .88), rgba(8, 25, 45, .15)); }
.st-slide-txt { position: relative; z-index: 2; padding: 0 44px; max-width: 60%; color: #fff; }
.st-slide-txt h2 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.st-slide-txt p { color: #dce8f3; font-size: 14px; margin: 0 0 16px; }
.st-cta {
  display: inline-block; background: var(--accent); color: #08320b; font-weight: 800;
  padding: 11px 26px; border-radius: 99px; font-size: 13.5px;
}
.st-cta:hover { background: var(--accent-dark); }
.st-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 54px; border: none;
  background: rgba(255, 255, 255, .82); color: var(--brand-darker); font-size: 24px; cursor: pointer; z-index: 3;
}
.st-arrow.prev { inset-inline-start: 0; border-radius: 0 8px 8px 0; }
.st-arrow.next { inset-inline-end: 0; border-radius: 8px 0 0 8px; }
.st-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; z-index: 3; }
.st-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.st-dots span.on { background: var(--accent); width: 22px; border-radius: 99px; }

/* ---------------- sections ---------------- */
.st-sec { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 3px rgba(15, 30, 51, .05); }
.st-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.st-sec-head h1, .st-sec-head h2 { font-size: 20px; }
.st-sec-head a, .st-sec-head span { font-size: 12.5px; color: var(--brand); font-weight: 700; }

/* homepage trust/contact band */
.st-contact-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st-cb {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 1px 3px rgba(15, 30, 51, .05);
  display: flex; flex-direction: column; gap: 4px;
}
.st-cb-ico { font-size: 22px; line-height: 1.2; }
.st-cb b { font-size: 15px; color: #0f1e33; }
.st-cb p { margin: 0; font-size: 12.5px; color: #5b7089; line-height: 1.8; }
.st-cb-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.st-cb-links a { color: var(--brand); font-weight: 700; text-decoration: none; }
.st-cb-links a:hover { text-decoration: underline; }
@media (max-width: 760px) { .st-contact-band { grid-template-columns: 1fr; } }

.st-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px; }
.st-cat { text-align: center; }
.st-cat-img {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 26px;
  border: 2px solid transparent; transition: .18s;
}
.st-cat:hover .st-cat-img { border-color: var(--accent); transform: translateY(-2px); }
.st-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.st-cat b { font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.45; display: block; }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.st-rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.st-rail .st-prod { min-width: 186px; max-width: 186px; scroll-snap-align: start; }

.st-prod {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; transition: .18s;
}
.st-prod:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.st-prod-img { height: 150px; display: grid; place-items: center; background: #f8fbfe; border-radius: 10px; overflow: hidden; }
.st-prod-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.st-prod-title {
  font-size: 12.5px; line-height: 1.6; color: var(--ink); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}
.st-stars { color: #ffb400; font-size: 12px; letter-spacing: -1px; }
.st-price { color: var(--brand); font-weight: 800; font-size: 16px; }
.st-price s { color: #9fb0c2; font-size: 11.5px; font-weight: 500; margin-inline-start: 5px; }
.st-deliv { font-size: 10.5px; color: var(--muted); }
.st-buy {
  margin-top: auto; background: var(--accent); color: #08320b; text-align: center;
  border-radius: 99px; padding: 8px; font-weight: 800; font-size: 12px;
}
.st-buy:hover { background: var(--accent-dark); }

.st-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.st-offer {
  position: relative; border-radius: 14px; padding: 20px; color: #fff; min-height: 110px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, var(--oc, var(--brand)), color-mix(in srgb, var(--oc, var(--brand)) 55%, #000));
}
.st-offer b { font-size: 20px; }
.st-offer span { font-size: 12.5px; opacity: .92; }
.st-offer-badge { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(255,255,255,.25); border-radius: 99px; padding: 3px 11px; font-size: 10.5px; }

.st-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.st-article { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: .18s; }
.st-article:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.st-art-img {
  height: 140px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 14%, #fff));
  display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 30px;
}
.st-art-img img { width: 100%; height: 100%; object-fit: cover; }
.st-article b { display: block; padding: 12px 14px 6px; font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.st-article p { margin: 0; padding: 0 14px 14px; font-size: 11.5px; color: var(--muted); }

.st-banner {
  border-radius: var(--radius); min-height: 180px; background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  background-size: cover; background-position: center; display: flex; align-items: center; padding: 0 40px;
  position: relative; overflow: hidden; color: #fff;
}
.st-banner::after { content: ''; position: absolute; inset: 0; background: rgba(8, 25, 45, .42); }
.st-banner div { position: relative; z-index: 2; }
.st-banner h2 { color: #fff; font-size: 26px; }

/* ---------------- product page ---------------- */
.st-product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; background: #fff; border-radius: var(--radius); padding: 24px; }
.st-gallery .st-main-img { width: 100%; height: 380px; object-fit: contain; background: #f8fbfe; border-radius: 14px; }
.st-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.st-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.st-info h1 { font-size: 24px; margin-bottom: 10px; }
.st-bigprice { font-size: 28px; font-weight: 800; color: var(--brand); margin: 6px 0; }
.st-bigprice s { font-size: 15px; color: #9fb0c2; }
.st-stock { font-size: 13px; color: var(--accent-dark); font-weight: 700; }
.st-short { font-size: 13.5px; color: var(--body); }
.st-cta-big {
  display: inline-block; background: var(--accent); color: #08320b; font-weight: 800;
  padding: 14px 30px; border-radius: 12px; margin: 10px 0 18px;
}
.st-desc { font-size: 13.5px; line-height: 1.9; color: var(--body); }
.st-desc h2 { font-size: 18px; margin: 20px 0 10px; }
.st-desc ul { padding-inline-start: 20px; }

/* ---------------- article page ---------------- */
.st-article-page { background: #fff; border-radius: var(--radius); padding: 30px 34px; max-width: 900px; margin: 0 auto; }
.st-article-page h1 { font-size: 28px; margin-bottom: 12px; }
.st-tag { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.st-art-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin: 12px 0 18px; }
.st-prose { font-size: 15px; line-height: 2; }
.st-prose h2 { font-size: 21px; margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.st-prose h3 { font-size: 16.5px; margin: 18px 0 8px; }
.st-prose a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.st-prose a:hover { color: var(--accent-dark); }
.st-prose .lead { background: var(--brand-soft); border-inline-start: 4px solid var(--accent); padding: 14px 18px; border-radius: 12px; font-size: 16px; color: var(--ink); }
.st-prose .toc { background: var(--brand-soft); border-radius: 12px; padding: 14px 20px; margin-bottom: 20px; }
.st-prose .toc h2 { border: none; margin: 0 0 8px; font-size: 15px; }
.st-prose .related-products { background: color-mix(in srgb, var(--accent) 12%, #fff); border-radius: 12px; padding: 14px 20px; }
.st-prose .disclaimer { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.st-related { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.st-related ul { padding-inline-start: 20px; }
.st-related a { color: var(--brand); font-weight: 600; }

.st-catdesc { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.st-empty { text-align: center; color: var(--muted); padding: 30px; }
.st-404 { text-align: center; padding: 60px 20px; }
.st-404 h1 { font-size: 64px; color: var(--brand); }

/* ---------------- footer ---------------- */
.st-foot { background: var(--brand-darker); color: #cfdcea; margin-top: 30px; }
.st-foot-grid { max-width: 1280px; margin: 0 auto; padding: 34px 22px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.st-foot b { display: block; color: #fff; margin-bottom: 8px; font-size: 13px; }
.st-foot .st-logo { margin-bottom: 8px; }
.st-foot p, .st-foot a, .st-foot span { display: block; font-size: 12px; color: #b9cde0; margin-bottom: 5px; }
.st-foot a:hover { color: var(--accent); }
.st-copy { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 14px; font-size: 11.5px; color: #8fa8bf; }

@media (max-width: 900px) {
  .st-top { padding: 10px 14px; gap: 10px; }
  .st-search { order: 3; width: 100%; }
  .st-nav { padding: 8px 14px; }
  .st-main { padding: 14px 12px 30px; }
  .st-hero { height: 220px; }
  .st-slide-txt { padding: 0 22px; max-width: 85%; }
  .st-slide-txt h2 { font-size: 21px; }
  .st-product-page { grid-template-columns: 1fr; padding: 16px; }
  .st-gallery .st-main-img { height: 280px; }
  .st-article-page { padding: 20px 16px; }
  .st-foot-grid { grid-template-columns: 1fr 1fr; }
  .st-actions .st-admin { display: none; }
}

/* overflow guards */
.st-main, .st-main > *, .st-sec, .st-hero { min-width: 0; }
.st-rail { max-width: 100%; }


/* ---------------- cart & checkout ---------------- */
.st-cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.st-cart-link b { display: none; background: var(--accent); color: #08320b; font-size: 11px; border-radius: 99px; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 5px; }
.st-cart-link:hover { color: var(--accent); }

.st-cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .st-cart-grid { grid-template-columns: 1fr; } }

.st-cart-items { background: #fff; border-radius: var(--radius); padding: 20px; }
.st-cart-items h1 { font-size: 20px; margin-bottom: 16px; }
.st-cart-items h1 span { color: var(--muted); font-size: 14px; }
.st-citem { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.st-citem img { width: 84px; height: 84px; object-fit: contain; background: #f8fbfe; border-radius: 10px; }
.st-cinfo b { display: block; font-size: 13px; color: var(--ink); line-height: 1.5; }
.st-cprice { font-size: 12px; color: var(--muted); }
.st-cwarn { display: block; font-size: 11px; color: #b45309; }
.st-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.st-qty button { width: 30px; height: 30px; border: none; background: #f3f7fb; cursor: pointer; font-size: 16px; color: var(--ink); }
.st-qty span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 700; }
.st-cline { font-weight: 800; color: var(--brand); font-size: 14px; white-space: nowrap; }
.st-cremove { border: none; background: transparent; color: #b0bfcd; cursor: pointer; font-size: 15px; }
.st-cremove:hover { color: #e11d48; }

.st-summary { background: #fff; border-radius: var(--radius); padding: 20px; position: sticky; top: 120px; }
.st-summary h3 { font-size: 16px; margin-bottom: 14px; }
.st-srow { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--body); }
.st-srow b { color: var(--ink); }
.st-srow.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-size: 17px; }
.st-srow.total b { color: var(--brand); font-weight: 800; }
.st-checkout { margin-top: 16px; display: grid; gap: 9px; }
.st-checkout h4 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.st-checkout input, .st-checkout select, .st-checkout textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px;
  font-family: inherit; font-size: 13px; outline: none; background: #fff;
}
.st-checkout input:focus, .st-checkout select:focus, .st-checkout textarea:focus { border-color: var(--accent); }
.st-checkout textarea { min-height: 62px; resize: vertical; }
.st-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.st-pay { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; }
.st-pay input { width: auto; accent-color: var(--accent); }
.st-note { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.st-summary .st-cta-big { width: 100%; text-align: center; margin: 10px 0 0; border: none; cursor: pointer; }

.st-success { background: #fff; border-radius: var(--radius); padding: 50px 24px; text-align: center; }
.st-success-ico { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--accent-dark); font-size: 36px; font-weight: 800; }
.st-success h1 { font-size: 26px; margin-bottom: 8px; }
.st-success p { color: var(--body); font-size: 14px; }
.st-success .flex { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.st-cta2 { display: inline-block; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; padding: 11px 22px; border-radius: 99px; font-size: 13px; }

.st-buyrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; }
.st-buyrow .st-cta-big { margin: 0; border: none; cursor: pointer; }
.st-qty.big input { width: 46px; border: none; text-align: center; font-family: inherit; font-weight: 700; font-size: 14px; -moz-appearance: textfield; }
.st-qty.big input::-webkit-outer-spin-button, .st-qty.big input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.st-prod { position: relative; }
.st-prod-link { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.st-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: var(--brand-darker); color: #fff; padding: 12px 22px; border-radius: 99px;
  font-size: 13px; font-weight: 700; z-index: 999; transition: .25s; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- theme toggle ---------------- */
.st-toggle {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff;
  border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; line-height: 1.4; display: inline-flex; align-items: center; justify-content: center; min-width: 38px;
}
.st-toggle:hover { background: rgba(255,255,255,.22); }

/* ---------------- dark mode ---------------- */
[data-theme="dark"] {
  --ink: #e9f1f9;
  --body: #b4c6d8;
  --muted: #7e94a9;
  --line: #1e3247;
  --bg: #0a1622;
  --brand-soft: #0f1e2c;
  color-scheme: dark;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .st-sec,
[data-theme="dark"] .st-cart-items,
[data-theme="dark"] .st-summary,
[data-theme="dark"] .st-article-page,
[data-theme="dark"] .st-success,
[data-theme="dark"] .st-product-page { background: #111f2e; }
[data-theme="dark"] .st-prod { background: #111f2e; border-color: var(--line); }
[data-theme="dark"] .st-prod-img,
[data-theme="dark"] .st-citem img,
[data-theme="dark"] .st-main-img { background: #0e1c2a; }
[data-theme="dark"] .st-article { background: #111f2e; border-color: var(--line); }
[data-theme="dark"] .st-article b { color: var(--ink); }
[data-theme="dark"] .st-checkout input,
[data-theme="dark"] .st-checkout select,
[data-theme="dark"] .st-checkout textarea,
[data-theme="dark"] .st-search input { background: #0e1c2a; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .st-search select { background: #16283a; color: #b4c6d8; }
[data-theme="dark"] .st-pay { border-color: var(--line); color: var(--body); }
[data-theme="dark"] .st-srow { color: var(--body); }
[data-theme="dark"] .st-srow b { color: var(--ink); }
[data-theme="dark"] .st-zoneinfo { color: var(--muted); }
[data-theme="dark"] .st-empty { color: var(--muted); }
[data-theme="dark"] .st-buy { color: #08320b; }

/* receipt */
.st-receipt { max-width: 340px; margin: 14px auto 18px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-align: start; }
.st-zoneinfo { font-size: 11.5px; color: var(--muted); margin: -2px 0 2px; min-height: 16px; }
.st-srow .st-pending { color: var(--muted); font-weight: 600; }

/* ---------------- medical consultation ---------------- */
.st-consult-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 14%, #fff));
  border: 1px solid var(--line);
}
.st-consult-cta h2 { font-size: 22px; margin-bottom: 6px; }
.st-consult-cta p { margin: 0 0 14px; color: var(--body); font-size: 13.5px; }
.st-consult-icons { display: flex; gap: 14px; font-size: 38px; }
.st-nav-consult { color: var(--accent) !important; font-weight: 800 !important; }

.st-consult { background: #fff; border-radius: var(--radius); padding: 28px; max-width: 920px; margin: 0 auto; }
.st-consult-head { text-align: center; margin-bottom: 20px; }
.st-consult-head h1 { font-size: 26px; margin-bottom: 6px; }
.st-consult-head p { color: var(--muted); font-size: 13.5px; margin: 0; }
.st-consult-form { display: grid; gap: 14px; }
.st-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-consult-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.st-consult-form label.full { grid-column: 1 / -1; }
.st-consult-form input, .st-consult-form select, .st-consult-form textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font-family: inherit;
  font-size: 13px; outline: none; background: #fff; color: var(--ink); width: 100%;
}
.st-consult-form input:focus, .st-consult-form select:focus, .st-consult-form textarea:focus { border-color: var(--accent); }
.st-consult-form .st-cta-big { border: none; cursor: pointer; justify-self: start; }
.st-alert { background: #fff4e5; color: #8a5a05; border: 1px solid #f3d9a4; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }

[data-theme="dark"] .st-consult { background: #111f2e; }
[data-theme="dark"] .st-consult-form input,
[data-theme="dark"] .st-consult-form select,
[data-theme="dark"] .st-consult-form textarea { background: #0e1c2a; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .st-consult-cta { background: linear-gradient(135deg, #0f1e2c, #12301a); }
[data-theme="dark"] .st-alert { background: #332508; color: #f3c969; border-color: #4a3a16; }

@media (max-width: 700px) {
  .st-fgrid { grid-template-columns: 1fr; }
  .st-consult { padding: 20px 16px; }
  .st-consult-cta { flex-direction: column; text-align: center; }
}

/* consultation button inside offers */
.st-offers-cta { display: flex; justify-content: center; margin-top: 16px; }
.st-consult-btn {
  display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff !important; font-weight: 800; font-size: 14px; padding: 12px 26px; border-radius: 99px;
  box-shadow: 0 12px 26px -14px var(--brand); transition: .18s;
}
.st-consult-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--brand); }
.st-consult-ico { font-size: 17px; }

/* ============================================================
   PWA bottom navigation (mobile app style)
   ============================================================ */
.st-bottomnav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px -16px rgba(15, 30, 51, .55);
}
.st-bottomnav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 7px 2px 5px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: color .15s, background .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.st-bottomnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bottomnav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-bottomnav a:active { transform: scale(.94); }
.st-bottomnav a.is-active { color: var(--brand); }
.st-bottomnav a.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: var(--brand);
}

/* center cart button (raised) */
.st-bottomnav a.st-bn-cart { justify-content: flex-end; }
.st-bottomnav .st-bn-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -22px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 22px -12px var(--brand);
}
.st-bottomnav .st-bn-ico svg { width: 22px; height: 22px; stroke: #fff; }
.st-bottomnav .st-bn-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #08320b;
  font-size: 10.5px;
  font-weight: 800;
  border: 2px solid #fff;
}
.st-bottomnav .st-bn-badge.is-on { display: inline-flex; }
.st-bottomnav a.st-bn-cart.is-active::after { display: none; }
.st-bottomnav a.st-bn-cart.is-active .st-bn-ico {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #08320b;
}
.st-bottomnav a.st-bn-cart.is-active .st-bn-ico svg { stroke: #08320b; }

/* show on phones / tablets, and in installed app mode */
@media (max-width: 900px) {
  .st-bottomnav { display: grid; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .st-foot { margin-bottom: 0; }
  .st-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  .st-bottomnav { display: grid; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* dark theme */
[data-theme="dark"] .st-bottomnav {
  background: rgba(10, 22, 34, .96);
  border-top-color: #1e3247;
  box-shadow: 0 -8px 26px -14px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .st-bottomnav .st-bn-ico { border-color: #0a1622; }
[data-theme="dark"] .st-bottomnav .st-bn-badge { border-color: #0a1622; }

/* install (PWA) chip */
.st-install {
  position: fixed;
  z-index: 88;
  inset-inline-start: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px var(--brand);
  animation: st-pop .35s ease-out;
}
.st-install svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-install:active { transform: scale(.96); }
@keyframes st-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) {
  .st-install { bottom: 22px; }
}
