:root{--hz-navy:#0B1F3A;--hz-blue:#1B5FA7;--hz-gold:#C8A96B;--hz-border:#E5E7EB;--hz-soft:#F7F9FB;--hz-text:#17202A;--hz-muted:#667085}
/* Hisarzade v5: clean two-column product page. */
.hz-personalized-product div.product{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(350px,.88fr);gap:clamp(28px,4vw,62px);align-items:start}
.hz-personalized-product div.product>.woocommerce-product-gallery{width:auto!important;float:none!important;margin:0!important;grid-column:1}
.hz-personalized-product div.product>.summary{width:auto!important;float:none!important;margin:0!important;grid-column:2;position:relative}
.hz-personalized-product div.product>.woocommerce-tabs,.hz-personalized-product div.product>.related,.hz-personalized-product div.product>.upsells{grid-column:1/-1;width:100%!important;float:none!important;clear:none!important}
/* Wide, clean product image area. */
.hz-personalized-product .woocommerce-product-gallery .woocommerce-product-gallery__image{position:relative;overflow:hidden;border-radius:22px;background:#f6f8fa}
.hz-personalized-product .woocommerce-product-gallery .woocommerce-product-gallery__image img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:22px;background:#f6f8fa}
.hz-personalized-product .woocommerce-product-gallery .flex-control-thumbs{margin-top:12px!important}
/* The customization card lives in WooCommerce's existing add-to-cart form. */
.hz-personalizer{margin:24px 0 0;padding:22px;border:1px solid var(--hz-border);border-radius:20px;background:#fff;box-shadow:0 16px 45px rgba(11,31,58,.08);font-family:inherit;color:var(--hz-text)}
.hz-personalizer *{box-sizing:border-box}.hz-personalizer__top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.hz-eyebrow{font-size:9px;letter-spacing:.2em;font-weight:800;color:var(--hz-gold)}.hz-personalizer h3{margin:4px 0 5px;font-size:24px;line-height:1.1;color:var(--hz-navy)}.hz-personalizer__top p{margin:0;color:var(--hz-muted);font-size:12px;line-height:1.45}.hz-live-badge{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--hz-border);border-radius:999px;background:#fafafa;color:#526071;font-size:10px;font-weight:700;white-space:nowrap}.hz-live-badge span{width:6px;height:6px;border-radius:50%;background:#2e8b57}.hz-design-hint{margin:0 0 16px;padding:10px 12px;border-radius:11px;background:#f7f9fb;color:#657080;font-size:10px;line-height:1.45}.hz-design-hint span{color:var(--hz-gold);margin-right:4px}
.hz-section{margin:0 0 16px}.hz-section-head{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}.hz-section-head strong{font-size:12px;color:var(--hz-navy)}.hz-section-head small{font-size:10px;color:var(--hz-muted)}.hz-color-products{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 5px;scrollbar-width:thin}.hz-color-product{position:relative;flex:0 0 62px;cursor:pointer;text-align:center}.hz-color-product input{position:absolute;opacity:0;pointer-events:none}.hz-color-product__thumb{display:flex;align-items:center;justify-content:center;width:60px;height:54px;padding:3px;border:2px solid var(--hz-border);border-radius:10px;background:#fff;overflow:hidden;transition:.18s}.hz-color-product__thumb img{width:100%;height:100%;object-fit:contain;display:block}.hz-color-product__thumb i{display:block;width:32px;height:32px;border-radius:50%;border:1px solid rgba(0,0,0,.08)}.hz-color-product__name{display:block;margin-top:4px;font-size:9px;color:#4B5563;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hz-color-product input:checked~.hz-color-product__thumb{border-color:var(--hz-navy);box-shadow:0 0 0 3px rgba(11,31,58,.08)}.hz-color-product input:checked~.hz-color-product__name{font-weight:800;color:var(--hz-navy)}
.hz-field{margin:0 0 13px}.hz-field label{display:block;font-size:11px;font-weight:800;margin-bottom:6px;color:#253043}.hz-field label em,.hz-confirm em{color:#B42318;font-style:normal}.hz-input-wrap{position:relative}.hz-field input[type=text],.hz-field select{width:100%;height:43px;border:1px solid #D7DBE2;border-radius:10px;padding:0 11px;background:#fff;color:var(--hz-text);outline:none;transition:.15s}.hz-field input[type=text]:focus,.hz-field select:focus{border-color:var(--hz-navy);box-shadow:0 0 0 3px rgba(11,31,58,.07)}.hz-counter{position:absolute;right:11px;top:13px;font-size:9px;color:#8A93A0}.hz-control-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hz-color-input{display:flex;align-items:center;gap:7px;height:43px;border:1px solid #D7DBE2;border-radius:10px;padding:4px 8px}.hz-color-input input{width:31px;height:31px;border:0;padding:0;background:transparent}.hz-color-input span{font-size:10px;color:#6B7280}.hz-field input[type=range]{width:100%;accent-color:var(--hz-navy)}.hz-field output{float:right;font-weight:800;color:var(--hz-navy)}.hz-size-field{margin-top:2px}
.hz-upload{min-height:58px;border:1px dashed #B8C0CB;border-radius:10px;padding:9px 11px;display:flex;align-items:center;gap:9px;cursor:pointer;background:#FAFBFC}.hz-upload:hover{background:#f7f9fb;border-color:#9da8b5}.hz-upload input{display:none}.hz-upload span{display:flex;flex-direction:column;gap:2px}.hz-upload strong{font-size:11px;color:var(--hz-navy)}.hz-upload small{font-size:9px;color:#7A8492}.hz-upload>b{margin-left:auto;font-size:18px;color:var(--hz-gold)}.hz-upload-status{margin-top:6px;font-size:10px;color:#5D6774}.hz-upload-status.is-error{color:#B42318}.hz-upload-status.is-ok{color:#067647}
.hz-mini-actions{display:flex;justify-content:flex-end;gap:6px;margin:1px 0 12px}.hz-mini-actions button{border:1px solid var(--hz-border);background:#fff;color:#526071;border-radius:8px;padding:7px 9px;font-size:9px;cursor:pointer}.hz-mini-actions button:hover{border-color:#c8ccd4;background:#fbfbfc}.hz-mini-actions button:disabled{opacity:.45;cursor:not-allowed}.hz-confirm{display:flex;gap:8px;align-items:flex-start;padding:10px 11px;border:1px solid #E4E7EC;border-radius:10px;background:#FBFCFD;font-size:10px;line-height:1.45;color:#394150;margin-bottom:13px}.hz-confirm input{margin-top:2px}.hz-personalizer .woocommerce-invalid{border-color:#B42318}
/* Native WooCommerce add-to-cart controls are moved into the card footer by JS. */
.hz-cart-actions{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:center;margin-top:14px}.hz-cart-actions .quantity{margin:0!important;display:flex;align-items:center}.hz-cart-actions .quantity .qty{height:44px!important;min-width:72px;border-radius:10px!important;border:1px solid #D7DBE2!important}.hz-cart-actions .single_add_to_cart_button{width:100%!important;min-height:44px!important;margin:0!important;border-radius:10px!important;background:var(--hz-navy)!important;border-color:var(--hz-navy)!important;font-weight:800!important}.hz-cart-actions .single_add_to_cart_button:hover{background:var(--hz-blue)!important;border-color:var(--hz-blue)!important}
/* Make the moved short description read like a product-features section. */
.hz-personalized-product .summary>.woocommerce-product-details__short-description{display:none}.hz-personalized-product .hz-product-features{grid-column:1/-1;margin-top:2px;padding:26px 0 0;border-top:1px solid var(--hz-border)}
/* Overlay placed on the native first/active gallery image. */
.hz-native-overlay{position:absolute;inset:0;z-index:30;pointer-events:none;overflow:hidden}.hz-print-area{position:absolute;left:23%;top:24%;width:54%;height:48%;border:1px dashed rgba(11,31,58,.20);border-radius:12px;pointer-events:none;opacity:.65}.hz-print-area span{position:absolute;top:-9px;left:50%;transform:translateX(-50%);padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.88);font-size:7px;letter-spacing:.08em;color:#77808c}.hz-personalizer__text-layer,.hz-personalizer__image-layer{position:absolute;left:50%;top:50%;padding:7px;cursor:move;touch-action:none;user-select:none;-webkit-user-select:none;border:2px dashed transparent;z-index:8;pointer-events:auto}.hz-personalizer__text-layer:hover,.hz-personalizer__text-layer.is-selected,.hz-personalizer__image-layer:hover,.hz-personalizer__image-layer.is-selected{border-color:var(--hz-navy)}.hz-personalizer__text{display:block;font-size:34px;font-weight:700;line-height:1;white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis;pointer-events:none;text-shadow:0 1px 2px rgba(0,0,0,.14)}.hz-uploaded-image{display:block;max-width:190px;max-height:190px;pointer-events:none}.hz-handle{position:absolute;width:17px;height:17px;border:2px solid #fff;border-radius:50%;background:var(--hz-navy);padding:0;z-index:3;box-shadow:0 2px 8px rgba(0,0,0,.24)}.hz-resize,.hz-img-resize{right:-9px;bottom:-9px;cursor:nwse-resize}.hz-rotate,.hz-img-rotate{left:50%;top:-26px;transform:translateX(-50%);cursor:grab}.hz-img-delete{position:absolute;right:-10px;top:-10px;width:23px;height:23px;border:0;border-radius:50%;background:#B42318;color:#fff;font-size:16px;line-height:23px;padding:0;cursor:pointer;z-index:4}
@media(max-width:900px){.hz-personalized-product div.product{grid-template-columns:1fr;gap:24px}.hz-personalized-product div.product>.woocommerce-product-gallery,.hz-personalized-product div.product>.summary{grid-column:1}.hz-personalized-product .woocommerce-product-gallery .woocommerce-product-gallery__image img{aspect-ratio:4/3}.hz-personalized-product .summary form.cart{display:block}.hz-personalized-product .summary form.cart .hz-personalizer{margin-top:16px}}
@media(max-width:600px){.hz-personalizer{margin:16px 0 0;padding:16px;border-radius:17px}.hz-personalizer h3{font-size:21px}.hz-control-row{grid-template-columns:1fr}.hz-color-products{gap:7px}.hz-color-product{flex-basis:58px}.hz-color-product__thumb{width:56px;height:50px}.hz-personalized-product .woocommerce-product-gallery .woocommerce-product-gallery__image,.hz-personalized-product .woocommerce-product-gallery .woocommerce-product-gallery__image img{border-radius:17px}}

/* Color choices sit under the main product image, spanning the full product width. */
.hz-below-product{grid-column:1/-1;width:100%;}
.hz-product-colors{margin-top:4px;padding:22px 24px 18px;border:1px solid var(--hz-border);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(11,31,58,.05);}
.hz-below-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px;}
.hz-below-head h3{margin:2px 0 0;color:var(--hz-navy);font-size:20px;line-height:1.1;}
.hz-below-head p{margin:0;color:var(--hz-muted);font-size:12px;}
.hz-below-kicker{font-size:9px;letter-spacing:.18em;font-weight:800;color:var(--hz-gold);}
.hz-color-products--below{display:flex;gap:14px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin;}
.hz-color-products--below .hz-color-product{flex:0 0 92px;}
.hz-color-products--below .hz-color-product__thumb{width:92px;height:82px;border-radius:13px;padding:5px;}
.hz-color-products--below .hz-color-product__name{font-size:11px;margin-top:7px;}
.hz-color-products--below .hz-color-product input:checked~.hz-color-product__thumb{border-width:3px;box-shadow:0 0 0 4px rgba(11,31,58,.08);}
.hz-product-features{margin-top:0;padding:26px 0 4px;border-top:1px solid var(--hz-border);}
.hz-features-content{font-size:13px;line-height:1.75;color:#4b5563;}
.hz-features-content p{margin:0 0 8px;}
.hz-features-content ul{margin:0;padding-left:20px;}
.hz-visual-layers{display:none!important;}
.hz-native-overlay{position:absolute;inset:0;z-index:50;pointer-events:none;overflow:hidden;}
.hz-print-area{position:absolute;left:30%;top:29%;width:40%;height:37%;border:1px dashed rgba(11,31,58,.16);border-radius:16px;pointer-events:none;opacity:0;transition:opacity .2s;}
.hz-native-overlay.hz-has-design .hz-print-area{opacity:.7;}
.hz-print-area span{position:absolute;top:-10px;left:50%;transform:translateX(-50%);padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.9);font-size:7px;letter-spacing:.08em;color:#77808c;}
.hz-personalizer__text-layer,.hz-personalizer__image-layer{position:absolute;left:50%;top:50%;padding:8px;cursor:move;touch-action:none;user-select:none;-webkit-user-select:none;border:2px dashed transparent;z-index:8;pointer-events:auto;}
.hz-personalizer__text-layer:hover,.hz-personalizer__text-layer.is-selected,.hz-personalizer__image-layer:hover,.hz-personalizer__image-layer.is-selected{border-color:var(--hz-navy);}
.hz-personalizer__text{display:block;font-size:34px;font-weight:700;line-height:1;white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis;pointer-events:none;text-shadow:0 1px 2px rgba(0,0,0,.14);}
.hz-uploaded-image{display:block;max-width:190px;max-height:190px;pointer-events:none;}
.hz-handle{position:absolute;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:var(--hz-navy);padding:0;z-index:3;box-shadow:0 2px 8px rgba(0,0,0,.24);font-size:10px;line-height:14px;color:#fff;}
.hz-resize,.hz-img-resize{right:-10px;bottom:-10px;cursor:nwse-resize;}
.hz-rotate,.hz-img-rotate{left:50%;top:-28px;transform:translateX(-50%);cursor:grab;}
.hz-img-delete{position:absolute;right:-11px;top:-11px;width:24px;height:24px;border:0;border-radius:50%;background:#B42318;color:#fff;font-size:17px;line-height:24px;padding:0;cursor:pointer;z-index:4;}
.hz-cart-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;margin-top:14px;}
.hz-cart-actions .quantity{margin:0!important;display:flex;align-items:center;}
.hz-cart-actions .quantity .qty{height:48px!important;min-width:76px;border-radius:11px!important;border:1px solid #D7DBE2!important;}
.hz-cart-actions .single_add_to_cart_button{width:100%!important;min-height:48px!important;margin:0!important;border-radius:11px!important;background:var(--hz-navy)!important;border-color:var(--hz-navy)!important;font-weight:800!important;}
.hz-cart-actions .single_add_to_cart_button:hover{background:var(--hz-blue)!important;border-color:var(--hz-blue)!important;}
@media(max-width:900px){.hz-below-head{align-items:flex-start;flex-direction:column;gap:5px}.hz-product-colors{padding:18px 16px}.hz-color-products--below .hz-color-product{flex-basis:78px}.hz-color-products--below .hz-color-product__thumb{width:78px;height:70px}.hz-personalizer__text{max-width:280px}.hz-uploaded-image{max-width:140px;max-height:140px;}}
@media(max-width:600px){.hz-color-products--below{gap:9px}.hz-color-products--below .hz-color-product{flex-basis:72px}.hz-color-products--below .hz-color-product__thumb{width:72px;height:64px}.hz-cart-actions{grid-template-columns:1fr;}.hz-cart-actions .single_add_to_cart_button{min-height:50px!important}.hz-product-features{padding-top:20px}.hz-print-area{left:27%;top:30%;width:46%;height:34%;}}

/* v5.1: color choices belong directly under the WooCommerce product gallery. */
.hz-gallery-colors{margin-top:14px!important;width:100%;box-sizing:border-box;}
.hz-personalized-product .woocommerce-product-gallery>.hz-gallery-colors{display:block;}
@media(max-width:900px){.hz-gallery-colors{margin-top:12px!important;}}
