:root {
  --ink: #1f2937;
  --muted: #667085;
  --line: #e4eaf3;
  --paper: #ffffff;
  --soft: #f7f9fd;
  --mint: #59bfa6;
  --blue: #6c8bff;
  --coral: #ef6f87;
  --amber: #f6a35c;
  --violet: #8a70d6;
  --green: #7cb342;
  --shadow: 0 18px 45px rgba(32, 45, 72, 0.11);
  --shadow-soft: 0 10px 28px rgba(32, 45, 72, 0.08);
  --radius: 8px;
  --max: 1180px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(108, 139, 255, 0.14);
}

label {
  display: grid;
  gap: 0.45rem;
  color: #344054;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
  text-align: left;
}

th {
  color: #475467;
  font-size: 0.86rem;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-140%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(228, 234, 243, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.94);
}

.nav-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  box-shadow: 0 12px 24px rgba(89, 191, 166, 0.24);
}

.primary-nav,
.nav-search,
.nav-actions {
  display: none;
}

.primary-nav a,
.site-footer a {
  color: #475467;
  font-weight: 700;
}

.primary-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--blue);
}

.menu-toggle {
  justify-self: end;
}

.icon-button,
.icon-link {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 20px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav.is-open {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.5rem;
  padding: 0 0 1rem;
}

.primary-nav.is-open a {
  padding: 0.72rem 0;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #2fae9b, #5b78f6);
  box-shadow: 0 14px 28px rgba(91, 120, 246, 0.2);
}

.btn.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--soft);
}

.btn.small {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.btn.full {
  width: 100%;
}

.text-link,
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  padding: 0;
}

.flash {
  position: fixed;
  left: 50%;
  top: calc(var(--header-height) + 12px);
  z-index: 25;
  display: flex;
  width: min(94%, 560px);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.flash button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
}

.flash.error {
  border-color: rgba(239, 111, 135, 0.4);
}

.flash.warning {
  border-color: rgba(246, 163, 92, 0.5);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 251, 255, 0.96), rgba(240, 250, 247, 0.9) 48%, rgba(255, 247, 242, 0.94)),
    #fff;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  padding: 3.2rem 0 2.4rem;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: 2.4rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: 1.75rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-lede,
.page-hero p,
.section-head p,
.rich-copy p,
.seo-box p {
  color: var(--muted);
}

.hero-lede {
  max-width: 650px;
  font-size: 1.1rem;
}

.hero-actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.4rem 0 1.1rem;
}

.trust-row,
.tag-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-row span,
.tag-row a,
.chips a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.46rem 0.65rem;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 28px 48px rgba(45, 65, 95, 0.14));
  animation: floatArt 7s ease-in-out infinite;
}

.section {
  padding: 4.2rem 0;
}

.soft-band {
  background:
    linear-gradient(135deg, rgba(247, 249, 253, 0.96), rgba(239, 250, 247, 0.9)),
    var(--soft);
}

