/* ════════════════════════════════════════════════
   ECG SHOP — phan rieng cua website cong khai (ecg_tag/*)
   Load SAU core.css + page.css + theme. Mau chinh dung bien --rpm-* (theme ehealth trong config/ecg_shop.php);
   chi them 2 bien diem nhan vang --shop-gold* (theo template .docs/references/template1.png).
════════════════════════════════════════════════ */

:root {
  --shop-gold:    #c9a24a;
  --shop-gold-lt: #f1d58b;
  --shop-glass:   rgba(255, 255, 255, .72);
}

.shop-body {
  display: flex; flex-direction: column; min-height: 100vh;
  background: linear-gradient(180deg, var(--rpm-teal-lt) 0%, var(--rpm-page) 45%, var(--rpm-page) 100%);
}
.shop-main { flex: 1 0 auto; }
.shop-body .rpm-navbar { position: sticky; top: 0; z-index: 1020; }
/* Landing page: section dich cua link #home/#features/#plans/#faq/#contact khong bi navbar sticky (~60px) che */
.shop-main [id] { scroll-margin-top: 72px; }

/* ── Logo shop (assets/ecg_tag/img/brand-mark.svg) trong navbar / offcanvas / footer ── */
.shop-logo { width: 32px; height: 32px; display: inline-flex; flex-shrink: 0; }
.shop-logo img { width: 32px; height: 32px; display: block; }

/* ── Chon ngon ngu VI | EN ── */
.shop-lang { display: inline-flex; border: 1px solid var(--rpm-border); border-radius: 999px; overflow: hidden; background: #fff; }
.shop-lang a {
  padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .4px;
  color: var(--rpm-muted); text-decoration: none; transition: all .15s;
}
.shop-lang a:hover { color: var(--rpm-teal); background: var(--rpm-teal-lt); }
.shop-lang a.active { color: #fff; background: var(--rpm-teal); }
.shop-lang-mobile { font-size: 13px; font-weight: 700; text-decoration: none; }

/* ── Khung anh san pham: kinh mo, nen sang de anh nen trang van ro ── */
.shop-product-frame {
  background: var(--shop-glass); border: 1px solid rgba(255,255,255,.9); border-radius: 24px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(29, 95, 209, .15);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative;
}
.shop-product-frame img { display: block; height: auto; object-fit: contain; }
.shop-product-frame-lg { padding: 28px 44px; }
.shop-product-frame-lg::before {
  content: ''; position: absolute; inset: -18px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,118,234,.25) 0%, rgba(47,118,234,0) 70%);
}
.shop-product-frame-lg img { width: 100%; max-width: 220px; aspect-ratio: 375 / 660; }
.shop-product-frame-sm { padding: 8px 14px; border-radius: 14px; box-shadow: 0 6px 18px rgba(29, 95, 209, .1); }
.shop-product-frame-sm img { width: 40px; aspect-ratio: 375 / 660; }

/* ── Hero trang chu ── */
/* Anh hero ngang 3:2 (family-hero.jpg) — khong dung khung .shop-product-frame-lg (danh cho anh doc) */
.shop-hero-photo {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto;
  border-radius: 24px; border: 1px solid var(--rpm-border);
  box-shadow: 0 20px 50px rgba(29, 95, 209, .15);
}
.shop-hero {
  position: relative; padding: 56px 0 72px; overflow: hidden;
  background: var(--rpm-teal-lt) url('../img/hero-bg.svg') center bottom / cover no-repeat;
}
.shop-hero .section-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--shop-glass); color: var(--shop-gold); border: 1px solid rgba(201,162,74,.35);
}
.shop-hero-title {
  font-family: 'Sora', sans-serif; font-weight: 700; color: var(--rpm-navy);
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; margin-bottom: 16px; letter-spacing: -.5px;
}
.shop-hero-text { font-size: 16.5px; color: #3a5070; max-width: 560px; }
.shop-hero-price {
  display: inline-block; font-size: 15px; color: var(--rpm-navy);
  padding: 8px 16px; border-radius: 12px; background: var(--shop-glass); border: 1px solid #fff;
}
.shop-hero-price strong { color: var(--rpm-teal); font-size: 20px; }
.btn-lg-shop { padding: 12px 26px; font-size: 14px; letter-spacing: .3px; }
.btn-shop-gold {
  background: linear-gradient(135deg, var(--shop-gold-lt), var(--shop-gold)); color: #3d2e08; border: none;
  border-radius: 999px; font-weight: 700; font-size: 12.5px; padding: 7px 18px; box-shadow: 0 4px 14px rgba(201,162,74,.35);
}
.btn-shop-gold:hover { color: #3d2e08; filter: brightness(1.05); box-shadow: 0 6px 18px rgba(201,162,74,.45); }

/* ── Tieu de chung ── */
.shop-section-title, .shop-page-title {
  font-family: 'Sora', sans-serif; font-weight: 700; color: var(--rpm-navy);
}
.shop-section-title { font-size: 24px; margin-bottom: 18px; }
.shop-section-center { text-align: center; }
.shop-section-center::after {
  content: ''; display: block; width: 48px; height: 3px; margin: 10px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--rpm-teal), var(--shop-gold));
}
.shop-page-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }

