/* DEREB V1.7 — photo framing, no destructive crop, full-width white neutral product canvas.
   This layer only changes presentation. Original media files, specs, drawings, importer, product ids unchanged. */
:root{--nv-photo-white:#ffffff;--nv-photo-line:#e5edf4}

/* Header: the unused global search icon has been removed in the template; ensure no ghost space. */
.site-header .header-tools{gap:clamp(10px,1.3vw,21px)}
.site-header .header-tools>.header-search{display:none!important}

/* Product listing: use the same seamless white surface as the uploaded white-background photos.
   A taller figure makes the product meaningfully larger without cropping or stretching. */
.products-page .products-grid .product-card .product-photo,
html[dir="rtl"] .products-page .products-grid .product-card .product-photo{
 width:100%;height:auto!important;min-height:0!important;max-width:none!important;
 aspect-ratio:1.19 / 1;box-sizing:border-box;flex:none!important;
 padding:clamp(5px,.6vw,11px)!important;
 display:flex!important;align-items:center;justify-content:center;
 background:var(--nv-photo-white)!important;
 border-bottom:1px solid var(--nv-photo-line);
 overflow:hidden;
}
.products-page .products-grid .product-card .product-photo img,
html[dir="rtl"] .products-page .products-grid .product-card .product-photo img{
 display:block;width:100%!important;height:100%!important;
 min-width:0;max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;object-position:center center!important;
 background:var(--nv-photo-white)!important;
 transform:none!important;
}
.products-page .products-grid .product-card{background:#fff;min-width:0}
.products-page .products-grid .product-card .product-body{background:#fff}
.products-page .products-grid .pick-checkbox{z-index:3}

/* Product detail: frame follows intrinsic photo shape (or 1:1 for unknowns).
   A square white-background image now fills a square white area instead of a 1.4:1 gray strip. */
.detail-v15 .detail-hero{
 grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;
 align-items:start;
}
.detail-v15 .gallery,
.detail-v15 .gallery-main{min-width:0;max-width:100%}
.detail-v15 .gallery-main{
 aspect-ratio:var(--nv-product-aspect,1) / 1;
 height:auto!important;min-height:0!important;max-height:none!important;
 display:flex;align-items:center;justify-content:center;
 border:1px solid var(--nv-photo-line)!important;
 background:var(--nv-photo-white)!important;
 border-radius:10px;overflow:hidden;
}
.detail-v15 .gallery-main>img#detail-feature-photo{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:contain!important;object-position:center!important;
 background:var(--nv-photo-white)!important;
 transform:none!important;
}
.detail-v15 .gallery-thumbs button,
.detail-v15 .gallery-thumbs img{background:#fff!important}
.detail-v15 .gallery-zoom{z-index:4}
/* Related cards share the clean catalogue treatment. */
.detail-v15 .related-grid>a{background:#fff;border:1px solid var(--nv-photo-line)}
.detail-v15 .related-grid img{background:#fff;object-fit:contain}

/* Mobile: image width and height grow together. No 35% image slot or gray side rails. */
@media(max-width:760px){
 .products-page .products-grid .product-card .product-photo,
 html[dir="rtl"] .products-page .products-grid .product-card .product-photo{
  width:100%!important;height:auto!important;min-height:0!important;
  aspect-ratio:1.13 / 1!important;padding:8px!important;
  background:#fff!important;
 }
 .products-page .products-grid .product-card .product-photo img{
  display:block;width:100%!important;height:100%!important;object-fit:contain!important;
 }
 .detail-v15 .detail-hero{display:flex!important;flex-direction:column!important;gap:18px!important;padding:18px 16px!important}
 .detail-v15 .gallery{width:100%!important}
 .detail-v15 .gallery-main{
  width:100%;height:auto!important;min-height:0!important;
  aspect-ratio:var(--nv-product-aspect,1) / 1!important;
  background:#fff!important;
 }
 .detail-v15 .gallery-main img{height:100%!important;max-height:100%!important;background:#fff!important}
 .detail-v15 .gallery-thumbs img{background:#fff!important}
}
@media(max-width:380px){
 .detail-v15 .detail-hero{padding:14px 12px!important}
 .products-page .products-grid .product-card .product-photo{aspect-ratio:1.10 / 1!important}
}
