/*
 Yan Theme - WooCommerce shared base styles.
 Loaded on every page (product cards are reused on home & cart recommendations).
 Per-template styles live in css/archive-product.css, css/single-product.css,
 css/cart.css, css/checkout.css, css/account.css.
*/
.woocommerce .woocommerce-breadcrumb{margin:0 0 24px;color:var(--agr-muted);font-size:14px}
.woocommerce .woocommerce-breadcrumb a{color:var(--agr-blue-600)}
.woocommerce .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.yan-shop-filters .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 22px;border:1px solid var(--agr-navy-900);border-radius:999px;background:var(--agr-navy-900);color:#fff;font-weight:700;line-height:1.2}
.woocommerce .button:hover,.woocommerce button.button:hover,.woocommerce a.button:hover,.woocommerce input.button:hover,.yan-shop-filters .button:hover{border-color:var(--agr-blue-700);background:var(--agr-blue-700);color:#fff}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce #respond input#submit.alt{border-color:var(--agr-orange-500);background:var(--agr-orange-500);color:#fff}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover,.woocommerce #respond input#submit.alt:hover{border-color:var(--agr-orange-600);background:var(--agr-orange-600)}
.woocommerce ul.products li.product{display:flex;flex-direction:column}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{display:flex;flex:1;flex-direction:column;min-width:0}
.woocommerce ul.products{clear:both;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 20px}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}
.woocommerce ul.products li.product{float:none;width:auto;margin:0;padding-bottom:16px;border:0;border-radius:0;box-shadow:none}
.woocommerce ul.products li.product:hover{transform:none;border-color:transparent;box-shadow:none}
.woocommerce ul.products li.product a img{width:100%;margin:0 0 16px;aspect-ratio:1;object-fit:contain;background:#fff;transition:transform .2s}
.woocommerce ul.products li.product:hover a img{transform:scale(1.02)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:2.7em;padding:0;color:var(--agr-text);font:600 15px/1.35 var(--agr-font-body)}
.woocommerce ul.products li.product .price{display:flex!important;min-height:40px;align-items:center;justify-content:center;gap:3px;margin:8px 0 12px;color:var(--agr-sale);font-size:clamp(11px,1vw,15px)!important;font-weight:800;white-space:nowrap}
.woocommerce ul.products li.product .price del,.woocommerce ul.products li.product .price ins{display:inline-flex;white-space:nowrap}
.woocommerce ul.products li.product .price del{color:#858585;font-weight:500}
.woocommerce ul.products li.product .woocommerce-price-suffix,.wc-block-grid__product .woocommerce-price-suffix{display:none!important}
.woocommerce ul.products li.product>.button{display:flex;align-items:center;justify-content:center;width:100%;margin:0;padding:8px 16px;min-height:40px;font-size:13px}
.woocommerce span.onsale{top:8px;left:8px;min-width:0;min-height:0;padding:5px 9px;border-radius:4px;background:var(--agr-sale);font-size:12px;line-height:1.2}
/* WooCommerce offsets loop sale badges outside the card with negative margins.
   Keep the badge fully inside the product image so rounded/card overflow cannot crop it. */
.woocommerce ul.products li.product .onsale{top:12px;right:12px;left:auto;margin:0;min-width:0;min-height:0;padding:6px 10px;border-radius:999px;box-shadow:0 2px 7px rgba(0,0,0,.16);font-size:12px;line-height:1.2}
.yan-store-page{max-width:1400px}
.yan-store-hero{padding-top:20px}
.woocommerce form .form-row label{color:var(--agr-navy-900);font-size:14px;font-weight:700}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce .select2-container .select2-selection--single{min-height:46px;padding:9px 12px;border:1px solid var(--agr-border);border-radius:var(--agr-radius-sm);background:#fff}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered{padding:0;line-height:26px}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow{height:44px}
.woocommerce table.shop_table{border:1px solid var(--agr-border);border-radius:var(--agr-radius-md);background:#fff}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:16px 14px;border-color:var(--agr-border)}
.woocommerce-checkout .col2-set,.woocommerce-page .col2-set{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.woocommerce .col2-set .col-1,.woocommerce-page .col2-set .col-1,.woocommerce .col2-set .col-2,.woocommerce-page .col2-set .col-2{float:none;width:auto}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--agr-blue-600);background:var(--agr-surface-warm)}
.woocommerce-message:before,.woocommerce-info:before{color:var(--agr-blue-600)}
.woocommerce ul.products.columns-4 li.product{width:auto}
@media(max-width:1024px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0;font-size:14px}
.woocommerce ul.products li.product .price{margin:7px 0 10px;font-size:15px}
.woocommerce ul.products li.product .button{margin:0;padding-inline:12px}
.woocommerce-checkout .col2-set,.woocommerce-page .col2-set,.woocommerce-account .woocommerce{grid-template-columns:1fr}
}