/* ── Card kinh mo dung chung trong shop ── */
.shop-main .card {
  background: var(--shop-glass); border: 1px solid rgba(255,255,255,.95) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ── The tinh nang: icon tron xanh / vang xen ke ── */
.shop-features { margin-top: -48px; position: relative; z-index: 1; }
.shop-feature { text-align: center; transition: transform .18s, box-shadow .18s; }
.shop-feature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(29, 95, 209, .14) !important; }
.shop-feature i {
  font-size: 28px; color: #fff; width: 60px; height: 60px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin: 0 auto;
  background: linear-gradient(135deg, var(--rpm-teal-mid), var(--rpm-teal));
  box-shadow: 0 8px 18px rgba(29, 95, 209, .28);
}
.shop-feature-gold i {
  background: linear-gradient(135deg, var(--shop-gold-lt), var(--shop-gold));
  box-shadow: 0 8px 18px rgba(201,162,74,.32);
}
.shop-feature-title { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; color: var(--rpm-navy); margin: 14px 0 6px; }
.shop-feature p { font-size: 14px; color: #4d6180; }

/* ── AI + 2 phien ban + trang thai IMU ── */
.shop-ic { color: var(--rpm-teal); }
.shop-illus { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 12px; }
/* Anh minh hoa the AI (scene-heart.jpg, 3:2) */
.shop-scene-photo { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--rpm-border); }
.shop-check-list { list-style: none; padding: 0; }
.shop-check-list li { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.shop-check-list i {
  color: #fff; font-size: 13px; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--rpm-teal);
}
.shop-model { border: 1px solid var(--rpm-border); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.7); }
.shop-model-name { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--rpm-navy); margin-bottom: 4px; }
.shop-model-name i { color: var(--rpm-teal); }
.shop-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--rpm-teal-lt); color: var(--rpm-teal); margin: 2px 4px 2px 0; }
.shop-tag-accent { background: linear-gradient(135deg, var(--shop-gold-lt), var(--shop-gold)); color: #3d2e08; }
.shop-imu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shop-imu { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--rpm-teal-lt); font-size: 12.5px; text-align: center; color: var(--rpm-navy); }
.shop-imu i { font-size: 22px; color: var(--rpm-teal); }
.shop-imu-alert { background: var(--rpm-danger); color: #fff; }
.shop-imu-alert i { color: #fff; }

/* ── FAQ ── */
.shop-faq .accordion-item { border: 1px solid var(--rpm-border); border-radius: 14px !important; overflow: hidden; margin-bottom: 10px; background: var(--shop-glass); }
.shop-faq .accordion-button { font-weight: 600; color: var(--rpm-navy); background: transparent; }
.shop-faq .accordion-button:not(.collapsed) { background: var(--rpm-teal-lt); color: var(--rpm-teal); box-shadow: none; }
.shop-faq .accordion-button:focus { box-shadow: none; border-color: var(--rpm-border); }

/* ── Bang goi ── */
.shop-device-name { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--rpm-navy); }
.shop-price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 24px; color: var(--rpm-teal); }
.shop-price-unit { font-size: 13px; color: var(--rpm-muted); }
.shop-plan-card { overflow: hidden; transition: box-shadow .18s, transform .18s; }
.shop-plan-card:hover { box-shadow: 0 16px 40px rgba(29, 95, 209, .16) !important; transform: translateY(-3px); }
.shop-plan-head {
  text-align: center; padding: 24px 24px 20px; color: var(--rpm-navy);
  background: linear-gradient(135deg, #f7f9fc 0%, #dfe6ef 55%, #f2f5f9 100%);
  border-bottom: 1px solid var(--rpm-border);
}
.shop-plan-head .shop-price-unit { color: #5d6f88; }
.shop-plan-featured { border: 2px solid var(--shop-gold) !important; }
.shop-plan-featured .shop-plan-head {
  background: linear-gradient(135deg, #f6e3a8 0%, var(--shop-gold) 55%, #e9cc7d 100%); border-bottom-color: rgba(201,162,74,.5);
}
.shop-plan-featured .shop-plan-head .shop-price,
.shop-plan-featured .shop-plan-head .shop-plan-name { color: #3d2e08; }
.shop-plan-featured .shop-plan-head .shop-price-unit { color: #5c4712; }
.shop-plan-featured .shop-plan-facts i { color: var(--shop-gold); }
.shop-plan-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .5px; color: var(--rpm-navy); margin-bottom: 6px; }
.shop-plan-head .shop-price { font-size: clamp(22px, 2.4vw, 26px); }
.shop-plan-head .shop-price, .shop-plan-head .shop-price-unit { white-space: nowrap; }
.shop-plan-head .shop-plan-options { display: inline-block; text-align: left; }
.shop-plan-head .shop-plan-options li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.shop-plan-options li { padding: 4px 0; border-bottom: 1px dashed rgba(11, 42, 91, .15); }
.shop-plan-options li:last-child { border-bottom: none; }
.shop-plan-options .shop-price { font-size: 20px; }
.shop-plan-facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; }
.shop-plan-facts i { color: var(--rpm-teal); font-size: 18px; }

/* ── Trang lien he ── */
.shop-contact-list li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.shop-contact-list i { color: var(--rpm-teal); font-size: 18px; width: 20px; text-align: center; }
.shop-contact-list .lbl { color: var(--rpm-muted); min-width: 90px; }
.shop-form .form-label { font-size: 13px; font-weight: 600; color: var(--rpm-navy); }
.shop-form .form-text { font-size: 12px; }
.shop-form .form-control, .shop-form .form-select { border-radius: 10px; border-color: var(--rpm-border); }
.shop-form .form-control:focus, .shop-form .form-select:focus { border-color: var(--rpm-teal); box-shadow: 0 0 0 .2rem var(--rpm-teal-lt); }
.shop-mail-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px; border-radius: 14px; background: var(--rpm-teal-lt); }
.shop-mail-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop-mail-addr a { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--rpm-navy); word-break: break-all; }

/* ── Footer sang (nhu template) ── */
.shop-footer { background: #e3eefc; color: #4d6180; font-size: 13.5px; margin-top: 32px; border-top: 1px solid var(--rpm-border); }
.shop-footer-brand { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--rpm-navy); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.shop-footer-text { margin-top: 4px; }
.shop-footer-contact li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.shop-footer-contact i { color: var(--rpm-teal); }
.shop-footer-contact a { color: var(--rpm-teal); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.shop-footer-contact a:hover { text-decoration: underline; }
.shop-footer-version { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(11, 42, 91, .1); font-size: 12px; color: var(--rpm-muted); }

@media (max-width: 575.98px) {
  .shop-hero { padding: 28px 0 64px; }
  .shop-product-frame-lg { padding: 16px 28px; }
  .shop-product-frame-lg img { max-width: 150px; }
  .shop-section-title { font-size: 21px; }
}

/* Trinh duyet khong co backdrop-filter: nen kinh mo dac hon de chu van doc ro */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --shop-glass: rgba(255, 255, 255, .94); }
}
