/* ============================================================
   THREENITI — Product Detail page redesign (v1, 2026-10-15)
   Scoped to .threeniti-product so it never leaks to other pages.
   Brand: navy #12225b, red-orange #e62e04 / #ff6a00, Inter.
   ============================================================ */
.threeniti-product{font-family:'Inter',sans-serif;color:#212529}
.threeniti-product .padding-y{padding-top:0!important}

/* ---------- HERO BAND ---------- */
.threeniti-product .tp-hero{position:relative;overflow:hidden;border-radius:18px;padding:26px 30px;margin:6px 0 16px;color:#fff;
  background:linear-gradient(120deg,#12225b 0%,#1c2f74 55%,#3a1d63 100%);box-shadow:0 12px 34px rgba(18,34,91,.20)}
.threeniti-product .tp-hero:before{content:"";position:absolute;right:-70px;top:-70px;width:280px;height:280px;border-radius:50%;
  background:radial-gradient(circle,rgba(230,46,4,.55),transparent 66%)}
.threeniti-product .tp-hero:after{content:"";position:absolute;left:-50px;bottom:-90px;width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,106,0,.28),transparent 66%)}
.threeniti-product .tp-crumb{position:relative;z-index:2;font-size:12.5px;color:rgba(255,255,255,.72);margin-bottom:9px;font-weight:500}
.threeniti-product .tp-crumb a{color:rgba(255,255,255,.72)}
.threeniti-product .tp-crumb a:hover{color:#fff;text-decoration:none}
.threeniti-product .tp-crumb .sep{opacity:.55;margin:0 8px}
.threeniti-product .tp-title{position:relative;z-index:2;font-size:30px;line-height:1.2;font-weight:800;letter-spacing:-.3px;margin:0 0 15px;color:#fff}
.threeniti-product .tp-chips{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:9px}
.threeniti-product .tp-chip{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;
  padding:7px 14px;border-radius:50px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.20);color:#fff}
.threeniti-product .tp-chip i{color:#ff9a5c;font-size:15px}
.threeniti-product .tp-chip.is-orange{background:linear-gradient(135deg,#e62e04,#ff6a00);border-color:transparent;box-shadow:0 6px 16px rgba(230,46,4,.35)}
.threeniti-product .tp-chip.is-orange i{color:#fff}

/* ---------- TRUST STRIP ---------- */
.threeniti-product .tp-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 24px}
.threeniti-product .tp-trust .t{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #e5e8ec;border-radius:14px;
  padding:13px 15px;box-shadow:0 3px 12px rgba(18,34,91,.05);transition:.2s}
.threeniti-product .tp-trust .t:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(18,34,91,.10);border-color:#f4d9cf}
.threeniti-product .tp-trust .t i{font-size:21px;color:#e62e04;width:28px;text-align:center}
.threeniti-product .tp-trust .t b{display:block;font-size:13px;color:#12225b;font-weight:700;line-height:1.2}
.threeniti-product .tp-trust .t span{font-size:11.5px;color:#687385}
@media(max-width:767px){.threeniti-product .tp-trust{grid-template-columns:repeat(2,1fr)}}

/* ---------- MAIN GRID ---------- */
.threeniti-product .section-content{background:transparent!important;box-shadow:none!important;padding:0!important;margin-bottom:26px!important}
.threeniti-product .one{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;margin:0!important;align-items:start}
.threeniti-product .one>[class*="col-"]{width:auto!important;max-width:none!important;flex:none!important;padding:0!important;float:none!important}
@media(max-width:991px){.threeniti-product .one{grid-template-columns:1fr}}

/* ---------- GALLERY ---------- */
.threeniti-product .left .card{border:1px solid #e5e8ec!important;border-radius:16px!important;box-shadow:0 8px 26px rgba(18,34,91,.07)!important;background:#fff;padding:16px}
.threeniti-product .gallery-wrap{display:flex;flex-direction:column;gap:14px;margin:0}
.threeniti-product .img-big-wrap{order:1;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#f6f7fb,#eef1f7);
  display:flex!important;align-items:center;justify-content:center;min-height:300px}
.threeniti-product .img-big-wrap img{width:100%;max-height:540px;object-fit:contain;display:block}
.threeniti-product .thumbs-wrap{order:2;display:flex;gap:10px;overflow-x:auto;padding:2px 0 6px}
.threeniti-product .thumbs-wrap .item-thumb{flex:0 0 auto;width:78px;height:78px;border:2px solid #e5e8ec;border-radius:12px;
  overflow:hidden;cursor:pointer;transition:.2s;background:#fff}
.threeniti-product .thumbs-wrap .item-thumb img{width:100%;height:100%;object-fit:cover}
.threeniti-product .thumbs-wrap .item-thumb:hover{border-color:#ff6a00;transform:translateY(-2px)}
.threeniti-product .img-big-wrap .slick-prev,.threeniti-product .img-big-wrap .slick-next{width:40px;height:40px;background:rgba(18,34,91,.85)!important;border-radius:50%;z-index:6}
.threeniti-product .img-big-wrap .slick-prev:hover,.threeniti-product .img-big-wrap .slick-next:hover{background:#e62e04!important}
.threeniti-product .img-big-wrap .slick-prev:before,.threeniti-product .img-big-wrap .slick-next:before{color:#fff!important;font-size:15px;opacity:1}
.threeniti-product .img-big-wrap .slick-dots li button:before{color:#12225b}
.threeniti-product .img-big-wrap .slick-dots li.slick-active button:before{color:#e62e04}

/* ---------- BUY PANEL ---------- */
.threeniti-product .right .product-single-details{border:1px solid #e5e8ec!important;border-radius:16px!important;box-shadow:0 8px 26px rgba(18,34,91,.07)!important;background:#fff;overflow:hidden}
.threeniti-product .review-tab-wrapper>.nav-tabs,.threeniti-product .product-single-details .nav-tabs{border-bottom:1px solid #eef0f4!important;
  background:#f7f8fb;padding:9px 12px 0!important;display:flex!important;gap:6px;margin:0!important;flex-wrap:wrap}
.threeniti-product .nav-tabs .nav-link{border:0!important;border-radius:9px 9px 0 0!important;font-weight:700;font-size:13.5px;
  color:#12225b!important;padding:10px 16px!important;background:transparent!important;transition:.2s}
.threeniti-product .nav-tabs .nav-link:hover{color:#e62e04!important;background:#fff!important}
.threeniti-product .nav-tabs .nav-link.active{color:#e62e04!important;background:#fff!important;box-shadow:inset 0 -3px 0 #e62e04}
.threeniti-product .tab-content{padding:20px}

/* title / seller */
.threeniti-product .product-title{font-size:24px;font-weight:800;color:#12225b;letter-spacing:-.2px;margin:2px 0 10px;line-height:1.25}
.threeniti-product .soly-by{font-size:13.5px;color:#687385;margin-bottom:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.threeniti-product .soly-by a{color:#e62e04;font-weight:700}
.threeniti-product .soly-by img{height:26px;border-radius:6px}
.threeniti-product .soly-by .btn{background:#12225b;border:0;border-radius:9px;font-weight:600}

/* price showcase block */
.threeniti-product .pro-tab-price-wrap{background:linear-gradient(135deg,#12225b,#1c2f74)!important;border-radius:14px;padding:16px 18px;margin:14px 0;color:#fff}
.threeniti-product .tab-price-title p{color:rgba(255,255,255,.68)!important;font-size:12.5px!important;font-weight:600;margin:0!important}
.threeniti-product .tab-tiered-price{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.threeniti-product .tiered-price{color:#ff9a5c!important;font-weight:800!important;font-size:19px!important;margin:0!important;text-shadow:0 1px 0 rgba(0,0,0,.15)}
.threeniti-product .tiered-quantity{color:rgba(255,255,255,.75)!important;font-size:11.5px!important;margin:0!important;letter-spacing:.2px}
.threeniti-product .variant_wholesale_title{color:#12225b;font-weight:700;margin-top:10px}
.threeniti-product .text-primary,.threeniti-product .high-light-price{color:#e62e04!important}

/* quantity */
.threeniti-product .qty-wrapper{border-top:1px dashed #eef0f4;padding-top:14px;margin-top:6px}
.threeniti-product .qty-wrapper p b{color:#12225b}
.threeniti-product #min_qty{border:1.5px solid #e5e8ec!important;border-radius:10px;height:46px;font-weight:800;text-align:center;max-width:130px;font-size:16px;color:#12225b}
.threeniti-product #min_qty:focus{border-color:#e62e04!important;box-shadow:0 0 0 3px rgba(230,46,4,.12)}

/* attribute / option chips */
.threeniti-product .aiz-megabox-elem{border:1.5px solid #e5e8ec;border-radius:10px;font-weight:600;color:#12225b;transition:.2s}
.threeniti-product .aiz-megabox>input:checked~.aiz-megabox-elem,.threeniti-product .aiz-megabox>input:checked~.aiz-megabox-elem{border-color:#e62e04!important;background:#fff6f2;box-shadow:0 0 0 3px rgba(230,46,4,.10)}

/* CTA buttons */
.threeniti-product .btn-wrapper{gap:10px;flex-wrap:wrap;align-items:center}
.threeniti-product .btn-wrapper .btn{border-radius:12px!important;font-weight:700;padding:13px 22px!important;font-size:14px;border:0;transition:transform .15s,box-shadow .2s}
.threeniti-product .btn-wrapper .btn:hover{transform:translateY(-2px);text-decoration:none}
.threeniti-product .btn-wrapper a[onclick^="addToCart"]{background:linear-gradient(135deg,#e62e04,#ff6a00)!important;color:#fff!important;box-shadow:0 10px 22px rgba(230,46,4,.32)}
.threeniti-product .btn-wrapper a[onclick^="buyNow"]{background:linear-gradient(135deg,#12225b,#26409a)!important;color:#fff!important;box-shadow:0 10px 22px rgba(18,34,91,.28)}
.threeniti-product .btn-wrapper a[onclick^="addToWishList"]{background:#fff!important;color:#12225b!important;border:1.5px solid #dfe3ec!important}
.threeniti-product .btn-wrapper .dropdown-toggle{background:#12225b!important;color:#fff!important}

/* ---------- REVIEWS CARD ---------- */
.threeniti-product .review-wrapper{background:#fff;border:1px solid #e5e8ec;border-radius:16px;padding:18px;margin-top:16px;box-shadow:0 8px 26px rgba(18,34,91,.06)}
.threeniti-product .review-head{font-weight:700;color:#12225b}
.threeniti-product .rating-number{font-size:26px;font-weight:800;color:#e62e04}

/* ---------- RELATED / GRIDS ---------- */
.threeniti-product .product-category-list{margin-top:6px}
.threeniti-product .product-category-list .section-heading .title-section,.threeniti-product .section-heading .title-section{font-size:20px;font-weight:800;color:#12225b}
.threeniti-product .heading-line{position:relative;margin-bottom:14px}
.threeniti-product .heading-line:after{content:"";display:block;width:54px;height:4px;border-radius:4px;margin-top:8px;background:linear-gradient(90deg,#e62e04,#ff6a00)}
.threeniti-product .card-product-grid,.threeniti-product .card-product{border:1px solid #e9ecf2!important;border-radius:14px!important;overflow:hidden;transition:.2s;background:#fff}
.threeniti-product .card-product-grid:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(18,34,91,.12);border-color:#f4d9cf}
.threeniti-product .card-product-grid .price,.threeniti-product .card-product .price{color:#e62e04;font-weight:800}

/* region / ad */
.threeniti-product .my-4 img{border-radius:14px}

@media(max-width:575px){
  .threeniti-product .tp-hero{padding:20px 18px;border-radius:14px}
  .threeniti-product .tp-title{font-size:22px}
  .threeniti-product .tab-content{padding:14px}
}

/* ---------- FIX: theme hides .tab-content unless .active (buy box was invisible) ---------- */
.threeniti-product .tab-content{display:block!important}
.threeniti-product .tab-pane{display:none!important}
.threeniti-product .tab-pane.active{display:block!important}

/* ---------- POLISH (safe) ---------- */
.threeniti-product .one{align-items:start!important}
.threeniti-product .left>.card{height:auto!important}
.threeniti-product .img-big-wrap{width:100%}
/* thumbs strip must not be stretched by slick */
.threeniti-product .thumbs-wrap{height:auto!important;max-height:94px!important;overflow:hidden!important;align-items:flex-start}
.threeniti-product .thumbs-wrap .slick-list,.threeniti-product .thumbs-wrap .slick-track{height:auto!important;max-height:82px!important}
.threeniti-product .thumbs-wrap .slick-slide{width:78px!important;float:left}


/* ---------- hide empty SKU row (nit) ---------- */
.threeniti-product .sku-wrapper:has(span:empty){display:none!important}


/* ==== Product detail gallery (added 2026-10-16) ==== */
.threeniti-gallery{display:grid;grid-template-columns:96px 1fr;gap:16px;align-items:start;padding:16px;background:#fff;border:1px solid #eee;border-radius:16px}
.threeniti-gallery .tg-main{min-width:0}
.threeniti-gallery .tg-main img{width:100%;max-height:580px;object-fit:contain;border-radius:12px;background:#fff}
.threeniti-gallery .tg-thumbs{display:flex;flex-direction:column;gap:10px;max-height:580px;overflow:auto}
.threeniti-gallery .tg-thumb{width:80px;height:80px;object-fit:cover;border:2px solid #ececec;border-radius:10px;cursor:pointer;transition:border-color .15s}
.threeniti-gallery .tg-thumb:hover{border-color:#bbb}
.threeniti-gallery .tg-thumb.active{border-color:#e62e04;box-shadow:0 0 0 2px rgba(230,46,4,.15)}
@media(max-width:768px){.threeniti-gallery{grid-template-columns:1fr}.threeniti-gallery .tg-thumbs{flex-direction:row;max-height:none;overflow-x:auto}.threeniti-gallery .tg-thumb{width:64px;height:64px;flex:0 0 auto}}
/* richer description block */
.threeniti-desc{background:#fff;border:1px solid #eee;border-radius:16px;padding:22px 24px}
.threeniti-desc img{max-width:100%;height:auto;border-radius:10px}
.threeniti-desc h4{margin-top:18px}
.threeniti-desc table{width:100%;border-collapse:collapse;margin:12px 0}
.threeniti-desc table td{border:1px solid #eee;padding:8px 12px}

/* ===== Product detail redesign v2 (2026-10-16) ===== */
.section-content .row.one{align-items:flex-start}
.section-content .row.one > .left{flex:0 0 58%;max-width:58%}
.section-content .row.one > .right{flex:0 0 42%;max-width:42%}
@media(max-width:991px){.section-content .row.one > .left,.section-content .row.one > .right{flex:0 0 100%!important;max-width:100%!important}}

/* gallery: bounded frame, larger thumbs */
.threeniti-gallery{display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;padding:14px;border:1px solid #eceff3;border-radius:18px;background:#fff;box-shadow:0 6px 24px rgba(16,24,40,.05)}
.threeniti-gallery .tg-main{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#f7f8fa;border-radius:14px;overflow:hidden}
.threeniti-gallery .tg-main img{width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0}
.threeniti-gallery .tg-thumbs{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow:auto}
.threeniti-gallery .tg-thumb{width:74px;height:74px;flex:0 0 auto;border-radius:12px;border:2px solid #e6e9ee;object-fit:cover;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.threeniti-gallery .tg-thumb:hover{border-color:#c9ced6}
.threeniti-gallery .tg-thumb.active{border-color:#e62e04;box-shadow:0 0 0 2px rgba(230,46,4,.15)}
@media(max-width:991px){.threeniti-gallery{grid-template-columns:1fr}.threeniti-gallery .tg-main{aspect-ratio:4/3}.threeniti-gallery .tg-thumbs{flex-direction:row;max-height:none;overflow-x:auto;padding-bottom:4px}}

/* sticky, polished buy box */
/* height rule removed */
.product-single-details .product-title{font-size:20px;line-height:1.35;word-break:break-word;overflow-wrap:anywhere;color:#12225b;margin:6px 0 10px}
.product-single-details .review-tab-wrapper .nav-tabs{border-bottom:1px solid #eef1f5;gap:4px}
.product-single-details .nav-tabs .nav-link{border:0;color:#6b7280;font-weight:600;padding:10px 14px}
.product-single-details .nav-tabs .nav-link.active{color:#e62e04;border-bottom:2px solid #e62e04;background:transparent}

/* sold-by store card */
.soly-by{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f7f8fa;border:1px solid #eceff3;border-radius:12px;padding:10px 12px;margin-bottom:12px}
.soly-by a{color:#12225b;font-weight:600;text-decoration:none}

/* full description styling */
.threeniti-desc{background:#fff;border:1px solid #eceff3;border-radius:18px;padding:26px 30px;line-height:1.75;color:#333;font-size:15px}
.threeniti-desc h1,.threeniti-desc h2,.threeniti-desc h3,.threeniti-desc h4{color:#12225b;margin:18px 0 10px;font-weight:700}
.threeniti-desc h3{border-left:4px solid #e62e04;padding-left:10px}
.threeniti-desc p{margin-bottom:12px}
.threeniti-desc ul,.threeniti-desc ol{padding-left:22px;margin-bottom:12px}
.threeniti-desc li{margin-bottom:5px}
.threeniti-desc img{max-width:100%;height:auto;border-radius:12px;margin:10px 0}
.threeniti-desc table{width:100%;border-collapse:collapse;margin:14px 0}
.threeniti-desc table td,.threeniti-desc table th{border:1px solid #eceff3;padding:9px 13px}
.threeniti-desc table tr:nth-child(even){background:#fafbfc}

/* related products heading */
.section-heading .title-section{color:#12225b}

/* gallery grid order fix: thumbnails left, main image right (DOM has main first) */
.threeniti-gallery .tg-thumbs{order:1}
.threeniti-gallery .tg-main{order:2}
@media(max-width:991px){.threeniti-gallery .tg-main{order:1}.threeniti-gallery .tg-thumbs{order:2}}
/* wholesale tier table spacing */
.wholesale_price_list .tiered-quantity,.variant_wholesale_price_list .tiered-quantity{color:#6b7280;font-size:12.5px;margin:0}
.pro-tab-price-wrap .tiered-quantity,.variant_wholesale_price_list .tiered-quantity{padding:2px 0}
/* colour swatch visibility (white-on-white) */
.color-wrapper .btn-outline-dark{border:1px solid #d7dbe2 !important;min-width:42px;position:relative}
.color-wrapper .btn-outline-dark.active{border-color:#12225b !important}

/* wholesale tiers as pricing cards */
.wholesale_price_list,.variant_wholesale_price_list{margin-top:10px}
.wholesale_price_list .tab-tiered-price ul,.variant_wholesale_price_list .tab-tiered-price ul{display:flex;gap:10px;flex-wrap:wrap;list-style:none;padding:0;margin:8px 0 0}
.wholesale_price_list .tab-tiered-price li,.variant_wholesale_price_list .tab-tiered-price li{flex:1 1 90px;min-width:90px;background:#f7f8fa;border:1px solid #eceff3;border-radius:10px;padding:8px 10px;text-align:center;margin:0}
.wholesale_price_list .tiered-price,.variant_wholesale_price_list .tiered-price{font-weight:700;color:#e62e04;margin:0;font-size:15px}
.wholesale_price_list .tiered-quantity,.variant_wholesale_price_list .tiered-quantity{color:#6b7280;font-size:12px;margin:0}
.wholesale_price_list .tab-price-title,.variant_wholesale_price_list .tab-price-title{display:flex;justify-content:space-between;color:#12225b;font-weight:600;font-size:13px}

/* compact the product hero so buy box surfaces sooner */
.tp-hero{padding:14px 18px!important}
.tp-hero .tp-title{font-size:22px!important;line-height:1.3;margin:4px 0 8px!important}
.tp-hero .tp-crumb{font-size:12.5px}
.tp-trust{padding:8px 0!important}
.threeniti-product{padding-top:6px}

/* ===== Detail v3 (2026-10-16) ===== */
/* Alibaba-style price block */
.ali-price{background:linear-gradient(135deg,#fff5f2,#fff);border:1px solid #ffe0d6;border-radius:14px;padding:14px 16px;margin:8px 0 12px}
.ali-price .ali-range{display:flex;align-items:baseline;gap:6px}
.ali-price .ali-amt{font-size:26px;font-weight:800;color:#e62e04;letter-spacing:-.5px}
.ali-price .ali-unit{color:#6b7280;font-size:13px}
.ali-price .ali-tiers{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ali-price .ali-tier{background:#fff;border:1px solid #ffe0d6;color:#12225b;border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:600}
.ali-price .ali-moq{margin-top:8px;color:#6b7280;font-size:12.5px}
.ali-price .ali-moq b{color:#12225b}
/* sticky right column taller than viewport still sticks to top */
.section-content .row.one > .right{align-self:stretch}

/* quantity stepper */
#option-choice-form .qty-value ul,.feature-list.qty-wrapper ul{list-style:none;display:flex;align-items:center;gap:8px;padding:0;margin:8px 0}
#option-choice-form .qty-value .btn-value,.feature-list.qty-wrapper .btn-value{width:38px;height:38px;border:1px solid #d7dbe2;background:#fff;border-radius:10px;color:#12225b;font-size:18px;line-height:1;cursor:pointer}
#option-choice-form .qty-value .btn-value:hover{background:#f2f4f7}
#option-choice-form .qty-value .input-value input,.feature-list.qty-wrapper .input-value input{width:96px;height:38px;text-align:center;border:1px solid #d7dbe2;border-radius:10px;font-weight:600;color:#12225b}

/* RIGHT column = full-height panel; buy-box content pinned (Temu-style) */
.threeniti-product .right{align-self:stretch;background:#fff;border:1px solid #e5e8ec;border-radius:18px;box-shadow:0 8px 26px rgba(18,34,91,.07)}
.threeniti-product .right .product-single-details{position:sticky!important;top:16px;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;height:auto!important;min-height:0!important}

/* hide the legacy wholesale price/MOQ block (superseded by the Alibaba price block) */
.wholesale_price_list{display:none!important}

/* hide the duplicated per-variant wholesale price list (Alibaba block covers pricing) */
.variant_wholesale_price_list{display:none!important}

/* FIX: single-image galleries have no .tg-thumbs, so .tg-main must span both columns
   (otherwise it lands in the 84px thumbnail column and renders at 84x84) */
.threeniti-gallery .tg-main:only-child{grid-column:1 / -1;width:100%}

/* ===== gallery zoom (cursor-follow) ===== */
.threeniti-gallery .tg-main{position:relative;cursor:zoom-in;overflow:hidden}
.threeniti-gallery .tg-main img{transition:transform .18s ease-out;will-change:transform}
.threeniti-gallery .tg-main.is-zoomed img{transform:scale(2.2)}
.threeniti-gallery .tg-zoom-hint{position:absolute;right:10px;bottom:10px;background:rgba(17,24,39,.68);color:#fff;font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:20px;opacity:0;transition:opacity .2s;pointer-events:none;display:inline-flex;gap:6px;align-items:center}
.threeniti-gallery .tg-main:hover .tg-zoom-hint{opacity:1}
@media(hover:none){.threeniti-gallery .tg-main{cursor:default}.threeniti-gallery .tg-zoom-hint{display:none}}

/* ===== Alibaba-style gallery lightbox ===== */
.tg-lightbox{position:fixed;inset:0;z-index:2000;background:rgba(8,12,22,.94);display:none;align-items:center;justify-content:center;padding:28px}
.tg-lightbox.open{display:flex}
.tg-lb-img{max-width:88vw;max-height:76vh;object-fit:contain;border-radius:10px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.5)}
.tg-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .18s}
.tg-lb-nav:hover{background:rgba(255,255,255,.32)}
.tg-lb-prev{left:20px}.tg-lb-next{right:20px}
.tg-lb-close{position:absolute;top:16px;right:20px;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.tg-lb-close:hover{background:rgba(255,255,255,.32)}
.tg-lb-strip{position:absolute;left:50%;bottom:52px;transform:translateX(-50%);display:flex;gap:8px;max-width:92vw;overflow-x:auto;padding:4px}
.tg-lb-strip img{width:58px;height:58px;object-fit:cover;border-radius:8px;opacity:.5;cursor:pointer;border:2px solid transparent;transition:opacity .15s,border-color .15s;background:#fff}
.tg-lb-strip img:hover{opacity:.85}
.tg-lb-strip img.active{opacity:1;border-color:#e62e04}
.tg-lb-count{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);color:#fff;font-size:13px;font-weight:600;background:rgba(255,255,255,.14);padding:4px 12px;border-radius:20px}
@media(max-width:768px){.tg-lb-img{max-width:94vw;max-height:66vh}.tg-lb-nav{width:40px;height:40px}.tg-lb-prev{left:8px}.tg-lb-next{right:8px}}

/* lightbox: stack image / thumbs / counter so nothing overlaps */
.tg-lightbox{flex-direction:column;align-items:center;justify-content:center;gap:14px}
.tg-lb-img{max-height:68vh}
.tg-lb-strip{position:static;left:auto;bottom:auto;transform:none;justify-content:center}
.tg-lb-count{position:static;left:auto;bottom:auto;transform:none}
