/* Francis Klein Paris v5: still-life visuals made from the real frames, richer header with mega menu,
   "Made yours" personalisation block. Builds on site.css, v3.css and v4.css. */

/* ---------- header ---------- */
.site-header { position: sticky; }
.nav-left, .nav-right { gap: 26px; }
.ico-link { display: inline-flex; align-items: center; gap: 7px; }
.ico-link svg, .pill-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; flex: 0 0 auto; }
.pill-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px !important; border-radius: 999px; background: rgba(29,87,71,.08); color: var(--green) !important; }
.pill-link svg { width: 15px; height: 15px; fill: var(--green); stroke: none; }
.pill-link:hover { background: var(--green); color: #fff !important; }
.pill-link:hover svg { fill: #fff; }
.pill-link::after { display: none; }
.bag-link [data-count] { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rose-d); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.bag-link [data-count]::before, .bag-link [data-count]::after { content: none; }
.nav-left a[data-nav]:not(.pill-link)::before { content: ''; position: absolute; left: 50%; bottom: -24px; width: 0; height: 0; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line-soft); box-shadow: 0 30px 60px -30px rgba(80,40,40,.35); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease); z-index: 39; }
.mega.on { opacity: 1; transform: none; }
.mega-in { max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 34px; display: grid; grid-template-columns: 190px 230px minmax(0, 1fr) 260px; gap: 34px; align-items: start; }
.mega-h { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--rose-d); margin-bottom: 10px; }
.mega-col a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.mega-col a span { color: var(--muted); font-size: 13px; }
.mega-col a:hover { color: var(--rose-d); }
.mega-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.mega-colors a { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 4px 0; }
.mega-colors i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.mega-colors a:hover { color: var(--rose-d); }
.mega-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mega-feat a { display: grid; gap: 4px; }
.mf-img { aspect-ratio: 16/9; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(100% 90% at 50% 40%, #fff, var(--case) 75%, var(--case-2)); transition: transform .5s var(--ease); }
.mf-img img { width: 86%; filter: drop-shadow(0 8px 8px rgba(80,40,40,.18)); }
.mega-feat a:hover .mf-img { transform: translateY(-3px); }
.mega-feat b { font-family: var(--serif); font-weight: 500; font-size: 16px; margin-top: 6px; }
.mega-feat span { font-size: 12.5px; color: var(--muted); }
.mega-promo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3.2; display: block; }
.mega-promo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mega-promo:hover img { transform: scale(1.04); }
.mega-promo span { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; background: rgba(252,248,245,.94); border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.mega-made { grid-template-columns: 420px minmax(0, 1fr); align-items: center; }
.mega-img { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 14/9; display: block; }
.mega-img img:first-child { width: 100%; height: 100%; object-fit: cover; }
.mega-img-frame { position: absolute; left: 22%; width: 56%; top: 46%; filter: drop-shadow(14px 14px 10px rgba(80,40,40,.25)); }
.mega-title { font-family: var(--serif); font-size: 30px; line-height: 1.12; margin: 10px 0 12px; }
.mega-made p { font-size: 15px; line-height: 1.75; color: var(--text-2); max-width: 520px; margin: 0 0 20px; }

/* mobile drawer */
.drawer-panel { overflow-y: auto; width: min(380px, 90vw); }
.drawer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.drawer-col { display: grid !important; gap: 6px; justify-items: center; text-align: center; border: 0 !important; font-size: 15px !important; padding: 0 !important; }
.drawer-col .dimg { width: 100%; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(100% 90% at 50% 40%, #fff, var(--case) 75%, var(--case-2)); }
.drawer-col img { width: 90%; }
.drawer-col b { font-family: var(--serif); font-weight: 500; }
.drawer-made { display: grid !important; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px !important; border-radius: 14px; background: rgba(29,87,71,.07); border: 0 !important; margin: 8px 0 12px; font-size: 13px !important; font-family: var(--sans) !important; color: var(--text-2); }
.drawer-made img { width: 96px; height: 62px; object-fit: cover; border-radius: 10px; }
.drawer-made b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--green); }
.drawer-label { font-family: var(--serif); font-style: italic; color: var(--rose-d); font-size: 16px; margin-top: 4px; }
.drawer-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; margin: 8px 0 12px; }
.drawer-colors a { display: grid !important; justify-items: center; gap: 4px; font-size: 12px !important; font-family: var(--sans) !important; border: 0 !important; padding: 0 !important; }
.drawer-colors i { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- visuals ---------- */
.hero4-img { aspect-ratio: 4 / 3; }
.hero4-img img { object-position: 50% 60%; }
.collection-card .media.col-photo { height: 300px; background: var(--case); }
.collection-card .media.col-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform 1.2s var(--ease); }
.collection-card:hover .media.col-photo img { transform: scale(1.05); }
.look-closer > .media { min-height: 680px; }

/* ---------- made yours ---------- */
.made { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 4vw, 64px); align-items: center; padding: 90px var(--pad); background: var(--paper); }
.made-stage { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 14 / 10; box-shadow: 0 40px 80px -46px rgba(110,55,50,.55); }
.made-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.made-stage::before { content: ''; position: absolute; left: 20%; right: 20%; top: 20%; height: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 35%, transparent), transparent); transition: background .6s; z-index: 1; }
.made-frame { position: absolute; left: 21%; right: 21%; top: 41%; z-index: 2; }
.made-frame img { width: 100%; filter: drop-shadow(26px 22px 14px rgba(80,40,40,.22)) drop-shadow(0 4px 3px rgba(80,40,40,.2)); }
.made-engr { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; padding: 8px 16px; border-radius: 999px; background: rgba(252,248,245,.92); font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-d); white-space: nowrap; }
.made-step { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; align-items: center; margin-top: 18px; }
.made-step > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--blush); color: var(--rose-d); grid-row: span 2; align-self: start; margin-top: 2px; }
.made-step > b { font-weight: 500; font-size: 15px; }
.made-opts { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; }
.made-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.made-chip:not(:has(img)) { padding-left: 14px; }
.made-chip img { width: 46px; height: 20px; object-fit: contain; }
.made-chip.is-on { border-color: var(--green); background: rgba(29,87,71,.07); color: var(--green); }
.made-chip:disabled { opacity: .45; cursor: not-allowed; }
.made-sw { width: 58px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: #fff center / 88% auto no-repeat; cursor: pointer; transition: box-shadow .2s, transform .3s var(--ease); }
.made-sw:hover { transform: translateY(-2px); }
.made-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--green); }
#madeInit { width: 120px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font: 500 15px var(--sans); letter-spacing: .25em; text-transform: uppercase; }
#madeInit:focus { outline: none; border-color: var(--green); }
.made-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: var(--cream); }
.made-name { font-family: var(--serif); font-size: 22px; font-weight: 500; }

