/**
 * Saunagus Shop: shop / WooCommerce taxonomy archive ONLY.
 * WordPress pages, the single-product view, cart, checkout and side cart are untouched.
 * Figtree and the monochrome identity are inherited from the live site.
 */
.sgg-shop-catalog {
  --shop-ink: #191b1c;
  --shop-muted: #656a6e;
  --shop-line: #e6e5e2;
  --shop-bg: #faf9f6;
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  min-height: 0;
  margin: 116px auto 76px;
  font-family: "Figtree", sans-serif;
  color: var(--shop-ink);
}
.sgg-shop-catalog, .sgg-shop-catalog * { box-sizing: border-box; }
.sgg-shop-catalog :where(a, button, input, select):focus-visible { outline: 3px solid #202326; outline-offset: 3px; }

/* Tight, editorial title and a real catalogue search, rather than a decorative hero. */
.sgg-shop-catalog .sgg-shop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 355px);
  align-items: end;
  gap: 30px;
  margin: 0;
  padding: 18px 0 29px;
  border-bottom: 1px solid var(--shop-line);
  background: transparent;
}
.sgg-shop-catalog--taxonomy .sgg-shop-head { grid-template-columns: minmax(0, 1fr); }
.sgg-shop-head__text { min-width: 0; }
.sgg-shop-head__eyebrow { display: block; margin: 0 0 10px; color: #777c7d; font-size: 11px; font-weight: 800; line-height: 1.4; letter-spacing: .14em; }
.sgg-shop-catalog .sgg-shop-head .woocommerce-products-header__title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 10px;
  padding: 0;
  font-size: clamp(38px, 3.8vw, 54px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.048em;
  color: var(--shop-ink);
}
.sgg-shop-head__lead { max-width: 650px; margin: 0; font-size: 16px; line-height: 1.55; color: #666b70; }
.sgg-shop-head__description { max-width: 750px; font-size: 14px; line-height: 1.55; color: #60646a; }
.sgg-shop-head__description:empty { display: none; }
.sgg-shop-head__description p { margin: 10px 0 0; }
.sgg-shop-head__description .term-description, .sgg-shop-head__description .page-description { margin: 0; }
.sgg-shop-search { display: grid; gap: 9px; margin: 0 0 3px; }
.sgg-shop-search > label { color: #353739; font-size: 12px; font-weight: 800; }
.sgg-shop-search__control { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 5px 5px 5px 16px; background: #fff; border: 1px solid #dcddda; border-radius: 999px; box-shadow: 0 3px 12px rgba(20,20,20,.025); }
.sgg-shop-search__control > svg { display: block; width: 19px; height: 19px; flex: none; color: #72767b; }
.sgg-shop-search__control > input[type="search"] { flex: 1; width: 100%; min-width: 0; height: 38px; min-height: 38px; padding: 0; background: transparent; border: 0 !important; border-radius: 0; outline: none !important; box-shadow: none !important; font-family: inherit; font-size: 14px; color: var(--shop-ink); }
.sgg-shop-search__control > input[type="search"]::placeholder { color: #939595; opacity: 1; }
.sgg-shop-search__control > button { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; background: #17191a; border: 1px solid #17191a; border-radius: 50%; color: #fff; cursor: pointer; transition: background .15s ease; }
.sgg-shop-search__control > button:hover { background: #414344; }
.sgg-shop-search__control > button svg { display: block; width: 20px; height: 20px; }

.sgg-shop-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sgg-shop-section-heading h2 { margin: 0; color: #1d2021; font-size: clamp(19px,2vw,24px); line-height: 1.2; font-weight: 850; letter-spacing: -.035em; }
.sgg-shop-section-heading > span { color: #838583; font-size: 12px; font-weight: 550; }
.sgg-shop-departments { padding: 30px 0 0; }
.sgg-shop-departments__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sgg-shop-catalog .sgg-shop-department { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 90px; padding: 12px; background: #fff; border: 1px solid #e8e7e4; border-radius: 17px; color: #1a1b1c; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.sgg-shop-catalog .sgg-shop-department:hover { color: #141516; border-color: #bfc1be; box-shadow: 0 7px 18px rgba(24,24,24,.05); }
.sgg-shop-department__art { flex: 0 0 65px; width: 65px; height: 65px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #f6f5f2; color: #333839; }
.sgg-shop-department__art svg { width: 30px; height: 30px; }
.sgg-shop-department__art img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 6px; }
.sgg-shop-department__name { flex: 1; min-width: 0; overflow-wrap: break-word; font-size: 13px; font-weight: 800; line-height: 1.35; }
.sgg-shop-department__arrow { flex: none; color: #666; font-size: 17px; }

.sgg-shop-listing { padding: 30px 0 0; }
.sgg-shop-catalog .sgg-shop-section-heading--listing { margin-bottom: 16px; }
.sgg-shop-catalog .sgg-shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 48px; width: 100%; margin: 0 0 24px; padding: 0; }
.sgg-shop-catalog .sgg-shop-toolbar .woocommerce-result-count { order: 0; float: none; flex: 1 1 160px; margin: 0; padding: 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: #767a7a; }
.sgg-shop-catalog .sgg-shop-toolbar .matas-quick-filters { order: 1; display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 7px; clear: none; width: auto; margin: 0; padding: 0; }
.sgg-shop-catalog .sgg-shop-toolbar .matas-filter-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; flex: none; min-height: 43px; height: 43px; padding: 0 17px; background: #fff; border: 1px solid #e0e0dd; border-radius: 999px; color: #232626; font-family: inherit; font-size: 13px; line-height: 1.2; font-weight: 700; box-shadow: none; white-space: nowrap; }
.sgg-shop-catalog .sgg-shop-toolbar .matas-filter-btn:hover { background: #f7f7f5; border-color: #bdc0bd; color: #232626; }
.sgg-shop-catalog .sgg-shop-toolbar .matas-main-filter-btn { background: #17191a; border-color: #17191a; color: #fff; }
.sgg-shop-catalog .sgg-shop-toolbar .matas-main-filter-btn:hover { background: #383b3c; border-color: #383b3c; color: #fff; }
.sgg-shop-catalog .sgg-shop-toolbar .matas-clear-all-btn { color: #5b5f61; background: transparent; border-color: transparent; }
.sgg-shop-catalog .sgg-shop-toolbar .woocommerce-ordering { order: 2; display: block; flex: 0 0 auto; float: none; margin: 0; padding: 0; }
.sgg-shop-catalog .sgg-shop-toolbar .woocommerce-ordering select { width: auto; min-width: 170px; max-width: 100%; height: 43px; min-height: 43px; margin: 0; padding: 0 35px 0 16px; border: 1px solid #e0e0dd; border-radius: 999px; background-color: #fff; color: #232626; font-family: inherit; font-size: 13px; font-weight: 700; box-shadow: none; }

/* Standard WooCommerce card markup, with a consistent, intentionally adaptive grid. */
.sgg-shop-catalog .sgg-shop-results ul.products { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; clear: both; width: 100%; margin: 0 0 36px; padding: 0; list-style: none; text-align: left; }
.sgg-shop-catalog .sgg-shop-results ul.products::before, .sgg-shop-catalog .sgg-shop-results ul.products::after { content: none !important; display: none !important; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product { position: relative; display: flex !important; flex-direction: column; float: none !important; clear: none !important; width: 100% !important; min-width: 0; max-width: none; margin: 0 !important; padding: 11px 11px 14px !important; border: 1px solid #e7e7e4; border-radius: 19px; background: #fff; box-shadow: none; text-align: left; transition: border-color .18s ease, box-shadow .18s ease; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product:hover { border-color: #bfc1bc; box-shadow: 0 11px 26px rgba(25,28,26,.055); }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product > a.woocommerce-LoopProduct-link { display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; min-width: 0; margin: 0; padding: 0; text-align: left; text-decoration: none; color: #191b1c; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product > a.woocommerce-LoopProduct-link img { display: block; width: 100%; height: auto !important; aspect-ratio: 1 / 1; max-height: 245px; margin: 0 0 14px !important; padding: 18px; border: 0; border-radius: 13px; background: #f8f8f7; object-fit: contain; box-shadow: none; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .woocommerce-loop-product__title { margin: 0 !important; padding: 0 4px 7px !important; min-height: 2.7em; color: #1b1c1d; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.4; letter-spacing: -.017em; text-align: left; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .sgg-shop-category { order: unset; display: block; margin: 0 4px 10px; color: #838784; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: left; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .star-rating { float: none; margin: 0 4px 8px; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .price { display: block; margin: auto 4px 14px !important; color: #1b1c1d; font-size: 18px !important; font-weight: 850; line-height: 1.4; text-align: left; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .price .woocommerce-Price-amount { color: #1b1c1d; font-size: 18px !important; font-weight: 850; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .price del, .sgg-shop-catalog .sgg-shop-results ul.products > li.product .price del .woocommerce-Price-amount { color: #888b8c; font-size: 13px !important; font-weight: 550; opacity: 1; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product > .button { display: inline-flex !important; justify-content: center; align-items: center; float: none !important; align-self: stretch; width: 100%; height: auto !important; min-height: 44px; margin: 0 !important; padding: 11px 15px !important; border: 1px solid #191b1c !important; border-radius: 999px !important; background: #191b1c !important; color: #fff !important; font-family: inherit; font-size: 13px !important; font-weight: 800; line-height: 1.25; text-decoration: none; text-align: center; white-space: normal; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product > .button:hover { background: #3b3d3e !important; border-color: #3b3d3e !important; color: #fff !important; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .added_to_cart { padding: 8px 0 0; color: #1c1d1e; font-size: 12px; text-decoration: underline; }
.sgg-shop-catalog .sgg-shop-results ul.products > li.product .onsale { position: absolute; z-index: 1; top: 19px !important; left: 19px !important; width: auto; height: auto; min-width: 0; min-height: 0; margin: 0 !important; padding: 7px 11px; border-radius: 999px; background: #191b1c; color: #fff; font-size: 11px; line-height: 1.15; font-weight: 800; }
.sgg-shop-catalog .woocommerce-pagination { clear: both; padding-top: 6px; text-align: center; }
.sgg-shop-catalog .woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.sgg-shop-catalog .woocommerce-pagination ul.page-numbers :is(a,span) { border-radius: 999px; }

@media (max-width: 1100px) {
  .sgg-shop-departments__list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sgg-shop-catalog .sgg-shop-results ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 790px) {
  .sgg-shop-catalog { width: calc(100% - 32px); margin: 98px auto 56px; }
  .sgg-shop-catalog .sgg-shop-head { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 10px 0 24px; }
  .sgg-shop-head__lead { font-size: 15px; }
  .sgg-shop-search { max-width: 500px; }
  .sgg-shop-departments { padding-top: 24px; }
  .sgg-shop-listing { padding-top: 24px; }
  .sgg-shop-catalog .sgg-shop-results ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .sgg-shop-catalog .sgg-shop-toolbar .woocommerce-result-count { flex-basis: 100%; }
  .sgg-shop-catalog .sgg-shop-toolbar .matas-quick-filters { order: 1; margin-right: auto; justify-content: flex-start; }
}
@media (max-width: 530px) {
  .sgg-shop-catalog { width: calc(100% - 26px); margin: 94px auto 50px; }
  .sgg-shop-catalog .sgg-shop-head .woocommerce-products-header__title { font-size: 38px; }
  .sgg-shop-head__eyebrow { font-size: 10px; }
  .sgg-shop-head__lead { font-size: 14px; }
  .sgg-shop-departments__list { gap: 9px; }
  .sgg-shop-catalog .sgg-shop-department { padding: 8px; min-height: 66px; gap: 8px; border-radius: 13px; }
  .sgg-shop-department__art { width: 43px; height: 46px; flex-basis: 43px; border-radius: 10px; }
  .sgg-shop-department__art svg { width: 24px; height: 24px; }
  .sgg-shop-department__name { font-size: 12px; }
  .sgg-shop-section-heading > span { display: none; }
  .sgg-shop-catalog .sgg-shop-toolbar { gap: 9px; }
  .sgg-shop-catalog .sgg-shop-toolbar .matas-quick-filters { width: 100%; flex: 1 1 100%; justify-content: flex-start; }
  .sgg-shop-catalog .sgg-shop-toolbar .woocommerce-ordering { flex: 1 1 100%; }
  .sgg-shop-catalog .sgg-shop-toolbar .woocommerce-ordering select { width: 100%; }
  .sgg-shop-catalog .sgg-shop-results ul.products { gap: 9px; }
  .sgg-shop-catalog .sgg-shop-results ul.products > li.product { border-radius: 13px; padding: 9px 9px 12px !important; }
  .sgg-shop-catalog .sgg-shop-results ul.products > li.product > a.woocommerce-LoopProduct-link img { padding: 11px; margin-bottom: 11px !important; max-height: 220px; }
  .sgg-shop-catalog .sgg-shop-results ul.products > li.product .woocommerce-loop-product__title { min-height: 3em; font-size: 13px; line-height: 1.35; }
  .sgg-shop-catalog .sgg-shop-results ul.products > li.product .price, .sgg-shop-catalog .sgg-shop-results ul.products > li.product .price .woocommerce-Price-amount { font-size: 16px !important; }
  .sgg-shop-catalog .sgg-shop-results ul.products > li.product > .button { font-size: 12px !important; padding: 9px 7px !important; min-height: 42px; }
}
@media (max-width: 360px) {
  .sgg-shop-catalog .sgg-shop-results ul.products { grid-template-columns: repeat(1,minmax(0,1fr)); }
  .sgg-shop-departments__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sgg-shop-catalog :is(.sgg-shop-department,.sgg-shop-results ul.products > li.product) { transition: none; }
}


/* SHOP LANDING + PRODUCT CATALOG | These selectors never touch normal WP pages.
   Storefront: editorial landing without archive controls.
   Product categories and ?shop_view=all: normal WooCommerce filters and sorting.
   Product cards retain the EXISTING dimensions and selectors above. */
.sgg-shop-catalog .sgg-shop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 370px;
  margin: 0;
  border-radius: 24px;
  color: #fff;
  background: #1c2121;
}
.sgg-shop-catalog .sgg-shop-hero__media {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -2;
  overflow: hidden;
}
.sgg-shop-catalog .sgg-shop-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.sgg-shop-catalog .sgg-shop-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,#171b1d 0%,#171b1d 32%,rgba(23,27,29,.91) 45%,rgba(23,27,29,.36) 74%,rgba(23,27,29,.02) 100%);
}
.sgg-shop-catalog .sgg-shop-hero__copy { position: relative; width: min(67%,770px); min-width: 0; padding: 42px clamp(26px,4vw,62px) 44px; }
.sgg-shop-catalog .sgg-shop-hero__eyebrow { display: block; margin: 0 0 15px; color: #e1dcd6; font-size: 11px; line-height: 1.5; font-weight: 850; letter-spacing: .16em; }
.sgg-shop-catalog .sgg-shop-hero .woocommerce-products-header__title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 670px;
  margin: 0 0 14px;
  padding: 0;
  color: #fff !important;
  font-family: inherit;
  font-size: clamp(39px,4.2vw,59px);
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: -.052em;
}
.sgg-shop-catalog .sgg-shop-hero__lead { max-width: 515px; margin: 0; color: rgba(255,255,255,.83); font-size: 16px; line-height: 1.63; }
.sgg-shop-catalog .sgg-shop-hero__actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.sgg-shop-catalog .sgg-shop-hero__primary,
.sgg-shop-catalog .sgg-shop-hero__secondary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 47px; padding: 11px 20px; font-family: inherit; font-size: 13px; font-weight: 800; line-height: 1.3; border-radius: 999px; text-decoration: none; transition: background-color .16s ease, color .16s ease; }
.sgg-shop-catalog .sgg-shop-hero__primary { background: #fff; border: 1px solid #fff; color: #17191a; }
.sgg-shop-catalog .sgg-shop-hero__primary:hover { background: #eee; color: #17191a; }
.sgg-shop-catalog .sgg-shop-hero__secondary { padding-inline: 5px; background: transparent; border: 1px solid transparent; color: #fff; }
.sgg-shop-catalog .sgg-shop-hero__secondary:hover { color: #e1c09e; }
.sgg-shop-catalog .sgg-shop-hero__actions span { font-size: 17px; }

/* The SHOP HOME hero is intentionally distinct from the dark CATEGORY hero. */
.sgg-shop-catalog--storefront .sgg-shop-hero--storefront { min-height: 390px; color: #1b1e1e; background: #ece9e4; }
.sgg-shop-catalog--storefront .sgg-shop-hero--storefront::before { background: linear-gradient(90deg,#f0eeea 0%,#f0eeea 31%,rgba(240,238,234,.93) 44%,rgba(240,238,234,.38) 70%,rgba(240,238,234,.05) 100%); }
.sgg-shop-catalog--storefront .sgg-shop-hero__media { inset-inline-start: 39%; }
.sgg-shop-catalog--storefront .sgg-shop-hero__eyebrow { color: #666661; }
.sgg-shop-catalog--storefront .sgg-shop-hero .woocommerce-products-header__title { color: #191b1c !important; font-size: clamp(39px,4vw,56px); max-width: 560px; }
.sgg-shop-catalog--storefront .sgg-shop-hero__lead { color: #515658; }
.sgg-shop-catalog--storefront .sgg-shop-hero__primary { background: #17191a; border-color: #17191a; color: #fff; }
.sgg-shop-catalog--storefront .sgg-shop-hero__primary:hover { background: #393d3e; border-color: #393d3e; color: #fff; }
.sgg-shop-catalog--storefront .sgg-shop-hero__secondary { color: #282b2b; }
.sgg-shop-catalog--storefront .sgg-shop-hero__secondary:hover { color: #6d4f36; }

.sgg-shop-catalog--storefront .sgg-shop-departments { padding-top: 38px; }
.sgg-shop-catalog--storefront .sgg-shop-listing { padding-top: 40px; }
.sgg-shop-catalog--storefront .sgg-shop-section-heading { align-items: end; gap: 20px; margin-bottom: 19px; }
.sgg-shop-catalog--storefront .sgg-shop-section-heading h2 { margin: 0; font-size: clamp(22px,2.2vw,28px); font-weight: 850; }
.sgg-shop-section-kicker { display: block; margin-bottom: 7px; color: #777773; font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .17em; }
.sgg-shop-all-link { display: inline-flex; align-items: center; gap: 9px; flex: none; color: #242729; font-size: 13px; font-weight: 800; text-decoration: none; }
.sgg-shop-all-link:hover { text-decoration: underline; color: #242729; }
.sgg-shop-catalog--storefront .sgg-shop-results ul.products { margin-bottom: 18px; }
.sgg-shop-featured__footer { display: flex; justify-content: center; margin: 8px 0 2px; }
.sgg-shop-view-all { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 11px 22px; border: 1px solid #242729; border-radius: 999px; color: #242729; background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.sgg-shop-view-all:hover { color: #fff; background: #242729; }
.sgg-shop-home-empty { padding: 25px; background: #f6f5f2; border: 1px solid #eceae4; border-radius: 18px; }
.sgg-shop-home-empty p { margin: 0 0 10px; color: #595f60; }
.sgg-shop-home-empty a { color: #16191a; font-weight: 800; text-decoration: underline; }
.sgg-shop-store-note { display: flex; align-items: center; gap: 19px; min-width: 0; margin-top: 42px; padding: 24px 28px; border: 1px solid #e6e6e1; border-radius: 19px; background: #f7f6f3; }
.sgg-shop-store-note__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; background: #fff; border: 1px solid #e7e7e2; border-radius: 14px; }
.sgg-shop-store-note__icon svg { width: 26px; height: 26px; }
.sgg-shop-store-note > div { min-width: 0; flex: 1; }
.sgg-shop-store-note strong { display: block; margin: 0 0 3px; font-size: 15px; font-weight: 800; }
.sgg-shop-store-note p { margin: 0; font-size: 13px; line-height: 1.55; color: #676b6a; }
.sgg-shop-store-note > a { flex: none; display: inline-flex; align-items: center; gap: 9px; border: 1px solid #d6d6d3; border-radius: 999px; padding: 11px 18px; background: #fff; color: #1d1f1f; font-size: 12px; font-weight: 800; text-decoration: none; }
.sgg-shop-store-note > a:hover { border-color: #17191a; color: #17191a; }

.sgg-shop-catalog--taxonomy .sgg-shop-listing { padding-top: 30px; }
.sgg-shop-archive-copy { max-width: 930px; margin: 44px auto 10px; padding: 0 4px; color: #444b4b; font-size: 15px; line-height: 1.75; }
.sgg-shop-archive-copy :is(h2,h3) { margin: 24px 0 10px; color: #1d2021; font-weight: 800; }
.sgg-shop-archive-copy p { margin: 0 0 16px; }
.sgg-shop-catalog--taxonomy .sgg-shop-hero { min-height: 350px; }

@media (max-width: 790px) {
  .sgg-shop-catalog .sgg-shop-hero { min-height: 330px; border-radius: 20px; }
  .sgg-shop-catalog .sgg-shop-hero__media { inset-inline-start: 24%; }
  .sgg-shop-catalog .sgg-shop-hero::before { background: linear-gradient(90deg,#171b1d 0%,rgba(23,27,29,.95) 32%,rgba(23,27,29,.72) 74%,rgba(23,27,29,.3) 100%); }
  .sgg-shop-catalog .sgg-shop-hero__copy { width: 100%; max-width: 690px; padding: 30px 29px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront { min-height: 340px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront::before { background: linear-gradient(90deg,#f0eeea 0%,rgba(240,238,234,.95) 34%,rgba(240,238,234,.75) 74%,rgba(240,238,234,.25) 100%); }
  .sgg-shop-catalog .sgg-shop-hero .woocommerce-products-header__title { font-size: clamp(37px,6vw,51px); }
}
@media (max-width: 530px) {
  .sgg-shop-catalog .sgg-shop-hero { min-height: 340px; border-radius: 17px; }
  .sgg-shop-catalog .sgg-shop-hero__media { inset: 0; }
  .sgg-shop-catalog .sgg-shop-hero__media img { object-position: 60% center; }
  .sgg-shop-catalog .sgg-shop-hero::before { background: linear-gradient(90deg,rgba(23,27,29,.98),rgba(23,27,29,.83) 68%,rgba(23,27,29,.5)); }
  .sgg-shop-catalog .sgg-shop-hero__copy { padding: 26px 22px 29px; }
  .sgg-shop-catalog .sgg-shop-hero .woocommerce-products-header__title { font-size: clamp(34px,8vw,43px); }
  .sgg-shop-catalog .sgg-shop-hero__lead { font-size: 13px; }
  .sgg-shop-catalog .sgg-shop-hero__actions { gap: 9px 15px; margin-top: 20px; }
  .sgg-shop-catalog .sgg-shop-hero__primary,.sgg-shop-catalog .sgg-shop-hero__secondary { min-height: 43px; font-size: 12px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront { min-height: 342px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront::before { background: linear-gradient(90deg,rgba(240,238,234,.97),rgba(240,238,234,.92) 56%,rgba(240,238,234,.66)); }
  .sgg-shop-catalog--storefront .sgg-shop-departments { padding-top: 28px; }
  .sgg-shop-catalog--storefront .sgg-shop-listing { padding-top: 32px; }
  .sgg-shop-catalog--storefront .sgg-shop-section-heading h2 { font-size: 23px; }
  .sgg-shop-store-note { margin-top: 33px; padding: 17px; gap: 13px; flex-wrap: wrap; }
  .sgg-shop-store-note__icon { width: 42px; height: 42px; }
  .sgg-shop-store-note > div { flex: 1 1 calc(100% - 60px); }
  .sgg-shop-store-note > a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sgg-shop-catalog .sgg-shop-hero :is(a,button) { transition: none; }
}


/* SHOP HOME – category cards with genuine WooCommerce images and editorial copy.
   Product cards, catalogue queries and checkout remain unchanged. */
.sgg-shop-catalog--storefront .sgg-shop-departments__list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 13px;
}
.sgg-shop-catalog--storefront .sgg-shop-department {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: 124px auto;
  grid-template-areas: 'image image' 'body arrow';
  align-items: start;
  align-content: start;
  gap: 14px 8px;
  min-height: 0;
  padding: 12px 12px 17px;
  border: 1px solid #e7e5e1;
  border-radius: 19px;
  background: #fff;
  color: #191b1c;
  text-decoration: none;
  transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.sgg-shop-catalog--storefront .sgg-shop-department:hover {
  transform: translateY(-2px);
  border-color: #c7c4bd;
  box-shadow: 0 9px 22px rgba(28,29,25,.055);
}
.sgg-shop-catalog--storefront .sgg-shop-department__art {
  grid-area: image;
  flex: none;
  display: block;
  width: 100%;
  height: 124px;
  min-width: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #f5f2ed;
}
.sgg-shop-catalog--storefront .sgg-shop-department__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}
.sgg-shop-catalog--storefront .sgg-shop-department__art svg {
  display: block;
  width: 44px;
  height: 44px;
  margin: 38px auto;
}
.sgg-shop-catalog--storefront .sgg-shop-department__body {
  grid-area: body;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.sgg-shop-catalog--storefront .sgg-shop-department__name {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.016em;
  overflow-wrap: anywhere;
}
.sgg-shop-catalog--storefront .sgg-shop-department__meta {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  color: #6e716f;
  overflow-wrap: anywhere;
}
.sgg-shop-catalog--storefront .sgg-shop-department__arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e6e6e3;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: #323535;
}
.sgg-shop-catalog--storefront .sgg-shop-department--electrolytes .sgg-shop-department__art { background:#f6ecec; }
.sgg-shop-catalog--storefront .sgg-shop-department--towels .sgg-shop-department__art { background:#eeebe5; }
.sgg-shop-catalog--storefront .sgg-shop-department--hats .sgg-shop-department__art { background:#ede6de; }
.sgg-shop-catalog--storefront .sgg-shop-department--oils .sgg-shop-department__art { background:#eaf0e9; }
.sgg-shop-catalog--storefront .sgg-shop-department--accessories .sgg-shop-department__art { background:#f1e8de; }
.sgg-shop-catalog--storefront .sgg-shop-departments__hint { display: none; }

@media (max-width: 1100px) and (min-width: 791px) {
  .sgg-shop-catalog--storefront .sgg-shop-departments__list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 790px) {
  /* A touch-friendly category rail with a visible peek at the next item. */
  .sgg-shop-catalog--storefront .sgg-shop-departments__list {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 41%);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1px;
    scrollbar-width: none;
    padding: 2px 0 11px;
    -webkit-overflow-scrolling: touch;
  }
  .sgg-shop-catalog--storefront .sgg-shop-departments__list::-webkit-scrollbar { display: none; }
  .sgg-shop-catalog--storefront .sgg-shop-department { scroll-snap-align: start; }
  .sgg-shop-catalog--storefront .sgg-shop-departments__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #777a79;
  }
  .sgg-shop-catalog--storefront .sgg-shop-departments__hint span { font-size: 15px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront {
    min-height: 0;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront .sgg-shop-hero__copy { width:100%; }
}
@media (max-width: 530px) {
  .sgg-shop-catalog { max-width: 100%; }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront {
    display: block;
    min-height: 0;
    background: #f0eeea;
    border-radius: 18px;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront .sgg-shop-hero__media {
    inset: auto 0 0;
    height: 150px;
    z-index: -2;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront .sgg-shop-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront::before {
    background: linear-gradient(180deg,#f0eeea 0%,#f0eeea 53%,rgba(240,238,234,.98) 64%,rgba(240,238,234,.68) 79%,rgba(240,238,234,.10) 100%);
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront .sgg-shop-hero__copy {
    padding: 24px 22px 124px;
    width: 100%;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero .woocommerce-products-header__title {
    font-size: clamp(30px,8vw,38px);
    line-height: 1.08;
    max-width: 100%;
    letter-spacing: -.043em;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero__eyebrow { margin-bottom: 9px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero__lead { font-size: 13px; line-height: 1.48; }
  .sgg-shop-catalog--storefront .sgg-shop-hero__actions { gap: 8px; margin-top: 17px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero__primary {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 12px;
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero__secondary {
    min-height: 44px;
    padding: 10px 4px;
    font-size: 12px;
  }
  .sgg-shop-catalog--storefront .sgg-shop-departments { padding-top: 26px; }
  .sgg-shop-catalog--storefront .sgg-shop-departments__list {
    grid-auto-columns: minmax(185px, 65%);
    gap: 10px;
  }
  .sgg-shop-catalog--storefront .sgg-shop-department {
    grid-template-rows: 108px auto;
    min-height: 0;
    padding: 10px 10px 14px;
    gap: 12px 8px;
    border-radius: 16px;
  }
  .sgg-shop-catalog--storefront .sgg-shop-department__art {
    width: 100%;
    height: 108px;
    border-radius: 11px;
  }
  .sgg-shop-catalog--storefront .sgg-shop-department__name { font-size: 13px; }
  .sgg-shop-catalog--storefront .sgg-shop-department__meta { font-size: 11px; }
  .sgg-shop-catalog--storefront .sgg-shop-department__arrow { width: 25px;height:25px;font-size:14px; }
  .sgg-shop-catalog--storefront .sgg-shop-listing { padding-top: 24px; }
  .sgg-shop-catalog--storefront .sgg-shop-section-heading h2 { font-size: 21px; }
  .sgg-shop-catalog--storefront .sgg-shop-departments__hint { font-size: 10px; }
  .sgg-shop-catalog--storefront .sgg-shop-store-note { padding: 16px; }
  /* Footer breadcrumb uses the site's existing .breadcrumbs and .breadcrumb-separator. */
  body.post-type-archive-product .sgg-wc-footer-breadcrumb-bar .breadcrumbs,
  body.tax-product_cat .sgg-wc-footer-breadcrumb-bar .breadcrumbs,
  body.tax-product_tag .sgg-wc-footer-breadcrumb-bar .breadcrumbs {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    row-gap: 4px;
    font-family: 'Figtree',sans-serif;
    font-size: 12px;
    line-height: 1.55;
  }
  body.post-type-archive-product .sgg-wc-footer-breadcrumb-bar .breadcrumb-separator,
  body.tax-product_cat .sgg-wc-footer-breadcrumb-bar .breadcrumb-separator,
  body.tax-product_tag .sgg-wc-footer-breadcrumb-bar .breadcrumb-separator {
    margin:0 6px;
    white-space:nowrap;
  }
}
@media (max-width: 360px) {
  .sgg-shop-catalog--storefront .sgg-shop-departments__list {
    grid-template-columns: none;
    grid-auto-columns: minmax(175px, 70%);
  }
  .sgg-shop-catalog--storefront .sgg-shop-hero--storefront .sgg-shop-hero__copy { padding: 21px 18px 114px; }
  .sgg-shop-catalog--storefront .sgg-shop-hero__primary,
  .sgg-shop-catalog--storefront .sgg-shop-hero__secondary { font-size:11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sgg-shop-catalog--storefront .sgg-shop-department { transition: none; }
  .sgg-shop-catalog--storefront .sgg-shop-departments__list { scroll-behavior: auto; }
}


/* Category cards: plain Scandinavian styling, authentic WooCommerce photography only. */
.sgg-shop-catalog--storefront .sgg-shop-department { overflow: hidden; }
.sgg-shop-catalog--storefront .sgg-shop-department__art { height: 128px; }
.sgg-shop-catalog--storefront .sgg-shop-department.no-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 215px;
  padding: 20px;
  border-color: #e4e4e0;
  background: #f4f4f1;
}
.sgg-shop-catalog--storefront .sgg-shop-department.no-photo .sgg-shop-department__body { display: grid; gap: 7px; }
.sgg-shop-catalog--storefront .sgg-shop-department.no-photo .sgg-shop-department__arrow {
  position: absolute;
  top: 17px;
  right: 17px;
  border: 0;
  background: #fff;
}
.sgg-shop-catalog--storefront .sgg-shop-department__art img {
  display: block; width: 100%; height: 100%; object-fit: cover; padding: 0;
}
.sgg-shop-catalog--taxonomy .sgg-shop-listing .sgg-shop-toolbar { margin-top: 0; }
.sgg-shop-no-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  padding: 22px 0 30px;
  border-top: 1px solid #e8e8e5;
}
.sgg-shop-no-results p { margin: 0; font-size: 14px; line-height: 1.6; color: #5e6262; }
.sgg-shop-no-results a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 17px; background: #fff; border: 1px solid #dadbd8; border-radius: 999px; color: #202222; text-decoration: none; font: 750 13px/1.4 'Figtree',sans-serif; }
.sgg-shop-no-results a:hover { border-color: #555; color: #202222; }
@media(max-width:790px) {
  .sgg-shop-catalog--storefront .sgg-shop-department__art { height: 119px; }
  .sgg-shop-catalog--storefront .sgg-shop-department.no-photo { min-height: 195px; }
}
@media(max-width:530px) {
  .sgg-shop-catalog--storefront .sgg-shop-department.no-photo { min-height: 184px; padding: 16px; }
  .sgg-shop-no-results { align-items: flex-start; }
}

/* Editorial SEO copy below native product category results. Keeps the buying
   experience above the article, with the site's Figtree typography. */
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy {
  max-width: 950px;
  margin: clamp(40px, 5vw, 76px) auto 12px;
  padding: clamp(22px, 3vw, 44px) 0 0;
  border-top: 1px solid #e6e4df;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  line-height: 1.76;
  color: #484b4b;
}
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy > :first-child,
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy .term-description > :first-child { margin-top: 0; }
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy :is(h2,h3) {
  color: #1b1d1e;
  font-family: "Figtree", sans-serif;
  letter-spacing: -.035em;
  line-height: 1.22;
}
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy h2 {
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 850;
  margin: 40px 0 13px;
}
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  margin: 25px 0 9px;
}
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy p { margin: 0 0 17px; }
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy a {
  color: #1b1d1e;
  font-weight: 750;
  text-decoration-line: underline;
  text-decoration-color: #bbb9b4;
  text-underline-offset: 3px;
}
.sgg-shop-catalog--taxonomy .sgg-shop-archive-copy a:hover { text-decoration-color: #1b1d1e; }
@media (max-width: 640px) {
  .sgg-shop-catalog--taxonomy .sgg-shop-archive-copy {
    margin-top: 35px;
    padding-top: 26px;
    font-size: 14px;
    line-height: 1.72;
  }
  .sgg-shop-catalog--taxonomy .sgg-shop-archive-copy h2 { margin-top: 30px; }
}
