/* =====================================================================
   BeautyNest — custom design layer (loaded after main.css in head-config)
   Pro beauty e-commerce polish, COD-first. Uses theme CSS variables.
   --color-button / --color-button-text are "R, G, B" triplets -> rgb().
   ===================================================================== */

/* ---------- Global type & rhythm ---------- */
body { -webkit-font-smoothing: antialiased; }

yc-section-head h2 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
yc-section-head p {
  color: var(--color-gray-500);
}

/* Buttons: retail-style soft rectangles (one radius for the whole site). */
/* Accent #FF80C5 (settings_data: buttons, badges, announcement bar). White on it is only 2.3:1, so the
   text on pink is plum #3B1430 (6.9:1); hover = a slightly deeper pink, same plum text.
   Prices: --mkc-price = theme setting « Couleur des prix » (snippets/head-config.liquid), else the accent. */
:root { --mkc-btn-radius: 6px; --mkc-accent: #FF80C5; --mkc-on-accent: #3B1430; --mkc-cta-hover: #F566B5; }
.yc-btn { border-radius: var(--mkc-btn-radius); font-weight: 600; }

/* ---------- Announcement bar ---------- */
.announcement .message {
  font-weight: 600;
  letter-spacing: 0.01em;
}
/* Scrolling strip (sections/announcement-bar.liquid): edge to edge, two identical lists side by side
   translated by half the track = seamless loop. Background #FF80C5, text #3B1430 (settings_data): 6.9:1, AA at any size. */
#youcan-section--announcement-bar:has(.mkc-ann) { padding-inline: 0; }
.mkc-ann { overflow: hidden; text-align: start; }
.mkc-ann__link { display: block; color: inherit; text-decoration: none; }
.mkc-ann__track {
  display: flex;
  width: max-content;
  animation: mkc-ann-scroll var(--mkc-ann-duration, 40s) linear infinite;
}
.mkc-ann:hover .mkc-ann__track,
.mkc-ann:focus-within .mkc-ann__track { animation-play-state: paused; }
.mkc-ann__list { display: flex; margin: 0; padding: 0; list-style: none; flex-shrink: 0; }
.mkc-ann__item {
  display: inline-flex;
  align-items: center;
  padding-block: 0.65em;
  padding-inline: 1.6rem;
  font-size: calc(var(--font-heading-scale, 1) * 1.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgb(var(--announcement-bar-foreground-color));
}
.mkc-ann__item::after {
  content: "✦";
  margin-inline-start: 3.2rem;
  font-size: 0.8em;
  opacity: 0.75;
}
@keyframes mkc-ann-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .mkc-ann__track { animation-name: mkc-ann-scroll-rtl; }
@keyframes mkc-ann-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .mkc-ann { overflow-x: auto; scrollbar-width: none; }
  .mkc-ann__track { animation: none; }
  .mkc-ann__list[aria-hidden="true"] { display: none; }
}

/* ---------- Hero (slideshow with no image) ---------- */
yc-slider-item { position: relative; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1200px 500px at 15% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, rgb(var(--color-button)) 0%, #d65f8e 45%, #f3c3d6 100%);
}
yc-slider-content .heading {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
yc-slider-content .subheading {
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}
yc-slider-content .yc-btn {
  background: var(--color-base-white);
  color: var(--color-base-black);
  border: none;
  padding-inline: 1.6em;
}

/* ---------- Product cards ---------- */
.product-card { overflow: hidden; }

.product-card[data-style$="standard"] {
  --product-img-height: 320px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.product-card[data-style$="standard"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}
.product-card .img-link img {
  transition: transform 0.4s ease;
}
.product-card:hover .img-link img {
  transform: scale(1.04);
}

/* Discount pill (top-start) */
.product-card .discount-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  background: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: 1;
  padding: 0.5em 0.7em;
  border-radius: 4px;
  box-shadow: none;
  letter-spacing: 0.02em;
}

/* Price emphasis */
.product-card .info { gap: 0.4em; }
.product-card .info .title {
  font-weight: 600;
  font-size: var(--text-md);
}
.product-card .info .price .current {
  color: var(--mkc-price, var(--mkc-accent-text));
  font-weight: 700;
}
.product-card .info .price .compare-at {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* Purchase buttons, one look site-wide (T22): cards, « Nos coups de coeur », favourites, product page.
   Primary = adds to cart now: filled accent pink #FF80C5 (plum bold text 6.9:1), hover #F566B5.
   Secondary = opens the options (quick view): pink outline, filled on hover. */
.product-card .info yc-product-form button[data-buy-button],
.product-card .info a.yc-btn.secondary,
.mkc-pick__cta yc-product-form button[data-buy-button],
.mkc-pick__cta a.yc-btn.secondary {
  background: rgb(var(--color-button));
  border: 1.5px solid rgb(var(--color-button));
  border-radius: var(--mkc-btn-radius);
  color: rgb(var(--color-button-text));
  font-weight: 700;
}
.product-card .info .product-quick-view button[data-trigger].secondary,
.mkc-pick__cta .product-quick-view button[data-trigger].secondary {
  background: #ffffff;
  border: 1.5px solid rgb(var(--color-button));
  border-radius: var(--mkc-btn-radius);
  color: #a3164f;
  font-weight: 700;
}
.product-card .info yc-product-form button[data-buy-button]:hover:not(:disabled),
.product-card .info a.yc-btn.secondary:hover,
.mkc-pick__cta yc-product-form button[data-buy-button]:hover:not(:disabled),
.mkc-pick__cta a.yc-btn.secondary:hover,
.product-card .info .product-quick-view button[data-trigger].secondary:hover,
.mkc-pick__cta .product-quick-view button[data-trigger].secondary:hover,
yc-product-form [data-buy-button].secondary:hover:not(:disabled),
.product-quick-view > yc-modal > button[data-trigger].secondary:hover {
  background: var(--mkc-cta-hover);
  border-color: var(--mkc-cta-hover);
  color: rgb(var(--color-button-text));
  font-weight: 700;
}
.product-card .info yc-product-form button[data-buy-button]:disabled,
.mkc-pick__cta yc-product-form button[data-buy-button]:disabled {
  background: #efe7eb;
  border-color: #efe7eb;
  color: #6d5c63;
  cursor: not-allowed;
}
/* Card buttons: 44 px tap height and a 13 px label minimum on phones and tablets. */
@media (max-width: 1023px) {
  .product-card .info yc-product-form button[data-buy-button],
  .product-card .info a.yc-btn.secondary,
  .product-card .info .product-quick-view button[data-trigger].secondary { min-height: 44px; font-size: var(--text-sm); }
}

/* ---------- Reassurance (multi-column) ---------- */
.columns .column-card { text-align: center; }
.columns .column-card .column-title {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
}
.columns .column-card .column-subtitle {
  color: var(--color-gray-500);
  margin-block-start: 0.25em;
}

/* ---------- Footer ---------- */
footer .copyright { color: var(--color-gray-500); }

/* ---------- Collection / listing spacing ---------- */
.breadcrumb { font-size: var(--text-sm); }

/* ---------- Responsive listing grids (collection, search, all collections) ----------
   Origins forces 2 columns up to 1280px and a single column up to 1024px (with
   !important): huge cards on laptops, one product per screen on tablets and phones.
   Retail standard instead: 3 columns on tablet/laptop, 2 on phones. */
@media (max-width: 1280px) {
  .items-grid:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* The :has() selector is repeated below so each breakpoint has the same specificity. */
@media (max-width: 1024px) {
  .items-grid,
  .items-grid:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: var(--gap-md, 16px); }
}
@media (max-width: 768px) {
  .items-grid,
  .items-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
}
/* Square images and equal-height cards whatever the column width. */
.items-grid .product-card { display: flex; flex-direction: column; height: 100%; }
.items-grid .product-card .info { flex: 1; align-content: start; }
.items-grid .product-card[data-style] .img-link { height: auto; }
.items-grid .product-card[data-style] .img-link img { height: auto; aspect-ratio: 1 / 1; }
.items-grid .product-card .info .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.3;
  min-height: 2.6em;
}
@media (max-width: 768px) {
  /* Framed listing (border + 24px padding inside the 16px page gutter) cost ~80px on phones. */
  /* "section" prefix: product-listing.css loads later with the same specificity. */
  section .product-listing { border: none; }
  section .product-listing .products-area { padding: 12px 0; }
  section .product-listing .filter-area,
  section .product-listing .collections-area { padding-inline: 0; }
  .items-grid .product-card .info { padding: 10px; }
  .items-grid .product-card .info .title { font-size: var(--text-sm); }
  /* Narrow cards: the CTA wraps on two lines instead of being cut. */
  .items-grid .product-card .info button,
  .items-grid .product-card .info .yc-btn {
    min-height: 44px;
    padding: 6px;
    font-size: var(--text-xs);
    line-height: 1.2;
    white-space: normal;
  }
}

/* ---------- Category page: explicit sort button + browse chips (T23) ---------- */
/* Phones/tablets: « Trier : Par défaut ▾ » text button (snippets/yc-sort.liquid) instead of a settings-like icon. */
.select-trigger label.mkc-sort-trigger {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e6d5dc;
  border-radius: var(--mkc-btn-radius);
  background: #ffffff;
  color: var(--color-base-black);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.select-trigger label.mkc-sort-trigger strong { font-weight: 700; }
.select-trigger label.mkc-sort-trigger svg { flex: none; width: 16px; height: 16px; }
.select-trigger label.mkc-sort-trigger:hover { border-color: rgb(var(--color-button)); }
section .product-listing .filter-area { flex-wrap: wrap; gap: 12px; }
/* Product count « 20 produits » next to the title (was « [20] » at 11 px, T27). */
section .product-listing .filter-area .title [data-count] { inset-block-start: 0; font-size: var(--text-sm); white-space: nowrap; }
.mkc-cat-chips { padding: 0 1.5em 1.5em; }
.mkc-cat-chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mkc-cat-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #ead9e0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-base-black);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.mkc-cat-chips a:hover { border-color: rgb(var(--color-button)); }
.mkc-cat-chips a[aria-current="page"] { border-color: #f3c5d6; background: #fbe6ee; color: #a3164f; }
.mkc-cat-chips a:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 2px; }
/* Phones: every category stays visible, wrapped on several lines (no hidden swipe row). */
@media (max-width: 768px) {
  .mkc-cat-chips { padding: 0 0 12px; }
  .mkc-cat-chips ul { gap: 8px 6px; }
  .mkc-cat-chips a { min-height: 36px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .mkc-cat-chips a { transition: none; } }

/* ---------- Category intro (under the title) and folded SEO text (T30) ---------- */
.mkc-cat-intro {
  max-width: 70ch;
  margin: 0 0 1.2em;
  padding: 0 1.5em;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: #5e4c53;
}
@media (max-width: 768px) {
  .mkc-cat-intro { padding-inline: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}
.mkc-cat-more { max-width: 820px; margin: 32px auto 8px; border-block: 1px solid #efe3e8; }
.mkc-cat-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding-inline: 4px;
  font-weight: 700;
  color: var(--color-base-black);
  cursor: pointer;
  list-style: none;
}
.mkc-cat-more > summary::-webkit-details-marker { display: none; }
.mkc-cat-more > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-end: 6px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease;
}
.mkc-cat-more[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
.mkc-cat-more > summary:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 2px; }
.mkc-cat-more .mkc-cat-seo { margin-block: 0 20px; }

/* Live price table of a category (snippets/mkc-cat-price-table.liquid, D6). */
.mkc-price-table__wrap { overflow-x: auto; margin-block-end: 12px; }
.mkc-price-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.mkc-price-table th, .mkc-price-table td { padding: 8px 6px; text-align: start; vertical-align: top; border-block-end: 1px solid #efe3e8; }
.mkc-price-table thead th { font-weight: 700; color: var(--color-base-black); }
.mkc-price-table tbody th { font-weight: 400; }
.mkc-price-table tbody th a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mkc-price-table__price { white-space: nowrap; font-weight: 600; }
.mkc-price-table__note { margin-block: 0 20px; font-size: var(--text-sm); color: var(--color-gray-700, #3f3f46); }
@media (prefers-reduced-motion: reduce) { .mkc-cat-more > summary::after { transition: none; } }

/* ---------- Category SEO text (under the product grid) ---------- */
.mkc-cat-seo {
  max-width: 820px;
  margin: 40px auto 8px;
  padding-inline: 4px;
  color: var(--color-gray-700, #3f3f46);
  line-height: 1.7;
}
.mkc-cat-seo > * + * { margin-block-start: 0.7em; }
.mkc-cat-seo h2 { font-size: var(--text-xl, 1.25rem); font-weight: 700; color: var(--color-base-black); line-height: 1.3; }
.mkc-cat-seo h3 { margin-block-start: 1.2em; font-size: var(--text-md, 1rem); font-weight: 700; color: var(--color-base-black); }
.mkc-cat-seo ul { padding-inline-start: 1.3em; list-style: disc; }
.mkc-cat-seo li::marker { color: rgb(var(--color-button)); }
.mkc-cat-seo a { color: var(--mkc-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.mkc-cat-seo table { inline-size: 100%; border-collapse: collapse; }
.mkc-cat-seo th, .mkc-cat-seo td { padding: 8px 6px; border-block-end: 1px solid rgb(0 0 0 / 0.12); text-align: start; vertical-align: top; }
.mkc-cat-seo th { font-weight: 700; color: var(--color-base-black); }
.mkc-cat-seo tr > :not(:first-child) { white-space: nowrap; }

/* ---------- Product description (rich text from the admin) ----------
   The base reset strips headings, lists and spacing: restore a readable hierarchy. */
.single-product .description { line-height: 1.6; }
.single-product .description > * + * { margin-block-start: 0.6em; }
.single-product .description h2,
.single-product .description h3,
.single-product .description h4 {
  margin-block-start: 1.3em;
  font-size: 1.08em; /* a step above body text, whatever the base size */
  font-weight: 700;
  line-height: 1.35;
}
.single-product .description ul,
.single-product .description ol { padding-inline-start: 1.3em; }
.single-product .description ul { list-style: disc; }
.single-product .description ol { list-style: decimal; }
.single-product .description li + li { margin-block-start: 0.3em; }
.single-product .description li::marker { color: rgb(var(--color-button)); }

/* ---------- Forms on phones ----------
   iOS Safari zooms the whole page when a field under 16px gets focus. */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { font-size: 16px !important; } /* component CSS loads after this file */
}

/* =====================================================================
   PRO CART — drawer, cart page, add-to-cart.
   header-cart-drawer.css / cart.css / featured-product.css load inside the
   sections (after this file), so rules here are scoped with #ids to win.
   ===================================================================== */

/* ---------- Drawer frame ---------- */
yc-drawer#cart { --drawer-width: 440px; --mkc-pad: 20px; }
@media (max-width: 768px) {
  yc-drawer#cart { --drawer-width: 92%; }
}

yc-drawer#cart .cart-btn .total-items {
  background: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-weight: 700;
}

yc-drawer#cart .cart-drawer .header {
  padding: 16px var(--mkc-pad);
}
yc-drawer#cart .cart-drawer .header .title {
  font-weight: 700;
  font-size: var(--text-lg);
}
yc-drawer#cart .cart-drawer .header .mkc-count {
  color: var(--color-gray-500);
  font-weight: 500;
}

/* ---------- Free-shipping progress (drawer + cart page) ---------- */
.mkc-free-shipping {
  display: grid;
  gap: 0.55em;
  padding: 12px var(--mkc-pad, 20px);
  background: color-mix(in srgb, rgb(var(--color-button)) 7%, #ffffff);
}
.mkc-fs-text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.35;
}
.mkc-fs-text strong { color: var(--mkc-accent-text); }
.mkc-fs-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.mkc-fs-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--color-button)), #e58bb0);
  transition: width 0.5s ease;
}
.mkc-free-shipping[data-unlocked] { background: #e8f7ee; }
.mkc-free-shipping[data-unlocked] .mkc-fs-bar span { background: #1fc16b; }
yc-drawer#cart .cart-drawer[data-is-empty] .mkc-free-shipping { display: none; }

/* ---------- Drawer items ---------- */
yc-drawer#cart .cart-drawer yc-cart-drawer-items {
  padding: 8px var(--mkc-pad);
  gap: 0;
  overflow-y: auto;
}
yc-drawer#cart .cart-drawer .item {
  gap: 1em;
  padding-block: 1em;
}
yc-drawer#cart .cart-drawer .item .image {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: var(--color-gray-50);
}
yc-drawer#cart .cart-drawer .item .info .heading .name {
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1.3;
}
yc-drawer#cart .cart-drawer .item .price .original {
  color: var(--mkc-price, var(--mkc-accent-text));
  font-weight: 700;
}
yc-drawer#cart .cart-drawer .item .price .compare-at { font-size: var(--text-xs); }
yc-drawer#cart .cart-drawer .item [data-delete] {
  color: var(--color-gray-500);
  background: transparent;
  border: none;
  border-radius: 999px;
}
yc-drawer#cart .cart-drawer .item [data-delete]:hover {
  color: var(--color-error-500);
  background: var(--color-error-50);
}