.metrics-band {
  background:
    linear-gradient(135deg, #233044, #2d6872 54%, #6d6aba);
  color: #fff;
}

.section-head,
.split-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head {
  align-items: flex-start;
  justify-content: space-between;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.product-card,
.category-card,
.review-card,
.blog-card,
.seo-box,
.line-item,
.order-summary,
.checkout-form,
.contact-form,
.contact-aside,
.metric-card,
.admin-panel,
.auth-panel,
.admin-card-grid article {
  border: 1px solid rgba(228, 234, 243, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.product-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.category-card:hover,
.trend-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: block;
  background: #f5f7fb;
}

.product-image img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
}

.product-image span {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.35rem 0.55rem;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.product-body {
  display: grid;
  min-height: 280px;
  gap: 0.55rem;
  padding: 1rem;
}

.product-category {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body p,
.blog-card p,
.category-card p,
.review-card p,
.line-item p,
.order-summary p,
.contact-aside p,
.admin-card-grid p,
.demo-note {
  color: var(--muted);
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: #d99a2b;
  font-weight: 900;
}

.rating-row small {
  color: var(--muted);
  font-weight: 800;
}

.product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.product-footer strong,
.price-row strong {
  display: block;
  font-size: 1.3rem;
}

.product-footer small {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.category-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  min-height: 220px;
  padding: 1.2rem;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, #fff), #fff 56%);
  opacity: 0.72;
  z-index: 0;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trend-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.trend-card img {
  width: 100%;
  aspect-ratio: 1.36;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--soft);
}

.trend-card span,
.blog-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.metric {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.metric strong {
  font-size: 1.9rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.review-grid,
.blog-grid,
.content-grid,
.contact-grid,
.checkout-grid,
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.review-card,
.blog-card,
.seo-box,
.rich-copy,
.order-summary,
.checkout-form,
.contact-form,
.contact-aside {
  padding: 1.2rem;
}

.newsletter-band {
  background:
    linear-gradient(135deg, rgba(255, 247, 242, 0.92), rgba(239, 250, 247, 0.96));
}

.newsletter-shell {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.newsletter-form,
.inline-search,
.search-hero-form {
  display: grid;
  gap: 0.75rem;
}

.page-hero {
  padding: 4rem 0 2.4rem;
  background:
    linear-gradient(135deg, rgba(247, 249, 253, 0.96), rgba(240, 250, 247, 0.86) 52%, rgba(255, 248, 243, 0.9));
}

.page-hero.compact {
  padding: 3rem 0 2rem;
}

.product-detail {
  padding: 2rem 0 3rem;
  background: linear-gradient(135deg, #fff, #f8fbff);
}

.product-detail-grid {
  display: grid;
  gap: 1.4rem;
}

.main-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.main-preview img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.thumb-row button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem;
  background: #fff;
}

.thumb-row button.active,
.thumb-row button:hover {
  border-color: var(--blue);
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: 6px;
  object-fit: cover;
}

.product-summary {
  align-self: start;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.price-row span {
  color: var(--muted);
  font-weight: 800;
  text-decoration: line-through;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.product-meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: #fff;
}

.product-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.2rem;
}

.line-items {
  display: grid;
  gap: 0.8rem;
}

.line-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.85rem;
  padding: 0.8rem;
}

.line-item img {
  width: 92px;
  height: 76px;
  border-radius: var(--radius);
  object-fit: cover;
}

.line-item strong {
  grid-column: 2;
}

.order-summary {
  align-self: start;
  display: grid;
  gap: 0.85rem;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.checkout-form,
.contact-form,
.admin-form {
  display: grid;
  gap: 1rem;
}

.payment-options {
  display: grid;
  gap: 0.6rem;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: #fff;
}

.payment-options input {
  width: auto;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #f8fbff, #eefaf7);
}

.auth-art {
  display: none;
}

.auth-panel {
  align-self: center;
  width: min(100% - 32px, 500px);
  margin: 2rem auto;
  padding: 1.3rem;
}

.auth-panel form {
  display: grid;
  gap: 1rem;
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--blue);
  font-weight: 900;
}

.article-body {
  max-width: 760px;
  padding: 3rem 0;
}

.article-body p {
  color: #475467;
  font-size: 1.08rem;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  background: #f5f7fb;
}

.admin-sidebar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
}

.admin-sidebar nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.admin-sidebar nav a {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  color: #475467;
  font-weight: 800;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  border-color: rgba(108, 139, 255, 0.3);
  background: #eef2ff;
  color: var(--blue);
}

.admin-main {
  padding: 1rem;
}

.admin-topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-metrics,
.admin-grid,
.admin-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.metric-card,
.admin-panel,
.admin-card-grid article {
  padding: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.35rem;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  font-size: 2rem;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.admin-list-row:last-child {
  border-bottom: 0;
}

.analytics-bars {
  display: grid;
  gap: 0.8rem;
}

.analytics-bars span {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: #eef2ff;
  color: #344054;
  font-weight: 900;
}

.analytics-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: rgba(108, 139, 255, 0.18);
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding: 3rem 0 2rem;
}

.footer-grid > div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-grid h2 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.footer-grid p,
.footer-bottom {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.6rem;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatArt {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@media (min-width: 620px) {
  .product-grid,
  .category-grid,
  .blog-grid,
  .review-grid,
  .admin-metrics,
  .admin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .metrics-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-form,
  .inline-search,
  .search-hero-form {
    grid-template-columns: 1fr auto;
  }

  .line-item {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
  }

  .line-item img {
    width: 120px;
    height: 90px;
  }

  .line-item strong {
    grid-column: auto;
  }
}

@media (min-width: 880px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .nav-shell {
    grid-template-columns: auto 1fr minmax(230px, 330px) auto;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav,
  .nav-search,
  .nav-actions {
    display: flex;
    align-items: center;
  }

  .primary-nav {
    gap: 1rem;
    justify-self: center;
  }

  .nav-actions {
    gap: 0.5rem;
    justify-self: end;
  }

  .nav-search input {
    min-height: 42px;
    padding: 0.65rem 0.8rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    padding: 5rem 0 3rem;
  }

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

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

  .category-grid.large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

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

  .content-grid,
  .contact-grid,
  .checkout-grid,
  .cart-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  }

  .section-head,
  .split-hero,
  .newsletter-shell,
  .admin-topbar {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    padding: 2rem;
  }

  .product-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: start;
  }

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

  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  }

  .auth-art {
    display: grid;
    place-items: center;
    padding: 3rem;
  }

  .auth-panel {
    margin: 3rem auto;
    padding: 2rem;
  }

  .admin-shell {
    grid-template-columns: 270px 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .admin-sidebar nav {
    display: grid;
    overflow: visible;
  }

  .admin-main {
    padding: 1.5rem;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  }

  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

html[data-theme="dark"] {
  --ink: #f3f7fb;
  --muted: #a9b7c8;
  --line: #263349;
  --paper: #0f1724;
  --soft: #121c2c;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .admin-shell {
  background: var(--paper);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .seo-box,
html[data-theme="dark"] .line-item,
html[data-theme="dark"] .order-summary,
html[data-theme="dark"] .checkout-form,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-aside,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .auth-panel,
html[data-theme="dark"] .admin-card-grid article,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .path-card,
html[data-theme="dark"] .trust-feature,
html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .profile-card-main,
html[data-theme="dark"] .profile-stat,
html[data-theme="dark"] .profile-sidebar,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .profile-product {
  background: rgba(18, 28, 44, 0.92);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .icon-link,
html[data-theme="dark"] .payment-options label {
  background: #101a2a;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .soft-band,
html[data-theme="dark"] .newsletter-band,
html[data-theme="dark"] .product-detail {
  background: linear-gradient(135deg, #0f1724, #121f32 54%, #172436);
}

.theme-toggle {
  min-width: 50px;
}

.premium-hero {
  position: relative;
}

.hero-3d-stage {
  min-height: 420px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.learning-model {
  position: relative;
  width: min(100%, 470px);
  height: 380px;
  transform-style: preserve-3d;
  animation: floatArt 7s ease-in-out infinite;
}

.model-sheet,
.model-cube,
.book-model,
.card-model,
.desk-plane {
  position: absolute;
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
}

.model-sheet {
  display: grid;
  width: 260px;
  height: 330px;
  place-items: start;
  border: 1px solid rgba(228, 234, 243, 0.85);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.2rem;
  color: #1f2937;
}

.model-sheet::before,
.model-sheet::after {
  content: "";
  display: block;
  width: 78%;
  height: 12px;
  margin-top: 4rem;
  border-radius: 12px;
  background: #dce7f6;
}

.model-sheet::after {
  width: 54%;
  margin-top: 1rem;
}

.model-sheet span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #59bfa6, #6c8bff);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.sheet-one {
  left: 80px;
  top: 24px;
  transform: rotateY(-18deg) rotateZ(-4deg) translateZ(48px);
}

.sheet-two {
  left: 118px;
  top: 42px;
  transform: rotateY(-10deg) rotateZ(4deg) translateZ(20px);
}

.sheet-three {
  left: 48px;
  top: 74px;
  transform: rotateY(-24deg) rotateZ(-12deg) translateZ(0);
}

.model-cube {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  color: #1f2937;
  font-size: 1.6rem;
  font-weight: 900;
}

.cube-a {
  right: 28px;
  top: 42px;
  background: #ffd89e;
  transform: rotateX(18deg) rotateY(28deg) translateZ(80px);
}

.cube-b {
  right: 96px;
  bottom: 58px;
  background: #b7e6da;
  transform: rotateX(-12deg) rotateY(24deg) translateZ(70px);
}

.cube-c {
  left: 28px;
  bottom: 36px;
  background: #f8d4dc;
  transform: rotateX(12deg) rotateY(-22deg) translateZ(60px);
}

.value-grid,
.learning-path-grid,
.studio-grid,
.workflow-grid,
.trust-grid,
.admin-command-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.value-card,
.path-card,
.trust-feature,
.workflow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.value-card span,
.workflow-step span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.learning-path-grid {
  align-items: stretch;
}

.path-card,
.trust-feature,
.workflow-step {
  display: grid;
  gap: 0.45rem;
}

.path-card span,
.trust-feature span,
.workflow-step strong {
  color: var(--muted);
}

.studio-section {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 247, 0.9));
}

.print-studio-3d {
  position: relative;
  min-height: 400px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.desk-plane {
  left: 8%;
  right: 8%;
  bottom: 36px;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(135deg, #59bfa6, #6c8bff);
  transform: rotateX(68deg);
}

.book-model {
  left: 18%;
  top: 86px;
  width: 210px;
  height: 260px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  transform: rotateX(58deg) rotateZ(-18deg) translateZ(50px);
}

.book-cover {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ef6f87, #8a70d6);
  font-weight: 900;
}

.book-pages {
  position: absolute;
  right: -18px;
  top: 14px;
  width: 28px;
  height: 230px;
  border-radius: 0 12px 12px 0;
  background: repeating-linear-gradient(#fff, #fff 10px, #e4eaf3 12px);
  transform: rotateY(62deg);
}

.card-model {
  display: grid;
  width: 118px;
  height: 92px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #1f2937;
  font-weight: 900;
}

.card-alpha {
  right: 18%;
  top: 66px;
  transform: rotateY(-24deg) rotateZ(10deg) translateZ(80px);
}

.card-number {
  right: 8%;
  top: 190px;
  transform: rotateY(-18deg) rotateZ(-6deg) translateZ(64px);
}

.card-color {
  right: 26%;
  bottom: 50px;
  transform: rotateY(-28deg) rotateZ(14deg) translateZ(72px);
}

.admin-topbar.glass-panel,
.admin-hero-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,250,247,0.86));
  backdrop-filter: blur(18px);
}

.admin-topbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pro-admin .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,253,0.96));
}

.pro-admin .admin-sidebar nav a {
  border: 0;
  background: transparent;
}

.pro-admin .admin-sidebar nav a.active {
  box-shadow: inset 4px 0 0 var(--blue);
}

.admin-command-grid {
  margin-bottom: 1rem;
}

.admin-hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  overflow: hidden;
}

.admin-orbit {
  position: relative;
  min-height: 220px;
  perspective: 800px;
}

.orbit-sheet {
  position: absolute;
  inset: 24px auto auto 20%;
  width: 150px;
  height: 190px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotateY(-24deg) rotateZ(-8deg);
}

.orbit-cube {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  color: #1f2937;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.orbit-cube.one { right: 28%; top: 26px; background: #ffd89e; }
.orbit-cube.two { right: 14%; top: 104px; background: #b7e6da; }
.orbit-cube.three { right: 34%; bottom: 24px; background: #f8d4dc; }

.admin-product-row,
.message-row {
  display: grid;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.admin-product-row {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
}

.admin-product-row img {
  width: 72px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--soft);
}

.admin-product-row small,
.message-row small,
.muted {
  display: block;
  color: var(--muted);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-row input {
  width: auto;
}

.admin-page-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(247, 249, 253, 0.7);
}

.readiness-list {
  display: grid;
  gap: 0.7rem;
}

.readiness-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: var(--soft);
  font-weight: 800;
}

.profile-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, rgba(247, 249, 253, 0.96), rgba(239, 250, 247, 0.9));
}

.profile-hero-grid,
.profile-layout,
.profile-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.profile-card-main,
.profile-stat,
.profile-sidebar,
.profile-panel,
.order-card,
.profile-product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.profile-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
}

.profile-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  font-size: 1.8rem;
  font-weight: 900;
}

.profile-stat {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.profile-stat strong {
  font-size: 2rem;
}

.profile-stat span,
.order-card span {
  color: var(--muted);
  font-weight: 800;
}

.profile-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem;
}

.profile-sidebar a {
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  color: #475467;
  font-weight: 900;
}

.profile-sidebar a:hover {
  background: #eef2ff;
  color: var(--blue);
}

.profile-content {
  display: grid;
  gap: 1rem;
}

.profile-panel {
  padding: 1.2rem;
}

.compact-head {
  margin-bottom: 1rem;
}

.order-card {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 1rem;
}

.order-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.profile-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem;
  font-weight: 900;
}

.profile-product img {
  width: 72px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
}

.coupon-form {
  display: grid;
  gap: 0.7rem;
}

.inline-delete {
  display: inline-flex;
  margin: 0;
}

.text-button.danger {
  color: var(--coral);
}

.admin-row-actions {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

@media (min-width: 720px) {
  .value-grid,
  .workflow-grid,
  .trust-grid,
  .admin-page-editor-grid,
  .profile-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 920px) {
  .value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-grid,
  .admin-command-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
  }

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

  .learning-path-grid {
    grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  }

  .profile-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(120px, 0.25fr));
  }

  .profile-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
