/*
Theme Name: CodeForge Java Academy
Theme URI: https://example.com/
Author: OpenAI
Description: A lightweight one-page WooCommerce theme for selling Java programming courses.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: codeforge-java
*/

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --dark: #0b1120;
  --dark-2: #101828;
  --accent: #f97316;
  --accent-dark: #d95e0b;
  --accent-soft: #fff1e8;
  --success: #16a34a;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 60px rgba(17, 24, 39, .08);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(78px, 9vw, 126px) 0; }
.section-sm { padding: 28px 0; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head h2,
.split-copy h2,
.cta-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.section-head p,
.split-copy p,
.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 10px 30px rgba(249,115,22,.24); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: white; }
.btn-light { border-color: var(--line); background: white; color: var(--ink); }
.btn-light:hover { border-color: #cbd5e1; box-shadow: 0 10px 25px rgba(17,24,39,.06); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,248,250,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: white; background: var(--ink); border-radius: 10px; font-family: "JetBrains Mono", monospace; font-size: 14px;
}
.brand span:last-child { font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 28px; color: #475467; font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; width: 44px; height: 44px; border-radius: 50%; background: white; border: 1px solid var(--line); display: grid; place-items: center; }
.cart-count { position: absolute; right: -2px; top: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: white; font-size: 10px; display: grid; place-items: center; font-weight: 800; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 50%; }

.hero { padding: clamp(72px, 10vw, 126px) 0 66px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.hero h1 { margin: 0; max-width: 790px; font-size: clamp(52px, 7vw, 92px); line-height: .96; letter-spacing: -.058em; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 680px; margin: 26px 0 0; color: #475467; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.7; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 32px; color: #475467; font-size: 13px; font-weight: 700; }
.hero-notes span { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-visual { position: relative; min-height: 560px; }
.hero-orb { position: absolute; inset: 5% 2% auto auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb98c, #f97316 45%, #d95708 75%); filter: saturate(.92); }
.code-window { position: absolute; left: 0; right: 20px; top: 74px; background: #0a0f1c; color: #d0d5dd; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; box-shadow: 0 40px 100px rgba(7,11,20,.28); overflow: hidden; transform: rotate(-2deg); }
.code-top { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.dots { display: flex; gap: 7px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #344054; }
.code-file { font-size: 11px; color: #98a2b3; font-family: "JetBrains Mono", monospace; }
pre.java-code { margin: 0; padding: 28px 24px 34px; overflow: auto; font: 500 13px/1.85 "JetBrains Mono", ui-monospace, monospace; }
.code-k { color: #c084fc; } .code-s { color: #f9a8d4; } .code-f { color: #67e8f9; } .code-c { color: #667085; }
.floating-badge { position: absolute; right: 0; bottom: 72px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; min-width: 190px; }
.floating-badge strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.floating-badge span { color: var(--muted); font-size: 12px; font-weight: 700; }

.value-strip { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.value-item { padding: 24px 28px; border-right: 1px solid var(--line); }
.value-item:last-child { border-right: 0; }
.value-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.value-item span { color: var(--muted); font-size: 12px; }

.split { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.fact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.fact-num { color: var(--accent); font-weight: 900; font-size: 13px; }
.fact h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.fact p { margin: 0; color: var(--muted); line-height: 1.65; }

.courses { background: var(--dark); color: white; }
.courses .section-head p { color: #98a2b3; }
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.course-card { position: relative; display: flex; flex-direction: column; min-height: 590px; padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.035); }
.course-card.featured { background: white; color: var(--ink); transform: translateY(-14px); box-shadow: 0 35px 80px rgba(0,0,0,.26); }
.course-card .label { color: #98a2b3; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.course-card.featured .label { color: var(--accent); }
.popular { position: absolute; right: 24px; top: 24px; padding: 8px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.course-card h3 { margin: 12px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.course-desc { margin: 0; color: #98a2b3; min-height: 52px; line-height: 1.6; font-size: 14px; }
.course-card.featured .course-desc { color: var(--muted); }
.price { margin: 28px 0 22px; font-size: 44px; font-weight: 900; letter-spacing: -.06em; }
.price .woocommerce-Price-currencySymbol { font-size: .55em; vertical-align: super; margin-right: 2px; }
.price del { font-size: .5em; opacity: .45; font-weight: 700; }
.price ins { text-decoration: none; }
.course-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 13px; }
.course-card li { position: relative; padding-left: 25px; color: #cbd5e1; font-size: 14px; line-height: 1.5; }
.course-card.featured li { color: #475467; }
.course-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.course-card .btn { margin-top: auto; width: 100%; }
.course-card:not(.featured) .btn { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); color: white; }
.course-card:not(.featured) .btn:hover { background: rgba(255,255,255,.14); }
.product-missing { padding: 12px 14px; background: #3f1d12; color: #fed7aa; border: 1px solid #7c2d12; border-radius: 10px; font-size: 12px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; border-radius: 18px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 20px 22px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th { background: #fbfcfd; font-size: 13px; }
.compare-table td { font-size: 14px; }
.check { color: var(--success); font-weight: 900; }
.dash { color: #cbd5e1; }

.path { background: white; }
.path-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-step { padding: 34px 26px 38px; border-right: 1px solid var(--line); }
.path-step:last-child { border-right: 0; }
.path-step .n { color: var(--accent); font-size: 12px; font-weight: 900; margin-bottom: 54px; display: block; }
.path-step h3 { margin: 0 0 10px; font-size: 20px; }
.path-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.project { min-height: 360px; background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.project-top { min-height: 205px; padding: 22px; background: #0b1120; color: #d0d5dd; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.7; }
.project-body { padding: 22px; }
.project-body h3 { margin: 0 0 8px; font-size: 19px; }
.project-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag { padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: #475467; font-size: 10px; font-weight: 800; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 20px; padding: 25px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.acc-num { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.acc-title { font-size: 18px; font-weight: 800; color: var(--ink); }
.acc-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel-inner { padding: 0 0 26px 112px; max-width: 760px; color: var(--muted); line-height: 1.7; }
.acc-item.open .acc-icon { transform: rotate(45deg); }

.why-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-item { padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.why-item strong { display: block; margin-bottom: 12px; font-size: 21px; letter-spacing: -.02em; }
.why-item p { margin: 0; color: var(--muted); line-height: 1.7; }

.instructor { background: #f0f2f5; }
.instructor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.instructor-placeholder { min-height: 430px; display: grid; place-items: center; background: linear-gradient(145deg,#151c2d,#0b1120); border-radius: 26px; color: #98a2b3; border: 1px solid rgba(255,255,255,.06); }
.placeholder-inner { text-align: center; padding: 30px; }
.placeholder-avatar { width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 26px; }
.placeholder-inner strong { color: white; display: block; margin-bottom: 6px; }

.faq { max-width: 900px; margin: 0 auto; }
.faq .acc-panel-inner { padding-left: 0; padding-right: 80px; }
.faq .acc-btn { grid-template-columns: 1fr 40px; }

.final-cta { padding: 0 0 90px; }
.cta-box { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: 360px; padding: clamp(38px,6vw,72px); border-radius: 30px; background: var(--dark); color: white; overflow: hidden; position: relative; }
.cta-box::after { content: "{}"; position: absolute; right: -30px; bottom: -90px; font: 900 250px/1 "JetBrains Mono", monospace; color: rgba(255,255,255,.035); }
.cta-copy p { color: #98a2b3; }
.cta-actions { display: flex; justify-content: flex-end; gap: 12px; position: relative; z-index: 2; }
.cta-actions .btn-light { background: transparent; border-color: rgba(255,255,255,.18); color: white; }

.site-footer { background: #080c16; color: white; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(2,.8fr); gap: 40px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-copy { color: #98a2b3; max-width: 420px; font-size: 14px; line-height: 1.7; }
.footer-col strong { display: block; margin-bottom: 14px; font-size: 13px; }
.footer-col a { display: block; color: #98a2b3; margin: 10px 0; font-size: 13px; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; color: #667085; font-size: 12px; }

.page-shell { min-height: 70vh; padding: 80px 0; }
.page-shell h1 { font-size: clamp(38px,5vw,64px); letter-spacing: -.04em; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 12px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  background: var(--ink); color: white; border-radius: 999px; padding: 14px 20px; font-weight: 800;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--accent); color: white; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--accent); background: white; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }
.woocommerce-cart table.cart img { width: 62px; }
.woocommerce table.shop_table { background: white; border-color: var(--line); border-radius: 16px; overflow: hidden; }
.woocommerce-checkout #payment { background: white; border: 1px solid var(--line); border-radius: 16px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 48px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 10px; background: white;
}
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce div.product .product_title { font-size: clamp(36px,4vw,58px); letter-spacing: -.04em; }

@media (max-width: 1024px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); padding: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions .btn { display: none; }
  .hero-grid, .split, .instructor-grid, .cta-box { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; max-width: 700px; width: 100%; margin: 0 auto; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: auto; }
  .course-card.featured { transform: none; }
  .path-grid, .value-grid { grid-template-columns: repeat(2,1fr); }
  .path-step:nth-child(2), .value-item:nth-child(2) { border-right: 0; }
  .path-step:nth-child(-n+2), .value-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .header-inner { min-height: 70px; }
  .brand span:last-child { font-size: 16px; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-visual { min-height: 405px; }
  .hero-orb { width: 270px; height: 270px; right: -20px; }
  .code-window { top: 55px; right: 0; transform: none; }
  pre.java-code { font-size: 10.5px; padding: 22px 16px 26px; }
  .floating-badge { bottom: 10px; right: 10px; min-width: 160px; }
  .value-grid, .path-grid, .why-grid { grid-template-columns: 1fr; }
  .value-item, .path-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .value-item:last-child, .path-step:last-child { border-bottom: 0; }
  .why-grid { border-left: 0; }
  .why-item { border-left: 1px solid var(--line); }
  .course-card { padding: 24px; }
  .acc-btn { grid-template-columns: 65px 1fr 36px; gap: 12px; }
  .acc-panel-inner { padding-left: 77px; }
  .faq .acc-btn { grid-template-columns: 1fr 36px; }
  .faq .acc-panel-inner { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Custom WooCommerce course product page */
.course-product-page { background: var(--surface); }
.product-hero { position: relative; overflow: hidden; padding: 38px 0 88px; background: linear-gradient(180deg,#fbfcfd 0%,#f7f8fa 100%); }
.product-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -240px; top: 70px; border-radius: 50%; background: radial-gradient(circle,rgba(249,115,22,.14),rgba(249,115,22,0) 70%); pointer-events: none; }
.product-breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 58px; color: var(--muted); font-size: 12px; font-weight: 700; }
.product-breadcrumbs a { color: #475467; }
.product-breadcrumbs a:hover { color: var(--accent); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.72fr); gap: clamp(54px,8vw,110px); align-items: start; position: relative; z-index: 1; }
.product-hero-copy h1 { max-width: 820px; margin: 0; font-size: clamp(48px,6.3vw,84px); line-height: .98; letter-spacing: -.055em; }
.product-lead { max-width: 760px; margin: 24px 0 0; color: #475467; font-size: clamp(17px,1.55vw,20px); line-height: 1.75; }
.product-proof-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; color: #475467; font-size: 13px; font-weight: 800; }
.product-proof-row span { position: relative; padding-left: 15px; }
.product-proof-row span::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.product-code-card { max-width: 720px; margin-top: 40px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: #0a0f1c; box-shadow: 0 32px 80px rgba(17,24,39,.14); color: #d0d5dd; }
.product-code-card pre, .project-terminal pre { margin: 0; padding: 28px 26px 32px; overflow: auto; font: 500 12.5px/1.8 "JetBrains Mono",ui-monospace,monospace; white-space: pre; }
.product-purchase-card { position: sticky; top: 108px; }
.purchase-card-inner { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 24px 70px rgba(16,24,40,.09); }
.purchase-level { display: inline-flex; margin-bottom: 18px; padding: 7px 10px; border-radius: 999px; background: #fff3eb; color: #c14f08; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.purchase-card-inner h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.purchase-excerpt { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.purchase-excerpt p { margin: 0; }
.purchase-price { margin: 25px 0 22px; color: var(--ink); font-size: clamp(34px,4vw,46px); line-height: 1; font-weight: 900; letter-spacing: -.045em; }
.purchase-price del { margin-right: 8px; color: #98a2b3; font-size: .55em; font-weight: 700; }
.purchase-price ins { text-decoration: none; }
.course-add-to-cart form.cart { margin: 0 0 24px !important; }
.course-add-to-cart .single_add_to_cart_button.button { width: 100%; min-height: 54px; border-radius: 999px !important; background: var(--accent) !important; color: white !important; font-size: 15px !important; font-weight: 900 !important; box-shadow: 0 12px 28px rgba(249,115,22,.22); }
.course-add-to-cart .single_add_to_cart_button.button:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }
.course-add-to-cart .quantity { display: none !important; }
.purchase-list { display: grid; gap: 13px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.purchase-list li { position: relative; padding-left: 25px; color: #475467; font-size: 13px; line-height: 1.45; }
.purchase-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.purchase-note { margin: 20px 0 0; color: #98a2b3; font-size: 11px; text-align: center; }
.product-unavailable { padding: 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; }
.product-subnav { position: sticky; top: 78px; z-index: 20; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.admin-bar .product-subnav { top: 110px; }
.product-subnav-inner { min-height: 58px; display: flex; align-items: center; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.product-subnav-inner::-webkit-scrollbar { display: none; }
.product-subnav a { white-space: nowrap; color: #667085; font-size: 12px; font-weight: 800; }
.product-subnav a:hover { color: var(--ink); }
.product-overview-grid { display: grid; grid-template-columns: 1.05fr .75fr; gap: clamp(54px,8vw,110px); align-items: start; }
.product-overview-copy h2, .project-copy-block h2 { margin: 0 0 18px; max-width: 720px; font-size: clamp(36px,4.5vw,60px); line-height: 1.03; letter-spacing: -.045em; }
.product-description-copy, .product-overview-copy > p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.product-description-copy p { margin: 0 0 16px; }
.best-for-box { margin-top: 34px; padding: 24px 26px; border-left: 3px solid var(--accent); background: white; }
.best-for-box span { display: block; margin-bottom: 7px; color: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.best-for-box p { margin: 0; color: #475467; font-size: 14px; line-height: 1.65; }
.outcome-panel { padding: 34px; border-radius: 22px; background: var(--dark); color: white; }
.outcome-label { display: block; margin-bottom: 26px; color: #98a2b3; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.outcome-panel ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.outcome-panel li { position: relative; padding: 17px 0 17px 34px; border-top: 1px solid rgba(255,255,255,.08); color: #e4e7ec; font-size: 14px; line-height: 1.55; }
.outcome-panel li::before { content: "↗"; position: absolute; left: 2px; top: 16px; color: var(--accent); font-weight: 900; }
.product-curriculum-section { background: white; }
.course-product-accordion { max-width: 1000px; }
.product-project-section { background: #eef1f5; }
.product-project-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px,8vw,100px); align-items: center; }
.project-copy-block p:not(.eyebrow) { max-width: 570px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.product-project-tags { margin-top: 24px; }
.project-terminal { overflow: hidden; min-height: 390px; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: #0a0f1c; color: #d0d5dd; box-shadow: 0 34px 80px rgba(16,24,40,.16); }
.project-terminal pre { padding: 44px 34px; font-size: 13px; line-height: 1.9; }
.product-process-section { background: white; }
.product-path-grid { background: #fff; }
.product-faq { max-width: 920px; }
.product-bottom-cta { padding: 0 0 80px; }
.product-bottom-cta-box { display: grid; grid-template-columns: 1fr auto; gap: 38px; align-items: center; padding: clamp(36px,5vw,62px); border-radius: 28px; background: var(--dark); color: white; overflow: hidden; position: relative; }
.product-bottom-cta-box::after { content: "</>"; position: absolute; right: -38px; bottom: -68px; color: rgba(255,255,255,.035); font: 900 180px/1 "JetBrains Mono",monospace; }
.product-bottom-cta-box h2 { margin: 0 0 12px; font-size: clamp(34px,4vw,54px); line-height: 1.04; letter-spacing: -.045em; }
.product-bottom-cta-box p:not(.eyebrow) { margin: 0; color: #98a2b3; }
.bottom-purchase { position: relative; z-index: 1; text-align: right; }
.bottom-price { margin-bottom: 14px; font-size: 34px; font-weight: 900; letter-spacing: -.04em; }
.bottom-price del { color: #667085; font-size: .6em; }
.bottom-price ins { text-decoration: none; }
.next-course-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 22px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.next-course-link span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.next-course-link strong { font-size: 16px; }
.product-anchor { display: block; position: absolute; top: 0; }

/* Remove wrapper spacing introduced by WooCommerce content hooks on our custom course page. */
body.single-product .woocommerce-notices-wrapper { width: min(var(--container),calc(100% - 40px)); margin: 18px auto 0; }
body.single-product .site-main { width: 100%; }

@media (max-width: 1024px) {
  .product-hero-grid, .product-overview-grid, .product-project-grid { grid-template-columns: 1fr; }
  .product-purchase-card { position: static; max-width: 680px; }
  .product-code-card { max-width: 100%; }
  .product-project-grid { gap: 40px; }
  .product-bottom-cta-box { grid-template-columns: 1fr; }
  .bottom-purchase { text-align: left; }
}

@media (max-width: 782px) {
  .admin-bar .product-subnav { top: 116px; }
}

@media (max-width: 680px) {
  .product-hero { padding: 28px 0 58px; }
  .product-breadcrumbs { margin-bottom: 38px; }
  .product-hero-copy h1 { font-size: clamp(44px,13vw,64px); }
  .product-code-card pre, .project-terminal pre { font-size: 10.5px; padding: 22px 17px 26px; }
  .purchase-card-inner { padding: 23px; border-radius: 19px; }
  .product-subnav { top: 70px; }
  .product-subnav-inner { gap: 24px; min-height: 54px; }
  .outcome-panel { padding: 25px; }
  .project-terminal { min-height: 300px; border-radius: 18px; }
  .product-bottom-cta-box { padding: 30px 24px; border-radius: 20px; }
  .bottom-purchase .btn { width: 100%; }
  .next-course-link { align-items: flex-start; flex-direction: column; }
}

/* v1.2 product imagery + fuller course page */
.course-thumb {
  margin: -6px -6px 20px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1527;
  border: 1px solid rgba(255,255,255,.08);
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-card.featured .course-thumb {
  background: #eef2f7;
  border-color: rgba(17,24,39,.08);
}

.product-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 860px;
}
.snapshot-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 30px rgba(17,24,39,.04);
}
.snapshot-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.snapshot-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.product-sidebar-stack {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  align-self: start;
}
.product-visual-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 24px 70px rgba(16,24,40,.08);
}
.product-visual-image {
  aspect-ratio: 5 / 4;
  background: #e5e7eb;
}
.product-visual-image img,
.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-visual-fallback {
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  background: linear-gradient(145deg,#151c2d,#0b1120);
  color: white;
}
.product-visual-fallback .visual-kicker {
  display: block;
  margin-bottom: 8px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.product-visual-fallback strong {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.product-visual-caption {
  display: grid;
  gap: 8px;
  padding: 18px 20px 22px;
}
.product-visual-caption strong {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.product-visual-caption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.product-purchase-card {
  position: static;
}

.product-inside-section {
  background: #f8fafc;
}
.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}
.inside-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 16px 50px rgba(16,24,40,.05);
}
.inside-card.dark {
  background: var(--dark);
  color: white;
  border-color: rgba(255,255,255,.06);
}
.inside-card.accent {
  background: linear-gradient(180deg,#fff7ed 0%,#ffffff 100%);
}
.inside-label {
  display: block;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.inside-list,
.inside-pills {
  margin: 0;
  padding: 0;
  list-style: none;
}
.inside-list {
  display: grid;
  gap: 14px;
}
.inside-list li {
  position: relative;
  padding-left: 24px;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}
.inside-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}
.inside-card.dark .inside-label { color: #fdba74; }
.inside-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inside-pills li {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #e4e7ec;
  font-size: 12px;
  font-weight: 700;
}
.inside-points {
  display: grid;
  gap: 18px;
}
.inside-point {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.inside-point strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(249,115,22,.1);
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: .06em;
}
.inside-point p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .product-sidebar-stack { position: static; }
  .product-snapshot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inside-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .course-thumb { margin: -2px -2px 18px; }
  .product-snapshot-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .snapshot-card { padding: 16px; border-radius: 16px; }
  .product-visual-card { border-radius: 18px; }
  .inside-card { padding: 22px; border-radius: 18px; }
}
