@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --motion-fast: 140ms;
  --motion-base: 200ms;
  --motion-slow: 280ms;
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --mm-orange: #f4801c;
  --mm-orange-hover: #dd6e0f;
  --mm-orange-soft: #fff2e7;
  --mm-ink: #1f1b1d;
  --mm-text: #2b2729;
  --mm-muted: #6e676a;
  --mm-canvas: #faf8f5;
  --mm-surface: #fff;
  --mm-line: #e7e0da;
  --mm-line-strong: #cfc5bd;
  --mm-success: #19724b;
  --mm-warning: #a84b08;
  --mm-danger: #b4232a;
  --mm-shadow-sm: 0 2px 10px rgb(31 27 29 / 6%);
  --mm-shadow-md: 0 18px 48px rgb(31 27 29 / 12%);
  --mm-r-sm: 10px;
  --mm-r-md: 16px;
  --mm-r-lg: 24px;
  --mm-r-pill: 999px;
  --mm-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: auto; }
body { margin: 0; font: 400 16px/1.55 var(--mm-font); color: var(--mm-text); background: var(--mm-canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mm-orange); outline-offset: 3px; }
.mm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mm-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mm-icon--sm { width: 16px; height: 16px; }
.mm-icon--lg { width: 24px; height: 24px; }
.mm-icon--xl { width: 34px; height: 34px; }
.mm-icon--orange { color: var(--mm-orange); }
.mm-icon--ink { color: var(--mm-ink); }
.mm-icon--muted { color: var(--mm-muted); }
.mm-icon--success { color: var(--mm-success); }
.mm-icon--danger { color: var(--mm-danger); }

