/* ==========================================================================
   Easy Deco – shared base (tokens, components used by every mockup)
   ========================================================================== */
:root {
  /* Brand palette */
  --ink: #121212;        /* Logo black – primary */
  --graphite: #3a3734;   /* Body text */
  --mute: #6e6862;       /* Secondary text */
  --line: #e6e0d7;       /* Borders */
  --linen: #f6f2ec;      /* Warm section background */
  --paper: #ffffff;      /* Logo white */
  --oak: #a8743e;        /* Accent – from the wood-grain panels */
  --oak-deep: #7c5128;   /* Accent for text & hover (AA on white) */
  --sand: #eadfcf;       /* Soft accent fill */
  --wa: #25d366;         /* WhatsApp (functional only) */
  --wa-hover: #1da851;   /* WhatsApp hover */

  --f-head: system-ui, sans-serif;
  --f-body: system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18,18,18,.06), 0 8px 24px rgba(18,18,18,.08);
  --shadow-lg: 0 24px 60px rgba(18,18,18,.22);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.ed-lock { overflow: hidden; }
body.ed { margin: 0; font-family: var(--f-body); color: var(--graphite); background: var(--paper); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.ed) img { max-width: 100%; height: auto; display: block; }
:where(.ed) a { color: inherit; text-decoration: none; }
:where(.ed) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.ed) :is(h1,h2,h3,h4) { font-family: var(--f-head); color: var(--ink); margin: 0; line-height: 1.1; text-wrap: balance; }
:where(.ed) p { margin: 0; text-wrap: pretty; }
:where(.ed) ul { margin: 0; padding: 0; list-style: none; }
:where(.ed) :focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; border-radius: 4px; }
.ed-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.ed-skip:focus { left: 8px; }
.ed-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ed-ico { flex: none; }

