:root {
  --blue: #1268b0;
  --gold: #fab615;
  --navy: #10233f;
  --ink: #263241;
  --muted: #667085;
  --ivory: #fffaf0;
  --mist: #f4f7fb;
  --line: #dfe6ef;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 0.75rem; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 5.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.demo-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--navy); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: 0.75rem; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.85rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink); font-weight: 650; }
.nav-pill, .cart-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  background: var(--white);
}
.nav-pill.accent { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.cart-link span { color: var(--blue); font-weight: 800; }
.nav-toggle { display: none; }

.messages { max-width: 1180px; margin: 1rem auto 0; padding: 0 1rem; }
.messages p { border-radius: 8px; padding: 0.8rem 1rem; background: #eef7ff; color: var(--navy); border: 1px solid #cfe6fb; }

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
  background:
    linear-gradient(120deg, rgba(18, 104, 176, 0.10), rgba(250, 182, 21, 0.14)),
    var(--ivory);
}
.hero-copy { max-width: 720px; }
.hero-copy p { font-size: 1.12rem; max-width: 650px; }
.hero-panel {
  min-height: 520px;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(145deg, rgba(16, 35, 63, 0.15), rgba(18, 104, 176, 0.68)),
    repeating-linear-gradient(45deg, #f9e7b4 0 18px, #fffaf0 18px 36px);
}
.hero-panel .tag { display: inline-block; margin: 0.25rem; padding: 0.35rem 0.65rem; border-radius: 999px; background: rgba(255,255,255,0.86); color: var(--navy); font-weight: 700; }
.hero-dress {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(68%, 330px);
  height: 78%;
  border-radius: 48% 48% 8px 8px;
  background:
    radial-gradient(circle at 50% 18%, #fff 0 11%, transparent 12%),
    linear-gradient(160deg, #10233f 0 22%, #1268b0 22% 54%, #fab615 54% 63%, #fffaf0 63%);
  box-shadow: 0 30px 70px rgba(16, 35, 63, 0.34);
}
.actions, .footer-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-accent { background: var(--gold); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost { color: var(--blue); background: transparent; }
.eyebrow { color: var(--blue); font-weight: 850; text-transform: uppercase; font-size: 0.78rem; }

.section, .filters, .content-grid, .dashboard-grid, .detail-layout, .form-page, .article-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
}
.page-hero {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
  background: var(--mist);
}
.page-hero.compact h1, .page-hero.compact p { max-width: 880px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card, .quote, .blog-card, .dashboard-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16,35,63,0.06);
}
.visual {
  min-height: 230px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  color: var(--white);
  font-weight: 800;
}
.visual-gold { background: linear-gradient(140deg, #10233f, #fab615); }
.visual-blue { background: linear-gradient(140deg, #1268b0, #8fd1ff); }
.visual-coral { background: linear-gradient(140deg, #b83b5e, #f6b26b); }
.visual-emerald { background: linear-gradient(140deg, #0c6b58, #b8e986); }
.visual-plum { background: linear-gradient(140deg, #3d245f, #d6a4ff); }
.visual-slate { background: linear-gradient(140deg, #263241, #aab7c4); }
.visual b, .look-card span, .collection-card span { background: rgba(255,255,255,0.86); color: var(--navy); padding: 0.35rem 0.55rem; border-radius: 999px; font-size: 0.78rem; }
.card-body { padding: 1rem; }
.card-body form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.card-meta { display: flex; justify-content: space-between; gap: 0.7rem; color: var(--muted); }
.card-meta strong, .price { color: var(--blue); font-weight: 900; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1180px;
  margin: -2rem auto 0;
  padding: 0 1rem;
  position: relative;
}
.stats div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.stats strong { display: block; color: var(--blue); font-size: 2rem; }
.stats span { color: var(--muted); }
.split-band, .cta-band {
  max-width: 1180px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 8px;
  background: linear-gradient(115deg, var(--navy), var(--blue));
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.split-band h2, .cta-band h2 { color: var(--white); }
.cta-band { display: block; text-align: center; max-width: none; border-radius: 0; margin-bottom: 0; }
.cta-band p { max-width: 760px; margin-left: auto; margin-right: auto; }

.look-card, .collection-card {
  min-height: 310px;
  border-radius: 8px;
  padding: 1.25rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
}
.look-card h2, .look-card h3, .collection-card h2, .look-card a, .collection-card p { color: var(--white); }
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote, .blog-card, .dashboard-grid article { padding: 1.25rem; }
.quote span { display: block; color: var(--muted); margin: 0.2rem 0 0.8rem; }

.detail-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; }
.detail-visual { min-height: 560px; border-radius: 8px; padding: 1.25rem; }
.specs { display: grid; grid-template-columns: 120px 1fr; gap: 0.5rem 1rem; }
.specs dt { font-weight: 850; color: var(--navy); }
.demo-note { background: #fff4cf; border: 1px solid #f7d76b; color: var(--navy); border-radius: 8px; padding: 0.85rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 1rem 0; }
.qty { width: 74px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem; }

.filters form, .pill-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-page { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr); gap: 2rem; align-items: start; }
.panel-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 0.35rem; }
.field-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.field-check label { margin: 0; }
.form-control, .panel-form input, .panel-form select, .panel-form textarea, .filters input, .filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.field-error, .form-errors { display: block; color: #a1162d; margin-top: 0.3rem; }
.success-panel, .empty-state {
  max-width: 820px;
  margin: clamp(3rem, 8vw, 7rem) auto;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.cart-table { display: grid; gap: 0.8rem; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.link-button { border: 0; background: transparent; color: #a1162d; cursor: pointer; font-weight: 800; }
.cart-summary { margin-top: 1rem; padding: 1rem; background: var(--mist); border-radius: 8px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin: 1rem 0; }
.timeline span { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem; background: var(--white); font-weight: 700; }
.timeline .active { background: var(--blue); color: var(--white); }
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.check-grid span, .pill-list span, .pill-list a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font-weight: 800;
}
.content-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.content-grid article { padding: 1.25rem; border-radius: 8px; background: var(--mist); }
.article-page { max-width: 840px; }
.lead { font-size: 1.18rem; color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  background: var(--navy);
  color: var(--white);
}
.site-footer h2 { color: var(--white); }
.site-footer p { max-width: 680px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 0.65rem 0.8rem; font-weight: 800; }
  .site-header { align-items: flex-start; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 78px; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); justify-content: flex-start; }
  .site-nav.open { display: flex; }
  .hero, .detail-layout, .form-page, .split-band { grid-template-columns: 1fr; }
  .products, .grid, .collection-grid, .stats, .dashboard-stats, .content-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { min-height: 420px; }
  .cart-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 0.85rem 1rem; }
  .hero { min-height: auto; padding-top: 2.5rem; }
  .products, .grid, .collection-grid, .stats, .dashboard-stats, .content-grid, .dashboard-grid, .check-grid { grid-template-columns: 1fr; }
  .section-head, .site-footer { display: block; }
  .detail-visual { min-height: 360px; }
  .specs { grid-template-columns: 1fr; }
}
