:root {
  --blush: #F6D6D9;
  --rose: #D8A0A8;
  --navy: #1D3557;
  --cream: #FFF8F3;
  --sage: #8A9A5B;
  --gold: #C7A84F;
  --ink: #24212A;
  --muted: #6D6570;
  --line: #E8D8D5;
  --white: #FFFFFF;
  --shadow: 0 18px 48px rgba(29, 53, 87, 0.14);
  --body-font: "Montserrat", Arial, sans-serif;
  --display-font: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body-font);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 243, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--navy);
  font-family: var(--display-font);
  font-size: 1.4rem;
}

.designco-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  white-space: nowrap;
  font-family: var(--display-font);
  letter-spacing: 0;
}

.designco-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.08em;
}

.designco-co {
  position: relative;
  display: inline-flex;
  margin-left: 0.08em;
  padding-bottom: 0.1em;
  font-size: 0.5em;
  letter-spacing: 0;
  text-transform: none;
  transform: translateY(-0.18em);
}

.designco-co::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.08em;
  background: currentColor;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.primary-nav a {
  padding: 0.65rem 0.25rem;
  border-bottom: 2px solid transparent;
}

.primary-nav a.is-active,
.primary-nav a:hover {
  border-color: var(--rose);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 230px;
  min-height: 42px;
  padding: 0 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-search svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  stroke-width: 2;
  fill: none;
  flex: 0 0 auto;
}

.site-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button,
.cart-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-button svg,
.cart-button svg,
.favorite-button svg,
.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button {
  position: relative;
}

.cart-button span {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.menu-button {
  display: none;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.hero {
  height: 520px;
  max-height: calc(100vh - 108px);
  min-height: 460px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(29, 53, 87, 0.82) 0%, rgba(29, 53, 87, 0.62) 38%, rgba(29, 53, 87, 0.15) 72%),
    url("assets/hero-handmade-jewelry.png") center / cover no-repeat;
  color: var(--white);
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--rose);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display-font);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 560px;
  color: var(--white);
  font-size: 4.5rem;
}

.hero-lockup {
  color: var(--white);
}

.tagline {
  max-width: 540px;
  margin: 1rem 0 1.5rem;
  font-size: 1.25rem;
}

.hero-photo-strip {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-photo-strip a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(255, 248, 243, 0.72);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.hero-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions,
.inline-form,
.row-heading,
.shop-toolbar,
.payment-options,
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button,
.text-link {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.button-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--rose);
}

.button-light {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.button-danger {
  background: #7f1d1d;
  color: var(--white);
  border-color: #7f1d1d;
}

.text-link {
  background: transparent;
  color: var(--navy);
  border: 0;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section,
.page-hero,
.shop-shell,
.form-layout,
.contact-layout,
.checkout-layout,
.account-layout,
.admin-dashboard,
.about-story {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-blush,
.section-navy,
.section-newsletter {
  width: 100%;
  padding: 4.5rem max(16px, calc((100% - 1180px) / 2));
}

.section-blush {
  background: #F9E7E8;
}

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

.section-navy h2,
.section-navy .eyebrow {
  color: var(--white);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.newsletter-copy h2 {
  font-size: 2.5rem;
}

.row-heading {
  justify-content: space-between;
}

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

.category-tile {
  min-height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  text-align: left;
  overflow: hidden;
}

.category-tile strong {
  font-family: var(--display-font);
  font-size: 1.25rem;
}

.category-symbol {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--blush);
  position: relative;
  flex: 0 0 auto;
}

.category-symbol::before,
.category-symbol::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--rose);
}

.category-symbol::before {
  width: 22px;
  height: 34px;
  left: 18px;
  top: 18px;
}

.category-symbol::after {
  width: 18px;
  height: 18px;
  right: 16px;
  top: 28px;
  background: var(--navy);
}

.product-row,
.product-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.product-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(29, 53, 87, 0.08);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-media,
.modal-media,
.maker-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.product-media {
  aspect-ratio: 4 / 3;
}

.product-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 24%, var(--p1) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 30%, var(--p2) 0 9%, transparent 10%),
    radial-gradient(circle at 47% 58%, var(--p3) 0 18%, transparent 19%),
    linear-gradient(135deg, #fffaf6, #f5e5de);
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(29, 53, 87, 0.85);
  border-top: 0;
}

.product-art::before {
  width: 32%;
  height: 44%;
  left: 20%;
  top: 22%;
  border-radius: 0 0 40% 40%;
  background: color-mix(in srgb, var(--p1) 82%, white);
}

