/* ─────────────────────────────────────────────────────────────
   ms-brand.com in the look of emes.you (the "∞" design system).
   Loaded only when EMES_THEME_ENABLED and only on the storefront (body.theme-emes):
   the cabinet and the old look are untouched. Tokens mirror MS INTERNATIONAL src/app/globals.css.
   ───────────────────────────────────────────────────────────── */
.theme-emes {
  --e-paper: #f0f1ee;
  --e-paper-2: #e5e7e3;
  --e-card: #f3f5f6;
  --e-ink: #151716;
  --e-ink-2: #3a3e3c;
  --e-graphite: #343434;
  --e-stone: #767c79;
  --e-mist: #a9aeab;
  --e-line: #d5d8d4;
  --e-line-dark: #2b2f2d;
  --e-thread: #00948c;
  --e-thread-deep: #00766f;
  --e-thread-light: #45bdb4;
  --e-sale: #a9432e;
  /* Cy Grotesk Grand, the face ms-brand.com already serves (founder, 18 Nov 2026): one family for everything */
  --e-sans: "CyGroteskGrand", "Helvetica Neue", Arial, sans-serif;
  --e-mono: "CyGroteskGrand", "Helvetica Neue", Arial, sans-serif;
  --e-silk: cubic-bezier(0.22, 1, 0.36, 1);
  --e-cut: cubic-bezier(0.76, 0, 0.24, 1);
  --e-gutter: clamp(16px, 2.4vw, 40px);

  background: var(--e-paper);
  color: var(--e-ink);
  font-family: var(--e-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the old look sets its grotesk on many elements: the theme takes the type back everywhere on the storefront */
.theme-emes,
.theme-emes button,
.theme-emes input,
.theme-emes select,
.theme-emes textarea,
.theme-emes [class*="ds-caption"],
.theme-emes [class*="ds-link"] {
  font-family: var(--e-sans);
}

.theme-emes ::selection { background: var(--e-thread); color: #fff; }
.theme-emes :focus-visible { outline: 1.5px solid var(--e-thread); outline-offset: 3px; }

/* ── Type roles ─────────────────────────────────────────────── */
.theme-emes .t-display { font-family: var(--e-sans); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; }
.theme-emes .t-label {
  font-family: var(--e-mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.theme-emes .t-num { font-family: var(--e-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.theme-emes .signature { font-family: var(--e-sans); font-weight: 600; letter-spacing: 0.48em; padding-left: 0.48em; text-transform: uppercase; }

/* ── Layout ─────────────────────────────────────────────────── */
.theme-emes .wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--e-gutter); }
.theme-emes .no-scrollbar { scrollbar-width: none; }
.theme-emes .no-scrollbar::-webkit-scrollbar { display: none; }

/* ── The thread: links underline with a drawn teal line ─────── */
.theme-emes .thread-link {
  background-image: linear-gradient(var(--e-thread), var(--e-thread));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.6s var(--e-silk), color 0.3s;
  padding-bottom: 2px;
}
.theme-emes .thread-link:hover,
.theme-emes .thread-link[aria-current="page"] { background-size: 100% 1px; }

/* ── Buttons ────────────────────────────────────────────────── */
.theme-emes .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding-inline: 30px;
  overflow: hidden;
  font-family: var(--e-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--e-ink);
  color: var(--e-paper);
  border: 1px solid var(--e-ink);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  transition: color 0.4s var(--e-silk), border-color 0.4s;
}
.theme-emes .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--e-thread-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--e-silk);
}
.theme-emes .btn:hover::before { transform: scaleX(1); transform-origin: left; }
.theme-emes .btn:hover { border-color: var(--e-thread-deep); }
.theme-emes .btn:disabled { background: var(--e-paper-2); border-color: var(--e-paper-2); color: var(--e-mist); cursor: not-allowed; }
.theme-emes .btn:disabled::before { display: none; }
.theme-emes .btn-line { background: transparent; color: var(--e-ink); }
.theme-emes .btn-line::before { background: var(--e-ink); }
.theme-emes .btn-line:hover { color: var(--e-paper); border-color: var(--e-ink); }
.theme-emes .btn-paper { background: var(--e-paper); color: var(--e-ink); border-color: var(--e-paper); }
.theme-emes .btn-paper:hover { color: #fff; }

/* ── Reveal on scroll (theme.js adds .is-in) ────────────────── */
.theme-emes [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--e-silk), transform 1.2s var(--e-silk); transition-delay: var(--d, 0s); }
.theme-emes [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .theme-emes [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Header ─────────────────────────────────────────────────── */
.theme-emes .e-head { position: sticky; top: 0; z-index: 50; transition: transform 0.6s var(--e-silk); }
.theme-emes .e-head.is-hidden { transform: translateY(-100%); }
.theme-emes .e-head.is-home { margin-bottom: -64px; }
.theme-emes .e-head__bar {
  position: relative;
  border-bottom: 1px solid var(--e-line);
  background: rgba(240, 241, 238, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--e-ink);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
.theme-emes .e-head__shade { display: none; }
/* over the home film, before the first scroll: transparent and light */
.theme-emes .e-head.is-home:not(.is-scrolled) .e-head__bar { background: transparent; border-color: transparent; color: var(--e-paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-emes .e-head.is-home:not(.is-scrolled) .e-head__shade { display: block; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.1) 55%, transparent); }
.theme-emes .e-head.is-home:not(.is-scrolled) .e-logo { --e-mark: var(--e-paper); }
.theme-emes .e-head__grid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 64px; }
.theme-emes .e-head__left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.theme-emes .e-head__right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; font-size: 13px; }
.theme-emes .e-head__top { display: none; align-items: center; gap: 24px; font-size: 13px; white-space: nowrap; }
.theme-emes .e-head__top a { color: inherit; text-decoration: none; }
@media (min-width: 1024px) { .theme-emes .e-head__top { display: flex; } }
.theme-emes .e-head__burger { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font-size: 13px; cursor: pointer; }
.theme-emes .e-head__lines { position: relative; display: block; width: 22px; height: 9px; }
.theme-emes .e-head__lines span { position: absolute; left: 0; height: 1px; background: currentColor; transition: transform 0.5s var(--e-silk), width 0.5s var(--e-silk); }
.theme-emes .e-head__lines span:first-child { top: 0; width: 100%; }
.theme-emes .e-head__lines span:last-child { bottom: 0; width: 64%; }
.theme-emes .e-head__burger:hover .e-head__lines span:first-child { transform: translateX(4px); }
.theme-emes .e-head__burger:hover .e-head__lines span:last-child { width: 100%; }
.theme-emes .e-logo { display: flex; align-items: center; }
.theme-emes .e-mark { display: block; width: auto; height: 24px; }
.theme-emes .e-mark path { transition: fill 0.5s; }
.theme-emes .e-head__account { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: none; display: none; }
@media (min-width: 768px) { .theme-emes .e-head__account { display: inline; } }

/* the site's round icon buttons, shown as words with a count: «Кошик (2)» */
.theme-emes .e-head__count .i-circle,
.theme-emes .e-head__search .i-circle { width: auto; height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none !important; box-shadow: none; color: inherit; display: inline-flex; align-items: baseline; gap: 4px; cursor: pointer; }
.theme-emes .e-head__count .i-circle > i,
.theme-emes .e-head__search .i-circle > i { display: none; }
.theme-emes .e-head__count .i-circle::before,
.theme-emes .e-head__search .i-circle::before { content: var(--e-label); font-size: 13px; }
.theme-emes .e-head__count .i-count { position: static; width: auto; height: auto; min-width: 0; padding: 0; background: none; color: inherit; transform: none; font-family: var(--e-mono); font-size: 12px; }
.theme-emes .e-head__count .i-count__content { position: static; transform: none; }
.theme-emes .e-head__count .i-count__content::before { content: "("; }
.theme-emes .e-head__count .i-count__content::after { content: ")"; }
.theme-emes .e-head__wish { display: none; }
@media (min-width: 640px) { .theme-emes .e-head__wish { display: block; } }
.theme-emes .e-head__search { display: none; }
@media (min-width: 768px) { .theme-emes .e-head__search { display: block; } }

/* ── Menu: full-screen index ────────────────────────────────── */
.theme-emes .e-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--e-paper);
  color: var(--e-ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.85s var(--e-cut), visibility 0s 0.85s;
}
.theme-emes .e-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.85s var(--e-cut), visibility 0s; }
.theme-emes .e-menu__head { display: flex; align-items: center; justify-content: space-between; height: 64px; flex-shrink: 0; border-bottom: 1px solid var(--e-line); font-size: 13px; }
.theme-emes .e-menu__head a,
.theme-emes .e-menu__head button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.theme-emes .e-menu__close { display: flex; align-items: center; gap: 12px; }
.theme-emes .e-menu__x { position: relative; display: block; width: 14px; height: 14px; }
.theme-emes .e-menu__x span { position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transform: rotate(45deg); }
.theme-emes .e-menu__x span + span { transform: rotate(-45deg); }
.theme-emes .e-menu__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 8px; padding-bottom: 32px; }
.theme-emes .e-menu__groups { list-style: none; margin: 0; padding: 0; }
.theme-emes .e-menu a { color: inherit; text-decoration: none; }
.theme-emes .e-menu__big,
.theme-emes .e-menu__items { display: none; }
.theme-emes .e-menu__group { border-bottom: 1px solid var(--e-line); }
.theme-emes .e-menu__fold > summary { list-style: none; }
.theme-emes .e-menu__fold > summary::-webkit-details-marker { display: none; }
.theme-emes .e-menu__fold-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-size: 26px; font-weight: 500; cursor: pointer; }
.theme-emes .e-menu__fold-head span { font-size: 20px; font-weight: 400; color: var(--e-stone); transition: transform 0.3s; }
.theme-emes .e-menu__fold[open] .e-menu__fold-head span { transform: rotate(45deg); }
.theme-emes .e-menu__all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--e-thread-deep) !important; }
.theme-emes .e-menu__row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-top: 1px solid rgba(213, 216, 212, 0.6); font-size: 17px; }
.theme-emes .e-menu__row span:last-child { color: var(--e-stone); }
.theme-emes .e-menu__row.is-sub { padding-left: 16px; font-size: 15px; min-height: 48px; }
.theme-emes .e-menu__fold { padding-bottom: 0; }
.theme-emes .e-menu__fold[open] { padding-bottom: 12px; }
.theme-emes .e-menu__foot { display: flex; flex-wrap: wrap; gap: 8px 32px; flex-shrink: 0; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--e-line); color: var(--e-stone); font-size: 10.5px; }
.theme-emes .e-menu__foot a:hover { color: var(--e-ink); }

