/* HOMEMATE Gozney Product View — independently implemented, no Gozney assets/source. */
.hmgpv-product-view{
  --hmgpv-gap:clamp(18px,2.2vw,36px);
  --hmgpv-border:#d9d9d9;
  --hmgpv-text:#151515;
  --hmgpv-muted:#666;
  --hmgpv-surface:#f5f5f2;
  width:min(1280px,calc(100% - 40px));margin:0 auto;padding:30px 0 72px;color:var(--hmgpv-text);overflow-x: clip;
}
.hmgpv-product-view *{box-sizing:border-box}
.hmgpv-product-view .woocommerce-notices-wrapper{margin-bottom:18px}
.hmgpv-product-view .hmgpv-hero{display:grid;grid-template-columns:minmax(0,690px) minmax(340px,470px);gap:var(--hmgpv-gap);align-items:start;justify-content:center}
.hmgpv-product-view .hmgpv-gallery{min-width:0;max-width:690px;display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto;gap:10px;align-items:start}
.hmgpv-product-view .hmgpv-gallery-stage{grid-column:2;grid-row:1;position:relative;overflow:hidden;background:var(--hmgpv-surface);aspect-ratio:1/1}
.hmgpv-product-view .hmgpv-gallery-slide{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .28s ease}
.hmgpv-product-view .hmgpv-gallery-slide.is-active{opacity:1;pointer-events:auto;position:absolute}
.hmgpv-product-view .hmgpv-gallery-image{display:block;width:100%;height:100%;object-fit: contain;padding:clamp(12px,2vw,28px)}
.hmgpv-product-view .hmgpv-gallery-empty{width:100%;height:100%;background:var(--hmgpv-surface)}
.hmgpv-product-view .hmgpv-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;background:rgba(255,255,255,.88);width:44px;height:44px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}
.hmgpv-product-view .hmgpv-gallery-prev{left:14px}.hmgpv-product-view .hmgpv-gallery-next{right:14px}
.hmgpv-product-view .hmgpv-gallery-thumbs{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:10px;margin-top:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding-right:4px;max-height:604px}
.hmgpv-product-view .hmgpv-gallery-thumb{flex:0 0 68px;width:68px;height:68px;border:1px solid transparent;background:#f4f4f1;padding:3px;cursor:pointer}
.hmgpv-product-view .hmgpv-gallery-thumb.is-active{border-color:#111}
.hmgpv-product-view .hmgpv-gallery-thumb-image{width:100%;height:100%;object-fit:contain;display:block}
.hmgpv-product-view .hmgpv-summary{min-width:0;padding:6px 0 0}
.hmgpv-product-view .hmgpv-summary-title .product_title{font-size:clamp(30px,2.6vw,42px);line-height:1.02;margin:0 0 16px;font-weight:600;letter-spacing:-.025em}
.hmgpv-product-view .hmgpv-summary-price{font-size:24px;margin-bottom:14px}
.hmgpv-product-view .hmgpv-summary-price .price{margin:0;color:inherit;font-weight:500}
.hmgpv-product-view .hmgpv-summary-rating{margin-bottom:10px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials{margin-top:22px;margin-bottom:22px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-section-head{margin-bottom:12px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-section-head h2{font-size:18px;line-height:1.25;letter-spacing:0}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-card-track{display:flex;flex-direction:column;gap:10px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-product-card{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;background:var(--hmgpv-surface);min-height:92px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-card-media{grid-column:1;background:transparent}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-card-canvas{aspect-ratio:1/1}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-card-body{grid-column:2;padding:12px 14px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-card-action{display:none}
.hmgpv-product-view .hmgpv-summary-purchase{border-top:1px solid var(--hmgpv-border);padding-top:20px}
.hmgpv-product-view .hmgpv-summary-purchase form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.hmgpv-product-view .hmgpv-summary-purchase form.variations_form{display:block}
.hmgpv-product-view .hmgpv-summary-purchase table.variations{width:100%;margin:0 0 18px}
.hmgpv-product-view .hmgpv-summary-purchase table.variations th,.hmgpv-product-view .hmgpv-summary-purchase table.variations td{display:block;text-align:left;padding:0 0 8px}
.hmgpv-product-view .hmgpv-summary-purchase select{width:100%;min-height:48px;border:1px solid #aaa;padding:8px 12px;background:#fff}
.hmgpv-product-view .hmgpv-summary-purchase .stock{width:100%;margin:10px 0;color:var(--hmgpv-muted)}
.hmgpv-product-view .hmgpv-summary-purchase .quantity input{min-height:50px}
.hmgpv-product-view .hmgpv-summary-purchase .single_add_to_cart_button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:50px;border:0!important;border-color:#111!important;background:#111!important;background-color:#111!important;color:#fff!important;padding:0 28px;font-weight:700;cursor:pointer;visibility:visible!important;opacity:1!important;text-decoration:none!important}
.hmgpv-product-view .hmgpv-summary-purchase .single_add_to_cart_button:hover,.hmgpv-product-view .hmgpv-summary-purchase .single_add_to_cart_button:focus,.hmgpv-product-view .hmgpv-summary-purchase .single_add_to_cart_button:active{display:inline-flex!important;visibility:visible!important;opacity:1!important;border-color:#111!important;background:#111!important;background-color:#111!important;color:#fff!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}
.hmgpv-product-view .hmgpv-section{margin-top:clamp(42px,6vw,88px)}
.hmgpv-product-view .hmgpv-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}
.hmgpv-product-view .hmgpv-section-head h2{margin:0;font-size:clamp(26px,3vw,42px);line-height:1.05;font-weight:600;letter-spacing:-.02em}
.hmgpv-product-view .hmgpv-card-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hmgpv-product-view .hmgpv-essentials .hmgpv-card-track{grid-template-columns:repeat(3,minmax(0,1fr))}
.hmgpv-product-view .hmgpv-product-card{min-width:0}
.hmgpv-product-view .hmgpv-card-media{display:block;text-decoration:none;color:inherit;background:var(--hmgpv-surface);overflow:hidden}
.hmgpv-product-view .hmgpv-card-canvas{display:block;position:relative;aspect-ratio:1/1;overflow:hidden}
.hmgpv-product-view .hmgpv-card-image{position:absolute;inset:0;width:100%;height:100%;object-fit: contain;padding:12px;transition:opacity .25s ease,transform .25s ease}
.hmgpv-product-view .hmgpv-card-image-hover{opacity:0}.hmgpv-product-view .hmgpv-card-media.has-hover-image:hover .hmgpv-card-image-hover{opacity:1}.hmgpv-product-view .hmgpv-card-media.has-hover-image:hover .hmgpv-card-image-primary{opacity:0}.hmgpv-product-view .hmgpv-card-media:not(.has-hover-image) .hmgpv-card-image-primary,.hmgpv-product-view .hmgpv-card-media:not(.has-hover-image):hover .hmgpv-card-image-primary,.hmgpv-product-view .hmgpv-card-media:not(.has-hover-image):focus .hmgpv-card-image-primary{opacity:1!important;visibility:visible!important;transform:none!important}.hmgpv-product-view .hmgpv-card-media:not(.has-hover-image) .hmgpv-card-image-hover{display:none!important}
.hmgpv-product-view .hmgpv-card-body{padding:12px 2px 0}.hmgpv-product-view .hmgpv-card-title{font-size:17px;line-height:1.3;margin:0 0 7px}.hmgpv-product-view .hmgpv-card-title a{text-decoration:none;color:inherit}
.hmgpv-product-view .hmgpv-card-price{font-size:16px;margin-bottom:12px}.hmgpv-product-view .hmgpv-card-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #111;background:#fff;color:#111;text-decoration:none;font-weight:600}

/* Keep WooCommerce AJAX add-to-cart visible inside HMGPV related cards after success. */
.hmgpv-product-view .hmgpv-related .hmgpv-card-button.loading,
.hmgpv-product-view .hmgpv-related .hmgpv-card-button.added{display:inline-flex!important;visibility:visible!important;opacity:1!important}
.hmgpv-product-view .hmgpv-related .hmgpv-card-action > .added_to_cart{display:none!important}
.hmgpv-product-view .hmgpv-accordions{border-top:1px solid var(--hmgpv-border);margin-top:56px}
.hmgpv-product-view .hmgpv-accordion{border-bottom:1px solid var(--hmgpv-border)}
.hmgpv-product-view .hmgpv-accordion summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;cursor:pointer;font-size:18px;font-weight:600}
.hmgpv-product-view .hmgpv-accordion summary::-webkit-details-marker{display:none}
.hmgpv-product-view .hmgpv-accordion-icon{width:18px;height:18px;position:relative;display:block}.hmgpv-product-view .hmgpv-accordion-icon:before,.hmgpv-product-view .hmgpv-accordion-icon:after{content:"";position:absolute;left:0;top:8px;width:18px;height:1px;background:#111}.hmgpv-product-view .hmgpv-accordion-icon:after{transform:rotate(90deg);transition:transform .2s}.hmgpv-product-view .hmgpv-accordion[open] .hmgpv-accordion-icon:after{transform:rotate(0)}
.hmgpv-product-view .hmgpv-accordion-content{padding:0 0 26px;max-width:900px;line-height:1.65}
.hmgpv-product-view .hmgpv-video-embed{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden}.hmgpv-product-view .hmgpv-video-embed iframe,.hmgpv-product-view .hmgpv-video-embed video{width:100%;height:100%;border:0}
.hmgpv-product-view .hmgpv-reviews{max-width:1100px}

/* Gozney-style related carousel: up to 8 category products, 4 visible on desktop. */
.hmgpv-product-view .hmgpv-related .hmgpv-card-track{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;padding-bottom:18px;scrollbar-width:thin;scrollbar-color:#171717 #dededb}
.hmgpv-product-view .hmgpv-related .hmgpv-product-card{flex:0 0 calc((100% - 48px)/4);scroll-snap-align:start}
.hmgpv-product-view .hmgpv-related .hmgpv-card-track::-webkit-scrollbar{display:block;height:5px}
.hmgpv-product-view .hmgpv-related .hmgpv-card-track::-webkit-scrollbar-track{background:#dededb;border-radius:999px}
.hmgpv-product-view .hmgpv-related .hmgpv-card-track::-webkit-scrollbar-thumb{background:#171717;border-radius:999px}
.hmgpv-product-view .hmgpv-gallery-thumbs::-webkit-scrollbar{display:none}

@media (max-width:1024px){
  .hmgpv-product-view{width:min(100% - 28px,1200px)}
  .hmgpv-product-view .hmgpv-hero{grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)}
  .hmgpv-product-view .hmgpv-card-track{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hmgpv-product-view .hmgpv-related .hmgpv-product-card{flex-basis:calc((100% - 32px)/3)}
}

@media (max-width:767px){
  .hmgpv-product-view{width:100%;padding:0 0 48px;overflow-x: clip}
  .hmgpv-product-view .woocommerce-notices-wrapper{padding:0 16px}
  .hmgpv-product-view .hmgpv-hero{display:block}
  /* mobile-order-gallery */
  .hmgpv-product-view .hmgpv-gallery{order:1;width:100%;max-width:none;grid-template-columns:1fr;grid-template-rows:auto auto;gap:0}
  .hmgpv-product-view .hmgpv-gallery-stage{grid-column:1;grid-row:1;aspect-ratio:1/1}
  .hmgpv-product-view .hmgpv-gallery-thumbs{grid-column:1;grid-row:2;flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;padding:0 14px 4px;margin-top:8px;scroll-snap-type:x proximity}
  .hmgpv-product-view .hmgpv-gallery-thumb{flex-basis:68px;width:68px;height:68px;scroll-snap-align:start}
  .hmgpv-product-view .hmgpv-gallery-arrow{width:38px;height:38px;font-size:24px}
  .hmgpv-product-view .hmgpv-summary{padding:26px 16px 0}
  /* mobile-order-title */
  .hmgpv-product-view .hmgpv-summary-title{order:2}
  /* mobile-order-price */
  .hmgpv-product-view .hmgpv-summary-price{order:3}
  /* mobile-order-options */
  .hmgpv-product-view .hmgpv-summary-purchase .variations{order:4}
  /* mobile-order-availability */
  .hmgpv-product-view .hmgpv-summary-purchase .stock{order:5}
  /* mobile-order-add-to-cart */
  .hmgpv-product-view .hmgpv-summary-purchase .quantity,.hmgpv-product-view .hmgpv-summary-purchase .single_add_to_cart_button{order:6}
  /* mobile-order-essentials */
  .hmgpv-product-view .hmgpv-summary .hmgpv-essentials{order:7;padding:0;margin:24px 0}
  /* mobile-order-accordions */
  .hmgpv-product-view .hmgpv-accordions{order:8;margin:44px 16px 0}
  /* mobile-order-related */
  .hmgpv-product-view .hmgpv-related{order:9;padding:0 16px;margin-top:48px}
  /* mobile-order-video */
  .hmgpv-product-view .hmgpv-video{order:10;padding:0 16px;margin-top:48px}
  /* mobile-order-reviews */
  .hmgpv-product-view .hmgpv-reviews{order:11;padding:0 16px;margin-top:48px}
  .hmgpv-product-view .hmgpv-section-head h2{font-size:30px}
  .hmgpv-product-view .hmgpv-card-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;margin-right:-16px;padding-right:16px;scrollbar-width:none}
  .hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-card-track{display:flex;flex-direction:column;gap:10px;overflow:visible;margin-right:0;padding-right:0;scroll-snap-type:none}
  .hmgpv-product-view .hmgpv-card-track::-webkit-scrollbar{display:none}
  .hmgpv-product-view .hmgpv-related .hmgpv-product-card{flex:0 0 min(76vw,290px);scroll-snap-align:start}
  .hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-product-card{display:grid;grid-template-columns:82px minmax(0,1fr);min-height:82px}
  .hmgpv-product-view .hmgpv-summary-title .product_title{font-size:34px}
  .hmgpv-product-view .hmgpv-summary-price{font-size:22px}
  .hmgpv-product-view .hmgpv-summary-purchase form.cart:not(.variations_form){display:grid;grid-template-columns:90px 1fr;width:100%}
}

/* v1.0.2 — thinner gallery scrollbar + Gozney-style selectable essentials */
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-essential-list{display:flex;flex-direction:column;gap:12px}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-essential-row{display:grid;grid-template-columns:28px minmax(0,1fr) 78px;gap:12px;align-items:center;min-height:92px;padding:12px 14px;background:transparent;border:0}
.hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-essential-row.is-selected{background:transparent;border:0}
.hmgpv-product-view .hmgpv-essential-check{display:flex;align-items:center;justify-content:center}
.hmgpv-product-view .hmgpv-essential-checkbox{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border:2px solid #c8c8c8;border-radius:5px;background:#fff;cursor:pointer;position:relative}
.hmgpv-product-view .hmgpv-essential-checkbox:checked{background:#111;border-color:#111}
.hmgpv-product-view .hmgpv-essential-checkbox:checked:after{content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.hmgpv-product-view .hmgpv-essential-info{min-width:0}
.hmgpv-product-view .hmgpv-essential-title{display:block;color:inherit;text-decoration:none;font-size:15px;line-height:1.3;margin-bottom:3px}
.hmgpv-product-view .hmgpv-essential-price{font-size:15px;line-height:1.3;margin-bottom:7px}
.hmgpv-product-view .hmgpv-essential-variation{width:auto;max-width:100%;min-height:38px;padding:6px 34px 6px 12px;border:1px solid #c8c8c8;border-radius:22px;background:#fff}
.hmgpv-product-view .hmgpv-essential-image{display:flex;width:78px;height:68px;align-items:center;justify-content:center;text-decoration:none}
.hmgpv-product-view .hmgpv-essential-image img{display:block;width:100%;height:100%;object-fit:contain}
@media (max-width:767px){
  .hmgpv-product-view .hmgpv-summary .hmgpv-essentials .hmgpv-essential-row{grid-template-columns:26px minmax(0,1fr) 68px;padding:11px 12px;min-height:86px}
  .hmgpv-product-view .hmgpv-essential-image{width:68px;height:62px}
}

/* v1.0.3 — compact 600x600 hero, hidden thumb scrollbar, category related carousel */
@media (max-width:767px){
  .hmgpv-product-view .hmgpv-related .hmgpv-card-track{scrollbar-width:thin;scrollbar-color:#171717 #dededb;padding-bottom:16px}
  .hmgpv-product-view .hmgpv-related .hmgpv-card-track::-webkit-scrollbar{display:block;height:4px}
  .hmgpv-product-view .hmgpv-related .hmgpv-card-track::-webkit-scrollbar-track{background:#dededb}
  .hmgpv-product-view .hmgpv-related .hmgpv-card-track::-webkit-scrollbar-thumb{background:#171717}
}
.hmgpv-product-view .hmgpv-video-list-front{display:flex;flex-direction:column;gap:24px}

/* v1.0.5 — mixed-ratio video grid: 4x landscape, 6x portrait, stacked on mobile */
.hmgpv-product-view .hmgpv-video-list-front{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:start}
.hmgpv-product-view .hmgpv-video-embed--16-9{grid-column:span 3;aspect-ratio:16/9}
.hmgpv-product-view .hmgpv-video-embed--9-16{grid-column:span 2;aspect-ratio:9/16}
@media (max-width:767px){
  .hmgpv-product-view .hmgpv-video-list-front{display:grid;grid-template-columns:1fr;gap:20px}
  .hmgpv-product-view .hmgpv-video-embed{grid-column:1/-1;width:100%}
}


/* v1.0.6 — clean frontend labels/meta */
.hmgpv-product-view .woocommerce-Reviews-title,
.hmgpv-product-view .woocommerce-noreviews{display:none!important}

/* v1.0.10 — mobile purchase row: horizontal quantity + full-width add to cart */
@media (max-width:767px){
  .hmgpv-product-view .hmgpv-summary-purchase form.cart:not(.variations_form){display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:10px!important;width:100%!important;margin:0!important}
  .hmgpv-product-view .hmgpv-summary-purchase .woocommerce-variation-add-to-cart{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:10px!important;width:100%!important;margin:0!important}
  .hmgpv-product-view .hmgpv-summary-purchase .quantity{display:flex!important;flex-direction:row!important;align-items:stretch!important;flex:0 0 112px!important;width:112px!important;max-width:112px!important;height:50px!important;margin:0!important;padding:0!important;float:none!important;border:1px solid #d5d5d5!important;border-radius:999px!important;overflow:hidden!important;order:1!important;background:#fff!important}
  .hmgpv-product-view .hmgpv-summary-purchase .quantity .minus,.hmgpv-product-view .hmgpv-summary-purchase .quantity .plus{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;font-size:20px!important;line-height:1!important}
  .hmgpv-product-view .hmgpv-summary-purchase .quantity input.qty{position:static!important;display:block!important;flex:1 1 auto!important;width:44px!important;min-width:0!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;text-align:center!important;appearance:textfield!important;-moz-appearance:textfield!important}
  .hmgpv-product-view .hmgpv-summary-purchase .quantity input.qty::-webkit-outer-spin-button,.hmgpv-product-view .hmgpv-summary-purchase .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
  .hmgpv-product-view .hmgpv-summary-purchase .single_add_to_cart_button{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:50px!important;min-height:50px!important;margin:0!important;padding:0 18px!important;float:none!important;order:2!important;border-radius:999px!important;white-space:nowrap!important}
  .hmgpv-product-view .hmgpv-summary-purchase .single_variation_wrap{width:100%!important}
  .hmgpv-product-view .hmgpv-summary-purchase .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button{opacity:.5!important;pointer-events:none!important}
}