/* ---------- Mockup switcher (review aid, removed at launch) ---------- */
.ed-switch { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px 12px; background: #2b2926; color: #cfc8bf; font: 500 12px/1.2 system-ui, sans-serif; }
.ed-switch span { margin-right: 8px; opacity: .8; }
.ed-switch a { padding: 5px 10px; border-radius: 999px; color: #fff; }
.ed-switch a:hover { background: rgba(255,255,255,.1); }
.ed-switch a[aria-current] { background: #fff; color: var(--ink); }
@media (max-width: 640px) { .ed-switch span { display: none; } .ed-switch { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; } .ed-switch a { white-space: nowrap; } }

/* ---------- Logo ---------- */
.ed-logo { display: inline-flex; color: var(--ink); line-height: 0; }
.ed-logo svg, .ed-logo img { height: 100%; width: auto; display: block; }

/* ---------- Buttons ---------- */
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.ed-btn:active { transform: scale(.98); }
.ed-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.ed-btn--wa { background: var(--wa); color: #fff; }
.ed-btn--wa:hover { background: var(--wa-hover); }
.ed-btn--ink { background: var(--ink); color: #fff; }
.ed-btn--ink:hover { background: #2c2c2c; }
.ed-btn--oak { background: var(--oak-deep); color: #fff; }
.ed-btn--oak:hover { background: #64401e; }
.ed-btn--ghost { border-color: currentColor; color: var(--ink); }
.ed-btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ed-btn--light { background: #fff; color: var(--ink); }
.ed-btn--light:hover { background: var(--linen); }

/* ---------- Search ---------- */
.ed-search { position: relative; display: flex; align-items: center; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.ed-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168,116,62,.16); }
.ed-search__icon { position: absolute; left: 16px; color: var(--mute); display: flex; pointer-events: none; }
.ed-search input { flex: 1; min-width: 0; height: 46px; padding: 0 44px 0 44px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); border-radius: 999px; outline: none; }
.ed-search input::placeholder { color: #8d867f; }
.ed-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ed-search__kbd { position: absolute; right: 14px; font: 600 11px/1 system-ui, sans-serif; color: var(--mute); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; }
.ed-search.is-open .ed-search__kbd { display: none; }
@media (hover: none) { .ed-search__kbd { display: none; } }
.ed-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 560px); overflow: auto; text-align: left; color: var(--graphite); }
.ed-res__h { font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 10px 10px 6px; }
.ed-res__h span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ed-res__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.ed-res__item:hover,.ed-res__item.is-active { background: var(--linen); }
.ed-res__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--linen); flex: none; }
.ed-res__item--line img { width: 36px; height: 44px; }
.ed-res__item span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ed-res__item strong { color: var(--ink); font-size: 15px; }
.ed-res__item small { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-res__wa { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--wa); flex: none; }
.ed-res__wa:hover { background: var(--wa-hover); }
.ed-res__empty { padding: 14px 12px; display: grid; gap: 10px; justify-items: start; font-size: 14px; }

/* ---------- Mega menu (structure; skins style the look) ---------- */
.ed-nav { display: flex; align-items: stretch; height: 100%; }
.ed-nav__item { position: static; display: flex; align-items: stretch; }
.ed-nav__link { display: inline-flex; align-items: center; align-self: stretch; height: 100%; gap: 6px; padding: 0 14px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ed-nav__link .ed-ico { transition: transform .2s; }
.ed-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(18,18,18,.25); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; color: var(--graphite); }
.ed-nav__item.is-open > .ed-mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (hover: hover) { .ed-nav__item:hover > .ed-mega { visibility: visible; opacity: 1; transform: none; transition-delay: .08s; } }
.ed-nav__item.is-open .ed-nav__link .ed-ico, .ed-nav__item:hover .ed-nav__link .ed-ico { transform: rotate(180deg); }
.ed-mega__inner { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 32px; display: grid; gap: 28px; }
.ed-mega--all .ed-mega__inner { grid-template-columns: repeat(5, minmax(0, 1fr)) 230px; }
.ed-mega__h { display: block; font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--oak-deep); margin-bottom: 14px; }
.ed-mega--all li a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.2; }
.ed-mega--all li a:hover { background: var(--linen); }
.ed-mega--all li img { width: 32px; height: 40px; object-fit: cover; border-radius: 4px; }
.ed-mega--all li small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; margin-top: 2px; }
.ed-mega__feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 280px; padding: 18px; border-radius: 12px; overflow: hidden; color: #fff; isolation: isolate; }
.ed-mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.ed-mega__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.ed-mega__feature:hover img { transform: scale(1.04); }
.ed-mega__feature strong { font-family: var(--f-head); font-size: 20px; color: #fff; }
.ed-mega__feature span { font-size: 13px; opacity: .9; }
.ed-mega__feature-tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-weight: 700; font-size: 11px !important; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; opacity: 1 !important; }
.ed-mega--cards .ed-mega__inner { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.ed-mcard { display: grid; gap: 4px; color: var(--ink); }
.ed-mcard img { aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; margin-bottom: 8px; transition: transform .4s var(--ease); }
.ed-mcard:hover img { transform: translateY(-3px); }
.ed-mcard strong { font-size: 15px; }
.ed-mcard span { font-size: 13px; color: var(--mute); }
.ed-mega--text .ed-mega__inner { grid-template-columns: 1fr 300px; }
.ed-mega--text .ed-mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
.ed-mega--text .ed-mega__h { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; margin-bottom: 10px; }
.ed-mega--text li a { display: block; padding: 3px 0; font-size: 14px; color: var(--mute); }
.ed-mega--text li a:hover { color: var(--ink); }
.ed-mega__more { color: var(--oak-deep) !important; font-weight: 600; }
.ed-mega--text .ed-mega__feature em { font-style: normal; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }

/* ---------- Swatch strip ---------- */
.ed-strip { display: inline-flex; align-items: center; }
.ed-strip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -7px; box-shadow: 0 0 0 1px var(--line); }
.ed-strip img:first-child { margin-left: 0; }
.ed-strip__more { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--mute); }

