/* U Groove: component styles (theme.json holds the tokens) */
:root{--ug-teal:var(--wp--preset--color--teal);--ug-ink:var(--wp--preset--color--ink);--ug-steel:var(--wp--preset--color--steel);--ug-line:var(--wp--preset--color--line);--ug-surface:var(--wp--preset--color--surface);--ug-yellow:var(--wp--preset--color--yellow)}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(.wp-site-blocks) *:focus-visible{outline:3px solid var(--ug-yellow);outline-offset:2px}
.wp-site-blocks > *{margin-block-start:0}

/* Header */
.ug-header{position:sticky;top:0;z-index:50}
.admin-bar .ug-header{top:32px}
@media (max-width:782px){.admin-bar .ug-header{top:0}}
.ug-logo{display:block;line-height:0}.ug-logo img{display:block;width:98px;height:auto}@media (max-width:600px){.ug-logo img{width:86px}}
.ug-nav a{color:var(--ug-ink);text-decoration:none}
.ug-nav a:hover,.ug-nav .current-menu-item>a{color:var(--ug-teal)}
.ug-nav .wp-block-navigation-item__content{padding:.35em 0}
.ug-cart .wc-block-mini-cart__button{color:var(--ug-ink);padding:.4em}
.ug-cart .wc-block-mini-cart__badge{background:var(--ug-teal);color:#fff;border:0}
.wp-block-navigation__responsive-container.is-menu-open{padding:1.25rem clamp(1rem,4vw,2rem)}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{gap:1.1rem}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-family:var(--wp--preset--font-family--display);font-size:2rem;font-weight:700}

