/*
Theme Name: Astra HK Nutrition
Theme URI: https://hknutrition.fr
Description: Thème enfant Astra pour HK Nutrition & Bien-être : charte « Nature fraîche », side cart WooCommerce et barre de livraison offerte.
Author: HKnutrition
Template: astra
Version: 1.1.7
Text Domain: astra-hk
*/

/* ---------- Fonts (self-hosted, no Google request) ---------- */
@font-face { font-family: 'HK Jakarta'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'HK Jakarta'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --hk-base: #ffffff; --hk-text: #16210f; --hk-surface: #f1f6ea; --hk-muted: #4a5a42;
  --hk-primary: #2f6b1f; --hk-primary-hover: #245a17; --hk-dark: #1f4d14; --hk-badge: #dcebc8;
  --hk-navy: #12385a; --hk-accent: #7cb342; --hk-border: #e3ead9; --hk-input: #6f8267; --hk-error: #9c2b1e;
  --hk-font: 'HK Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hk-h1: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
  --hk-h2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --hk-r-sm: 8px; --hk-r: 24px; --hk-pill: 999px;
  --hk-shadow: 0 8px 24px rgba(22, 33, 15, 0.08); --hk-shadow-hover: 0 16px 32px rgba(22, 33, 15, 0.12);
  --hk-max: 1200px;
}

