:root {
  --z-editor-canvas: 100;
  --z-side-panel: 500;
  --z-header: 1000;
  --z-dropdown: 2000;
  --z-modal: 3000;
  --z-tooltip: 4000;
}

html[data-jewdiy-route="shop"],
html[data-jewdiy-route="shop"] body {
  max-width: 100%;
  overflow-x: clip;
}

html[data-jewdiy-route="shop"] body {
  background: #fff;
}

html[data-jewdiy-route="shop"] .topbar {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  z-index: var(--z-header) !important;
  border-bottom-color: #d9dedb;
  background: rgba(255, 255, 255, 0.96);
}

html[data-jewdiy-route="shop"] .topbar > .brand {
  grid-column: 1 / span 3;
  min-width: 0;
}

html[data-jewdiy-route="shop"] .topbar > .top-actions {
  grid-column: 4 / -1;
  min-width: 0;
  justify-content: flex-end;
}

html[data-jewdiy-route="shop"] :is(.cart-overlay, .image-lightbox, .cart-panel) {
  z-index: var(--z-modal) !important;
}

html[data-jewdiy-route="shop"] .toast {
  z-index: var(--z-tooltip) !important;
  border-radius: 6px;
}

html[data-jewdiy-route="shop"] .commercial-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7c9be;
  border-radius: 6px;
  background: #fffaf6;
  color: #6f352d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

html[data-jewdiy-route="shop"][data-commercial-offer-ready="0"] .cart-option-grid {
  grid-template-columns: 1fr !important;
}

html[data-jewdiy-route="shop"][data-commercial-offer-ready="0"] .cart-option-card:not(:first-child) {
  display: none !important;
}

html[data-jewdiy-route="shop"][data-commercial-offer-ready="0"] #cartCheckout {
  cursor: not-allowed;
  opacity: 0.58;
}

html[data-jewdiy-route="shop"] :is(button, a.pill, select, input[type="search"]) {
  min-height: 44px;
  border-radius: 4px;
}

html[data-jewdiy-route="shop"] > body > .hero {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

html[data-jewdiy-route="shop"] > body > .hero > :first-child {
  grid-column: 1 / span 7;
  min-width: 0;
}

html[data-jewdiy-route="shop"] > body > .hero > .hero-card {
  grid-column: 8 / -1;
  min-width: 0;
}

html[data-jewdiy-route="shop"] .hero-note {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-transform: uppercase;
}

html[data-jewdiy-route="shop"] .hero-photo-pending {
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

html[data-jewdiy-route="shop"] .hero-photo-pending div {
  max-width: 38ch;
}

html[data-jewdiy-route="shop"] .value-chip {
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-jewdiy-route="shop"] .tab {
  border-radius: 4px;
}

html[data-jewdiy-route="shop"] .catalog-empty {
  border-width: 1px 0;
  border-radius: 0;
  background: #f7f8f7;
  box-shadow: none;
}

html[data-jewdiy-route="shop"] :is(body > .ready-value-strip, #catalog > .catalog, #catalog > .shop-info, #catalog > .toolbar) {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

html[data-jewdiy-route="shop"] > body > .ready-value-strip > * {
  grid-column: span 3;
  min-width: 0;
}

html[data-jewdiy-route="shop"] #catalog > .toolbar > .tabs {
  grid-column: 1 / span 6;
  min-width: 0;
}

html[data-jewdiy-route="shop"] #catalog > .toolbar > .material-filter {
  grid-column: 7 / span 2;
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #59625a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

html[data-jewdiy-route="shop"] #catalog > .toolbar > .material-filter select {
  width: 100%;
  min-width: 0;
  padding-inline: 10px 30px;
}

html[data-jewdiy-route="shop"] #catalog > .toolbar > input[type="search"] {
  grid-column: 9 / -1;
  min-width: 0;
  align-self: end;
}

html[data-jewdiy-route="shop"] #catalog > .toolbar > .catalog-note,
html[data-jewdiy-route="shop"] #catalog > .catalog > .catalog-empty {
  grid-column: 1 / -1 !important;
}

html[data-jewdiy-route="shop"] #catalog > .catalog > * {
  grid-column: span 3;
  min-width: 0;
}

html[data-jewdiy-route="shop"] #catalog > .shop-info > * {
  grid-column: span 4;
  min-width: 0;
}

