.shop-topbar {
    background: #08213a;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}
.shop-topbar a { color: rgba(255,255,255,.9); text-decoration: none; margin-right: 18px; }
.shop-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-topbar-right a { margin-right: 0; margin-left: 16px; }
.shop-header { background: #fff; border-bottom: 1px solid #eaeef2; padding: 14px 0; }
.shop-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.shop-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.shop-brand img { width: 72px; height: 72px; object-fit: contain; }
.shop-brand strong { display: block; color: #1b3a5c; font-size: 27px; line-height: 1.1; }
.shop-brand span { color: #0a5c38; font-weight: 600; font-size: 14px; }
.shop-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.shop-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 24px; background: #e8f5ee;
    color: #0a5c38; font-weight: 700; text-decoration: none;
}
.shop-pill.primary { background: #f0a500; color: #fff; }
.shop-pill.dark { background: #0a5c38; color: #fff; }
.shop-nav { background: #0a5c38; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.shop-nav ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.shop-nav a { display: block; color: rgba(255,255,255,.9); text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .4px; padding: 16px 17px; text-decoration: none; white-space: nowrap; }
.shop-nav a:hover, .shop-nav a.active { color: #f0a500; }
.category-strip { background: #fff; border-bottom: 1px solid #e4ece8; }
.category-strip ul { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; }
.category-strip a { display: block; color: #1b3a5c; background: #f6faf8; border: 1px solid #e4ece8; border-radius: 20px; padding: 8px 14px; font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.category-strip a:hover { background: #e8f5ee; color: #0a5c38; }
.shop-hero {
    background: linear-gradient(135deg, #f5fbf8 0%, #fff8e7 100%);
    color: #1b3a5c; padding: 42px 0;
}
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 26px; align-items: stretch; }
.shop-hero h1 { color: #1b3a5c; font-size: 44px; line-height: 1.12; margin-bottom: 14px; font-weight: 900; }
.shop-hero p { max-width: 650px; font-size: 18px; color: #53645e; margin-bottom: 26px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-kicker { color: #0a5c38; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; font-size: 13px; }
.hero-banner { min-height: 360px; border-radius: 8px; overflow: hidden; background: #102f4e; position: relative; box-shadow: 0 18px 40px rgba(27,58,92,.18); }
.hero-banner img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; opacity: .86; }
.hero-banner-card { position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(8,33,58,.9); color: #fff; border-radius: 8px; padding: 20px; }
.hero-banner-card strong { display: block; color: #f0a500; font-size: 26px; margin-bottom: 4px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.hero-stat { background: #fff; border: 1px solid #e4ece8; border-radius: 8px; padding: 14px; box-shadow: 0 8px 20px rgba(10,92,56,.06); }
.hero-stat strong { color: #0a5c38; display: block; font-size: 24px; }
.hero-stat span { color: #53645e; font-size: 13px; font-weight: 700; }
.shop-section { padding: 76px 0; background: #f8fbfa; }
.shop-section.white { background: #fff; }
.shop-section.tight { padding: 46px 0; }
.updates-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.update-card { background: #fff; border: 1px solid #e4ece8; border-radius: 8px; padding: 18px; min-height: 100%; box-shadow: 0 10px 26px rgba(27,58,92,.06); }
.update-card i { color: #f0a500; font-size: 22px; margin-bottom: 10px; }
.update-card h3 { color: #1b3a5c; font-size: 17px; line-height: 1.35; margin-bottom: 8px; font-weight: 900; }
.update-card p { color: #65756f; margin: 0; font-size: 14px; }
.shop-title { text-align: center; margin-bottom: 40px; }
.shop-title .chip { display: inline-flex; gap: 7px; align-items: center; color: #0a5c38; background: #e8f5ee; border-radius: 20px; padding: 7px 15px; font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.shop-title h2 { color: #1b3a5c; font-size: 34px; font-weight: 800; margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card { background: #fff; border: 1px solid #e4ece8; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 32px rgba(10,92,56,.08); display: flex; flex-direction: column; min-height: 100%; }
.course-media { height: 180px; background: #e8f5ee; position: relative; overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-badge { position: absolute; top: 14px; left: 14px; background: #f0a500; color: #fff; border-radius: 18px; padding: 5px 12px; font-size: 12px; font-weight: 800; }
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { color: #1b3a5c; font-size: 21px; margin-bottom: 10px; font-weight: 800; }
.course-category { color: #0a5c38; font-weight: 800; font-size: 13px; margin-bottom: 10px; display: inline-block; text-decoration: none; }
.course-meta { display: flex; gap: 14px; color: #65756f; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.course-body p { color: #53645e; margin-bottom: 18px; line-height: 1.55; }
.course-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.course-price { color: #0a5c38; font-size: 24px; font-weight: 900; }
.course-price-row del { color: #9aa8a3; font-size: 14px; font-weight: 700; }
.subject-link { margin-top: 16px; color: #1b3a5c; font-weight: 900; text-decoration: none; display: inline-flex; }
.subject-link:hover { color: #f0a500; }
.portal-band { background: #0b2b4a; color: #fff; padding: 58px 0; }
.portal-band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 28px; align-items: center; }
.portal-band h2 { color: #fff; font-size: 34px; font-weight: 900; margin-bottom: 12px; }
.portal-band p { color: rgba(255,255,255,.78); font-size: 17px; }
.portal-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-feature { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 18px; }
.portal-feature strong { color: #f0a500; font-size: 24px; display: block; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.story-card { background: #fff; border: 1px solid #e4ece8; border-radius: 8px; padding: 18px; text-align: center; box-shadow: 0 10px 26px rgba(27,58,92,.06); }
.story-avatar { width: 76px; height: 76px; border-radius: 50%; background: #e8f5ee; display: inline-flex; align-items: center; justify-content: center; color: #0a5c38; font-size: 30px; margin-bottom: 12px; }
.story-card h3 { color: #1b3a5c; font-size: 17px; font-weight: 900; margin-bottom: 5px; }
.story-card p { color: #65756f; font-size: 14px; margin: 0; }
.cta-panel { background: linear-gradient(90deg, #0a5c38, #1b3a5c); color: #fff; border-radius: 8px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cta-panel h2 { color: #fff; font-weight: 900; margin-bottom: 8px; }
.cta-panel p { margin: 0; color: rgba(255,255,255,.78); }
.shop-btn {
    border: 0; background: #0a5c38; color: #fff; padding: 11px 16px; border-radius: 6px;
    font-weight: 800; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
}
.shop-btn:hover { background: #073f27; color: #fff; }
.shop-btn.gold { background: #f0a500; }
.shop-btn.gold:hover { background: #d4920a; }
.shop-btn.light { background: #e8f5ee; color: #0a5c38; }
.shop-panel { background: #fff; border: 1px solid #e4ece8; border-radius: 8px; box-shadow: 0 12px 32px rgba(10,92,56,.08); padding: 24px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid #e4ece8; padding: 14px 10px; vertical-align: middle; }
.cart-table th { color: #1b3a5c; font-weight: 800; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #d7e4df; border-radius: 6px; overflow: hidden; }
.qty-control button { width: 34px; height: 34px; border: 0; background: #f4faf7; color: #0a5c38; font-weight: 900; }
.qty-control span { min-width: 38px; text-align: center; font-weight: 800; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: #53645e; }
.summary-row.total { border-top: 1px solid #e4ece8; padding-top: 14px; color: #1b3a5c; font-size: 20px; font-weight: 900; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.shop-form label { color: #1b3a5c; font-weight: 800; margin-bottom: 7px; display: block; }
.shop-form input, .shop-form textarea, .shop-form select {
    width: 100%; border: 1px solid #d7e4df; border-radius: 6px; min-height: 46px;
    padding: 10px 13px; margin-bottom: 16px; color: #31443d; background: #fff;
}
.shop-form textarea { min-height: 92px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.notice-box { background: #fff8e7; border: 1px solid #f2d48b; color: #75510b; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.empty-cart { text-align: center; padding: 44px 20px; color: #53645e; }
.empty-cart i { color: #f0a500; font-size: 46px; margin-bottom: 12px; }
.toast-message {
    position: fixed; right: 18px; bottom: 18px; background: #1b3a5c; color: #fff;
    padding: 13px 18px; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.24); z-index: 9999;
}
.shop-footer { background: #071d18; color: rgba(255,255,255,.78); padding: 40px 0 20px; }
.shop-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.shop-footer h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.shop-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 991px) {
    .course-grid, .checkout-layout, .shop-hero-grid, .portal-band-grid { grid-template-columns: 1fr; }
    .updates-grid, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-hero h1 { font-size: 34px; }
    .shop-header-inner { align-items: flex-start; flex-direction: column; }
    .shop-actions { justify-content: flex-start; }
}
@media (max-width: 575px) {
    .shop-brand strong { font-size: 22px; }
    .shop-brand img { width: 58px; height: 58px; }
    .shop-hero { padding: 34px 0; }
    .shop-hero h1 { font-size: 28px; }
    .hero-stats, .updates-grid, .story-grid, .portal-features { grid-template-columns: 1fr; }
    .hero-banner, .hero-banner img { min-height: 280px; }
    .cta-panel { align-items: flex-start; flex-direction: column; padding: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-table tr { display: block; border-bottom: 1px solid #e4ece8; padding: 10px 0; }
    .cart-table td { display: flex; justify-content: space-between; border: 0; padding: 8px 0; gap: 12px; }
    .cart-table td::before { content: attr(data-label); font-weight: 800; color: #1b3a5c; }
}
