/* Premium conversion-focused enhancements for the single product page. */
.single-product .cg-product-detail__gallery{position:relative;overflow:visible}
.single-product .cg-product-detail__gallery:before{content:"";position:absolute;inset:-18px;z-index:-1;border-radius:38px;background:radial-gradient(circle at 20% 10%,rgba(255,228,222,.85),transparent 42%),linear-gradient(145deg,#fff7f4,#f7efec)}
.single-product .woocommerce-product-gallery__trigger{top:18px!important;right:18px!important;width:46px!important;height:46px!important;border-radius:50%!important;background:rgba(255,255,255,.92)!important;box-shadow:0 10px 24px rgba(67,43,43,.14)!important}
.single-product .cg-product-gallery-badges{position:absolute;top:18px;left:18px;z-index:8;display:flex;gap:8px;flex-wrap:wrap}
.single-product .cg-product-gallery-badge{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border-radius:999px;background:#fff;color:var(--cg-text);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 8px 20px rgba(67,43,43,.12)}
.single-product .cg-product-gallery-badge--sale{background:#4b3b38;color:#fff}.single-product .cg-product-gallery-badge--new{background:#f4ded8;color:#7e4f49}.single-product .cg-product-gallery-badge--hit{background:#edf3ee;color:#3f6849}
.single-product .cg-product-detail__summary{position:relative;overflow:visible!important;z-index:4;background:linear-gradient(145deg,#fff 0%,#fffaf8 100%)!important}
.single-product .cg-product-detail__summary:before{content:"";position:absolute;right:-80px;top:-80px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(244,222,216,.72),rgba(244,222,216,0));pointer-events:none;z-index:0}
.single-product .cg-product-detail__summary>*{position:relative;z-index:1}
.single-product .cg-product-detail__summary .product_title{font-size:clamp(30px,3.1vw,44px)!important;line-height:1.08!important;margin:8px 0 14px!important}
.single-product .cg-product-status{margin:0 0 10px!important}
.single-product .cg-product-detail__summary .price{padding-bottom:18px;border-bottom:1px solid #eee0dc}
.single-product .cg-product-actions{position:relative;z-index:40;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 6px}
.single-product .cg-product-action{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;min-height:56px;padding:0 20px;border:1px solid #e7d4cf;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#fff9f7 100%);color:#302827;font-size:14px;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 10px 28px rgba(67,43,43,.07),inset 0 1px 0 rgba(255,255,255,.9);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease}
.single-product .cg-product-action:before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,0));pointer-events:none}
.single-product .cg-product-action>*{position:relative;z-index:1}
.single-product .cg-product-action:hover{transform:translateY(-2px);border-color:#d8aaa3;background:linear-gradient(180deg,#fff,#fff3ef);box-shadow:0 16px 34px rgba(67,43,43,.11),inset 0 1px 0 #fff}
.single-product .cg-product-action:active{transform:translateY(0) scale(.99);box-shadow:0 6px 16px rgba(67,43,43,.08)}
.single-product .cg-product-action:focus-visible{outline:3px solid rgba(183,117,109,.18);outline-offset:3px}
.single-product .cg-product-action.is-active{background:linear-gradient(135deg,#f7d8d3,#f3c2bb);border-color:#d99e96;color:#8f4645;box-shadow:0 14px 30px rgba(177,91,98,.16),inset 0 1px 0 rgba(255,255,255,.74)}
.single-product .cg-product-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.single-product .cg-product-action.is-active svg{fill:currentColor}
.single-product .cg-share{position:relative;z-index:80}
.single-product .cg-share>.cg-product-action{width:100%}
.single-product .cg-share>.cg-product-action:after{content:"";width:7px;height:7px;margin-left:2px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}
.single-product .cg-share>.cg-product-action[aria-expanded=true]:after{transform:rotate(225deg) translate(-1px,-1px)}
.single-product .cg-share-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:9999;display:grid;min-width:240px;padding:10px;border:1px solid #ead9d4;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(48,31,30,.24)}
.single-product .cg-share-menu[hidden]{display:none!important}
.single-product .cg-share-menu a,.single-product .cg-share-menu button{display:flex;align-items:center;min-height:44px;padding:0 13px;border:0;border-radius:11px;background:transparent;color:var(--cg-text);font:inherit;font-size:13px;font-weight:700;text-decoration:none;text-align:left;cursor:pointer}
.single-product .cg-share-menu a:hover,.single-product .cg-share-menu button:hover{background:#fff2ee;color:var(--cg-accent-dark)}
.single-product .cg-product-detail form.cart:not(.variations_form),.single-product .cg-single-product form.cart:not(.variations_form),.single-product .cg-product-detail .woocommerce-variation-add-to-cart,.single-product .cg-single-product .woocommerce-variation-add-to-cart{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;flex-wrap:nowrap!important;width:100%!important;max-width:none!important}
.single-product .cg-product-detail form.cart .quantity.cg-quantity-ready,.single-product .cg-single-product form.cart .quantity.cg-quantity-ready,.single-product .cg-product-detail .woocommerce-variation-add-to-cart .quantity.cg-quantity-ready,.single-product .cg-single-product .woocommerce-variation-add-to-cart .quantity.cg-quantity-ready{display:block!important;flex:0 0 auto!important;width:100%!important;min-width:100%!important;max-width:100%!important;height:58px!important;min-height:58px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important;float:none!important;box-shadow:none!important;box-sizing:border-box!important}
.single-product form.cart .quantity.cg-quantity-ready>.qty.cg-quantity-native-input{position:absolute!important;width:1px!important;min-width:1px!important;max-width:1px!important;height:1px!important;min-height:1px!important;margin:-1px!important;padding:0!important;border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important}
.single-product .cg-product-detail .cg-quantity-control,.single-product .cg-single-product .cg-quantity-control{display:grid!important;grid-template-columns:56px minmax(72px,1fr) 56px!important;align-items:center!important;width:100%!important;min-width:100%!important;max-width:100%!important;height:58px!important;padding:5px!important;border:1px solid #dfd5d1!important;border-radius:18px!important;background:#f6f4f3!important;box-shadow:0 8px 22px rgba(67,43,43,.08),inset 0 1px 0 rgba(255,255,255,.9)!important;box-sizing:border-box!important}
.single-product .cg-quantity-control__button{display:grid;place-items:center;width:46px;height:46px;margin:0 auto;padding:0;border:0;border-radius:14px;background:#fff;color:#3f3836;cursor:pointer;box-shadow:0 3px 10px rgba(67,43,43,.08);transition:transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.single-product .cg-quantity-control__button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.single-product .cg-quantity-control__button:hover{background:#fff1ed;color:var(--cg-accent-dark);box-shadow:0 6px 14px rgba(67,43,43,.11)}
.single-product .cg-quantity-control__button:active{transform:scale(.95)}
.single-product .cg-quantity-control__button:focus-visible{outline:3px solid rgba(183,117,109,.18);outline-offset:2px}
.single-product .cg-quantity-control__button:disabled{opacity:.32;cursor:not-allowed;transform:none;background:#fff;box-shadow:none}
.single-product .cg-quantity-control__value{display:grid;place-items:center;min-width:0;height:46px;color:#211d1c;font-size:18px;font-weight:850;line-height:1;font-variant-numeric:tabular-nums}
.single-product .cg-product-detail form.cart .single_add_to_cart_button,.single-product .cg-single-product form.cart .single_add_to_cart_button{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:100%!important;min-width:100%!important;max-width:100%!important;min-height:58px!important;margin:0!important;border-radius:18px!important}
.single-product .cg-product-benefits{position:relative;z-index:1;gap:12px;margin-top:28px}
.single-product .cg-product-benefit{padding:18px;border-radius:18px;background:linear-gradient(145deg,#fff,#fffaf8)}
.single-product .related.products{margin-top:66px;padding-top:52px;border-top:1px solid #eadbd7}
.single-product .related.products>h2{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:0}
.single-product .related.products>h2:after{content:"Подобрано флористом";font-family:Arial,sans-serif;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--cg-accent-dark)}
.single-product .related.products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important}
.single-product .related.products ul.products li.product{width:auto!important;margin:0!important;float:none!important;display:flex!important;flex-direction:column!important;height:100%!important;border:1px solid var(--cg-line)!important;border-radius:22px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 16px 40px rgba(67,43,43,.06)!important}
.single-product .related.products ul.products li.product img{aspect-ratio:1/1.05;object-fit:cover;margin:0!important}
.single-product .related.products ul.products li.product .woocommerce-loop-product__title{padding:18px 18px 0!important;font-size:19px!important}
.single-product .related.products ul.products li.product .price{margin-top:auto!important;padding:14px 18px 0!important}
.single-product .related.products ul.products li.product .button{margin:16px 18px 18px!important;width:calc(100% - 36px)!important;border-radius:999px!important}
.cg-favorites-link{position:relative}
.cg-favorites-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--cg-accent-dark);color:#fff;font-size:10px;font-weight:800;line-height:1}
.cg-favorites-count[hidden]{display:none!important}
@media(max-width:980px){.single-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.single-product .cg-product-gallery-badges{top:12px;left:12px}.single-product .cg-product-gallery-badge{min-height:30px;padding:6px 10px;font-size:10px}.single-product .cg-product-actions{grid-template-columns:1fr}.single-product .cg-share-menu{left:0;right:auto;min-width:240px;width:min(280px,calc(100vw - 48px))}.single-product .cg-product-detail form.cart,.single-product .cg-single-product form.cart,.single-product .cg-product-detail form.cart .quantity.cg-quantity-ready,.single-product .cg-single-product form.cart .quantity.cg-quantity-ready,.single-product .cg-product-detail .cg-quantity-control,.single-product .cg-single-product .cg-quantity-control{width:100%!important;min-width:100%!important;max-width:100%!important}.single-product .cg-quantity-control{grid-template-columns:52px minmax(60px,1fr) 52px!important}.single-product .related.products{overflow:hidden}.single-product .related.products>h2{align-items:flex-start;flex-direction:column}.single-product .related.products ul.products{display:flex!important;gap:14px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;padding-bottom:10px!important}.single-product .related.products ul.products li.product{flex:0 0 78%!important;scroll-snap-align:start}.single-product .woocommerce-product-gallery__trigger{top:12px!important;right:12px!important}}
@media(prefers-reduced-motion:reduce){.single-product .cg-product-action,.single-product .cg-product-benefit,.single-product .woocommerce-product-gallery__image img,.single-product .cg-quantity-control__button{transition:none!important}}
