:root {
  color-scheme: light;
  --ink: #171317;
  --muted: #6f636b;
  --line: #ead8e0;
  --rose: #b94f68;
  --rose-dark: #8f3149;
  --coral: #ff583f;
  --surface: #ffeff4;
  --soft: #f4dfe8;
  --panel: #fff8fb;
  --header-surface: #fff5f8;
  --nav-gray: #7f7f7d;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(255 199 218 / 52%), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgb(232 176 196 / 34%), transparent 24rem),
    linear-gradient(180deg, #fff5f8 0%, var(--surface) 42%, #f4e0e9 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 245 248 / 96%);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgb(23 19 23 / 8%);
}

.header-main {
  min-height: 92px;
  display: grid;
  grid-template-columns: 190px minmax(260px, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 0 50px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  color: #5c5c5c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.site-search {
  min-height: 60px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #f2e7eb;
}

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

.search-icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
  border: 2px solid #5d5d5d;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  width: 10px;
  height: 2px;
  position: absolute;
  right: -7px;
  bottom: 0;
  background: #5d5d5d;
  transform: rotate(45deg);
  transform-origin: center;
}

.header-actions {
  display: flex;
  gap: 26px;
  align-items: center;
}

.header-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #626262;
  text-decoration: none;
}

.header-icon span {
  font-size: 42px;
  line-height: 1;
}

