/* 1.3.74: single product page (includes/product-gallery.php). */
body.single-product{--hjt-pp-accent:#ff751f;--hjt-pp-frame:#f7f3ee;--hjt-pp-line:#e3d9cf}

/* Gallery: one frame size for every image, whole image visible */
body.single-product .woocommerce-product-gallery{position:relative}
body.single-product .woocommerce-product-gallery__trigger,
body.single-product .woocommerce-product-gallery .zoomImg{display:none!important}
body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper{background:var(--hjt-pp-frame);border-radius:12px}
body.single-product .woocommerce-product-gallery .flex-viewport{height:auto!important}
body.single-product .woocommerce-product-gallery__image{height:520px}
body.single-product .woocommerce-product-gallery__image>a{display:flex!important;align-items:center!important;justify-content:center!important;height:100%;width:100%;cursor:zoom-in}
body.single-product .woocommerce-product-gallery__image img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:490px!important;margin:auto!important;object-fit:contain}

/* Arrows instead of the magnifier */
body.single-product .woocommerce-product-gallery .flex-direction-nav{list-style:none;margin:0;padding:0}
body.single-product .woocommerce-product-gallery .flex-direction-nav a{position:absolute;top:260px;transform:translateY(-50%);z-index:5;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.15);color:var(--hjt-pp-accent);font-size:0;line-height:1;text-decoration:none;opacity:1;overflow:hidden;transition:background .15s}
body.single-product .woocommerce-product-gallery .flex-direction-nav a:hover,
body.single-product .woocommerce-product-gallery .flex-direction-nav a:focus-visible{background:#fff3ea}
body.single-product .woocommerce-product-gallery .flex-direction-nav a::before{content:"";width:10px;height:10px;border-top:2.5px solid currentColor;border-right:2.5px solid currentColor;font-size:0}
body.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev{left:16px}
body.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev::before{transform:translateX(2px) rotate(-135deg)}
body.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next{right:16px}
body.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next::before{transform:translateX(-2px) rotate(45deg)}
body.single-product .woocommerce-product-gallery .flex-direction-nav .flex-disabled{opacity:.35;pointer-events:none}

/* Thumbnails: one row, equal squares, uncropped */
body.single-product .woocommerce-product-gallery .flex-control-thumbs{display:flex!important;flex-wrap:wrap;gap:10px;margin:14px 0 0!important;padding:0;list-style:none;clear:both}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li{float:none!important;width:76px!important;height:76px!important;margin:0!important;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--hjt-pp-frame);border:2px solid transparent;border-radius:8px;box-sizing:border-box;cursor:pointer}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active){border-color:var(--hjt-pp-accent)}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain;opacity:.6;transition:opacity .15s}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}

/* Title 20% smaller (theme: 40px) */
body.single-product .summary .product_title{font-size:32px!important;line-height:1.25}

/* Struck-through price: smaller, grey, line through the middle */
body.single-product .summary .price del{font-size:20px!important;color:#999!important;opacity:1;text-decoration:line-through;text-decoration-thickness:1.5px;margin-right:10px;vertical-align:middle}
body.single-product .summary .price del *{color:#999!important;text-decoration:none!important}
body.single-product .summary .price ins{text-decoration:none;vertical-align:middle}

/* Quantity next to the button: same 48px pill height, - / + buttons */
body.single-product .summary form.cart{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
body.single-product .summary form.cart .quantity{display:flex;align-items:center;height:48px;margin:0!important;padding:0 4px;background:#fff;border:1px solid var(--hjt-pp-line);border-radius:999px;box-sizing:border-box}
body.single-product .summary form.cart .quantity input.qty{width:44px!important;height:44px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center;font:600 16px Montserrat,sans-serif;-moz-appearance:textfield;appearance:textfield}
body.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.single-product .hjt-qty-step{width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#fff3ea;color:var(--hjt-pp-accent);font:600 20px/36px Montserrat,sans-serif;cursor:pointer}
body.single-product .hjt-qty-step:hover,body.single-product .hjt-qty-step:focus-visible{background:#ffe3cf}
body.single-product .hjt-qty-step:disabled{opacity:.4;cursor:default}

@media (max-width:767px){
  body.single-product .woocommerce-product-gallery__image{height:380px}
  body.single-product .woocommerce-product-gallery__image img{max-height:356px!important}
  body.single-product .woocommerce-product-gallery .flex-direction-nav a{top:190px}
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li{width:64px!important;height:64px!important}
  body.single-product .summary .product_title{font-size:26px!important}
}
