/* iMortor Volt 2.0 — WooCommerce and widget integration.
   Uses WooCommerce's current templates and checkout blocks; no template overrides.
*/
:where(.woocommerce-shell, .commerce-system-page, .imortor-commerce-page) { --wc-accent: var(--accent); }
.store-layout,.page-layout{min-width:0;display:block}
.store-layout.has-sidebar,.page-layout.has-sidebar{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:34px;align-items:start}
.store-layout>.store-main,.page-layout>article,.page-layout>div{min-width:0}
.store-layout.has-sidebar .woocommerce ul.products,.store-layout.has-sidebar .woocommerce-page ul.products,
.woocommerce-shell .has-sidebar ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
.store-layout .woocommerce-notices-wrapper:empty{display:none}
.theme-sidebar{display:block;min-width:0}
.theme-sidebar .widget,.homepage-widget-grid .widget,.footer-column .widget{min-width:0;margin:0 0 25px}
.theme-sidebar .widget{background:#f7f9f7;border:1px solid var(--line);border-radius:14px;padding:21px;overflow-wrap:anywhere}
.widget-title,.theme-sidebar h2,.theme-sidebar h3{font-size:1.13rem;letter-spacing:-.025em;margin:0 0 17px}
.widget p:last-child{margin-bottom:0}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{padding:8px 0;border-bottom:1px solid #e3e8e5}
.widget li:last-child{border:0}
.widget a:not(.button):hover{text-decoration:underline;text-underline-offset:3px}
.widget img{max-width:100%;height:auto}
.widget select,.widget input[type=search],.widget input[type=text],.widget input[type=number],.widget input[type=email]{max-width:100%;width:100%;min-width:0;padding:11px;border:1px solid #cbd8d0;background:#fff;border-radius:9px}
.widget button,.widget .wp-block-search__button{border-radius:9px}
.widget .wp-block-search__inside-wrapper{display:flex;gap:6px;min-width:0}
.widget .wp-block-search__inside-wrapper input{min-width:0}
.widget .wp-block-search__inside-wrapper button{padding:10px 13px}
.widget .wp-block-woocommerce-product-categories ul,.widget .wc-block-product-categories-list{padding-left:0}
.widget .wc-block-product-categories-list-item,.widget .wc-block-product-filter-checkbox-list__item{margin:0;overflow-wrap:anywhere}
.widget .wc-block-components-price-slider{padding:0}
.widget .wc-block-components-price-slider__range-input-wrapper{margin-top:17px}
.widget .wc-block-components-filter-reset-button{color:#315f1b}
.widget .wc-block-components-checkbox{margin:6px 0}
.widget .wc-block-components-checkbox__label{overflow-wrap:anywhere}
.widget .woocommerce-product-search{display:flex;gap:6px;min-width:0}
.widget .woocommerce-product-search button{padding:8px 12px}
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content{background:#d7e6d5}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{background:var(--accent-dark)}
.woocommerce .widget_price_filter .price_slider_amount .button{padding:9px 12px}
.homepage-widgets-section{background:var(--cloud)}
.homepage-widget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.homepage-widget-grid>.widget{background:#fff;border-radius:14px;padding:24px;border:1px solid var(--line)}
.homepage-widget-grid>.widget:only-child{grid-column:1/-1}
.site-footer .footer-column .widget{margin:0 0 21px}
.site-footer .footer-column .widget a{color:inherit}
.site-footer .footer-column .widget .widget-title{font-size:1.05rem}
.site-footer .footer-column .widget a:hover{color:var(--accent)}
.site-footer .footer-column .widget li{border-color:#ffffff1d}
.site-footer>.container>.widget-area{padding:30px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:24px;border-top:1px solid #ffffff25}
.site-footer>.container>.widget-area .widget{margin:0}
/* Catalog: keep filter and sort controls readable without removing extension hooks. */
.woocommerce .woocommerce-result-count{float:left}
.woocommerce .woocommerce-ordering{float:right}
.woocommerce .woocommerce-pagination{clear:both}
.woocommerce .woocommerce-breadcrumb{overflow-wrap:anywhere}
.woocommerce .woocommerce-products-header__description{color:var(--muted);margin-bottom:22px}
.woocommerce ul.products li.product .woocommerce-loop-product__link{display:block}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{overflow-wrap:anywhere}
.woocommerce div.product .woocommerce-product-details__short-description{margin-top:19px}
.woocommerce div.product .stock{color:#366c2f}
.woocommerce div.product .out-of-stock{color:#a53636}
.woocommerce div.product .product_meta{border-top:1px solid var(--line);padding-top:18px;overflow-wrap:anywhere}
.woocommerce div.product form.cart .quantity{margin-right:0}
.woocommerce div.product form.cart .single_add_to_cart_button{min-height:45px}
.woocommerce div.product form.cart .variations{border:0}
.woocommerce div.product form.cart .variations td.value{padding-bottom:12px}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:7px}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li:before,.woocommerce div.product .woocommerce-tabs ul.tabs li:after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:11px 14px}
.woocommerce div.product .woocommerce-tabs .panel{overflow-wrap:anywhere}
.woocommerce #reviews #comments ol.commentlist{padding:0}
.woocommerce #reviews #comments ol.commentlist li img.avatar{border-radius:50%}
.woocommerce .woocommerce-noreviews,.woocommerce .woocommerce-verification-required{color:var(--muted)}
/* Account, legacy Cart/Checkout, payment/order pages. */
.commerce-system-page .entry-content,.woocommerce-account .entry-content{width:100%;max-width:none}
.commerce-system-page .entry-content>.woocommerce{width:100%;max-width:none}
.woocommerce-account .woocommerce-MyAccount-navigation{border:1px solid var(--line);border-radius:13px;padding:12px;background:var(--cloud)}
.woocommerce-account .woocommerce-MyAccount-navigation li a{padding:12px 14px;border-radius:8px}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--night);color:var(--accent)}
.woocommerce-account .woocommerce-MyAccount-content{min-width:0;overflow-wrap:anywhere}
.woocommerce-account .woocommerce-MyAccount-content address{padding:15px;border:1px solid var(--line);border-radius:10px;line-height:1.8}
.woocommerce .woocommerce-Address-title h3{font-size:1.2rem}
.woocommerce table.shop_table{width:100%;border-collapse:separate;overflow-wrap:anywhere}
.woocommerce table.shop_table td,.woocommerce table.shop_table th{vertical-align:middle}
.woocommerce .cart-collaterals,.woocommerce .col2-set{min-width:0}
.woocommerce .cart-collaterals .cart_totals{width:100%;max-width:480px}
.woocommerce-cart .wc-proceed-to-checkout{padding-bottom:0}
.woocommerce .coupon input.input-text{min-height:44px;width:auto;min-width:130px}
.woocommerce-checkout #customer_details>.col-1,.woocommerce-checkout #customer_details>.col-2{min-width:0}
.woocommerce-checkout #payment{border-radius:13px;background:#f4f7f4}
.woocommerce-checkout #payment div.payment_box{background:#e2eee3}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#e2eee3}
.woocommerce .woocommerce-order-overview{padding:0;display:flex;flex-wrap:wrap;gap:12px}
.woocommerce .woocommerce-order-overview li{float:none;min-width:135px;margin:0;padding:12px;background:var(--cloud);border-radius:9px;border:0}
.woocommerce .woocommerce-thankyou-order-received{font-size:1.12rem;font-weight:700}
.woocommerce form .form-row .required{color:#9b2f2f}
.woocommerce .woocommerce-error{border-top-color:#ad3d3d}
.woocommerce .woocommerce-error::before{color:#a83b3b}
/* WooCommerce Cart/Checkout blocks: style exposed surface and standard controls only. */
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{width:100%;max-width:none}
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-container .wc-block-components-button{
  background:var(--ink);border:1px solid var(--ink);border-radius:10px;color:#fff;
  font-weight:750;min-height:46px;transition:background .15s}
.wc-block-components-button:not(.is-link):hover{background:#243a44;color:#fff}
.wc-block-components-button:focus-visible,.wc-block-components-text-input input:focus-visible{outline:3px solid #629f06;outline-offset:2px}
.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-form select{max-width:100%}
.wc-block-components-notice-banner{border-radius:10px}
.wc-block-cart__submit-container{background:#fff}
.woocommerce-page .wc-block-components-product-name{font-weight:700}
.wp-block-woocommerce-empty-cart-block{padding:24px 0}
.search-results-content{margin-top:26px}
@media(max-width:1199px){
 .store-layout.has-sidebar,.page-layout.has-sidebar{grid-template-columns:minmax(0,1fr) 245px;gap:22px}
 .store-layout.has-sidebar .woocommerce ul.products,.woocommerce-shell .has-sidebar ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
 .store-layout.has-sidebar,.page-layout.has-sidebar{grid-template-columns:minmax(0,1fr)}
 .store-layout .theme-sidebar{order:-1}
 .store-layout .theme-sidebar .widget{margin-bottom:12px}
 .store-layout.has-sidebar .woocommerce ul.products,.woocommerce-shell .has-sidebar ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .homepage-widget-grid{grid-template-columns:1fr}
 .homepage-widget-grid>.widget:only-child{grid-column:auto}
}
@media(max-width:600px){
 .woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{float:none;display:block;margin-bottom:13px}
 .woocommerce .woocommerce-ordering select{width:100%}
 .woocommerce div.product form.cart{align-items:start}
 .woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{width:100%;float:none}
 .woocommerce table.shop_table_responsive tr td,.woocommerce-page table.shop_table_responsive tr td{overflow-wrap:anywhere}
 .woocommerce .woocommerce-order-overview{display:grid;grid-template-columns:1fr 1fr}
 .woocommerce .woocommerce-order-overview li{margin:0}
 .site-footer>.container>.widget-area{grid-template-columns:1fr}
 .theme-sidebar .widget{padding:17px}
}
@media(max-width:380px){
 .woocommerce .woocommerce-order-overview{grid-template-columns:1fr}
}