/* ---------- Tap targets of 24 px minimum (WCAG 2.5.8, T26) ---------- */
/* Breadcrumb (snippets/yc-breadcrumb.liquid): 21 px high links -> 32 px. */
.breadcrumb ol li a { display: inline-flex; align-items: center; min-height: 32px; }

/* Product page breadcrumb (snippets/mkc-product-breadcrumb.liquid): one line, the product name is cut
   with « … » (it is the <h1> just below). Its tokens are in tooling/critical-tokens.json (product). */
.mkc-product-breadcrumb { margin-block-end: 8px; }
.mkc-product-breadcrumb ol { flex-wrap: nowrap; min-width: 0; }
.mkc-product-breadcrumb ol li { flex-shrink: 0; min-width: 0; }
.mkc-product-breadcrumb ol li:last-child { flex-shrink: 1; overflow: hidden; }
.mkc-product-breadcrumb ol li:last-child a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 32px; }

/* ---------- Quantity stepper (pill) ---------- */
yc-drawer#cart yc-quantity-control.quantity,
#main yc-quantity-control.quantity {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  background: #ffffff;
}
yc-drawer#cart yc-quantity-control.quantity .yc-btn.icon,
#main yc-quantity-control.quantity .yc-btn.icon {
  border: none;
  background: transparent;
  border-radius: 999px;
}
yc-drawer#cart yc-quantity-control.quantity .yc-btn.icon:hover,
#main yc-quantity-control.quantity .yc-btn.icon:hover { background: var(--color-gray-50); }
yc-drawer#cart yc-quantity-control.quantity .current-quantity,
#main yc-quantity-control.quantity .current-quantity {
  min-width: 2.2ch;
  text-align: center;
  font-weight: 600;
}

