/* =====================================================================
   Miss Petty — mega menu, product compare, AJAX filter
   Loaded after style.css; uses the same design tokens.
   ===================================================================== */

/* =====================================================================
   1. Mega menu
   ===================================================================== */
.mega-toggle { display: none; }
.mega-backdrop {
  position: fixed; left: 0; right: 0; bottom: 0; top: 140px;
  background: rgba(26, 20, 16, 0.4);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 80;
}
.mega-backdrop.is-on { opacity: 1; visibility: visible; pointer-events: auto; }

.mega { display: none; }

@media (min-width: 901px) {
  nav.main ul li.has-mega-menu { position: static; }
  nav.main ul li.has-mega-menu > a { padding-right: 16px; }
  nav.main ul li.has-mega-menu > a::before {
    content: ""; position: absolute; right: 2px; top: 50%; width: 5px; height: 5px; margin-top: -4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform 0.3s var(--ease);
  }
  nav.main ul li.has-mega-menu.is-open > a::before { transform: rotate(225deg); margin-top: -1px; }
  nav.main ul li.has-mega-menu.is-open > a::after { transform: scaleX(1); transform-origin: left; }

  .mega {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 50px 70px -45px rgba(36, 30, 26, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
    z-index: 89;
    max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  }
  li.has-mega-menu.is-open > .mega { opacity: 1; visibility: visible; transform: none; }

  .mega-inner {
    display: grid; grid-template-columns: 1.7fr 0.55fr 1fr;
    gap: clamp(28px, 5vw, 88px);
    padding-top: 46px; padding-bottom: 54px;
  }
}

.mega-title {
  font-size: 11px; font-weight: 500; letter-spacing: var(--track-luxe); text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 22px;
}
.mega-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 34px 28px; }
.mega-cat-head {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-size: 24px; line-height: 1.1; text-transform: none; letter-spacing: -0.01em; font-weight: 400;
  padding: 0; margin-bottom: 14px; transition: color 0.2s var(--ease);
}
.mega-cat-head::after { display: none !important; }
.mega-cat-head:hover { color: var(--rouge); }
.mega-count { font-family: var(--font-body); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; }
.mega-cat ul, .mega-quick ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mega ul li a {
  display: inline-block; padding: 5px 0;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); transition: color 0.2s var(--ease), transform 0.3s var(--ease);
}
.mega ul li a::after { display: none !important; }
.mega ul li a:hover { color: var(--ink); transform: translateX(5px); }
.mega .mega-all { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }
.mega-empty a { font-family: var(--font-display); font-size: 24px; text-transform: none; letter-spacing: 0; }

.mega-quick ul li a { font-family: var(--font-display); font-size: 21px; color: var(--ink); padding: 6px 0; }

.mega-products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mega-product { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; padding: 0; }
.mega-product::after { display: none !important; }
.mega-product-media { display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--stone); margin-bottom: 12px; }
.mega-product-media img, .mega-product-media .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.mega-product:hover .mega-product-media img { transform: scale(1.07); }
.mega-product-name { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.2; color: var(--ink); text-transform: none; letter-spacing: 0; }
.mega-product-price { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; font-family: var(--font-body); }

/* beat the generic nav.main a rules (specificity) for links inside the panel */
nav.main a.mega-cat-head {
  display: flex; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; text-transform: none;
}
nav.main a.mega-product { display: block; padding: 0; font-weight: 400; letter-spacing: 0; text-transform: none; }
nav.main .mega-empty a { font-family: var(--font-display); font-size: 24px; text-transform: none; letter-spacing: 0; font-weight: 400; }
nav.main .mega ul li a { padding: 5px 0; font-weight: 400; }
nav.main .mega-quick ul li a { font-family: var(--font-display); font-size: 21px; letter-spacing: 0; text-transform: none; }
nav.main .mega .mega-all { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* mobile: accordion inside the full-screen menu */
@media (max-width: 900px) {
  nav.main ul li.has-mega-menu { position: relative; }
  .mega-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 10px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; color: var(--ink);
  }
  .mega-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.3s var(--ease); }
  li.has-mega-menu.is-open > .mega-toggle svg { transform: rotate(180deg); }
  li.has-mega-menu.is-open > .mega { display: block; padding: 6px 0 18px 4px; }
  .mega-inner { display: block; padding: 0; }
  .mega-feature, .mega-quick .mega-title, .mega-cats .mega-title { display: none; }
  .mega-cat-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-top: 10px; }
  nav.main a.mega-cat-head { font-size: 20px; }
  nav.main .mega ul li a { font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: 0; }
  .mega-quick { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
  .mega-quick ul { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; }
  nav.main .mega-quick ul li a { font-size: 19px; font-family: var(--font-display); }
  .mega-backdrop { display: none; }
}

