/* SwiftGo design system: green pharmacy theme shared by all customer pages. */
:root {
  --sg-green: #0f7a4d; --sg-green-dark: #0b5c3a; --sg-green-soft: #e8f5ee;
  --sg-ink: #14231c; --sg-muted: #5f6f67; --sg-line: #e3ece6; --sg-bg: #f6faf7;
  --sg-warn: #b7791f; --sg-radius: 12px;
}
body.sg { background: var(--sg-bg); color: var(--sg-ink); font-family: "DM Sans", system-ui, sans-serif; margin: 0; padding-bottom: 72px; }
.sg a { color: inherit; text-decoration: none; }
.sg-header { display: flex; align-items: center; gap: 24px; padding: 12px max(5vw, 16px); background: #fff; border-bottom: 1px solid var(--sg-line); position: sticky; top: 0; z-index: 20; }
.sg-nav { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.sg-nav a[aria-current], .sg-nav a:hover { color: var(--sg-green); }
.sg-search { flex: 1; max-width: 340px; margin-left: auto; }
.sg-search input { width: 100%; padding: 10px 14px; border: 1px solid var(--sg-line); border-radius: 999px; background: var(--sg-bg); font: inherit; }
.sg-actions { display: flex; gap: 6px; }
.sg-icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--sg-green-soft); }
.sg-icon[aria-current] { outline: 2px solid var(--sg-green); }
.sg-cart b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d64545; color: #fff; font-size: 11px; display: grid; place-items: center; }
.sg-main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; }
.sg-crumbs { font-size: 13px; color: var(--sg-muted); margin-bottom: 14px; }
.sg-crumbs a:hover { color: var(--sg-green); }
.sg-title { font: 800 28px Manrope, sans-serif; margin: 0 0 18px; }
.sg-card { background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 20px; }
.sg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sg-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.sg-btn { display: inline-block; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--sg-green); color: #fff !important; font: 700 15px "DM Sans", sans-serif; cursor: pointer; text-align: center; }
.sg-btn:hover { background: var(--sg-green-dark); }
.sg-btn[disabled] { background: #b8c7be; cursor: not-allowed; }
.sg-btn-block { display: block; width: 100%; }
.sg-btn-ghost { background: #fff; color: var(--sg-green) !important; border: 1px solid var(--sg-green); }
.sg-btn-ghost:hover { background: var(--sg-green-soft); }
.sg-link-btn { background: none; border: 0; padding: 0; color: #b42318; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.sg-price { font: 800 24px Manrope, sans-serif; color: var(--sg-green-dark); }
.sg-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sg-green-soft); color: var(--sg-green-dark); font-size: 12px; font-weight: 700; }
.sg-badge-warn { background: #fdf3dc; color: var(--sg-warn); }
.sg-badge-bad { background: #fde8e8; color: #b42318; }
.sg-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.sg-total { border-top: 1px solid var(--sg-line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 18px; }
.sg-muted { color: var(--sg-muted); font-size: 14px; }
.sg-thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--sg-green-soft); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 28px; }
.sg-thumb img, .sg-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-hero-img { aspect-ratio: 1; border-radius: var(--sg-radius); background: var(--sg-green-soft); display: grid; place-items: center; font-size: 80px; overflow: hidden; }
.sg-qty { display: inline-flex; align-items: center; border: 1px solid var(--sg-line); border-radius: 8px; overflow: hidden; }
.sg-qty input { width: 56px; text-align: center; border: 0; padding: 8px 0; font: inherit; }
.sg-list { list-style: none; margin: 0; padding: 0; }
.sg-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--sg-line); }
.sg-item:last-child { border-bottom: 0; }
.sg-item-main { flex: 1; min-width: 0; }
.sg-item h2, .sg-item h3 { margin: 0 0 2px; font-size: 16px; }
.sg-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sg-tabs a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--sg-line); background: #fff; font-size: 14px; font-weight: 600; }
.sg-tabs a[aria-current] { background: var(--sg-green); color: #fff; border-color: var(--sg-green); }
.sg-steps { display: flex; list-style: none; padding: 0; margin: 0 0 22px; gap: 8px; }
.sg-steps li { flex: 1; text-align: center; font-size: 13px; color: var(--sg-muted); border-top: 3px solid var(--sg-line); padding-top: 8px; }
.sg-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--sg-line); font-weight: 700; }
.sg-steps li.is-done { color: var(--sg-green-dark); border-color: var(--sg-green); }
.sg-steps li.is-done span { background: var(--sg-green); color: #fff; }
.sg-steps li.is-current { font-weight: 700; }
.sg-timeline { list-style: none; margin: 0; padding: 0; }
.sg-timeline li { position: relative; padding: 0 0 20px 34px; }
.sg-timeline li::before { content: ""; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--sg-line); }
.sg-timeline li::after { content: ""; position: absolute; left: 12px; top: 18px; bottom: -2px; width: 2px; background: var(--sg-line); }
.sg-timeline li:last-child::after { display: none; }
.sg-timeline li.is-done::before, .sg-timeline li.is-done::after { background: var(--sg-green); }
.sg-timeline li.is-pending { color: var(--sg-muted); }
.sg-pay { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--sg-line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.sg-pay.is-disabled { opacity: .55; }
.sg-dropzone { border: 2px dashed #b9d3c4; border-radius: var(--sg-radius); padding: 28px; text-align: center; background: var(--sg-green-soft); }
.sg-notice { padding: 12px 14px; border-radius: 10px; background: var(--sg-green-soft); border: 1px solid #cfe6d7; font-size: 14px; margin-bottom: 16px; }
.sg-notice.is-error { background: #fde8e8; border-color: #f5c2c0; color: #b42318; }
.sg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.sg-tile { background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sg-tile .sg-hero-img { font-size: 40px; }
.sg-form-field { margin-bottom: 14px; }
.sg-form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.sg-form-field input, .sg-form-field select, .sg-form-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--sg-line); border-radius: 8px; font: inherit; box-sizing: border-box; }
.sg-field-error { color: #b42318; font-size: 13px; display: block; margin-top: 3px; }
.sg-bottom-nav { display: none; }
.sg-footer { text-align: center; padding: 24px 16px; color: var(--sg-muted); font-size: 13px; }
@media (max-width: 800px) {
  .sg-nav, .sg-search { display: none; }
  .sg-actions { margin-left: auto; }
  .sg-grid-2, .sg-layout { grid-template-columns: 1fr; }
  .sg-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--sg-line); }
  .sg-bottom-nav a { flex: 1; text-align: center; padding: 8px 0; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
  .sg-bottom-nav a[aria-current] { color: var(--sg-green); }
  .sg-bottom-nav span { font-size: 20px; }
}

/* Header brand + tagline */
.sg-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.sg-brand strong { display: block; font: 800 16px Manrope, sans-serif; color: var(--sg-green-dark); line-height: 1.1; }
.sg-brand small { display: block; font-size: 10px; color: var(--sg-muted); }
.sg-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--sg-green); display: grid; place-items: center; }
.sg-logo svg { width: 20px; fill: #fff; }
.sg-wide { max-width: 1240px; }
.sg-link { background: none; border: 0; padding: 0; color: var(--sg-green); font: 600 14px "DM Sans", sans-serif; cursor: pointer; }
.sg-btn-light { background: #fff; color: var(--sg-green-dark) !important; }
.sg-btn-light:hover { background: var(--sg-green-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.sg-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 32px; border-radius: 18px; background: linear-gradient(120deg, #e8f5ee 0%, #f6fbf8 60%, #fff 100%); border: 1px solid var(--sg-line); margin-bottom: 24px; }
.sg-hero h1 { font: 800 clamp(28px, 4vw, 42px) Manrope, sans-serif; line-height: 1.12; margin: 0 0 10px; color: var(--sg-ink); }
.sg-hero-tags { font-weight: 700; color: var(--sg-green-dark); margin: 0 0 8px; }
.sg-hero-tags span { color: var(--sg-green); }
.sg-locate { margin: 14px 0; display: grid; gap: 10px; }
.sg-locate input[type=search] { padding: 13px 14px; border: 1px solid var(--sg-line); border-radius: 10px; font: inherit; width: 100%; box-sizing: border-box; background: #fff; }
.sg-locate-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--sg-muted); }
.sg-hero-side { display: grid; gap: 14px; align-content: center; }
.sg-hero-art { aspect-ratio: 16/9; border-radius: 16px; background: radial-gradient(circle at 70% 30%, #bfe5cf, #e8f5ee); display: grid; place-items: center; font-size: 84px; }
.sg-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-trust li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--sg-line); border-radius: 12px; padding: 12px 14px; }
.sg-trust li > span { font-size: 22px; }
.sg-trust small { display: block; color: var(--sg-muted); font-size: 12px; }

/* Branch bar */
.sg-branchbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 16px 20px; margin-bottom: 18px; }
.sg-branchbar h2 { margin: 2px 0; font-size: 20px; }
.sg-branchbar p { margin: 2px 0; }
.sg-branchbar small { color: var(--sg-green); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }

/* Category row */
.sg-cats { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 16px; margin-bottom: 8px; scrollbar-width: thin; }
.sg-cat { flex: none; width: 96px; text-align: center; font-size: 12px; font-weight: 600; display: grid; gap: 6px; justify-items: center; }
.sg-cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sg-green-soft); display: grid; place-items: center; font-size: 24px; overflow: hidden; }
.sg-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.sg-cat.is-active .sg-cat-icon, .sg-cat:hover .sg-cat-icon { outline: 2px solid var(--sg-green); }
.sg-cat.is-active { color: var(--sg-green-dark); }

/* Catalogue */
.sg-catalogue { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; margin-top: 8px; }
.sg-filters { background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 16px; position: sticky; top: 76px; }
.sg-filters h2 { font-size: 15px; margin: 0 0 10px; }
.sg-filters .sg-list { margin-bottom: 16px; }
.sg-filters .sg-list a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.sg-filters .sg-list a:hover, .sg-filters .sg-list a.is-active { background: var(--sg-green-soft); color: var(--sg-green-dark); font-weight: 700; }
.sg-catalogue-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sg-catalogue-head select { padding: 8px 10px; border: 1px solid var(--sg-line); border-radius: 8px; font: inherit; }
.sg-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sg-product { background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); overflow: hidden; display: flex; flex-direction: column; }
.sg-product-img { position: relative; aspect-ratio: 1.2; background: var(--sg-green-soft); display: grid; place-items: center; font-size: 56px; }
.sg-product-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-product-img .sg-badge { position: absolute; top: 8px; left: 8px; }
.sg-product-body { padding: 12px; display: grid; gap: 4px; }
.sg-product-body h3 { margin: 0; font-size: 15px; }
.sg-product-body p { margin: 0; }
.sg-section { margin: 28px 0; }
.sg-section h2 { font: 800 22px Manrope, sans-serif; }

/* Promo cards */
.sg-promos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 28px; }
.sg-promo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--sg-line); }
.sg-promo h2 { margin: 0 0 6px; font: 800 20px Manrope, sans-serif; }
.sg-promo p { margin: 0; color: var(--sg-muted); font-size: 14px; }
.sg-promo-green { background: linear-gradient(120deg, var(--sg-green-dark), var(--sg-green)); color: #fff; border: 0; }
.sg-promo-green p { color: #d6efe1; }

@media (max-width: 800px) {
  /* keep navigation visible at the top as a scrollable row */
  .sg-header { flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; }
  .sg-nav { display: flex !important; order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; white-space: nowrap; font-size: 13px; scrollbar-width: none; }
  .sg-search { display: block !important; order: 4; width: 100%; max-width: none; margin: 0; }
  .sg-hero { grid-template-columns: 1fr; padding: 20px; }
  .sg-catalogue { grid-template-columns: 1fr; }
  .sg-filters { position: static; }
  .sg-promos { grid-template-columns: 1fr; }
  .sg-promo, .sg-branchbar { flex-direction: column; align-items: flex-start; }
}

/* Simple look: plain white hero, one accent colour */
.sg-hero { display: block; background: #fff; padding: 36px 32px; text-align: center; }
.sg-hero-copy { max-width: 640px; margin: 0 auto; }
.sg-hero-tags { margin-bottom: 12px; }
.sg-locate { text-align: left; }
.sg-locate-actions { justify-content: center; }
.sg-rx-line { text-align: center; color: var(--sg-muted); margin: 28px 0 0; }
.sg-rx-line a { color: var(--sg-green); }
.sg-nav { gap: 28px; font-size: 15px; }
.sg-footer a { color: var(--sg-green-dark); }