/* The header colour (Header > Background colour) tints the bar, the category row and the
   mobile menu; the cart drawer stays white so the order summary reads cleanly. */
yc-header .cart-drawer { --header-bg-color: #ffffff; }

/* ---------- Drawer footer ---------- */
yc-drawer#cart .cart-drawer .footer {
  background: var(--header-bg-color, #ffffff);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}
yc-drawer#cart .cart-drawer .footer .totals {
  border: none;
  padding: 16px var(--mkc-pad) 2px;
  font-size: var(--text-lg);
  font-weight: 700;
}
.mkc-shipping-note {
  margin: 0;
  padding: 0 var(--mkc-pad, 20px);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}
yc-drawer#cart .cart-drawer .footer .actions {
  border: none;
  gap: 0.7em;
  padding: 14px var(--mkc-pad) 8px;
}
.mkc-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: var(--text-md);
  background: rgb(var(--color-button));
  border-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
}
.mkc-checkout:hover { filter: brightness(0.94); color: rgb(var(--color-button-text)); }
.mkc-secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
.mkc-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-base-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mkc-link:hover { color: var(--mkc-accent-text); }
.mkc-trust {
  margin: 0;
  padding: 6px var(--mkc-pad, 20px) 16px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

/* Short screens: keep the item list visible, drop secondary footer lines. */
@media (max-height: 640px) {
  yc-drawer#cart .mkc-shipping-note,
  yc-drawer#cart .mkc-trust { display: none; }
  yc-drawer#cart .cart-drawer .footer .actions { padding-block-end: 14px; }
}

/* ---------- Drawer empty state ---------- */
yc-drawer#cart .cart-drawer .empty .icon { color: rgb(var(--color-button)); opacity: 0.85; }
yc-drawer#cart .cart-drawer .mkc-empty-cta { display: none; }
/* Message + CTA grouped and centered together (yc-empty is height:100% by default). */
yc-drawer#cart .cart-drawer[data-is-empty] .empty {
  height: auto;
  flex: 0 0 auto;
  margin-top: auto;
}
yc-drawer#cart .cart-drawer[data-is-empty] .mkc-empty-cta {
  display: inline-flex;
  align-self: center;
  margin: 1.4em auto auto;
  padding-inline: 1.8em;
}

