/* ==========================================================================
   WordPress & WooCommerce markup on top of the NordVolt design system
   ========================================================================== */

.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.admin-bar .header{top:32px}
@media(max-width:782px){.admin-bar .header{top:46px}}
@media(max-width:600px){.admin-bar .header{top:0}}
main:focus{outline:none}

/* Content from the block editor -------------------------------------------- */
.prose a,.news-article a:not(.button):not(.button-link){text-decoration:underline;text-underline-offset:4px}
.prose ul,.prose ol{color:var(--muted)}
.about-company-text .about-statement{font-size:clamp(1.6rem,2.9vw,2.6rem);line-height:1.4;letter-spacing:-.03em;margin-bottom:32px}
.service-offer-detail>p{font-size:1.0625rem;line-height:1.85;margin-bottom:24px}
.news-article>p:not(.news-published){font-size:1rem;line-height:1.8}
.news-gallery img{max-width:100%;height:240px;object-fit:contain;margin:auto}

/* Pagination --------------------------------------------------------------- */
.pagination,.woocommerce-pagination{margin-top:32px}
.pagination .nav-links,.woocommerce-pagination ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.woocommerce nav.woocommerce-pagination ul,.woocommerce nav.woocommerce-pagination ul li{border:0}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:4px;font-weight:700;font-size:.9rem}
.page-numbers.current{background:var(--navy);border-color:var(--navy);color:#fff}
a.page-numbers:hover{background:var(--soft)}
.woocommerce nav.woocommerce-pagination ul li .page-numbers{padding:0 12px;min-width:44px;line-height:44px}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--navy);color:#fff}

/* Prices ------------------------------------------------------------------- */
.price-unit{font-size:.8rem;font-weight:600;color:var(--muted);white-space:nowrap}
.product-price .price-unit{font-size:.8rem}
.quick-product strong .price-unit{display:block;font-size:.73rem;margin-top:2px}
.woocommerce-Price-amount{white-space:nowrap}