@media (min-width: 1024px) {
  .theme-emes .e-menu__body { padding-top: 40px; }
  .theme-emes .e-menu__groups { position: relative; width: 58%; }
  .theme-emes .e-menu__group { border: 0; }
  .theme-emes .e-menu__fold,
  .theme-emes .e-menu__single { display: none; }
  .theme-emes .e-menu__big { display: block; padding: 8px 0; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; letter-spacing: -0.01em; color: rgba(21, 23, 22, 0.35); transition: color 0.5s; }
  .theme-emes .e-menu__group.is-active .e-menu__big { color: var(--e-ink); }
  .theme-emes .e-menu__items { position: absolute; top: 16px; left: calc(100% + 24px); width: 70%; list-style: none; margin: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--e-silk), transform 0.45s var(--e-silk); transform: translateY(10px); }
  .theme-emes .e-menu__group.is-active .e-menu__items { display: block; opacity: 1; visibility: visible; transform: none; }
  .theme-emes .e-menu__items li { margin-bottom: 8px; font-size: 15px; }
  .theme-emes .e-menu__items li.is-sub { padding-left: 14px; font-size: 14px; color: var(--e-ink-2); }
  .theme-emes .e-menu__items .e-menu__all { display: inline-flex; min-height: 0; margin-bottom: 4px; font-size: 11px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.theme-emes .e-foot { background: var(--e-ink); color: var(--e-paper); overflow: hidden; }
/* the same footer as the storefront pages: one text size for every link, labels small and quiet, the phone larger */
.theme-emes .e-foot a { color: rgba(240, 241, 238, 0.85); text-decoration: none; transition: color .2s; }
.theme-emes .e-foot a:hover { color: var(--e-paper); }
.theme-emes .e-foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 24px; padding-top: 64px; padding-bottom: 56px; }
@media (min-width: 768px) { .theme-emes .e-foot__cols { grid-template-columns: 3fr 3fr 2fr 4fr; padding-top: 88px; padding-bottom: 72px; } }
.theme-emes .e-foot__col--contacts { grid-column: 1 / -1; }
@media (min-width: 768px) { .theme-emes .e-foot__col--contacts { grid-column: auto; } }
.theme-emes .e-foot__title { margin: 0 0 18px; color: rgba(240, 241, 238, 0.45); font-size: 10.5px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.theme-emes .e-foot ul { list-style: none; margin: 0; padding: 0; }
.theme-emes .e-foot li { margin: 0 0 10px; font-size: 15px; line-height: 1.35; text-transform: none; }
.theme-emes .e-foot__phone { display: block; font-size: 20px; letter-spacing: 0.01em; color: var(--e-paper) !important; }
.theme-emes .e-foot__note { margin: 6px 0 0; font-size: 13px; color: rgba(240, 241, 238, 0.55); }
.theme-emes .e-foot__store { margin: 16px 0 0; font-size: 15px; color: rgba(240, 241, 238, 0.85); }
.theme-emes .e-foot__end { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; padding-bottom: 40px; border-top: 1px solid var(--e-line-dark); }
@media (min-width: 768px) { .theme-emes .e-foot__end { flex-direction: row; align-items: center; justify-content: space-between; } }
.theme-emes .e-foot__brand { display: flex; align-items: center; gap: 16px; }
.theme-emes .e-foot__mark .e-mark { display: block; height: 40px; width: auto; --e-mark: var(--e-paper); }
.theme-emes .e-foot__sign { font-size: 13px; font-weight: 600; letter-spacing: 0.48em; color: var(--e-paper); }
.theme-emes .e-foot__legal { display: flex; flex-direction: column; gap: 10px; color: rgba(240, 241, 238, 0.45); font-size: 10.5px; letter-spacing: 0.02em; text-transform: uppercase; }
@media (min-width: 768px) { .theme-emes .e-foot__legal { align-items: flex-end; text-align: right; } }
.theme-emes .e-foot__pay { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.theme-emes .e-foot__pay img { height: 16px; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.7; }

/* ── Product card ───────────────────────────────────────────── */
.theme-emes .e-card { position: relative; display: block; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.theme-emes .e-card__media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--e-card); }
.theme-emes .e-card__photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.6s var(--e-silk); }
.theme-emes .e-card:hover .e-card__photo { transform: scale(1.035); }
.theme-emes .e-card__link { position: absolute; inset: 0; z-index: 1; }
.theme-emes .e-card__marks { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 10px; pointer-events: none; }
.theme-emes .e-card__mark { padding: 2px 6px; background: rgba(240, 241, 238, 0.9); color: var(--e-ink); }
.theme-emes .e-card__mark.is-sale { background: var(--e-ink); color: var(--e-paper); }
.theme-emes .e-card__mark.is-out { color: var(--e-stone); }
.theme-emes .e-card__like { position: absolute; top: 6px; right: 6px; z-index: 2; }
.theme-emes .e-card__like i { display: grid; place-items: center; width: 36px; height: 36px; font-size: 16px; color: var(--e-ink); cursor: pointer; }
.theme-emes .e-card__like .icon-heart-active { color: var(--e-thread); }
@media (hover: hover) { .theme-emes .e-card__like i:not(.icon-heart-active) { opacity: 0; transition: opacity 0.3s; } .theme-emes .e-card:hover .e-card__like i { opacity: 1; } }
.theme-emes .e-card__sizes {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; font-size: 10.5px;
  background: rgba(240, 241, 238, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translateY(100%); transition: transform 0.5s var(--e-silk);
}
.theme-emes .e-card:hover .e-card__sizes,
.theme-emes .e-card:focus-within .e-card__sizes { transform: none; }
@media (hover: none) { .theme-emes .e-card__sizes { display: none; } }
.theme-emes .e-card__sizes-list { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; color: var(--e-ink-2); }
.theme-emes .e-card__add i { font-style: normal; cursor: pointer; white-space: nowrap; color: var(--e-ink); }
.theme-emes .e-card__add i::before { content: var(--e-add); font-family: var(--e-mono); font-size: 10.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.theme-emes .e-card__add i:hover { color: var(--e-thread-deep); }
.theme-emes .e-card__dots { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.theme-emes .e-card__dots .product-card__colour-dot {
  display: block; width: 12px; height: 12px; margin: 0; border-radius: 50%;
  background: var(--swatch-image, none) center / cover, var(--swatch, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}
.theme-emes .e-card__dots .product-card__colour-dot.is-active { box-shadow: 0 0 0 2px var(--e-paper), 0 0 0 3px var(--e-ink); }
.theme-emes .e-card__dots .product-card__colour-dot:hover { box-shadow: 0 0 0 2px var(--e-paper), 0 0 0 3px rgba(21, 23, 22, 0.6); }
.theme-emes .e-card__dots .product-card__colour-more { font-size: 10px; color: var(--e-stone); }
.theme-emes .e-card__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 12px; }
.theme-emes .e-card__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.35; color: var(--e-ink); text-decoration: none; }
.theme-emes .e-card__price { display: flex; flex-shrink: 0; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.theme-emes .e-card__price s { color: var(--e-mist); }
.theme-emes .e-card__price .is-sale { color: var(--e-sale); }
@media (max-width: 767px) {
  .theme-emes .e-card__info { flex-direction: column; gap: 2px; }
  .theme-emes .e-card__title { white-space: normal; font-size: 13px; }
}

/* ── Listings: grid, breadcrumbs, the page frame ───────────── */
.theme-emes .catalog-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 12px; margin: 0 !important; }
@media (min-width: 768px) { .theme-emes .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 16px; } }
@media (min-width: 1280px) { .theme-emes .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-emes .catalog-grid__item { grid-column: auto !important; width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 0 !important; }
.theme-emes .catalog-grid__item.is-1-2 { grid-column: span 2 !important; }
.theme-emes .breadcrumbs { font-family: var(--e-mono); font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--e-stone); }
.theme-emes .breadcrumbs__link,
.theme-emes .breadcrumbs__text { color: var(--e-stone); text-decoration: none; }
.theme-emes .breadcrumbs__item.is-current .breadcrumbs__text { color: var(--e-ink); }
.theme-emes .breadcrumbs__divider { margin: 0 8px; color: var(--e-mist); }
.theme-emes .main { background: var(--e-paper); }

/* the old wrapper around promo line + header would stop the sticky header at its own bottom */
.theme-emes .header-content-full { display: contents; }

/* fixes after the first look on the clone */
.theme-emes .e-head__count .i-count,
.theme-emes .e-head__count .i-count__content { color: inherit !important; background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important; font-size: 12px !important; line-height: inherit !important; }
.theme-emes .e-card__dots.product-card__colors--dots { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 6px !important; }