/* =====================================================================
   2. Compare
   ===================================================================== */
.compare-btn {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 0;
  height: 38px; min-width: 38px; padding: 0 11px;
  background: rgba(251, 248, 244, 0.94); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), padding 0.3s var(--ease);
}
.compare-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.compare-btn-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.35s var(--ease), opacity 0.25s var(--ease), margin 0.35s var(--ease); }
.compare-btn:hover, .compare-btn:focus-visible { background: var(--white); border-color: var(--ink); }
.compare-btn:hover .compare-btn-label, .compare-btn:focus-visible .compare-btn-label, .compare-btn.is-active .compare-btn-label { max-width: 90px; opacity: 1; margin-left: 8px; }
.compare-btn.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.compare-btn--inline {
  position: static; height: 52px; padding: 0 24px; margin-top: 14px; width: 100%; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.compare-btn--inline .compare-btn-label { max-width: none; opacity: 1; margin-left: 10px; }
.compare-btn--inline.is-active { background: var(--ink); }

/* Tray (bottom) */
.compare-tray {
  position: fixed; left: 50%; bottom: 20px; z-index: 120;
  transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 22px;
  padding: 12px 14px 12px 16px;
  background: var(--ink); color: var(--cream);
  border-radius: 22px; box-shadow: 0 24px 60px -18px rgba(36, 30, 26, 0.65);
  transition: transform 0.55s var(--ease);
  max-width: calc(100% - 24px);
}
.compare-tray.is-visible { transform: translate(-50%, 0); }
.compare-tray-slots { display: flex; gap: 10px; }
.compare-slot {
  position: relative; width: 52px; height: 64px; border-radius: 10px;
  border: 1px dashed rgba(247, 243, 238, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(247, 243, 238, 0.4); font-size: 20px; overflow: visible;
}
.compare-slot.is-filled { border-style: solid; border-color: rgba(247, 243, 238, 0.2); background: var(--stone); }
.compare-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.compare-slot-remove {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); color: var(--ink); border: none; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.compare-tray-actions { display: flex; align-items: center; gap: 10px; }
.compare-tray-clear { background: none; border: none; color: rgba(247, 243, 238, 0.65); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; padding: 8px; }
.compare-tray-clear:hover { color: var(--cream); }
.compare-tray-open {
  background: var(--cream); color: var(--ink); border: none; border-radius: var(--radius-pill);
  padding: 15px 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background 0.25s var(--ease);
}
.compare-tray-open:hover:not(:disabled) { background: var(--blush); }
.compare-tray-open:disabled { opacity: 0.55; cursor: default; }
@media (max-width: 560px) {
  .compare-tray { gap: 10px; padding: 10px; bottom: 12px; width: calc(100% - 24px); justify-content: space-between; }
  .compare-slot { width: 40px; height: 52px; }
  .compare-tray-slots { gap: 6px; }
  .compare-tray-clear { display: none; }
  .compare-tray-open { padding: 14px 18px; }
}

/* Drawer (right) */
.compare-backdrop { position: fixed; inset: 0; background: rgba(36, 30, 26, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); z-index: 140; }
.compare-backdrop.is-open { opacity: 1; pointer-events: auto; }
.compare-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(1180px, 100%);
  background: var(--paper); z-index: 141;
  transform: translateX(100%); transition: transform 0.6s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(36, 30, 26, 0.45);
}
.compare-drawer.is-open { transform: translateX(0); }
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px clamp(20px, 3vw, 40px) 20px; border-bottom: 1px solid var(--line); flex: none; }
.compare-head .eyebrow { margin-bottom: 8px; }
.compare-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.02em; }
.compare-count { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-soft); margin-left: 10px; vertical-align: middle; }
.compare-head-actions { display: flex; align-items: center; gap: 14px; }
.compare-clear { background: none; border: none; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding: 4px 0; }
.compare-clear:hover { color: var(--rouge); border-color: var(--rouge); }
.compare-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); transition: background 0.2s; }
.compare-close:hover { background: var(--ink); color: var(--cream); }

