.jjc-rfq-panel {
  margin: 24px 0 18px;
  padding: 22px;
  border: 1px solid #dfe4e8;
  border-left: 4px solid #c43b32;
  border-radius: 6px;
  background: #fff;
  color: #20262c;
}

.jjc-rfq-panel h2,
.jjc-rfq-dialog h2 {
  margin: 0 0 8px;
  color: #171b1f;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.jjc-rfq-panel p { margin: 0 0 14px; color: #4e5963; }
.jjc-rfq-benefits { margin: 0 0 18px; padding: 0; list-style: none; }
.jjc-rfq-benefits li { position: relative; margin: 7px 0; padding-left: 22px; color: #303941; }
.jjc-rfq-benefits li::before { content: '\2713'; position: absolute; left: 0; color: #17745a; font-weight: 700; }
.jjc-rfq-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.jjc-rfq-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.jjc-rfq-button--primary { background: #c43b32; color: #fff !important; border-color: #c43b32; }
.jjc-rfq-button--primary:hover, .jjc-rfq-button--primary:focus { background: #a92e27; border-color: #a92e27; }
.jjc-rfq-button--secondary { background: #fff; color: #1b604d !important; border-color: #1b604d; }
.jjc-rfq-button--secondary:hover, .jjc-rfq-button--secondary:focus { background: #eef7f4; }
.jjc-rfq-artwork-link { margin-top: 12px; padding: 2px 0; border: 0; background: transparent; color: #4b5660; text-decoration: underline; cursor: pointer; }

.jjc-rfq-modal[hidden] { display: none; }
.jjc-rfq-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 22px; }
.jjc-rfq-backdrop { position: absolute; inset: 0; background: rgba(19, 25, 29, .68); }
.jjc-rfq-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; padding: 30px; border-radius: 7px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .24); }
.jjc-rfq-open { overflow: hidden; }
.jjc-rfq-close { position: sticky; z-index: 2; top: -16px; display: inline-flex; float: right; align-items: center; gap: 5px; min-width: 84px; min-height: 44px; margin: -16px -16px 8px 12px; padding: 8px 12px; border: 1px solid #cbd2d7; border-radius: 22px; background: #fff; color: #242a2f; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(18, 25, 30, .12); }
.jjc-rfq-close > span:first-child { font-size: 25px; font-weight: 400; line-height: .8; }
.jjc-rfq-close:hover, .jjc-rfq-close:focus { border-color: #c43b32; background: #fff5f3; color: #a92e27; outline: 2px solid rgba(196, 59, 50, .16); outline-offset: 2px; }
.jjc-rfq-dialog__header { padding-right: 42px; margin-bottom: 22px; }
.jjc-rfq-dialog__header p { margin: 0; color: #5a646d; }
.jjc-rfq-eyebrow { display: block; margin-bottom: 5px; color: #a92e27; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.jjc-rfq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jjc-rfq-form label { display: block; margin: 0; color: #2b3339; font-size: 14px; font-weight: 600; }
.jjc-rfq-form label > span { display: block; margin-bottom: 6px; }
.jjc-rfq-form input, .jjc-rfq-form textarea { width: 100%; margin: 0; border: 1px solid #cbd2d7; border-radius: 4px; background: #fff; color: #20262c; box-shadow: none; }
.jjc-rfq-form input { min-height: 44px; }
.jjc-rfq-form input:focus, .jjc-rfq-form textarea:focus { border-color: #206c58; outline: 2px solid rgba(32, 108, 88, .18); }
.jjc-rfq-field--full { margin-top: 16px !important; }
.jjc-rfq-upload { padding: 14px; border: 1px dashed #aab4bb; border-radius: 4px; background: #f8fafb; }
.jjc-rfq-upload small { display: block; margin-top: 7px; color: #68737d; font-weight: 400; }
.jjc-rfq-privacy { margin: 14px 0 12px; color: #68737d; font-size: 13px; }
.jjc-rfq-submit { width: 100%; }
.jjc-rfq-honeypot { position: absolute !important; left: -9999px !important; }
.jjc-rfq-notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 4px; }
.jjc-rfq-notice--error { border: 1px solid #e0aaa6; background: #fff2f1; color: #81251f; }
.jjc-rfq-toast { position: fixed; z-index: 1000000; right: 22px; bottom: 22px; max-width: 380px; padding: 15px 18px; border-radius: 5px; background: #17624d; color: #fff; box-shadow: 0 12px 36px rgba(0, 0, 0, .2); }
.jjc-rfq-mobile-bar { display: none; }

@media (max-width: 767px) {
  body.single-product { padding-bottom: 72px; }
  .jjc-rfq-panel { padding: 18px; }
  .jjc-rfq-panel h2, .jjc-rfq-dialog h2 { font-size: 21px; }
  .jjc-rfq-actions .jjc-rfq-button { flex: 1 1 100%; }
  .jjc-rfq-modal { align-items: end; height: 100dvh; min-height: 0; padding: max(10px, env(safe-area-inset-top)) 0 0; }
  .jjc-rfq-dialog { width: 100%; max-height: calc(100dvh - max(10px, env(safe-area-inset-top))); padding: 14px 18px 24px; border-radius: 7px 7px 0 0; }
  .jjc-rfq-close { top: 0; min-width: 88px; margin: 0 -8px 10px 12px; }
  .jjc-rfq-grid { grid-template-columns: 1fr; gap: 13px; }
  .jjc-rfq-mobile-bar { position: fixed; z-index: 99990; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px; min-height: 64px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #d9dfe3; background: #fff; box-shadow: 0 -8px 24px rgba(18, 25, 30, .1); }
  .jjc-rfq-mobile-bar .jjc-rfq-button { min-width: 0; padding: 10px 8px; font-size: 14px; }
  .jjc-rfq-toast { right: 12px; bottom: 82px; left: 12px; }
}

/* RFQ 1.1 unified inquiry states and Contact form. */
.jjc-rfq-contact {
  padding: 28px;
  border: 1px solid #dfe4e8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 28, 34, .08);
}

.jjc-rfq-context {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e9ec;
}

.jjc-rfq-context h2 {
  margin: 0 0 8px;
  color: #171b1f;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.jjc-rfq-context p { margin: 0; color: #59646d; }
.jjc-rfq-grid .jjc-rfq-field--full { grid-column: 1 / -1; margin-top: 0 !important; }
.jjc-rfq-form [aria-invalid="true"] { border-color: #b32f27; outline: 2px solid rgba(179, 47, 39, .14); }
.jjc-rfq-form button:disabled { cursor: wait; opacity: .66; }

.jjc-rfq-status {
  margin: 16px 0 12px;
  padding: 13px 14px;
  border: 1px solid #cbd2d7;
  border-radius: 5px;
  background: #f7f9fa;
  color: #263039;
  font-size: 14px;
  line-height: 1.45;
}

.jjc-rfq-status p { margin: 0; }
.jjc-rfq-status strong { display: block; margin-top: 5px; }
.jjc-rfq-status--progress { border-color: #b9c7cf; background: #f3f7f9; }
.jjc-rfq-status--success { border-color: #8dbbab; background: #eff8f4; color: #155845; }
.jjc-rfq-status--error { border-color: #e0aaa6; background: #fff2f1; color: #81251f; }
.jjc-rfq-recovery { margin-top: 6px !important; }
.jjc-rfq-status--error a { color: #81251f; font-weight: 700; text-decoration: underline; }

.jjc-rfq-file {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: #354149;
  font-size: 13px;
  font-weight: 600;
}

.jjc-rfq-file-remove {
  margin-top: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #8b2c26;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 767px) {
  .jjc-rfq-contact { padding: 20px 16px; }
  .jjc-rfq-context h2 { font-size: 21px; }
}

/* Visual system 1.2: quiet, procurement-focused B2B interface. */
:root {
  --jjc-ink: #17202a;
  --jjc-muted: #5d6872;
  --jjc-line: #dfe4e8;
  --jjc-page: #f5f7f8;
  --jjc-surface: #fff;
  --jjc-soft: #f2f5f6;
  --jjc-accent: #c8102e;
  --jjc-accent-dark: #9f0d25;
  --jjc-focus: #1261a0;
}

body.post-type-archive-product,
body.tax-product_cat,
body.single-product,
body.page-id-870 {
  background: var(--jjc-page);
  color: var(--jjc-ink);
}

body :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--jjc-focus);
  outline-offset: 3px;
}

.ast-archive-entry-banner h1,
.page-id-870 h1.elementor-heading-title {
  letter-spacing: 0;
  line-height: 1.15;
}

.ast-archive-entry-banner h1 {
  font-size: 42px;
}

.ast-archive-entry-banner p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
  line-height: 1.65;
}

.page-id-870 h1.elementor-heading-title {
  font-size: 48px;
}

.woocommerce .woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper {
  color: var(--jjc-muted);
  font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb a,
.ast-breadcrumbs-wrapper a {
  color: var(--jjc-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.woocommerce .woocommerce-breadcrumb a:hover,
.ast-breadcrumbs-wrapper a:hover {
  color: var(--jjc-accent);
}

.widget-area .widget {
  margin-bottom: 28px;
}

.widget-area .wp-block-heading {
  margin-bottom: 14px;
  color: var(--jjc-ink);
  font-size: 17px;
  line-height: 1.35;
}

.widget-area .wp-block-search__inside-wrapper {
  min-height: 46px;
  padding: 3px;
  border: 1px solid #cbd3d8;
  border-radius: 4px;
  background: var(--jjc-surface);
}

.widget-area .wp-block-search__input {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--jjc-ink);
}

.widget-area .wp-block-search__button {
  width: 40px;
  min-width: 40px;
  min-height: 38px;
  margin: 0;
  padding: 7px;
  border: 0;
  border-radius: 3px;
  background: var(--jjc-accent);
  color: #fff;
}

.widget-area .wp-block-search__button:hover {
  background: var(--jjc-accent-dark);
}

.widget-area .wc-block-product-categories-list {
  margin: 0;
  padding: 0;
}

.widget-area .wc-block-product-categories-list-item {
  border-bottom: 1px solid var(--jjc-line);
}

.widget-area .wc-block-product-categories-list-item a {
  display: block;
  padding: 11px 4px;
  color: #35414a;
  line-height: 1.4;
}

.widget-area .wc-block-product-categories-list--depth-1 {
  margin-left: 10px;
  padding-left: 14px;
  border-left: 2px solid #d9dfe3;
}

.widget-area .wc-block-product-categories-list-item a:hover {
  color: var(--jjc-accent);
}

.woocommerce .woocommerce-result-count {
  color: var(--jjc-muted);
}

.woocommerce .woocommerce-ordering select {
  min-height: 44px;
  padding: 8px 38px 8px 12px;
  border: 1px solid #cbd3d8;
  border-radius: 4px;
  background-color: var(--jjc-surface);
  color: var(--jjc-ink);
}

.woocommerce ul.products li.product {
  overflow: hidden;
  padding-bottom: 16px;
  border: 1px solid var(--jjc-line);
  border-radius: 6px;
  background: var(--jjc-surface);
  box-shadow: 0 2px 8px rgba(23, 32, 42, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.woocommerce ul.products li.product:hover {
  border-color: #bdc7cd;
  box-shadow: 0 10px 24px rgba(23, 32, 42, .1);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  border-bottom: 1px solid var(--jjc-line);
  background: #fff;
}

.woocommerce ul.products li.product img {
  aspect-ratio: 1;
  margin: 0;
  object-fit: cover;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
  padding: 14px 16px 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 44px;
  margin: 0;
  color: var(--jjc-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.single-product div.product .woocommerce-product-gallery {
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--jjc-line);
  border-radius: 6px;
  background: var(--jjc-surface);
}

.single-product .summary .product_title {
  margin-bottom: 14px;
  color: var(--jjc-ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.single-product .woocommerce-product-details__short-description {
  color: #3f4a53;
  line-height: 1.65;
}

.single-product .jjc-product-specifications h2 {
  margin: 26px 0 14px;
  color: var(--jjc-ink);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.single-product .jjc-product-specifications table {
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--jjc-line);
  border-radius: 5px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--jjc-surface);
}

.single-product .jjc-product-specifications th,
.single-product .jjc-product-specifications td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--jjc-line);
  color: #3f4a53;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.single-product .jjc-product-specifications th {
  width: 34%;
  background: var(--jjc-soft);
  color: var(--jjc-ink);
  font-weight: 600;
}

.single-product .jjc-product-specifications tr:last-child th,
.single-product .jjc-product-specifications tr:last-child td {
  border-bottom: 0;
}

.jjc-rfq-panel,
.jjc-rfq-contact {
  border-color: var(--jjc-line);
  border-radius: 6px;
  background: var(--jjc-surface);
  box-shadow: 0 8px 24px rgba(23, 32, 42, .07);
}

.jjc-rfq-form input:not([type=hidden]):not([type=file]),
.jjc-rfq-form textarea,
.jjc-rfq-form select {
  min-height: 46px;
  border: 1px solid #c7d0d6;
  border-radius: 4px;
  background: #fff;
  color: var(--jjc-ink);
}

.jjc-rfq-form textarea {
  min-height: 112px;
}

.jjc-rfq-button,
.elementor-button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button {
  min-height: 44px;
  border-radius: 4px;
  letter-spacing: 0;
}

.jjc-rfq-button--primary,
.jjc-rfq-submit {
  background: var(--jjc-accent);
}

.jjc-rfq-button--primary:hover,
.jjc-rfq-submit:hover {
  background: var(--jjc-accent-dark);
}

@media (max-width: 767px) {
  .ast-archive-entry-banner h1 { font-size: 32px; }
  .ast-archive-entry-banner p { font-size: 15px; line-height: 1.55; }
  .page-id-870 h1.elementor-heading-title { font-size: 36px; }
  .woocommerce ul.products li.product { padding-bottom: 12px; }
  .woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 12px 12px 0; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 40px; font-size: 14px; }
  .single-product .summary .product_title { font-size: 29px; }
  .single-product .jjc-product-specifications h2 { font-size: 24px; }
  .single-product .jjc-product-specifications th,
  .single-product .jjc-product-specifications td { padding: 10px; font-size: 13px; }
  .single-product .jjc-product-specifications th { width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product {
    transition: none;
  }
}

/* Visual system 1.2.1: mobile heading specificity and search action. */
@media (max-width: 767px) {
  body.post-type-archive-product .ast-archive-entry-banner h1,
  body.tax-product_cat .ast-archive-entry-banner h1 { font-size: 32px !important; }
  body.page-id-870 .elementor-widget-heading h1.elementor-heading-title { font-size: 32px !important; }
  body.single-product div.product .summary .product_title { font-size: 29px !important; }
}

body.woocommerce .widget-area .wp-block-search__button {
  background: var(--jjc-accent) !important;
  color: #fff !important;
}

/* Homepage hero and compact desktop navigation, 1.2.3. */
body.home .elementor-element-8586fd1 {
  position: relative;
}

body.home .jjc-home-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: rgba(10, 18, 26, .46);
  color: #fff;
  pointer-events: none;
}

body.home .jjc-home-hero-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  text-align: center;
  pointer-events: none;
}

body.home .jjc-home-hero-eyebrow {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.home .jjc-home-hero-copy h1 {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

body.home .jjc-home-hero-description {
  max-width: 680px;
  margin: 20px auto 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
}

body.home .jjc-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

body.home .jjc-home-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  pointer-events: auto;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

body.home .jjc-home-hero-button--primary {
  background: var(--jjc-accent);
}

body.home .jjc-home-hero-button--primary:hover {
  background: var(--jjc-accent-dark);
  color: #fff;
}

body.home .jjc-home-hero-button--secondary {
  border-color: rgba(255, 255, 255, .88);
  background: rgba(10, 18, 26, .22);
}

body.home .jjc-home-hero-button--secondary:hover {
  border-color: #fff;
  background: #fff;
  color: var(--jjc-ink);
}

@media (min-width: 922px) {
  .ast-below-header-bar {
    height: 48px;
    min-height: 48px !important;
  }

  .ast-above-header-bar {
    height: 32px;
    min-height: 32px !important;
  }

  .ast-primary-header-bar {
    height: 68px;
    min-height: 68px !important;
  }

  .ast-primary-header-bar .site-branding {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-header-bar-navigation,
  .main-header-menu > .menu-item > .menu-link {
    height: 48px;
    min-height: 48px;
  }

  .main-header-menu > .menu-item > .menu-link {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 48px;
  }
}

@media (max-width: 767px) {
  body.home .jjc-home-hero-copy {
    padding: 32px 20px 40px;
  }

  body.home .jjc-home-hero-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  body.home .jjc-home-hero-copy h1 {
    max-width: 560px;
    font-size: 33px;
    line-height: 1.12;
  }

  body.home .jjc-home-hero-description {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
  }

  body.home .jjc-home-hero-actions {
    display: grid;
    width: min(100%, 280px);
    margin: 22px auto 0;
  }

  body.home .jjc-home-hero-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .jjc-home-hero-button {
    transition: none;
  }
}

/* Header overflow and mobile social interaction fixes, 1.2.4. */
@media (min-width: 922px) {
  .ast-below-header-bar .site-below-header-wrap,
  .ast-below-header-bar .ast-builder-grid-row {
    height: 48px;
    min-height: 48px !important;
  }
}

@media (max-width: 921px) {
  #ast-mobile-header .ast-mobile-header-content a.header-social-item,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:hover,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:focus,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:focus-visible,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:active,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:visited {
    color: #0f172a !important;
  }

  #ast-mobile-header .ast-mobile-header-content a.header-social-item svg,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:hover svg,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:focus svg,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:focus-visible svg,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:active svg,
  #ast-mobile-header .ast-mobile-header-content a.header-social-item:visited svg {
    fill: currentColor !important;
  }
}

/* Homepage product category directory, 1.2.5. */
body.home .elementor-element-03fc970 {
  display: none;
}

.jjc-home-categories {
  padding: 76px 24px;
  background: #f5f7f8;
}

.jjc-home-categories-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.jjc-home-categories-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.jjc-home-categories-eyebrow {
  margin: 0 0 10px;
  color: var(--jjc-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.jjc-home-categories-header h2 {
  margin: 0;
  color: var(--jjc-ink);
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}

.jjc-home-categories-header > p:last-child {
  margin: 16px auto 0;
  color: var(--jjc-muted);
  font-size: 17px;
  line-height: 1.6;
}

.jjc-home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.jjc-home-category-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--jjc-line);
  border-radius: 6px;
  background: var(--jjc-surface);
  color: var(--jjc-ink);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(23, 32, 42, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.jjc-home-category-card:hover {
  border-color: #bdc7cd;
  color: var(--jjc-ink);
  box-shadow: 0 10px 24px rgba(23, 32, 42, .1);
  transform: translateY(-2px);
}

.jjc-home-category-media {
  display: block;
  overflow: hidden;
  background: #e9eef0;
}

.jjc-home-category-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .24s ease;
}

.jjc-home-category-card:hover .jjc-home-category-media img {
  transform: scale(1.025);
}

.jjc-home-category-content {
  display: flex;
  min-height: 124px;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.jjc-home-category-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.jjc-home-category-title h3 {
  margin: 0;
  color: var(--jjc-ink);
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
}

.jjc-home-category-title > span {
  flex: 0 0 auto;
  color: var(--jjc-accent);
  font-size: 24px;
  line-height: 1.2;
  transition: transform .18s ease;
}

.jjc-home-category-card:hover .jjc-home-category-title > span {
  transform: translateX(3px);
}

.jjc-home-category-description {
  display: block;
  margin-top: 10px;
  color: var(--jjc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.jjc-home-categories-footer {
  margin-top: 30px;
  text-align: center;
}

.jjc-home-categories-footer a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #aeb8be;
  border-radius: 4px;
  background: #fff;
  color: var(--jjc-ink);
  font-weight: 700;
  text-decoration: none;
}

.jjc-home-categories-footer a:hover {
  border-color: var(--jjc-accent);
  color: var(--jjc-accent);
}

@media (max-width: 921px) {
  .jjc-home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jjc-home-categories {
    padding: 52px 12px;
  }

  .jjc-home-categories-header {
    padding: 0 8px;
  }

  .jjc-home-categories-header h2 {
    font-size: 30px;
  }

  .jjc-home-categories-header > p:last-child {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .jjc-home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
  }

  .jjc-home-category-content {
    min-height: 132px;
    padding: 13px 12px 14px;
  }

  .jjc-home-category-title {
    gap: 6px;
  }

  .jjc-home-category-title h3 {
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.3;
  }

  .jjc-home-category-title > span {
    font-size: 19px;
  }

  .jjc-home-category-description {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  .jjc-home-categories-footer {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jjc-home-category-card,
  .jjc-home-category-media img,
  .jjc-home-category-title > span {
    transition: none;
  }
}

/* Homepage category legacy heading cleanup, 1.2.6. */
body.home .elementor-element-cd7539e {
  display: none;
}


/* Category archive experience, 1.2.8. */
body.tax-product_cat { overflow-x: clip; }
.jjc-category-browser { margin: 0; border: 1px solid #dfe4e8; border-radius: 6px; background: #fff; }
.jjc-category-browser > summary { position: relative; min-height: 48px; padding: 13px 42px 13px 16px; color: #17202a; font-size: 17px; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.jjc-category-browser > summary::-webkit-details-marker { display: none; }
.jjc-category-browser > summary > span::before, .jjc-category-browser > summary > span::after { position: absolute; top: 23px; right: 17px; width: 12px; height: 2px; background: #5d6872; content: ''; }
.jjc-category-browser > summary > span::after { transform: rotate(90deg); transition: transform .18s ease; }
.jjc-category-browser[open] > summary > span::after { transform: rotate(0); }
.jjc-category-nav { padding: 0 12px 12px; border-top: 1px solid #dfe4e8; }
.jjc-category-nav__list { margin: 0; padding: 0; list-style: none; }
.jjc-category-nav__item > a { display: block; padding: 10px; border-left: 3px solid transparent; color: #35414a; font-size: 14px; line-height: 1.4; text-decoration: none !important; }
.jjc-category-nav__list--root > .jjc-category-nav__item { border-bottom: 1px solid #e8ecef; }
.jjc-category-nav__list--root > .jjc-category-nav__item:last-child { border-bottom: 0; }
.jjc-category-nav__list--root > .jjc-category-nav__item > a { font-weight: 650; }
.jjc-category-nav__list--children { margin: 0 0 8px 10px; padding-left: 8px; border-left: 1px solid #dfe4e8; }
.jjc-category-nav__list--children .jjc-category-nav__item > a { padding-top: 8px; padding-bottom: 8px; color: #5d6872; font-size: 13px; }
.jjc-category-nav__item > a:hover { color: #c8102e; }
.jjc-category-nav__item--ancestor > a { color: #17202a; font-weight: 750 !important; }
.jjc-category-nav__item--current > a { border-left-color: #c8102e; background: #fff2f4; color: #c8102e !important; font-weight: 750 !important; }
@media (max-width: 767px) {
  body.tax-product_cat #content > .ast-container, body.tax-product_cat #content .ast-container { display: flex; min-width: 0; flex-direction: column !important; flex-wrap: nowrap !important; }
  body.tax-product_cat #content > .ast-container > #primary, body.tax-product_cat #content .ast-container #primary { display: block !important; width: 100% !important; min-width: 0; max-width: none !important; order: 1 !important; flex: 0 0 auto !important; }
  body.tax-product_cat #content > .ast-container > #secondary, body.tax-product_cat #content .ast-container #secondary { display: block !important; width: 100% !important; min-width: 0; max-width: none !important; order: 2 !important; flex: 0 0 auto !important; margin-top: 28px !important; }
  body.tax-product_cat .jjc-category-browser { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .jjc-category-browser > summary > span::after { transition: none; } }