@media (max-width: 1180px) {
  .mega-in { grid-template-columns: 170px 200px minmax(0, 1fr); }
  .mega-promo { display: none; }
}
@media (max-width: 900px) {
  .mega { display: none !important; }
  .ico-link span:not([data-count]) { display: none; }
  .nav-right a.bag-link { display: inline-flex !important; }
  .made { grid-template-columns: 1fr; padding: 56px var(--pad); }
  .made-stage { border-radius: 20px; aspect-ratio: 14 / 11; }
  .collection-card .media.col-photo { height: 220px; }
  .look-closer > .media { min-height: 420px; }
  .made-result { flex-direction: column; align-items: stretch; }
  .made-result .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
}
.mega-colors a { justify-content: flex-start; border: 0; }
.bag-link [data-count]:empty { display: none; }
.hero4-img img { object-position: 50% 50%; }

.lang-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 30px; min-width: 40px; padding: 0 10px; font: 500 12.5px var(--sans); letter-spacing: .08em; color: var(--ink); cursor: pointer; }
.lang-btn:hover { border-color: var(--rose-d); color: var(--rose-d); }
@media (max-width: 900px) { .nav-right .lang-btn { display: inline-block; } }
.nav-left a, .nav-right a { white-space: nowrap; }
/* house page hero: rose beige instead of green */
.hero-photo { background: var(--beige); color: var(--ink); }
.hero-photo .display { color: var(--ink); }
.hero-photo .eyebrow.gold { color: var(--rose-d); }
@media (min-width: 901px) { .hero-photo::before { background: linear-gradient(90deg, var(--beige), rgba(229,215,209,0)); } }
@media (max-width: 900px) { .hero-photo .hero-content { background: var(--beige); } }
@media (min-width: 901px) and (max-width: 1500px) { .nav-left, .nav-right { gap: 18px; font-size: 14.5px; } .logo-name { font-size: 23px; } }