@media (min-width: 761px) and (max-width: 1023px) {
  html[data-jewdiy-route="shop"] :is(.topbar, body > .hero, body > .ready-value-strip, #catalog > .catalog, #catalog > .shop-info, #catalog > .toolbar) {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }

  html[data-jewdiy-route="shop"] .topbar > .brand { grid-column: 1 / span 3; }
  html[data-jewdiy-route="shop"] .topbar > .top-actions { grid-column: 4 / -1; }
  html[data-jewdiy-route="shop"] > body > .hero > :first-child { grid-column: 1 / span 5; }
  html[data-jewdiy-route="shop"] > body > .hero > .hero-card { grid-column: 6 / -1; }
  html[data-jewdiy-route="shop"] > body > .ready-value-strip > * { grid-column: span 4; }
  html[data-jewdiy-route="shop"] #catalog > .toolbar > .tabs { grid-column: 1 / -1; }
  html[data-jewdiy-route="shop"] #catalog > .toolbar > .material-filter { grid-column: 1 / span 3; }
  html[data-jewdiy-route="shop"] #catalog > .toolbar > input[type="search"] { grid-column: 4 / -1; }
  html[data-jewdiy-route="shop"] #catalog > .catalog > * { grid-column: span 4; }
  html[data-jewdiy-route="shop"] #catalog > .shop-info > * { grid-column: span 4; }
}

@media (max-width: 760px) {
  html[data-jewdiy-route="shop"] body.ready-made-page {
    padding-top: 65px;
  }

  html[data-jewdiy-route="shop"] .topbar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px;
    padding: 10px 14px;
  }

  html[data-jewdiy-route="shop"] .topbar > .brand {
    grid-column: 1 / span 2;
  }

  html[data-jewdiy-route="shop"] .topbar > .top-actions {
    grid-column: 3 / -1;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
  }

  html[data-jewdiy-route="shop"] .topbar > .top-actions > a.pill {
    display: none;
  }

  html[data-jewdiy-route="shop"] .topbar .brand-mark {
    display: none;
  }

  html[data-jewdiy-route="shop"] .brand-wordmark {
    width: 112px;
    max-width: 32vw;
  }

  html[data-jewdiy-route="shop"] .topbar > .top-actions .pill,
  html[data-jewdiy-route="shop"] .topbar > .top-actions select {
    max-width: 92px;
    padding-inline: 10px;
  }

  html[data-jewdiy-route="shop"] .topbar > .top-actions #miniCart {
    min-width: 54px;
  }

  html[data-jewdiy-route="shop"] #catalog > .catalog {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html[data-jewdiy-route="shop"] :is(body > .hero, body > .ready-value-strip, #catalog > .shop-info, #catalog > .toolbar) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html[data-jewdiy-route="shop"] > body > .hero > :is(:first-child, .hero-card),
  html[data-jewdiy-route="shop"] #catalog > .toolbar > :is(.tabs, .material-filter, input[type="search"], .catalog-note),
  html[data-jewdiy-route="shop"] #catalog > .shop-info > * {
    grid-column: 1 / -1 !important;
  }

  html[data-jewdiy-route="shop"] > body > .ready-value-strip > * {
    grid-column: span 2;
  }

  html[data-jewdiy-route="shop"] #catalog > .catalog > * {
    grid-column: span 2 !important;
    min-width: 0;
  }

  html[data-jewdiy-route="shop"] .catalog > .catalog-empty {
    grid-column: 1 / -1 !important;
  }

  html[data-jewdiy-route="shop"] .hero p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  html[data-jewdiy-route="shop"] .hero > :first-child > .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  html[data-jewdiy-route="shop"] .hero > :first-child > .top-actions .pill {
    width: 100%;
    max-width: none;
    padding-inline: 10px;
  }

  html[data-jewdiy-route="shop"] .hero-photo-pending div {
    max-width: none;
    gap: 4px;
  }

  html[data-jewdiy-route="shop"] .hero-photo-pending span {
    font-size: 12px;
    line-height: 1.45;
  }

  html[data-jewdiy-route="shop"] .cart-panel,
  html[data-jewdiy-route="shop"] .image-lightbox-panel {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.card-detail-link {
  text-decoration: none;
}

html[data-jewdiy-route="shop"] .card > .body > :is(.formula-mini, .formula-accordion, .size-row),
html[data-jewdiy-route="shop"] .card .actions > :is([data-add], [data-buy]) {
  display: none !important;
}

html[data-jewdiy-route="shop"] .card .actions {
  margin-top: auto;
}

html[data-jewdiy-route="shop"] > body > .hero {
  align-items: center !important;
  min-height: 410px !important;
  padding: 54px max(24px, calc((100% - 1320px) / 2)) !important;
  gap: 40px !important;
  background: #f3f5f3 !important;
}

html[data-jewdiy-route="shop"] .hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 4.2vw, 60px) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

html[data-jewdiy-route="shop"] .hero p {
  max-width: 58ch;
  line-height: 1.65;
}

html[data-jewdiy-route="shop"] .hero-photo-pending {
  display: flex !important;
  align-items: center !important;
  min-height: 230px !important;
  max-height: none !important;
  padding: 30px 0 !important;
}

html[data-jewdiy-route="shop"] .hero-photo-pending strong {
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(26px, 2.3vw, 34px) !important;
  line-height: 1.16 !important;
}

