/* 0.5 · persistent navigation and compact commerce. */
:root{--nd-header-height:180px;--nd-admin-offset:0px}
html{scroll-padding-top:calc(var(--nd-header-height) + var(--nd-admin-offset) + 16px)}
body.admin-bar{--nd-admin-offset:32px}
.wp-site-blocks>header{position:sticky;top:var(--nd-admin-offset);z-index:100;isolation:isolate;box-shadow:0 5px 20px #0f17221a}
.nd-header-row{padding:18px 0}
.nd-header .nd-logo img{width:200px!important}
.nd-topline-row{padding-block:7px!important}
.nd-sports{padding-block:9px}
.nd-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper{z-index:110}
@media(min-width:601px) and (max-width:782px){body.admin-bar{--nd-admin-offset:46px}}
@media(max-width:600px){body.admin-bar{--nd-admin-offset:0px}}
@media(max-width:1050px){
 .nd-header-row{padding:14px 0}
 .nd-header .nd-logo img{width:180px!important}
 .nd-navigation .wp-block-navigation__responsive-container-open{border:1px solid #d4af3755;border-radius:8px;padding:7px;background:#d4af3712;color:#e3c45c}
 .nd-navigation .wp-block-navigation__responsive-container.is-menu-open{inset:var(--nd-admin-offset) 0 0!important;max-height:calc(100dvh - var(--nd-admin-offset));padding:24px!important;background:linear-gradient(155deg,#101822 0%,#1e2a38 68%,#263648 100%)!important;color:#fff!important;border-top:4px solid var(--nd-gold);overflow:auto}
 .nd-navigation .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:35px;align-items:stretch;max-width:620px;margin-inline:auto;gap:0}
 .nd-navigation .is-menu-open .wp-block-navigation__responsive-container-content::before{content:'LA COMUNIDAD DEPORTIVA DEL NORTE';display:block;order:-2;background:url('images/logo-oscuro.svg') left top/176px auto no-repeat;padding-top:66px;margin-bottom:26px;color:#d9bb57;font-size:9px;letter-spacing:.11em;line-height:1.7}
 .nd-navigation .is-menu-open .wp-block-navigation__responsive-container-content::after{content:'Sé tu mejor versión.';display:block;width:100%;margin-top:28px;padding-top:20px;border-top:1px solid #d4af3740;font-size:12px;color:#d9bb57;letter-spacing:.03em}
 .nd-navigation .is-menu-open .wp-block-navigation__container{gap:8px!important}
 .nd-navigation .is-menu-open .wp-block-navigation-item{border:0!important;font-size:17px;min-width:0}
 .nd-navigation .is-menu-open .wp-block-navigation-item__content{padding:14px 16px!important;background:#ffffff08;border:1px solid #ffffff15;border-left:3px solid #d4af3766;border-radius:9px;color:#fff;line-height:1.5;text-decoration:none}
 .nd-navigation .is-menu-open .wp-block-navigation-item__content:hover,.nd-navigation .is-menu-open .current-menu-item>.wp-block-navigation-item__content{background:#d4af3720;border-color:#d4af3780;color:#f0d577}
 .nd-navigation .is-menu-open .nd-mobile-account{background:#f7f0da!important;color:#172230;padding:17px 18px!important;border:1px solid #dfca7d;border-radius:10px;margin-bottom:22px;box-shadow:0 5px 18px #0002}
 .nd-navigation .is-menu-open .nd-mobile-account>a{color:#172230;gap:12px}
 .nd-navigation .is-menu-open .nd-mobile-account .nd-guest{background:#d4af3733;color:#172230}
 .nd-navigation .is-menu-open .nd-mobile-account strong{max-width:none;white-space:normal;overflow-wrap:anywhere}
 .nd-navigation .is-menu-open .wp-block-navigation__responsive-container-close{width:42px;height:42px;display:grid;place-items:center;background:#ffffff0d;color:#f0d577;border:1px solid #d4af3766;border-radius:50%;padding:8px;top:0;right:0}
 .nd-sports{padding-block:10px}
}
@media(max-width:640px){
 .nd-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper{top:calc(var(--nd-header-height) + var(--nd-admin-offset) + 6px);left:12px;right:12px;max-width:calc(100vw - 24px)}
 .nd-topline-row p{font-size:8px!important;line-height:1.4}
 .nd-header-row{gap:8px;padding:12px 0}
 .nd-header .nd-logo img{width:166px!important}
 .nd-sports .nd-club-link{padding-top:8px}
 .nd-sports .wp-block-navigation__container{gap:6px!important}
}
@media(max-width:359px){.nd-header .nd-logo img{width:140px!important}.nd-header-row{gap:5px}.nd-navigation .wp-block-navigation__responsive-container-open{padding:5px}.nd-navigation .wp-block-navigation__responsive-container.is-menu-open{padding:20px!important}}
/* Keep two readable cards across the phone catalog, including home and related products. */
@media(max-width:600px){
 .woocommerce ul.products,.nd-product-cards ul.products,.nd-commerce-shell ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .woocommerce ul.products li.product,.nd-product-cards ul.products li.product,.nd-commerce-shell ul.products li.product{padding:0 10px 12px;border-radius:8px;min-width:0}
 .woocommerce ul.products li.product a img,.nd-product-cards ul.products li.product a img{width:calc(100% + 20px);margin:0 0 11px -10px;aspect-ratio:1/1;object-fit:contain;padding:10px}
 .woocommerce ul.products li.product .woocommerce-loop-product__title,.nd-product-cards ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.4;padding:0 0 8px;overflow-wrap:anywhere}
 .woocommerce ul.products li.product .price,.nd-product-cards ul.products li.product .price{font-size:15px;line-height:1.5;margin-bottom:7px;overflow-wrap:anywhere}
 .woocommerce ul.products li.product .price del{font-size:11px}
 .woocommerce ul.products li.product .nd-sold-by{font-size:9px;line-height:1.5;overflow-wrap:anywhere}
 .woocommerce ul.products li.product .button,.nd-product-cards ul.products li.product .button{font-size:10px;padding:10px 5px;line-height:1.45;margin-top:auto;min-height:40px;display:grid;place-items:center;white-space:normal;overflow-wrap:anywhere}
 .woocommerce ul.products li.product .added_to_cart{font-size:10px;overflow-wrap:anywhere}
 .woocommerce ul.products li.product .onsale{font-size:9px;min-height:25px;min-width:0;line-height:25px;padding:0 7px;margin:5px}
}
/* Smaller mini-cart rows without changing WooCommerce quantities or stock limits. */
.nd-cart-dialog{width:400px;padding:20px}
.nd-cart-dialog-head{padding-bottom:14px;margin-bottom:10px}
.nd-cart-dialog-head h2{font-size:25px;margin-top:5px}
.nd-close-cart{width:36px;height:36px;font-size:24px}
.nd-cart-dialog .widget_shopping_cart_content ul.woocommerce-mini-cart li{padding:12px 25px 12px 0;min-height:0;line-height:1.5;font-size:12px;display:flow-root}
.nd-cart-dialog .widget_shopping_cart_content ul.woocommerce-mini-cart li img{width:52px!important;height:52px!important;margin:0 12px 4px 0!important}
.nd-cart-dialog .variation{padding-left:64px;font-size:10px;margin:4px 0;overflow-wrap:anywhere}
.nd-cart-dialog .woocommerce-mini-cart-item>a:not(.remove){font-size:12px;overflow-wrap:anywhere}
.nd-cart-dialog .woocommerce-mini-cart-item .remove{top:9px;font-size:20px;line-height:28px;height:28px}
.nd-cart-dialog .nd-mini-line{clear:both;margin-left:64px;padding-top:7px;gap:8px;flex-wrap:wrap}
.nd-cart-dialog .nd-mini-quantity{height:34px;flex-shrink:0}
.nd-cart-dialog .nd-mini-quantity button{width:30px;font-size:17px}
.nd-cart-dialog .nd-mini-quantity input{width:36px;font-size:12px}
.nd-cart-dialog .nd-mini-unit{font-size:10px;line-height:1.5}
.nd-cart-dialog .woocommerce-mini-cart__total{font-size:14px;padding:15px 0;margin-block:10px 14px}
.nd-cart-dialog .woocommerce-mini-cart__buttons{gap:8px}
.nd-cart-dialog .button{padding:11px;font-size:11px}
.nd-cart-fallback{padding:12px 0;font-size:10px}
@media(max-width:480px){
 .nd-cart-dialog{width:min(400px,100vw);padding:18px 16px}
 .nd-cart-dialog .widget_shopping_cart_content ul.woocommerce-mini-cart li img{width:46px!important;height:46px!important;margin-right:10px!important}
 .nd-cart-dialog .variation{padding-left:56px;font-size:9px}
 .nd-cart-dialog .nd-mini-line{margin-left:56px}
 .nd-cart-dialog .nd-mini-quantity{height:36px}
 .nd-cart-dialog .nd-mini-quantity button{width:32px}
 .nd-cart-dialog .nd-mini-quantity input{width:34px}
}
/* Shipping descriptions need a full line, rather than the narrow price column. */
.woocommerce-checkout #order_review .woocommerce-shipping-totals th,.woocommerce-checkout #order_review .woocommerce-shipping-totals td{display:block;width:100%!important;text-align:left;overflow-wrap:anywhere}
.woocommerce-checkout #order_review .woocommerce-shipping-totals th{padding:14px 16px 9px;background:#e9edf2;color:#1e2a38;font-size:12px}
.woocommerce-checkout #order_review .woocommerce-shipping-totals td{padding:14px 16px;background:#fff}
.woocommerce-checkout #order_review .woocommerce-shipping-totals ul{padding:0;margin:0;list-style:none}
.woocommerce-checkout #order_review .woocommerce-shipping-totals label{font-size:12px;line-height:1.6;white-space:normal;display:inline}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.nd-cart-dialog .widget_shopping_cart_content li .variation{display:flex;flex-wrap:wrap;gap:0 4px;clear:none;margin:4px 0 0 64px!important;padding:0!important;border:0;line-height:1.5;font-size:10px}
.nd-cart-dialog .widget_shopping_cart_content li .variation dt,.nd-cart-dialog .widget_shopping_cart_content li .variation dd{float:none!important;margin:0!important;padding:0!important;font-size:inherit;line-height:inherit}
.nd-cart-dialog .widget_shopping_cart_content li .variation p{font-size:inherit;line-height:inherit;margin:0}
@media(max-width:480px){.nd-cart-dialog .widget_shopping_cart_content li .variation{margin-left:56px!important;font-size:9px}}
.nd-header-row{margin-block-start:0!important}
.nd-sports ul.nd-sports{padding:0;margin:0!important}
.nd-navigation .is-menu-open .wp-block-navigation__responsive-container-content::after{order:2}
.woocommerce-checkout #order_review table.shop_table{display:block;width:100%;overflow:hidden}
.woocommerce-checkout #order_review table.shop_table>thead,.woocommerce-checkout #order_review table.shop_table>tbody,.woocommerce-checkout #order_review table.shop_table>tfoot{display:block;width:100%}
.woocommerce-checkout #order_review table.shop_table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,35%);width:100%}
.woocommerce-checkout #order_review table.shop_table th,.woocommerce-checkout #order_review table.shop_table td{display:block;width:auto!important;min-width:0;overflow-wrap:anywhere}
.woocommerce-checkout #order_review table.shop_table .woocommerce-shipping-totals{display:block}
.woocommerce-checkout #order_review table.shop_table .woocommerce-shipping-totals th,.woocommerce-checkout #order_review table.shop_table .woocommerce-shipping-totals td{width:100%!important}
@media(max-width:600px){
 .nd-commerce-shell main.site-main{padding-inline:0}
 .woocommerce ul.products[class] li.product,.nd-product-cards ul.products li.product{padding:0 10px 12px!important}
 .woocommerce ul.products li.product .price .amount{white-space:nowrap;font-size:14px}
}
@media(max-width:600px){.nd-commerce-shell .content-area main.site-main{padding-left:0!important;padding-right:0!important}.nd-cart-dialog .nd-mini-quantity input{font-size:16px}}
/* 0.5.2 · Compact, contained totals. Cells wrap together rather than expanding the panel. */
.woocommerce-checkout #order_review table.shop_table .cart-subtotal,
.woocommerce-checkout #order_review table.shop_table .order-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%;max-width:100%;gap:0}
.woocommerce-checkout #order_review table.shop_table .cart-subtotal th,
.woocommerce-checkout #order_review table.shop_table .order-total th{flex:1 1 auto;padding:12px!important;font-size:12px;background:transparent}
.woocommerce-checkout #order_review table.shop_table .cart-subtotal td,
.woocommerce-checkout #order_review table.shop_table .order-total td{flex:0 1 auto;max-width:100%;padding:12px!important;margin-left:auto;text-align:right;background:transparent}
.woocommerce-checkout #order_review table.shop_table .order-total{background:#f8f6ee;border-top:2px solid #d4af37;color:#1e2a38}
.woocommerce-checkout #order_review table.shop_table .cart-subtotal .amount,
.woocommerce-checkout #order_review table.shop_table .order-total .amount{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.woocommerce-checkout #order_review table.shop_table .order-total .amount{font-size:16px;font-weight:700;line-height:1.5}
.woocommerce-checkout #order_review table.shop_table .order-total .includes_tax{display:block;white-space:normal;font-size:10px;line-height:1.5;max-width:200px}
/* Keep guest account forms comfortably sized without narrowing the signed-in dashboard. */
.woocommerce-account:not(.logged-in) .woocommerce:has(form.woocommerce-form-login),
.woocommerce-account .woocommerce:has(form.lost_reset_password){max-width:480px!important;margin-inline:auto!important;width:100%}
.woocommerce-account:not(.logged-in) #customer_login>.u-column1,
.woocommerce-account:not(.logged-in) #customer_login>.u-column2{float:none;width:100%;min-width:0}
.woocommerce-account:not(.logged-in) .woocommerce:has(#customer_login){max-width:480px!important}
.woocommerce-account:not(.logged-in) #customer_login{display:block;width:100%;margin:0}
.woocommerce-account:not(.logged-in) #customer_login::before,
.woocommerce-account:not(.logged-in) #customer_login::after{display:none}
.woocommerce-account:not(.logged-in) #customer_login>.u-column2{margin-top:32px}