/* ---------- Base over Astra ---------- */
body, button, input, select, textarea, .ast-button, .ast-custom-button,
h1, h2, h3, h4, h5, h6, .entry-content h1, .entry-content h2, .entry-content h3,
.site-title, .main-header-menu, .woocommerce, .woocommerce-page, .wc-block-components-button {
  font-family: var(--hk-font);
}
body, .ast-separate-container, .ast-plain-container { color: var(--hk-text); background-color: #fff; }
.ast-container { padding-left: 24px; padding-right: 24px; }
.hk-page .site-content > .ast-container { padding-left: 0; padding-right: 0; }
/* Astra's own slide-in cart is replaced by the HK side cart. */
.astra-cart-drawer, .astra-mobile-cart-overlay { display: none !important; }
h1, h2, h3, .entry-content h1, .entry-content h2, .entry-content h3 { color: var(--hk-text); letter-spacing: -0.02em; }
.entry-title, .woocommerce-products-header__title, .product_title { font-weight: 800; }
a { color: var(--hk-primary); }
:focus-visible { outline: 3px solid var(--hk-primary); outline-offset: 2px; }
img { height: auto; }

/* Buttons: Astra + WooCommerce + blocks */
.hk-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wp-element-button, .wc-block-components-button:not(.is-link),
.ast-button, button.single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 32px; border-radius: var(--hk-pill) !important;
  background: var(--hk-primary); color: #fff; border: 0; font-weight: 700; font-size: 1rem; line-height: 1.5rem;
  text-decoration: none; cursor: pointer; transition: background-color 150ms ease;
}
.hk-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .wp-element-button:hover, .wc-block-components-button:not(.is-link):hover,
button.single_add_to_cart_button:hover { background: var(--hk-primary-hover); color: #fff; }
.hk-btn--lg { min-height: 56px; font-size: 1.25rem; }
.hk-btn--ghost { background: transparent; color: var(--hk-primary); border: 2px solid var(--hk-primary); }
.hk-btn--ghost:hover { background: var(--hk-surface); color: var(--hk-primary); }
.hk-btn--block { width: 100%; }
.hk-btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Top bar ---------- */
.hk-topbar { background: var(--hk-dark); color: #fff; font-size: 0.875rem; line-height: 1.25rem; }
.hk-topbar ul { list-style: none; margin: 0 auto; padding: 8px 24px; max-width: var(--hk-max); display: flex; justify-content: space-between; gap: 24px; }
.hk-topbar li { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.hk-topbar svg { width: 20px; height: 20px; }
@media (max-width: 1023px) { .hk-topbar li:nth-child(n+3) { display: none; } }
@media (max-width: 639px) { .hk-topbar ul { justify-content: center; } .hk-topbar li:nth-child(n+2) { display: none; } }

/* ---------- Header (Astra builder) ---------- */
.main-header-menu .menu-link { font-weight: 500; color: var(--hk-text); }
.main-header-menu .menu-link:hover, .main-header-menu .current-menu-item > .menu-link { color: var(--hk-primary); }
.main-header-menu .current-menu-item > .menu-link { font-weight: 700; }
.site-header .custom-logo-link img { max-height: 40px; width: auto; }
/* The side cart replaces Astra's hover mini-cart. */
.ast-site-header-cart .widget_shopping_cart, .ast-site-header-cart:hover .widget_shopping_cart { display: none !important; }
.ast-site-header-cart .ast-cart-menu-wrap .count, .ast-site-header-cart .count { background: var(--hk-primary); color: #fff; border-color: var(--hk-primary); }

/* ---------- Layout helpers for page content ---------- */
.hk-full { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.hk-wrap { width: 100%; max-width: var(--hk-max); margin: 0 auto; padding: 0 24px; }
.hk-section { padding: 96px 0; }
.hk-section--surface { background: var(--hk-surface); }
@media (max-width: 639px) { .hk-section { padding: 64px 0; } }
.hk-page .entry-content > :first-child { margin-top: 0; }
.hk-page .site-content > .ast-container { max-width: 100%; padding: 0; }
.hk-page .entry-content p:empty { display: none; }
.hk-page #primary { margin: 0; padding: 0; }

/* Hero */
.hk-hero { position: relative; overflow: hidden; background: var(--hk-surface); }
.hk-hero__media { position: absolute; inset: 0; }
.hk-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hk-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 38%, rgba(255,255,255,0.55) 56%, rgba(255,255,255,0) 72%); }
.hk-hero__content { position: relative; padding: 96px 0; max-width: 640px; }
.hk-hero h1 { font-size: var(--hk-h1); line-height: 1.08; font-weight: 800; margin: 0 0 24px; }
.hk-hero__lead { font-size: 1.25rem; line-height: 2rem; margin: 0 0 32px; max-width: 34ch; }
.hk-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; padding: 0; margin: 48px 0 0; }
.hk-perks li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; margin: 0; }
.hk-perks svg { width: 32px; height: 32px; color: var(--hk-primary); flex: none; }
@media (max-width: 1023px) {
  .hk-hero__media { position: relative; height: 320px; }
  .hk-hero__media::after { background: linear-gradient(0deg, rgba(241,246,234,1) 0%, rgba(241,246,234,0) 40%); }
  .hk-hero__content { padding: 32px 0 64px; }
}
.hk-badge { display: inline-block; background: var(--hk-badge); color: var(--hk-dark); font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; padding: 8px 16px; border-radius: var(--hk-pill); margin-bottom: 24px; }

/* Section titles */
.hk-title { text-align: center; margin-bottom: 48px; }
.hk-title h2 { font-size: var(--hk-h2); line-height: 1.08; font-weight: 800; margin: 0; }
.hk-title__label { display: inline-flex; align-items: center; gap: 16px; color: var(--hk-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; line-height: 1.25rem; margin-bottom: 8px; }
.hk-title__label::before, .hk-title__label::after { content: ''; width: 48px; height: 2px; background: var(--hk-accent); }
@media (max-width: 639px) { .hk-title__label::before, .hk-title__label::after { display: none; } }

/* Grids and tiles */
.hk-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .hk-grid { grid-template-columns: minmax(0, 1fr); } }
.hk-card { background: #fff; border: 1px solid var(--hk-border); border-radius: var(--hk-r); box-shadow: var(--hk-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 150ms ease, box-shadow 150ms ease; }
.hk-card:hover { transform: translateY(-4px); box-shadow: var(--hk-shadow-hover); }
a.hk-tile, a.hk-tile:hover, a.hk-tile * { text-decoration: none; color: var(--hk-text); }
a.hk-tile .hk-more { color: var(--hk-primary); }
/* Astra underlines every link in page content: not buttons and cards. */
.entry-content a.hk-tile, .entry-content a.hk-btn, .hk-sc a.hk-btn, .hk-footer a { text-decoration: none !important; }
.hk-tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hk-tile__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.hk-tile__body h3 { margin: 0; font-size: 1.25rem; line-height: 2rem; }
.hk-more { color: var(--hk-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.hk-more svg { width: 16px; height: 16px; }

/* Reassurance band */
.hk-band { background: var(--hk-surface); border-radius: var(--hk-r); padding: 32px; display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; }
.hk-band li { display: flex; align-items: center; gap: 16px; font-weight: 600; margin: 0; }
.hk-band svg { width: 48px; height: 48px; color: var(--hk-primary); flex: none; }
@media (max-width: 1023px) { .hk-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .hk-band { grid-template-columns: minmax(0, 1fr); } }

/* Commitments + CTA */
.hk-split { display: grid; gap: 32px; grid-template-columns: 3fr 2fr; align-items: stretch; }
@media (max-width: 1023px) { .hk-split { grid-template-columns: minmax(0, 1fr); } }
.hk-commit { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hk-commit .hk-card { padding: 24px; }
.hk-commit h3 { margin: 0; font-size: 1.25rem; line-height: 2rem; }
.hk-commit svg { width: 40px; height: 40px; color: var(--hk-primary); margin-bottom: 16px; }
.hk-commit p { color: var(--hk-muted); margin: 8px 0 0; }
.hk-cta { position: relative; border-radius: var(--hk-r); overflow: hidden; background: var(--hk-dark); color: #fff; padding: 48px 32px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; }
.hk-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hk-cta > * { position: relative; }
.hk-cta h2 { color: #fff; font-size: var(--hk-h2); line-height: 1.08; margin: 0; }
.hk-cta p { margin: 0; }
.hk-cta .hk-btn { background: #fff; color: var(--hk-dark); }
.hk-cta .hk-btn:hover { background: var(--hk-badge); color: var(--hk-dark); }
.hk-cta .hk-btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--hk-primary); }

/* Univers page header */
.hk-pagehead { background: var(--hk-surface); padding: 64px 0; }
.hk-pagehead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 1023px) { .hk-pagehead__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hk-pagehead h1 { font-size: var(--hk-h1); line-height: 1.08; font-weight: 800; margin: 0 0 16px; }
.hk-pagehead img { border-radius: var(--hk-r); }
.hk-lead { font-size: 1.25rem; line-height: 2rem; }
.hk-crumbs { font-size: 0.875rem; color: var(--hk-muted); margin-bottom: 16px; }
.hk-crumbs a { color: var(--hk-muted); }

/* Text pages */
.hk-prose { max-width: 72ch; }
.hk-prose h2 { font-size: 1.25rem; line-height: 2rem; margin: 32px 0 8px; }
.hk-faq details { border-bottom: 1px solid var(--hk-border); padding: 16px 0; }
.hk-faq summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.hk-faq details p { margin-top: 8px; color: var(--hk-muted); }

/* ---------- « Produits » mega menu ---------- */
/* The pane title and the visual tiles only exist in the desktop panel. */
.hk-mega .hk-mega__panehead, .hk-mega .hk-mega__promo { display: none !important; }

/* Desktop panel: the header bar is the positioning box.
   --hk-g is the page gutter, so the panel content lines up with the site width. */
#ast-desktop-header .main-header-menu, #ast-desktop-header .main-header-menu > .hk-mega { position: static; }
#ast-desktop-header .hk-mega > .sub-menu {
  --hk-g: max(24px, calc((100% - var(--hk-max)) / 2));
  --hk-side: 300px;
  left: 0 !important; right: 0; top: 100%; width: auto; margin: 0; min-height: 420px;
  display: block; padding: 32px 0 32px var(--hk-g);
  background: linear-gradient(90deg, var(--hk-surface) calc(var(--hk-g) + var(--hk-side)), #fff 0);
  border: 0; border-top: 1px solid var(--hk-border); border-radius: 0; box-shadow: var(--hk-shadow);
  visibility: hidden; opacity: 0; transition: opacity 150ms ease, visibility 150ms ease;
}
#ast-desktop-header .hk-mega:hover > .sub-menu,
#ast-desktop-header .hk-mega:focus-within > .sub-menu,
#ast-desktop-header .hk-mega.focus > .sub-menu { visibility: visible; opacity: 1; }
#ast-desktop-header .hk-mega > .sub-menu::before {
  content: "Par produit"; display: block; position: static; top: auto; left: auto; height: auto; border: 0; background: none; transform: none;
  width: var(--hk-side); padding: 0 24px 16px;
  font-weight: 800; font-size: 1.125rem; line-height: 1.75rem; color: var(--hk-text);
}
#ast-desktop-header .hk-mega .sub-menu .menu-item { border: 0; }
#ast-desktop-header .hk-mega .sub-menu .menu-link { border: 0; background: none; font-size: 1rem; line-height: 1.5rem; color: var(--hk-text); }

/* Left list */
#ast-desktop-header .hk-mega > .sub-menu > .hk-mega__col,
#ast-desktop-header .hk-mega > .sub-menu > .hk-mega__all { position: static; display: block; width: var(--hk-side); }
#ast-desktop-header .hk-mega .sub-menu .hk-mega__col > .menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px; min-height: 40px;
}
#ast-desktop-header .hk-mega .sub-menu .hk-mega__col > .menu-link::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
#ast-desktop-header .hk-mega .sub-menu .hk-mega__col--active > .menu-link { background: #fff; font-weight: 700; color: var(--hk-primary); }
#ast-desktop-header .hk-mega .hk-mega__col > .menu-link .ast-icon,
#ast-desktop-header .hk-mega .hk-mega__col > .menu-link .dropdown-menu-toggle,
#ast-desktop-header .hk-mega .hk-mega__col > .ast-menu-toggle { display: none !important; }
#ast-desktop-header .hk-mega > .sub-menu > .hk-mega__all { margin-top: 16px; }
#ast-desktop-header .hk-mega .sub-menu .hk-mega__all > .menu-link { padding: 8px 24px; font-weight: 700; color: var(--hk-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Middle: product list of the active entry */
#ast-desktop-header .hk-mega .hk-mega__col > .sub-menu {
  position: absolute; top: 0; left: calc(var(--hk-g) + var(--hk-side) + 48px) !important; right: var(--hk-g);
  display: none; visibility: visible !important; opacity: 1 !important;
  width: auto; margin: 0; padding: 32px 0; border: 0; box-shadow: none; background: none;
}
#ast-desktop-header .hk-mega .hk-mega__col--active > .sub-menu { display: block; }
#ast-desktop-header .hk-mega .hk-mega__col > .sub-menu > .menu-item { display: block; }
#ast-desktop-header .hk-mega .hk-mega__col > .sub-menu > .hk-mega__panehead { display: block !important; }
#ast-desktop-header .hk-mega .sub-menu .hk-mega__panehead > .menu-link { padding: 0 0 16px; font-weight: 800; font-size: 1.125rem; line-height: 1.75rem; }
#ast-desktop-header .hk-mega .sub-menu .hk-mega__product > .menu-link { padding: 6px 0; }
#ast-desktop-header .hk-mega .sub-menu .hk-mega__product > .menu-link:hover,
#ast-desktop-header .hk-mega .sub-menu .hk-mega__product.current-menu-item > .menu-link { color: var(--hk-primary); }
#ast-desktop-header .hk-mega .sub-menu .hk-mega__more > .menu-link { margin-top: 12px; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Right: visual tiles, from 1240px wide (below that the list keeps the room) */
@media (min-width: 1240px) {
  #ast-desktop-header .hk-mega .hk-mega__col > .sub-menu { right: calc(var(--hk-g) + 2 * 260px + 2 * 24px); }
  #ast-desktop-header .hk-mega > .sub-menu > .hk-mega__promo {
    display: block !important; position: absolute; top: 32px; width: 260px; height: 340px;
  }
  #ast-desktop-header .hk-mega > .sub-menu > .hk-mega__promo--1 { right: calc(var(--hk-g) + 260px + 24px); }
  #ast-desktop-header .hk-mega > .sub-menu > .hk-mega__promo--2 { right: var(--hk-g); }
  #ast-desktop-header .hk-mega .sub-menu .hk-mega__promo > .menu-link {
    position: relative; display: block; height: 100%; padding: 0; overflow: hidden; border-radius: var(--hk-r-sm); color: #fff;
  }
  .hk-mega__promo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
  .hk-mega__promo > .menu-link:hover .hk-mega__promo-img img { transform: scale(1.04); }
  .hk-mega__promo-text {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 64px 20px 20px;
    background: linear-gradient(180deg, rgba(22, 33, 15, 0) 0%, rgba(22, 33, 15, 0.85) 100%);
  }
  .hk-mega__promo-title { font-weight: 800; font-size: 1.125rem; line-height: 1.5rem; }
  .hk-mega__promo-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #ast-desktop-header .hk-mega > .sub-menu, .hk-mega__promo-img img { transition: none; }
}


/* Contact form */
.hk-form { margin: 32px 0 48px; padding: 32px; background: var(--hk-surface); border-radius: var(--hk-r); }
.hk-form__grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hk-form__field--full { grid-column: 1 / -1; }
@media (max-width: 639px) { .hk-form { padding: 24px 16px; } .hk-form__grid { grid-template-columns: minmax(0, 1fr); } }
.hk-form label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--hk-text); }
.hk-form .hk-opt { font-weight: 400; color: var(--hk-muted); }
.hk-form input[type="text"], .hk-form input[type="email"], .hk-form select, .hk-form textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; margin: 0; border: 1px solid var(--hk-input); border-radius: var(--hk-r-sm);
  background: #fff; color: var(--hk-text); font-size: 1rem; line-height: 1.5rem; box-shadow: none;
}
.hk-form textarea { min-height: 176px; resize: vertical; }
.hk-form input:focus-visible, .hk-form select:focus-visible, .hk-form textarea:focus-visible { outline: 3px solid var(--hk-primary); outline-offset: 0; border-color: var(--hk-primary); }
.hk-form [aria-invalid="true"] { border: 2px solid var(--hk-error); }
.hk-form__error { color: var(--hk-error); font-size: 0.875rem; line-height: 1.25rem; margin: 8px 0 0; }
.hk-form__note { font-size: 0.875rem; line-height: 1.25rem; color: var(--hk-muted); margin: 24px 0; }
.hk-form__notice { display: flex; gap: 8px; align-items: flex-start; padding: 16px; margin-bottom: 24px; border-radius: var(--hk-r-sm); font-weight: 600; }
.hk-form__notice svg { width: 24px; height: 24px; flex: none; }
.hk-form__notice--ok { background: var(--hk-badge); color: var(--hk-dark); }
.hk-form__notice--err { background: #fbeae7; color: var(--hk-error); }
.hk-form__notice:focus { outline: none; }
.hk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- WooCommerce product cards ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none; background: #fff; border: 1px solid var(--hk-border);
  border-radius: var(--hk-r); box-shadow: var(--hk-shadow); overflow: hidden; display: flex; flex-direction: column;
  text-align: center; padding: 0 0 24px; transition: transform 150ms ease, box-shadow 150ms ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--hk-shadow-hover); }
