/* Cosmetics store — soft beauty palette, logo kept as-is */
:root {
  --cream: #FBF7F3;
  --blush: #F6E7E4;
  --blush-2: #EFD5D0;
  --rose: #C27C76;
  --rose-deep: #9E5650;
  --plum: #3B2631;
  --ink: #2E2228;
  --muted: #7D6A70;
  --gold: #B88A5A;
  --line: #EEE2DD;
  --white: #FFFFFF;
  --wa: #1F8F5F;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(94, 50, 58, .08), 0 2px 6px rgba(94, 50, 58, .05);
  --shadow-lg: 0 24px 60px rgba(94, 50, 58, .16);
  --head: "El Messiri", "Cairo", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0; font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; color: var(--ink);
  background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h1, h2 { font-family: var(--head); font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid #E8A9A2; outline-offset: 2px; }

.demo-bar {
  background: var(--plum); color: #FBE9E5; text-align: center; font-size: .88rem; font-weight: 700; padding: 6px 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  padding: .85em 1.7em; border-radius: 999px; font-weight: 800; font-size: 1rem;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--plum); color: #fff; box-shadow: 0 10px 24px rgba(59, 38, 49, .25); }
.btn--dark:hover { background: #2B1B23; }
.btn--soft { background: var(--white); color: var(--rose-deep); box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--plum); }
.btn--wa { background: var(--wa); color: #fff; }
.drawer .btn--wa { width: 100%; }
.btn--wa:hover { background: #18774E; }
.btn--sm { padding: .55em 1.2em; font-size: .92rem; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--blush); color: var(--plum); font-size: 1.1rem;
}
.icon-btn:hover { background: var(--blush-2); }

/* ── Header ── */
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 243, .9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand img { height: 62px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: .45em .95em; border-radius: 999px; font-weight: 700; transition: background .15s, color .15s; }
.nav a:hover { background: var(--blush); color: var(--rose-deep); }
.header__actions { display: flex; gap: 10px; }
.cart-count {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px;
  background: var(--rose); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; padding: 13px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--plum); border-radius: 2px; margin: 3px 0; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ── Hero ── */
.hero { background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 88px; }
.eyebrow { display: inline-block; color: var(--rose-deep); font-weight: 800; letter-spacing: .02em; margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); color: var(--plum); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--rose); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .05em; height: .14em; border-radius: 99px;
  background: var(--blush-2); z-index: -1;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--plum); font-weight: 700; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--rose); }