.compare-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.compare-table { min-width: max-content; width: 100%; }
.compare-row { display: grid; grid-template-columns: 130px repeat(var(--cols, 2), minmax(230px, 1fr)); border-bottom: 1px solid var(--line); }
.compare-label {
  position: sticky; left: 0; z-index: 1; background: var(--paper);
  padding: 22px 0 22px clamp(20px, 3vw, 40px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-dark);
}
.compare-cell { padding: 22px 22px; font-size: 15px; line-height: 1.55; color: var(--ink); position: relative; }
.compare-row--head { position: sticky; top: 0; z-index: 3; background: var(--paper); }
.compare-row--head .compare-cell { padding-top: 26px; }
.compare-img { display: block; border-radius: var(--radius-card); overflow: hidden; background: var(--stone); margin-bottom: 14px; max-width: 220px; }
.compare-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.compare-name { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.2; margin-bottom: 6px; }
.compare-name:hover { color: var(--rouge); }
.compare-price { font-size: 15px; color: var(--ink-soft); }
.compare-price ins { text-decoration: none; color: var(--rouge); font-weight: 600; }
.compare-price del { opacity: 0.55; margin-right: 6px; }
.compare-remove {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink);
}
.compare-remove:hover { background: var(--ink); color: var(--cream); }
.cmp-muted { color: var(--ink-soft); }
.cmp-stars { color: var(--clay); letter-spacing: 2px; font-size: 14px; }
.cmp-star { opacity: 0.28; }
.cmp-star.is-full { opacity: 1; }
.cmp-star.is-half { opacity: 0.65; }
.cmp-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.cmp-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cmp-stock.is-in { color: #3f7a4f; }
.cmp-stock.is-out { color: var(--rouge); }
.compare-row--foot { background: var(--paper); border-bottom: none; position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -14px 24px -22px rgba(36, 30, 26, 0.5); }
.compare-add { display: block; width: 100%; text-align: center; }
.compare-empty { padding: clamp(60px, 10vw, 140px) 24px; text-align: center; color: var(--ink-soft); }
.compare-empty h3 { font-size: 30px; color: var(--ink); margin-bottom: 10px; }

.compare-toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 150; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: var(--radius-pill);
  font-size: 14px; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  box-shadow: 0 18px 40px -16px rgba(36, 30, 26, 0.6);
}
.compare-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .compare-row { grid-template-columns: 96px repeat(var(--cols, 2), minmax(190px, 1fr)); }
  .compare-label { font-size: 10px; padding-left: 16px; }
  .compare-cell { padding: 18px 14px; font-size: 14px; }
}

/* =====================================================================
   3. AJAX filter (left off-canvas) + results grid
   ===================================================================== */
.filter-trigger { position: relative; }
.filter-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--rouge); color: var(--white); font-size: 11px; font-weight: 600; line-height: 20px; text-align: center;
}
.filter-trigger:hover .filter-count { background: var(--blush); color: var(--ink); }
.filter-count[hidden] { display: none; }

.mp-sort {
  appearance: none; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); padding: 12px 40px 12px 22px; font-size: 13px;
  font-family: inherit; color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23241E1A'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 28px; }
.active-filters:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--stone); border: 1px solid var(--line); font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  animation: chipIn 0.35s var(--ease) both;
}
.chip:hover { background: var(--blush-soft); border-color: var(--clay); }
.chip span { font-size: 15px; line-height: 1; }
.chip-clear { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }

.shop-grid-wrap { transition: opacity 0.25s var(--ease); min-height: 320px; }
.shop-grid-wrap.is-loading { opacity: 0.4; pointer-events: none; }
.shop-grid-wrap.is-loading #shop-grid { filter: saturate(0.7); }

.mp-empty { grid-column: 1 / -1; text-align: center; padding: clamp(48px, 8vw, 110px) 16px; list-style: none; }
.mp-empty h3 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 10px; }
.mp-empty p { color: var(--ink-soft); }

.mp-pagination { display: flex; justify-content: center; padding: 8px 0 clamp(60px, 8vw, 110px); }
.mp-pagination ul { list-style: none; display: flex; gap: 8px; align-items: center; }
.mp-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.mp-pagination button.page-numbers:hover { background: var(--stone); color: var(--ink); }
.mp-pagination .page-numbers.current { background: var(--ink); color: var(--cream); cursor: default; }
.mp-pagination .page-numbers.dots { cursor: default; }

/* drawer internals */
.filter-footer { display: flex; gap: 10px; }
.filter-footer .btn { flex: 1; width: auto; padding-left: 18px; padding-right: 18px; }
.filter-option { justify-content: flex-start; }
.filter-option .filter-option-name { flex: 1; }
.filter-option.is-child { padding-left: 28px; font-size: 14px; color: var(--ink-soft); }
.filter-option-count { font-size: 12px; color: var(--ink-soft); }

