/* WooCommerce integration for the OffGrid v3 engineering-gallery system. */
.woocommerce .woocommerce-breadcrumb{margin:26px 0 18px;color:var(--offgrid-muted);font-family:var(--offgrid-mono);font-size:.62rem;letter-spacing:.04em;text-transform:uppercase}
.offgrid-woo-main{padding:58px 0 86px}
.woocommerce-products-header{max-width:760px;margin:0 auto 42px;text-align:center}
.woocommerce-products-header__title.page-title{font-size:clamp(2.3rem,5vw,4rem);font-weight:500;letter-spacing:-.055em}
.woocommerce .woocommerce-ordering select{min-height:42px;border:1px solid var(--offgrid-line);border-radius:4px;background:#fff;padding:.5rem .7rem}
.woocommerce .woocommerce-result-count{color:var(--offgrid-muted);font-size:.8rem}

.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:30px 0;border:1px solid #dfdbcf;background:#dfdbcf}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;overflow:hidden;border:0;border-radius:0;background:#fff;box-shadow:none;transition:background .2s ease}
.woocommerce ul.products li.product:hover{background:#fff}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1.25/1;object-fit:contain;margin:0;padding:28px;background:#fbfbf7;border-bottom:1px solid #ece9e0;filter:drop-shadow(0 16px 14px rgba(27,46,31,.07))}
.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:76px;padding:22px 22px 7px;color:var(--offgrid-ink);font-size:1.04rem;font-weight:500;letter-spacing:-.025em}
.woocommerce ul.products li.product .price{display:block;padding:0 22px;color:var(--offgrid-green-dark);font-size:1.12rem;font-weight:600}
.woocommerce ul.products li.product .button{margin:17px 22px 23px;padding:.66rem .85rem;border-radius:4px;background:var(--offgrid-green-dark);color:#fff;font-size:.76rem;font-weight:600}
.woocommerce ul.products li.product .button:hover{background:var(--offgrid-green)}
.woocommerce span.onsale{min-width:0;min-height:0;left:14px;top:14px;padding:.32rem .55rem;border-radius:3px;background:var(--offgrid-amber);color:#172015;font-family:var(--offgrid-mono);font-size:.58rem;line-height:1.2;letter-spacing:.05em;text-transform:uppercase}

.woocommerce div.product{padding-top:24px}
.woocommerce div.product div.images img{border:1px solid var(--offgrid-line);border-radius:6px;background:#fbfbf7}
.woocommerce div.product .product_title{font-size:clamp(2.1rem,4.5vw,3.5rem);font-weight:500;letter-spacing:-.055em;line-height:1.04}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--offgrid-green-dark);font-size:1.45rem;font-weight:600}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--offgrid-muted);line-height:1.7}
.woocommerce div.product form.cart{display:flex;gap:8px;align-items:center;margin:24px 0}
.woocommerce .quantity .qty{min-height:44px;border:1px solid var(--offgrid-line);border-radius:4px}
.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce input.button.alt,.woocommerce #respond input#submit.alt{min-height:44px;border-radius:4px;background:var(--offgrid-green-dark);color:#fff;font-weight:600}
.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover,.woocommerce input.button.alt:hover{background:var(--offgrid-green)}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;border-bottom:1px solid var(--offgrid-line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0 6px 0 0;border:1px solid var(--offgrid-line);border-radius:4px 4px 0 0;background:#f6f7f4}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#fff;border-bottom-color:#fff}
.woocommerce div.product .woocommerce-tabs .panel{padding:26px 0}
.woocommerce table.shop_attributes{border-top:1px solid var(--offgrid-line)}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{padding:.78rem .85rem;border-bottom:1px solid var(--offgrid-line);font-size:.84rem}
.woocommerce table.shop_attributes th{font-family:var(--offgrid-mono);font-size:.64rem;letter-spacing:.04em;text-transform:uppercase}

.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:4px;border-top-width:2px;border-top-color:var(--offgrid-green);background:#f7faf7;box-shadow:none}
.woocommerce-message::before,.woocommerce-info::before{color:var(--offgrid-green)}
.woocommerce table.shop_table{border:1px solid var(--offgrid-line);border-radius:4px;overflow:hidden;background:#fff}
.woocommerce table.shop_table th{font-family:var(--offgrid-mono);font-size:.66rem;letter-spacing:.04em;text-transform:uppercase}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.select2-container--default .select2-selection--single{min-height:46px;padding:.7rem .9rem;border:1px solid var(--offgrid-line);border-radius:4px;background:#fff}
.woocommerce-checkout #payment{border-radius:4px;background:#f5f7f4}
.woocommerce-checkout-review-order-table,.woocommerce-cart-form{background:#fff}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;border:1px solid var(--offgrid-line);border-radius:4px;overflow:hidden;background:#fff}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:.82rem 1rem;border-bottom:1px solid var(--offgrid-line);text-decoration:none;font-size:.86rem}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--offgrid-green-dark);color:#fff}

.offgrid-native-cart-link{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:.52rem .7rem;border:1px solid var(--offgrid-line);border-radius:4px;background:#fff;color:var(--offgrid-ink);text-decoration:none;font-size:.75rem;font-weight:600}
.offgrid-native-cart-link:hover{border-color:var(--offgrid-green);color:var(--offgrid-green-dark)}
.offgrid-product-card .add_to_cart_button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:.38rem .54rem;border:1px solid var(--offgrid-green-dark);border-radius:4px;background:var(--offgrid-green-dark);color:#fff;text-decoration:none;font-size:.66rem;font-weight:600}
.offgrid-product-card .add_to_cart_button:hover{background:var(--offgrid-green);border-color:var(--offgrid-green)}
.offgrid-product-card .added_to_cart{display:inline-flex;align-items:center;padding:.38rem .2rem;color:var(--offgrid-green-dark);font-size:.66rem;font-weight:600}

@media(max-width:900px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.woocommerce ul.products{grid-template-columns:1fr}.woocommerce div.product form.cart{align-items:stretch;flex-direction:column}.woocommerce .quantity .qty{width:100%}}