.hero__art { position: relative; height: 440px; }
.blob {
  position: absolute; inset: 6% 8%; border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%;
  background: radial-gradient(circle at 30% 30%, #FFF4F1, var(--blush-2)); animation: morph 12s ease-in-out infinite;
}
@keyframes morph { 50% { border-radius: 58% 42% 44% 56% / 54% 58% 42% 46%; transform: rotate(6deg); } }
.bottle { position: absolute; box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.bottle .label { font-family: Georgia, serif; letter-spacing: .25em; font-size: .72rem; color: var(--plum); opacity: .75; }
.bottle--serum {
  width: 110px; height: 190px; bottom: 18%; inset-inline-start: 22%; border-radius: 26px 26px 22px 22px;
  background: linear-gradient(160deg, #F3C8B8, #DE9F8C); animation: floaty 6s ease-in-out infinite;
}
.bottle--serum .cap { position: absolute; top: -58px; width: 44px; height: 62px; border-radius: 12px 12px 6px 6px; background: var(--plum); }
.bottle--serum .label { color: #fff; transform: rotate(-90deg); }
.bottle--jar {
  width: 160px; height: 110px; bottom: 12%; inset-inline-end: 20%; border-radius: 22px;
  background: linear-gradient(170deg, #fff, #F2E6E1); animation: floaty 7s ease-in-out infinite reverse;
}
.bottle--jar .lid { position: absolute; top: -26px; width: 170px; height: 34px; border-radius: 14px; background: var(--gold); }
.bottle--tube {
  width: 86px; height: 230px; top: 10%; inset-inline-end: 36%; border-radius: 16px 16px 40px 40px;
  background: linear-gradient(180deg, #fff, #F7EDEA); transform: rotate(14deg); animation: floaty2 8s ease-in-out infinite;
}
.bottle--tube .label { transform: rotate(-90deg); color: var(--rose-deep); }
.bottle--tube .tip { position: absolute; bottom: -28px; width: 46px; height: 32px; border-radius: 0 0 12px 12px; background: var(--rose); }
.sparkle { position: absolute; color: var(--gold); font-size: 1.6rem; animation: twinkle 3s ease-in-out infinite; }
.s1 { top: 8%; inset-inline-start: 18%; } .s2 { top: 30%; inset-inline-end: 8%; animation-delay: 1s; } .s3 { bottom: 6%; inset-inline-start: 50%; animation-delay: 2s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes floaty2 { 50% { transform: rotate(14deg) translateY(-12px); } }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.8); } }

/* ── Sections ── */
.section { padding: 88px 0; }
.section--blush { background: var(--blush); }
.section--cream { background: #F7F0EB; }
.section__head { text-align: center; margin: 0 auto 40px; max-width: 640px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--plum); }
.kicker { display: inline-block; color: var(--rose-deep); font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.kicker::before { content: "✦ "; color: var(--gold); }
.kicker--light { color: #FBE0DA; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cat {
  border: 0; cursor: pointer; background: var(--white); border-radius: var(--radius); padding: 22px 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; color: var(--ink);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat__art { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--blush)); }
.cat__art svg { width: 54px; height: 54px; }
.cat b { font-size: 1.02rem; }
.cat small { color: var(--muted); font-size: .82rem; margin-top: -8px; }

/* Skin */
.skin { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.skin__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skin-opt {
  border: 2px solid transparent; cursor: pointer; border-radius: 20px; padding: 18px 10px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; color: var(--plum);
  transition: border-color .15s, transform .15s;
}
.skin-opt:hover { transform: translateY(-3px); }
.skin-opt[aria-pressed="true"] { border-color: var(--rose); background: #FFF8F6; }
.skin-opt span { font-size: 1.7rem; }
.skin-opt small { font-weight: 600; color: var(--muted); font-size: .78rem; text-align: center; line-height: 1.4; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0 16px; color: var(--muted);
}
.search:focus-within { border-color: var(--rose); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: .75em 0; width: 100%; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-top: 2px; }
body.lock .cart-bar { display: none !important; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: var(--white); color: var(--plum); border-radius: 999px;
  padding: .45em 1.1em; font-weight: 700; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--rose); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
#sort {
  font: inherit; font-weight: 700; color: var(--plum); background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: .7em 1.2em; cursor: pointer;
}
.result-info { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; min-height: 1.4em; }
.result-info button { border: 0; background: none; color: var(--rose-deep); font-weight: 800; cursor: pointer; text-decoration: underline; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
  animation: cardIn .45s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg, var(--blush)); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.card__media .ph { width: 52%; height: 70%; }
.card__media .pack { width: 64%; height: 86%; transition: transform .35s ease; filter: drop-shadow(0 6px 10px rgba(80, 40, 50, .08)); }
.card:hover .pack { transform: translateY(-4px) rotate(-2deg); }
.cart-item__img .pack { width: 80%; height: 90%; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; mix-blend-mode: normal; }
.card__media--photo { background: #fff; }
.card__media { overflow: hidden; }
.card__media--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: normal; padding: 18px;
}
.photo-credit {
  position: absolute; bottom: 8px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; background: rgba(255, 255, 255, .85); color: var(--muted);
}
.photo-credit:hover { color: var(--rose-deep); }
.footer .credit { margin: 6px 0 0; font-size: .78rem; color: #A88F94; }
.footer .credit a { display: inline; padding: 0; text-decoration: underline; }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--rose); color: #fff; font-weight: 800;
  font-size: .78rem; padding: .25em .8em; border-radius: 999px;
}
.badge--new { background: var(--plum); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { color: var(--rose-deep); font-size: .8rem; font-weight: 800; letter-spacing: .03em; }
.card__name { font-size: 1rem; font-weight: 800; line-height: 1.45; margin: 0; }
.card__size { color: var(--muted); font-size: .82rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font-size: 1.15rem; color: var(--plum); }
.price s { color: var(--muted); font-size: .82rem; }
.add {
  border: 0; cursor: pointer; border-radius: 999px; background: var(--blush); color: var(--plum); font-weight: 800;
  padding: .55em 1em; display: inline-flex; align-items: center; gap: 4px; transition: background .15s, color .15s;
}
.add:hover { background: var(--plum); color: #fff; }
.add.added { background: var(--wa); color: #fff; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* Consult */
.consult {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 32px; color: #FCEDEA;
  background: radial-gradient(500px 260px at 0% 100%, rgba(194, 124, 118, .55), transparent 70%), linear-gradient(135deg, #4A2F3B, var(--plum));
  box-shadow: var(--shadow-lg);
}
.consult h2 { color: #fff; }
.consult p { max-width: 40em; margin: 0; color: #EBD3CF; }

/* Branches */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.branch { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.branch iframe { width: 100%; height: 240px; border: 0; display: block; filter: saturate(.8) sepia(.08); background: var(--blush); }
.branch__body { padding: 20px 24px 24px; }
.branch h3 { font-family: var(--head); font-size: 1.4rem; color: var(--plum); }
.branch p { margin-bottom: .4em; }
.link { color: var(--rose-deep); font-weight: 800; }

/* Footer */
.footer { background: var(--plum); color: #E9D6D2; padding: 60px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand img { background: #fff; border-radius: 18px; padding: 10px 14px; width: 170px; height: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; font-family: var(--head); font-size: 1.2rem; }
.footer a { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; text-align: center; font-size: .9rem; color: #BFA6A6; }
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.55rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
}

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(46, 34, 40, .4); z-index: 50; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); z-index: 60; background: var(--cream);
  display: none; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.is-open { display: flex; animation: slideRtl .3s ease; }
[dir="ltr"] .drawer.is-open { animation-name: slideLtr; }
@keyframes slideRtl { from { transform: translateX(-100%); } }
@keyframes slideLtr { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--head); font-size: 1.5rem; margin: 0; color: var(--plum); }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--white); border-radius: 18px; padding: 10px; }
.cart-item__img { width: 64px; height: 64px; border-radius: 14px; background: var(--bg, var(--blush)); display: grid; place-items: center; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item__img .ph { width: 60%; height: 75%; }
.cart-item b { display: block; font-size: .92rem; line-height: 1.4; }
.cart-item small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--blush); color: var(--plum); cursor: pointer; display: grid; place-items: center; font-size: .8rem; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }
.cart-item .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; align-self: start; }
.cart-item .rm:hover { color: var(--rose-deep); }
.cart-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.cart-empty .ic { width: 52px; height: 52px; color: var(--blush-2); }
.checkout { display: grid; gap: 10px; margin-top: 20px; }
.checkout h4 { margin: 0; color: var(--plum); }
.checkout input, .checkout select, .checkout textarea {
  font: inherit; font-weight: 600; padding: .7em 1em; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); width: 100%;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--rose); }
.checkout .invalid { border-color: #C0392B; background: #FFF6F5; }
.form-err { color: #B03A2E; font-weight: 700; margin: 0; font-size: .9rem; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--white); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.total strong { font-size: 1.4rem; color: var(--plum); }

.toast {
  position: fixed; top: 96px; left: 50%; transform: translate(-50%, -260%); z-index: 70; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; background: var(--plum); color: #fff;
  padding: .7em 1.4em; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); transition: transform .3s ease; white-space: nowrap;
}
.toast { opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ── Language, brands, notes, branches extras ── */
[lang="en"] { --head: "Playfair Display", Georgia, serif; }
[lang="en"] body { line-height: 1.6; }
[lang="en"] .hero h1 { letter-spacing: -.01em; }
.lang-btn {
  height: 46px; min-width: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--blush-2);
  background: var(--white); color: var(--plum); font-weight: 800; cursor: pointer; font-family: "Cairo", sans-serif;
  transition: background .15s, border-color .15s;
}
.lang-btn:hover { background: var(--blush); border-color: var(--rose); }

.brands { padding: 34px 0 6px; }
.brands__title { text-align: center; color: var(--muted); font-weight: 700; font-size: .9rem; margin-bottom: 14px; letter-spacing: .04em; }
.brands__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.brand-chip {
  border: 1px solid var(--line); background: var(--white); color: var(--plum); border-radius: 12px; padding: .5em 1.1em;
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all .15s;
}
.brand-chip:hover { border-color: var(--rose); color: var(--rose-deep); transform: translateY(-2px); }

.on-request { color: var(--rose-deep); font-weight: 800; font-size: .9rem; }
.price-note { display: flex; gap: 8px; align-items: flex-start; margin: 22px 0 0; color: var(--muted); font-size: .88rem; background: var(--white); border: 1px dashed var(--blush-2); border-radius: 14px; padding: 12px 14px; }
.price-note .ic { color: var(--rose); margin-top: 2px; }

.consult__text { flex: 1 1 380px; }
.consult__actions { display: flex; flex-direction: column; gap: 10px; }

.branch__addr, .branch .muted { display: flex; gap: 8px; align-items: flex-start; }
.branch__addr .ic, .branch .muted .ic { color: var(--rose); margin-top: 4px; }
.branch__nums { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 14px; }
.branch__nums a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--plum); }
.branch__nums a:hover { color: var(--rose-deep); }
.branch__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pay { margin-top: 28px; background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.pay h3 { font-family: var(--head); color: var(--plum); margin: 0; font-size: 1.3rem; }
.pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pay li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pay b { color: var(--rose-deep); }
.pay__ic { font-size: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 84px; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--cream); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em 1em; }
  .header__actions { margin-inline-start: auto; }
  .hero__inner { grid-template-columns: 1fr; padding: 40px 0 56px; gap: 10px; }
  .hero__art { height: 320px; order: -1; }
  .skin { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .consult { padding: 32px 26px; }
}
@media (max-width: 600px) {
  .header__inner { height: 70px; }
  .brand img { height: 50px; }
  .nav { top: 70px; }
  .section { padding: 60px 0; }
  .hero__art { height: 260px; transform: scale(.78); margin: -20px 0 -30px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lang-btn { height: 42px; min-width: 42px; padding: 0 10px; }
  .icon-btn { width: 42px; height: 42px; }
  .header__actions { gap: 6px; }
  .consult__actions { width: 100%; }
  .consult__actions .btn { width: 100%; }
  .pay { padding: 18px; }
  .skin__opts { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: .9rem; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .add { justify-content: center; }
  #sort { flex: 1; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  /* ── Phone polish ── */
  .container { width: calc(100% - 32px); }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 26px; }
  .section h2 { font-size: 1.65rem; }
  .hero__inner { padding: 18px 0 40px; }
  .hero__art { height: 230px; transform: scale(.66); margin: -36px 0 -44px; }
  .hero h1 { font-size: 2.05rem; line-height: 1.35; }
  .lead { font-size: 1rem; }
  .hero__cta { margin: 20px 0 22px; gap: 10px; }
  .trust { gap: 8px 16px; font-size: .88rem; }

  /* brands & categories: one swipeable row instead of a long column */
  .brands { padding-top: 18px; }
  .brands__row, .cats {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 10px;
    margin-inline: -16px; padding: 4px 16px 12px; scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .brands__row::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
  .brand-chip, .cat { flex: none; scroll-snap-align: start; }
  .brand-chip { padding: .5em 1em; font-size: .95rem; }
  .cat { width: 128px; padding: 16px 8px 14px; gap: 8px; }
  .cat__art { width: 64px; height: 64px; }
  .cat__art svg { width: 40px; height: 40px; }
  .cat b { font-size: .9rem; line-height: 1.35; text-align: center; }
  .cat small { display: none; }

  .skin-opt { padding: 14px 8px; }

  /* filters stay reachable while scrolling the products */
  .toolbar { gap: 10px; }
  .search { flex: 1 1 100%; }
  #sort { flex: 1 1 100%; }
  .chips {
    position: sticky; top: 70px; z-index: 5; background: var(--cream);
    margin-inline: -16px; padding: 8px 16px;
  }
  .chip { min-height: 40px; }

  .card { border-radius: 18px; }
  .card__media .pack { width: 70%; height: 88%; }
  .card__media--photo img { padding: 12px; }
  .card__brand { font-size: .74rem; }
  .card__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card__size { font-size: .76rem; }
  .price strong { font-size: 1rem; }
  .add { padding: .6em .8em; min-height: 40px; }
  .badge { font-size: .7rem; top: 8px; inset-inline-start: 8px; }

  .consult { padding: 28px 20px; border-radius: 24px; }
  .branch iframe { height: 200px; }
  .branch__body { padding: 18px; }
  .branch__actions .btn { flex: 1; }
  .pay ul { flex-direction: column; gap: 10px; }

  .toast { top: auto; bottom: 150px; transform: translate(-50%, 40px); }
  .toast.show { transform: translate(-50%, 0); }
  .wa-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
  body.has-cart .wa-float { bottom: 84px; }
  .footer { padding-bottom: 90px; }
}

/* ── Phone: bottom "view bag" bar (shown when the bag has items) ── */
.cart-bar { display: none; }
@media (max-width: 600px) {
  body.has-cart .cart-bar {
    position: fixed; bottom: 12px; inset-inline: 12px; z-index: 35; display: flex; align-items: center;
    justify-content: space-between; gap: 10px; padding: 12px 18px; border: 0; border-radius: 18px; cursor: pointer;
    background: var(--plum); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 12px 30px rgba(59, 38, 49, .35);
  }
  .cart-bar__count {
    min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--rose); display: inline-grid; place-items: center; font-size: .85rem;
  }
  .cart-bar span:first-child { display: flex; align-items: center; gap: 8px; }
}
