/* ---------------------------------------------------------------------------
   Prime Tech — ready-made package cards
   ---------------------------------------------------------------------------
   Own file, like portfolio.css, so the template's style.css stays pristine.

   These are wider than portfolio cards (2-up, not 3-up) on purpose: a buying
   decision needs the price, the inclusions and the demo link visible together
   without scrolling past them.

   RTL comes from the page's dir="rtl"; only the few properties that cannot be
   expressed logically are flipped at the bottom.
--------------------------------------------------------------------------- */

.pt-products-grid { margin-top: 10px; }

.pt-product { display: flex; margin-bottom: 30px; }

.pt-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.pt-product-card:hover {
  box-shadow: 0 18px 40px rgba(20, 32, 63, 0.13);
  transform: translateY(-4px);
}

.pt-product-media {
  display: block;
  background: #f2f5fa;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pt-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms ease;
}

/* ---- glyph tile (artwork not made yet) -------------------------------------
   Drawn in place of the image when a package carries `image: null` in
   data/projects.js. An <img> with no src renders as a broken-image icon in
   every browser, which reads as a bug rather than as art still to come. Put a
   16:9 file in images/products/, set `image` on the entry, and the tile is
   replaced with no CSS change. The glyph class itself comes from the entry's
   `glyph` field — Font Awesome or the template's flaticon set, both loaded. */

.pt-product-media--glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3fd 0%, #dbe6fa 100%);
}

.pt-product-media--glyph > span {
  font-size: 62px;
  line-height: 1;
  color: #2f7df6;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .pt-product-media--glyph > span { font-size: 48px; }
}

/* ---- clickable card -------------------------------------------------------- */
/* Present only when the package has a `page` in data/projects.js. The image and
   title are real anchors; products-render.js extends the click target to the
   rest of the card, excluding the Buy button and the demo link. */

.pt-product-card--linked { cursor: pointer; }

.pt-product-card--linked:hover .pt-product-media img { transform: scale(1.04); }

/* The card body is not a link, so the buttons inside it must keep their own
   cursor rather than inheriting the card's pointer. */
.pt-product-card--linked .pt-buy-actions { cursor: auto; }

/* The title is an anchor but should read as a heading until hovered. */
.pt-product-body h3 a {
  color: inherit;
  text-decoration: none;
}

.pt-product-body h3 a:hover,
.pt-product-body h3 a:focus { color: #2f7df6; }

.pt-product-card--linked a:focus-visible {
  outline: 2px solid #2f7df6;
  outline-offset: 2px;
}

.pt-product-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }

.pt-product-body h3 {
  font-size: 24px;
  line-height: 1.3;
  color: #141d38;
  margin: 0 0 6px;
  font-weight: 700;
}

.pt-product-tagline { color: #6b7590; font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

/* ---- price ---------------------------------------------------------------- */

.pt-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-top: 1px solid #eef1f7;
  border-bottom: 1px solid #eef1f7;
  margin-bottom: 20px;
}