html[data-jewdiy-route="shop"] > body > .ready-value-strip {
  width: 100% !important;
  margin: 0 !important;
  padding: 22px max(24px, calc((100% - 1320px) / 2)) !important;
  gap: 0 !important;
  border-bottom: 1px solid #d9dedb;
  background: #fff;
}

html[data-jewdiy-route="shop"] .value-chip {
  min-height: 82px;
  padding: 8px 18px !important;
  border-width: 0 1px 0 0 !important;
}

html[data-jewdiy-route="shop"] .value-chip:last-child {
  border-right: 0 !important;
}

html[data-jewdiy-route="shop"] #catalog {
  padding: 42px max(24px, calc((100% - 1320px) / 2)) 64px !important;
  scroll-margin-top: calc(var(--sticky-offset, 65px) + 16px);
}

html[data-jewdiy-route="shop"] #catalog > .toolbar {
  gap: 16px !important;
  margin-bottom: 34px !important;
}

html[data-jewdiy-route="shop"] .catalog-empty {
  min-height: 190px;
  align-content: center;
  padding: 34px 28px !important;
}

html[data-jewdiy-route="shop"] #catalog > .shop-info {
  gap: 34px !important;
  margin-top: 64px !important;
  padding: 42px 0 !important;
  border-width: 1px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  html[data-jewdiy-route="shop"] > body > .hero {
    min-height: 0 !important;
    padding: 28px 16px 24px !important;
    gap: 20px !important;
  }

  html[data-jewdiy-route="shop"] .hero h1 {
    max-width: none;
    margin-bottom: 10px;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  html[data-jewdiy-route="shop"] .hero p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  html[data-jewdiy-route="shop"] .hero-photo-pending {
    min-height: 0 !important;
    padding: 20px 0 !important;
  }

  html[data-jewdiy-route="shop"] .hero-photo-pending strong {
    font-size: 24px !important;
  }

  html[data-jewdiy-route="shop"] > body > .ready-value-strip {
    padding: 16px !important;
  }

  html[data-jewdiy-route="shop"] .value-chip {
    min-height: 96px;
    padding: 12px !important;
    border-width: 1px 0 0 !important;
  }

  html[data-jewdiy-route="shop"] #catalog {
    padding: 28px 16px 48px !important;
    scroll-margin-top: calc(var(--sticky-offset, 65px) + 10px);
  }

  html[data-jewdiy-route="shop"] #catalog > .toolbar {
    margin-bottom: 24px !important;
  }

  html[data-jewdiy-route="shop"] #catalog > .toolbar > .tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  html[data-jewdiy-route="shop"] #catalog > .toolbar > .tabs::-webkit-scrollbar {
    display: none;
  }

  html[data-jewdiy-route="shop"] .card :is(.story, .body-price) {
    display: none !important;
  }

  html[data-jewdiy-route="shop"] .card .body {
    padding: 10px !important;
  }

  html[data-jewdiy-route="shop"] .card .body h3 {
    min-height: 2.6em;
    font-size: 14px;
    line-height: 1.3;
  }

  html[data-jewdiy-route="shop"] .card .actions {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  html[data-jewdiy-route="shop"] .card .actions .pill {
    font-size: 12px;
  }

  html[data-jewdiy-route="shop"] .catalog-empty {
    min-height: 180px;
    padding: 26px 20px !important;
  }

  html[data-jewdiy-route="shop"] #catalog > .shop-info {
    margin-top: 52px !important;
    padding: 34px 0 !important;
  }

  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] .hero-photo-pending,
  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] > body > .ready-value-strip,
  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] #catalog > .toolbar {
    display: none !important;
  }

  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] #catalog {
    padding-top: 18px !important;
  }

  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] body.ready-catalog-anchor-active #catalog {
    min-height: 0;
  }

  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] .catalog-empty {
    min-height: 0;
    padding: 24px 20px !important;
  }

  html[data-jewdiy-route="shop"][data-ready-made-commerce-mode="inspiration"] body.ready-catalog-anchor-active #catalog > .catalog > .catalog-empty {
    min-height: 0;
    align-content: start;
    padding-top: 30px !important;
  }
}

@media (max-width: 360px) {
  html[data-jewdiy-route="shop"] #catalog > .catalog {
    gap: 8px !important;
  }

  html[data-jewdiy-route="shop"] > body > .ready-value-strip > * {
    grid-column: 1 / -1;
  }

  html[data-jewdiy-route="shop"] .hero h1 {
    font-size: 30px !important;
  }

  html[data-jewdiy-route="shop"] #catalog {
    padding-inline: 12px !important;
  }
}

@media (max-width: 340px) {
  html[data-jewdiy-route="shop"] .catalog > .card {
    grid-column: 1 / -1 !important;
  }
}
