:root {
  color-scheme: light;
  --color-primary: #EA2828;
  --color-secondary: #ffffff;
  --color-text: #000000;
  --color-muted: #4b4b4b;
  --color-border: #eeeeee;
  --color-page: #ffffff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-page);
  color: var(--color-text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-page);
  padding-top: 5.75rem;
}

input,
select,
textarea {
  color: var(--color-text);
  -webkit-text-fill-color: var(--color-text);
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-brand a {
  font-size: 1.35rem;
  font-weight: 700;
}

.site-brand img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.mobile-icon-button,
.mobile-icon-link,
.mobile-search {
  display: none;
}

.mobile-icon-button,
.mobile-icon-link,
.mobile-search button,
.cart-button {
  -webkit-tap-highlight-color: transparent;
}

.mobile-icon-button img,
.mobile-icon-link img,
.mobile-search svg,
.cart-button__icon {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  object-fit: contain;
}

.mobile-search svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-actions {
  display: flex;
  align-items: center;
}

.logout-form {
  margin: 0;
}

.mobile-menu-toggle {
  display: none;
}

.site-main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-copy {
  padding: 3rem;
  background: var(--color-secondary);
  border-radius: 1.5rem;
  box-shadow: 0 20px 80px rgba(62, 63, 72, 0.08);
  overflow: hidden;
}

.hero-copy--image,
.hero-card--image,
.category-card--image {
  background-position: center;
  background-repeat: no-repeat;
}

.hero-copy--image,
.hero-card--image {
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  font-size: 0.8rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero-copy p {
  max-width: 38rem;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-feature {
  display: grid;
  place-items: center;
}

.hero-card {
  width: 100%;
  min-height: 320px;
  border-radius: 1.5rem;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.hero-card__content,
.hero-copy__content {
  max-width: 42rem;
}

.hero-card-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hero-card h2 {
  font-size: 2rem;
  margin: 0;
}

.hero-card p {
  color: var(--color-secondary);
  line-height: 1.8;
  max-width: 28rem;
}

.section-grid {
  margin-bottom: 3rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.75rem;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

.category-grid,
.product-grid {
  display: grid;
  gap: 1.25rem;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card {
  aspect-ratio: 5 / 4;
  min-height: 170px;
  border-radius: 1.2rem;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-text);
  padding: 1.5rem;
}

.category-card--image {
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: var(--color-secondary);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  border-radius: 1.3rem;
  background: var(--color-secondary);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(66, 46, 124, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.wishlist-form {
  position: absolute;
  top: 13.25rem;
  right: 0.9rem;
  z-index: 3;
  margin: 0;
}

.wishlist-button {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 140ms ease;
}

.wishlist-button img {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.58));
  transition: filter 140ms ease;
}

.wishlist-button:hover,
.wishlist-button:focus-visible {
  transform: scale(1.08);
}

.wishlist-button:hover img,
.wishlist-button:focus-visible img,
.wishlist-button--active img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(87%) saturate(3050%) hue-rotate(347deg) brightness(102%) contrast(89%) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.wishlist-empty-message {
  grid-column: 1 / -1;
  text-align: center;
}

.product-thumb {
  min-height: 220px;
  background: #fff5f5;
  display: grid;
  place-items: center;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}

.form-card {
  background: var(--color-secondary);
  border-radius: 1.4rem;
  box-shadow: 0 24px 80px rgba(66, 46, 124, 0.08);
  padding: 2rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: end;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 1.1rem;
  padding: 1rem;
}

.filter-panel p {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.filter-panel label {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
}

.filter-panel__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.panel-note {
  color: var(--color-muted);
  margin-top: -0.25rem;
}

.manager-product-form {
  align-items: start;
}

.manager-product-form__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

.manager-product-form__grid p {
  margin: 0;
}

.manager-product-form__grid p:has(textarea),
.manager-product-form__grid p:has(input[type="file"]) {
  grid-column: span 2;
}

.size-quantity-field {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.9rem 1.25rem;
  align-items: start;
  padding: 1rem 0;
}

.size-quantity-field__heading {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 1.15rem;
  font-weight: 800;
}

.size-quantity-field__labels {
  display: grid;
  grid-template-rows: repeat(2, 3.8rem);
  gap: 1rem;
  align-items: center;
  color: #667085;
  font-size: 1.05rem;
  font-weight: 800;
}

.size-quantity-field__rows {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(7.5rem, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.size-quantity-field__row {
  display: grid;
  grid-template-rows: repeat(2, 3.8rem);
  gap: 1rem;
  min-width: 7.5rem;
}

.size-quantity-field__row input {
  height: 3.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.8rem;
  text-align: center;
  font-size: 1.15rem;
}

.size-quantity-field__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.size-quantity-field__add {
  padding: 0.75rem 1.2rem;
}

.size-quantity-field__footer strong {
  color: #667085;
  font-size: 1.05rem;
}

.size-quantity-field > .helptext {
  grid-column: 1 / -1;
  margin: -0.35rem 0 0;
  color: #667085;
  font-weight: 600;
}

.manager-product-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.manager-product-form__checkbox input {
  width: auto;
}

.manager-product-form__checkbox label {
  margin: 0;
}

.manager-product-form .helptext {
  display: block;
  margin-top: 0.45rem;
  color: var(--color-muted);
}

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

.storefront-media-form__grid p {
  margin: 0;
}

.manager-product-gallery {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.manager-product-gallery figure {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.manager-product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.manager-product-gallery figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.product-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--color-border);
  background: var(--color-secondary);
  color: var(--color-text);
  font: inherit;
}

.product-form input::placeholder,
.product-form textarea::placeholder {
  color: #777777;
}

.compact-form {
  gap: 0.6rem;
}

.compact-form input {
  max-width: 110px;
}

.inline-form {
  display: inline-flex;
}

.form-error {
  color: var(--color-primary);
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  padding: 1rem;
  border-radius: 1rem;
}

.product-content {
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.product-image-link {
  display: block;
  position: relative;
}

.sold-out-badge {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.product-content h3 {
  margin: 0;
  font-size: 1.1rem;
}

.product-description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.product-price {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.product-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #fff5f5;
  color: var(--color-primary);
  width: fit-content;
}

.badge-muted {
  background: var(--color-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-primary);
}

.cart-button__icon {
  display: none;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.table-card,
.activity-panel,
.summary-panel,
.metric-card {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 16px 48px rgba(50, 55, 72, 0.08);
}

.table-card {
  overflow-x: auto;
  padding: 1rem;
}

.table-card h3,
.activity-panel h3,
.summary-panel h3 {
  margin: 0 0 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 0.95rem;
  border-bottom: 1px solid #eeeaea;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #66616a;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.data-table a,
.text-button {
  color: var(--color-primary);
  font-weight: 700;
}

.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.summary-panel {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

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

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tracking-step {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  text-align: center;
}

.tracking-step--done {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-secondary);
}

.wide-panel {
  max-width: none;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eeeaea;
  padding-bottom: 0.8rem;
}

.summary-line span,
.summary-total span {
  color: var(--color-muted);
}

.summary-line strong {
  text-align: right;
  max-width: 55%;
  overflow-wrap: anywhere;
}

.summary-total {
  border-bottom: 0;
  font-size: 1.1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
}

.metric-card span {
  color: var(--color-muted);
  font-size: 0.85rem;
}

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

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.activity-panel {
  padding: 1rem;
}

.activity-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eeeaea;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item span {
  color: var(--color-text);
}

.activity-item small {
  color: var(--color-muted);
}

.spaced-heading {
  margin-top: 2rem;
}

@media (min-width: 781px) {
  .storefront-page .hero {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .checkout-layout,
  .admin-grid,
  .manager-product-form__grid,
  .storefront-media-form__grid,
  .tracking-summary-grid,
  .tracking-steps {
    grid-template-columns: 1fr;
  }

  .size-quantity-field {
    grid-column: 1;
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .size-quantity-field__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  :root {
    --color-border: #d7d7d7;
  }

  html {
    overflow-x: hidden;
  }

  .storefront-page {
    background: #ffffff;
    overflow-x: hidden;
    padding-top: 5.2rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1.9rem 1.9rem minmax(7.2rem, 1fr) 1.9rem 1.9rem;
    align-items: center;
    justify-content: stretch;
    gap: 0;
    padding: 0.6rem 0.65rem;
    border-bottom: 2px solid #111111;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    width: 100%;
    max-width: 100vw;
    height: 3.12rem;
    z-index: 100;
  }

  .site-brand {
    grid-column: 3;
    grid-row: 1;
    text-align: center;
    width: 7.2rem;
    justify-self: center;
    align-self: center;
    position: static;
    transform: none;
  }

  .site-brand a {
    display: block;
    line-height: 0;
  }

  .site-brand img {
    display: block;
    width: 100%;
    height: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--color-secondary);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.05rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    color: #111111;
  }

  .mobile-icon-link,
  .mobile-icon-button {
    width: 1.8rem;
    height: 1.95rem;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.1rem 1.1rem;
  }

  .mobile-icon-link img,
  .mobile-icon-button img {
    width: 1.1rem;
    height: 1.1rem;
  }

  .mobile-menu-toggle img {
    width: 1rem;
    height: 1rem;
  }

  .site-header > .mobile-wishlist-link,
  .site-header > .mobile-account-link,
  .site-header > .mobile-cart-link {
    display: inline-flex;
    justify-self: center;
    align-self: center;
    color: #111111;
  }

  .mobile-wishlist-link {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-account-link {
    grid-column: 4;
    grid-row: 1;
    position: static;
    transform: none;
    z-index: 11;
  }

  .mobile-cart-link {
    grid-column: 5;
    grid-row: 1;
    position: static;
    transform: none;
    z-index: 11;
  }

  .mobile-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.85rem;
    align-items: center;
    height: 2.07rem;
    border-bottom: 1px solid var(--color-border);
    background: #ffffff;
    position: fixed;
    top: 3.12rem;
    left: 0;
    right: 0;
    z-index: 99;
  }

  .mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: #ffffff;
    padding: 0 0.9rem;
    font-family: "Apple Chancery", "Bradley Hand", "Segoe Script", cursive;
    font-size: 0.8rem;
    outline: 0;
  }

  .mobile-search input::placeholder {
    color: #111111;
    opacity: 1;
  }

  .mobile-search button {
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    background: transparent;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-search svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .site-actions {
    display: none;
  }

  .site-main {
    max-width: none;
    padding: 0;
    overflow-x: hidden;
  }

  .storefront-page .hero,
  .storefront-page .section-heading,
  .storefront-page .site-footer {
    display: none;
  }

  .storefront-page .section-grid {
    margin: 0;
  }

  .storefront-page .category-grid {
    display: flex;
    gap: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    border-bottom: 1px solid var(--color-border);
    scrollbar-width: none;
  }

  .storefront-page .category-grid::-webkit-scrollbar {
    display: none;
  }

  .storefront-page .category-card {
    flex: 0 0 25vw;
    min-width: 25vw;
    min-height: 9.5rem;
    aspect-ratio: 1 / 1.1;
    border: 0;
    border-right: 1px solid #ffffff;
    border-radius: 0;
    padding: 0.8rem 0.35rem;
    align-items: end;
    background-color: #f4f4f4;
    background-size: cover, cover;
    background-position: center, center;
    color: #000000;
    font-family: "Marker Felt", "Comic Sans MS", cursive;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-transform: none;
    text-shadow: 0 1px 0 #ffffff, 0 0 8px rgba(255, 255, 255, 0.7);
    scroll-snap-align: start;
  }

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

  .storefront-page .product-card {
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    min-width: 0;
  }

  .storefront-page .product-card:nth-child(2n) {
    border-right: 0;
  }

  .storefront-page .product-image {
    height: auto;
    aspect-ratio: 0.74;
    object-fit: cover;
    object-position: top center;
    background: #f4f4f4;
  }

  .storefront-page .product-content {
    min-height: 6.8rem;
    padding: 0.75rem 1.1rem 0.65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.1rem;
    grid-template-areas:
      "name name"
      "description description"
      "price cart";
    gap: 0.25rem 0.5rem;
    align-items: end;
  }

  .storefront-page .product-content h3 {
    grid-area: name;
    font-family: "Apple Chancery", "Bradley Hand", "Segoe Script", cursive;
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.05;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .storefront-page .product-description {
    grid-area: description;
    color: #111111;
    font-family: "Apple Chancery", "Bradley Hand", "Segoe Script", cursive;
    font-size: 0.83rem;
    line-height: 1.25;
    min-height: 2.1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .storefront-page .product-price {
    grid-area: price;
    align-self: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
    font-weight: 400;
  }

  .storefront-page .product-meta,
  .storefront-page .compact-form label,
  .storefront-page .compact-form input,
  .storefront-page .cart-button__label {
    display: none;
  }

  .storefront-page .inline-form,
  .storefront-page .compact-form,
  .storefront-page .product-content > .cart-button {
    grid-area: cart;
    justify-self: end;
    display: inline-flex;
    margin: 0;
  }

  .storefront-page .cart-button {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111111;
  }

  .storefront-page .cart-button__icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
  }

  .storefront-page .wishlist-form {
    top: calc((50vw / 0.74) - 2.85rem);
    right: 0.8rem;
  }

  .storefront-page .wishlist-button {
    width: 2rem;
    height: 2rem;
  }

  .storefront-page .wishlist-button img {
    width: 1.45rem;
    height: 1.45rem;
  }

  .hero-copy,
  .hero-card {
    padding: 1.5rem;
  }

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

.product-image {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 260px;
}

.product-card {
  border-radius: 1.3rem;
  background: var(--color-secondary);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(66, 46, 124, 0.08);
  display: flex;
  flex-direction: column;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.product-detail__gallery,
.product-detail__info {
  min-width: 0;
}

.product-detail__hero-frame {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 3 / 4;
}

.product-detail__hero-image {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #f4f4f4;
}

.sold-out-badge--detail {
  bottom: 2rem;
  font-size: 1.15rem;
}

.product-detail__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #111111;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-detail__gallery-nav--prev {
  left: 0.75rem;
}

.product-detail__gallery-nav--next {
  right: 0.75rem;
}

.product-detail__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-detail__thumb {
  flex: 0 0 7rem;
  display: block;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.product-detail__thumb--active {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.product-detail__thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail__info {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}

.product-detail__back,
.product-detail__category {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.product-detail__category {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-detail h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.05;
}

.product-detail__description {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.product-detail__price {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
}

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

.product-detail__meta div {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.product-detail__meta dt {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.product-detail__meta dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.product-detail__size-picker {
  border: 0;
  margin: 0;
  padding: 0;
}

.product-detail__size-picker legend {
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.product-detail__size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product-detail__size-option {
  min-width: 4.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  text-align: center;
}

.product-detail__size-option span {
  font-weight: 800;
}

.product-detail__size-option small {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.product-detail__size-option--active {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.product-detail__size-option:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-detail__purchase {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.product-detail__purchase input {
  width: 5rem;
  min-height: 3rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font: inherit;
  text-align: center;
  font-weight: 700;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 3rem 5rem 3rem;
  width: max-content;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.quantity-control input {
  border-top: 0;
  border-bottom: 0;
}

.quantity-control__button {
  border: 0;
  background: #ffffff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.product-detail__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 100%;
}

.product-detail__actions .btn {
  min-width: 0;
  width: 100%;
}

.cart-item-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 680px) {
  .site-header {
    padding: 1rem;
  }

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

  .product-detail__info {
    padding: 1rem;
    width: 100%;
    max-width: 100vw;
  }

  .product-detail h1 {
    font-size: 1.8rem;
  }

  .product-detail__thumbs {
    padding: 0 1rem;
  }

  .product-detail__thumb {
    flex-basis: 7.5rem;
  }

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

  .product-detail__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .product-detail__actions .btn {
    width: 100%;
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

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