/* Studio — layout gọn, căn lưới, cover thật, admin kiểu SaaS */
body.skin-g2a .wrap.admin {
  max-width: 1180px;
  padding-top: 22px;
  padding-bottom: 48px;
  gap: 20px;
  grid-template-columns: 200px minmax(0, 1fr);
}
body.skin-g2a .admin > .tabs {
  top: 88px;
  padding: 8px;
  border-radius: 14px;
}
body.skin-g2a .tabs__brand { display: none; }
body.skin-g2a .admin > .tabs a {
  padding: 9px 12px;
  font-size: 13.5px;
  border-radius: 10px;
}
body.is-admin .g2a-cats,
body.is-dash .g2a-cats { display: none; }
body.is-admin .g2a-search { display: none; }

.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
.cover img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.cover--sm {
  width: 88px; height: 56px; aspect-ratio: auto;
  border-radius: 10px; flex: none;
}
.cover--hero { min-height: 220px; aspect-ratio: 16/10; }

.chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--g2a-line);
  background: #fff; color: var(--g2a-ink) !important;
  font: 650 13px/1 var(--font); text-decoration: none !important;
}
.chip:hover, .chip.is-on { border-color: var(--g2a-blue); color: var(--g2a-blue) !important; background: #eef4ff; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.prod {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--g2a-line);
  border-radius: 14px; overflow: hidden;
  min-width: 0;
}
.prod .cover { border-radius: 0; }
.prod__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod__kicker {
  margin: 0; font: 700 10px/1 var(--font); letter-spacing: .08em;
  text-transform: uppercase; color: var(--g2a-muted);
}
.prod__title {
  margin: 0; font-size: 15px; font-weight: 750; line-height: 1.3;
  color: var(--g2a-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod__title a { color: inherit; text-decoration: none; }
.prod__meta { margin: 0; font-size: 12px; color: var(--g2a-muted); }
.prod__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px;
}
.prod__price { font-size: 15px; font-weight: 800; }
.prod__price small { display: block; font-size: 11px; font-weight: 600; color: var(--g2a-muted); }

.hero-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px;
}
.hero-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  color: #fff !important; text-decoration: none !important; min-height: 240px;
}
.hero-card .cover { position: absolute; inset: 0; aspect-ratio: auto; min-height: 100%; }
.hero-card__body {
  position: relative; z-index: 1; height: 100%; min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72));
}
.hero-card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.82); }

.scene { margin: 28px 0; }
.scene__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 12px;
}
.scene__head h2 { margin: 0; font-size: 18px; }
.scene__head p { margin: 0; color: var(--g2a-muted); font-size: 13px; }
.scene-list { display: flex; flex-direction: column; gap: 8px; }
.scene-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 10px; background: #fff; border: 1px solid var(--g2a-line);
  border-radius: 14px; margin: 0;
}
.scene-row h3 { margin: 0 0 2px; font-size: 14.5px; }
.scene-row p { margin: 0; font-size: 12.5px; color: var(--g2a-muted); }

/* Admin / user ops */
.ops-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.ops-head h1, .ops-head h2 { margin: 0; font-size: 20px; font-weight: 750; }
.ops-head p { margin: 4px 0 0; color: var(--g2a-muted); font-size: 13px; }
.ops-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px;
}
.ops-kpi {
  background: #fff; border: 1px solid var(--g2a-line); border-radius: 12px; padding: 12px 14px;
}
.ops-kpi .k { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--g2a-muted); }
.ops-kpi .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; line-height: 1.15; color: var(--g2a-ink); }
.ops-kpi .h { font-size: 12px; color: var(--g2a-muted); margin-top: 4px; }
.ops-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 12px; }
.ops-card {
  background: #fff; border: 1px solid var(--g2a-line); border-radius: 12px; padding: 14px 16px;
}
.ops-card h2 {
  margin: 0 0 12px; font-size: 12px; font-weight: 750;
  letter-spacing: .06em; text-transform: uppercase; color: var(--g2a-muted);
}
.ops-group { margin-bottom: 16px; }
.ops-group:last-child { margin-bottom: 0; }
.ops-group__t {
  margin: 0 0 8px; font-size: 11px; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; color: #8b95a5;
}
.ops-empty { margin: 0; color: var(--g2a-muted); font-size: 13.5px; }
.ops-attn {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--g2a-line); font-size: 13.5px;
}
.ops-attn:last-child { border-bottom: 0; }
.ops-attn b { font-weight: 700; }
.ops-side { display: flex; flex-direction: column; gap: 12px; }
body.skin-g2a .ops-card .chart { max-width: 100%; overflow: hidden; }
body.skin-g2a .ops-card svg.chart, body.skin-g2a .ops-card .chart svg { width: 100%; height: auto; max-height: 180px; }

body.skin-g2a table.g2a-table { font-size: 13px; }
body.skin-g2a table.g2a-table th, body.skin-g2a table.g2a-table td { padding: 9px 8px; vertical-align: middle; }

.g2a-shell { max-width: 1180px; }