/* Home quick search + quick add -------------------------------------------- */
.shop-quick form{margin:0}
.quick-product .icon{width:40px;height:40px;color:#23415e;stroke-width:1.2}
.quick-add{display:flex;align-items:center;justify-content:center;align-self:flex-end;margin-top:auto;width:32px;height:32px;border-radius:4px;background:var(--yellow);font-weight:800;font-size:1.1rem;line-height:1}
.quick-add:hover{background:var(--yellow-hover)}
.quick-add.loading{opacity:.5}
.quick-product .added_to_cart{display:none}
.home-search label{display:block}

/* Product cards ------------------------------------------------------------ */
.product-grid{margin:0 0 8px}
.product-card .product-art img{width:100%;height:100%;object-fit:contain}
.product-card .product-art .icon{color:#23415e}
.woocommerce .product-detail .button,.product-detail .button{margin-top:auto;width:100%}
.product-detail .button.loading{opacity:.6}
.product-detail .button.added:after{content:" ✓"}
.product-detail .added_to_cart{font-size:.85rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;align-self:center}

/* Single product ------------------------------------------------------------ */
.product-specs{margin:18px 0 6px;border-top:1px solid var(--line)}
.product-specs .data-row{grid-template-columns:200px 1fr;padding:10px 0}
.product-large{display:grid;grid-template-columns:1fr;gap:28px;max-width:760px}
.product-large .product-art{height:340px;border:1px solid var(--line);padding:20px}
.product-large .product-art img{width:100%;height:100%;object-fit:contain}
.product-large .product-art .icon{width:110px;height:110px}
.product-summary h2{font-size:clamp(1.6rem,2.4vw,2.2rem);margin-bottom:14px;overflow-wrap:anywhere}
.product-summary .product-price{font-size:1.6rem;margin:0 0 6px}
.product-summary form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin:20px 0 12px}
.product-summary .quantity input.qty{width:96px;min-height:54px;border:1px solid #bfc8d2;border-radius:4px;padding:10px;font-size:1rem;text-align:center}
.product-summary form.cart .button{flex:1;min-width:200px}
.product-description{margin-top:24px;color:var(--muted)}

/* WooCommerce buttons → design buttons ------------------------------------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,
.woocommerce-page a.button,.woocommerce-page button.button{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--yellow);color:var(--navy);
  border:1px solid transparent;border-radius:var(--radius);padding:16px 22px;min-height:50px;font-weight:800;font-size:.9rem;line-height:1.3;text-shadow:none}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:var(--yellow-hover);color:var(--navy)}
.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{padding:16px 22px;opacity:.5}
.woocommerce .button-small,.woocommerce a.button.button-small{padding:12px 15px;min-height:44px;font-size:.84rem}
.woocommerce a.button.button-outline,.woocommerce button.button.button-outline{background:transparent;border-color:var(--line);color:var(--ink)}

/* Notices ------------------------------------------------------------------ */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notices-wrapper>*,.quote-sent,.quote-error{
  list-style:none;background:var(--soft);border:0;border-left:3px solid var(--yellow);padding:16px 20px;margin:0 0 22px;font-size:.92rem;color:var(--ink);line-height:1.6}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-error,.quote-error{border-left-color:#b12e2e;background:#fbf0f0}
.quote-sent{border-left-color:#2c8a4b;background:#eef8f1;font-weight:700}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:16px;min-height:0;padding:8px 14px}
.woocommerce-store-notice,p.demo_store{background:var(--navy)}

/* Forms (cart, checkout, account) ------------------------------------------ */
.wc-page{max-width:1100px}
.woocommerce form .form-row{padding:0;margin:0 0 16px}
.woocommerce form .form-row label{font-size:.85rem;font-weight:700;margin-bottom:6px;display:block}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection{border:1px solid #bfc8d2;border-radius:4px;padding:12px;min-height:48px;font-size:1rem;background:#fff;color:var(--ink)}
.woocommerce form .form-row .select2-container .select2-selection{padding:8px 6px}
.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow{top:10px}
.woocommerce form .form-row textarea{min-height:110px}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:#b12e2e}
.woocommerce form .form-row .required{color:#b12e2e;text-decoration:none}
.buyer-options{background:var(--soft);padding:16px 18px!important}
.buyer-options .woocommerce-input-wrapper{display:flex;gap:24px;flex-wrap:wrap}
.buyer-options input[type=radio]{margin-right:8px}
.buyer-options label.radio{display:inline!important;font-weight:600;cursor:pointer}
.nv-company-field[hidden]{display:none!important}

/* Cart */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:0;border-collapse:collapse}
.woocommerce table.shop_table th{background:var(--soft);font-size:.8rem;color:var(--muted);font-weight:700;padding:14px 12px}
.woocommerce table.shop_table td{padding:16px 12px;border-top:1px solid var(--line)}
.woocommerce table.shop_table td.product-name a{font-weight:700}
.woocommerce table.cart img{width:64px;height:64px;object-fit:contain}
.woocommerce table.cart td.actions .coupon .input-text{min-height:48px;border:1px solid #bfc8d2;border-radius:4px;padding:10px;width:180px}
.woocommerce .quantity .qty{width:80px;min-height:44px;border:1px solid #bfc8d2;border-radius:4px;padding:8px}
.woocommerce a.remove{color:#875154!important;font-size:1.4rem}
.woocommerce a.remove:hover{background:#f5e6e6;color:#875154!important}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout-review-order{background:var(--soft);padding:26px}
.woocommerce .cart-collaterals .cart_totals h2,#order_review_heading,.woocommerce-billing-fields h3,.woocommerce-additional-fields h3{font-size:1.4rem;margin:0 0 18px}
.woocommerce .cart-collaterals .cart_totals table{background:#fff}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%;font-size:1rem}
.cart-empty.woocommerce-info{font-size:1.1rem}
.return-to-shop .button{margin-top:10px}

/* Checkout */
.woocommerce-checkout .col2-set{margin-bottom:28px}
#customer_details .col-1,#customer_details .col-2{float:none;width:100%}
@media(min-width:900px){
  form.checkout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:40px;align-items:start}
  form.checkout>.woocommerce-NoticeGroup,form.checkout>.woocommerce-notices-wrapper{grid-column:1/-1}
  form.checkout #customer_details{grid-column:1;grid-row:span 3}
  form.checkout #order_review_heading,form.checkout #order_review{grid-column:2}
}
.woocommerce-checkout #payment{background:#fff;border-radius:0;border:1px solid var(--line)}
.woocommerce-checkout #payment div.payment_box{background:var(--soft);color:var(--muted)}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--soft)}
.woocommerce-checkout #payment #place_order{width:100%;font-size:1rem}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;border-top:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:12px 6px;border-bottom:1px solid var(--line);font-weight:600}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{color:#805c00;font-weight:800}

@media(max-width:760px){
  .product-large .product-art{height:240px}
  .woocommerce-message .button,.woocommerce-info .button{float:none;display:flex;margin:12px 0 0}
}

/* Long product names: smaller page heading on product pages */
.single-product .page-head h1{font-size:clamp(1.8rem,3vw,2.6rem);overflow-wrap:anywhere}

/* Header logo: full height of the header row (100 / 88 / 78 px by breakpoint),
   shrinking proportionally only when the row runs out of space. */
:root{--nv-header-h:100px}
@media(max-width:1100px){:root{--nv-header-h:88px}}
@media(max-width:600px){:root{--nv-header-h:78px}}
.header .brand{align-self:stretch;display:flex;align-items:center;flex:0 1 auto;min-width:0}
.header .brand img,.header .brand .custom-logo{width:auto;height:auto;max-height:var(--nv-header-h);max-width:100%}

/* Social icons as links: keep them centered in their boxes (the footer's
   generic link rule would make them block-level) and keep brand colours. */
.social-links a.social-icon,.footer-top .social-links a.social-icon{display:inline-flex;align-items:center;justify-content:center;margin:0;line-height:1;font-size:inherit;transition:background .18s}
.social-links a.social-icon:hover{background:var(--soft)}
.social-links a.social-instagram:hover{color:#b32d78}
.social-links a.social-facebook:hover{color:#1877f2}
.social-links a.social-linkedin:hover{color:#0a66c2}

/* Cookie consent banner */
.consent-banner{position:fixed;left:0;right:0;bottom:0;z-index:90;background:var(--navy);color:#fff;box-shadow:0 -8px 30px #0000002e;padding:18px 0 calc(18px + env(safe-area-inset-bottom,0px))}
.consent-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.consent-banner p{margin:0;font-size:.9rem;line-height:1.6;color:#d9e0ea;max-width:820px}
.consent-banner a{color:#fff;text-decoration:underline;text-underline-offset:3px;margin-left:4px}
.consent-actions{display:flex;gap:10px;flex-shrink:0}
.consent-actions .button{min-width:120px}
.consent-actions .consent-reject{background:transparent;color:#fff;border-color:#6b7a90}
.consent-actions .consent-reject:hover{background:#26354a;color:#fff}
.footer-consent{border:0;background:none;padding:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:700px){.consent-inner{flex-direction:column;align-items:stretch;gap:14px}.consent-actions .button{flex:1}}

/* Product search in the sticky header ------------------------------------- */
.header-search{background:#eef1f5;border-top:1px solid var(--line)}
.header-search form{display:flex;gap:8px;padding-top:8px;padding-bottom:8px}
.header-search input[type=search]{flex:1;min-width:0;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:.95rem}
.header-search input[type=search]:focus{outline:2px solid var(--navy);outline-offset:-1px;border-color:var(--navy)}
.header-search button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 18px;border:0;border-radius:4px;background:var(--yellow);color:var(--navy);font-weight:800;cursor:pointer}
.header-search button:hover{background:var(--yellow-hover)}
.header-search .icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
@media(max-width:600px){.header-search form{padding-top:6px;padding-bottom:6px}.header-search button{padding:0 12px}.header-search button span{display:none}}
/* Quick products under the header: 3 on desktop, 2 on mobile. */
.shop-quick-inner{grid-template-columns:repeat(3,minmax(0,1fr))}
.shop-quick-inner .quick-product:first-child{border-left:0;padding-left:0}
@media(max-width:760px){.shop-quick-inner{grid-template-columns:1fr 1fr}.shop-quick-inner .quick-product:nth-child(n+3){display:none}}
@media(max-width:460px){.shop-quick-inner .quick-product{border-top:0;padding-top:0}.shop-quick-inner .quick-product+.quick-product{border-left:1px solid #cbd2da;padding-left:9px}}
/* Home "Products with prices": 2 rows of 3, or 4 products where the grid has 2 columns (or 1). */
@media(max-width:1050px){.shop-featured .product-grid>:nth-child(n+5){display:none}}
/* Price on request: no price, inactive add-to-cart */
.price-on-request{display:inline-block;font-size:1.15rem;line-height:1.3;font-weight:700;color:var(--navy)}
.product-card-price .price-on-request,.quick-product .price-on-request{font-size:.95rem}
.button.is-disabled,.button.is-disabled:disabled,.woocommerce .button.alt.is-disabled:disabled,.woocommerce button.button.alt.is-disabled:disabled[disabled],
.quick-add.is-disabled,.button.is-disabled:hover,.quick-add.is-disabled:hover{background:#e4e8ed;color:#6b7684;border-color:#e4e8ed;opacity:1;cursor:not-allowed;box-shadow:none}
