/* ==========================================================================
   Automation Pioneer 2026 — shop.css (WooCommerce views)
   ========================================================================== */

/* Breadcrumbs (shared; light by default, inverted inside dark heroes) */
.breadcrumbs{font-size:var(--fs-sm);color:var(--c-muted);margin-bottom:var(--sp-5)}
.breadcrumbs p{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.breadcrumbs a{color:var(--c-ink);text-decoration:none;border-bottom:1px solid var(--c-line-strong)}
.breadcrumbs a:hover{border-color:var(--c-red-600);color:var(--c-red-600)}
.breadcrumbs .sep{color:var(--c-steel-400)}
.breadcrumbs .breadcrumb_last,.breadcrumbs [aria-current]{color:var(--c-muted)}
.shop-hero .breadcrumbs,.page-hero .breadcrumbs{color:var(--c-steel-300)}
.shop-hero .breadcrumbs a,.page-hero .breadcrumbs a{color:#fff;border-color:rgba(255,255,255,.3)}
.shop-hero .breadcrumbs a:hover,.page-hero .breadcrumbs a:hover{color:var(--c-red-300);border-color:var(--c-red-300)}
.shop-hero .breadcrumbs .breadcrumb_last,.page-hero .breadcrumbs .breadcrumb_last{color:var(--c-steel-300)}

/* Archive hero */
.shop-hero{position:relative;background:var(--c-navy-900);color:var(--c-steel-300);padding-block:clamp(2.5rem,2rem + 3vw,4.5rem);overflow:hidden;--focus:var(--c-red-300)}
.shop-hero .hero__grid{opacity:.55}
.shop-hero__inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--sp-6);align-items:center}
.shop-hero__title{color:#fff;font-size:var(--fs-2xl);font-stretch:90%;line-height:1.05;max-width:24ch}
.shop-hero__page{font-size:.5em;color:var(--c-steel-400);font-weight:500}
.shop-hero__count{margin-top:var(--sp-3);font-family:var(--f-mono);font-size:var(--fs-sm);color:var(--c-steel-400)}
.shop-hero__media{width:clamp(120px,14vw,200px);aspect-ratio:1;display:grid;place-items:center;background:#fff;border-radius:var(--r-md);padding:1rem;box-shadow:var(--sh-3)}
.shop-hero__media img{max-height:100%;width:auto;object-fit:contain;mix-blend-mode:multiply}
.shop-hero__media.is-logo{aspect-ratio:2/1;width:clamp(160px,18vw,260px)}
@media (max-width:640px){.shop-hero__inner{grid-template-columns:1fr}.shop-hero__media{width:120px}}

.shop-body{padding-top:clamp(2rem,1.5rem + 2vw,3.5rem)}
.subcat-nav{margin-bottom:var(--sp-6);display:grid;gap:var(--sp-3)}
.chip__count{font-family:var(--f-mono);font-size:.75rem;color:var(--c-muted);margin-left:.35rem}
.chip:hover .chip__count{color:var(--c-steel-300)}
.shop-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--sp-4);margin-bottom:var(--sp-5)}
.woocommerce-result-count{margin:0;font-size:var(--fs-sm);color:var(--c-muted)}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select,.single-product select{min-height:44px;padding:.5rem 2.25rem .5rem .85rem;border:1.5px solid var(--c-line-strong);border-radius:var(--r-sm);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b1d2a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .8rem center;appearance:none;font-size:var(--fs-sm)}
.woocommerce-notices-wrapper:empty{display:none}