.pt-price-amount { font-size: 34px; font-weight: 800; color: #141d38; line-height: 1; }
.pt-price-cur    { font-size: 16px; font-weight: 700; color: #141d38; }
.pt-price-term   { font-size: 13px; color: #8a93aa; }

/* The API was unreachable. Say so plainly rather than showing a stale number. */
.pt-price-na { font-size: 15px; color: #b0392f; font-weight: 600; }

/* ---- inclusions ----------------------------------------------------------- */

.pt-includes-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93aa;
  margin-bottom: 10px;
}

.pt-includes { list-style: none; margin: 0 0 24px; padding: 0; }

.pt-includes li {
  position: relative;
  padding-inline-start: 24px;
  margin-bottom: 9px;
  color: #414a63;
  font-size: 15px;
  line-height: 1.5;
}

.pt-includes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-inline-start: 2px solid #2f7df6;
  border-bottom: 2px solid #2f7df6;
  transform: rotate(-45deg);
}

/* ---- actions -------------------------------------------------------------- */

.pt-buy-actions { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* The enquiry link is the primary action on a quote-only package, so it carries
   the primary button's weight. It is an <a> rather than a <button> because it
   navigates to the contact page instead of opening the checkout dialog. */
.pt-buy-btn,
.pt-buy-enquire {
  border: 0;
  background: #2f7df6;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 200ms ease;
}

.pt-buy-enquire { display: inline-block; text-decoration: none; }

.pt-buy-btn:hover,
.pt-buy-enquire:hover { background: #1c63d0; color: #ffffff; text-decoration: none; }

.pt-buy-demo { font-size: 15px; font-weight: 600; color: #2f7df6; }
.pt-buy-demo:hover { text-decoration: underline; }

/* ---- buyer details dialog -------------------------------------------------- */

.pt-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 38, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.pt-modal-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.pt-modal-box h4 { margin: 0 0 20px; font-size: 20px; color: #141d38; font-weight: 700; }

.pt-modal-box label {
  display: block;
  font-size: 13px;
  color: #6b7590;
  margin-bottom: 14px;
  font-weight: 600;
}

.pt-modal-box input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #d8dee9;
  border-radius: 4px;
  font-size: 15px;
  color: #141d38;
}

.pt-modal-box input:focus { outline: 2px solid #2f7df6; outline-offset: 1px; border-color: #2f7df6; }

.pt-modal-err {
  background: #fdeceb;
  color: #b0392f;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pt-modal-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }

.pt-modal-pay {
  border: 0;
  background: #2f7df6;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 4px;
  cursor: pointer;
}

.pt-modal-pay:disabled { background: #9db9e8; cursor: default; }

.pt-modal-cancel {
  border: 0;
  background: transparent;
  color: #6b7590;
  font-size: 15px;
  cursor: pointer;
  padding: 12px 4px;
}

.pt-modal-note { font-size: 12px; color: #8a93aa; margin: 16px 0 0; line-height: 1.5; }

/* ---- order outcome --------------------------------------------------------- */

.pt-order { max-width: 620px; margin: 0 auto; text-align: center; padding: 20px 0 10px; }
.pt-order h2 { font-size: 28px; color: #141d38; margin-bottom: 14px; }
.pt-order p { color: #6b7590; font-size: 16px; line-height: 1.7; }
.pt-order-detail {
  margin: 26px auto 0;
  text-align: start;
  background: #f7f9fc;
  border: 1px solid #e8ecf3;
  border-radius: 6px;
  padding: 20px 24px;
}
.pt-order-detail div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.pt-order-detail dt { color: #8a93aa; }
.pt-order-detail dd { color: #141d38; font-weight: 600; margin: 0; }

/* ---- responsive ------------------------------------------------------------ */

@media (max-width: 767px) {
  .pt-product-body { padding: 22px 20px 24px; }
  .pt-price-amount { font-size: 28px; }
  .pt-buy-btn,
  .pt-buy-enquire { width: 100%; text-align: center; }
  .pt-buy-actions { gap: 12px; }
}

/* ---- buy block on a product detail page ------------------------------------
   salon-suite.html renders price + Buy into [data-pt-buy] via js/checkout.js.
   The closing band is .pp-band--dark, which already restyles .pp-btn--solid to
   white-on-navy, so the button needs nothing. The price does: its default
   colours are near-black and would vanish against that background.
--------------------------------------------------------------------------- */

.pp-buy { margin-bottom: 22px; }

.pp-buy .pt-price {
  border: 0;
  padding: 0 0 4px;
  margin-bottom: 18px;
}

.pp-band--dark .pp-buy .pt-price-amount,
.pp-band--dark .pp-buy .pt-price-cur { color: #ffffff; }
.pp-band--dark .pp-buy .pt-price-term { color: rgba(255, 255, 255, 0.6); }
.pp-band--dark .pp-buy .pt-price-na   { color: rgba(255, 255, 255, 0.75); }

/* The dialog itself is always on a white card, so it needs no dark variant. */