.product-art::after {
  width: 28%;
  height: 38%;
  right: 20%;
  top: 28%;
  border-radius: 0 0 48% 48%;
  background: color-mix(in srgb, var(--p2) 78%, white);
}

.product-card[data-shape="coaster"] .product-art::before,
.product-card[data-shape="gift"] .product-art::before,
.product-card[data-shape="necklace"] .product-art::before {
  width: 48%;
  height: 48%;
  border: 0;
  border-radius: 18%;
  left: 26%;
  top: 24%;
  box-shadow: inset 0 0 0 4px rgba(29, 53, 87, 0.15);
}

.product-card[data-shape="coaster"] .product-art::after,
.product-card[data-shape="gift"] .product-art::after,
.product-card[data-shape="necklace"] .product-art::after {
  width: 34%;
  height: 34%;
  border: 0;
  border-radius: 999px;
  right: 18%;
  top: 18%;
  background: rgba(199, 168, 79, 0.72);
}

.product-photo-wrap {
  background: var(--cream);
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media .product-media,
.thumb-row .product-media {
  height: 100%;
  aspect-ratio: auto;
}

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

.photo-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
}

.photo-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-info {
  display: grid;
  gap: 0.45rem;
}

.product-meta,
.inventory-line,
.cart-line,
.admin-panel span,
.order-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-info h3 {
  font-size: 1.25rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.favorite-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
}

.favorite-button.is-active svg {
  fill: var(--rose);
  stroke: var(--rose);
}

.split-showcase,
.about-story,
.form-layout,
.contact-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  align-items: start;
}

.split-showcase h2,
.about-story h2,
.process-panel h2,
.contact-details h2,
.checkout-form h2,
.order-summary h2,
.account-panel h2,
.admin-form h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.review-grid,
.account-layout,
.metric-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card,
.account-panel,
.order-summary,
.process-panel,
.contact-details,
.admin-panel,
.metric-grid article,
.integration-grid article,
.inquiry-list article,
.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.section-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.newsletter-form,
.request-form,
.checkout-form,
.admin-form,
.profile-form {
  display: grid;
  gap: 1rem;
}

.inline-form {
  align-items: stretch;
}

.inline-form input {
  flex: 1 1 180px;
}

label,
legend {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-weight: 800;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr);
  gap: 2rem;
  align-items: end;
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: 3.5rem;
}

.shop-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 4.5rem;
}

.filters-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-header,
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-header h2,
.cart-header h2 {
  font-size: 1.6rem;
}

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

.check-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.check-line,
.toggle-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
}

