/* Shared storefront theme. Load after the existing page styles. */
body.mall-site {
  color-scheme: light;
  --ink: #21352f;
  --muted: #6d7b74;
  --deep: #f7f8f5;
  --canvas: #f7f8f5;
  --panel: #ffffff;
  --line: #e2e8e1;
  --accent: #216647;
  --accent-dark: #174c34;
  --gold: #b24c26;
  background: var(--deep);
  color: var(--ink);
}
.mall-site .site-header { background: #fff; padding: 18px max(24px, calc((100vw - 1180px) / 2)); gap: 32px; min-height: 88px; }
.mall-site .brand { gap: 11px; color: #1c4934; }
.mall-site .brand img { width: 44px; height: 44px; border-radius: 12px; }
.mall-site .brand-copy { display: grid; line-height: 1.35; }
.mall-site .brand-copy b { font-size: 19px; }
.mall-site .brand-copy small { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.mall-site nav { gap: 30px; color: #58675e; }
.mall-site nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.mall-site .order-main { max-width: 1252px; padding: 36px 36px 64px; }
.mall-site h1 { font-size: 36px; line-height: 1.35; }
.mall-site h2 { font-size: 25px; line-height: 1.45; }
.mall-site h3 { font-size: 19px; }
.mall-site .lead { color: #68766d; font-size: 15px; }
.mall-site .eyebrow { font-size: 12px; margin-bottom: 12px; }
.mall-site .button { border-radius: 7px; min-height: 44px; font-size: 14px; padding: 10px 22px; }
.mall-site .button.primary { color: white; background: var(--accent); }
.mall-site .button.primary:hover { background: var(--accent-dark); }
.mall-site .button.secondary { color: #365b45; background: #fff; border: 1px solid #c8d5c9; }
.mall-site .text-link { font-size: 13px; }
.mall-site .hero-links { gap: 10px; margin-top: 24px; }
.mall-site .caption { color: var(--muted); }
.mall-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 36px 44px; border-radius: 14px; background: #eaf0e7; overflow: hidden; }
.mall-hero h1 { font-size: 37px; max-width: 480px; margin: 0 0 16px; }
.mall-hero p { max-width: 460px; }
.mall-featured { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 20px; padding: 22px; background: #fff; border: 1px solid #dce5d8; border-radius: 12px; }
.mall-featured > img { width: 160px; height: 174px; object-fit: contain; background: #112a22; border-radius: 8px; }
.mall-featured h2 { font-size: 20px; margin: 8px 0 12px; }
.mall-featured p { margin-bottom: 8px; }
.mall-featured .mall-price { font-size: 29px; }
.mall-featured .text-link { display: inline-block; margin-top: 8px; }
.mall-pill { display: inline-flex; padding: 3px 9px; background: #edf3e9; color: #3d704d; border-radius: 4px; font-size: 11px; }
.mall-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 25px 14px; border-bottom: 1px solid var(--line); }
.mall-benefits div { display: flex; align-items: center; gap: 12px; }
.mall-benefits .benefit-mark { display: grid; place-items: center; flex: 0 0 38px; height: 38px; background: #edf1e8; color: #477450; border-radius: 50%; font-size: 15px; }
.mall-benefits b { font-size: 13px; display: block; }
.mall-benefits small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.mall-catalog { padding-top: 35px; }
.mall-site .catalog-heading { align-items: center; margin-bottom: 22px; }
.mall-site .catalog-heading h2 { font-size: 25px; }
.mall-site .catalog-heading p { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.mall-tools { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.mall-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.mall-filters button { min-height: 36px; padding: 7px 17px; border: 1px solid var(--line); background: white; color: #6b786f; border-radius: 5px; font-size: 12px; }
.mall-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.mall-search { display: flex; align-items: center; gap: 10px; }
.mall-search label { font-size: 12px; color: var(--muted); }
.mall-search input { width: 240px; padding: 9px 12px; border: 1px solid #d5dfd3; background: #fff; color: var(--ink); border-radius: 5px; font-size: 12px; }
.mall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mall-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mall-card:hover { border-color: #adc6ad; box-shadow: 0 6px 22px #26432e0c; }
.mall-card-media { display: block; padding: 10px 10px 0; }
.mall-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 6px; }
.mall-card-body { padding: 17px; flex: 1; display: flex; flex-direction: column; }
.mall-card h3 { font-size: 17px; line-height: 1.6; margin: 9px 0; }
.mall-card .mall-description { font-size: 12px; color: #6a7970; margin: 0 0 15px; flex: 1; }
.mall-price { color: #b44924; font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; }
.mall-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.mall-price-row small { color: var(--muted); font-size: 11px; }
.mall-card.free .mall-price { font-size: 20px; color: #34704b; }
.mall-card .mall-meta { font-size: 11px; color: var(--muted); margin: 5px 0 14px; }
.mall-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mall-card-actions .button { padding: 8px 6px; min-height: 37px; font-size: 12px; }
.mall-card.free .mall-card-actions { grid-template-columns: 1fr; }
.mall-empty { grid-column: 1 / -1; padding: 36px; background: #fff; border: 1px dashed #cfdbcd; color: var(--muted); border-radius: 8px; }
.mall-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 35px; }
.mall-guide article { padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mall-guide h2 { font-size: 20px; margin-bottom: 10px; }
.mall-guide p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.mall-site .store-help { padding: 28px; background: #eef2e9; border: 0; border-radius: 10px; margin-top: 32px; }
.mall-site .store-help h2 { font-size: 21px; }
.mall-site .store-help p { font-size: 13px; }
.mall-site .page-heading { padding: 12px 0 24px; }
.mall-site .page-heading h1 { font-size: 32px; }
.mall-breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 24px; font-size: 12px; color: var(--muted); }
.mall-breadcrumb a:hover { color: var(--accent); }
.mall-product-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.mall-product-buy { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.mall-product-buy h1 { font-size: 27px; margin: 12px 0; }
.mall-product-buy .lead { font-size: 14px; }
.mall-site .course-price { font-size: 34px; font-weight: 700; color: #b44924; margin: 15px 0 8px; }
.mall-product-buy #course-summary { font-size: 13px; color: #68766d; margin-bottom: 16px; }
.mall-delivery-list { border-top: 1px solid var(--line); margin: 22px 0 0; padding-top: 16px; color: var(--muted); font-size: 12px; }
.mall-delivery-list p { margin: 7px 0; }
.mall-product-buy #buy-course { width: 100%; }
.mall-site .player-wrap { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.mall-site .player-tools { background: #fff; padding: 12px 16px; }
.mall-site .chapter-list li { padding: 10px 13px; border: 1px solid var(--line); background: #f8faf6; border-radius: 4px; font-size: 13px; }
.mall-site .chapter-list button { color: var(--ink); border-color: #d3dfcf; }
.mall-site .chapter-list button[aria-current="true"] { color: var(--accent); background: #edf4e8; }
.mall-site .info-panel { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mall-site .info-panel > p, .mall-site #login-form > p { color: #65766a; }
.mall-site .details-grid, .mall-site .checkout-grid { gap: 24px; }
.mall-site #login-form > input { background: #fafbf8; color: var(--ink); border-color: #cfdacd; border-radius: 6px; }
.mall-site .selected-strip { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.mall-site .selected-strip img { width: 140px; height: 84px; object-fit: cover; border-radius: 6px; }
.mall-site .selected-strip p { color: var(--muted); }
.mall-site .selected-strip > strong, .mall-site .total-line strong, .mall-site .order-summary > strong { color: #b44924; }
.mall-site .pay-option { background: #f1f7ff; border-color: #d0e0f0; }
.mall-site .agreement { color: #69776b; }
.mall-site .notice { background: #fff6e7; color: #785820; border-color: #e9d8b7; }
.mall-site .status-tag.success { background: #e3f2e5; color: #23663b; }
.mall-site .status-tag.waiting { background: #fff0d4; color: #8a5b14; }
.mall-site .status-tag.neutral { background: #edf0ed; color: #627164; }
.mall-site .order-list { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 0 24px; }
.mall-site .order-row:last-child { border-bottom: 0; }
.mall-site .back-link { color: #607464; }
.mall-site .order-steps { font-size: 12px; background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: 7px; gap: 16px; margin-bottom: 24px; }
.mall-site .document-page { background: #f7f8f5; padding-top: 46px; }
.mall-site .home-feature { color: #fff; border-radius: 10px; overflow: hidden; }
.mall-site .home-feature .lead { color: #eef5ef; }
.mall-site .selected-strip img.pay-icon { width: 42px; height: 42px; object-fit: contain; }
.mall-site .document-content p, .mall-site details p, .mall-site .content-first p { color: #66746a; }
.mall-site summary { color: var(--ink); }
.mall-site .content-first, .mall-site .account-note { background: #edf3e9; }
.mall-site .quiz-feedback { background: #edf4e8; }
.mall-site .learning-intro, .mall-site .lesson-card .lesson-meta { color: #597453; }
.mall-site .lesson-card p, .mall-site .instruction-list p { color: #69796b; }
.mall-site .instruction-list li::before { background: #e1ecdc; }
.mall-site .lesson-card { border: 1px solid var(--line); background: white; padding: 0 0 20px; border-radius: 8px; overflow: hidden; }
.mall-site .lesson-card > :not(a:first-child) { margin-left: 18px; margin-right: 18px; }
.mall-site .site-footer { background: white; grid-template-columns: 1fr auto; padding: 32px max(24px, calc((100vw - 1180px) / 2)); gap: 18px; }
.mall-site .footer-brand { color: #40583f; }
.mall-site .footer-links { font-size: 12px; gap: 20px; }
.mall-site .site-footer > p { grid-column: 1 / -1; justify-self: start; width: 100%; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; }
.mall-site .record-link { display: inline-block; margin: 0 0 0 18px; }
.mall-site .footer-service { display: block; color: var(--muted); margin-top: 5px; }
@media (max-width: 1050px) {
  .mall-hero { gap: 24px; padding: 30px; }
  .mall-featured { grid-template-columns: 110px 1fr; padding: 16px; gap: 15px; }
  .mall-featured > img { width: 110px; height: 152px; }
  .mall-featured h2 { font-size: 17px; }
  .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mall-site .site-header { gap: 15px; padding: 18px 24px; }
  .mall-site nav { gap: 24px; justify-content: flex-start; }
  .mall-site .site-footer { grid-template-columns: 1fr; }
  .mall-site .footer-links { justify-content: flex-start; }
  .mall-product-top { grid-template-columns: 1fr; gap: 20px; }
  .mall-benefits { gap: 15px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .mall-site .order-main { padding: 22px 18px 40px; }
  .mall-site .site-header { padding: 16px 18px; }
  .mall-site .brand-copy b { font-size: 18px; }
  .mall-site nav { gap: 22px; font-size: 12px; }
  .mall-hero { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .mall-hero h1 { font-size: 29px; }
  .mall-hero .lead { font-size: 13px; }
  .mall-featured { grid-template-columns: 106px 1fr; padding: 16px; }
  .mall-featured > img { width: 106px; height: 127px; }
  .mall-featured h2 { font-size: 16px; }
  .mall-featured .mall-price { font-size: 25px; }
  .mall-benefits { padding: 22px 2px; gap: 16px 10px; }
  .mall-benefits b { font-size: 12px; }
  .mall-benefits small { font-size: 10px; }
  .mall-benefits .benefit-mark { flex-basis: 32px; height: 32px; }
  .mall-site .catalog-heading { display: flex; gap: 12px; }
  .mall-site .catalog-heading h2 { font-size: 22px; }
  .mall-tools { flex-direction: column; align-items: stretch; gap: 14px; }
  .mall-filters button { padding: 7px 15px; }
  .mall-search { width: 100%; }
  .mall-search input { width: 100%; min-width: 0; }
  .mall-search label { flex-shrink: 0; }
  .mall-grid { gap: 12px; }
  .mall-card-media { padding: 7px 7px 0; }
  .mall-card-body { padding: 12px; }
  .mall-card h3 { font-size: 14px; }
  .mall-card .mall-description { font-size: 11px; }
  .mall-card-actions { grid-template-columns: 1fr; }
  .mall-price { font-size: 24px; }
  .mall-guide { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .mall-guide article { padding: 22px; }
  .mall-site .store-help { padding: 22px; }
  .mall-product-buy { padding: 23px; }
  .mall-product-buy h1 { font-size: 25px; }
  .mall-site .info-panel { padding: 22px; }
  .mall-site .details-grid, .mall-site .checkout-grid { gap: 16px; }
  .mall-site .page-heading h1 { font-size: 27px; }
  .mall-site .selected-strip img { width: 96px; height: 65px; }
  .mall-site .selected-strip h2 { font-size: 19px; }
  .mall-site .selected-strip > strong { width: auto; margin-left: 0; }
  .mall-site .record-link { display: block; margin: 7px 0 0; }
  .mall-site .document-page { padding-top: 32px; }
}
@media (max-width: 360px) { .mall-grid { grid-template-columns: 1fr; } .mall-featured { grid-template-columns: 1fr; } .mall-featured > img { width: 100%; height: auto; aspect-ratio: 16 / 9; } }
