/* Flowcat product archive
 * A warm, product-led shop surface aligned with the homepage design system.
 */

body.post-type-archive-product {
  --flowcat-ink: #2B2620;
  --flowcat-brown: #6F4E37;
  --flowcat-accent: #8E5E43;
  --flowcat-muted: #74655A;
  --flowcat-ivory: #FAF6F0;
  --flowcat-paper: #FFFFFF;
  --flowcat-band: #F1E8DC;
  --flowcat-line: #E3D5C6;
  color: var(--flowcat-ink) !important;
  background: var(--flowcat-ivory) !important;
}

/* Header */
body.post-type-archive-product #header [data-row="middle"] {
  --height: 96px;
  height: 96px !important;
  background: var(--flowcat-band) !important;
  border-bottom: 1px solid var(--flowcat-line) !important;
}
body.post-type-archive-product #header [data-row="middle"] > .ct-container {
  grid-template-columns: 1fr auto 1fr !important;
  height: 96px !important;
  align-items: center !important;
}
body.post-type-archive-product #header .site-branding {
  height: 96px !important;
  margin-left: 17px !important;
  align-items: center !important;
}
body.post-type-archive-product #header [data-id="logo"] {
  --logo-max-height: 30px !important;
}
body.post-type-archive-product #header .site-logo-container {
  display: flex !important;
  height: auto !important;
  align-items: center !important;
}
body.post-type-archive-product #header .site-logo-container img {
  display: block !important;
  width: auto !important;
  max-width: 190px !important;
  max-height: 30px !important;
}
body.post-type-archive-product #header .ct-menu-link {
  position: relative !important;
  height: 96px !important;
  color: var(--flowcat-ink) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 1.8px !important;
  transition: color 180ms ease, transform 180ms ease !important;
}
body.post-type-archive-product #header .ct-menu-link::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 22px !important;
  left: 0 !important;
  height: 1.5px !important;
  background: var(--flowcat-accent) !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 180ms ease !important;
}
body.post-type-archive-product #header .ct-menu-link:hover,
body.post-type-archive-product #header .ct-menu-link:focus-visible {
  color: var(--flowcat-brown) !important;
  transform: translateY(-1px) !important;
}
body.post-type-archive-product #header .ct-menu-link:hover::after,
body.post-type-archive-product #header .ct-menu-link:focus-visible::after {
  transform: scaleX(1) !important;
}
body.post-type-archive-product #header .ct-header-search {
  display: none !important;
}
body.post-type-archive-product #header .ct-header-account {
  display: inline-flex !important;
  margin-right: 16px !important;
  align-items: center !important;
}
body.post-type-archive-product #header .ct-account-item .ct-media-container,
body.post-type-archive-product #header .ct-account-item .ct-icon {
  display: none !important;
}
body.post-type-archive-product #header .ct-account-item::before {
  content: "" !important;
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  background-color: var(--flowcat-ink) !important;
  -webkit-mask: url("../images/account.svg") center / contain no-repeat !important;
  mask: url("../images/account.svg") center / contain no-repeat !important;
}
body.post-type-archive-product #header .ct-header-cart,
body.post-type-archive-product #header .ct-account-item {
  color: var(--flowcat-ink) !important;
}
body.post-type-archive-product #header .ct-dynamic-count-cart {
  color: #FFFFFF !important;
  background: var(--flowcat-brown) !important;
  border-radius: 999px !important;
}