.price-readout { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 26px; margin-bottom: 18px; }
.price-readout b { font-weight: 400; }
.price-dash { color: var(--ink-soft); }
.price-range { position: relative; height: 28px; margin: 0 4px; }
.price-track, .price-fill { position: absolute; top: 12px; height: 3px; border-radius: 2px; }
.price-track { left: 0; right: 0; background: var(--line-strong); }
.price-fill { background: var(--rouge); left: 0; width: 100%; }
.price-range input[type="range"] {
  position: absolute; left: -4px; width: calc(100% + 8px); top: 0; height: 28px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.price-range input[type="range"]::-webkit-slider-runnable-track { background: none; height: 28px; }
.price-range input[type="range"]::-moz-range-track { background: none; height: 28px; }
.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--ink), 0 4px 10px -2px rgba(36, 30, 26, 0.4);
}
.price-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--ink);
}
.price-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(154, 63, 51, 0.35); }

.mp-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15px; padding: 10px 0; cursor: pointer; }
.mp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mp-switch i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background 0.3s var(--ease); flex: none; }
.mp-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.mp-switch input:checked + i { background: var(--rouge); }
.mp-switch input:checked + i::after { transform: translateX(18px); }
.mp-switch input:focus-visible + i { outline: 2px solid var(--rouge); outline-offset: 3px; }

/* =====================================================================
   4. Product page buy box
   ===================================================================== */
