/* Shop/catalogue page + WooCommerce product card + archive filters. Ported from src/boutique.css. */
.page-boutique {
  --shop-bg: #f4f7f8;
  --shop-surface: #fbfdfd;
  --shop-surface-strong: #ffffff;
  --shop-soft: #e7f0f2;
  --shop-soft-strong: #d8ebea;
  --shop-teal: #177c77;
  --shop-teal-dark: #0e625f;
  --shop-navy: #102d47;
  --shop-muted: #5a6e7c;
  --shop-line: #cfdee3;
  --shop-radius: 16px;
}

.shop-eyebrow { margin: 0 0 16px; color: var(--shop-teal); font-size: .74rem; font-weight: var(--font-weight-kicker); letter-spacing: .12em; text-transform: uppercase; }
.catalogue-heading h2, .shop-support h2, .shop-hero h1 { margin: 0; font-size: clamp(2.7rem, 3.6vw, 3.75rem); line-height: 1.06; letter-spacing: -.045em; font-weight: var(--font-weight-display); }
.shop-primary-link { width: fit-content; min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; color: #f7fbfb; background: var(--shop-teal); font-weight: var(--font-weight-emphasis); transition: transform .2s ease, background .2s ease; white-space: nowrap; }
.shop-primary-link:hover { background: var(--shop-teal-dark); transform: translateY(-2px); }
.shop-primary-link:active { transform: translateY(0); }
.shop-primary-link svg { width: 18px; height: 18px; }
.shop-hero { width: var(--site-width); min-height: 500px; margin: 24px auto 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); overflow: hidden; border-radius: var(--shop-radius); color: #f5fbfb; background: var(--shop-navy); }
.shop-hero-copy { padding: clamp(42px, 5.5vw, 76px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.shop-hero .shop-eyebrow { color: #79d5ce; }
.shop-hero h1 { max-width: 825px; font-size: clamp(3rem, 5vw, 5.2rem); }
.shop-hero-copy > p:not(.shop-eyebrow) { max-width: 560px; margin: 25px 0 31px; color: #bfd0d8; font-size: 1.06rem; line-height: 1.58; }
.shop-hero .shop-primary-link { background: #218e88; }
.shop-hero .shop-primary-link:hover { color: var(--shop-navy); background: #f6fbfb; }
.shop-hero-facts { width: 100%; margin: 44px 0 0; padding: 25px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.shop-hero-facts > div { padding: 0 17px; border-left: 1px solid rgba(255,255,255,.16); }
.shop-hero-facts > div:first-child { padding-left: 0; border-left: 0; }
.shop-hero-facts dt { color: #fff; font-size: 1.25rem; font-weight: var(--font-weight-emphasis); }
.shop-hero-facts dd { margin: 4px 0 0; color: #91aab5; font-size: .78rem; }
.shop-hero-media { min-height: 500px; position: relative; overflow: hidden; background: #0a2237; }
.shop-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,45,71,.28), transparent 48%), linear-gradient(0deg, rgba(7,29,48,.72), transparent 48%); }
.shop-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero-caption { position: absolute; right: clamp(24px, 4vw, 48px); bottom: clamp(24px, 4vw, 46px); left: clamp(24px, 4vw, 48px); z-index: 1; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-top: 1px solid rgba(255,255,255,.45); }
.shop-hero-caption span { color: #83d9d2; font-size: .72rem; font-weight: var(--font-weight-emphasis); letter-spacing: .1em; text-transform: uppercase; }
.shop-hero-caption strong { max-width: 24ch; font-size: 1.12rem; line-height: 1.25; font-weight: var(--font-weight-emphasis); text-align: right; }
.shop-hero-compact { min-height: 0; padding: clamp(34px, 4.5vw, 58px); display: block; color: var(--shop-navy); border: 1px solid var(--shop-line); background: var(--shop-surface); }
.shop-hero-compact h1 { max-width: none; font-size: clamp(2.7rem, 4.2vw, 4.6rem); }

.shop-catalogue { width: var(--site-width); margin: var(--page-top-space) auto 0; padding: clamp(34px, 4vw, 54px); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: rgba(255,255,255,.62); }
.catalogue-heading { max-width: 790px; }
.catalogue-heading h2 { font-size: clamp(2.5rem, 4.3vw, 4.4rem); }
.catalogue-heading > p:not(.shop-eyebrow) { max-width: 620px; margin: 21px 0 0; color: var(--shop-muted); font-size: 1.06rem; line-height: 1.55; }
.catalogue-toolbar { margin-top: 48px; padding-bottom: 18px; display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--shop-line); }
.shop-search { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--shop-line); border-radius: 12px; background: var(--shop-surface-strong); }
.shop-search:focus-within { border-color: var(--shop-teal); box-shadow: 0 0 0 3px rgba(23,124,119,.11); }
.shop-search svg { width: 20px; height: 20px; color: var(--shop-teal); }
.shop-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--shop-navy); background: transparent; }
.shop-search input::placeholder { color: #6d7f8b; }
.filters-toggle { display: none; height: 50px; padding: 0 15px; align-items: center; gap: 8px; border: 1px solid var(--shop-line); border-radius: 12px; color: var(--shop-navy); background: var(--shop-surface-strong); cursor: pointer; font-weight: var(--font-weight-emphasis); }
.filters-toggle svg { width: 18px; height: 18px; color: var(--shop-teal); }
.result-count { color: var(--shop-muted); font-size: .9rem; white-space: nowrap; }
.catalogue-layout { display: grid; grid-template-columns: 245px 1fr; gap: 38px; padding-top: 32px; }
.shop-filters { align-self: start; position: sticky; top: 96px; }
.filter-title { display: flex; align-items: center; gap: 9px; padding-bottom: 17px; border-bottom: 1px solid var(--shop-line); font-weight: var(--font-weight-emphasis); }
.filter-title svg { width: 21px; height: 21px; color: var(--shop-teal); }
.category-list { display: flex; flex-direction: column; padding-top: 8px; }
.category-list button, .category-list a { width: 100%; padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid #e0e9ec; color: var(--shop-muted); background: transparent; text-align: left; cursor: pointer; font-size: .9rem; }
.category-list button:hover, .category-list button.is-selected, .category-list a:hover, .category-list a.is-selected { color: var(--shop-teal); font-weight: var(--font-weight-action); }
.category-list b { min-width: 24px; color: #7b8f99; font-size: .76rem; text-align: right; }
.subcategory-filter { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.subcategory-filter strong { width: 100%; margin-bottom: 3px; font-size: .83rem; }
.subcategory-filter button, .subcategory-filter a { padding: 8px 10px; border: 1px solid var(--shop-line); border-radius: 9px; color: var(--shop-muted); background: var(--shop-surface-strong); cursor: pointer; font-size: .77rem; }
.subcategory-filter button:hover, .subcategory-filter button.is-selected, .subcategory-filter a:hover, .subcategory-filter a.is-selected { border-color: var(--shop-teal); color: var(--shop-teal); background: #e5f2f0; }
.filter-help { margin-top: 30px; padding: 22px; border-radius: var(--shop-radius); background: var(--shop-soft-strong); }
.filter-help > svg { width: 27px; height: 27px; margin-bottom: 13px; color: var(--shop-teal); }
.filter-help strong { display: block; font-size: .98rem; }
.filter-help p { margin: 8px 0 16px; color: var(--shop-muted); font-size: .87rem; line-height: 1.48; }
.filter-help a { display: inline-flex; align-items: center; gap: 7px; color: var(--shop-teal); font-size: .87rem; font-weight: var(--font-weight-action); }
.filter-help a svg { width: 16px; height: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-height: 438px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface-strong); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #b9cdd1; box-shadow: 0 20px 42px rgba(16,45,71,.09); }
.product-image { width: 100%; height: 310px; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 0; border-bottom: 1px solid #dfe9ec; background: #edf3f4; cursor: pointer; }
.product-image img, .product-image.is-cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; transform: none; transition: transform .3s ease; }
.product-card:hover .product-image img, .product-card:hover .product-image.is-cover img { transform: scale(1.035); }
.product-details { padding: 21px 20px 10px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--shop-teal); font-size: .71rem; font-weight: var(--font-weight-label); }
.product-meta span + span { position: relative; padding-left: 12px; }
.product-meta span + span::before { content: ''; position: absolute; top: 50%; left: 0; width: 1px; height: 12px; background: #abc0c2; transform: translateY(-50%); }
.product-details h3 { min-height: 54px; margin: 11px 0 0; font-size: 1.24rem; line-height: 1.18; letter-spacing: -.02em; font-weight: var(--font-weight-title); }
.product-title-link { color: inherit; text-decoration: none; }
.product-title-link:hover { color: var(--shop-teal); }
.product-details > p { min-height: 50px; margin: 9px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: var(--shop-muted); font-size: .88rem; line-height: 1.42; }
.product-type { margin-top: 12px; display: flex; align-items: center; gap: 6px; color: #6d808a; font-size: .72rem; }
.product-type svg { width: 15px; height: 15px; color: var(--shop-teal); }
.product-actions { margin-top: auto; padding: 10px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-actions > button:first-child, .product-actions > a.is-add-to-selection { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: #f7fbfb; background: var(--shop-teal); cursor: pointer; font-size: .82rem; font-weight: var(--font-weight-action); }
.product-actions > button:first-child:hover, .product-actions > a.is-add-to-selection:hover { background: var(--shop-teal-dark); }
.product-actions button svg, .product-actions a svg { width: 16px; height: 16px; }
.details-button { padding: 8px 0; display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--shop-teal); background: transparent; cursor: pointer; font-size: .82rem; font-weight: var(--font-weight-action); white-space: nowrap; }
.load-more { width: 100%; min-height: 64px; margin: 34px auto 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); border-radius: 0; color: var(--shop-navy); background: transparent; cursor: pointer; font-weight: var(--font-weight-emphasis); transition: color .2s ease, background .2s ease; }
.load-more:hover { color: var(--shop-teal); background: rgba(216,235,234,.34); }
.load-more svg { width: 18px; height: 18px; color: var(--shop-teal); transition: transform .2s ease; }
.load-more:hover svg { transform: translateY(3px); }
.search-correction { margin-bottom: 18px; padding: 17px 19px; border: 1px solid #b7d8d5; border-radius: 13px; color: var(--shop-muted); background: #edf7f6; }
.search-correction > span { display: block; color: var(--shop-navy); font-size: .85rem; font-weight: var(--font-weight-emphasis); }
.search-correction p { margin: 7px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; }
.search-correction button { padding: 5px 9px; border: 1px solid #92c7c2; border-radius: 8px; color: var(--shop-teal-dark); background: #fff; cursor: pointer; font: inherit; font-weight: var(--font-weight-action); }
.search-correction button:hover { border-color: var(--shop-teal); background: #f7fbfb; }
.search-correction small { margin-top: 8px; display: block; color: #607985; font-size: .75rem; }
.empty-products { min-height: 400px; padding: 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px dashed #adc5cc; border-radius: var(--shop-radius); background: var(--shop-surface-strong); }
.empty-products svg { width: 38px; height: 38px; color: var(--shop-teal); }
.empty-products h3 { margin: 20px 0 6px; font-size: 1.55rem; }
.empty-products p { margin: 0; color: var(--shop-muted); }
.empty-products button, .empty-products a { margin-top: 20px; padding: 0; border: 0; color: var(--shop-teal); background: transparent; cursor: pointer; font-weight: var(--font-weight-action); }

.shop-support { width: var(--site-width); min-height: 410px; margin: var(--section-space) auto 0; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface-strong); }
.shop-support-image { min-height: 410px; overflow: hidden; background: #102d47; }
.shop-support-image img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.shop-support:hover .shop-support-image img { transform: scale(1.025); }
.shop-support-copy { padding: clamp(44px, 6vw, 78px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: #e2efef; }
.shop-support h2 { max-width: 650px; font-size: clamp(2.35rem, 4vw, 3.85rem); line-height: 1.06; }
.shop-support-copy > p { max-width: 540px; margin: 22px 0 28px; color: var(--shop-muted); font-size: 1.02rem; line-height: 1.58; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image { height: 280px; }
  .shop-support { grid-template-columns: .95fr 1.05fr; }
}

@media (max-width: 900px) {
  .shop-hero { min-height: 0; grid-template-columns: 1fr; }
  .shop-hero-media { min-height: 390px; }
  .shop-catalogue { margin-top: var(--page-top-space); }
  .catalogue-toolbar { grid-template-columns: 1fr auto auto; }
  .filters-toggle { display: inline-flex; }
  .result-count { grid-column: 1 / 4; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; display: none; }
  .shop-filters.is-open { display: block; padding: 20px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface-strong); }
  .filter-help { display: none; }
  .shop-support { min-height: 0; margin-top: var(--section-space); grid-template-columns: 1fr; }
  .shop-support-image { min-height: 320px; }
  .shop-support-copy { padding: 48px 32px; }
}

@media (max-width: 680px) {
  .shop-hero { margin-top: 16px; }
  .shop-hero-copy { padding: 40px 24px; }
  .shop-hero h1 { font-size: clamp(2.65rem, 13vw, 3.7rem); }
  .shop-hero-facts { gap: 14px; }
  .shop-hero-facts > div { padding: 0; border-left: 0; }
  .shop-hero-media { min-height: 300px; }
  .shop-hero-caption { align-items: flex-start; flex-direction: column; gap: 8px; }
  .shop-hero-caption strong { max-width: 27ch; text-align: left; }
  .shop-catalogue { margin-top: var(--page-top-space); padding: 30px 18px; }
  .catalogue-toolbar { grid-template-columns: 1fr auto; }
  .shop-search { grid-column: 1 / 3; }
  .result-count { grid-column: 1 / 3; }
  .catalogue-layout { padding-top: 22px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 270px; }
  .shop-support { min-height: auto; grid-template-columns: 1fr; }
  .shop-support { margin-top: var(--section-space); }
  .shop-support-image { min-height: 290px; }
  .shop-support-copy { padding: 42px 24px; }
}

/* Bridge rules: the live archive renders Pro Elements' native WooCommerce loop markup
   (ul.products > li.product > a.woocommerce-LoopProduct-link / a.add_to_cart_button),
   not the hand-authored .product-card structure ported from the React source. These
   rules restyle the real markup to match the intended design system 1:1. */
ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
ul.products li.product { min-height: 438px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface-strong); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; list-style: none; }
ul.products li.product:hover { transform: translateY(-4px); border-color: #b9cdd1; box-shadow: 0 20px 42px rgba(16,45,71,.09); }
ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
ul.products li.product img.attachment-woocommerce_thumbnail { width: 100%; height: 310px; object-fit: cover; border-bottom: 1px solid #dfe9ec; background: #edf3f4; }
ul.products li.product .woocommerce-loop-product__title { margin: 11px 20px 0; font-size: 1.24rem; line-height: 1.18; letter-spacing: -.02em; font-weight: var(--font-weight-title); color: var(--shop-navy); }
ul.products li.product .price { margin: 9px 20px 0; color: var(--shop-teal); font-size: .88rem; font-weight: var(--font-weight-label); }
ul.products li.product > a.button.add_to_cart_button { margin: 10px 20px 20px; align-self: flex-start; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: #f7fbfb !important; background: var(--shop-teal) !important; cursor: pointer; font-size: .82rem; font-weight: var(--font-weight-action); text-decoration: none; }
ul.products li.product > a.button.add_to_cart_button:hover { background: var(--shop-teal-dark) !important; }

@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } ul.products li.product img.attachment-woocommerce_thumbnail { height: 280px; } }
@media (max-width: 680px) { ul.products { grid-template-columns: 1fr; } ul.products li.product img.attachment-woocommerce_thumbnail { height: 270px; } }

/* ExpertCN_Widget_Catalogue renders the primary product-card action as a real <a> link
   (so simple products add-to-cart without JS and configurable products link straight to
   the product page), matching the reference site's actual behavior either way -- but the
   source CSS only ever targeted a <button>. Extend the same styling to the <a> case. */
.product-actions > a:first-child { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: #f7fbfb; background: var(--shop-teal); cursor: pointer; font-size: .82rem; font-weight: var(--font-weight-action); text-decoration: none; }
.product-actions > a:first-child:hover { background: var(--shop-teal-dark); }
.category-list a, .subcategory-filter a { text-decoration: none; }
.filter-help a { text-decoration: none; }
.empty-products a { text-decoration: none; }
