:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #64706c;
  --line: #d8ded8;
  --paper: #fbfbf7;
  --white: #ffffff;
  --sage: #627c68;
  --moss: #263d35;
  --gold: #c28f38;
  --rose: #c76f62;
  --shadow: 0 24px 80px rgba(23, 33, 31, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 222, 216, 0.86);
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(18px);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(216, 222, 216, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.utility-bar nav {
  display: flex;
  gap: 18px;
}

.main-header {
  display: grid;
  grid-template-columns: auto minmax(240px, 520px) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 0 5vw;
}

.main-header > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 800;
}

.brand-logo {
  width: 166px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--moss);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.header-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.mega-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 5vw 12px;
  scrollbar-width: none;
}

.mega-nav::-webkit-scrollbar,
.category-strip::-webkit-scrollbar,
.utility-bar nav::-webkit-scrollbar {
  display: none;
}

.mega-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--moss);
  font-size: 0.84rem;
  font-weight: 850;
}

.mega-nav a:hover {
  background: #ecf2ec;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 8vw, 110px) 5vw 42px;
}

.hero-section > * {
  min-width: 0;
}

.hero-copy {
  max-width: 720px;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
}

h1 span {
  display: inline;
}

h1 span:not(:last-child)::after {
  content: " ";
}

.hero-copy p,
.section-heading p,
.quote-section p,
.builder-panel p,
.workflow-grid p,
.product-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 620px;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--moss);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(38, 61, 53, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 800;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 5vw 34px;
}

.proof-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.proof-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--moss);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 900;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.floating-summary {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 230px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.floating-summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.6rem;
}

.floating-summary span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 5vw;
  border-block: 1px solid var(--line);
  background: var(--white);
  scrollbar-width: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.category-chip.is-active {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--white);
}

.quick-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 5vw;
  background: var(--white);
}

