/* =========================================================
   Magic Skin — home redesign
   Scoped to body.ms (header-magic.php / footer-magic.php)
   ========================================================= */

:root {
    --ms-orange: #F24E05;
    --ms-orange-hover: #D94403;
    --ms-ink: #1D1715;
    --ms-text: #2B2421;
    --ms-muted: #5E5551;
    --ms-cream: #FBF7F3;
    --ms-blush: #FDEBE5;
    --ms-line: #E6DED8;
    --ms-line-dark: rgba(255, 255, 255, .16);
    --ms-radius: 10px;
    --ms-radius-lg: 24px;
    --ms-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ms-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.ms {
    margin: 0;
    background: var(--ms-cream);
    color: var(--ms-text);
    font-family: var(--ms-body);
    -webkit-font-smoothing: antialiased;
}
/* Base size for the redesigned parts only (inner-page content keeps its own sizes). */
body.ms-front, .ms-topbar, .ms-header, .ms-footer { font-size: 16px; line-height: 1.5; }

/* Header/footer on inner pages: neutralise Bootstrap/main.css element styles
   (0,0,1 specificity, loaded later — component classes still win). */
:where(.ms-topbar, .ms-header, .ms-footer) :is(ul, ol, address, h2, p) { margin: 0; padding: 0; }
:where(.ms-topbar, .ms-header, .ms-footer) :is(ul, ol) { list-style: none; }
:where(.ms-topbar, .ms-header, .ms-footer) :is(a) { color: inherit; text-decoration: none; }
:where(.ms-header, .ms-footer) :is(h2) { font-family: var(--ms-body); line-height: 1.3; }
.ms-header .ms-cart__count { width: auto; display: block; border-radius: 9px; font-size: 11px; }
.ms-logo__img { max-height: 40px; width: auto; }
.ms-footer .ms-logo__img { filter: brightness(0) invert(1); }
/* Reset wrapped in :where() = zero specificity, so component classes always win. */
:where(.ms) *, :where(.ms) *::before, :where(.ms) *::after { box-sizing: border-box; }
:where(.ms) :where(h1, h2, h3, p, ul, ol, address) { margin: 0; padding: 0; }
:where(.ms) :where(ul, ol) { list-style: none; }
:where(.ms) address { font-style: normal; }
:where(.ms) a { color: inherit; text-decoration: none; }
:where(.ms) img { max-width: 100%; height: auto; display: block; }
.ms :focus-visible { outline: 2px solid var(--ms-orange); outline-offset: 3px; border-radius: 4px; }

.ms-container { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ms-ink); color: #fff; padding: 10px 16px; }
.ms-skip:focus { left: 16px; top: 16px; }
.ms-gt-engine { display: none !important; }

/* ---------- Type ---------- */
.ms-eyebrow {
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ms-ink); margin-bottom: 14px;
}
.ms-eyebrow--light { color: #fff; }
.ms-h2 {
    font-family: var(--ms-head); font-weight: 800; color: var(--ms-ink);
    font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.022em;
}
.ms-h2--xl { font-size: clamp(32px, 3.7vw, 46px); }
.ms-h2--sm { font-size: clamp(26px, 2.6vw, 34px); }
.ms-h2--light { color: #fff; }
.ms-link { font-weight: 600; font-size: 15px; text-decoration: underline !important; text-underline-offset: 3px; color: var(--ms-ink); }

/* ---------- Buttons ---------- */
.ms-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; padding: 0 32px; border-radius: var(--ms-radius);
    font: 700 16px/1 var(--ms-body); letter-spacing: -.01em;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.ms-btn:active { transform: translateY(1px); }
.ms-btn[disabled] { opacity: .6; cursor: progress; }
.ms-btn--primary { background: var(--ms-orange); color: var(--ms-ink); }
.ms-btn--primary:hover { background: var(--ms-orange-hover); }
.ms-btn--outline { background: transparent; border-color: var(--ms-ink); color: var(--ms-ink); }
.ms-btn--outline:hover { background: var(--ms-ink); color: #fff; }
.ms-btn--dark { background: var(--ms-ink); color: #fff; }
.ms-btn--dark:hover { background: #000; }
.ms-btn--sm { min-height: 48px; min-width: 80px; padding: 0 20px; font-size: 15px; border-radius: 8px; }
.ms-btn--lg { min-height: 60px; font-size: 17px; }
.ms-btn.is-done { background: var(--ms-ink); color: #fff; border-color: var(--ms-ink); }

/* ---------- Product images ---------- */
.ms-img-placeholder { display: block; width: 100%; height: 100%; background: var(--ms-blush); }

/* ---------- Top bar + header ---------- */
.ms-topbar {
    background: var(--ms-ink); color: #fff; text-align: center;
    font-size: 13px; font-weight: 600; padding: 11px 16px;
}
.ms-header { position: sticky; top: 0; z-index: 50; background: var(--ms-cream); border-bottom: 1px solid var(--ms-line); transition: box-shadow .2s; }
.ms-header.is-scrolled { box-shadow: 0 4px 18px rgba(29, 23, 21, .07); }
.ms-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.ms-logo { font-family: var(--ms-head); font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--ms-ink); }
.ms-logo--light { color: #fff; }
.ms-nav { display: flex; gap: 28px; }
.ms-nav a { font-size: 15px; font-weight: 600; color: var(--ms-ink); }
.ms-nav a:hover { color: var(--ms-orange); }
.ms-header__tools { display: flex; align-items: center; gap: 8px; }
.ms-lang { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ms-muted); margin-right: 12px; }
.ms-lang a:first-child, .ms-lang a.gt-current-lang { color: var(--ms-ink); font-weight: 800; }
.ms-lang a:hover { color: var(--ms-orange); }
.ms-icon-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; padding: 0; color: var(--ms-ink); cursor: pointer; border-radius: 8px; position: relative;
}
.ms-icon-btn:hover { color: var(--ms-orange); }
.ms-cart__count {
    position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: var(--ms-orange); color: var(--ms-ink);
    font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.ms-burger { display: none; flex-direction: column; gap: 5px; }
.ms-burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.ms-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ms-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ms-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ms-search { border-top: 1px solid var(--ms-line); padding: 14px 0; }
.ms-search input[type="search"] {
    width: 100%; height: 48px; padding: 0 16px; font: 500 16px var(--ms-body);
    border: 1px solid var(--ms-ink); border-radius: var(--ms-radius); background: #fff; color: var(--ms-ink);
}
.ms-mobile-nav { border-top: 1px solid var(--ms-line); }
.ms-mobile-nav a { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--ms-line); }
.ms-mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.ms-hero { padding: 48px 0; }
.ms-hero__grid { display: grid; grid-template-columns: 1fr 540px; align-items: center; gap: 48px; }
.ms-hero__title {
    font-family: var(--ms-head); font-weight: 800; color: var(--ms-ink);
    font-size: clamp(44px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 28px;
}
.ms-hero__lead { font-size: 20px; line-height: 1.5; color: var(--ms-muted); max-width: 440px; margin-bottom: 34px; }
.ms-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-hero__visual {
    height: 520px; border-radius: 32px; background: var(--ms-blush);
    display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 0 44px 80px;
}
.ms-hero__tile {
    flex: 0 1 auto; min-width: 0; display: block; overflow: hidden; border-radius: 20px; background: #fff;
    box-shadow: 0 18px 40px -18px rgba(29, 23, 21, .35);
    transition: transform .35s ease;
}
.ms-hero__tile:hover { transform: translateY(-6px); }
.ms-hero__tile img { width: 100%; height: 100%; object-fit: cover; }
/* Widths are % of the box (24 + 40 + 28 = 92% incl. gaps), so side space is always kept. */
.ms-hero__tile--sm { width: 24%; height: 160px; }
.ms-hero__tile--lg { width: 40%; height: 320px; border-radius: 24px; }
.ms-hero__tile--md { width: 28%; height: 210px; }

/* ---------- Trust bar ---------- */
.ms-trust { border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
.ms-trust__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.ms-trust__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ms-ink); line-height: 1.3; }
.ms-trust__list li:nth-child(n+2) { justify-content: center; }
.ms-trust__list li:last-child { justify-content: flex-end; }
.ms-trust__list svg { flex: none; }

/* ---------- Promo ---------- */
.ms-promo { background: var(--ms-ink); color: #fff; padding: 56px 0; }
.ms-promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ms-promo__title { font-family: var(--ms-head); font-weight: 800; font-size: clamp(32px, 3vw, 42px); letter-spacing: -.022em; line-height: 1.1; margin-bottom: 12px; }
.ms-promo__text { font-size: 17.5px; color: rgba(255, 255, 255, .92); }

/* ---------- Products ---------- */
.ms-products { padding: 88px 0 96px; }
.ms-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.ms-products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.ms-card { display: flex; flex-direction: column; }
.ms-card__media {
    display: block; aspect-ratio: 352 / 300; border-radius: var(--ms-radius-lg); background: var(--ms-blush);
    margin-bottom: 18px; overflow: hidden;
}
.ms-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ms-card:hover .ms-card__media img { transform: scale(1.04); }
.ms-card__title a:hover { color: var(--ms-orange); }
.ms-card__title { font-family: var(--ms-head); font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ms-ink); margin-bottom: 4px; }
.ms-card__desc { font-size: 15px; color: var(--ms-muted); margin-bottom: 24px; }
.ms-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-card__price { font-size: 19px; font-weight: 700; color: var(--ms-ink); }
.ms-card__price del { font-size: 15px; font-weight: 500; color: var(--ms-muted); margin-right: 6px; }
.ms-card__price ins { text-decoration: none; }
.ms-card__price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Routine ---------- */
.ms-routine { background: var(--ms-ink); color: #fff; padding: 96px 0; }
.ms-routine__grid { display: grid; grid-template-columns: 1fr 552px; grid-template-rows: auto 1fr; gap: 0 64px; align-items: start; }
.ms-routine__intro { grid-column: 1; grid-row: 1; }
.ms-routine .ms-steps { grid-column: 2; grid-row: 1 / span 2; }
.ms-routine__cta { grid-column: 1; grid-row: 2; }
.ms-routine__intro .ms-h2 { margin-bottom: 22px; max-width: 480px; }
.ms-routine__text { font-size: 18px; color: rgba(255, 255, 255, .9); max-width: 380px; margin-bottom: 34px; }
.ms-routine__note { font-size: 13.5px; margin-top: 16px; color: rgba(255, 255, 255, .85); }
.ms-steps { border-top: 1px solid var(--ms-line-dark); }
.ms-step { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ms-line-dark); }
.ms-step__num {
    flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ms-orange); color: var(--ms-ink);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.ms-step__title { font-family: var(--ms-head); font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ms-step__desc { font-size: 15px; color: rgba(255, 255, 255, .9); }

/* ---------- About ---------- */
.ms-about { background: var(--ms-blush); padding: 96px 0; }
.ms-about__grid { display: grid; grid-template-columns: 1fr 528px; gap: 64px; align-items: start; }
.ms-flag { display: flex; gap: 0; margin-bottom: 20px; }
.ms-flag i { width: 18px; height: 4px; border-radius: 2px; }
.ms-flag i:nth-child(1) { background: #1C9A4E; }
.ms-flag i:nth-child(2) { background: #fff; }
.ms-flag i:nth-child(3) { background: #E03A2F; }
.ms-about .ms-h2 { margin-bottom: 24px; }
.ms-about__text { font-size: 18px; line-height: 1.55; color: var(--ms-muted); margin-bottom: 18px; max-width: 520px; }
.ms-points { border-top: 1px solid var(--ms-line); }
.ms-points li { position: relative; padding: 18px 0 18px 24px; border-bottom: 1px solid var(--ms-line); }
.ms-points li::before { content: ""; position: absolute; left: 0; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--ms-orange); }
.ms-points h3 { font-size: 16.5px; font-weight: 700; color: var(--ms-ink); margin-bottom: 4px; }
.ms-points p { font-size: 14.5px; color: var(--ms-muted); }

/* ---------- Designed to be simple ---------- */
.ms-simple { padding: 100px 0 40px; }
.ms-simple .ms-h2 { margin-bottom: 40px; }
.ms-simple__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ms-feature { background: var(--ms-blush); border-radius: var(--ms-radius-lg); padding: 28px; }
.ms-feature__num {
    width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ms-ink);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 20px;
}
.ms-feature h3 { font-size: 19px; font-weight: 700; color: var(--ms-ink); letter-spacing: -.005em; margin-bottom: 10px; }
.ms-feature p { font-size: 15px; line-height: 1.6; color: var(--ms-muted); }

/* ---------- FAQ ---------- */
.ms-faq { padding: 80px 0 96px; }
.ms-faq__inner { max-width: 768px; }
.ms-faq .ms-h2 { margin-bottom: 22px; }
.ms-faq__list { border-top: 1px solid var(--ms-line); }
.ms-faq__item { border-bottom: 1px solid var(--ms-line); }
.ms-faq__item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ms-ink);
}
.ms-faq__item summary::-webkit-details-marker { display: none; }
.ms-faq__item summary svg { flex: none; transition: transform .25s; }
.ms-faq__item[open] summary svg { transform: rotate(180deg); }
.ms-faq__item p { padding: 0 40px 24px 0; font-size: 16px; color: var(--ms-muted); }

/* ---------- Newsletter ---------- */
.ms-news { background: var(--ms-blush); padding: 72px 0; }
.ms-news__grid { display: grid; grid-template-columns: 1fr 558px; gap: 48px; align-items: center; }
.ms-news .ms-h2 { margin-bottom: 14px; }
.ms-news__text { font-size: 16.5px; color: var(--ms-muted); }
.ms-news__label { display: block; font-size: 13px; font-weight: 700; color: var(--ms-ink); margin-bottom: 6px; }
.ms-news__row { display: flex; gap: 10px; }
.ms-news__row input {
    flex: 1; min-width: 0; height: 56px; padding: 0 16px; font: 400 16px var(--ms-body); color: var(--ms-ink);
    background: #fff; border: 1px solid var(--ms-ink); border-radius: var(--ms-radius);
}
.ms-news__row input::placeholder { color: #8A817C; }
.ms-news__row .ms-btn { min-width: 144px; }
.ms-news__consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ms-text); cursor: pointer; }
.ms-news__consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ms-ink); }
.ms-news__msg { font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 1px; }
.ms-news__msg.is-error { color: #B42318; }
.ms-news__msg.is-ok { color: #12703A; }

/* ---------- Footer ---------- */
.ms-footer { background: var(--ms-ink); color: #fff; padding: 64px 0 40px; }
.ms-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ms-footer .ms-logo { display: inline-block; margin-bottom: 20px; }
.ms-footer address { font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.ms-footer__title { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 18px; }
.ms-footer__links li + li { margin-top: 14px; }
.ms-footer__links a { font-size: 16px; font-weight: 500; }
.ms-footer__links a:hover { color: var(--ms-orange); }
.ms-footer__lang { display: flex; gap: 8px; }
.ms-footer__lang a {
    width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.ms-footer__lang a:hover { border-color: #fff; }
.ms-footer__lang a:first-child, .ms-footer__lang a.gt-current-lang { background: #fff; color: var(--ms-ink); border-color: #fff; }
.ms-footer__lang.has-current a:first-child:not(.gt-current-lang) { background: none; color: #fff; border-color: rgba(255, 255, 255, .3); }
.ms-lang.has-current a:first-child:not(.gt-current-lang) { color: inherit; font-weight: 600; }
.ms-footer__bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ms-line-dark); font-size: 13.5px;
}
.ms-footer__pay { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-footer__pay li { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; font-size: 12.5px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ms-hero__grid { grid-template-columns: 1fr 1fr; }
    .ms-about__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .ms-routine__grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
    .ms-news__grid { grid-template-columns: 1fr 1fr; }
    .ms-hero__visual { gap: 12px; padding: 0 32px 64px; }
    .ms-hero__tile--lg { height: 280px; }
    .ms-hero__tile--md { height: 190px; }
    .ms-hero__tile--sm { height: 145px; }
}

@media (max-width: 991px) {
    .ms-nav, .ms-lang { display: none; }
    .ms-burger { display: inline-flex; }
    .ms-header__inner { min-height: 68px; }
    .ms-logo { font-size: 23px; }

    .ms-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .ms-hero__visual { height: 420px; padding-bottom: 56px; }
    .ms-trust__list { grid-template-columns: 1fr 1fr; }
    .ms-trust__list li, .ms-trust__list li:nth-child(n+2), .ms-trust__list li:last-child { justify-content: flex-start; }
    .ms-promo__inner { flex-direction: column; align-items: flex-start; }
    .ms-products__grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
    .ms-routine__grid, .ms-about__grid, .ms-news__grid { grid-template-columns: 1fr; }
    .ms-routine__grid { grid-template-rows: none; row-gap: 40px; }
    .ms-routine__intro, .ms-routine .ms-steps, .ms-routine__cta { grid-column: 1; grid-row: auto; }
    .ms-routine__cta { text-align: center; }
    .ms-routine__intro .ms-routine__text { margin-bottom: 0; }
    .ms-simple__grid { grid-template-columns: 1fr; }
    .ms-footer__grid { grid-template-columns: 1fr 1fr; }
    .ms-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .ms-container { padding: 0 16px; }
    .ms-hero { padding: 32px 0 40px; }
    .ms-hero__lead { font-size: 18px; }
    .ms-hero__ctas .ms-btn { flex: 1 1 100%; }
    .ms-hero__visual { height: 320px; gap: 8px; padding: 0 20px 36px; border-radius: 24px; }
    .ms-hero__tile--lg { height: 240px; border-radius: 18px; }
    .ms-hero__tile--md { height: 170px; border-radius: 14px; }
    .ms-hero__tile--sm { height: 130px; border-radius: 14px; }
    .ms-trust__list { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-top: 22px; padding-bottom: 22px; }
    .ms-trust__list li { gap: 8px; font-size: 13px; line-height: 1.35; align-items: flex-start; }
    .ms-trust__list svg { width: 20px; height: 20px; margin-top: 1px; }
    .ms-promo, .ms-news { padding: 48px 0; }
    .ms-promo .ms-btn { width: 100%; }
    .ms-products, .ms-routine, .ms-about { padding: 64px 0; }
    .ms-products__grid { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
    .ms-card__media { aspect-ratio: 1 / 1; border-radius: 16px; margin-bottom: 12px; }
    .ms-card__title { font-size: 16px; line-height: 1.25; }
    .ms-card__desc { font-size: 13px; line-height: 1.4; margin-bottom: 14px; }
    .ms-card__foot { flex-wrap: wrap; gap: 8px; }
    .ms-card__price { font-size: 16px; }
    .ms-card__foot .ms-btn { flex: 1 1 100%; min-height: 40px; padding: 8px 12px; font-size: 14px; }
    .ms-routine .ms-btn--lg { width: 100%; white-space: normal; text-align: center; padding: 14px 20px; }
    .ms-simple { padding-top: 64px; }
    .ms-simple .ms-h2 { margin-bottom: 24px; }
    .ms-simple__grid { gap: 22px; }
    .ms-feature { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; background: none; border-radius: 0; padding: 0; }
    .ms-feature__num { grid-row: 1 / span 2; width: 36px; height: 36px; font-size: 15px; margin: 0; background: var(--ms-blush); }
    .ms-feature h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.3; }
    .ms-feature p { grid-column: 2; font-size: 14px; line-height: 1.5; }
    .ms-faq { padding: 56px 0 64px; }
    .ms-faq__item summary { font-size: 17px; }
    .ms-news__row { flex-direction: column; }
    .ms-news__row .ms-btn { width: 100%; min-height: 52px; }
    .ms-news__row input { flex: none; width: 100%; height: 52px; }
    .ms-news__consent { font-size: 12.5px; }
    .ms-news__consent input { width: 18px; height: 18px; margin-top: 1px; }
    /* Mobile footer: flatten wrappers into one 2-col grid and reorder */
    .ms-footer { padding: 44px 0 32px; }
    .ms-footer .ms-container { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
    .ms-footer__grid, .ms-footer__brand, .ms-footer__bottom { display: contents; }
    .ms-footer__brand > :first-child { order: 1; grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
    .ms-footer__grid > div:nth-child(2) { order: 2; }
    .ms-footer__grid > div:nth-child(3) { order: 3; }
    .ms-footer__pay { order: 4; grid-column: 1 / -1; }
    .ms-footer__grid > div:nth-child(4) { order: 5; grid-column: 1 / -1; }
    .ms-footer__grid > div:nth-child(4) .ms-footer__title { display: none; }
    .ms-footer address { order: 6; grid-column: 1 / -1; font-size: 12.5px; }
    .ms-footer__bottom > span { order: 7; grid-column: 1 / -1; font-size: 12.5px; padding-top: 18px; border-top: 1px solid var(--ms-line-dark); }
    .ms-footer__title { font-size: 11.5px; margin: 0 0 14px; }
    .ms-footer__links li + li { margin-top: 12px; }
    .ms-footer__links a { font-size: 14.5px; }
    .ms-footer__lang a { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .ms *, .ms *::before, .ms *::after { transition: none !important; }
}

/* ---------- Additions: current menu item, routine links ---------- */
.ms-nav a[aria-current="page"] { color: var(--ms-orange); }
.ms-mobile-nav a[aria-current="page"] { color: var(--ms-orange); }
.ms-step__title a:hover { color: var(--ms-orange); }

/* =========================================================
   Cart drawer (inc/cart-drawer.php)
   ========================================================= */
html.ms-cart-open { overflow: hidden; }
.ms-drawer { position: fixed; inset: 0; z-index: 1000; font-family: var(--ms-body); color: var(--ms-text); }
.ms-drawer[hidden] { display: none; }
.ms-drawer :is(h2, h3, p, ul, dl, dd) { margin: 0; padding: 0; }
.ms-drawer ul { list-style: none; }
.ms-drawer a { color: inherit; text-decoration: none; }
.ms-drawer__overlay { position: absolute; inset: 0; background: rgba(29, 23, 21, .45); opacity: 0; transition: opacity .35s ease; }
.ms-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px;
    background: var(--ms-cream); box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.ms-drawer.is-open .ms-drawer__overlay { opacity: 1; }
.ms-drawer.is-open .ms-drawer__panel { transform: none; }
.ms-drawer__panel.is-busy .ms-drawer__inner { opacity: .55; pointer-events: none; }
.ms-drawer__inner { display: flex; flex-direction: column; height: 100%; transition: opacity .2s; }

.ms-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 12px; }
.ms-drawer__title { font-family: var(--ms-head); font-size: 20px; font-weight: 800; letter-spacing: -.015em; color: var(--ms-ink); line-height: 1.2; }
.ms-drawer__count { font-size: 12.5px; color: var(--ms-muted); }
.ms-drawer__close { width: 36px; height: 36px; margin: -4px -8px 0 0; border: 0; background: none; color: var(--ms-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.ms-drawer__close:hover { background: var(--ms-blush); }

.ms-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ms-drawer__empty { padding: 40px 20px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--ms-muted); }

.ms-drawer__ship { background: var(--ms-blush); padding: 14px 20px; }
.ms-drawer__ship-msg { font-size: 14px; font-weight: 600; color: var(--ms-ink); margin-bottom: 8px !important; }
.ms-drawer__ship-msg strong, .ms-drawer__ship-msg .amount { font-weight: 700; }
.ms-drawer__bar { height: 6px; border-radius: 3px; background: #fff; overflow: hidden; }
.ms-drawer__bar span { display: block; height: 100%; background: var(--ms-orange); border-radius: 3px; transition: width .4s ease; }
.ms-drawer__ship-note { font-size: 11.5px; color: var(--ms-muted); margin-top: 6px !important; }

.ms-drawer__item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--ms-line); }
.ms-drawer__thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--ms-blush); }
.ms-drawer__thumb img, .ms-drawer__mini img { width: 100%; height: 100%; object-fit: cover; }
.ms-drawer__info { flex: 1; min-width: 0; }
.ms-drawer__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ms-drawer__row--end { align-items: center; margin-top: 10px; }
.ms-drawer__name { font-size: 15px; font-weight: 700; color: var(--ms-ink); }
.ms-drawer__name:hover { color: var(--ms-orange); }
.ms-drawer__price { font-size: 15px; font-weight: 700; color: var(--ms-ink); white-space: nowrap; }
.ms-drawer__desc { font-size: 12.5px; color: var(--ms-muted); margin-top: 2px !important; }
.ms-drawer__qty { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--ms-ink); border-radius: 8px; background: #fff; }
.ms-drawer__qty button { width: 32px; height: 100%; border: 0; background: none; font-size: 16px; color: var(--ms-ink); cursor: pointer; }
.ms-drawer__qty button[disabled] { opacity: .35; cursor: default; }
.ms-drawer__qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; }
.ms-drawer__remove { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--ms-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ms-drawer__remove:hover { color: var(--ms-orange); }

.ms-drawer__upsell { padding: 16px 20px 4px; border-bottom: 1px solid var(--ms-line); }
.ms-drawer__upsell h3 { font-size: 14.5px; font-weight: 700; color: var(--ms-ink); }
.ms-drawer__upsell > p { font-size: 12.5px; color: var(--ms-muted); margin-bottom: 6px !important; }
.ms-drawer__upsell li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ms-drawer__upsell li + li { border-top: 1px solid var(--ms-line); }
.ms-drawer__upsell li > div { flex: 1; min-width: 0; display: grid; }
.ms-drawer__upsell .ms-drawer__name { font-size: 14px; }
.ms-drawer__mini { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--ms-blush); }
.ms-drawer__mini-price { font-size: 12.5px; color: var(--ms-muted); }
.ms-drawer__upsell .ms-btn--sm { min-height: 38px; min-width: 64px; padding: 0 14px; font-size: 13.5px; }

.ms-drawer__coupon { margin: 0 20px; border-bottom: 1px solid var(--ms-line); }
.ms-drawer__coupon summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 14px; font-weight: 600; color: var(--ms-ink); cursor: pointer; }
.ms-drawer__coupon summary::-webkit-details-marker { display: none; }
.ms-drawer__coupon summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.ms-drawer__coupon[open] summary::after { transform: rotate(-135deg); }
.ms-drawer__coupon-form { display: flex; gap: 8px; padding-bottom: 14px; }
.ms-drawer__coupon-form input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--ms-line); border-radius: 8px; background: #fff; font: 400 14px var(--ms-body); color: var(--ms-ink); }
.ms-drawer__coupon-form .ms-btn--sm { min-height: 42px; min-width: 0; padding: 0 16px; font-size: 13.5px; }
.ms-drawer__msg { font-size: 12.5px; color: #B42318; padding-bottom: 12px !important; }
.ms-drawer__msg.is-ok { color: #12703A; }

.ms-drawer__foot { padding: 14px 20px 16px; border-top: 1px solid var(--ms-line); background: var(--ms-cream); }
.ms-drawer__totals { display: grid; gap: 6px; margin-bottom: 14px !important; }
.ms-drawer__totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ms-drawer__totals dt { color: var(--ms-text); }
.ms-drawer__totals dd { color: var(--ms-ink); text-align: right; }
.ms-drawer__totals .is-discount dd { color: #12703A; }
.ms-drawer__totals .is-discount button { border: 0; background: none; padding: 0 4px; font-size: 15px; line-height: 1; color: var(--ms-muted); cursor: pointer; }
.ms-drawer__totals .is-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ms-line); align-items: baseline; }
.ms-drawer__totals .is-total dt { font-size: 15px; font-weight: 700; color: var(--ms-ink); }
.ms-drawer__totals .is-total small { font-size: 11px; font-weight: 400; color: var(--ms-muted); }
.ms-drawer__totals .is-total dd { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.ms-drawer__checkout { width: 100%; min-height: 52px; }
.ms-drawer__links { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--ms-muted); }
.ms-drawer__links span { display: inline-flex; align-items: center; gap: 5px; }
.ms-drawer__links button { border: 0; background: none; padding: 0; font: 600 13px var(--ms-body); color: var(--ms-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 600px) {
    .ms-drawer__panel { max-width: none; }
    .ms-drawer__head { padding: 14px 16px 10px; }
    .ms-drawer__ship, .ms-drawer__item, .ms-drawer__upsell { padding-left: 16px; padding-right: 16px; }
    .ms-drawer__coupon { margin: 0 16px; }
    .ms-drawer__foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
    .ms-drawer__thumb { width: 68px; height: 68px; }
    .ms-drawer__links { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-drawer__panel, .ms-drawer__overlay { transition: none; }
}