/* Header popovers */
body.post-type-archive-product #header .ct-header-account-dropdown,
body.post-type-archive-product #header .ct-cart-content {
  --dropdown-background-color: var(--flowcat-ivory);
  --mini-cart-background-color: var(--flowcat-ivory);
  --dropdown-items-background-hover-color: var(--flowcat-band);
  --theme-text-color: var(--flowcat-ink);
  --theme-link-initial-color: var(--flowcat-ink);
  --theme-link-hover-color: var(--flowcat-brown);
  color: var(--flowcat-ink) !important;
  background: var(--flowcat-ivory) !important;
  border: 1px solid var(--flowcat-line) !important;
  border-radius: 4px !important;
  box-shadow: 0 18px 44px rgba(43, 38, 32, 0.16) !important;
}
body.post-type-archive-product #header .ct-header-account-dropdown {
  --dropdown-width: 320px;
  overflow: hidden !important;
}
body.post-type-archive-product #header .ct-account-welcome,
body.post-type-archive-product #header .ct-cart-content .cart-empty {
  color: var(--flowcat-ink) !important;
  background: var(--flowcat-band) !important;
  border-color: var(--flowcat-line) !important;
}
body.post-type-archive-product #header .ct-header-account-dropdown a,
body.post-type-archive-product #header .ct-account-user-box,
body.post-type-archive-product #header .ct-account-user-box span,
body.post-type-archive-product #header .ct-cart-content,
body.post-type-archive-product #header .ct-cart-content a:not(.button) {
  color: var(--flowcat-ink) !important;
}
body.post-type-archive-product #header .ct-cart-content {
  width: 320px !important;
  padding: 22px !important;
}
body.post-type-archive-product #header .ct-cart-content .button {
  color: #FFFFFF !important;
  background: var(--flowcat-brown) !important;
  border-radius: 999px !important;
}

/* Archive title */
body.post-type-archive-product .hero-section {
  display: flex !important;
  min-height: 280px !important;
  height: 280px !important;
  padding: 0 24px !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--flowcat-band) !important;
  border-bottom: 1px solid var(--flowcat-line) !important;
}
body.post-type-archive-product .hero-section .entry-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.post-type-archive-product .hero-section .page-title {
  margin: 0 !important;
  color: var(--flowcat-ink) !important;
  font-family: "League Spartan", sans-serif !important;
  font-size: 56px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}