@media (max-width: 1023px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: minmax(0, 1fr); } }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap, .woocommerce ul.products li.product > a:first-child { background: var(--hk-surface); display: block; }
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: cover; width: 100%; margin: 0 !important; }
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 24px 24px 0; display: flex; flex-direction: column; flex: 1; align-items: center; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.25rem; line-height: 2rem; font-weight: 700; color: var(--hk-text); }
.woocommerce ul.products li.product .ast-woo-product-category { display: none; }
.woocommerce ul.products li.product .price { font-weight: 800; font-size: 1.5rem; line-height: 2rem; color: var(--hk-text); margin: 8px 0 16px; }
.woocommerce ul.products li.product .button { margin-top: auto; padding: 0 24px; white-space: nowrap; justify-content: center; text-align: center; }
.woocommerce ul.products li.product .ast-on-card-button, .woocommerce ul.products li.product .ast-shop-product-out-of-stock { display: none; }
.woocommerce ul.products li.product .added_to_cart, .woocommerce a.added_to_cart.wc-forward { display: none; }
.hk-benefit { color: var(--hk-muted); font-size: 0.875rem; line-height: 1.25rem; margin: 4px 0 0; }

/* Single product */
.single-product div.product .woocommerce-product-gallery { background: var(--hk-surface); border-radius: var(--hk-r); overflow: hidden; }
.single-product div.product .product_title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; }
.single-product div.product p.price, .single-product div.product span.price { color: var(--hk-text); font-weight: 800; font-size: 2rem; line-height: 2.5rem; }
.single-product .hk-format { color: var(--hk-muted); font-weight: 600; margin: 0 0 8px; }
.woocommerce .quantity .qty { min-height: 48px; border-color: var(--hk-input); border-radius: var(--hk-r-sm); }
.hk-reassure { list-style: none; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--hk-border); display: grid; gap: 8px; }
.hk-reassure li { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 0.875rem; }
.hk-reassure svg { width: 24px; height: 24px; color: var(--hk-primary); flex: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--hk-primary); }
.woocommerce-tabs .hk-details h2 { font-size: 1.25rem; line-height: 2rem; margin: 24px 0 8px; }