/* Buttons */
.wp-block-button.is-style-outline>.wp-block-button__link{background:transparent;color:var(--ug-teal);border:2px solid currentColor;padding:calc(.85em - 2px) calc(1.4em - 2px)}
.wp-block-button.is-style-outline>.wp-block-button__link:hover{background:var(--ug-teal);color:#fff;border-color:var(--ug-teal)}
.ug-btn-light>.wp-block-button__link{background:#fff;color:var(--ug-teal)!important}
.ug-btn-light>.wp-block-button__link:hover{background:var(--ug-ink);color:#fff!important}

/* Hero */
.ug-hero-title{font-size:clamp(2.9rem,6.4vw,5rem);line-height:.95;max-width:11ch;margin:0}
.ug-hero-lead{color:var(--ug-steel);max-width:37ch;margin-top:1.25rem;line-height:1.5}
.ug-spec{margin:0}
.ug-spec-svg{display:block;width:100%;height:auto;max-width:560px;margin-inline:auto;overflow:visible}
.ug-dim path{stroke:var(--ug-teal);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.ug-dot{fill:var(--ug-teal);stroke:#fff;stroke-width:3}
.ug-dim-t text{font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:30px;fill:var(--ug-ink)}
.ug-dim-t .ug-dim-s{font-family:var(--wp--preset--font-family--body);font-weight:500;font-size:20px;fill:var(--ug-steel)}
.ug-spec figcaption{text-align:center;font-size:.95rem;color:var(--ug-steel);margin-top:.5rem}
.ug-spec figcaption a{color:var(--ug-ink);font-weight:600}
@media (max-width:781px){.ug-hero-cols{gap:2rem!important}.ug-hero-title{max-width:none}.ug-spec-svg{max-width:420px}}

/* Section heads */
.ug-sec-head{margin-bottom:var(--wp--preset--spacing--50)!important;row-gap:.75rem}
.ug-sec-head h2,.ug-sec-head p{margin:0}
.ug-sec-head p.has-steel-color{margin-top:.5rem}
.ug-sec-link a{font-weight:600;color:var(--ug-ink)}

/* Product grid (home + shop) */
.ug-grid .wc-block-product-template{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem!important;margin:0;padding:0}
@media (min-width:900px){.ug-grid .wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 1.75rem!important}}
.wc-block-product-template>li.wc-block-product{width:auto!important;margin:0!important;max-width:none!important;display:flex;flex-direction:column;box-sizing:border-box}
.wc-block-product .wc-block-components-product-image{margin:0 0 .9rem!important;background:#fff;border:1px solid var(--ug-line);border-radius:8px;overflow:hidden}
.wc-block-product .wc-block-components-product-image img{transition:transform .35s ease}
.wc-block-product:hover .wc-block-components-product-image img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.wc-block-product .wc-block-components-product-image img{transition:none}.wc-block-product:hover .wc-block-components-product-image img{transform:none}}
.wc-block-product .wp-block-post-title{font-family:var(--wp--preset--font-family--display);font-size:1.6rem!important;font-weight:700;line-height:1.05;margin:0 0 .3rem!important;text-align:left}
.wc-block-product .wp-block-post-title a{color:var(--ug-ink);text-decoration:none}
.wc-block-product .wp-block-post-title a:hover{color:var(--ug-teal)}
.wc-block-product .wc-block-components-product-price{text-align:left!important;font-size:1.05rem;margin:0}
.wc-block-components-product-price del,.price del{color:var(--ug-steel);opacity:.8;font-weight:400}
.wc-block-components-product-price ins,.price ins{text-decoration:none;font-weight:600;color:var(--ug-ink)}
.wc-block-product .wc-block-components-product-button{margin-top:auto!important;padding-top:.85rem;align-items:flex-start!important}
.wc-block-product .wc-block-components-product-button .wp-block-button__link{background:transparent;color:var(--ug-teal);border:2px solid currentColor;font-size:.95rem;padding:.55em 1.1em;height:auto!important}
.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover{background:var(--ug-teal);color:#fff;border-color:var(--ug-teal)}
.wc-block-product .wc-block-components-product-button .added_to_cart{font-size:.9rem;margin-top:.4rem;color:var(--ug-teal)}
.wc-block-product.outofstock .wc-block-components-product-button .wp-block-button__link{color:var(--ug-steel);border-color:var(--ug-line)}
.wc-block-product.outofstock .wc-block-components-product-image img{opacity:.75}
@media (max-width:599px){.wc-block-product .wp-block-post-title{font-size:1.3rem!important}.wc-block-product .wc-block-components-product-button .wp-block-button__link{font-size:.875rem;padding:.5em .9em}}

/* Fit guide */
.ug-fit-sec h2{margin-bottom:.5rem}
.ug-fit-intro{max-width:60ch;margin-top:0}
.ug-fit{--ug-name:7rem;display:grid;gap:.75rem;margin-top:var(--wp--preset--spacing--50)!important}
.ug-fit-row{display:grid;grid-template-columns:var(--ug-name) minmax(0,1fr);align-items:center;column-gap:1.25rem}
.ug-fit-name{font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:1.45rem;color:var(--ug-ink);text-decoration:none}
a.ug-fit-name:hover{color:var(--ug-teal)}
.ug-tape{position:relative;height:78px;border-radius:4px;background-color:var(--ug-yellow);
 background-image:linear-gradient(to right,var(--ug-ink) 2px,transparent 2px),linear-gradient(to right,var(--ug-ink) 2px,transparent 2px),linear-gradient(to right,rgba(19,37,39,.85) 1px,transparent 1px);
 background-size:calc(100% / 4.5) 30px,calc(100% / 9) 21px,calc(100% / 45) 12px;background-repeat:repeat-x;background-position:0 0;box-shadow:inset 0 -1px 0 rgba(0,0,0,.08)}
.ug-tape-l{position:absolute;top:27px;left:calc(var(--p) * 1%);transform:translateX(5px);font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:1.25rem;line-height:1;color:var(--ug-ink)}
.ug-tape-mm{position:absolute;top:29px;right:8px;font-weight:600;font-size:.85rem;color:var(--ug-ink)}
.ug-tape-in{position:absolute;bottom:0;left:calc(var(--p) * 1%);display:flex;align-items:flex-end;gap:5px;font-size:.8rem;font-weight:600;line-height:1;color:rgba(19,37,39,.8);padding-bottom:4px}
.ug-tape-in i{position:absolute;left:0;bottom:0;width:2px;height:14px;background:var(--ug-ink)}
.ug-tape-in{padding-left:6px}
.ug-fit-track{position:relative;height:44px;background-color:var(--ug-surface);border-radius:4px;background-image:linear-gradient(to right,var(--ug-line) 1px,transparent 1px);background-size:calc(100% / 4.5) 100%}
.ug-fit-bar{position:absolute;top:7px;bottom:7px;left:calc(var(--a) * 1%);width:calc(var(--w) * 1%);background:var(--ug-teal);border-radius:3px}
.ug-fit-open{background:linear-gradient(to right,rgba(12,116,114,0) 0%,rgba(12,116,114,.28) 25%,var(--ug-teal) 72%);border-radius:0 3px 3px 0}
.ug-fit-val{position:absolute;top:50%;left:calc(var(--a) * 1%);transform:translateY(-50%);padding-left:.6rem;font-weight:600;font-size:.98rem;white-space:nowrap;color:var(--ug-ink)}
.ug-fit-val.ug-in{left:auto;right:calc(100% - var(--a) * 1%);padding:0 .65rem 0 0;color:#fff}
.ug-fit-note{margin-top:var(--wp--preset--spacing--40)!important;max-width:64ch}
@media (max-width:781px){.ug-fit{gap:.35rem}.ug-fit-row{grid-template-columns:minmax(0,1fr);row-gap:.3rem}.ug-fit-scale-row .ug-fit-name{display:none}.ug-fit-row+.ug-fit-row:not(.ug-fit-scale-row){margin-top:.6rem}.ug-fit-name{font-size:1.25rem}.ug-tape{height:72px}.ug-tape-mm{display:none}.ug-tape-l{font-size:1.1rem}.ug-tape-in{font-size:.72rem}}

/* Facts */
.ug-ic{fill:none;stroke:var(--ug-teal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block;margin-bottom:.9rem}
.ug-facts h3{margin:0 0 .4rem}
.ug-facts p{margin:0;color:var(--ug-steel)}

/* CTA */
.ug-cta h2{margin:0 0 .5rem;max-width:20ch}
.ug-cta p{margin:0;opacity:.92}
.ug-cta .wp-block-group.alignwide{row-gap:1.5rem}

/* Footer */
.ug-footer a{text-decoration:none}
.ug-footer a:hover{text-decoration:underline}
.ug-foot-logo{margin:0 0 1rem}
.ug-foot-text{opacity:.85;max-width:34ch;margin:0}
.ug-foot-h{font-family:var(--wp--preset--font-family--body)!important;font-size:1rem!important;font-weight:600!important;color:rgba(255,255,255,.6)!important;margin:0 0 .85rem}
.ug-foot-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.ug-pay{display:flex;flex-wrap:wrap;gap:6px;margin-top:1.1rem}
.ug-pay-b{display:inline-flex;align-items:center;justify-content:center;height:34px;min-width:54px;padding:0 9px;background:#fff;border-radius:6px;box-sizing:border-box}
.ug-pay-b img{display:block}
.ug-foot-small{font-size:.875rem;opacity:.7;margin:.6rem 0 0}
.ug-foot-bottom{border-top:1px solid rgba(255,255,255,.14);padding-top:1.1rem;margin-top:var(--wp--preset--spacing--50)!important;row-gap:.25rem}
.ug-foot-bottom p{margin:0;opacity:.7}
@media (max-width:781px){.ug-foot-cols{gap:2rem!important}}

/* WooCommerce: product page, shop, cart, checkout */
.woocommerce-page .wp-block-post-title,.single-product .wp-block-post-title{font-family:var(--wp--preset--font-family--display)}
.single-product .wc-block-components-product-price,.single-product .wp-block-woocommerce-product-price{font-size:1.5rem}
.woocommerce span.onsale,.wc-block-components-product-sale-badge{background:var(--ug-yellow);color:var(--ug-ink);border:0;border-radius:4px;font-weight:600;font-size:.8rem;padding:.25em .6em;min-height:0;min-width:0;line-height:1.4}
.woocommerce div.product form.cart .button,.single_add_to_cart_button{background:var(--ug-teal)!important;color:#fff!important;border-radius:6px!important;font-weight:600}
.woocommerce div.product form.cart .button:hover{background:var(--wp--preset--color--teal-deep)!important}
.woocommerce .quantity .qty{border:1px solid var(--ug-line);border-radius:6px;height:46px}
.woocommerce-product-details__short-description ul,.wp-block-woocommerce-product-details ul{padding-left:1.2em}
.wp-block-woocommerce-product-details table,.woocommerce-Tabs-panel table{border-collapse:collapse;width:100%}
.wp-block-woocommerce-product-details td,.wp-block-woocommerce-product-details th,.woocommerce-Tabs-panel td,.woocommerce-Tabs-panel th{border-bottom:1px solid var(--ug-line);padding:.6em .4em;text-align:left;vertical-align:top}
.wc-block-components-button:not(.is-link){border-radius:6px}
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{background:var(--ug-teal)!important;color:#fff!important}

/* Contact form 7 */
.wpcf7 label{display:block;font-weight:600;margin-bottom:.9rem}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 textarea{display:block;width:100%;box-sizing:border-box;margin-top:.35rem;padding:.75em .9em;border:1px solid var(--ug-line);border-radius:6px;font:inherit;font-weight:400;background:#fff}
.wpcf7 textarea{min-height:150px}
.wpcf7 input:focus,.wpcf7 textarea:focus{outline:3px solid var(--ug-yellow);outline-offset:1px;border-color:var(--ug-teal)}
.wpcf7 input[type=submit]{background:var(--ug-teal);color:#fff;border:0;border-radius:6px;padding:.85em 1.6em;font:inherit;font-weight:600;cursor:pointer}
.wpcf7 input[type=submit]:hover{background:var(--wp--preset--color--teal-deep)}
.wpcf7 .wpcf7-list-item{margin:0}
.wpcf7 .wpcf7-acceptance label{font-weight:400;display:flex;gap:.5rem;align-items:flex-start}

/* Content pages */
.ug-main .wp-block-post-content h2{font-size:1.9rem;margin-top:2.2rem}
.ug-main .wp-block-post-content h3{margin-top:1.6rem}

/* Product page */
.ug-product .woocommerce-breadcrumb,.ug-shop .woocommerce-breadcrumb{color:var(--ug-steel);margin:0}
.ug-product .woocommerce-breadcrumb a,.ug-shop .woocommerce-breadcrumb a{color:var(--ug-steel)}
.woocommerce-product-gallery{opacity:1!important}
.ug-product-title{font-size:clamp(2.75rem,5vw,4rem)!important;line-height:.95;margin:0}
.ug-product-price{margin-top:.6rem!important}
.ug-product-price .price,.ug-product-price .wc-block-components-product-price{font-size:1.6rem!important;font-weight:600}
.ug-short{margin-top:1.1rem!important;color:var(--ug-ink)}
.ug-short p{margin:0 0 .75rem}
.ug-short ul{margin:0;padding:0;list-style:none;display:grid;gap:.45rem}
.ug-short li{position:relative;padding-left:1.4rem}
.ug-short li::before{content:"";position:absolute;left:0;top:.6em;width:.55rem;height:.55rem;border-radius:50%;background:var(--ug-teal)}
.ug-atc{margin-top:1.5rem!important}
.ug-atc form.cart{display:flex;gap:.75rem;align-items:stretch;flex-wrap:wrap;margin:0}
.ug-atc form.cart::before,.ug-atc form.cart::after{content:none!important}
.ug-atc .quantity .qty{width:4.5rem;height:100%;min-height:50px;text-align:center;font:inherit}
.ug-atc .single_add_to_cart_button{flex:1 1 auto;min-height:50px;font-size:1.05rem!important;padding:.8em 1.6em!important}
.ug-atc .stock.out-of-stock{color:var(--ug-steel);font-weight:600}
.ug-assure{list-style:none;margin:1.6rem 0 0!important;padding:1.1rem 0 0;border-top:1px solid var(--ug-line);display:grid;gap:.6rem;font-size:.97rem;color:var(--ug-steel)}
.ug-assure li{display:flex;align-items:center;gap:.6rem}
.ug-assure svg{flex:none;fill:none;stroke:var(--ug-teal);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ug-product-details h2{margin-bottom:.75rem}
.ug-product-details h3{margin-top:1.75rem}
.ug-product-details table{border-collapse:collapse;width:100%;margin:1rem 0}
.ug-product-details td,.ug-product-details th{border-bottom:1px solid var(--ug-line);padding:.65em .5em;text-align:left;vertical-align:top}
.ug-product-details tr td:first-child,.ug-product-details th{font-weight:600;width:45%}
.ug-related h2{font-size:var(--wp--preset--font-size--x-large)}

/* Shop */
.ug-shop-title{line-height:.95}
.ug-shop-intro{max-width:60ch;margin-top:.75rem!important}
.ug-shop-bar{margin-top:var(--wp--preset--spacing--40)!important;margin-bottom:1.25rem!important;align-items:center;color:var(--ug-steel);font-size:.95rem}
.ug-shop-bar p,.ug-shop-bar form{margin:0}
.woocommerce-ordering select,.wc-block-catalog-sorting select{font:inherit;font-size:.95rem;padding:.5em 2.2em .5em .8em;border:1px solid var(--ug-line);border-radius:6px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23132527' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .8em center;-webkit-appearance:none;appearance:none;color:var(--ug-ink)}

.ug-product-top .woocommerce-product-gallery,.ug-product-top .wp-block-woocommerce-product-image-gallery .images{width:100%!important;float:none!important;margin:0!important}
.ug-product-top .woocommerce-product-gallery .flex-viewport,.ug-product-top .woocommerce-product-gallery__wrapper{border:1px solid var(--ug-line);border-radius:8px;overflow:hidden;background:#fff}
.ug-product-top .flex-viewport .woocommerce-product-gallery__wrapper{border:0;border-radius:0}
.ug-product-top .flex-control-thumbs{display:flex;gap:.6rem;margin:.75rem 0 0!important;padding:0;list-style:none}
.ug-product-top .flex-control-thumbs li{width:76px!important;float:none!important;margin:0!important}
.ug-product-top .flex-control-thumbs img{border:1px solid var(--ug-line);border-radius:6px;opacity:.7;cursor:pointer}
.ug-product-top .flex-control-thumbs img.flex-active,.ug-product-top .flex-control-thumbs img:hover{opacity:1;border-color:var(--ug-teal)}
.ug-product-top .woocommerce-product-gallery__trigger{top:.75rem!important;right:.75rem!important}
.wp-block-woocommerce-product-collection.ug-related>h2.wp-block-heading{font-size:var(--wp--preset--font-size--x-large)!important;font-family:var(--wp--preset--font-family--display)!important}
.ug-related{margin-top:var(--wp--preset--spacing--60)!important}
