/* Product presentation only. Purchase actions stay in normal document flow. */
.nftel-product { --product-line: #dce5ee; --product-muted: #586b80; --stock-available: #16743e; --stock-orderable: #1d5fa8; --stock-unavailable: #b54708; min-width: 0; color: #172a43; }
.nftel-product *, .nftel-product *::before, .nftel-product *::after { box-sizing: border-box; }
.nftel-product .product-overview { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 2.5rem; padding: 2rem; background: #fff; border: 1px solid var(--product-line); border-radius: 1rem; }
.nftel-product .product-heading { grid-column: 2; grid-row: 1; min-width: 0; }
.nftel-product .product-heading .title { margin: 0.65rem 0 0.85rem; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.25; overflow-wrap: anywhere; color: #102f55; }
.nftel-product .product-brand { display: inline-flex; align-items: center; gap: 0.65rem; width: fit-content; color: var(--product-muted); font-size: 0.8rem; font-weight: 600; }
.nftel-product .product-brand img { max-width: 95px; max-height: 26px; object-fit: contain; }
.nftel-product .short-description { font-size: 0.95rem; line-height: 1.65; color: #4a5c71; }
.nftel-product .short-description > :first-child { margin-top: 0; }
.nftel-product .short-description > :last-child { margin-bottom: 0; }
.nftel-product .product-codes { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 1rem 0 1.25rem; color: var(--product-muted); font-size: 0.76rem; }
.nftel-product .product-codes > div { display: flex; flex-wrap: wrap; gap: 0.35rem; min-width: 0; }
.nftel-product .product-codes dt { font-weight: 500; }
.nftel-product .product-codes dd { margin: 0; overflow-wrap: anywhere; }
.nftel-product .product-gallery { grid-column: 1; grid-row: 1 / span 2; margin: 0; min-width: 0; }
.nftel-product .product-main-image { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1 / 1; padding: 1.5rem; overflow: hidden; background: #fff; border: 1px solid #e8edf3; border-radius: 0.8rem; }
.nftel-product .product-main-image > img { display: block; width: 100%; height: 100%; object-fit: contain; max-height: 470px; }
.nftel-product .product-image-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; max-width: 85%; text-align: center; color: #586b80; font-size: 0.85rem; line-height: 1.5; }
.nftel-product .product-image-fallback .fa { font-size: 2.5rem; color: #9babbc; }
.nftel-product .product-zoom-hint { position: absolute; right: 0.8rem; bottom: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.6rem; color: #4d6278; font-size: 0.73rem; background: rgba(248, 250, 252, 0.92); border-radius: 0.4rem; }
.nftel-product .product-sticker { position: absolute; top: 0.75rem; left: 0.75rem; }
.nftel-product .product-sticker .sticker { position: static; display: inline-block; padding: 0.4rem 0.6rem; border-radius: 0.4rem; background: #fef3c7; color: #824d00; font-size: 0.7rem; line-height: 1.35; font-weight: 700; }
.nftel-product .product-sticker .sticker.sale { background: #ffe5e5; color: #a91e28; }
.nftel-product .product-thumbnails { display: flex; gap: 0.6rem; max-width: 100%; overflow-x: auto; padding: 0.7rem 0.2rem 0.4rem; }
.nftel-product .product-thumbnails a { flex: 0 0 68px; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; padding: 0.25rem; border: 1px solid var(--product-line); border-radius: 0.5rem; background: #fff; }
.nftel-product .product-thumbnails a[aria-current="true"] { border-color: #1c7645; box-shadow: inset 0 0 0 1px #1c7645; }
.nftel-product .product-thumbnails img { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.nftel-product .product-thumbnail-fallback { color: #586b80; font-size: 0.85rem; }
.nftel-product .product-gallery-caption { margin: 0.35rem 0 0; text-align: center; color: var(--product-muted); font-size: 0.72rem; }
.nftel-product .product-purchase { grid-column: 2; grid-row: 2; min-width: 0; }
.nftel-product form[name="buy_now_form"] { margin: 0; padding: 0; border: 0; background: transparent; }
.nftel-product .product-price-block { padding-top: 1.1rem; border-top: 1px solid var(--product-line); }
.nftel-product .price-wrapper { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; font-size: 1.9rem; line-height: 1.3; color: #16743e; }
.nftel-product .price-wrapper .regular-price, .nftel-product .price-wrapper .recommended-price { order: 2; font-size: 0.85rem; color: #6c7684; font-weight: 400; }
.nftel-product .price-wrapper strong { font-weight: 750; }
.nftel-product .price-wrapper .campaign-price { color: #ad2331; }
.nftel-product .tax { margin: 0.35rem 0 0; color: var(--product-muted); font-size: 0.76rem; }
.nftel-product .offer-expires { margin: 0.45rem 0 0; font-size: 0.76rem; color: #ad2331; }
.nftel-product .stock-status { padding: 1rem 0; font-size: 0.85rem; }
.nftel-product .stock-available, .nftel-product .stock-partly-available, .nftel-product .stock-unavailable { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.nftel-product .stock-available { color: var(--stock-available); }
.nftel-product .stock-partly-available { color: var(--stock-orderable); }
.nftel-product .stock-unavailable { color: var(--stock-unavailable); }
.nftel-product .product-status-dot { flex: 0 0 7px; height: 7px; background: currentColor; border-radius: 50%; }
.nftel-product .stock-delivery, .nftel-product .stock-description { margin-top: 0.35rem; color: #52647a; font-size: 0.78rem; line-height: 1.5; }
.nftel-product .stock-description p { margin: 0.35rem 0 0; }
.nftel-product .product-option { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.nftel-product .product-option legend { margin-bottom: 0.5rem; padding: 0; color: #263b54; font-size: 0.85rem; font-weight: 650; }
.nftel-product .product-option select, .nftel-product .product-option textarea, .nftel-product .product-option input:not([type="radio"]):not([type="checkbox"]) { max-width: 100%; min-width: 0; }
.nftel-product .product-buy-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin-top: 0.4rem; }
.nftel-product .product-quantity { flex: 0 0 auto; max-width: 100%; }
.nftel-product .product-quantity label { display: block; margin: 0 0 0.4rem; color: #354b64; font-size: 0.76rem; font-weight: 600; }
.nftel-product .product-quantity .input-group { width: 125px; max-width: 100%; }
.nftel-product .product-quantity input { min-width: 0; height: 48px; text-align: center; }
.nftel-product .product-quantity .input-group-text { height: 48px; padding: 0.7rem; font-size: 0.8rem; }
.nftel-product .product-add-button { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 0.8rem 1rem; border-radius: 0.55rem; font-size: 0.92rem; font-weight: 650; }
.nftel-product .product-add-button .fa { margin-right: 0.25rem; }
.nftel-product .out-of-stock-notice { padding: 0.85rem 1rem; border: 1px solid #efc4b1; border-radius: 0.6rem; color: var(--stock-unavailable); background: #fff5ef; font-size: 0.85rem; line-height: 1.5; }
.nftel-product .stock-notice { margin-top: 0.8rem; padding: 0.65rem 0.8rem; border-radius: 0.5rem; background: #edf8f0; color: var(--stock-available); font-size: 0.83rem; }
.nftel-product .stock-notice:empty { display: none; }
.nftel-product .stock-notice.warning { background: #fff5ef; color: var(--stock-unavailable); }
.nftel-product .stock-notice.notice { background: #eef5ff; color: var(--stock-orderable); }
.nftel-product .product-shipping { margin: 1rem 0 0; font-size: 0.8rem; color: #4d6278; }
.nftel-product .product-sharing { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--product-line); }
.nftel-product .product-sharing a, .nftel-product .product-copy-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0.25rem 0; color: #405671; background: transparent; border: 0; font-size: 0.75rem; cursor: pointer; }
.nftel-product .product-sharing a:hover, .nftel-product .product-copy-link:hover { color: #12653b; }
.nftel-product .product-share-status { margin: 0.4rem 0 0; font-size: 0.76rem; color: #4d6278; }
.nftel-product .product-share-status:empty { display: none; }
.nftel-product .product-copy-field { margin-top: 0.6rem; font-size: 0.76rem; }
.nftel-product .product-copy-field input { display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem; border: 1px solid var(--product-line); border-radius: 0.4rem; }
.nftel-product [hidden] { display: none !important; }
.nftel-product .product-full-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.65rem; font-size: 0.83rem; }
.nftel-product .product-section-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.nftel-product .product-section-links a { padding: 0.65rem 1rem; color: #173b62; border: 1px solid var(--product-line); border-radius: 0.5rem; background: #fff; font-size: 0.87rem; }
.nftel-product .product-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.nftel-product .product-details.has-specifications { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nftel-product .product-details > section { padding: 1.4rem; min-width: 0; background: #fff; border: 1px solid var(--product-line); border-radius: 0.8rem; scroll-margin-top: 1rem; }
.nftel-product .product-details h2 { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.3; color: #102f55; }
.nftel-product .description { color: #35475c; font-size: 0.92rem; line-height: 1.75; overflow-wrap: anywhere; }
.nftel-product .description p:first-child { margin-top: 0; }
.nftel-product .description p:last-child { margin-bottom: 0; }
.nftel-product .description img, .nftel-product .description table { max-width: 100%; }
.nftel-product .product-spec-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; line-height: 1.55; }
.nftel-product .product-spec-table th, .nftel-product .product-spec-table td { padding: 0.65rem 0.75rem; text-align: start; vertical-align: top; border-bottom: 1px solid #e8edf3; overflow-wrap: anywhere; }
.nftel-product .product-spec-table th[scope="row"] { width: 43%; font-weight: 550; color: #41566f; }
.nftel-product .product-spec-table tr:nth-child(odd) { background: #f6f8fb; }
.nftel-product .product-spec-group th { padding-top: 1rem; font-weight: 700; color: #173b62; }
.product-page > section { margin-top: 1.25rem; }
.product-image-dialog { max-width: min(96vw, 1200px); width: fit-content; max-height: 94vh; padding: 3.4rem 1rem 1rem; border: 0; border-radius: 0.8rem; background: #fff; color: #173b62; }
.product-image-dialog::backdrop { background: rgba(14, 30, 51, 0.8); }
.product-image-dialog [hidden] { display: none !important; }
.product-image-dialog .product-image-error { display: flex; align-items: center; justify-content: center; width: min(70vw, 480px); min-height: 180px; margin: 0; text-align: center; color: #586b80; }
.product-image-dialog img { display: block; max-width: min(90vw, 1120px); max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.product-image-dialog .product-image-close { position: absolute; top: 0.65rem; right: 0.65rem; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0.5rem 0.8rem; border: 1px solid #cedbe8; border-radius: 0.4rem; background: #fff; color: #173b62; font-size: 0.8rem; }
@media (max-width: 900px) {
  .nftel-product .product-overview { gap: 0 1.25rem; padding: 1.25rem; }
  .nftel-product .product-main-image { padding: 0.75rem; }
  .nftel-product .product-details.has-specifications { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .nftel-product .product-overview { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; border-radius: 0.7rem; }
  .nftel-product .product-heading .title { font-size: 1.35rem; margin-top: 0.5rem; }
  .nftel-product .product-codes { margin-bottom: 0; }
  .nftel-product .product-main-image { aspect-ratio: auto; height: 280px; }
  .nftel-product .product-main-image > img { max-height: 100%; }
  .nftel-product .product-price-block { padding-top: 0.9rem; }
  .nftel-product .product-details > section { padding: 1rem; }
  .nftel-product .product-section-links { margin: 1rem 0; }
  .nftel-product .product-spec-table th, .nftel-product .product-spec-table td { padding: 0.6rem 0.5rem; }
  .product-image-dialog { padding: 3.5rem 0.5rem 0.5rem; }
}
@media (max-width: 370px) { .nftel-product .product-buy-actions { align-items: stretch; } .nftel-product .product-add-button { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .nftel-product *, .product-image-dialog * { scroll-behavior: auto; } }
