/*
 * Ready-made product v1.
 * A quiet, light product surface aligned with the shared Custom interface.
 * Product facts use values already present in the Ready-made catalog.
 */
#typewriterWorkshop #view-ready-product {
  --rmp-ink:var(--charcoal, #292824);
  --rmp-muted:var(--muted-ink, #62625e);
  --rmp-line:var(--border, #dadad7);
  --rmp-paper:var(--paper, #fff);
  --rmp-canvas:var(--canvas, #f7f7f7);
  --rmp-accent:#e3ebe5;
  --rmp-accent-hover:#d6e2da;
  --rmp-accent-line:#bdcbc1;
  --rmp-accent-ink:#27362d;
  --rmp-sale:#9a4429;
  width:100%;
  padding:38px 0 96px;
  color:var(--rmp-ink);
}

#view-ready-product .rmp-shell {
  width:100%;
  max-width:1176px;
  margin:0 auto;
}

#view-ready-product .rmp-back,
#view-ready-product .rmp-breadcrumb a,
#view-ready-product .rmp-policy-links a,
#view-ready-product .rmp-invalid > a {
  color:inherit;
  text-decoration:none;
}

#view-ready-product .rmp-back {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin:0 0 10px;
  color:var(--rmp-muted);
  font-size:13px;
  text-decoration:underline;
  text-decoration-color:transparent;
  text-underline-offset:4px;
  transition:color 160ms ease, text-decoration-color 160ms ease;
}

#view-ready-product .rmp-breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 24px;
  color:var(--rmp-muted);
  font-size:12px;
}

#view-ready-product .rmp-breadcrumb a {
  min-height:28px;
  display:inline-flex;
  align-items:center;
  text-decoration:underline;
  text-decoration-color:transparent;
  text-underline-offset:3px;
  transition:color 160ms ease, text-decoration-color 160ms ease;
}

#view-ready-product .rmp-breadcrumb span {
  color:#a0a29f;
}

#view-ready-product .rmp-product {
  display:grid;
  grid-template-columns:minmax(0, 1.12fr) minmax(340px, .78fr);
  align-items:start;
  gap:clamp(48px, 6.4vw, 82px);
}

#view-ready-product .rmp-media {
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:1 / 1;
  min-width:0;
  overflow:hidden;
  border:1px solid #e1e3e1;
  border-radius:12px;
  background:#eef0ef;
}

#view-ready-product .rmp-media img {
  width:100%;
  height:100%;
  object-fit:contain;
}

#view-ready-product .rmp-image-error {
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  gap:4px;
  padding:24px;
  text-align:center;
  background:var(--rmp-canvas);
  color:var(--rmp-muted);
}

#view-ready-product .rmp-image-error[hidden] {
  display:none !important;
}

#view-ready-product .rmp-image-error p {
  color:var(--rmp-ink);
  font-size:15px;
  font-weight:500;
}

#view-ready-product .rmp-image-error span {
  font-size:13px;
}

#view-ready-product .rmp-details {
  min-width:0;
  padding:8px 0 0;
}

#view-ready-product .rmp-category {
  margin:0 0 10px;
  color:var(--rmp-muted);
  font-size:13px;
  line-height:1.5;
}

#typewriterWorkshop #view-ready-product h1 {
  margin:0;
  color:var(--rmp-ink);
  font-family:var(--serif, Georgia, "Times New Roman", serif);
  font-size:clamp(38px, 4vw, 50px);
  font-weight:400;
  line-height:1.06;
  letter-spacing:-1.7px;
}

#typewriterWorkshop #view-ready-product h1:focus {
  outline:none;
}

#view-ready-product .rmp-description {
  max-width:42ch;
  margin:18px 0 0;
  color:var(--rmp-muted);
  font-size:15px;
  line-height:1.7;
}

#view-ready-product .rmp-price {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px 10px;
  margin:28px 0 26px;
}

#view-ready-product .rmp-price strong {
  color:var(--rmp-ink);
  font-size:28px;
  font-weight:500;
  line-height:1;
  letter-spacing:-.7px;
}

#view-ready-product .rmp-price del {
  color:#7a7e7b;
  font-size:13px;
}

#view-ready-product .rmp-price span {
  color:var(--rmp-sale);
  font-size:12px;
  font-weight:500;
}

#view-ready-product .rmp-volume-note {
  max-width:46ch;
  margin:-12px 0 24px;
  color:var(--rmp-muted);
  font-size:12px;
  line-height:1.55;
}

#view-ready-product .rmp-facts {
  margin:0;
  border-top:1px solid var(--rmp-line);
}

#view-ready-product .rmp-facts > div {
  display:grid;
  grid-template-columns:88px minmax(0, 1fr);
  gap:18px;
  padding:13px 0;
  border-bottom:1px solid var(--rmp-line);
}

#view-ready-product .rmp-facts dt,
#view-ready-product .rmp-facts dd {
  margin:0;
  font-size:13px;
  line-height:1.55;
}

