/* Product page (prod.php, product card). Loaded only there (see index.php).
   Same palette as the cart: #B4D2DB, #C4E0F9, gradient #E8F3FC -> #C4E0F9; accent #3f7f94. */

.nf-pd { --nf-accent: #3f7f94; --nf-accent-2: #6fa9bd; --nf-soft: #f4f8fa; --nf-line: #e6eef1; --nf-muted: #5f7079;
  max-width: 1180px; padding-top: 14px; padding-bottom: 24px; color: #111; }
.nf-pd a { text-decoration: none; }

/* breadcrumbs */
.nf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--nf-muted); }
.nf-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nf-crumbs li + li::before { content: "›"; color: #a9b7be; }
.nf-crumbs a { color: var(--nf-muted); }
.nf-crumbs a:hover { color: var(--nf-accent); }
.nf-crumbs [aria-current] { color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* top: gallery + buy box */
.nf-pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.nf-pd-gallery { position: sticky; top: 90px; }
.nf-pd-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 24px; border-radius: 20px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 40, 60, .05), 0 8px 24px rgba(20, 40, 60, .06); color: #c5d0d5; font-size: 64px; overflow: hidden; }
.nf-pd-photo img { width: 100%; height: 100%; object-fit: contain; }
.nf-pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.nf-pd-thumb { flex: 0 0 72px; width: 72px; height: 72px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(20, 40, 60, .08); }
.nf-pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.nf-pd-thumb.is-active, .nf-pd-thumb:hover { border-color: #B4D2DB; }

.nf-pd-brand { display: inline-block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nf-accent); }
.nf-pd-brand:hover { color: #1b3a46; }
.nf-pd-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.nf-pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #eaf3f7; color: #1b3a46; font-size: 13px; font-weight: 600; }
.nf-pd-lead { color: #43545c; margin-bottom: 14px; }

.nf-pd-buy { padding: 20px; border-radius: 16px; background: linear-gradient(135deg, #E8F3FC, #D4E9F7); }
.nf-pd-price { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; line-height: 1; margin-bottom: 16px; color: #111; }
.nf-pd-actions { display: flex; gap: 12px; align-items: stretch; }
.nf-pd .nf-qty { display: inline-flex; align-items: center; padding: 4px; border-radius: 999px; background: #fff; }
.nf-pd .nf-qty-btn { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f1f6f8; color: #333; font-size: 18px; }
.nf-pd .nf-qty-btn:hover { background: #B4D2DB; }
.nf-pd .nf-qty-input { width: 42px; height: 38px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.nf-pd .nf-qty-input::-webkit-outer-spin-button, .nf-pd .nf-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nf-pd .nf-cta { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  background: linear-gradient(135deg, var(--nf-accent-2), var(--nf-accent)); color: #fff; border: 0; border-radius: 12px; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 18px rgba(63, 127, 148, .3); transition: transform .12s, box-shadow .12s, filter .12s; }
.nf-pd .nf-cta:hover, .nf-pd .nf-cta:focus-visible { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(63, 127, 148, .38); }
.nf-pd .nf-cta:disabled { opacity: .7; transform: none; }
.nf-pd .nf-cta.is-done { background: #1a7f4b; box-shadow: 0 8px 18px rgba(26, 127, 75, .25); }
.nf-pd-incart { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: #1a7f4b; }
.nf-pd-incart:hover { color: #14663c; }
.nf-pd-incart[hidden] { display: none; }


/* characteristics + description */
.nf-pd-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 36px; }
.nf-pd-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(20, 40, 60, .05), 0 8px 24px rgba(20, 40, 60, .06); }
.nf-pd-card h2, .nf-pd-more h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.nf-pd-specs dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; margin: 0; font-size: 14px; }
.nf-pd-specs dt, .nf-pd-specs dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--nf-line); }
.nf-pd-specs dt:first-of-type, .nf-pd-specs dd:first-of-type { border-top: 0; }
.nf-pd-specs dt { color: var(--nf-muted); font-weight: 400; padding-right: 16px; }
.nf-pd-specs dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.nf-pd-specs dd a { color: var(--nf-accent); }
.nf-pd-desc { line-height: 1.6; color: #2b3a41; overflow-wrap: anywhere; }
.nf-pd-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.nf-pd-desc table { max-width: 100%; }
.nf-pd-desc ul, .nf-pd-desc ol { padding-left: 1.3em; }
.nf-pd-desc p:last-child { margin-bottom: 0; }

/* more products: the catalog grid, with an h3 title instead of h5 */
.nf-pd-more { margin-top: 36px; }
.nf-pd-more .my-product-grid { padding: 0; white-space: normal; }
.nf-pd-more .card-title { font-size: 1rem; font-weight: normal; margin-bottom: 8px; }
.nf-pd-more .card-title a { color: inherit; }
.nf-pd-more .card-title a:hover { color: var(--nf-accent); }

/* mobile buy bar */
.nf-pd-bar { display: none; }

@media (max-width: 991.98px) {
  .nf-pd-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .nf-pd-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nf-pd-gallery { position: static; }
  .nf-pd-photo { padding: 14px; border-radius: 16px; }
  .nf-pd-buy { padding: 16px; }
  .nf-pd-actions { gap: 8px; }
  .nf-pd .nf-qty-btn { width: 34px; height: 34px; }
  .nf-pd .nf-qty-input { width: 34px; }
  .nf-pd-actions .nf-cta { padding: 10px 12px; font-size: 15px; white-space: nowrap; }
  .nf-pd-body { margin-top: 24px; gap: 16px; }
  .nf-pd-card { padding: 18px; }
  .nf-pd-more { margin-top: 24px; }
  .nf-pd { padding-bottom: 90px; }
  .nf-pd-bar:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    box-shadow: 0 -6px 20px rgba(20, 40, 60, .1); }
  .nf-pd-bar-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
  .nf-pd-bar-info span { font-size: 12px; color: var(--nf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nf-pd-bar-info b { font-size: 18px; }
  .nf-pd-bar .nf-cta { flex: 0 0 auto; min-height: 44px; padding: 10px 16px; font-size: 15px; }
}