.quick-card {
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.quick-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section,
.quote-section,
.custom-builder {
  padding: clamp(62px, 8vw, 106px) 5vw;
}

.compact-section {
  padding-block: clamp(42px, 5vw, 72px);
}

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

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.search-box {
  display: flex;
  align-items: center;
  min-width: min(360px, 100%);
  height: 48px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.search-box svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.needs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.needs-grid button {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--moss);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.needs-grid button:hover {
  border-color: var(--sage);
  background: #ecf2ec;
}

.occasion-section {
  background: var(--white);
}

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

.occasion-grid button {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.occasion-grid button:hover {
  border-color: var(--gold);
  background: #fffaf0;
}

.occasion-grid strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.occasion-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(38, 77, 65, 0.28);
  box-shadow: 0 18px 44px rgba(23, 33, 31, 0.1);
  transform: translateY(-2px);
  outline: 0;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.product-card p {
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.photo-count {
  display: block;
  margin: -4px 0 16px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.price {
  font-size: 1.08rem;
  font-weight: 900;
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #ecf2ec;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.custom-builder {
  display: grid;
  grid-template-columns: 0.95fr minmax(340px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  background: #ecf2ec;
}

.builder-preview {
  overflow: hidden;
  min-height: 560px;
  border-radius: var(--radius);
}

.builder-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-panel,
.quote-form {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.builder-panel label,
.quote-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

select,
input[type="text"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="file"] {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 13px;
}

input[type="file"] {
  padding: 10px 13px;
}

.field-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.search-box input[type="search"] {
  border: 0;
  padding: 0;
}

fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 850;
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  margin-bottom: 10px !important;
  color: var(--muted) !important;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--moss);
}

.estimate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
}

.estimate-box span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.estimate-box strong {
  font-size: clamp(1.3rem, 2.5vw, 2.15rem);
}

.corporate-section {
  background: var(--moss);
  color: var(--white);
}

.corporate-section .section-heading p,
.workflow-grid p {
  color: rgba(255, 255, 255, 0.72);
}

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

.workflow-grid article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

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

.enterprise-grid article {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.enterprise-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.seo-section {
  background: var(--white);
}

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

.seo-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.seo-grid h3,
.faq-grid summary {
  font-size: 1.18rem;
  font-weight: 900;
}

.seo-grid p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.step-number {
  display: block;
  margin-bottom: 46px;
  color: var(--gold);
  font-weight: 900;
}

.workflow-grid h3 {
  font-size: 1.35rem;
}

.quote-section {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.74fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

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

.quote-form .full,
.quote-form .form-status {
  grid-column: 1 / -1;
}

.faq-section {
  background: #ecf2ec;
}

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

.faq-grid details {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-grid summary {
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(52px, 7vw, 86px) 5vw 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-logo {
  width: 184px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--moss);
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 5vw;
}

.legal-page h1 {
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.legal-updated {
  margin-bottom: 46px;
  color: var(--muted);
  font-weight: 800;
}

.legal-page section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.legal-page p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.admin-body {
  background: #ecf2ec;
}

.admin-shell {
  min-height: 100vh;
}

.admin-login {
  display: grid;
  width: min(460px, calc(100vw - 32px));
  gap: 14px;
  margin: 8vh auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login-logo {
  width: 182px;
}

.admin-login h1,
.admin-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.admin-login p,
.admin-hero p,
.admin-panel-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-login label,
.admin-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.admin-app {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 5vw 60px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  background: rgba(236, 242, 236, 0.94);
  backdrop-filter: blur(14px);
}

.admin-topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-weight: 850;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(34px, 6vw, 74px) 0 24px;
}

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

.admin-metrics article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-metrics article {
  min-width: 0;
  padding: 22px;
}

.admin-metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-metrics strong {
  color: var(--moss);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-panel {
  padding: clamp(20px, 3vw, 30px);
}

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

.admin-panel-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.admin-search input {
  min-width: min(280px, 100%);
}

textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  resize: vertical;
}

.admin-table {
  display: grid;
  gap: 12px;
}

.admin-row,
.admin-order-row {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-row {
  grid-template-columns: 74px 1fr auto;
}

.admin-row > div,
.admin-order-row > div {
  min-width: 0;
}

.admin-row img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-row strong,
.admin-order-row strong {
  display: block;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.admin-row span,
.admin-order-row span {
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-row p,
.admin-order-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-actions,
.admin-order-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-order-row {
  grid-template-columns: 1fr auto;
}

.admin-order-controls select {
  min-width: 168px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  width: min(420px, 92vw);
  height: 100vh;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  box-shadow: -28px 0 70px rgba(23, 33, 31, 0.18);
  transform: translateX(110%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 55;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 32px 90px rgba(23, 33, 31, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.product-modal-header span {
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-gallery > img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  object-fit: cover;
}

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

.product-thumb {
  display: grid;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.product-thumb.is-active,
.product-thumb:focus-visible {
  border-color: var(--moss);
  outline: 0;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.product-detail-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.product-detail-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.product-detail-facts div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.product-detail-facts dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-detail-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-detail-section h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.product-detail-section p {
  color: var(--muted);
  line-height: 1.7;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.cart-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(23, 33, 31, 0.36);
  opacity: 0;
  transition: opacity 220ms ease;
}

.backdrop.is-open {
  pointer-events: auto;
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-header .nav-links {
    display: none;
  }

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

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

  .proof-strip,
  .occasion-grid,
  .enterprise-grid,
  .seo-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero-section,
  .custom-builder,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .utility-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-block: 9px;
  }

  .utility-bar > span {
    display: block;
    max-width: 318px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .utility-bar nav {
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
    overflow-x: hidden;
    max-width: 100%;
    padding-bottom: 1px;
    scrollbar-width: none;
    white-space: normal;
  }

  .utility-bar nav a {
    flex: 0 0 auto;
    font-size: 0.74rem;
  }

  .main-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: 66px;
  }

  .brand-logo {
    width: 148px;
  }

  .site-header .cart-toggle {
    position: fixed;
    top: 58px;
    right: auto;
    left: min(322px, calc(100vw - 68px));
    z-index: 100;
    display: grid !important;
    visibility: visible;
    opacity: 1;
  }

  .nav-links {
    display: none;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
    margin-bottom: 12px;
    width: 100%;
  }

  .mega-nav {
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .hero-section {
    padding-top: 42px;
  }

  h1 {
    max-width: calc(100vw - 50px);
    overflow-wrap: break-word;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 0.96;
  }

  h1 span {
    display: block;
  }

  h1 span:not(:last-child)::after {
    content: "";
  }

  .hero-copy {
    width: min(100%, 318px);
    max-width: 318px;
  }

  .hero-copy p {
    max-width: 318px;
  }

  .trust-row {
    max-width: 318px;
  }

  .trust-row span {
    flex: 0 1 auto;
  }

  .hero-media,
  .hero-media img,
  .builder-preview {
    min-height: 360px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .workflow-grid,
  .quick-section,
  .needs-grid,
  .proof-strip,
  .occasion-grid,
  .enterprise-grid,
  .seo-grid,
  .faq-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    padding-bottom: 24px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .admin-topbar,
  .admin-hero,
  .admin-panel-heading {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-metrics,
  .admin-grid,
  .admin-row,
  .admin-order-row {
    grid-template-columns: 1fr;
  }

  .admin-actions,
  .admin-order-controls,
  .admin-topbar nav {
    justify-content: flex-start;
  }

  .admin-app {
    padding: 0 16px 48px;
  }

  .admin-topbar {
    gap: 14px;
    padding: 14px 0;
  }

  .admin-topbar .brand-logo {
    width: 136px;
  }

  .admin-topbar nav {
    gap: 8px;
    order: 3;
  }

  .admin-topbar nav a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.82rem;
  }

  .admin-topbar .button {
    justify-self: start;
    min-height: 40px;
    padding: 0 16px;
  }

  .admin-login {
    margin: 24px auto;
  }

  .admin-login-logo {
    width: 152px;
  }

  .admin-login h1,
  .admin-hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1;
  }

  .admin-hero {
    gap: 16px;
    padding: 28px 0 20px;
  }

  .admin-hero .button,
  .admin-panel .button,
  .admin-search,
  .admin-search input,
  .admin-order-controls select,
  .admin-order-controls .remove-button {
    width: 100%;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel-heading {
    gap: 12px;
  }

  .admin-panel-heading h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .admin-metrics {
    gap: 10px;
  }

  .admin-metrics article {
    padding: 16px;
  }

  .admin-row,
  .admin-order-row {
    gap: 12px;
    padding: 12px;
  }

  .admin-row img {
    width: 64px;
    height: 64px;
  }

  .admin-actions,
  .admin-order-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-order-controls {
    grid-template-columns: 1fr;
  }

  .admin-actions .small-button,
  .admin-actions .remove-button,
  .admin-order-controls select,
  .admin-order-controls .remove-button {
    min-height: 42px;
  }

  .product-footer,
  .product-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .product-card-actions .small-button {
    width: 100%;
  }

  .product-modal {
    inset: 12px;
    width: auto;
    max-height: none;
    transform: translateY(18px) scale(0.98);
  }

  .product-modal.is-open {
    transform: translateY(0) scale(1);
  }

  .product-modal-grid,
  .product-detail-facts {
    grid-template-columns: 1fr;
  }

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

  .quote-section,
  .custom-builder,
  .section {
    padding-block: 54px;
  }

  .floating-summary {
    right: 14px;
    bottom: 14px;
    max-width: 210px;
  }
}