/* ---------- Side cart ---------- */
.hk-sc { position: fixed; inset: 0; z-index: 99999; visibility: hidden; pointer-events: none; }
.hk-sc.is-open { visibility: visible; pointer-events: auto; }
.hk-sc__overlay { position: absolute; inset: 0; background: rgba(22, 33, 15, 0.45); opacity: 0; transition: opacity 250ms ease; }
.hk-sc.is-open .hk-sc__overlay { opacity: 1; }
.hk-sc__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column;
  box-shadow: -16px 0 32px rgba(22, 33, 15, 0.16); transform: translateX(100%); transition: transform 300ms cubic-bezier(.2,.8,.2,1); outline: none; }
.hk-sc.is-open .hk-sc__panel { transform: translateX(0); }
.hk-sc__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--hk-border); }
.hk-sc__head h2 { margin: 0; font-size: 1.25rem; line-height: 2rem; font-weight: 800; }
.hk-sc__close { width: 48px; height: 48px; border-radius: var(--hk-pill); border: 0; background: transparent; color: var(--hk-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hk-sc__close:hover { background: var(--hk-surface); color: var(--hk-text); }
.hk-sc__close svg { width: 24px; height: 24px; }
.hk-sc__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hk-sc__body.is-loading { opacity: 0.6; pointer-events: none; }
.hk-sc__added { margin: 0; padding: 12px 24px; background: var(--hk-badge); color: var(--hk-dark); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hk-sc__added svg { width: 20px; height: 20px; flex: none; }
.hk-sc__added[hidden] { display: none; }
.hk-sc__items { list-style: none; margin: 0; padding: 0 24px; overflow-y: auto; flex: 1; }
.hk-sc__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hk-border); align-items: start; margin: 0; }
.hk-sc__item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--hk-r-sm); background: var(--hk-surface); margin: 0; }
.hk-sc__name { display: block; color: var(--hk-text); font-weight: 700; text-decoration: none; line-height: 1.5rem; }
.hk-sc__name:hover { color: var(--hk-primary); text-decoration: underline; }
.hk-sc__unit { display: block; color: var(--hk-muted); font-size: 0.875rem; line-height: 1.25rem; margin: 2px 0 8px; }
.hk-sc__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hk-sc__line { font-weight: 800; }
.hk-sc__remove { background: none; border: 0; padding: 0; min-height: 24px; color: var(--hk-muted); text-decoration: underline; cursor: pointer; font-size: 0.875rem; }
.hk-sc__remove:hover { color: var(--hk-error); background: none; }

