/* service — the page's own styles, on this page only. */

/* --- product page (the record pages) ------------------------
   Gallery and description left, the buy box right — the name, the price and
   the button together, staying in sight while the left side scrolls (when it
   fits the window: record.js sets .is-sticky). One column from 720px,
   with a bar at the bottom once the button scrolled away. The .product-detail
   rules below stay for designs that draw their own product page. */
.product-page { padding-top: 1.6rem; }

.product-back { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); font-size: .92rem; }

.product-back:hover { color: var(--mark, var(--primary)); }

.product-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45rem; margin: 0 0 1.4rem; color: var(--muted); font-size: .92rem; }

.product-crumbs .product-back { margin-bottom: 0; }

.product-crumbs__cat { color: var(--muted); }

.product-crumbs__cat:hover { color: var(--mark, var(--primary)); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "gallery buy" "about buy";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 4vw, 3rem);
  row-gap: 2.4rem;
  align-items: start;
}

.product-buy { grid-area: buy; min-width: 0; }

.product-about { grid-area: about; min-width: 0; }

.product-buy.is-sticky { position: sticky; top: calc(var(--header-sticky-h, 0px) + 1.5rem); }

/* The buy box. */
.product-buy__title { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; margin-bottom: .6rem; text-wrap: balance; }

.product-buy__lead { font-size: 1rem; color: var(--body-text); max-width: 46ch; margin: 0 0 .5rem; }

.product-buy__action { margin-top: 1.2rem; }

.product-buy__note { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }

/* The bar at the bottom of a narrow screen. */
.product-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}

.product-bar__text { display: grid; min-width: 0; flex: 1; }

.product-bar__name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-bar__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 721px) {
  .product-bar { display: none !important; }
}

@media (max-width: 1100px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
}

@media (max-width: 720px) {
  .product-layout, .product-layout--nophoto { display: flex; flex-direction: column; gap: 1.8rem; }
  .product-buy.is-sticky { position: static; }
}

.buy-form { display: flex; align-items: center; gap: .8rem; }

.buy-qty {
  width: 74px;
  height: 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
}

.buy-qty:focus { outline: none; border-color: var(--mark, var(--primary)); }

.auth-form .btn { width: 100%; }

.product-bar__form { margin: 0; flex: none; }

@media (max-width: 900px) {
  .profile-card__foot .btn { padding: .45rem .9rem; }
}

/* The price on the page (_price.twig): the old price, «from», the amount, the unit, how long it takes. */
.service-price { display: grid; gap: .2rem; margin: 1.2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink); grid-template-columns: auto; }

.service-price__was { display: flex; align-items: center; gap: .5rem; }

.service-price__was .price-was { font-size: .95rem; margin: 0; color: var(--muted); }

.service-price .price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }

.service-price .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

.service-price .price-from,
.service-price .price-unit { font-size: 1rem; color: var(--muted); }

.service-price .price-ask { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

.service-price__dur { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--muted); }

.service-price__dur svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 560px) {
  .service-price .price { font-size: 1.85rem; }
}