#view-ready-product .rmp-facts dt {
  color:var(--rmp-muted);
}

#view-ready-product .rmp-facts dd {
  color:var(--rmp-ink);
  text-align:right;
}

#view-ready-product .rmp-purchase {
  margin-top:24px;
}

#view-ready-product .rmp-add {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:50px;
  padding:12px 20px;
  border:1px solid var(--rmp-accent-line);
  border-radius:8px;
  background:var(--rmp-accent);
  color:var(--rmp-accent-ink);
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  transition:background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

#view-ready-product .rmp-add:active:not(:disabled) {
  transform:translateY(1px);
}

#view-ready-product .rmp-add:disabled {
  border-color:#dfe2df;
  background:#eceeec;
  color:#858a86;
}

#view-ready-product .rmp-purchase-status:empty {
  display:none;
}

#view-ready-product .rmp-purchase-status {
  margin:10px 0 0;
  color:var(--rmp-muted);
  font-size:12px;
}

#view-ready-product .rmp-policy-links {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--rmp-line);
}

#view-ready-product .rmp-policy-links a {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  min-width:0;
  min-height:44px;
  padding:4px 0;
}

#view-ready-product .rmp-policy-links span {
  color:var(--rmp-ink);
  font-size:13px;
  text-decoration:underline;
  text-decoration-color:#c6cac7;
  text-underline-offset:4px;
}

#view-ready-product .rmp-policy-links small {
  color:var(--rmp-muted);
  font-size:11px;
  line-height:1.5;
}

#view-ready-product .rmp-invalid {
  display:none;
  max-width:620px;
  min-height:360px;
  padding:64px 0;
  border-top:1px solid var(--rmp-line);
}

#view-ready-product[data-ready-product-state="invalid"] .rmp-product {
  display:none;
}

#view-ready-product[data-ready-product-state="invalid"] .rmp-breadcrumb-category {
  display:none;
}

#view-ready-product[data-ready-product-state="invalid"] .rmp-invalid {
  display:block;
}

#typewriterWorkshop #view-ready-product .rmp-invalid h1 {
  font-size:clamp(34px, 4vw, 46px);
}

#view-ready-product .rmp-invalid > p:not(.rmp-category) {
  max-width:48ch;
  margin:18px 0 24px;
  color:var(--rmp-muted);
  font-size:15px;
  line-height:1.7;
}

#view-ready-product .rmp-invalid > a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--rmp-ink);
  font-size:13px;
  text-decoration:underline;
  text-decoration-color:#aeb3af;
  text-underline-offset:4px;
}

#view-ready-product :where(a, button):focus-visible {
  outline:2px solid var(--rmp-ink);
  outline-offset:3px;
}

@media (hover:hover) and (pointer:fine) {
  #view-ready-product .rmp-back:hover,
  #view-ready-product .rmp-breadcrumb a:hover {
    color:var(--rmp-ink);
    text-decoration-color:currentColor;
  }

  #view-ready-product .rmp-add:hover:not(:disabled) {
    border-color:#aebfb3;
    background:var(--rmp-accent-hover);
  }

  #view-ready-product .rmp-policy-links a:hover span,
  #view-ready-product .rmp-invalid > a:hover {
    text-decoration-color:currentColor;
  }
}

@media (max-width:767px) {
  #typewriterWorkshop #view-ready-product {
    padding:26px 0 64px;
  }

  #view-ready-product .rmp-back {
    margin-bottom:6px;
  }

  #view-ready-product .rmp-breadcrumb {
    margin-bottom:18px;
  }

  #view-ready-product .rmp-product {
    grid-template-columns:minmax(0, 1fr);
    gap:30px;
  }

  #view-ready-product .rmp-media {
    border-radius:10px;
  }

  #view-ready-product .rmp-details {
    padding:0;
  }

  #typewriterWorkshop #view-ready-product h1 {
    font-size:36px;
    line-height:1.1;
    letter-spacing:-1.2px;
  }

  #view-ready-product .rmp-description {
    margin-top:14px;
  }

  #view-ready-product .rmp-price {
    margin:23px 0 20px;
  }

  #view-ready-product .rmp-volume-note {
    margin:-8px 0 22px;
  }

  #view-ready-product .rmp-policy-links {
    gap:14px;
  }

  #view-ready-product .rmp-invalid {
    min-height:300px;
    padding:46px 0;
  }
}

@media (max-width:380px) {
  #typewriterWorkshop #view-ready-product h1 {
    font-size:32px;
  }

  #view-ready-product .rmp-facts > div {
    grid-template-columns:70px minmax(0, 1fr);
    gap:12px;
  }

  #view-ready-product .rmp-policy-links {
    grid-template-columns:minmax(0, 1fr);
    gap:10px;
  }
}

@media (prefers-reduced-motion:reduce) {
  #view-ready-product .rmp-back,
  #view-ready-product .rmp-breadcrumb a,
  #view-ready-product .rmp-add {
    transition:none;
  }
}
