/* ═══════════════════════════════════════════════════════════════════════════
   AR Telecom — product detail page
   Layout + measurements mirror the reference storefront product page:
   two-column summary (gallery | info table + key features + payment options
   + buy row), then a stacked specification / description / price / Q&A /
   review column with a "Similar Product" rail beside it.
   Colours come from the theme; the price red matches the reference palette.
   ═══════════════════════════════════════════════════════════════════════════ */

.pd-page {
    --pd-blue:   var(--st-accent, #3749bb);
    --pd-orange: var(--st-secondary, #ef4a23);
    --pd-red:    #d51e0b;
    --pd-purple: #6e2594;
    --pd-tint:   rgba(55, 73, 187, .05);
    --pd-line:   #ecedef;
    --pd-muted:  #666666;
    --pd-soft:   #edf2f5;
    background: #fff;
}

/* ──────────────────────────────────────────────── summary: gallery + info ── */
.pd-summary-wrap { padding: 10px 0 30px; }

.pd-basic { display: flex; flex-wrap: wrap; gap: 30px; }
.pd-media { flex: 0 0 41.666%; max-width: 41.666%; }
.pd-info  { flex: 1 1 0; min-width: 0; }

/* gallery */
.product-images { width: 100%; text-align: center; }
.product-img-holder { position: relative; display: block; padding: 10px; }
.product-img-holder .thumbnail { position: relative; display: block; overflow: hidden; }
.product-img-holder .main-img { max-width: 400px; width: 100%; margin: 0 auto; display: block; }
.product-images .thumbnails {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 30px 0; list-style: none; margin: 0;
}
.product-images .thumbnails li {
    flex: 0 0 60px; padding: 10px; margin-right: -1px; border: 1px solid #eee; background: #fff; line-height: 0;
    cursor: pointer; transition: border-color .2s;
}
.product-images .thumbnails li:hover, .product-images .thumbnails li.is-on { border-color: var(--pd-blue); }
.product-images .thumbnails li img { width: 100%; height: 40px; object-fit: contain; }

/* ──────────────────────────────────────────────────────────── info block ── */
.pd-summary { width: 100%; padding-bottom: 40px; }

h1.product-name {
    color: var(--pd-blue); font-size: 22px; line-height: 30px;
    padding: 5px 0 10px; margin: 0; font-weight: 600;
}

/* Short description (admin field) — one-line summary under the product name. */
.product-short-desc { font-size: 14px; line-height: 20px; color: var(--pd-muted); margin: 0 0 12px; }

.product-info-table { width: 100%; margin: 0 0 20px; border-collapse: collapse; }
.product-info-table tbody { display: flex; flex-wrap: wrap; }
.product-info-table tbody tr {
    display: flex; margin: 0 7px 7px -2px; background: var(--pd-tint);
    border-radius: 30px; line-height: 30px; padding: 0 12px; font-size: 14px;
}
.product-info-table tbody tr .product-info-label { color: var(--pd-muted); white-space: nowrap; }
.product-info-table tbody tr .product-info-label::after { content: ":"; }
.product-info-table tbody tr .product-info-data { font-weight: 700; font-size: 14px; padding-left: 5px; }
.product-info-table tbody tr .product-info-data ins { text-decoration: none; color: var(--pd-red); }
.product-info-table tbody tr .product-info-data del { color: var(--pd-muted); text-decoration: line-through; }
.product-info-table tbody tr .product-info-data .pd-in-stock { color: #0a8a3c; }
.product-info-table tbody tr .product-info-data .pd-out-stock { color: var(--pd-red); }

.pd-summary h2 { font-size: 18px; font-weight: 400; margin: 0 0 10px; }

.short-description { margin-bottom: 20px; }
.short-description ul { list-style: none; margin: 0; padding: 0; }
.short-description li { display: block; font-size: 13px; color: var(--pd-muted); line-height: 20px; padding-bottom: 10px; }
.short-description .view-more {
    display: inline-block; line-height: 24px; padding-bottom: 2px; cursor: pointer;
}
.short-description .view-more a {
    color: var(--pd-red); border-bottom: 1px solid var(--pd-red);
}
.short-description .view-more a:hover { box-shadow: 0 1px 0 var(--pd-orange); }

/* payment options */
.product-price-options { display: flex; justify-content: space-between; padding-bottom: 20px; }
.product-price-options .p-wrap {
    flex: 1 1 auto; border: 2px solid var(--pd-soft); position: relative;
    padding: 15px 15px 15px 55px; box-shadow: 40px 0 0 #fafafa inset; cursor: pointer;
}
.product-price-options .p-wrap:hover,
.product-price-options .p-wrap.active { border: 2px solid var(--pd-blue); }
.product-price-options .p-wrap.cash { flex: 0 0 45%; margin-right: 15px; }
.product-price-options .p-wrap input {
    position: absolute; height: 20px; left: 14px; top: 50%; margin-top: -10px;
    transform: scale(1.3); cursor: pointer; accent-color: var(--pd-blue);
}
.product-price-options .p-wrap .price {
    display: inline-block; font-size: 20px; line-height: 24px; padding-bottom: 5px; font-weight: 700;
    color: var(--pd-red);
}
.product-price-options .p-wrap .price .price-old {
    color: var(--pd-muted); font-size: 18px; font-weight: 400; text-decoration: line-through; margin-left: 6px;
}
.product-price-options .p-wrap .p-tag { font-size: 13px; line-height: 20px; white-space: nowrap; color: var(--pd-muted); }
.product-price-options .p-wrap .p-tag.fade { color: #9aa0a6; }

/* quantity + buy row */
.pd-cart-option { display: flex; flex-wrap: wrap; gap: 15px; align-items: stretch; }
.pd-cart-option .quantity {
    width: 140px; display: flex; border: 1px solid var(--pd-soft); background: #fff;
}
.pd-cart-option .quantity button {
    flex: 0 0 40px; display: flex; align-items: center; justify-content: center;
    border: 0; background: none; font-size: 18px; line-height: 1; color: #111; cursor: pointer;
}
.pd-cart-option .quantity button:hover { background: #f1f1f1; }
.pd-cart-option .quantity input {
    width: 60px; height: 40px; border: 0; text-align: center; font: inherit;
    box-shadow: 1px 0 0 var(--pd-soft), -1px 0 0 var(--pd-soft);
    -moz-appearance: textfield; appearance: textfield;
}
.pd-cart-option .quantity input::-webkit-outer-spin-button,
.pd-cart-option .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-cart-option .pd-buy { min-width: 200px; justify-content: center; }
.pd-cart-option .pd-add { min-width: 200px; justify-content: center; }

.pd-variants { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.pd-variants .pd-variant-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-variants .pd-variant-label { font-size: 13px; font-weight: 600; color: #374151; min-width: 70px; }

/* ──────────────────────────────────────────────────────── full-width area ── */
.pd-full { border-top: 1px solid var(--pd-line); }
.pd-full-row { display: flex; flex-wrap: wrap; gap: 30px; padding: 24px 0 10px; }
.pd-main { flex: 1 1 0; min-width: 0; }
.pd-side { flex: 0 0 25%; max-width: 25%; }

.pd-navs { margin-bottom: 20px; }
.pd-navs ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pd-navs li {
    padding: 0 20px; margin: 0 10px 20px 0; line-height: 40px; background: #f2f4f8;
    border-radius: 4px; font-size: 14px; font-weight: 600; color: #374151;
}
.pd-navs li:first-child,
.pd-navs li:hover { background: var(--pd-red); color: #fff; }
.pd-navs li a { display: block; color: inherit; }

.pd-sec { padding: 0 0 10px; margin-bottom: 25px; }
.pd-sec .section-head { padding-bottom: 20px; }
.section-head h2 { font-size: 20px; font-weight: 600; margin: 0; color: #111; }
.pd-sec p.section-blurb { color: var(--pd-muted); margin: 0; font-size: 14px; }

.pd-q-n-r .section-head { display: flex; border-bottom: 1px solid #eee; }
.pd-q-n-r .section-head > div { flex: 1 1 auto; }
.pd-q-n-r .section-head > div.pd-q-action {
    flex: 0 0 auto; text-align: right; display: flex; align-items: center;
}

/* spec table */
.pd-data-table { width: 100%; border-collapse: collapse; }
.pd-data-table .heading-row {
    background: var(--pd-tint); color: var(--pd-blue); font-size: 16px; line-height: 30px;
    font-weight: 700; padding: 6px 20px; margin: 20px 0 0; border-radius: 5px;
}
.pd-data-table tbody tr { display: flex; }
.pd-data-table tbody td { padding: 10px 20px; line-height: 22px; border-bottom: 1px solid var(--pd-line); font-size: 14px; }
.pd-data-table tbody tr:hover { background: #fafbfc; }
.pd-data-table tbody td.pd-name { flex: 0 0 250px; color: var(--pd-muted); }
.pd-data-table tbody td.pd-value { flex: 1 1 auto; }

/* description + seo copy */
.pd-full-description { line-height: 24px; font-size: 14px; }
.pd-full-description h2 { font-size: 18px; margin: 18px 0 8px; }
.pd-full-description p { margin: 0 0 12px; }
.pd-full-description ul { padding: 10px 0 10px 18px; margin: 0; }
.pd-full-description li { margin-bottom: 5px; }
.pd-full-description a { color: var(--pd-blue); text-decoration: underline; }

/* Q&A + reviews (values from the reference stylesheet) */
.pd-q-n-r .section-head { display: flex; border-bottom: 1px solid #eee; }
.pd-q-n-r .section-head > div { flex: 1 1 auto; }
.pd-q-n-r .section-head > div.q-action {
    flex: 0 0 auto; text-align: right; display: flex; align-items: center;
}

/* questions */
.question-wrap { padding: 20px 0 20px 30px; border-bottom: 1px solid var(--pd-line); position: relative; }
.question-wrap p { margin-bottom: 0; position: relative; }
.question-wrap p.author { font-size: 13px; margin: 0 0 10px; color: var(--pd-muted); }
.question-wrap p.author .name { color: var(--pd-blue); font-weight: 700; }
.question-wrap p.author.answerer { font-size: 13px; color: var(--pd-muted); margin: 10px 0 0; }
.question-wrap h3.question { position: relative; margin: 0 0 5px; font-size: 15px; line-height: 22px; font-weight: 600; }
.question-wrap .hint { position: absolute; left: -30px; font-weight: 700; color: #111; font-size: 14px; }
.question-wrap .answer-wrap .answer { font-size: 14px; color: #374151; position: relative; }
.question-wrap .fade { color: #9aa0a6; }

/* reviews */
.review .average-rating { padding-top: 15px; line-height: 30px; }
.review .average-rating .count { font-size: 20px; }
.review .average-rating .count span { font-size: 14px; font-weight: 400; }
.review .average-rating .rating { margin-right: 10px; }
.review-wrap { padding: 20px 0; border-bottom: 1px solid var(--pd-line); }
.review-wrap h3 { font-size: 15px; line-height: 22px; margin: 0 0 5px; font-weight: 600; }
.review-author { display: inline-block; width: 100%; line-height: 20px; margin-bottom: 5px; }
.review-author .rating { display: inline-block; background: #fff; border-radius: 3px; line-height: 20px; }
.review-body { margin: 0 0 10px; font-size: 14px; color: #374151; }
.review-meta { margin: 0 0 6px; font-size: 13px; }
.review-wrap .author { margin: 0; font-size: 13px; color: var(--pd-muted); }
.review-wrap .author .name { font-weight: 700; color: var(--pd-blue); }
.review-wrap .author .fade { color: #9aa0a6; }
.review-wrap .author .verified { color: #0a8a3c; margin-left: 6px; }

.pd-form-card { border: 1px solid var(--pd-line); border-radius: 6px; padding: 16px; margin-top: 18px; }

/* PREV · 1 2 · NEXT pager (reference metrics) */
.pd-q-n-r .pagination { padding-top: 20px; }
.pagination { list-style: none; margin: 0; padding-left: 0; }
.pagination li {
    display: inline-block; margin: 0 5px 5px 0; font-size: 12px; font-weight: 700;
    line-height: 34px; text-align: center; min-width: 36px;
}
.pagination li a,
.pagination li span { background: #f1f3f5; padding: 0 10px; color: #111; display: block; border-radius: 4px; }
.pagination li span.disabled { color: #666; cursor: default; }
.pagination li.active span { background-color: var(--pd-red); color: #fff; }
.pagination li:hover a { background-color: var(--pd-red); color: #fff; }

/* similar product rail */
.pd-related { border: 1px solid var(--pd-line); border-radius: 6px; padding: 15px; }
.pd-related h3 {
    font-size: 16px; font-weight: 600; margin: 0 0 6px; padding-bottom: 10px;
    border-bottom: 1px solid var(--pd-line); color: #111;
}
.p-s-item { display: flex; gap: 10px; padding: 15px 0; border-top: 1px solid var(--pd-line); }
.p-s-item:first-of-type { border-top: 0; }
.p-s-item .image-holder { flex: 0 0 86px; display: flex; align-items: flex-start; }
.p-s-item .image-holder img { width: 70px; height: 70px; object-fit: contain; }
.p-s-item .p-s-body { min-width: 0; }
.p-s-item .p-s-name { margin: 0 0 8px; }
.p-s-item .p-s-name a { font-size: 15px; color: #000; font-weight: 400; line-height: 18px; }
.p-s-item .p-s-name a:hover { color: var(--pd-orange); }
.p-s-item .p-s-price { font-size: 16px; color: var(--pd-red); font-weight: 600; padding-bottom: 6px; }
.p-s-item .p-s-price .p-s-old {
    font-size: 12px; font-weight: 600; color: var(--pd-muted); text-decoration: line-through; padding-left: 5px;
}

/* ────────────────────────────────────────────────────────────── responsive ── */
@media (max-width: 991px) {
    .pd-media { flex: 0 0 100%; max-width: 100%; }
    .pd-side { flex: 0 0 100%; max-width: 100%; }
    .product-price-options { flex-wrap: wrap; }
    .product-price-options .p-wrap.cash { flex: 1 1 100%; margin: 0 0 12px; }
    .pd-data-table tbody td { padding: 10px; }
    .pd-data-table tbody td.pd-name { flex: 0 0 150px; border-bottom: none; font-size: 13px; }
    .pd-data-table .heading-row { padding: 4px 10px; font-size: 14px; }
    .product-info-table tbody tr { margin-bottom: 5px; }
}
@media (max-width: 575px) {
    h1.product-name { font-size: 19px; line-height: 26px; }
    .pd-cart-option .pd-buy,
    .pd-cart-option .pd-add { min-width: 0; flex: 1 1 100%; }
    .pd-navs li { padding: 0 14px; font-size: 13px; margin-right: 6px; }
}

/* ──────────────────────────────────────── image view (lightbox) ──
   Click the product photo to open it full-size; hover only magnifies
   with a mouse, so this is how to view it big on touch screens. */
.product-img-holder .thumbnail.is-zoomable { cursor: zoom-in; }

.st-lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(8, 22, 33, .9);
}
.st-lightbox.is-on { display: flex; }
.st-lightbox img {
    width: auto; height: auto; max-width: min(92vw, 1100px); max-height: 88vh;
    object-fit: contain; background: #fff; border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.st-lightbox .st-lb-close,
.st-lightbox .st-lb-prev,
.st-lightbox .st-lb-next {
    position: absolute; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-size: 20px;
    background: rgba(255, 255, 255, .16); transition: background .2s ease;
}
.st-lightbox .st-lb-close { top: 16px; right: 20px; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; }
.st-lightbox .st-lb-prev,
.st-lightbox .st-lb-next { top: 50%; transform: translateY(-50%); width: 46px; height: 64px; }
.st-lightbox .st-lb-prev { left: 16px; }
.st-lightbox .st-lb-next { right: 16px; }
.st-lightbox .st-lb-close:hover,
.st-lightbox .st-lb-prev:hover,
.st-lightbox .st-lb-next:hover { background: var(--pd-orange, #ef4a23); }
.st-lightbox.is-single .st-lb-prev,
.st-lightbox.is-single .st-lb-next { display: none; }
body.st-lb-open { overflow: hidden; }
