/* The shop: the shelves on /collections/all, a category grid and the search results (woocommerce/archive-product.php,
   search.php, template-parts/shop/*). The shelves, the bar and the part cards are styled in eh.css (ported from the
   Shopify theme); this file adds the page head, the grid and search pieces, and what WordPress needs on top.

   Measured from the live Shopify pages (26-11-2026): a 48px title (36px on a phone); /collections/all keeps the bordered
   part cards; a category and the search results show photo-led cards, four to a row (two on a phone), with the name
   and a firm price under the photo. */

.eh-shop-head .eh-in{padding-block:44px 36px}
.eh-shop-head h1{font:800 48px/1.1 var(--eh-font);letter-spacing:-.02em;margin:10px 0 0;text-wrap:balance;overflow-wrap:break-word;hyphens:auto}
.eh-shop-head.is-shelves h1{margin-top:0}
.eh-shop-count{margin:12px 0 0;font:500 14.5px/1.4 var(--eh-font);color:var(--muted)}

/* wc_price wraps the amount in spans, and eh.css styles every span in a part card as the front page's small grey line:
   inside a price they take the price's own type */
.eh-part .eh-price span:not(.screen-reader-text){font:inherit;color:inherit;letter-spacing:inherit}

/* the cards keep Ink text inside any link colour the page sets */
.eh-shelves .eh-part{color:var(--ink)}
.eh-shelves .eh-part img{height:auto}

/* a category or the search results: photo-led cards, four to a row */
.eh-grid .eh-shelf{padding-top:28px}
.eh-grid .eh-shelf-bar+.eh-shelf{padding-top:28px}
.eh-grid .eh-shelf .eh-parts{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 16px}
.eh-grid .eh-shelf .eh-part{padding:0;gap:4px;border:0;border-radius:0;background:none;align-content:start}
.eh-grid .eh-shelf .eh-part:hover{box-shadow:none}
.eh-grid .eh-part .ph{margin-bottom:10px;border-radius:0;background:var(--off)}
.eh-grid .eh-part .ph img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply;transition:transform .35s ease}
.eh-grid .eh-part:hover .ph img{transform:scale(1.03)}
.eh-grid .eh-shelf .eh-part>b{font:400 14px/1.4 var(--eh-font)}
.eh-grid .eh-part:hover>b{text-decoration:underline;text-underline-offset:3px}
.eh-grid .eh-shelf .eh-part .eh-price{gap:2px 8px}
.eh-grid .eh-shelf .eh-part .eh-price b{font:600 16px/1.2 var(--eh-font)}
.eh-grid .eh-shelf .eh-part .eh-price s{font:500 15px/1.2 var(--eh-font);color:var(--muted)}
.eh-grid .eh-shelf .eh-tags{top:10px;left:10px}
.eh-shop-empty{margin:32px 0 0;max-width:56ch;font-size:16.5px;line-height:1.6;color:var(--body2)}
@media (prefers-reduced-motion:reduce){.eh-grid .eh-part .ph img{transition:none}.eh-grid .eh-part:hover .ph img{transform:none}}

/* pages of a category */
.eh-pages{margin-top:32px}
.eh-pages ul{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.eh-pages a,.eh-pages span{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:999px;border:1px solid var(--rule);
 font:600 14px/1 var(--eh-font);color:var(--ink);text-decoration:none;font-variant-numeric:tabular-nums}
.eh-pages a:hover{border-color:var(--ink)}
.eh-pages .current{background:var(--ink);border-color:var(--ink);color:var(--paper)}

/* search: one wide field under the title, the magnifier at its start is the button */
.eh-sres-form{position:relative;margin-top:24px;max-width:600px}
.eh-sres-form input[type=search]{display:block;width:100%;min-height:54px;padding:0 16px 0 52px;border:1px solid var(--ink);border-radius:8px;background:var(--paper);
 color:var(--ink);font:400 16px/1.2 var(--eh-font);-webkit-appearance:none;appearance:none}
.eh-sres-form input[type=search]:focus-visible{outline:3px solid var(--signal);outline-offset:2px}
.eh-sres-go{position:absolute;left:5px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:6px;background:transparent;color:var(--ink);
 display:grid;place-items:center;cursor:pointer}
.eh-sres-go:hover{background:var(--off)}
.eh-sres-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.eh-sres-head .eh-shop-count{margin-top:16px}
.eh-sres-pages{list-style:none;margin:32px 0 0;padding:20px 0 0;border-top:1px solid var(--rule);display:grid;gap:10px}

@media (max-width:989px){
 .eh-grid .eh-shelf .eh-parts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:749px){
 .eh-shop-head .eh-in{padding-block:32px 28px}
 .eh-shop-head h1{font-size:36px}
 .eh-grid .eh-shelf{padding-top:16px}
 .eh-grid .eh-shelf-bar+.eh-shelf{padding-top:8px}
 .eh-grid .eh-shelf .eh-parts{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
 .eh-grid .eh-part .ph{margin-bottom:8px}
 .eh-sres-form{margin-top:20px}
}