body.post-type-archive-product .hero-section .page-title::before {
  content: "Flowcat Collection";
  display: block;
  margin-bottom: 16px;
  color: var(--flowcat-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Main shop surface */
body.post-type-archive-product #main > .ct-container {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding-top: 64px !important;
  padding-bottom: 80px !important;
}
body.post-type-archive-product #main > .ct-container > aside {
  display: none !important;
}
body.post-type-archive-product #main > .ct-container > section {
  width: 100% !important;
  min-width: 0 !important;
}
body.post-type-archive-product .flowcat-shop-intro {
  max-width: 760px;
  margin: 0 0 42px;
}
body.post-type-archive-product .flowcat-shop-eyebrow {
  margin: 0 0 12px;
  color: var(--flowcat-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
}
body.post-type-archive-product .flowcat-shop-intro h2 {
  margin: 0 0 14px;
  color: var(--flowcat-ink);
  font-family: "League Spartan", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
body.post-type-archive-product .flowcat-shop-intro > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--flowcat-muted);
  font-size: 17px;
  line-height: 1.65;
}
body.post-type-archive-product .woo-listing-top {
  margin-bottom: 26px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--flowcat-line) !important;
}
body.post-type-archive-product .woocommerce-result-count {
  color: var(--flowcat-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
}
body.post-type-archive-product .woocommerce-ordering {
  margin-left: auto !important;
}
body.post-type-archive-product .woocommerce-ordering select {
  min-width: 220px !important;
  height: 44px !important;
  padding: 0 42px 0 14px !important;
  color: var(--flowcat-ink) !important;
  background-color: var(--flowcat-paper) !important;
  border: 1px solid var(--flowcat-line) !important;
  border-radius: 4px !important;
}

/* Product showcase */
body.post-type-archive-product ul.products {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
}
body.post-type-archive-product ul.products > li.product {
  display: flex !important;
  height: 560px !important;
  flex-flow: column wrap !important;
  align-content: flex-start !important;
  column-gap: 52px !important;
  width: 100% !important;
  min-height: 560px !important;
  margin: 0 !important;
  padding: 28px !important;
  color: var(--flowcat-ink) !important;
  background: var(--flowcat-paper) !important;
  border: 1px solid var(--flowcat-line) !important;
  border-radius: 6px !important;
  box-shadow: 0 18px 46px rgba(43, 38, 32, 0.08) !important;
}
body.post-type-archive-product ul.products > li.product figure {
  flex: 0 0 100% !important;
  width: calc(46% - 26px) !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
}
body.post-type-archive-product ul.products > li.product .ct-media-container {
  display: flex !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: var(--flowcat-ivory) !important;
  border-radius: 4px !important;
}
body.post-type-archive-product ul.products > li.product img {
  width: 100% !important;
  height: 100% !important;
  padding: 24px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  transition: transform 260ms ease !important;
}
body.post-type-archive-product ul.products > li.product .ct-media-container:hover img,
body.post-type-archive-product ul.products > li.product .ct-media-container:focus-visible img {
  transform: scale(1.035) !important;
}
body.post-type-archive-product ul.products > li.product .ct-woo-card-rating {
  display: none !important;
}
body.post-type-archive-product ul.products > li.product .woocommerce-loop-product__title {
  flex: 0 0 auto !important;
  width: calc(54% - 26px) !important;
  margin: 58px 0 18px !important;
  color: var(--flowcat-ink) !important;
  font-family: "League Spartan", sans-serif !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}
body.post-type-archive-product ul.products > li.product .woocommerce-loop-product__title a {
  color: var(--flowcat-ink) !important;
}
body.post-type-archive-product ul.products > li.product .woocommerce-loop-product__title a:hover,
body.post-type-archive-product ul.products > li.product .woocommerce-loop-product__title a:focus-visible {
  color: var(--flowcat-brown) !important;
}
body.post-type-archive-product ul.products > li.product .price {
  flex: 0 0 auto !important;
  width: calc(54% - 26px) !important;
  margin: 0 0 18px !important;
  color: var(--flowcat-brown) !important;
  font-family: "League Spartan", sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
body.post-type-archive-product ul.products > li.product .entry-meta {
  flex: 0 0 auto !important;
  width: calc(54% - 26px) !important;
  margin: 0 0 28px !important;
  color: var(--flowcat-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 1.1px !important;
  text-transform: uppercase !important;
}
body.post-type-archive-product ul.products > li.product .entry-meta a {
  color: var(--flowcat-muted) !important;
}
body.post-type-archive-product .flowcat-product-cta {
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  justify-self: start;
  width: 166px !important;
  min-width: 166px;
  padding: 12px 24px;
  color: var(--flowcat-brown) !important;
  background: var(--flowcat-paper) !important;
  border: 1.5px solid var(--flowcat-brown) !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}
body.post-type-archive-product .flowcat-product-cta:hover,
body.post-type-archive-product .flowcat-product-cta:focus-visible {
  color: #FFFFFF !important;
  background: var(--flowcat-brown) !important;
}

/* Footer: mirror the homepage's final warm-sand two-row treatment. */
html body.post-type-archive-product footer.ct-footer,
html body.post-type-archive-product footer.ct-footer [data-row] {
  color: var(--flowcat-ink) !important;
  background: #EFE5D9 !important;
}
html body.post-type-archive-product footer.ct-footer {
  box-shadow: 0 -6px 18px rgba(43, 38, 32, 0.06) !important;
}
html body.post-type-archive-product footer.ct-footer a {
  color: var(--flowcat-ink) !important;
}
html body.post-type-archive-product footer.ct-footer a:hover,
html body.post-type-archive-product footer.ct-footer a:focus-visible {
  color: var(--flowcat-brown) !important;
}
html body.post-type-archive-product footer.ct-footer .ct-footer-copyright {
  color: #74665D !important;
}
html body.post-type-archive-product footer.ct-footer .ct-icon-container {
  color: var(--flowcat-brown) !important;
  background: #FFFFFF !important;
  border: 1px solid #D8C7B6 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
html body.post-type-archive-product footer.ct-footer .ct-icon,
html body.post-type-archive-product footer.ct-footer svg {
  fill: var(--flowcat-brown) !important;
}
html body.post-type-archive-product footer.ct-footer [data-row="middle"] {
  display: none !important;
}
html body.post-type-archive-product footer.ct-footer [data-row="top"],
html body.post-type-archive-product footer.ct-footer [data-row="bottom"] {
  border-top: 1px solid #D8C7B6 !important;
}
html body.post-type-archive-product footer.ct-footer [data-row="top"] .ct-container {
  padding-top: 40px !important;
  padding-bottom: 28px !important;
}
html body.post-type-archive-product footer.ct-footer [data-row="bottom"] .ct-container {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

@media (max-width: 1023px) {
  body.post-type-archive-product #header [data-device="mobile"] [data-row="middle"] {
    --height: 72px;
    height: 72px !important;
    background: var(--flowcat-band) !important;
  }
  body.post-type-archive-product #header [data-device="mobile"] [data-row="middle"] > .ct-container,
  body.post-type-archive-product #header [data-device="mobile"] .site-branding {
    height: 72px !important;
    align-items: center !important;
  }
  body.post-type-archive-product #header [data-device="mobile"] [data-row="middle"] > .ct-container {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  body.post-type-archive-product #header [data-device="mobile"] [data-id="logo"] {
    --logo-max-height: 28px !important;
  }
  body.post-type-archive-product #header [data-device="mobile"] .site-logo-container img {
    width: auto !important;
    max-width: 178px !important;
    max-height: 28px !important;
  }
  body.post-type-archive-product #header .ct-header-trigger {
    color: var(--flowcat-brown) !important;
  }
  body.post-type-archive-product #offcanvas.ct-panel {
    background: rgba(43, 38, 32, 0.48) !important;
  }
  body.post-type-archive-product #offcanvas .ct-panel-inner {
    --side-panel-width: min(calc(100vw - 24px), 420px);
    width: min(calc(100vw - 24px), 420px) !important;
    max-width: 420px !important;
    color: var(--flowcat-ink) !important;
    background: var(--flowcat-ivory) !important;
    border-left: 1px solid var(--flowcat-line) !important;
    box-shadow: -18px 0 48px rgba(43, 38, 32, 0.18) !important;
  }
  body.post-type-archive-product #offcanvas .ct-panel-actions {
    top: 20px !important;
    right: 20px !important;
  }
  body.post-type-archive-product #offcanvas .ct-toggle-close {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 11px !important;
    color: var(--flowcat-brown) !important;
    background: #FFFDF9 !important;
    border: 1px solid #DCCCBD !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(43, 38, 32, 0.08) !important;
  }
  body.post-type-archive-product #offcanvas .ct-toggle-close .ct-icon {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    color: inherit !important;
    fill: currentColor !important;
    opacity: 1 !important;
  }
  body.post-type-archive-product #offcanvas .ct-toggle-close:hover {
    color: #FFFFFF !important;
    background: var(--flowcat-brown) !important;
    border-color: var(--flowcat-brown) !important;
  }
  body.post-type-archive-product #offcanvas .ct-panel-content-inner {
    width: 100% !important;
    min-height: 100% !important;
    padding: 42px 28px 28px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    color: var(--flowcat-ink) !important;
  }
  body.post-type-archive-product #offcanvas [data-id="offcanvas-logo"] {
    width: 164px !important;
    max-width: calc(100% - 52px) !important;
    margin: 0 0 32px !important;
  }
  body.post-type-archive-product #offcanvas [data-id="offcanvas-logo"] img {
    content: url("https://flowcat.store/wp-content/uploads/2026/08/flowcat-logo-transparent.png") !important;
    width: 164px !important;
    height: auto !important;
  }
  body.post-type-archive-product #offcanvas .mobile-menu .menu-item {
    width: 100% !important;
    border-bottom: 1px solid var(--flowcat-line) !important;
  }
  body.post-type-archive-product #offcanvas .mobile-menu,
  body.post-type-archive-product #offcanvas .mobile-menu > ul {
    width: 100% !important;
    margin: 0 !important;
  }
  body.post-type-archive-product #offcanvas .mobile-menu .menu-item:first-child {
    border-top: 1px solid var(--flowcat-line) !important;
  }
  body.post-type-archive-product #offcanvas .mobile-menu .ct-menu-link {
    width: 100% !important;
    min-height: 56px !important;
    padding: 0 4px !important;
    justify-content: flex-start !important;
    color: var(--flowcat-ink) !important;
    font-family: "League Spartan", sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
  body.post-type-archive-product #offcanvas .mobile-menu .current-menu-item > .ct-menu-link,
  body.post-type-archive-product #offcanvas .mobile-menu .ct-menu-link:hover {
    padding-left: 16px !important;
    color: var(--flowcat-brown) !important;
    background: var(--flowcat-band) !important;
    box-shadow: inset 3px 0 0 var(--flowcat-accent) !important;
  }
  body.post-type-archive-product #offcanvas .ct-header-text {
    width: 100% !important;
    margin-top: auto !important;
    padding: 24px 4px 0 !important;
    color: var(--flowcat-muted) !important;
    border-top: 1px solid var(--flowcat-line) !important;
    text-align: left !important;
  }
  body.post-type-archive-product #offcanvas .ct-header-text h5 {
    margin: 0 0 10px !important;
    color: var(--flowcat-accent) !important;
    font-family: "League Spartan", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
  }
  body.post-type-archive-product #offcanvas .ct-header-text p {
    margin: 0 !important;
    color: var(--flowcat-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-product .hero-section {
    min-height: 220px !important;
    height: 220px !important;
    padding: 0 20px !important;
  }
  body.post-type-archive-product .hero-section .page-title {
    font-size: 42px !important;
  }
  body.post-type-archive-product .hero-section .page-title::before {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 1.8px;
  }
  body.post-type-archive-product #main > .ct-container {
    width: auto !important;
    margin: 0 20px !important;
    padding-top: 38px !important;
    padding-bottom: 56px !important;
  }
  body.post-type-archive-product .flowcat-shop-intro {
    margin-bottom: 30px;
  }
  body.post-type-archive-product .flowcat-shop-intro h2 {
    font-size: 30px;
  }
  body.post-type-archive-product .flowcat-shop-intro > p:last-child {
    font-size: 15px;
    line-height: 1.6;
  }
  body.post-type-archive-product .woo-listing-top {
    margin-bottom: 20px !important;
    padding-top: 20px !important;
  }
  body.post-type-archive-product .woocommerce-ordering {
    width: 100% !important;
    margin: 0 !important;
  }
  body.post-type-archive-product .woocommerce-ordering select {
    width: 100% !important;
    min-width: 0 !important;
  }
  body.post-type-archive-product ul.products > li.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "media"
      "title"
      "price"
      "meta"
      "action";
    gap: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 16px !important;
  }
  body.post-type-archive-product ul.products > li.product figure {
    width: 100% !important;
    height: 330px !important;
    min-height: 330px !important;
    margin-bottom: 24px !important;
  }
  body.post-type-archive-product ul.products > li.product img {
    padding: 18px !important;
  }
  body.post-type-archive-product ul.products > li.product .woocommerce-loop-product__title {
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 28px !important;
  }
  body.post-type-archive-product ul.products > li.product .price {
    width: 100% !important;
    margin-bottom: 14px !important;
    font-size: 23px !important;
  }
  body.post-type-archive-product ul.products > li.product .entry-meta {
    width: 100% !important;
    margin-bottom: 22px !important;
  }
  body.post-type-archive-product .flowcat-product-cta {
    width: 100% !important;
  }
  html body.post-type-archive-product footer.ct-footer [data-row="top"] .ct-container {
    padding-top: 28px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 479px) {
  body.post-type-archive-product #offcanvas .ct-panel-content-inner {
    padding: 36px 24px 24px !important;
  }
  body.post-type-archive-product #offcanvas [data-id="offcanvas-logo"],
  body.post-type-archive-product #offcanvas [data-id="offcanvas-logo"] img {
    width: 148px !important;
  }
}

