/* WooCommerce pages (shop, category, product, cart, checkout, account) in phase A: WooCommerce's own
   markup, dressed with the tokens only. The full designs of these pages come in later phases. */

.product_title{font-family:var(--display);font-weight:700;font-size:var(--fs-h2);line-height:.95;margin:0 0 var(--s-3)}
.term-description{color:var(--ink-2);max-width:68ch}

/* the shop loop is the theme's product grid (.grid in base.css, added by inc/archive.php) */
ul.products{list-style:none;margin:0;padding:0}
ul.products > li{margin:0;min-width:0}

/* archive heading (the page head) and the row above the grid */
.arc-fixed{margin:var(--s-2) 0 0;font-size:var(--fs-sm);color:var(--mute)}
.arc-fixed b{color:var(--ink);font-weight:700}
.arc-head .crest{width:56px;height:auto;margin:0 0 var(--s-3)}
.arc-photo{width:112px;height:112px;border-radius:50%;object-fit:cover;object-position:50% 15%;margin:0 0 var(--s-3);background:var(--tile)}
.arc-head .term-description{margin:var(--s-3) auto 0;font-size:14px;text-wrap:pretty}
.arc-head .term-description p{margin:0 0 var(--s-2)}
.arc-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s-3);margin:0 0 var(--s-4)}
.woocommerce-result-count{font-size:13px;color:var(--mute);margin:0}
.woocommerce-ordering{margin:0}
.arc-wrap .kitline-fl-noresults,.arc-empty{grid-column:1/-1}
.woocommerce-pagination ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0;margin:var(--s-6) 0 0}
.woocommerce-pagination a,.woocommerce-pagination span{display:grid;place-items:center;min-width:40px;height:40px;border:1px solid var(--line);border-radius:var(--r)}
.woocommerce-pagination .current{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* Kitline's filter bar in the theme's colours and font */
.woo-main .kitline-fl-app{--kitline-fl-accent:var(--ink);--kitline-fl-accent-soft:var(--tile);font-family:inherit}

/* wishlist page (Kitline wishlist module, the shop card): the shop's columns and gaps; a short list
   keeps the card width and sits in the middle (empty tracks collapse) */
.kitline-wl a{text-decoration:none}
.kitline-wl .grid{grid-template-columns:repeat(auto-fit,calc((100% - var(--grid-x)) / 2));justify-content:center}
@media (min-width:768px){ .kitline-wl .grid{grid-template-columns:repeat(auto-fit,calc((100% - 3 * var(--grid-x)) / 4))} }
.wl-head .sec-h p:has([data-kitline-wl-count="0"]),.page-body:has(.kitline-wl .empty) .wl-more{display:none}

/* forms and buttons */
.woocommerce input[type=text],.woocommerce input[type=email],.woocommerce input[type=tel],.woocommerce input[type=password],.woocommerce input[type=number],.woocommerce input[type=search],.woocommerce textarea,.woocommerce select,.woocommerce-ordering select{max-width:100%;min-height:44px;border:1px solid var(--line-strong);border-radius:var(--r-sm);padding:8px 12px;background:var(--paper)}
.woocommerce textarea{min-height:90px}
.woocommerce .form-row{margin:0 0 var(--s-3)}
.woocommerce .form-row label:where(:not(:has(> input[type=checkbox],> input[type=radio]))){display:block;font-size:13px;font-weight:700;margin:0 0 var(--s-1)} /* a label around a box is the choice component (base.css) */
.woocommerce .form-row .input-text{width:100%}
.woocommerce .button,.woocommerce button.button,.woocommerce a.button,.single_add_to_cart_button,.checkout-button,#place_order{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:12px;background:var(--ink);color:var(--paper);font-weight:800;border:0;cursor:pointer;white-space:nowrap}
.woocommerce .button:disabled,.woocommerce .button.disabled{opacity:.5;cursor:default}

/* notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 var(--s-4);padding:12px 16px;border-radius:var(--r);background:var(--tile)} /* unslop: no side stripe; the kind reads from a tinted surface */
.woocommerce-error{background:var(--att-bg);color:var(--att-ink)}
.woocommerce-message{background:var(--ok-bg)}
.woocommerce-message .button,.woocommerce-info .button{min-height:36px;margin-inline-start:12px}
.woocommerce-message:focus,.woocommerce-info:focus,.woocommerce-error:focus{outline:0} /* WooCommerce focuses a new notice (tabindex=-1) for screen readers; no 3px ring box around it */

/* the product page has its own stylesheet: product.css */

/* cart, checkout, account tables */
.shop_table{width:100%;border-collapse:collapse;font-size:14px}
.shop_table th,.shop_table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:start;vertical-align:middle}
.shop_table img{width:64px;height:auto;border-radius:var(--r-sm);background:var(--tile)}
/* account menu without Kitline's account design (it styles the menu when on) */
body:not(.kitline-acct-status-badges) .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0 0 var(--s-5);display:flex;flex-wrap:wrap;gap:8px}
body:not(.kitline-acct-status-badges) .woocommerce-MyAccount-navigation a{display:inline-flex;padding:8px 14px;border-radius:var(--pill);background:var(--tile);font-weight:600;font-size:14px}
body:not(.kitline-acct-status-badges) .woocommerce-MyAccount-navigation .is-active a{background:var(--ink);color:var(--paper)}

/* cart, checkout and account: no underlined buttons */

.woocommerce-page .entry-content .woocommerce a:not(.woocommerce-terms-and-conditions-link):not(.woocommerce-privacy-policy-link){text-decoration:none}

/* Kitline filter bar sticks below the sticky header and under its mega menu (header z 30) */
body .kitline-fl-bar{top:calc(var(--hdr-stack) + 8px);z-index:20} /* body: Kitline prints its bar CSS after ours */
/* phone filter drawer: closed = out of the tab order; buttons pinned in the thumb zone above the home bar; a 44px close */
@media (max-width:880px){
  body .kitline-fl-popwrap:not(.is-open){visibility:hidden;transition:transform var(--dur-3) var(--ease-in),visibility 0s linear var(--dur-3)}
  body .kitline-fl-drawer-foot{margin-top:auto;padding-bottom:calc(var(--s-3) + env(safe-area-inset-bottom))}
  body .kitline-fl-drawer-close{display:grid;place-items:center;width:44px;height:44px;margin-inline-end:calc(-1 * var(--s-2));padding:0;border-radius:50%}
}