/* ---------- Product page: add to cart ---------- */
#main .single-product .buy-button yc-product-form {
  display: flex;
  align-items: stretch;
  gap: 0.75em;
}
#main .single-product .buy-button yc-product-form button.primary {
  flex: 1;
  min-height: 52px;
  border-radius: var(--mkc-btn-radius);
  font-size: var(--text-md);
  font-weight: 700;
}
/* Product page and quick view: same pink on hover instead of the faded opacity. */
yc-product-form [data-buy-button].primary {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
yc-product-form [data-buy-button].primary:hover:not(:disabled) {
  opacity: 1;
  background: var(--mkc-cta-hover);
  border-color: var(--mkc-cta-hover);
  color: rgb(var(--color-button-text));
}
@media (max-width: 768px) {
  #main .single-product .buy-button {
    position: sticky;
    inset-block-end: 0;
    z-index: 20;
    /* Full-bleed: cancel yc-section's 16px gutter. */
    margin-inline: -16px;
    padding: 0.75em 16px calc(0.75em + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: var(--section-bg-color, #ffffff);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
  }
  /* Sticky bar (yc-product-form, fixed by Origins): price | quantity | button. */
  #main .single-product .buy-button > yc-product-form { align-items: center; }
  /* Title and price stay above the sticky bar on the first screen: square image, shorter top space. */
  #main .single-product yc-product-media { --media-main-image-height: min(calc(100vw - 32px), 46vh); }
  #main yc-section:has(> .single-product) { --section-space-top: 16px !important; }
}
@media (max-width: 768px) and (max-height: 700px) {
  #main .single-product yc-product-media { --media-main-image-height: min(calc(100vw - 32px), 36vh); }
}
.mkc-sticky-price { display: none; }
@media (max-width: 768px) {
  .mkc-sticky-price {
    display: grid;
    flex: none;
    gap: 1px;
    min-width: 60px;
    padding-inline: 4px 2px;
    line-height: 1.15;
  }
  .mkc-sticky-price__now { font-size: var(--text-lg); font-weight: 800; white-space: nowrap; color: var(--mkc-price, var(--mkc-accent-text)); }
  .mkc-sticky-price__was { font-size: var(--text-xs); color: var(--color-gray-500); white-space: nowrap; }
  .mkc-sticky-price__was[hidden] { display: none; }
}
/* Phones: a compact quantity stepper leaves room for "Ajouter au panier" on one line. */
@media (max-width: 430px) {
  #main .single-product .buy-button > yc-product-form { gap: 8px; }
  #main .single-product .buy-button yc-quantity-control.quantity { flex: none; gap: 0; padding: 2px; }
  #main .single-product .buy-button yc-quantity-control.quantity .yc-btn.icon { width: 32px; min-width: 32px; height: 40px; padding: 0; }
  #main .single-product .buy-button yc-product-form button.primary { padding-inline: 8px; white-space: nowrap; }
  .mkc-sticky-price__now { font-size: var(--text-md); }
}
@media (max-width: 359px) {
  #main .single-product .buy-button yc-product-form button.primary { font-size: var(--text-sm); }
}

/* ---------- Cart page ---------- */
#main .cart .summary yc-summary-box .box {
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}
#main .cart .mkc-free-shipping {
  border-radius: 12px;
  margin-block-end: 1em;
}
#main .cart #checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  font-size: var(--text-md);
  background: rgb(var(--color-button));
  border-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
}
#main .cart .mkc-trust { padding-inline: 0; }
@media (min-width: 992px) {
  #main .cart .summary {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* ---------- Floating WhatsApp button (snippets/whatsapp-float.liquid) ----------
   Sits above the fixed buy / checkout bars (offset measured by assets/mkc-home.js),
   48 px on phones, hidden while scrolling down and back when scrolling up. */
.whatsapp-float {
  inset-block-end: calc(var(--mkc-float-offset, 0px) + 16px + env(safe-area-inset-bottom, 0px)) !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.whatsapp-float.is-tucked { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  .whatsapp-float { width: 48px !important; height: 48px !important; inset-inline-end: 12px !important; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}

/* Cart page, fixed checkout bar (phones and tablets): full width, reassurance on its own line. */
@media (max-width: 1024px) {
  #main .cart .summary .box .subtotal .total-box {
    flex-wrap: wrap;
    gap: 8px 12px;
    width: calc(100% - 2em);
    margin: 1em;
    padding: 0.75em 1em calc(0.75em + env(safe-area-inset-bottom, 0px));
  }
  #main .cart .summary .box .subtotal .total-box #checkout-button { flex: 1; min-width: 0; }
  #main .cart .summary .box .subtotal .total-box .mkc-trust {
    flex-basis: 100%;
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1.35;
    text-align: center;
    color: var(--color-gray-500);
  }
  /* The page content must end above the fixed bar. */
  #main .cart { padding-block-end: 150px; }
  /* Checkout is the priority here: no floating button over the items (WhatsApp stays in the footer). */
  body:has(#main .cart .total-box) .whatsapp-float { display: none !important; }
}

/* ---------- Thank-you page: WhatsApp confirmation ---------- */
.mkc-wa-confirm {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 20px;
  border: 2px solid #0e733d;
  border-radius: 12px;
  background: #f1fbf5;
  color: var(--color-base-black);
}
.mkc-wa-confirm__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0e733d;
  color: #ffffff;
}
.mkc-wa-confirm__body { display: grid; gap: 10px; min-width: 0; }
.mkc-wa-confirm__title { margin: 0; font-size: var(--text-xl); font-weight: 800; line-height: 1.25; }
.mkc-wa-confirm__text,
.mkc-wa-confirm__note { margin: 0; font-size: var(--text-md); line-height: 1.5; }
.mkc-wa-confirm__note { font-size: var(--text-sm); color: var(--color-gray-500); }
.mkc-wa-confirm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 50px;
  padding: 0 1.6em;
  border-radius: var(--mkc-btn-radius, 6px);
  background: #0e733d;
  color: #ffffff;
  font-size: var(--text-md);
  font-weight: 700;
  text-decoration: none;
}
.mkc-wa-confirm__btn:hover { filter: brightness(1.1); color: #ffffff; }
@media (max-width: 560px) {
  .mkc-wa-confirm { flex-direction: column; align-items: stretch; padding: 16px; }
  .mkc-wa-confirm__btn { justify-self: stretch; }
}

/* ---------- Sticky header above the page content ----------
   YouCan's sticky header sits at z-index 2, the same level as the product-card
   discount badges (and below the carousel arrows, 3): scrolled content showed
   through it. The cart and menu drawers live inside the header and inherit its
   level, so this also puts an open cart above the floating WhatsApp button (60),
   while staying under YouCan's overlays and modals (99 and more).
   "body" outranks layout-header.css, which loads after this file. */
body #youcan-section--header:has(yc-header[data-sticky]) {
  z-index: 70;
}