body.skin-g2a .gsection {
  background: #fff; border: 1px solid var(--g2a-line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.preview { max-width: 980px; margin: 0 auto; padding: 24px 20px 56px; }
.preview__hero { border-radius: 16px; overflow: hidden; border: 1px solid var(--g2a-line); margin-bottom: 18px; }
.preview__hero .cover { aspect-ratio: 16 / 9; }
.preview h1 { margin: 0 0 6px; font-size: 26px; }
.preview .lead { margin: 0 0 16px; color: var(--g2a-muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.shots .cover { border-radius: 12px; border: 1px solid var(--g2a-line); }
.how { margin: 0; padding-left: 18px; color: var(--g2a-ink); }
.how li { margin: 6px 0; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-row { grid-template-columns: 1fr 1fr; }
  .ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-card, .hero-card__body { min-height: 200px; }
  .scene-row { grid-template-columns: 72px minmax(0,1fr); }
  .scene-row .btn, .scene-row button { grid-column: 1 / -1; }
  body.skin-g2a .wrap.admin { grid-template-columns: 1fr; padding-top: 16px; }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
}

/* G2A-style product page */
.pdp { max-width: 1100px; margin: 0 auto; padding: 20px 20px 48px; }
.pdp-bc { font-size: 13px; color: var(--g2a-muted); margin-bottom: 18px; }
.pdp-bc a { color: var(--g2a-blue); text-decoration: none; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.pdp-gal__main { border-radius: 16px; overflow: hidden; border: 1px solid var(--g2a-line); background: #0b0b10; }
.pdp-gal__main .cover { aspect-ratio: 1 / 1; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pdp-thumbs button {
  width: 72px; height: 72px; padding: 0; border: 2px solid var(--g2a-line);
  border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer;
}
.pdp-thumbs button.is-on { border-color: var(--g2a-blue); }
.pdp-thumbs img, .pdp-thumbs .cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs .cover { aspect-ratio: auto; }
.pdp-buy h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; line-height: 1.2; }
.pdp-kicker { margin: 0 0 8px; font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--g2a-muted); }
.pdp-meta { margin: 0 0 12px; color: var(--g2a-muted); font-size: 13.5px; }
.pdp-meta .ok { color: var(--g2a-green); font-weight: 750; }
.pdp-price { margin: 16px 0 18px; }
.pdp-price strong { display: block; font-size: 32px; letter-spacing: -.03em; }
.pdp-price small { color: var(--g2a-muted); font-size: 13px; }
.pdp-form label { font-size: 12px; }
.pdp-form input { margin: 6px 0 12px; }
.btn--buy {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; border: 0; border-radius: 10px;
  background: #0066ff; color: #fff !important;
  font: 750 15px/1 var(--font); text-decoration: none !important; cursor: pointer;
}
.btn--buy:hover { background: #0052d6; }
.btn--buy.btn--sm {
  width: auto; height: 36px; padding: 0 14px; font-size: 13px;
}
.pdp-offer {
  background: #fff; border: 1px solid var(--g2a-line);
  border-radius: 16px; padding: 20px 22px;
}
.pdp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 750 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  color: var(--g2a-green);
}
.pdp-specs {
  width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 13.5px;
}
.pdp-specs th {
  text-align: start; font-weight: 600; color: var(--g2a-muted);
  padding: 8px 12px 8px 0; border-bottom: 1px solid var(--g2a-line); width: 38%;
}
.pdp-specs td { padding: 8px 0; border-bottom: 1px solid var(--g2a-line); color: var(--g2a-ink); }
.pdp-audience { margin: 0; color: var(--g2a-ink); font-size: 14.5px; }
.search-bar {
  display: flex; align-items: stretch; max-width: 640px;
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--g2a-line); margin: 12px 0 8px;
}
.search-bar input, .search-bar input[type="search"] {
  flex: 1; border: 0 !important; box-shadow: none !important;
  height: 44px; padding: 0 14px; background: transparent !important;
  border-radius: 0 !important; outline: none !important;
}
.search-bar button {
  min-width: 48px; border: 0; background: #0066ff; color: #fff;
  font: 750 16px/1 var(--font); cursor: pointer;
}
.search-bar:focus-within { border-color: #0066ff; box-shadow: 0 0 0 2px rgba(0,87,255,.18); }
.pdp-facts { margin: 16px 0 0; padding: 0; list-style: none; color: var(--g2a-muted); font-size: 13.5px; }
.pdp-facts li { padding: 8px 0; border-top: 1px solid var(--g2a-line); }
.pdp-body { margin-top: 36px; }
.pdp-body h2 { font-size: 18px; margin: 22px 0 10px; }
.pdp-related { margin-top: 36px; }
.pdp-related h2 { font-size: 18px; margin: 0 0 14px; }

.site-foot {
  background: #000; color: rgba(255,255,255,.72);
  padding: 36px 20px calc(28px + var(--bottom-nav-h));
  margin-top: 12px;
}
.site-foot__in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-foot a { color: #25f4ee; text-decoration: none; }
.site-foot h3 { margin: 0 0 10px; color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.site-foot p, .site-foot li { font-size: 13.5px; margin: 0 0 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot__copy { max-width: 1100px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: rgba(255,255,255,.45); }
body.is-admin .site-foot, body.is-dash .site-foot { padding-bottom: 28px; }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-foot__in { grid-template-columns: 1fr; }
}