/* ---------- Product card ---------- */
.ed-pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; }
.ed-pcard__media { display: block; aspect-ratio: 1; background: var(--linen); overflow: hidden; width: 100%; }
.ed-pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .5s var(--ease); }
.ed-pcard:hover .ed-pcard__media img { transform: scale(1.06); }
.ed-pcard__body { padding: 14px 14px 16px; display: grid; gap: 2px; }
.ed-pcard__code { font: 700 18px/1.1 var(--f-head); color: var(--ink); }
.ed-pcard__code a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ed-pcard__name { font: 500 14px/1.3 var(--f-body); color: var(--graphite); }
.ed-pcard__size { font-size: 13px; color: var(--mute); }
.ed-pcard__wa { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.ed-pcard__wa:hover { background: var(--wa-hover); }

/* ---------- Floating WhatsApp ---------- */
.ed-wafloat { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(15,122,62,.4); transition: transform .2s var(--ease); }
.ed-wafloat::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ed-ping 2.4s var(--ease) infinite; }
.ed-wafloat:hover { transform: scale(1.06); }
.ed-wafloat__tip { position: absolute; right: 72px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: .2s var(--ease); pointer-events: none; display: grid; }
.ed-wafloat__tip small { font-weight: 400; opacity: .75; }
.ed-wafloat:hover .ed-wafloat__tip, .ed-wafloat:focus-visible .ed-wafloat__tip { opacity: 1; transform: none; }
@keyframes ed-ping { 0% { transform: scale(1); opacity: .7; } 80%,100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ed-wafloat::before { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Quick view ---------- */
.ed-qv { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.ed-qv[hidden] { display: none; }
.ed-qv__scrim { position: absolute; inset: 0; background: rgba(18,18,18,.55); opacity: 0; transition: opacity .2s; }
.ed-qv__dialog { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.ed-qv.is-in .ed-qv__scrim { opacity: 1; }
.ed-qv.is-in .ed-qv__dialog { opacity: 1; transform: none; }
.ed-qv__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.ed-qv__media { background: var(--linen); display: grid; place-items: center; min-height: 360px; padding: 32px; }
.ed-qv__media img { width: 100%; max-width: 420px; max-height: 460px; object-fit: contain; border-radius: 8px; }
.ed-qv__info { padding: 36px 32px 28px; display: grid; gap: 14px; align-content: start; }
.ed-qv__group { font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--oak-deep); }
.ed-qv__title { font-size: 30px; }
.ed-qv__blurb { color: var(--mute); font-size: 15px; }
.ed-qv__specs { margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ed-qv__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ed-qv__specs div[hidden] { display: none; }
.ed-qv__specs dt { color: var(--mute); }
.ed-qv__specs dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.ed-qv__label { font-weight: 700; color: var(--ink); font-size: 14px; }
.ed-qv__label span { color: var(--mute); font-weight: 500; }
.ed-qv__variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; max-height: 196px; overflow: auto; padding: 2px; }
.ed-qv__v { display: grid; gap: 4px; justify-items: center; padding: 4px; border-radius: 10px; border: 1.5px solid transparent; font-size: 11px; font-weight: 600; color: var(--graphite); }
.ed-qv__v img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: var(--linen); }
.ed-qv__v span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-qv__v:hover { border-color: var(--line); }
.ed-qv__v.is-on { border-color: var(--ink); }
.ed-qv__actions { display: grid; gap: 10px; margin-top: 6px; }
.ed-qv__note { font-size: 12px; color: var(--mute); }
@media (max-width: 760px) {
  .ed-qv { padding: 0; align-items: end; }
  .ed-qv__dialog { grid-template-columns: 1fr; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .ed-qv__media { min-height: 0; padding: 20px; }
  .ed-qv__media img { max-height: 240px; }
  .ed-qv__info { padding: 20px 18px 24px; }
  .ed-qv__title { font-size: 24px; }
}

/* ---------- Mobile drawer (shared) ---------- */
.ed-burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: 10px; }
.ed-drawer { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); z-index: 90; background: #fff; transform: translateX(100%); transition: transform .3s var(--ease); overflow: auto; padding: 18px 18px 100px; box-shadow: var(--shadow-lg); color: var(--graphite); }
.ed-drawer__scrim { position: fixed; inset: 0; z-index: 89; background: rgba(18,18,18,.45); opacity: 0; visibility: hidden; transition: .3s; }
.ed-drawer-open .ed-drawer { transform: none; }
.ed-drawer-open .ed-drawer__scrim { opacity: 1; visibility: visible; }
.ed-drawer-open { overflow: hidden; }
.ed-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ed-drawer__top .ed-logo { height: 30px; }
.ed-drawer .ed-search { margin-bottom: 14px; }
.ed-drawer__group { border-bottom: 1px solid var(--line); }
.ed-drawer__group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; font-weight: 700; color: var(--ink); font-size: 16px; }
.ed-drawer__group > button .ed-ico { transition: transform .2s; }
.ed-drawer__group > button[aria-expanded="true"] .ed-ico { transform: rotate(180deg); }
.ed-drawer__group > ul { display: none; padding-bottom: 12px; }
.ed-drawer__group > button[aria-expanded="true"] + ul { display: grid; gap: 2px; }
.ed-drawer__group li a { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 15px; }
.ed-drawer__group li img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.ed-drawer__links a { display: block; padding: 15px 0; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.ed-drawer .ed-btn { width: 100%; margin-top: 18px; }
