/* Rania Berri: menu, themes, 3D wardrobe, my choices. Transform/opacity only for motion. */

/* ---------------------------------------------------------------- menu */
.bar { gap: 10px; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--line); }
.nav a { text-decoration: none; padding: 8px 16px; border-radius: 999px; font: 500 .95rem var(--sans); color: var(--taupe-d); transition: background .3s, color .3s; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.9); }
.nav a.on { background: var(--taupe-d); color: #fff; }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; row-gap: 6px; }
  .nav { order: 3; width: 100%; justify-content: space-between; padding: 3px; }
  .nav a { flex: 1; text-align: center; padding: 7px 4px; font-size: .86rem; }
  html[lang=ar] .nav a { font-size: .92rem; }
  .hero { padding-top: 130px; }
}
.btn svg { flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- themes */
.th-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .th-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1050px) { .th-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.th-card { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -30px rgba(95,81,73,.7), inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .7s var(--ease); }
.js .th-card { opacity: 0; transform: translate3d(0, 24px, 0); transition-delay: calc(var(--d, 0) * 70ms); }
.js .th-card.in { opacity: 1; transform: none; }
@media (hover: hover) { .js .th-card.in:hover { transform: translateY(-6px) rotateX(2deg); box-shadow: var(--shadow); } }
.th-img { display: block; width: 100%; padding: 0; border: 0; background: var(--rose-l); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.th-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.th-card:hover .th-img img { transform: scale(1.06); }
.th-foot { padding: 12px 14px 14px; display: grid; gap: 10px; }
.th-foot h3 { font: 500 1.02rem/1.3 var(--sans); color: var(--taupe-d); margin: 0; min-height: 2.6em; }
.th-pick { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 .9rem var(--sans); background: var(--cream); color: var(--taupe-d); box-shadow: inset 0 0 0 1.5px var(--rose); transition: background .3s, color .3s, transform .2s; }
.th-pick:active { transform: scale(.96); }
.th-pick .ok { display: none; }
.th-pick.on { background: var(--sage-d); color: #fff; box-shadow: none; }
.th-pick.on .ok { display: inline; }
.more-wrap { margin-top: 26px; display: flex; }

/* ---------------------------------------------------------------- wardrobe */
.sec-wd { max-width: 1100px; }
.wd-top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-bottom: 14px; }
.wd-theme { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--paper); border-radius: 999px; padding: 6px 18px 6px 6px;
  box-shadow: inset 0 0 0 1.5px var(--line); min-height: 54px; max-width: 100%; }
html[dir=rtl] .wd-theme { padding: 6px 6px 6px 18px; }
.wd-theme-pic { display: flex; flex-shrink: 0; min-width: 44px; height: 44px; border-radius: 22px; background: linear-gradient(140deg, var(--rose-l), var(--sage-l)); }
.wd-theme.set .wd-theme-pic { background: none; }
.wd-theme-pic i { width: 44px; height: 44px; border-radius: 50%; background: center / cover; box-shadow: 0 0 0 2px #fff; }
.wd-theme-pic i + i { margin-inline-start: -16px; }
.wd-theme small { display: block; font-size: .76rem; color: var(--taupe); line-height: 1.2; }
.wd-theme b { display: block; font-weight: 500; color: var(--taupe-d); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.wd-change { font-size: .8rem; color: var(--rose-d); text-decoration: underline; margin-inline-start: 4px; }
.wd-theme:not(.set) { box-shadow: inset 0 0 0 1.5px var(--rose); animation: pulse 2.6s infinite; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 0 20px; min-height: 46px; border-radius: 999px; font: 500 1rem var(--sans); color: var(--taupe-d); transition: background .3s, color .3s; }
.seg button[aria-selected=true], .seg button[aria-pressed=true] { background: var(--rose); color: #fff; box-shadow: 0 8px 18px -10px rgba(191,139,131,.9); }
.seg-sm button { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.wd-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-bottom: 22px; }
.wd-filters.mum .seg, .wd-filters.mum .sel { display: none; }
.sel { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; color: var(--taupe); }
html[dir=rtl] .sel { padding: 4px 16px 4px 6px; }
.sel select { border: 0; background: var(--cream); border-radius: 999px; min-height: 36px; padding: 0 12px; font: 500 .95rem var(--sans); color: var(--taupe-d); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .chips { flex-wrap: wrap; justify-content: center; } }
.chips button { flex: 0 0 auto; border: 0; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.75);
  font: 400 .9rem var(--sans); color: var(--taupe-d); box-shadow: inset 0 0 0 1px var(--line); }
.chips button small { opacity: .6; margin-inline-start: 2px; }
.chips button[aria-pressed=true] { background: var(--taupe-d); color: #fff; box-shadow: none; }

/* the cabinet */
.closet { position: relative; max-width: 980px; margin: 0 auto; perspective: 1600px; padding: 0 6px; }
.closet-crown { height: 26px; margin: 0 -6px; border-radius: 16px 16px 4px 4px; position: relative; z-index: 3;
  background: linear-gradient(180deg, #f6eee5, #e6d6c5 70%, #d9c6b2); box-shadow: 0 10px 18px -10px rgba(95,81,73,.55), inset 0 1px 0 #fff; }
.closet-body { position: relative; padding: 14px 14px 0; background: linear-gradient(90deg, #e9dccd, #f1e7db 12%, #f1e7db 88%, #e3d4c3);
  box-shadow: 0 40px 70px -40px rgba(95,81,73,.8); transform-style: preserve-3d; }
.closet-in { position: relative; height: 540px; overflow: hidden; border-radius: 4px 4px 0 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,250,240,.95), rgba(255,250,240,0) 60%),
    repeating-linear-gradient(90deg, rgba(140,123,112,.06) 0 1px, transparent 1px 110px), linear-gradient(180deg, #f9f2ea, #eadccc);
  box-shadow: inset 0 26px 40px -24px rgba(95,81,73,.55), inset 14px 0 30px -18px rgba(95,81,73,.45), inset -14px 0 30px -18px rgba(95,81,73,.45); }
@media (max-width: 600px) { .closet-in { height: 430px; } .closet-body { padding: 10px 10px 0; } }
.rod { position: absolute; top: 44px; left: 2%; right: 2%; height: 10px; border-radius: 6px; z-index: 1;
  background: linear-gradient(180deg, #fbf0dc, #d7b98d 45%, #9c7f57); box-shadow: 0 6px 10px -4px rgba(95,81,73,.55); }
.shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: 2;
  background: linear-gradient(180deg, #e4d3c0, #f3e9de 25%, #e7d8c7); box-shadow: 0 -12px 20px -12px rgba(95,81,73,.45), inset 0 1px 0 #fff; }
.closet-feet { display: block; height: 16px; margin: 0 6%; background:
  radial-gradient(circle at 20px 0, #cdb69e 0 13px, transparent 14px) left / 40px 16px no-repeat,
  radial-gradient(circle at 20px 0, #cdb69e 0 13px, transparent 14px) right / 40px 16px no-repeat; }

/* doors swing open when the wardrobe scrolls into view */
.door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; pointer-events: none; backface-visibility: hidden;
  background: linear-gradient(90deg, #efe3d5, #f7efe6 50%, #ebddcd); box-shadow: inset 0 0 0 10px #f3e9dd, inset 0 0 0 11px rgba(140,123,112,.25), inset 0 0 0 22px #f3e9dd, inset 0 0 0 23px rgba(140,123,112,.18);
  transition: transform 1.8s cubic-bezier(.3,.7,.2,1) .15s, opacity .6s 1.6s; }
.door-l { left: 0; transform-origin: 0 50%; }
.door-r { right: 0; transform-origin: 100% 50%; }
.door i { position: absolute; top: 50%; width: 10px; height: 46px; margin-top: -23px; border-radius: 6px; background: linear-gradient(90deg, #fbf0dc, #c7a676); box-shadow: 0 3px 6px rgba(95,81,73,.4); }
.door-l i { right: 16px; }
.door-r i { left: 16px; }
.closet.open .door-l { transform: rotateY(-104deg); }
.closet.open .door-r { transform: rotateY(104deg); }
@media (max-width: 600px) { .closet.open .door { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .door { display: none; } }
.js .closet:not(.open) .door { opacity: 1; }

/* the rail of hangers */
.rail { position: absolute; inset: 30px 0 34px; z-index: 2; display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  --hw: 290px; padding-inline: calc(50% - var(--hw) / 2); gap: 0; outline: none; }
.rail::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .rail { --hw: 62vw; } }
.hanger { flex: 0 0 var(--hw); scroll-snap-align: center; position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  transform: rotateY(calc(var(--o, 0) * -26deg)) scale(calc(1 - var(--a, 0) * .13)); opacity: calc(1 - var(--a, 0) * .2);
  transition: transform .25s ease-out, opacity .25s; -webkit-tap-highlight-color: transparent; }
.hook { width: 62%; height: auto; color: #b39167; position: relative; z-index: 2; filter: drop-shadow(0 2px 2px rgba(95,81,73,.3)); flex-shrink: 0; }
.garment { position: relative; flex: 1; min-height: 0; width: 100%; margin-top: -8px; display: flex; justify-content: center; align-items: flex-start;
  transform-origin: 50% 0; transition: transform .26s ease-in; }
.garment img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.garment img.cut { max-width: 92%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(80,60,50,.26)); }
.garment img.framed { width: 84%; max-height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px 12px 18px 18px; background: #fff;
  border: 6px solid #fff; box-shadow: 0 22px 34px -18px rgba(80,60,50,.55); }
.garment img.framed + .two, .garment .two { position: absolute; top: 10px; inset-inline-end: 12%; min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--taupe-d); font-size: .78rem; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.garment.flip { transform: rotateY(90deg); }
.garment.sway { animation: sway 1.9s cubic-bezier(.3,.6,.3,1); }
@keyframes sway { 0% { rotate: 0deg; } 18% { rotate: 4.5deg; } 40% { rotate: -3deg; } 62% { rotate: 1.6deg; } 82% { rotate: -.6deg; } 100% { rotate: 0deg; } }
.hanger .tag { position: absolute; top: 46px; inset-inline-start: 16%; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-d); color: #fff; font-size: 1rem; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); transform: scale(0); transition: transform .4s var(--ease); }
.hanger.picked .tag { transform: scale(1); }
.rail-empty { margin: auto; padding: 30px; text-align: center; color: var(--taupe); max-width: 420px; }
.rail-nav { position: absolute; top: 50%; z-index: 4; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--taupe-d); font-size: 1.8rem; line-height: 1; box-shadow: 0 8px 20px -10px rgba(95,81,73,.7); }
.rail-nav.prev { inset-inline-start: 12px; }
.rail-nav.next { inset-inline-end: 12px; }
html[dir=rtl] .rail-nav { transform: scaleX(-1); }
@media (hover: none) { .rail-nav { width: 38px; height: 38px; margin-top: -19px; font-size: 1.5rem; opacity: .85; } }
.rail-count { margin: 12px 0 0; font-size: .9rem; }

.wd-card { max-width: 760px; margin: 14px auto 0; min-height: 120px; }
.wd-card-in { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 26px;
  padding: 22px 24px; box-shadow: var(--shadow); animation: fadeIn .45s var(--ease); }
.wd-card h3 { margin: 0 0 6px; font-size: 1.6rem; }
html[lang=ar] .wd-card h3 { font-size: 1.25rem; }
.wd-card p { margin: 0 0 4px; }
.wd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--taupe-d); }
.wd-meta .code { color: var(--taupe); font-size: .85rem; opacity: .8; }
.wd-act { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .wd-act { width: 100%; } .wd-act .btn { flex: 1; } }

/* ---------------------------------------------------------------- my choices tray */
.tray { position: fixed; z-index: 60; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(640px, calc(100% - 20px));
  animation: trayIn .6s var(--ease); }
@keyframes trayIn { from { opacity: 0; transform: translate(-50%, 30px); } }
.tray-in { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(255,253,250,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -16px rgba(95,81,73,.55), inset 0 0 0 1px var(--line); }
html[dir=rtl] .tray-in { padding: 8px 16px 8px 8px; }
.tray-t { font-weight: 500; color: var(--taupe-d); font-size: .9rem; white-space: nowrap; }
.tray-items { display: flex; gap: 6px; flex: 1; min-width: 0; }
.ti { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ti img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--rose-l); box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.12); flex-shrink: 0; }
.ti small { font-size: .74rem; color: var(--taupe); white-space: nowrap; }
.tray-x { border: 0; background: transparent; color: var(--taupe); font-size: 1rem; cursor: pointer; padding: 8px; }
@media (max-width: 640px) { .tray-t, .ti small { display: none; } .tray .btn span { font-size: .86rem; } }
body.has-tray .foot { padding-bottom: 110px; }

/* ---------------------------------------------------------------- zoom */
.zoom { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(60,45,38,.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .35s var(--ease); }
.zoom-in { position: relative; width: min(920px, 100%); max-height: 92svh; overflow: auto; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); }
.zoom-in img { width: 100%; height: auto; }
.zoom-in img + img { border-top: 6px solid var(--paper); }
.zoom-foot { padding: 18px 22px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.zoom-foot h3 { margin: 0; }
.zoom-x { position: sticky; top: 10px; float: right; margin: 10px 10px -56px 0; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.95); font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
html[dir=rtl] .zoom-x { float: left; margin: 10px 0 -56px 10px; }

/* ---------------------------------------------------------------- quiz themes + booking summary */
.q-pics { align-items: start; }
.q-theme { display: grid; gap: 6px; justify-items: center; }
.q-theme .th-img { border-radius: 16px; aspect-ratio: 4 / 5; }
.q-theme small { font-size: .85rem; line-height: 1.3; color: var(--taupe-d); }
.th-pick.mini { min-height: 36px; font-size: .8rem; padding: 0 10px; }
.look { background: var(--cream); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.look b { color: var(--taupe-d); }
.look ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: .92rem; }

/* ---------------------------------------------------------------- logo: icon + classic signature wordmark */
.brand { gap: 12px; }
.brand img { height: 50px; width: 50px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark b { font: 400 30px/1 "Pinyon Script", "Cormorant Garamond", cursive; color: var(--taupe-d); padding: 0 .08em; }
.wordmark small { display: flex; align-items: center; gap: .55em; margin-top: 5px; font: 600 8.5px/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .38em; padding-inline-start: .38em; color: var(--rose-d); }
.wordmark small::before, .wordmark small::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .8; }
@media (max-width: 480px) { .brand img { height: 40px; width: 40px; } .wordmark b { font-size: 25px; } .wordmark small { font-size: 7.5px; } }
.foot-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-mark img { width: 110px; height: 110px; }
.foot-mark .wordmark b { font-size: 44px; }
.foot-mark .wordmark small { font-size: 11px; margin-top: 14px; }
.foot-mark .wordmark small::before, .foot-mark .wordmark small::after { width: 22px; }

/* ---------------------------------------------------------------- several themes + small messages */
.th-max { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 10px 0 0; padding: 8px 16px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--taupe-d); font-size: .92rem; }
.th-max span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: #fff; font-size: .78rem; font-weight: 500; }
.tray-n { font-size: .78rem; color: var(--taupe); white-space: nowrap; margin-inline-start: 4px; align-self: center; }
.tray-items { overflow: hidden; }
.ti + .ti { margin-inline-start: -10px; }
.site-toast { position: fixed; left: 50%; bottom: 92px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  background: var(--taupe-d); color: #fff; padding: 12px 20px; border-radius: 16px; font-size: .95rem; text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); transition: opacity .35s, transform .35s var(--ease); }
.site-toast.on { opacity: 1; transform: translate(-50%, 0); }
.wd-theme b { max-width: 60vw; }
.ti { flex-shrink: 0; }
.ti img { width: 34px; height: 34px; }
@media (max-width: 640px) { .tray-n { display: none; } }
.socials { display: flex; gap: 10px; }
html[dir=rtl] .socials { justify-content: flex-end; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--taupe-d); transition: background .3s, color .3s; }
.socials a:hover { background: var(--rose); color: #fff; }
