/* ============================================================
   SHOP — rules unique to the product archive, on top of style.css.

   The rail, the category tiles, the product cards and the strip
   are shared components already in style.css. What's here is the
   filter chips, the hero crop this page wants, and the work of
   getting WooCommerce's own archive furniture out of the way.
   ============================================================ */

/* ---------- hero ----------
   Scoped to 641px and up. Below that, style.css turns every hero into
   a photo band with the copy on solid ink underneath. */
@media (min-width:641px){
  .hero--shop{ min-height:clamp(340px,32vw,460px); align-items:center; }
  .hero--shop .hero-bg{ background-position:center 42%; }
  .hero--shop .wrap{ padding-block:clamp(2.5rem,4.5vw,3.5rem); }
  /* A category page uses that category's own photo, and most of them aren't
     near-black down the left like the main hero shot, so the copy side gets
     a heavier scrim than style.css gives the homepage. */
  .hero--shop .hero-scrim{
    background:
      linear-gradient(96deg, rgba(6,8,9,.92) 0%, rgba(6,8,9,.84) 38%, rgba(6,8,9,.45) 62%, rgba(6,8,9,.08) 84%),
      linear-gradient(180deg, rgba(6,8,9,.55) 0%, transparent 26%, transparent 72%, rgba(6,8,9,.55) 100%);
  }
}
.hero--shop .hero-copy{ max-width:min(100%,760px); }
.hero--shop h1{ margin-bottom:1rem; }
/* Narrow enough to stay on the dark side of the photo. */
.hero--shop .lead{ margin:0; color:rgba(239,235,228,.80); max-width:44ch; }

/* ---------- tiles to the full grid ----------
   The diamond rule is the only divider between the category tiles and the
   product grid, and it brings its own space above and below. The two section
   paddings around it would stack on top of that into a hole. */
#categories{ padding-bottom:0; }
#categories + #products{ padding-top:0; }

/* ---------- filter chips ---------- */
.filters{ display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:clamp(1rem,2vw,1.5rem); }
/* .chip itself is global (style.css): the search overlay uses it on every page. */
.count-note{
  font-family:var(--display); font-size:.68rem; font-weight:600; letter-spacing:.15em;
  text-transform:uppercase; color:var(--dimmer); margin:0 0 1.5rem; min-height:1em;
}

/* A card hidden by a chip must leave the grid, not just go invisible. */
.prod[hidden]{ display:none !important; }

/* Out of stock reads as a fact, not an offer, so it doesn't get the brass. */
.tag--out{ background:rgba(239,235,228,.14); color:var(--bone); }

/* ---------- WooCommerce's own archive furniture ----------
   The theme draws the grid itself. These are the bits Woo prints around it
   that would otherwise sit on the page with no styling: the breadcrumb, the
   result count, the sort dropdown and the shop sidebar. */
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-products-header,
.storefront-sorting,
#secondary.widget-area{ display:none; }

/* Woo's notice wrapper turns up on add-to-cart from an archive. */
.woocommerce-notices-wrapper:empty{ display:none; }

@media (max-width:1140px){
  .prods{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:1000px){
  .cats{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px){
  .prods{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .cats{ grid-template-columns:1fr; }
  .filters{ gap:.4rem; }
  .chip{ padding:.55rem .85rem; font-size:.63rem; }
}

/* ---------- search results page ---------- */
.srchpage-head{ padding-bottom:clamp(1rem,2vw,1.5rem); }
.srchpage-head h1{ font-size:clamp(1.9rem,1.3rem + 2.6vw,3.4rem); margin-bottom:1.5rem; }
.srchpage-head h1 em{ font-style:normal; color:var(--brass); }
.srchpage-form{ display:flex; gap:.6rem; flex-wrap:wrap; max-width:44rem; margin-bottom:1.25rem; }
.srchpage-form input[type="search"]{
  flex:1 1 11rem; min-width:0; font-family:var(--body); font-size:1.05rem; color:var(--bone);
  background:#0A0D0F; border:1px solid var(--line); border-radius:0; padding:.95rem 1rem;
  transition:border-color .2s ease;
}
.srchpage-form input[type="search"]:focus{ outline:none; border-color:var(--brass); }
.srchpage-form input::placeholder{ color:var(--dimmer); }
.srchpage-empty{ max-width:44rem; margin-bottom:1.5rem; }
.srchpage-empty h2{ margin-bottom:.8rem; }
.srch-chips--page{ margin-bottom:2rem; }
.srchpage-others{ max-width:52rem; }
.srchpage-others ul{ list-style:none; margin:0; padding:0; display:grid; gap:0; }
.srchpage-others li{ padding:1rem 0; border-bottom:1px solid var(--line); display:grid; gap:.3rem; }
.srchpage-others li a{ font-family:var(--display); font-weight:700; font-size:.95rem; letter-spacing:.04em; text-transform:uppercase; color:var(--bone); }
.srchpage-others li a:hover{ color:var(--brass); }
.srchpage-others li span{ color:var(--dim); font-size:.95rem; }
.screen-reader-text{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.srchpage-others--first{ margin-bottom:clamp(1.75rem,3vw,2.5rem); }
.srchpage-tail{ margin-top:clamp(2rem,4vw,3rem); }
.srchpage-tail .eyebrow{ margin-bottom:1.1rem; }