.person-icon {
  width: 26px;
  height: 26px;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.person-icon::before,
.person-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.person-icon::before {
  width: 30px;
  height: 18px;
  left: -4px;
  bottom: -22px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom: 0;
}

.person-icon::after {
  right: -11px;
  bottom: -13px;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #b5b5b5;
}

.cart-icon span {
  width: 28px;
  height: 28px;
  position: relative;
  border: 2px solid var(--coral);
  border-radius: 5px;
}

.cart-icon span::before {
  content: "";
  width: 12px;
  height: 10px;
  position: absolute;
  left: 5px;
  top: -11px;
  border: 2px solid var(--coral);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.cart-icon {
  position: relative;
}

.cart-icon b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  position: absolute;
  right: -4px;
  top: -2px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
}

.category-nav {
  min-height: 56px;
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0 50px;
  background: var(--nav-gray);
}

.nav-item {
  display: flex;
}

.nav-link,
.size-finder-link {
  min-width: 150px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.nav-item.is-highlight .nav-link,
.nav-item:hover .nav-link,
.nav-item.is-open .nav-link {
  background: var(--header-surface);
  color: #4c4c4c;
}

.chevron {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.size-finder-link {
  margin-left: auto;
  min-width: 220px;
}

.size-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
}

.mega-menu {
  min-height: 420px;
  display: none;
  grid-template-columns: minmax(360px, 0.6fr) 300px 300px;
  gap: 30px;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  padding: 40px 50px 68px;
  background: var(--header-surface);
  box-shadow: 0 20px 35px rgb(23 19 23 / 12%);
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.is-open .mega-menu {
  display: grid;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 60px;
}

.mega-columns div {
  display: grid;
  align-content: start;
  gap: 15px;
}

.mega-columns strong {
  color: #2f2f2f;
  font-size: 18px;
}

.mega-columns .mega-accent {
  color: var(--coral);
}

.mega-columns a {
  color: #343434;
  font-size: 19px;
  text-decoration: none;
}

.mega-columns a:hover {
  color: var(--coral);
}

.mega-button {
  width: fit-content;
  margin-top: 18px;
  padding: 13px 20px;
  background: #ffece8;
  font-weight: 800;
}

.mega-visual {
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: 26px;
  border-radius: 8px;
  overflow: hidden;
}

.mega-photo {
  color: #fff;
  background:
    linear-gradient(180deg, rgb(23 19 23 / 6%), rgb(23 19 23 / 54%)),
    linear-gradient(135deg, #d9a889, #f3d7c8 48%, #8a4f48);
}

.mega-photo span {
  align-self: start;
  color: rgb(255 255 255 / 72%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-style: italic;
}

.mega-photo strong,
.mega-offer strong {
  font-size: 36px;
  line-height: 1.05;
}

.mega-photo small,
.mega-offer small {
  max-width: 220px;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.mega-offer {
  color: #fff;
  background: var(--coral);
}

.site-main {
  min-height: 70vh;
}

.text-link {
  color: var(--rose-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.storefront-hero {
  min-height: calc(100vh - 148px);
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-with-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      var(--surface) 0%,
      rgb(255 240 246 / 97%) 38%,
      rgb(255 230 239 / 72%) 62%,
      rgb(255 226 237 / 34%) 100%
    ),
    var(--hero-poster) right center / min(62vw, 880px) auto no-repeat;
}

.hero-with-poster::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: 8%;
  z-index: 0;
  width: min(58vw, 760px);
  height: min(34vw, 430px);
  border-radius: 999px;
  background: rgb(185 79 104 / 12%);
  filter: blur(46px);
}

.storefront-copy {
  max-width: 660px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 12vw, 156px);
  font-weight: 500;
  line-height: 0.88;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #30262d;
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.22;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.primary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 32px rgb(185 79 104 / 22%);
}

.primary-action:hover {
  background: var(--rose-dark);
}

.category-preview {
  display: grid;
  gap: 14px;
}

.category-preview article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 248 251 / 88%);
}

.category-preview span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.category-preview h2 {
  margin: 0;
  font-size: 24px;
}

.category-preview p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sales-disabled {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid #e7c9d1;
  border-radius: 8px;
  background: var(--panel);
  color: var(--rose-dark);
  line-height: 1.45;
}

.storefront-section,
.catalog-shell,
.product-page {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

.storefront-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.categories-section {
  padding-top: 20px;
}

.storefront-section h2,
.catalog-heading h1,
.product-details h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
}

.storefront-section p,
.catalog-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.facebook-frame {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.facebook-frame iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.facebook-frame p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.video-showcase {
  align-items: center;
}

.video-showcase-featured {
  border-top: 0;
  padding-top: 20px;
}

.video-viewer {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(23 19 23 / 96%), rgb(73 30 44 / 94%)),
    var(--ink);
  box-shadow: 0 24px 60px rgb(72 30 44 / 18%);
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.viewer-toolbar span {
  color: #f9dfe7;
  font-size: 14px;
  font-weight: 800;
}

.viewer-toolbar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 430px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.video-card {
  min-height: 360px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: rgb(255 248 251 / 96%);
  scroll-snap-align: start;
}

.video-card iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 14px;
}

.video-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.video-card p {
  margin: 0;
  color: var(--muted);
}

.video-card-empty {
  display: grid;
  align-content: center;
  gap: 16px;
}

.video-teaser {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(255 246 250 / 84%), rgb(255 236 243 / 94%)),
    radial-gradient(circle at 30% 20%, #f2b8c6, transparent 34%),
    radial-gradient(circle at 82% 64%, #6d2f43, transparent 38%);
}

.video-teaser::before {
  content: "";
  width: 86px;
  height: 86px;
  position: absolute;
  right: 22px;
  top: 22px;
  border-radius: 999px;
  border: 1px solid rgb(185 79 104 / 28%);
  background: rgb(185 79 104 / 12%);
}

.video-teaser span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 900;
}

.video-teaser h3,
.video-teaser p,
.video-teaser a {
  position: relative;
}

.catalog-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.product-rail-section,
.catalog-shell {
  width: min(1770px, calc(100% - 96px));
}

.product-rail-section {
  margin: 0 auto;
  padding: 82px 0 52px;
}

.rail-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(1380px, 100%);
  margin: 0 auto 36px;
}

.rail-heading h2 {
  margin: 0;
  color: #2f2f2f;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1;
}

.rail-actions {
  display: flex;
  gap: 10px;
}

.rail-actions button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #f3f0ef;
  color: #1e1e1e;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.product-rail,
.catalog-product-grid {
  display: grid;
  gap: 16px;
}

.product-rail {
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 342px);
  overflow-x: auto;
  padding: 0 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.catalog-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}

.catalog-product-card {
  display: grid;
  gap: 14px;
  color: #696969;
  text-decoration: none;
  scroll-snap-align: start;
}

.catalog-product-media {
  aspect-ratio: 0.74;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f5eeee;
}

.product-image,
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.product-image {
  object-fit: cover;
  transition: opacity 180ms ease, transform 220ms ease;
}

.product-image.is-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.catalog-product-card:hover .product-image.is-primary {
  transform: scale(1.025);
}

.catalog-product-card:hover .product-image.is-hover {
  opacity: 1;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  background: var(--preview-bg,
    linear-gradient(180deg, rgb(23 19 23 / 0%), rgb(23 19 23 / 36%)),
    linear-gradient(135deg, #f0b8c6, #e8d2c6 48%, #7f5261)
  );
  transition: opacity 180ms ease, transform 220ms ease;
}

.product-image-placeholder.is-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.catalog-product-card:hover .product-image-placeholder {
  transform: scale(1.025);
}

.catalog-product-card:hover .product-image-placeholder.is-hover {
  opacity: 1;
}

.product-image-placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-style: italic;
  font-weight: 500;
}

.product-image-placeholder small {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wishlist-mark {
  position: absolute;
  right: 18px;
  top: 15px;
  z-index: 2;
  color: #202020;
  font-size: 42px;
  line-height: 1;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: absolute;
  left: 15px;
  bottom: 15px;
  z-index: 2;
}

.product-badges span {
  padding: 8px 12px;
  border-radius: 7px;
  background: rgb(92 92 92 / 86%);
  color: #fff;
  font-weight: 900;
}

.product-badges .is-sale {
  background: #ff3352;
}

.product-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 30px;
}

.product-swatches span {
  width: 24px;
  height: 24px;
  display: inline-block;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px rgb(23 19 23 / 10%);
}

.catalog-product-copy {
  display: grid;
  gap: 6px;
  padding: 0 30px;
}

.catalog-product-copy strong {
  color: #6e6e6e;
  font-size: 22px;
  font-weight: 500;
}

.catalog-product-card:hover .catalog-product-copy strong {
  color: var(--coral);
}

.catalog-product-copy small {
  color: #8a8a8a;
  font-size: 18px;
}

.product-card,
.empty-state {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.product-card span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.product-card h2,
.product-card h3,
.empty-state h2,
.empty-state h3 {
  margin: 18px 0 10px;
}

.product-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  color: var(--rose-dark);
}

.catalog-product-copy .product-card-meta {
  margin-top: 4px;
}

.catalog-product-copy .product-card-meta b {
  color: #2f2f2f;
  font-size: 18px;
}

.catalog-product-copy .product-card-meta em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.product-card-meta small {
  color: var(--muted);
  font-size: 13px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.product-media-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

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

.product-show-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.product-show-image.is-secondary {
  max-height: 360px;
}

.cart-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 24px;
  align-items: start;
}

.cart-lines,
.checkout-panel {
  display: grid;
  gap: 14px;
}

.cart-line,
.checkout-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cart-line strong,
.cart-line span,
.cart-line small {
  display: block;
}

.cart-line span,
.cart-line small {
  margin-top: 5px;
  color: var(--muted);
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.cart-quantity-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-quantity-form input[type="number"] {
  width: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.cart-quantity-form input[type="submit"],
.link-button {
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.checkout-panel h2 {
  margin: 0 0 16px;
}

.variant-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.variant-list article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.variant-list small {
  color: var(--muted);
}

.admin-body {
  background:
    radial-gradient(circle at 10% 0%, rgb(255 214 226 / 34%), transparent 24rem),
    linear-gradient(180deg, #fff7fa 0%, #f7e8ef 100%);
}

.admin-header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 248 251 / 96%);
}

.admin-logo {
  font-weight: 900;
  text-decoration: none;
}

.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-header nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-page-heading h1 {
  margin: 0;
  font-size: 44px;
}

.admin-page-heading p {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.admin-panel-spaced {
  margin-top: 18px;
}

.admin-panel h2 {
  margin: 0 0 16px;
}

.status-pill {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.status-pill.is-on {
  background: #e7f7ec;
  color: #176a35;
}

.status-pill.is-off {
  background: #fff2e4;
  color: #8a4a08;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.settings-form input[type="email"],
.settings-form input[type="date"],
.settings-form input[type="number"],
.settings-form input[type="search"],
.settings-form input[type="tel"],
.settings-form input[type="text"],
.settings-form input[type="url"],
.settings-form select,
.settings-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: #fffafd;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.danger-line {
  color: #9d1c38;
}

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

.product-editor {
  gap: 18px;
}

.admin-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-section-title h2 {
  margin-bottom: 6px;
}

.variant-editor-list {
  display: grid;
  gap: 14px;
}

.variant-editor-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9fb;
}

.stats-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stats-list div,
.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stats-list dt,
.muted {
  color: var(--muted);
}

.stats-list dd {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-actions {
  margin: 20px 0;
}

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

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

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

.admin-table th {
  color: var(--muted);
  font-size: 13px;
}

.table-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.status-chip {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f7edf1;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-actions a,
.table-actions button {
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 14px 0;
  background: #fbf7f9;
}

.scanner-panel {
  margin-bottom: 18px;
}

.scanner-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.scanner-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.scanner-form input[type="search"] {
  min-height: 58px;
  width: 100%;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
}

.scanner-form input[type="search"]:focus {
  border-color: var(--rose);
  outline: 0;
}

.scanner-grid {
  align-items: stretch;
}

.finance-grid .admin-panel {
  min-height: 260px;
}

.flash {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--panel);
}

.flash-notice {
  border: 1px solid #bfe4ca;
  color: #176a35;
}

.flash-alert {
  border: 1px solid #f0c4c4;
  color: #8a1f1f;
}

@media (max-width: 820px) {
  .header-main {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: auto;
    padding: 14px 20px;
  }

  .brand-logo {
    font-size: 40px;
  }

  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 48px;
    order: 3;
  }

  .site-search input {
    font-size: 15px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-icon {
    width: 34px;
    height: 34px;
  }

  .header-icon span {
    font-size: 34px;
  }

  .category-nav {
    min-height: 48px;
    overflow-x: auto;
    padding: 0 12px;
  }

  .nav-link,
  .size-finder-link {
    min-width: max-content;
    padding: 0 16px;
    white-space: nowrap;
  }

  .size-finder-link {
    margin-left: 0;
  }

  .mega-menu {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
  }

  .mega-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mega-visual {
    min-height: 220px;
  }

  .storefront-hero {
    width: calc(100% - 40px);
    min-height: auto;
    padding: 28px 0 140px;
    grid-template-columns: 1fr;
  }

  .hero-with-poster::before {
    background:
      linear-gradient(
        180deg,
        var(--surface) 0%,
        rgb(255 240 246 / 92%) 48%,
        rgb(255 226 237 / 72%) 100%
      ),
      var(--hero-poster) center bottom / min(116vw, 620px) auto no-repeat;
  }

  .hero-with-poster::after {
    right: -22%;
    bottom: 0;
    width: 92vw;
    height: 180px;
  }

  h1 {
    font-size: clamp(64px, 24vw, 104px);
  }

  .lead {
    font-size: 21px;
  }

  .storefront-section,
  .catalog-shell,
  .product-page,
  .product-rail-section {
    width: calc(100% - 40px);
    padding: 42px 0;
  }

  .rail-heading {
    margin-bottom: 24px;
  }

  .rail-heading h2 {
    font-size: 42px;
  }

  .product-rail {
    grid-auto-columns: minmax(245px, 78vw);
  }

  .catalog-product-grid {
    grid-template-columns: 1fr;
  }

  .product-swatches,
  .catalog-product-copy {
    padding: 0 12px;
  }

  .storefront-section,
  .product-layout,
  .cart-layout,
  .admin-grid,
  .admin-form-grid,
  .variant-editor-row,
  .scanner-form {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-shell {
    width: calc(100% - 40px);
    padding: 42px 0;
  }

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

  .cart-line-actions {
    justify-content: flex-start;
  }

  .video-track {
    grid-auto-columns: minmax(260px, 88vw);
  }

  .product-media-placeholder {
    min-height: 320px;
  }
}
