/* Keep the theme's related-products inner padding; remove its additional outer top margin. */
body.single-product #grve-theme-wrapper .grve-product-main-content > .grve-related-area.grve-margin-top-4x{margin-top:0!important;}
body.single-product #grve-product-area .summary .price .iota-single-sold{color:inherit;font:inherit;text-transform:none;}

/* Product quantity: three explicit tracks, independent of theme button/input minimum sizes. */
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced:not(.iota-quantity-fixed){
 display:inline-grid!important;grid-template-columns:42px minmax(0,1fr) 42px;grid-template-rows:52px;
 align-items:stretch;justify-items:stretch;gap:0!important;box-sizing:border-box!important;
 width:132px!important;min-width:132px!important;max-width:100%!important;height:54px!important;min-height:54px!important;max-height:54px!important;
 flex:0 0 132px!important;float:none!important;padding:0!important;border:1px solid #dedbd5!important;border-radius:0!important;background:transparent!important;
 vertical-align:middle;overflow:visible;
}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced:not(.iota-quantity-fixed):focus-within{border-color:#000!important;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced:not(.iota-quantity-fixed) :is(input.qty,input[name="quantity"]):not([type=hidden]){
 grid-column:2;grid-row:1;position:static!important;display:block!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;height:52px!important;min-height:0!important;max-height:52px!important;
 padding:0!important;margin:0!important;float:none!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 text-align:center!important;font:400 16px/52px Lora,Georgia,serif!important;appearance:textfield!important;
}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced:not(.iota-quantity-fixed) .iota-qty-arrow{
 grid-row:1;position:static!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;
 width:42px!important;min-width:0!important;max-width:42px!important;height:52px!important;min-height:0!important;max-height:52px!important;
 padding:0!important;margin:0!important;float:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;
}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-prev{grid-column:1;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-next{grid-column:3;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-arrow::after{content:none!important;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-arrow::before{display:block!important;position:static!important;box-sizing:border-box!important;width:8px!important;height:8px!important;margin:0!important;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-arrow:not(:disabled):hover{background:#ede9df!important;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-arrow:focus-visible{outline:1px solid #000!important;outline-offset:-4px!important;}
body.single-product #grve-theme-wrapper #grve-product-area .quantity.iota-quantity-enhanced .iota-qty-arrow:disabled{opacity:.25!important;}
body.single-product #grve-theme-wrapper #grve-product-area .gift_card_template_button:has(.quantity.iota-quantity-enhanced:not(.iota-quantity-fixed)){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
body.single-product #grve-theme-wrapper #grve-product-area .gift_card_template_button:has(.quantity.iota-quantity-enhanced:not(.iota-quantity-fixed)) .single_add_to_cart_button{max-width:100%!important;}

/* Clear, deliberate gap below the title, independent of paragraph margins. */
body.single-product #grve-theme-wrapper #grve-product-area .summary h1.product_title{margin-bottom:clamp(28px,2.5vw,40px)!important;}
body.single-product #grve-theme-wrapper #grve-product-area .summary h1.product_title + .woocommerce-product-details__short-description{margin-top:0!important;}
@media(max-width:767px){body.single-product #grve-theme-wrapper #grve-product-area .summary h1.product_title{margin-bottom:26px!important;}}
/* Same related-products container and rhythm; no second background block. */
body.single-product #grve-theme-wrapper .iota-product-collected{color:inherit;}
body.single-product #grve-theme-wrapper .iota-product-collected h2{font:400 24px/1.25 Marcellus,Georgia,serif;margin:0 0 16px;color:#000;}
body.single-product #grve-theme-wrapper .iota-product-collected .iota-sold-grid{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--iota-card-gap,24px)!important;}
@media(max-width:767px){body.single-product #grve-theme-wrapper .iota-product-collected .iota-sold-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Single-product rhythm. Each section owns its leading separator; do not stack
   the native purchase-area trailing rule against our metadata separator. */
body.single-product #grve-theme-wrapper #grve-product-area .summary{
 --iota-product-section-gap:24px;
 --iota-product-section-line:#dedbd5;
}
body.single-product #grve-theme-wrapper #grve-product-area .summary :is(form.cart,.grve-product-form,.grve-add-to-cart-wrapper){
 border-bottom:0!important;padding-bottom:0!important;margin-bottom:0!important;
}
/* Impeka wraps the cart (including YITH gifting) in this additional container.
   The metadata block owns the only trailing divider when it is present. */
body.single-product #grve-theme-wrapper #grve-product-area .summary:has(> .product_meta .posted_in) > .grve-form-wrapper{
 border-bottom:0!important;padding-bottom:0!important;margin-bottom:0!important;
}
body.single-product #grve-theme-wrapper #grve-product-area .summary:has(> .product_meta .posted_in) > .grve-form-wrapper::after{
 border-bottom:0!important;border-top:0!important;
}
body.single-product #grve-theme-wrapper #grve-product-area .summary #gift-this-product{
 border:0!important;border-top:1px solid var(--iota-product-section-line)!important;
 border-radius:0!important;box-shadow:none!important;
 margin:var(--iota-product-section-gap) 0 0!important;padding:var(--iota-product-section-gap) 0 0!important;
}
body.single-product #grve-theme-wrapper #grve-product-area .summary .product_meta:has(.posted_in){
 border:0!important;border-top:1px solid var(--iota-product-section-line)!important;
 border-radius:0!important;margin:var(--iota-product-section-gap) 0 0!important;
 padding:var(--iota-product-section-gap) 0 0!important;
}
body.single-product #grve-theme-wrapper #grve-product-area .summary .woocommerce-notices-wrapper:empty{display:none!important;margin:0!important;padding:0!important;}
/* Empty recommendation wrappers must not contribute theme padding or borders. */
body.single-product #grve-theme-wrapper :is(.iota-empty-product-section,.iota-empty-product-content){display:none!important;}
body.single-product #grve-theme-wrapper #grve-main-content > .grve-main-content-wrapper.iota-recommendations-only{padding-block:0!important;}
body.single-product #grve-theme-wrapper .iota-recommendations-only .grve-related-area{
 --iota-recommendation-gap:clamp(44px,6vw,90px);
 margin-block:0!important;padding-block:var(--iota-recommendation-gap)!important;border:0!important;
}
body.single-product #grve-theme-wrapper .grve-related-area .iota-product-recommendation-divider{
 border-top:1px solid #dedbd5!important;margin-top:var(--iota-recommendation-gap,48px)!important;padding-top:var(--iota-recommendation-gap,48px)!important;
}
body.single-product #grve-theme-wrapper .grve-related-area :is(.related.products,.up-sells.products,.upsells.products,.iota-product-collected):not(.iota-product-recommendation-divider){margin-top:0!important;padding-top:0!important;border-top:0!important;}
body.single-product #grve-theme-wrapper .grve-related-area :is(.related.products,.up-sells.products,.upsells.products,.iota-product-collected){margin-bottom:0!important;padding-bottom:0!important;border-bottom:0!important;}
@media(max-width:767px){
 body.single-product #grve-theme-wrapper #grve-product-area .summary{--iota-product-section-gap:20px;}
 body.single-product #grve-theme-wrapper .iota-recommendations-only .grve-related-area{--iota-recommendation-gap:32px;}
}

body.iota-gallery-lightbox-off .woocommerce-product-gallery__trigger{display:none!important}
body.iota-gallery-hover-off.iota-gallery-lightbox-off .woocommerce-product-gallery__image{cursor:default}

@media(max-width:767px){
 body.single-product #grve-theme-wrapper #grve-product-area .summary{--iota-product-section-gap:var(--iota-mobile-detail,24px);}
 body.single-product #grve-theme-wrapper #grve-product-area .summary h1.product_title{margin-bottom:var(--iota-mobile-stack,32px)!important;}
 body.single-product #grve-theme-wrapper .iota-recommendations-only .grve-related-area{--iota-recommendation-gap:var(--iota-mobile-section,52px);}
}