/* Layout */
.mm-shell { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.mm-section { padding: 64px 0; }
.mm-section + .mm-section { border-top: 1px solid var(--mm-line); }
.mm-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.mm-eyebrow { color: var(--mm-orange-hover); font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mm-title { margin: 8px 0 0; color: var(--mm-ink); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.mm-title--display { font-size: clamp(2.6rem, 6vw, 5.3rem); }
.mm-subtitle { max-width: 680px; margin: 14px 0 0; color: var(--mm-muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.mm-grid { display: grid; gap: 20px; }
.mm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Header */
.mm-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 94%); border-bottom: 1px solid var(--mm-line); backdrop-filter: blur(14px); }
.mm-header__inner { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.mm-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mm-ink); text-decoration: none; }
.mm-brand img { width: 42px; height: 42px; object-fit: contain; }
.mm-brand__name { font-size: 17px; letter-spacing: .18em; white-space: nowrap; }
.mm-brand__name b { color: var(--mm-orange); font-weight: 500; }
.mm-nav { display: flex; align-self: stretch; gap: 4px; }
.mm-nav__item { position: relative; display: inline-flex; align-items: center; padding: 0 18px; border: 0; background: transparent; color: var(--mm-muted); font-weight: 600; text-decoration: none; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .mm-nav__item:hover { color: var(--mm-ink); } }
.mm-nav__item[aria-current="page"] { color: var(--mm-ink); }
.mm-nav__item[aria-current="page"]::after { content: ""; position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mm-orange); }
.mm-header__actions { display: flex; gap: 8px; margin-left: auto; }

/* Buttons */
.mm-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--mm-r-sm); font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: transform var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mm-btn:hover { transform: translateY(-1px); } }
.mm-btn:active { transform: translateY(0); }
.mm-btn--primary { background: var(--mm-orange); color: var(--mm-ink); box-shadow: 0 8px 18px rgb(244 128 28 / 18%); }
@media (hover: hover) and (pointer: fine) { .mm-btn--primary:hover { background: var(--mm-orange-hover); color: #fff; } }
.mm-btn--dark { background: var(--mm-ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .mm-btn--dark:hover { background: #080708; } }
.mm-btn--outline { background: var(--mm-surface); border-color: var(--mm-ink); color: var(--mm-ink); }
@media (hover: hover) and (pointer: fine) { .mm-btn--outline:hover { background: var(--mm-ink); color: #fff; } }
.mm-btn--soft { background: var(--mm-orange-soft); color: var(--mm-warning); }
@media (hover: hover) and (pointer: fine) { .mm-btn--soft:hover { background: #ffe3cb; } }
.mm-btn--ghost { background: transparent; color: var(--mm-text); }
@media (hover: hover) and (pointer: fine) { .mm-btn--ghost:hover { background: #f0ebe6; } }
.mm-btn--icon { width: 48px; padding: 0; border-radius: 50%; }
.mm-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.mm-btn--wide { width: 100%; }
.mm-btn:disabled, .mm-btn[aria-disabled="true"] { opacity: .48; pointer-events: none; }

/* Chips and badges */
.mm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-chip { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid var(--mm-line-strong); border-radius: var(--mm-r-pill); background: var(--mm-surface); color: var(--mm-text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mm-chip:hover { border-color: var(--mm-orange); background: var(--mm-orange-soft); } }
.mm-chip[aria-pressed="true"], .mm-chip--active { border-color: var(--mm-orange); background: var(--mm-orange); color: var(--mm-ink); }
.mm-chip--soft { border-color: transparent; background: var(--mm-orange-soft); color: var(--mm-warning); cursor: default; }
.mm-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--mm-r-pill); background: #f0edea; color: var(--mm-muted); font-size: 12px; font-weight: 600; }
.mm-badge--ok { background: #e5f3eb; color: var(--mm-success); }
.mm-badge--warn { background: var(--mm-orange-soft); color: var(--mm-warning); }

/* Forms */
.mm-field { display: grid; gap: 7px; }
.mm-label { color: var(--mm-text); font-size: 13px; font-weight: 700; }
.mm-input, .mm-select, .mm-textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--mm-line-strong); border-radius: var(--mm-r-sm); background: var(--mm-surface); color: var(--mm-text); transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
.mm-input::placeholder, .mm-textarea::placeholder { color: #8c8588; }
.mm-input:focus, .mm-select:focus, .mm-textarea:focus { outline: none; border-color: var(--mm-orange); box-shadow: 0 0 0 4px rgb(244 128 28 / 15%); }
.mm-textarea { min-height: 110px; resize: vertical; }
.mm-input-wrap { position: relative; }
.mm-input-wrap .mm-icon { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: var(--mm-muted); pointer-events: none; }
.mm-input-wrap .mm-input { padding-left: 48px; }
.mm-check { display: flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; }
.mm-check input { width: 20px; height: 20px; accent-color: var(--mm-orange); }

/* Search and chat composer */
.mm-search { position: relative; display: flex; align-items: center; width: min(840px, 100%); min-height: 58px; border: 1px solid var(--mm-ink); border-radius: var(--mm-r-pill); background: var(--mm-surface); box-shadow: var(--mm-shadow-sm); }
.mm-search > .mm-icon { margin-left: 20px; }
.mm-search input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 0; outline: 0; background: transparent; }
.mm-search .mm-btn { margin-right: 5px; }
.mm-composer { display: flex; align-items: center; gap: 10px; width: min(1040px, 100%); min-height: 78px; padding: 8px 10px 8px 22px; border: 1px solid var(--mm-line-strong); border-radius: var(--mm-r-pill); background: var(--mm-surface); box-shadow: var(--mm-shadow-sm); }
.mm-composer:focus-within { border-color: var(--mm-orange); box-shadow: 0 0 0 4px rgb(244 128 28 / 12%), var(--mm-shadow-sm); }
.mm-composer input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font-size: clamp(1rem, 2vw, 1.22rem); }
.mm-composer .mm-btn { width: 58px; min-height: 58px; padding: 0; border-radius: 50%; }

/* Chat */
.mm-chat { width: min(920px, 100%); display: grid; gap: 16px; }
.mm-message { width: fit-content; max-width: 78%; padding: 14px 18px; border-radius: 18px; }
.mm-message--assistant { position: relative; margin-left: 46px; border: 1px solid var(--mm-line); background: var(--mm-surface); border-bottom-left-radius: 5px; }
.mm-message--assistant::before { content: "M"; position: absolute; left: -46px; top: 2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mm-orange); color: var(--mm-ink); font-weight: 700; }
.mm-message--user { margin-left: auto; background: var(--mm-ink); color: #fff; border-bottom-right-radius: 5px; }

/* Product card */
.mm-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--mm-line); border-radius: var(--mm-r-md); background: var(--mm-surface); transition: transform var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mm-product-card:hover { transform: translateY(-4px); border-color: #d4c7bc; box-shadow: var(--mm-shadow-md); } }
.mm-product-card__media { position: relative; aspect-ratio: 4 / 4.4; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f2ebe2, #fbf8f3); }
.mm-product-card__media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 24%, rgb(102 76 54 / 10%), transparent 32%); }
.mm-product-card__media img { position: relative; z-index: 1; width: 74%; height: 88%; object-fit: contain; transition: transform var(--motion-slow) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mm-product-card:hover .mm-product-card__media img { transform: scale(1.025); } }
.mm-product-card__zoom { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); cursor: pointer; box-shadow: var(--mm-shadow-sm); }
.mm-product-card__body { display: grid; gap: 7px; padding: 18px; }
.mm-product-card__producer { color: var(--mm-muted); font-size: 13px; }
.mm-product-card__name { margin: 0; color: var(--mm-ink); font-size: 18px; line-height: 1.22; letter-spacing: -.02em; }
.mm-product-card__origin { color: var(--mm-muted); font-size: 13px; }
.mm-product-card__trait { display: flex; align-items: center; gap: 7px; color: var(--mm-text); font-size: 13px; }
.mm-product-card__trait::before { content: ""; width: 8px; height: 18px; border-radius: 5px 5px 2px 2px; background: var(--mm-orange); }
.mm-product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.mm-price { color: var(--mm-ink); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Filters */
.mm-filter-panel { padding-right: 24px; border-right: 2px solid var(--mm-orange); }
.mm-filter-panel h3 { margin: 0 0 12px; font-size: 22px; }
.mm-filter { border-top: 1px solid var(--mm-line); }
.mm-filter:last-child { border-bottom: 1px solid var(--mm-line); }
.mm-filter summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; font-weight: 700; cursor: pointer; }
.mm-filter summary::-webkit-details-marker { display: none; }
.mm-filter__content { display: grid; gap: 8px; padding: 0 0 16px; }

/* Recommendation card */
.mm-recommendation { display: grid; grid-template-columns: 145px 1fr; gap: 22px; padding: 16px; border: 1px solid var(--mm-line); border-radius: var(--mm-r-md); background: var(--mm-surface); }
.mm-recommendation__image { min-height: 190px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #f1e8de, #fff); }
.mm-recommendation__image img { width: 84%; height: 180px; object-fit: contain; }
.mm-recommendation__body { display: flex; flex-direction: column; }
.mm-recommendation h3 { margin: 0; font-size: 20px; }
.mm-recommendation p { margin: 8px 0; color: var(--mm-muted); font-size: 14px; }
.mm-recommendation__facts { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mm-line); font-size: 12px; }
.mm-recommendation__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

/* Tasting profile */
.mm-profile { display: grid; gap: 10px; }
.mm-profile__row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.mm-meter { height: 10px; overflow: hidden; border-radius: var(--mm-r-pill); background: #e9e5e2; }
.mm-meter > span { display: block; width: var(--value, 60%); height: 100%; border-radius: inherit; background: var(--mm-orange); }

/* Product detail */
.mm-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr); gap: 46px; align-items: start; }
.mm-gallery { position: sticky; top: 96px; }
.mm-gallery__stage { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; border-radius: var(--mm-r-lg); background: linear-gradient(145deg, #efe6dc, #fbf8f4); }
.mm-gallery__stage img { width: min(78%, 460px); height: 580px; object-fit: contain; transition: transform var(--motion-base) var(--ease-standard); }
.mm-gallery__stage[data-zoomed="true"] { cursor: zoom-out; }
.mm-gallery__stage[data-zoomed="true"] img { transform: scale(1.65); }
.mm-gallery__zoom { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); }
.mm-detail__body { padding: 20px 0; }
.mm-detail__body h1 { margin: 4px 0 8px; color: var(--mm-ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.04em; }
.mm-detail__origin { color: var(--mm-muted); }
.mm-detail__price { margin: 18px 0 8px; color: var(--mm-ink); font-size: 28px; font-weight: 700; }
.mm-detail__copy { color: var(--mm-muted); }
.mm-detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.mm-detail__group { padding: 22px 0; border-top: 1px solid var(--mm-line); }
.mm-detail__group h2 { margin: 0 0 14px; font-size: 19px; }
.mm-harmonies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mm-harmony { display: grid; gap: 6px; place-items: center; padding: 14px 8px; border: 1px solid var(--mm-line); border-radius: 12px; text-align: center; font-size: 12px; }

/* Icon library */
.mm-icon-catalog { display: grid; gap: 40px; }
.mm-icon-group { padding-top: 26px; border-top: 1px solid var(--mm-line); }
.mm-icon-group h2 { margin: 0 0 18px; color: var(--mm-ink); font-size: 20px; }
.mm-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.mm-icon-sample { min-height: 104px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 14px; border: 1px solid var(--mm-line); border-radius: var(--mm-r-md); background: var(--mm-surface); transition: border-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mm-icon-sample:hover { transform: translateY(-2px); border-color: var(--mm-orange); box-shadow: var(--mm-shadow-sm); } }
.mm-icon-sample code { color: var(--mm-muted); font: 600 11px/1.2 var(--mm-font); text-align: center; }

/* Brand pattern, used sparingly */
.mm-pattern { height: 56px; background-color: var(--mm-surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='56' viewBox='0 0 144 56'%3E%3Cg fill='none'%3E%3Cpath fill='%23F4801C' d='M10 0h10v15l4 8v25c0 5-3 8-9 8s-9-3-9-8V23l4-8z'/%3E%3Cpath fill='%231F1B1D' d='M55 0h10v14l5 10v24c0 5-4 8-10 8s-10-3-10-8V24l5-10z'/%3E%3Cpath fill='%23F4801C' d='M96 0h12v20l4 9v19c0 5-4 8-10 8s-10-3-10-8V29l4-9z'/%3E%3Cpath fill='%231F1B1D' d='M130 0h8v18l4 7v23c0 5-3 8-8 8s-8-3-8-8V25l4-7z'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; border-block: 1px solid var(--mm-line); }

/* Toast and modal */
.mm-toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 40px)); padding: 14px 18px; border-radius: var(--mm-r-sm); background: var(--mm-ink); color: #fff; box-shadow: var(--mm-shadow-md); }
.mm-lightbox { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--mm-r-lg); background: var(--mm-surface); box-shadow: var(--mm-shadow-md); }
.mm-lightbox::backdrop { background: rgb(16 13 15 / 78%); backdrop-filter: blur(5px); }
.mm-lightbox__body { position: relative; min-height: min(82vh, 760px); display: grid; place-items: center; padding: 48px; background: linear-gradient(145deg, #efe6dc, #fff); }
.mm-lightbox__body img { max-height: 70vh; object-fit: contain; }
.mm-lightbox__close { position: absolute; top: 14px; right: 14px; }

/* Mobile action */
.mm-mobile-action { display: none; position: fixed; right: 0; bottom: 0; left: 0; z-index: 25; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mm-line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
.mm-mobile-action .mm-btn--primary { flex: 1; }

@media (max-width: 980px) {
  .mm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-detail { grid-template-columns: 1fr; }
  .mm-gallery { position: relative; top: auto; }
  .mm-gallery__stage { min-height: 520px; }
  .mm-filter-panel { padding-right: 0; border-right: 0; border-bottom: 2px solid var(--mm-orange); }
}

@media (max-width: 720px) {
  body { font-size: 15px; padding-bottom: 76px; }
  .mm-shell { width: min(100% - 24px, 1280px); }
  .mm-section { padding: 42px 0; }
  .mm-section__head { align-items: start; flex-direction: column; }
  .mm-header__inner { min-height: 62px; gap: 10px; }
  .mm-brand__name { display: none; }
  .mm-nav { margin-left: auto; }
  .mm-nav__item { padding-inline: 10px; font-size: 13px; }
  .mm-nav__item[aria-current="page"]::after { right: 10px; left: 10px; }
  .mm-header__actions { display: none; }
  .mm-composer { min-height: 62px; padding-left: 16px; }
  .mm-composer .mm-btn { width: 48px; min-height: 48px; }
  .mm-grid--2, .mm-grid--4 { grid-template-columns: 1fr; }
  .mm-message { max-width: 88%; }
  .mm-recommendation { grid-template-columns: 98px 1fr; gap: 14px; }
  .mm-recommendation__image { min-height: 140px; }
  .mm-recommendation__image img { height: 130px; }
  .mm-recommendation__facts { display: none; }
  .mm-product-card__media { aspect-ratio: 4 / 4.6; }
  .mm-gallery__stage { min-height: 420px; }
  .mm-gallery__stage img { height: 390px; }
  .mm-detail__actions { grid-template-columns: 1fr; }
  .mm-harmonies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-mobile-action { display: flex; }
  .mm-pattern { height: 42px; }
}