.check-line input,
.toggle-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.shop-toolbar {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.shop-toolbar p {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
}

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

.span-2 {
  grid-column: span 2;
}

.request-form,
.checkout-form {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-panel ol {
  margin: 0;
  padding-left: 1.25rem;
}

.about-hero {
  border-bottom: 1px solid var(--line);
}

.maker-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 170px;
  gap: 1rem;
}

.maker-tile {
  background:
    radial-gradient(circle at 28% 30%, var(--blush) 0 17%, transparent 18%),
    radial-gradient(circle at 72% 35%, var(--rose) 0 12%, transparent 13%),
    linear-gradient(135deg, #fffdf9, #efe1dc);
}

.maker-tile::before,
.maker-tile::after {
  content: "";
  position: absolute;
  background: var(--navy);
  opacity: 0.8;
}

.maker-tile::before {
  width: 120px;
  height: 8px;
  left: 24px;
  bottom: 42px;
  transform: rotate(-12deg);
}

.maker-tile::after {
  width: 60px;
  height: 60px;
  right: 34px;
  bottom: 34px;
  border-radius: 50%;
  background: var(--sage);
}

.tile-one {
  grid-row: span 2;
}

.tile-two {
  background:
    radial-gradient(circle at 38% 48%, var(--gold) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 35%, var(--blush) 0 14%, transparent 15%),
    linear-gradient(135deg, #fbf0ec, #fffaf6);
}

.tile-three {
  background:
    radial-gradient(circle at 34% 30%, var(--sage) 0 14%, transparent 15%),
    radial-gradient(circle at 64% 60%, var(--rose) 0 18%, transparent 19%),
    linear-gradient(135deg, #fffaf6, #f6e3e3);
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.social-links a {
  font-weight: 800;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-section {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 4.5rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  min-height: 58px;
  padding: 1rem;
  text-align: left;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.faq-item span {
  display: none;
  color: var(--muted);
  font-weight: 500;
}

.faq-item.is-open span {
  display: block;
}

.checkout-layout {
  padding-bottom: 4.5rem;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.payment-options input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.order-summary {
  position: sticky;
  top: 94px;
}

.summary-row,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.total-row {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  border-bottom: 0;
}

.account-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 4.5rem;
}

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

.order-list,
.mini-list,
.coupon-list,
.inquiry-list {
  display: grid;
  gap: 0.75rem;
}

.mini-list article,
.coupon-list article {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 8px;
}

.admin-dashboard {
  padding-bottom: 4.5rem;
}

.admin-login {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 4.5rem;
}

.admin-login-card {
  background: var(--white);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-toolbar > div,
.admin-form-actions,
.admin-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.admin-tabs button.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 1.25rem;
}

.admin-editor-list {
  display: grid;
  gap: 1rem;
}

.admin-product-editor {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-editor-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.admin-editor-header h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.admin-editor-header p {
  margin: 0;
  color: var(--muted);
}

.admin-editor-thumb {
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.admin-editor-thumb .product-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.admin-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-toggle-grid label {
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.admin-toggle-grid input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.admin-photo-card {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.admin-photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
}

.admin-photo-card figcaption {
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

.admin-table th {
  color: var(--navy);
  background: var(--blush);
}

.metric-grid article {
  display: grid;
  gap: 0.3rem;
}

.metric-grid span {
  color: var(--navy);
  font-family: var(--display-font);
  font-size: 2.4rem;
  font-weight: 800;
}

.sales-bars {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sales-bars span {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--navy);
  font-weight: 800;
}

.sales-bars span::after {
  content: "";
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose) var(--bar), #eee 0);
}

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

.integration-grid article,
.inquiry-list article {
  display: grid;
  gap: 0.35rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(440px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--cream);
  box-shadow: -24px 0 50px rgba(29, 53, 87, 0.18);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.drawer-backdrop,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(29, 53, 87, 0.38);
}

.drawer-backdrop.is-open,
.product-modal.is-open {
  display: block;
}

.cart-items {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-thumb {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, var(--p1) 0 20%, transparent 21%),
    radial-gradient(circle at 66% 62%, var(--p2) 0 25%, transparent 26%),
    var(--cream);
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.qty-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 900;
}

.small-action {
  min-height: 32px;
  padding: 0.25rem 0.45rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.saved-items {
  max-height: 130px;
  overflow: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.saved-items h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cart-total {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.checkout-button {
  width: 100%;
}

.product-modal {
  z-index: 90;
  padding: 1rem;
  overflow: auto;
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  margin: 4vh auto;
  padding: 1rem;
  background: var(--cream);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
}

.modal-media {
  min-height: 420px;
}

.modal-media .product-art {
  border-radius: 8px;
}

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

.thumb-row button {
  height: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.thumb-row button.is-active {
  border-color: var(--navy);
}

.modal-info {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.modal-info h2 {
  padding-right: 3rem;
  font-size: 2.4rem;
}

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

.share-row,
.related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-row button,
.related-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p {
  margin: 0.5rem 0 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  color: var(--navy);
  font-weight: 800;
}

.empty-state {
  padding: 1.5rem;
  border: 1px dashed var(--rose);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}

@media (max-width: 1020px) {
  .header-shell {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    display: inline-grid;
  }

  .primary-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .site-search {
    width: 190px;
  }

  .product-row,
  .product-grid,
  .photo-gallery,
  .category-strip,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-shell,
  .page-hero,
  .split-showcase,
  .about-story,
  .form-layout,
  .contact-layout,
  .checkout-layout,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel,
  .order-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-shell {
    width: min(100% - 20px, 1180px);
    min-height: 70px;
    gap: 0.5rem;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand-copy strong {
    font-size: 1.15rem;
  }

  .brand-copy small {
    display: none;
  }

  .site-search {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0.7rem;
  }

  .header-actions {
    display: contents;
  }

  .header-actions .icon-button,
  .cart-button {
    justify-self: end;
  }

  .hero {
    height: 460px;
    min-height: 430px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

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

  .hero-photo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .section,
  .section-blush,
  .section-navy,
  .section-newsletter {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-newsletter,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .newsletter-copy h2,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .product-row,
  .product-row.compact,
  .product-grid,
  .photo-gallery,
  .category-strip,
  .review-grid,
  .account-layout,
  .metric-grid,
  .integration-grid,
  .admin-editor-header {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-editor-thumb {
    width: 100%;
    max-width: 180px;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .maker-board {
    grid-template-columns: 1fr;
  }

  .tile-one {
    grid-row: auto;
  }

  .modal-media {
    min-height: 300px;
  }

  .modal-info h2 {
    font-size: 2rem;
  }

  .cart-drawer {
    width: 100%;
  }
}