/* Product grid */
ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.75rem,.5rem + .8vw,1.25rem);margin:0;padding:0;list-style:none}
ul.products::before,ul.products::after{content:none}
ul.products li.product{position:relative;display:flex;flex-direction:column;margin:0;width:auto;float:none;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-md);padding:var(--sp-4);transition:border-color var(--dur-2),box-shadow var(--dur-2),transform var(--dur-2) var(--ease-out)}
ul.products li.product:hover{border-color:var(--c-line-strong);box-shadow:var(--sh-2);transform:translateY(-3px)}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;gap:.35rem;text-decoration:none;color:var(--c-ink);flex:1}
.loop-card__media{display:grid;place-items:center;aspect-ratio:1;background:linear-gradient(160deg,#fff,var(--c-paper));border-radius:var(--r-sm);margin-bottom:.5rem;overflow:hidden}
.loop-card__media img{width:82%;height:82%;object-fit:contain;mix-blend-mode:multiply;transition:transform var(--dur-3) var(--ease-out)}
li.product:hover .loop-card__media img{transform:scale(1.05)}
.loop-card__brand{font-family:var(--f-mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--c-red-600)}
ul.products .woocommerce-loop-product__title{font-family:var(--f-body);font-size:.95rem;font-weight:600;line-height:1.35;color:var(--c-ink);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
ul.products .price{display:block;margin-top:auto;padding-top:.35rem;font-family:var(--f-display);font-weight:700;font-size:1.05rem;color:var(--c-ink)}
.price del{color:var(--c-muted);font-weight:400;margin-right:.35rem}
.price ins{text-decoration:none}
ul.products li.product .button{margin-top:var(--sp-3);display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:.5rem 1rem;border:1.5px solid var(--c-ink);border-radius:var(--r-sm);background:transparent;color:var(--c-ink);font-weight:600;font-size:var(--fs-sm);text-decoration:none;transition:background-color var(--dur-1),color var(--dur-1)}
ul.products li.product .button:hover{background:var(--c-ink);color:#fff}
ul.products li.product .added_to_cart{display:block;margin-top:.4rem;font-size:var(--fs-sm);color:var(--c-red-600)}
.onsale{position:absolute;top:.75rem;left:.75rem;z-index:1;padding:.2rem .55rem;border-radius:var(--r-xs);background:var(--c-red-600);color:#fff;font-size:.72rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
/* Subcategory tiles */
ul.products li.product-category a{display:grid;gap:.6rem;text-decoration:none;color:var(--c-ink)}
ul.products li.product-category img{width:100%;aspect-ratio:1;object-fit:contain;background:linear-gradient(160deg,#fff,var(--c-paper));border-radius:var(--r-sm);padding:12%;mix-blend-mode:multiply}
ul.products li.product-category h2{font-family:var(--f-display);font-size:1.05rem;font-weight:700;line-height:1.25}
ul.products li.product-category .count{background:none;font-family:var(--f-mono);font-size:.75rem;color:var(--c-muted);font-weight:500}
@media (max-width:1100px){ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:380px){ul.products{grid-template-columns:1fr}}

/* Pagination */
.woocommerce-pagination{margin-top:var(--sp-7)}
.woocommerce-pagination ul.page-numbers{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;list-style:none;padding:0;margin:0;border:0}
.woocommerce-pagination ul.page-numbers li{border:0;margin:0}
.woocommerce-pagination .page-numbers a,.woocommerce-pagination .page-numbers span{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:0 .75rem;border:1px solid var(--c-line-strong);border-radius:var(--r-sm);background:#fff;color:var(--c-ink);text-decoration:none;font-weight:500}
.woocommerce-pagination .page-numbers a:hover{border-color:var(--c-ink)}
.woocommerce-pagination .page-numbers .current{background:var(--c-ink);border-color:var(--c-ink);color:#fff}
.woocommerce-pagination .page-numbers .dots{border-color:transparent;background:transparent}

.term-about{margin-top:var(--sp-8);padding-top:var(--sp-6);border-top:1px solid var(--c-line);max-width:none}
.term-about>*{max-width:60rem}
.woocommerce-info,.woocommerce-message,.woocommerce-error{list-style:none;margin:0 0 var(--sp-5);padding:1rem 1.25rem;border-radius:var(--r-sm);border:1px solid var(--c-line);border-left:4px solid var(--c-ink);background:#fff;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;align-items:center}
.woocommerce-message{border-left-color:#1f8a5c}
.woocommerce-error{border-left-color:var(--c-red-600)}
.woocommerce-info .button,.woocommerce-message .button{font-weight:600;color:var(--c-red-600);text-decoration:underline}

/* Single product */
.product-top{background:var(--c-paper);border-bottom:1px solid var(--c-line);padding-block:var(--sp-4) 0}
.product-top .breadcrumbs{margin:0;padding-bottom:var(--sp-4)}
.single-product-wrap{padding-top:clamp(2rem,1.5rem + 2vw,3.5rem)}
.single-product div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,1rem + 3vw,4rem);align-items:start;position:relative}
.single-product div.product .woocommerce-product-gallery{position:relative;width:auto!important;float:none!important;background:linear-gradient(160deg,#fff,var(--c-paper));border:1px solid var(--c-line);border-radius:var(--r-md);padding:clamp(1rem,.5rem + 2vw,2rem)}
.woocommerce-product-gallery__image img{width:100%;height:auto;mix-blend-mode:multiply}
.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:2;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--c-line);text-indent:-9999px;overflow:hidden}
.woocommerce-product-gallery__trigger::before{content:"";width:14px;height:14px;border:2px solid var(--c-ink);border-radius:50%;text-indent:0;position:absolute;top:11px;left:11px}
.flex-control-thumbs{display:flex;gap:.5rem;margin-top:var(--sp-4);list-style:none;padding:0}
.flex-control-thumbs li{width:64px}
.flex-control-thumbs img{border:1px solid var(--c-line);border-radius:var(--r-xs);cursor:pointer;opacity:.7}
.flex-control-thumbs img.flex-active,.flex-control-thumbs img:hover{opacity:1;border-color:var(--c-ink)}
.single-product div.product .summary{width:auto!important;float:none!important;display:grid;gap:var(--sp-4);align-content:start}
.single-product .product_title{font-size:clamp(1.6rem,1.2rem + 1.6vw,2.5rem);line-height:1.12;font-stretch:92%}
.single-product .summary .price{font-family:var(--f-display);font-size:1.75rem;font-weight:750;color:var(--c-ink);margin:0}
.woocommerce-product-details__short-description{color:var(--c-text)}
.woocommerce-product-details__short-description p+p{margin-top:.6rem}
.stock{margin:0;font-weight:600;font-size:var(--fs-sm)}
.stock.in-stock{color:#1f7a52}
.stock.out-of-stock{color:var(--c-red-600)}
form.cart{display:flex;flex-wrap:wrap;gap:.6rem;align-items:stretch;margin:0}
form.cart .quantity input{width:84px;min-height:52px;padding:0 .5rem;border:1.5px solid var(--c-line-strong);border-radius:var(--r-sm);text-align:center;font-size:1rem}
form.cart .single_add_to_cart_button{min-height:52px;padding:.75rem 1.6rem;border:0;border-radius:var(--r-sm);background:var(--c-red-600);color:#fff;font-weight:600;font-size:var(--fs-base);cursor:pointer;transition:background-color var(--dur-2)}
form.cart .single_add_to_cart_button:hover{background:#a92f2e}
.single-rfq{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center}
.single-rfq__phone{display:inline-flex;align-items:center;gap:.45rem;font-weight:600;color:var(--c-ink);text-decoration:none;min-height:44px}
.single-rfq__phone .icon{width:18px;height:18px;color:var(--c-red-600)}
.single-trust{display:grid;gap:.5rem;padding:var(--sp-4);background:var(--c-paper);border-radius:var(--r-sm);font-size:var(--fs-sm);color:var(--c-muted)}
.single-trust li{display:flex;gap:.6rem;align-items:center}
.single-trust .icon{width:18px;height:18px;color:var(--c-red-600);flex-shrink:0}
.product_meta{display:grid;gap:.35rem;padding-top:var(--sp-4);border-top:1px solid var(--c-line);font-size:var(--fs-sm);color:var(--c-muted)}
.product_meta>span{display:block}
.product_meta a{color:var(--c-ink)}
.product_meta .sku{font-family:var(--f-mono);color:var(--c-ink)}
.woocommerce-tabs{grid-column:1/-1;margin-top:var(--sp-6)}
.woocommerce-tabs ul.tabs{display:flex;gap:.25rem;flex-wrap:wrap;list-style:none;padding:0;margin:0 0 var(--sp-5);border-bottom:1px solid var(--c-line-strong)}
.woocommerce-tabs ul.tabs li{margin:0}
.woocommerce-tabs ul.tabs li a{display:block;padding:.85rem 1.1rem;font-weight:600;color:var(--c-muted);text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px}
.woocommerce-tabs ul.tabs li.active a{color:var(--c-ink);border-color:var(--c-red-500)}
.woocommerce-Tabs-panel{max-width:60rem}
.woocommerce-Tabs-panel>*+*{margin-top:1em}
.woocommerce-Tabs-panel h2{font-size:var(--fs-xl)}
.shop_attributes{width:100%;border-collapse:collapse}
.shop_attributes th,.shop_attributes td{padding:.75rem 1rem;border-bottom:1px solid var(--c-line);text-align:left;vertical-align:top}
.shop_attributes th{width:30%;font-weight:600;color:var(--c-ink);background:var(--c-paper)}
.shop_attributes td p{margin:0}
.related.products,.upsells.products{grid-column:1/-1;margin-top:var(--sp-7)}
.related.products>h2,.upsells.products>h2{font-size:var(--fs-xl);margin-bottom:var(--sp-5)}
#reviews .commentlist{list-style:none;padding:0}
@media (max-width:900px){.single-product div.product{grid-template-columns:1fr}}

/* Cart / checkout / account (classic + blocks) */
.woocommerce-cart .prose,.woocommerce-checkout .prose,.woocommerce-account .prose{max-width:calc(var(--container) + var(--gutter) * 2)}
.wc-block-components-button:not(.is-link){border-radius:var(--r-sm)!important}
.woocommerce-MyAccount-navigation ul{list-style:none!important;padding:0!important;display:flex;flex-wrap:wrap;gap:.4rem}
.woocommerce-MyAccount-navigation a{display:inline-block;padding:.5rem .9rem;border:1px solid var(--c-line-strong);border-radius:var(--r-pill);text-decoration:none;color:var(--c-ink)}
.woocommerce-MyAccount-navigation .is-active a{background:var(--c-ink);color:#fff;border-color:var(--c-ink)}
.woocommerce form .form-row{margin-bottom:var(--sp-4)}
.woocommerce form .input-text{width:100%;min-height:46px;padding:.6rem .85rem;border:1.5px solid var(--c-line-strong);border-radius:var(--r-sm)}
.woocommerce .button,.woocommerce button.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.65rem 1.2rem;border:0;border-radius:var(--r-sm);background:var(--c-ink);color:#fff;font-weight:600;cursor:pointer;text-decoration:none}
.screen-reader-text:focus{clip:auto!important;width:auto;height:auto}