/* ---------- Cart page: empty state (sections/cart.liquid) ---------- */
yc-section .cart > .empty { flex-direction: column; align-items: stretch; gap: 32px; }
yc-section .cart > .empty .empty-page { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; height: auto; min-height: 0; padding-block: 24px 0; }
.mkc-cart-empty { display: grid; justify-items: center; gap: 12px; margin-block-start: 8px; text-align: center; }
.mkc-cart-empty__note { margin: 0; font-size: var(--text-sm); color: var(--color-gray-500); }
.mkc-cart-empty__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 28px; border-radius: var(--mkc-btn-radius); font-weight: 700; white-space: nowrap; }
.mkc-cart-empty__picks { display: grid; gap: 14px; width: 100%; min-width: 0; }
.mkc-cart-empty__title { margin: 0; font-size: clamp(2rem, 2.4vw, 2.6rem); font-weight: 800; text-align: center; }

/* ---------- Cart drawer & cart page: reassurance icons and « Complétez votre routine » (T20) ---------- */
ul.mkc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; list-style: none; }
ul.mkc-trust li { display: inline-flex; align-items: center; gap: 5px; }
ul.mkc-trust svg { width: 15px; height: 15px; flex: none; color: rgb(var(--color-button)); }
.mkc-upsell { padding: 12px var(--mkc-pad, 20px); border-block-start: 1px solid var(--color-gray-200, #eee); }
.mkc-upsell[hidden], .mkc-upsell__item[hidden] { display: none; }
.mkc-upsell__title { margin: 0 0 8px; font-size: var(--text-sm); font-weight: 800; }
.mkc-upsell__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mkc-upsell__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mkc-upsell__img img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.mkc-upsell__info { display: grid; gap: 2px; min-width: 0; }
.mkc-upsell__name { overflow: hidden; font-size: var(--text-sm); font-weight: 600; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.mkc-upsell__price { font-size: var(--text-sm); font-weight: 700; color: var(--mkc-price, var(--mkc-accent-text)); }
.mkc-upsell__add { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid rgb(var(--color-button)); border-radius: 50%; background: #fff; color: rgb(var(--color-button)); font-size: 2rem; line-height: 1; cursor: pointer; }
.mkc-upsell__add:hover { background: var(--mkc-cta-hover); border-color: var(--mkc-cta-hover); color: rgb(var(--color-button-text)); }
@media (max-height: 700px) { yc-drawer#cart .mkc-upsell { display: none; } }

/* ---------- Product page: single reassurance block under the buy button (snippets/mkc-product-trust.liquid) ---------- */
.mkc-ptrust { display: grid; gap: 4px; margin-block: 4px 8px; }
.mkc-ptrust__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f1e1e8;
  border-radius: 12px;
  background: #fdf6f9;
  list-style: none;
}
.mkc-ptrust__list li { display: flex; align-items: center; gap: 12px; font-size: var(--text-md); font-weight: 600; line-height: 1.35; color: var(--color-base-black); }
.mkc-ptrust__list svg { width: 22px; height: 22px; flex: none; color: #a3164f; }
.mkc-ptrust__wa {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 44px;
  font-size: var(--text-md);
  font-weight: 700;
  color: #0e733d;
  text-decoration: none;
}
.mkc-ptrust__wa svg { width: 20px; height: 20px; flex: none; }
.mkc-ptrust__wa:hover span { text-decoration: underline; text-underline-offset: 3px; }
.mkc-ptrust__wa:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
/* Optional link under a product accordion (e.g. "Voir les conditions de retour"): snippets/product-accordion.liquid */
.mkc-accordion-link { margin-block-start: 8px; }
.mkc-accordion-link a { color: var(--mkc-accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Instant search suggestions (assets/mkc-search.js, T31) ---------- */
.mkc-suggest-host { position: relative; }
.mkc-suggest {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + 6px);
  z-index: 60;
  min-width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 540px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #efe3e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(61, 47, 53, 0.16);
  color: var(--color-base-black);
  text-align: start;
}
.mkc-suggest[hidden] { display: none; }
/* Mobile row (padding 0 16px 12px): the panel lines up with the field. */
.mkc-mobile-search .mkc-suggest { inset-inline: 16px; inset-block-start: calc(100% - 6px); min-width: 0; max-height: calc(100dvh - 190px); }
.mkc-suggest__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mkc-suggest__group + .mkc-suggest__group { margin-block-start: 4px; padding-block-start: 4px; border-block-start: 1px solid #f3e9ee; }
.mkc-suggest__title { margin: 0; padding: 8px 10px 4px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6d5c63; }
.mkc-suggest__item,
.mkc-suggest__cat,
.mkc-suggest__all {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.mkc-suggest__item { min-height: 60px; padding: 6px 10px; }
.mkc-suggest__cat { min-height: 44px; padding: 0 10px; font-weight: 600; }
.mkc-suggest__img { flex: none; width: 48px; height: 48px; border-radius: 8px; background: #f6f1ec; object-fit: cover; }
.mkc-suggest__name { flex: 1; min-width: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--text-sm); font-weight: 500; line-height: 1.35; }
.mkc-suggest__price { flex: none; font-size: var(--text-sm); font-weight: 700; color: var(--mkc-price, var(--mkc-accent-text)); white-space: nowrap; }
.mkc-suggest mark { background: none; color: inherit; font-weight: 800; }
.mkc-suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 10px; }
.mkc-suggest__chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #ead9e0; border-radius: 999px; color: inherit; font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.mkc-suggest__all { justify-content: center; min-height: 48px; margin-block-start: 4px; padding: 0 10px; border-block-start: 1px solid #f3e9ee; border-radius: 0 0 10px 10px; font-size: var(--text-sm); font-weight: 700; color: #a3164f; text-align: center; }
.mkc-suggest__empty { margin: 0; padding: 14px 10px 6px; font-size: var(--text-sm); color: #5e4c53; }
.mkc-suggest a:hover,
.mkc-suggest a[aria-selected="true"] { background: #fdf1f6; }
.mkc-suggest__chip:hover,
.mkc-suggest__chip[aria-selected="true"] { border-color: rgb(var(--color-button)); }
.mkc-suggest-host.is-loading .mkc-suggest { opacity: 0.7; }

/* ---------- Mobile menu drawer (snippets/header-menu-drawer.liquid, T32) ---------- */
/* Account and favourites on top, visible without scrolling. */
.menu-drawer .mkc-drawer-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
/* Tiles (icon above the label): « Se connecter » fits on one line in a 306 px drawer. */
.menu-drawer .mkc-drawer-quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px;
  line-height: 1.2;
  border: 1px solid #ead9e0;
  border-radius: var(--mkc-btn-radius);
  background: #ffffff;
  color: var(--color-base-black);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.menu-drawer .mkc-drawer-quick__btn svg { flex: none; width: 20px; height: 20px; color: #a3164f; }
.menu-drawer .mkc-drawer-quick__btn:hover { border-color: rgb(var(--color-button)); }
/* Categories with a round thumbnail (the category image). ".menu-core" outranks header-menu-drawer.css (loaded later). */
.menu-drawer .menu-core .navigation li.mkc-drawer-cat > a,
.menu-drawer .menu-core .navigation li.mkc-drawer-cat > a:hover { padding-block: 10px; }
.menu-drawer .menu-core .navigation li.mkc-drawer-cat > a:hover { padding-inline: 8px; }
.mkc-drawer-cat__name { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.mkc-drawer-cat__thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #fbe6ee;
  color: #a3164f;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.mkc-drawer-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Help block at the bottom: WhatsApp, delivery, FAQ. */
.menu-drawer .mkc-drawer-help { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: #fdf1f6; }
.mkc-drawer-help__title { margin: 0; font-size: var(--text-md); font-weight: 800; color: var(--color-base-black); }
.mkc-drawer-help__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--mkc-btn-radius);
  background: #0e733d;
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}
.mkc-drawer-help__wa:hover { background: #0b5e31; color: #ffffff; }
/* The drawer sits in « yc-header .links », whose ul are hidden on phones: higher specificity. */
.menu-drawer .mkc-drawer-help ul { display: grid; margin: 0; padding: 0; list-style: none; }
.mkc-drawer-help li a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--color-base-black); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.mkc-drawer-help li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.mkc-drawer-help li svg { flex: none; width: 20px; height: 20px; color: #a3164f; }

/* ---------- hCaptcha on 320-359 px screens ---------- */
/* The widget is a fixed 302 px iframe: on a 320 px phone it widened the login, register, recover and contact
   cards to 336-340 px (horizontal scroll). The box is narrowed and the iframe scaled down to fit it. */
@media (max-width: 359px) {
  .h-captcha { width: 264px; height: 68px; overflow: hidden; }
  .h-captcha iframe { transform: scale(0.875); transform-origin: 0 0; }
}

/* ---------- Accessibility helpers (QA axe-core) ---------- */
.mkc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Keyboard focus ring on scrollable carousels (tabindex="0" added by mkc-carousel). */
.mkc-track:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: -2px; }

/* ---------- Accent prices (#FF80C5) everywhere a price is shown ---------- */
.single-product yc-product-info .price .current,
.product-quick-view .view-box .content yc-product-info .core-info .price-info .current,
yc-section .cart .content .item .info .heading .price .original,
yc-drawer#cart .cart-drawer .item .price .original,
.mkc-wl-card__price {
  color: var(--mkc-price, var(--mkc-accent-text));
  font-weight: 700;
}

/* ---------- Drawer: promo code + discount (assets/custom-cart.js, YouCan's applyCoupon / removeCoupons) ---------- */
.mkc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mkc-drawer-coupon { padding: 4px var(--mkc-pad, 20px) 0; }
.mkc-drawer-coupon[hidden],
.mkc-drawer-discount[hidden] { display: none; }
.mkc-drawer-coupon > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgb(var(--color-base-black, 18, 18, 18));
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.mkc-drawer-coupon > summary::-webkit-details-marker { display: none; }
.mkc-drawer-coupon__form { display: flex; gap: 8px; padding-bottom: 6px; }
.mkc-drawer-coupon__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-gray-200, #e5e5e5);
  border-radius: var(--mkc-btn-radius);
  font-size: 16px; /* no zoom on iPhone */
  text-transform: uppercase;
}
.mkc-drawer-coupon__form .yc-btn { flex: none; min-height: 44px; }
yc-drawer#cart .cart-drawer .footer .mkc-drawer-discount .totals {
  padding-top: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
}
yc-drawer#cart .cart-drawer .footer .mkc-drawer-discount .mkc-drawer-discount__total { font-size: var(--text-lg); font-weight: 700; }
.mkc-drawer-coupon__remove { margin-inline-start: 6px; padding: 10px 4px; font-size: var(--text-xs); }

/* ---------- Product page, 280-359 px (Galaxy Fold folded, iPhone SE 1): price | quantity | button did not fit
   (button 194-328 px on a 280 px screen, click intercepted). Price + quantity on one line, the button below. ---------- */
@media (max-width: 359.98px) {
  #main .single-product .buy-button > yc-product-form { flex-wrap: wrap; row-gap: 8px; }
  #main .single-product .buy-button > yc-product-form > * { min-width: 0; }
  #main .single-product .buy-button yc-product-form button.primary { flex: 1 1 100%; white-space: normal; }
}

/* ---------- Header, 280-340 px (Galaxy Fold folded): menu 44 + logo 130 + icons 84 + gaps = 322 px made every page
   306 px wide on a 280 px screen. Smaller logo and gaps; nothing hidden. ---------- */
@media (max-width: 340px) {
  yc-header { gap: 8px; }
  yc-header .logo img { max-width: 96px; height: auto; }
}

/* ---------- Cart and menu drawer backdrop: the rules of Origins' .overlay + .drawer-overlay (assets/main.css,
   assets/component-drawer.css) under a class name that AI audits do not take for a pop-up or an interstitial.
   The drawer script only uses [data-toggle] (click on the backdrop closes the drawer). ---------- */
.mkc-drawer-backdrop {
  inset: 0;
  z-index: 99;
  position: fixed;
  opacity: 0;
  visibility: hidden;
  -webkit-backdrop-filter: var(--overlay-blur);
  backdrop-filter: var(--overlay-blur);
  background-color: var(--overlay-background);
  transition: var(--transition-duration-normal);
}
yc-drawer[data-hidden$=false] .mkc-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}