/* ---------- Checkout: editable order summary ---------- */
.hk-qty-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.hk-qty-edit.is-busy { opacity: 0.6; }
.hk-qty.hk-qty--sm { background: #fff; }
.hk-qty.hk-qty--sm[hidden] { display: none; }
.hk-qty-edit .hk-qty.hk-qty--sm button { width: 32px; padding: 0; border: 0; border-radius: var(--hk-pill); background: transparent; color: var(--hk-text); font-weight: 400; height: 32px; font-size: 1rem; line-height: 1; }
.hk-qty.hk-qty--sm output { min-width: 24px; font-size: 0.875rem; }
.hk-qty-edit .hk-qty button:hover { background: var(--hk-surface); color: var(--hk-text); }
.hk-qty button:disabled, .hk-qty-edit .hk-qty button[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; background: transparent; }
.hk-qty-edit .hk-qty-edit__remove { border-radius: 0; font-weight: 400; line-height: 1.25rem; background: none; border: 0; padding: 0; min-height: 24px; color: var(--hk-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.875rem; }
.hk-qty-edit .hk-qty-edit__remove:hover, .hk-qty-edit .hk-qty-edit__remove:focus { color: var(--hk-error); background: none; }
.hk-qty-edit .hk-qty-edit__remove[aria-disabled="true"] { background: none; cursor: not-allowed; }

/* ---------- Checkout: « Complétez votre commande » ---------- */
.hk-upsell, .wc-block-components-totals-wrapper.slot-wrapper .wc-block-components-order-meta .hk-upsell { margin: 0 16px 16px; padding: 16px; border: 1px solid var(--hk-border); border-radius: var(--hk-r-sm); background: var(--hk-surface); }
.hk-upsell__title { margin: 0 0 4px; font-size: 1rem; line-height: 1.5rem; font-weight: 800; color: var(--hk-text); }
.hk-upsell__title:focus { outline: none; }
.hk-upsell__title:focus-visible { outline: 2px solid var(--hk-primary); outline-offset: 2px; }
.hk-upsell__nudge { margin: 0 0 12px; font-size: 0.875rem; line-height: 1.25rem; color: var(--hk-dark); font-weight: 600; }
.hk-upsell__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.hk-upsell__nudge + .hk-upsell__list { margin-top: 0; }
.hk-upsell__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; }
.hk-upsell__item img, .hk-upsell__noimg { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: var(--hk-r-sm); background: #fff; }
.hk-upsell__info { display: flex; flex-direction: column; min-width: 0; }
.hk-upsell__name { font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; color: var(--hk-text); overflow-wrap: break-word; }
.hk-upsell__price { font-size: 0.875rem; line-height: 1.25rem; color: var(--hk-muted); }
.hk-upsell .hk-upsell__add { min-height: 36px; padding: 6px 16px; border: 2px solid var(--hk-primary); border-radius: var(--hk-pill); background: #fff; color: var(--hk-primary); font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; cursor: pointer; white-space: nowrap; }
.hk-upsell .hk-upsell__add:hover, .hk-upsell .hk-upsell__add:focus-visible { background: var(--hk-primary); color: #fff; }
.hk-upsell .hk-upsell__add[aria-disabled="true"] { opacity: 0.6; cursor: wait; background: #fff; color: var(--hk-primary); }
.hk-qty { display: inline-flex; align-items: center; border: 1px solid var(--hk-input); border-radius: var(--hk-pill); }
.hk-qty button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--hk-text); font-size: 1.125rem; cursor: pointer; border-radius: var(--hk-pill); padding: 0; }
.hk-qty button:hover { background: var(--hk-surface); color: var(--hk-text); }
.hk-qty output { min-width: 28px; text-align: center; font-weight: 700; }
.hk-sc__foot { padding: 16px 24px 24px; border-top: 1px solid var(--hk-border); background: #fff; display: grid; gap: 8px; }
.hk-sc__total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.25rem; line-height: 2rem; }
.hk-sc__note { margin: 0; color: var(--hk-muted); font-size: 0.875rem; line-height: 1.25rem; }
.hk-sc__empty { padding: 48px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.hk-sc__empty p { margin: 0; color: var(--hk-muted); }
.hk-sc__continue { background: none; border: 0; color: var(--hk-primary); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 40px; padding: 0; }
.hk-sc__continue:hover { background: none; color: var(--hk-primary-hover); }
body.hk-sc-open { overflow: hidden; }

/* Free shipping progress */
.hk-ship { padding: 16px 24px 28px; background: var(--hk-surface); }
.hk-ship__msg { margin: 0 0 12px; font-size: 0.875rem; line-height: 1.25rem; }
.hk-ship__msg strong { color: var(--hk-dark); }
.hk-ship__track { position: relative; height: 10px; border-radius: var(--hk-pill); background: #fff; border: 1px solid var(--hk-border); }
.hk-ship__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--hk-pill); background: linear-gradient(90deg, var(--hk-accent), var(--hk-primary)); transition: width 400ms ease; }
.hk-ship__mark { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid var(--hk-input); }
.hk-ship__mark.is-done { background: var(--hk-primary); border-color: var(--hk-primary); }
.hk-ship__mark.is-end { margin-left: -18px; }
.hk-ship__label { position: absolute; top: 20px; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--hk-muted); }
.hk-ship__mark.is-end .hk-ship__label { transform: none; right: 0; }
.hk-ship.is-complete .hk-ship__msg { font-weight: 700; color: var(--hk-dark); }

/* ---------- Footer ---------- */
.hk-footer { background: var(--hk-surface); padding: 64px 0 32px; margin-top: 64px; }
.hk-footer__grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 1023px) { .hk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .hk-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.hk-footer h2 { font-size: 1rem; line-height: 1.5rem; margin: 0 0 16px; font-weight: 800; }
.hk-footer ul { list-style: none; margin: 0; padding: 0; }
.hk-footer li { margin: 0; }
.hk-footer li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--hk-text); text-decoration: none; }
.hk-footer li a:hover { text-decoration: underline; color: var(--hk-primary); }
.hk-footer__logo img { height: 40px; width: auto; margin-bottom: 16px; }
.hk-footer .hk-note { font-size: 0.875rem; color: var(--hk-muted); }
.hk-footer__bottom { border-top: 1px solid var(--hk-border); margin-top: 48px; padding-top: 24px; font-size: 0.875rem; line-height: 1.25rem; color: var(--hk-muted); }

.screen-reader-text:not(:focus) { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hk-sc__panel, .hk-sc__overlay, .hk-ship__fill, .hk-card, .woocommerce ul.products li.product { transition: none !important; }
  .hk-card:hover, .woocommerce ul.products li.product:hover { transform: none; }
}