.product-details h1.product_title {
  font-size: clamp(32px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -0.025em;
  text-wrap: balance; margin-bottom: 14px;
}
.product-details p.price { font-size: 26px; margin-bottom: 22px; }

.product-add-to-cart { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; margin-bottom: 26px; }

/* quantity stepper + add to cart on one aligned row */
.product-add-to-cart form.cart { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; margin: 0 !important; }
.product-add-to-cart .quantity {
  display: inline-flex; align-items: center; float: none; margin: 0 !important;
  height: 56px; padding: 0 6px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent;
}
.product-add-to-cart .quantity .qty-btn {
  width: 40px; height: 40px; flex: none; border: none; border-radius: 50%; background: none;
  font-family: var(--font-body); font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
  transition: background 0.2s var(--ease);
}
.product-add-to-cart .quantity .qty-btn:hover { background: var(--stone); }
.product-add-to-cart .quantity input.qty {
  width: 38px; height: 100%; padding: 0; margin: 0; border: none; background: transparent;
  text-align: center; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.product-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
.product-add-to-cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-add-to-cart .quantity input.qty:focus { outline: none; }
.product-add-to-cart button.single_add_to_cart_button { flex: 1; min-width: 0; height: 56px; padding: 0 28px; margin: 0 !important; }

/* express checkout (Apple Pay / Google Pay) — spaced, labelled, only shown when buttons exist */
.product-add-to-cart .wcpay-express-checkout-wrapper {
  margin: 4px 0 0 !important; padding: 0 !important; width: 100%;
}
.product-add-to-cart .wcpay-express-checkout-wrapper:has(iframe)::before {
  content: "Or checkout faster";
  display: block; text-align: center; margin-bottom: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.product-add-to-cart #wcpay-express-checkout-element { width: 100%; }

/* compare: quiet secondary action */
.product-add-to-cart .compare-btn--inline {
  height: 50px; margin-top: 0; width: 100%;
  border-color: var(--line); color: var(--ink-soft);
}
.product-add-to-cart .compare-btn--inline:hover { color: var(--ink); border-color: var(--ink); background: transparent; }
.product-add-to-cart .compare-btn--inline.is-active { color: var(--cream); }

@media (max-width: 420px) {
  .product-add-to-cart form.cart { flex-wrap: wrap; }
  .product-add-to-cart button.single_add_to_cart_button { flex-basis: 100%; }
}

/* =====================================================================
   5. Results page: sticky toolbar + product card
   ===================================================================== */
.shop-toolbar {
  position: sticky; top: var(--header-h); z-index: 70;
  margin: 0 calc(-1 * var(--side-pad)) 34px; padding: 14px var(--side-pad);
  background: rgba(247, 243, 238, 0.93);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .shop-toolbar { top: calc(var(--header-h) + 32px); }
.toolbar-left { gap: 18px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.shop-toolbar .result-count { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.01em; }

.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.view-btn {
  width: 34px; height: 32px; display: grid; place-items: center; border: none; border-radius: 6px;
  background: none; color: var(--ink-soft); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.view-btn:hover { color: var(--ink); }
.view-btn.is-active { background: var(--ink); color: var(--cream); }

.shop-toolbar .mp-sort {
  border-radius: 8px; padding: 11px 36px 11px 16px; font-size: 13px; background-color: var(--paper); border-color: var(--line);
  background-position: right 14px center;
}
.shop-toolbar .mp-per { padding-right: 34px; }
.shop-toolbar .filter-trigger {
  border-radius: 8px; padding: 11px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none;
  background: var(--paper); border-color: var(--line-strong); gap: 9px;
}
.shop-toolbar .filter-trigger:hover { background: var(--ink); color: var(--cream); }
.active-filters { margin-top: 0; }

/* card */
body ul.products li.product.mp-card { display: flex !important; flex-direction: column !important; }
ul.products li.product.mp-card .mp-card-media {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--stone); margin-bottom: 0;
}
ul.products li.product.mp-card .mp-card-link { display: block !important; }
ul.products li.product.mp-card .mp-card-media img {
  aspect-ratio: 17 / 16 !important; width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 0 !important; margin: 0 !important;
  transition: transform 1.2s var(--ease);
}
ul.products li.product.mp-card:hover .mp-card-media img { transform: scale(1.045); }

.mp-badges { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.mp-badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--white);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2; color: var(--ink);
}
.mp-badge--best { color: var(--rouge); }
.mp-badge--sale { background: var(--rouge); color: var(--white); }

ul.products li.product.mp-card .compare-btn { top: 58px; right: 12px; }

.mp-card-body { flex: 1; padding-top: 18px; }
.mp-card-cat { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: #8a7f76; }
ul.products li.product.mp-card .woocommerce-loop-product__title {
  font-family: var(--font-display) !important; font-size: 17px !important; font-weight: 400 !important;
  line-height: 1.25 !important; letter-spacing: 0 !important; margin: 0 0 12px !important; padding: 0 !important;
}
ul.products li.product.mp-card .woocommerce-loop-product__title a:hover { color: var(--rouge); }
ul.products li.product.mp-card .price {
  display: block; margin: 0 0 16px !important; font-size: 15px !important; font-weight: 500; color: var(--ink) !important; letter-spacing: 0.01em;
}
ul.products li.product.mp-card .price del { color: var(--ink-soft); font-weight: 400; }

ul.products li.product.mp-card a.button {
  display: flex !important; align-items: center; justify-content: center; gap: 9px;
  width: 100% !important; height: 42px; margin-top: auto !important; padding: 0 20px !important;
  background: #EFEAE3 !important; color: var(--ink) !important; border: none !important; border-radius: 999px !important;
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
ul.products li.product.mp-card a.add_to_cart_button::before { content: "+"; font-size: 17px; font-weight: 400; line-height: 1; margin-top: -1px; }
ul.products li.product.mp-card a.button:hover { background: var(--ink) !important; color: var(--cream) !important; }
ul.products li.product.mp-card a.button.loading { opacity: 0.6; }
ul.products li.product.mp-card a.button.added::after { content: "\2713"; margin-left: 4px; }

/* list view */
body.woocommerce ul.products.is-list, body.woocommerce-page ul.products.is-list { grid-template-columns: 1fr !important; gap: 26px !important; }
body ul.products.is-list li.product.mp-card {
  display: grid !important; grid-template-columns: minmax(170px, 270px) 1fr; column-gap: 30px; align-items: center;
}
.is-list .mp-card-body { padding-top: 0; grid-column: 2; grid-row: 1; }
.is-list .mp-card-media { grid-column: 1; grid-row: 1 / span 2; }
ul.products.is-list li.product.mp-card a.button { grid-column: 2; grid-row: 2; max-width: 260px; margin-top: 4px !important; align-self: start; }
.is-list .mp-card-body { align-self: end; }
ul.products.is-list li.product.mp-card .woocommerce-loop-product__title { font-size: 22px !important; }

@media (max-width: 760px) {
  .shop-toolbar { flex-wrap: wrap; gap: 10px; }
  .view-toggle, .shop-toolbar .mp-per { display: none; }
  .toolbar-left { flex: 1 1 100%; }
  .toolbar-right { flex: 1 1 100%; justify-content: space-between; }
  .shop-toolbar .mp-sort { flex: 1; }
  ul.products li.product.mp-card .compare-btn { top: 54px; right: 10px; }
  .mp-card-body { padding-top: 14px; }
  ul.products li.product.mp-card a.button { height: 40px; font-size: 12.5px !important; padding: 0 12px !important; }
  body ul.products.is-list li.product.mp-card { display: flex !important; }
}

/* =====================================================================
   6. Maison pass — restyle only (Next.js design), no behaviour changes
   ===================================================================== */
/* header is now two rows on desktop: keep sticky bars clear of it */
@media (min-width: 901px) {
  .shop-toolbar { top: calc(var(--header-h) + 49px); }
  .admin-bar .shop-toolbar { top: calc(var(--header-h) + 49px + 32px); }
  .product-details { top: calc(var(--header-h) + 49px + 24px); }
}
.header-compare .cart-count { background: var(--gold); }
@media (max-width: 900px) { .header-compare { display: none; } }

/* toolbar: alabaster glass, soft controls */
.shop-toolbar { background: rgba(247, 245, 240, 0.95); border-top: 1px solid var(--line); }
.shop-toolbar .result-count { font-weight: 300; }
.view-btn.is-active { background: var(--ink); }
.shop-toolbar .filter-trigger { font-size: 12px !important; font-weight: 400 !important; letter-spacing: 0.02em !important; text-transform: none; }

/* cards: badge pills, gold "limited" tone, canvas pill button, serif titles */
.mp-badge { font-weight: 500; font-size: 9px; letter-spacing: var(--track-luxe); }
.mp-badge--best { color: var(--rouge); }
.mp-badge--new { color: var(--ink); }
.mp-card-cat { letter-spacing: var(--track-luxe); font-size: 10px; color: var(--ink-soft); opacity: 0.8; }
ul.products li.product.mp-card .woocommerce-loop-product__title { font-size: 20px !important; font-weight: 400 !important; }
ul.products li.product.mp-card .price { font-weight: 400; }
ul.products li.product.mp-card a.button { background: var(--stone) !important; font-weight: 400 !important; font-size: 12px !important; letter-spacing: 0.04em !important; }
ul.products li.product.mp-card:hover .woocommerce-loop-product__title a { color: var(--rouge); }

/* second image reveals on hover when a gallery image exists (progressive) */
ul.products li.product.mp-card .mp-card-media img { transition: transform 1.2s var(--ease), opacity 0.7s var(--ease); }

/* drawers: serif heads, tracked labels, soft radius */
.filter-drawer, .cart-drawer { border-radius: 0; }
.filter-head h2, .cart-drawer-head h2 { font-weight: 300; font-size: 32px; }
.filter-footer .btn { letter-spacing: var(--track-luxe); }
.compare-tray-open, .compare-tray-clear { letter-spacing: var(--track-luxe); font-weight: 400; font-size: 11px; }
.product-add-to-cart .wcpay-express-checkout-wrapper:has(iframe)::before { font-weight: 400; letter-spacing: var(--track-luxe); }

/* =====================================================================
   7. Quick view + Ask a question (shared modal shell)
   ===================================================================== */
.mp-modal-backdrop {
  position: fixed; inset: 0; background: rgba(26, 20, 16, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s; z-index: 140;
}
.mp-modal-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mp-modal {
  position: fixed; left: 50%; top: 50%; z-index: 141;
  width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--paper); border-radius: var(--radius-card);
  box-shadow: 0 40px 100px -30px rgba(26, 20, 16, 0.55);
  transform: translate(-50%, calc(-50% + 24px)) scale(0.98); opacity: 0; visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}
.mp-modal.is-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.mp-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(252, 251, 249, 0.9); border: 1px solid var(--line); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink);
  transition: background 0.2s var(--ease);
}
.mp-modal-close:hover { background: var(--ink); color: var(--cream); }

/* quick view button on cards */
.qv-btn {
  position: absolute; left: 50%; bottom: 14px; z-index: 4; transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 20px;
  background: rgba(252, 251, 249, 0.95); color: var(--ink); border: none; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 11px; font-weight: 400; letter-spacing: var(--track-luxe); text-transform: uppercase; white-space: nowrap;
  cursor: pointer; opacity: 0; box-shadow: 0 10px 30px -12px rgba(26, 20, 16, 0.5);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.qv-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mp-card:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.qv-btn:hover { background: var(--ink); color: var(--cream); }
@media (hover: none) {
  .qv-btn { opacity: 1; transform: translate(-50%, 0); width: 40px; padding: 0; justify-content: center; left: auto; right: 12px; bottom: 12px; transform: none; }
  .qv-btn span { display: none; }
  .mp-card:hover .qv-btn { transform: none; }
}

/* quick view content */
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { background: var(--stone); border-radius: var(--radius-card) 0 0 var(--radius-card); overflow: hidden; }
.qv-media img, .qv-media .ph { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.qv-info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.qv-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.05; margin-bottom: 14px; }
.qv-price { font-family: var(--font-display); font-size: 26px; margin-bottom: 14px; }
.qv-price del { opacity: 0.5; font-size: 18px; margin-right: 8px; }
.qv-price ins { text-decoration: none; color: var(--rouge); }
.qv-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--ink-soft); }
.qv-excerpt { color: var(--ink-soft); margin-bottom: 26px; max-width: 46ch; }
.qv-excerpt p { margin: 0 0 0.8em; }
.qv-actions { margin-bottom: 18px; }
.qv-actions .qv-add, .qv-actions .button {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; padding: 0 28px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink); border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 400; letter-spacing: var(--track-luxe); text-transform: uppercase; transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.qv-actions .qv-add:hover { background: var(--clay); border-color: var(--clay); color: var(--white); }
.qv-actions .qv-add.loading { opacity: 0.6; }
.qv-actions .qv-add.added::after { content: "\2713"; margin-left: 8px; }
.qv-actions .added_to_cart { display: none; }
.qv-oos { color: var(--ink-soft); font-size: 14px; }
.qv-more { font-size: 11px; letter-spacing: var(--track-luxe); text-transform: uppercase; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; width: fit-content; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.qv-more:hover { color: var(--rouge); border-color: var(--rouge); }
.qv-loading { padding: 110px 20px; text-align: center; color: var(--ink-soft); }
@media (max-width: 760px) {
  .qv-grid { grid-template-columns: 1fr; }
  .qv-media { border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .qv-media img, .qv-media .ph { min-height: 0; aspect-ratio: 1 / 1; }
}

/* ask a question */
.ask-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-soft);
  font-family: inherit; font-size: 11px; font-weight: 400; letter-spacing: var(--track-luxe); text-transform: uppercase; cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ask-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ask-btn:hover { color: var(--ink); border-color: var(--ink); }

.ask-modal { width: min(560px, calc(100% - 32px)); }
.ask-body { padding: clamp(28px, 4vw, 48px); }
.ask-title { font-size: clamp(28px, 3vw, 38px); font-weight: 300; margin-bottom: 12px; }
.ask-intro { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 24px; }
.ask-field { display: block; margin-bottom: 16px; }
.ask-field span { display: block; font-size: 11px; letter-spacing: var(--track-luxe); text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.ask-field input, .ask-field textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px;
  font-family: inherit; font-size: 15px; font-weight: 300; color: var(--ink);
}
.ask-field textarea { resize: vertical; min-height: 120px; }
.ask-field input:focus, .ask-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 139, 122, 0.25); }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-status { min-height: 22px; font-size: 14px; margin: 4px 0 14px; color: var(--ink-soft); }
.ask-status.is-error { color: #b32d2e; }
.ask-done { text-align: center; padding: 20px 0 6px; }
.ask-done p { font-family: var(--font-display); font-size: 24px; line-height: 1.3; margin-bottom: 24px; }
.ask-body form .btn { width: 100%; }

/* questions & answers section */
.product-qa { max-width: 860px; margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.product-qa-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.product-qa-head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; }
.qa-empty { color: var(--ink-soft); }
.qa-list { list-style: none; display: flex; flex-direction: column; gap: 28px; }
.qa-item { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: none; }
.qa-q { display: flex; gap: 14px; font-family: var(--font-display); font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.qa-a { display: flex; gap: 14px; margin-top: 14px; color: var(--ink-soft); }
.qa-a p { margin: 0 0 0.6em; }
.qa-meta { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; padding-left: 38px; }
.qa-a .qa-meta { padding-left: 0; }
.qa-tag { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--ink); margin-top: 3px; }
.qa-tag--a { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* =====================================================================
   8. Wishlist + Recently viewed
   ===================================================================== */
.wish-btn {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  background: rgba(252, 251, 249, 0.94); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; font-family: inherit;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.wish-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.25s var(--ease); }
.wish-btn-label { display: none; }
.wish-btn:hover { background: var(--white); border-color: var(--ink); transform: scale(1.06); }
.wish-btn.is-active { color: var(--rouge); border-color: var(--rouge); }
.wish-btn.is-active svg { fill: currentColor; }

.wish-btn--inline {
  position: static; width: 100%; height: 50px; margin-top: 10px; border-radius: var(--radius-pill);
  background: transparent; border-color: var(--line); color: var(--ink-soft); gap: 10px;
  -webkit-backdrop-filter: none; backdrop-filter: none; transform: none;
}
.wish-btn--inline .wish-btn-label { display: inline; font-size: 11px; font-weight: 400; letter-spacing: var(--track-luxe); text-transform: uppercase; }
.wish-btn--inline:hover { background: transparent; color: var(--ink); transform: none; }
.wish-btn--inline.is-active { color: var(--rouge); }

/* carousel cards on the home page: heart on top, compare beneath */
.product-card .wish-btn { top: 12px; right: 12px; }
.product-card .compare-btn { top: 58px; }

/* header icons */
.header-wish .cart-count { background: var(--rouge); }
@media (max-width: 900px) { .header-recent { display: none; } }

/* drawers (right off-canvas) */
.mp-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(26, 20, 16, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s; z-index: 135;
}
.mp-drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mp-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(460px, 100%);
  background: var(--paper); z-index: 136; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
  box-shadow: -20px 0 60px -20px rgba(26, 20, 16, 0.35);
}
.mp-drawer.is-open { transform: translateX(0); visibility: visible; }
.mp-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.mp-drawer-head .eyebrow { margin-bottom: 8px; }
.mp-drawer-head h2 { font-size: 30px; font-weight: 300; }
.mp-drawer-count { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); letter-spacing: 0.04em; }
.mp-drawer-head-actions { display: flex; align-items: center; gap: 8px; }
.mp-drawer-clear { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 11px; letter-spacing: var(--track-luxe); text-transform: uppercase; color: var(--ink-soft); padding: 8px; transition: color 0.2s var(--ease); }
.mp-drawer-clear:hover { color: var(--ink); }
.mp-drawer-close { background: none; border: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; transition: background 0.2s; }
.mp-drawer-close:hover { background: rgba(26, 20, 16, 0.07); }
.mp-drawer-body { flex: 1; overflow-y: auto; padding: 6px 30px 30px; }
.mp-drawer-list { list-style: none; }
.mp-drawer-loading { padding: 60px 0; text-align: center; color: var(--ink-soft); }

.mp-item { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mp-item-img { display: block; border-radius: 12px; overflow: hidden; background: var(--stone); }
.mp-item-img img, .mp-item-img .ph { width: 84px; height: 105px; object-fit: cover; display: block; }
.mp-item-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding-right: 26px; }
.mp-item-name { font-family: var(--font-display); font-size: 19px; line-height: 1.2; color: var(--ink); }
.mp-item-name:hover { color: var(--rouge); }
.mp-item-price { font-size: 14px; color: var(--ink-soft); }
.mp-item-price ins { text-decoration: none; color: var(--rouge); }
.mp-item-price del { opacity: 0.5; margin-right: 6px; }
.mp-item-actions { margin-top: 10px; }
.mp-item-add {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 20px;
  background: var(--stone); color: var(--ink); border: none; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 400; letter-spacing: var(--track-luxe); text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.mp-item-add:hover { background: var(--ink); color: var(--cream); }
.mp-item-add.loading { opacity: 0.6; }
.mp-item-add.added::after { content: "\2713"; margin-left: 8px; }
.mp-item .added_to_cart { display: none; }
.mp-item-oos { font-size: 13px; color: var(--ink-soft); }
.mp-item-remove { position: absolute; top: 20px; right: 0; width: 28px; height: 28px; border-radius: 50%; background: none; border: none; font-size: 20px; line-height: 1; color: var(--ink-soft); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.mp-item-remove:hover { background: var(--ink); color: var(--cream); }

.mp-drawer-empty { text-align: center; padding: 70px 10px; }
.mp-drawer-empty h3 { font-size: 28px; font-weight: 300; margin-bottom: 10px; }
.mp-drawer-empty p { color: var(--ink-soft); margin-bottom: 26px; }
.mp-drawer-empty[hidden] { display: none; }

/* product page: Wishlist / Compare / Ask sit together as one tidy row */
.product-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.product-add-to-cart > form.cart, .product-add-to-cart > .wcpay-express-checkout-wrapper { flex: 0 0 100%; }
.product-add-to-cart > .wish-btn--inline, .product-add-to-cart > .compare-btn--inline, .product-add-to-cart > .ask-btn {
  flex: 1 1 0; min-width: 0; width: auto; height: 48px; margin: 0; padding: 0 10px; gap: 8px; justify-content: center;
}
.product-add-to-cart > .wish-btn--inline .wish-btn-label,
.product-add-to-cart > .compare-btn--inline .compare-btn-label,
.product-add-to-cart > .ask-btn { font-size: 10px; letter-spacing: 0.16em; }
.product-add-to-cart > .compare-btn--inline .compare-btn-label { margin-left: 0; }
.product-add-to-cart > .wish-btn--inline svg, .product-add-to-cart > .compare-btn--inline svg, .product-add-to-cart > .ask-btn svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 520px) {
  .product-add-to-cart > .wish-btn--inline, .product-add-to-cart > .compare-btn--inline, .product-add-to-cart > .ask-btn { flex: 0 0 100%; }
}
