:root {
  --ink: #15191f;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #f6f8fb;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --accent-soft: #e7f5f3;
  --footer: #101820;
}

body {
  color: var(--ink);
  background: #fbfcfd;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-nav {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.brand-mark {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  letter-spacing: 0;
  line-height: 1;
}

.brand-logo-text,
.hero-logo-text,
.footer-brand {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo-text {
  font-size: 1.35rem;
}

.brand-logo-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 3px;
}

.hero-band {
  background:
    radial-gradient(circle at 80% 15%, rgba(15, 118, 110, 0.18), transparent 30%),
    linear-gradient(135deg, #eef6f6 0%, #f9fbfd 54%, #fff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-band .container {
  position: relative;
}

.hero-brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.hero-logo-text {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-size: 1.15rem;
  padding: 10px 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stats-panel > div,
.placeholder-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}

.stats-panel > div {
  min-height: 120px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.stats-panel strong {
  display: block;
  font-size: 2rem;
}

.stats-panel span {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: #f5a400;
  letter-spacing: 0;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-weight: 700;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.35);
}

.product-card {
  border-color: var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.product-image-wrap,
.detail-image-wrap {
  display: block;
  background: var(--panel);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
}

.product-title {
  min-height: 2.5rem;
  line-height: 1.25;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.price,
.price-xl {
  color: var(--accent);
}

.price-xl {
  font-size: 2rem;
  font-weight: 800;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 24px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.placeholder-box {
  display: grid;
  place-items: center;
  color: var(--muted);
  min-height: 180px;
  padding: 18px;
  text-align: center;
}

.quantity-input {
  max-width: 96px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.spec-list dt {
  color: var(--muted);
  font-weight: 600;
}

.spec-list dd {
  margin: 0;
}

.cart-lines {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr 180px 120px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--panel);
  border-radius: 8px;
}

.cart-qty {
  display: flex;
  gap: 8px;
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px 180px auto;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-panel > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.detail-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkout-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.payment-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.payment-panel ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.payment-panel li {
  margin-bottom: 8px;
}

.payment-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 32px;
  align-items: start;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.account-list {
  margin: 0;
}

.account-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.account-list > div:first-child {
  border-top: 0;
}

.account-list dt {
  color: var(--muted);
  font-weight: 600;
}

.account-list dd {
  margin: 0;
}

.page-hero {
  background: #eef6f6;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-weight: 750;
  margin: 0;
}

.legal-page {
  max-width: 880px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 28px;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: #b6c1cc;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 73px);
  background: #f4f7fa;
}

.dashboard-sidebar {
  border-right: 1px solid var(--line);
  background: #111827;
  color: #e5e7eb;
  padding: 22px 16px;
}

.dashboard-sidebar-title {
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav a {
  border-radius: 8px;
  color: #d1d5db;
  padding: 10px 12px;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-header h1 {
  margin: 0;
  font-weight: 750;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.revenue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  display: block;
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 8px 0;
}

.dashboard-card {
  padding: 18px;
}

.chart-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.chart-card {
  min-height: 330px;
}

.chart-card canvas {
  height: 260px !important;
}

.dashboard-filter {
  grid-template-columns: 1fr 220px 180px auto;
}

.dashboard-log-preview {
  background: #0f172a;
  border-radius: 8px;
  color: #d1fae5;
  font-size: 0.82rem;
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.footer-band {
  background: var(--footer);
}

.footer-brand {
  color: #fff;
  font-size: 1.35rem;
}

.footer-band .text-secondary {
  color: #b6c1cc !important;
}

@media (max-width: 768px) {
  .hero-search,
  .filter-bar,
  .detail-panel,
  .account-shell,
  .account-grid,
  .dashboard-shell,
  .metric-grid,
  .revenue-grid,
  .chart-grid,
  .activity-grid,
  .dashboard-filter {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    border-right: 0;
    padding: 16px;
  }

  .dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-main {
    padding: 18px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-band {
    text-align: left;
  }

  .hero-search,
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .brand-logo-tagline {
    display: none;
  }

  .cart-line {
    grid-template-columns: 64px 1fr;
  }

  .cart-line img {
    width: 64px;
    height: 64px;
  }

  .cart-qty,
  .cart-line strong,
  .cart-line form:last-child {
    grid-column: 2;
  }

  .cart-summary,
  .coupon-form {
    display: block;
  }

  .coupon-form .btn {
    width: 100%;
    margin-top: 8px;
  }

  .spec-list > div,
  .account-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
