/* =========================================================
   SOLITAIRE 2 (2026-11-23, the user: "make one like Hoddie but for perfumes, don't use the video"). Loaded after styles.css
   on every page: the search pill, and the home page slider (index.html + js/solitaire.js): one big bottle in the middle,
   the page in that bottle's colour, a frosted card under it. The logo is never recoloured: on the home page it sits on a
   light frosted pill.
   ========================================================= */

:root { --sl-bg: #C9B08C; --sl-deep: #9B8269; --sl-glass: rgba(255,255,255,.2); --sl-glass-line: rgba(255,255,255,.4);
  --sl-ink: #1B1416; --sl-ease: cubic-bezier(.65, 0, .2, 1); }

/* ---------- every page: the search pill (fixed width, so nothing in the header row moves with the language) ---------- */
.icon-btn.sl-search { width: 150px; height: 38px; flex: none; justify-content: flex-start; gap: 8px; padding: 0 14px 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(27,20,22,.1); transition: background .2s, border-color .2s; }
.icon-btn.sl-search svg { width: 17px; height: 17px; flex: none; }
.sl-search-text { min-width: 0; font-size: 13px; color: rgba(27,20,22,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .icon-btn.sl-search:hover { background: rgba(255,255,255,.85); } }
@media (min-width: 720px) { .icon-btn.sl-search { width: 250px; } }
@media (max-width: 359px) { .icon-btn.sl-search { width: 118px; } }

/* ======================= HOME: the bottle slider ======================= */
body[data-page="home"] { background-color: var(--sl-deep); transition: background-color .9s ease; }
body[data-page="home"] .site-footer { margin-top: 0; }

/* the header floats on the frosted panel. The body is a flex column (styles.css), where an absolute header would ignore
   the "Opening soon" bar above it; so it stays in the flow and a negative margin lets the panel slide up under it. */
body[data-page="home"]:not(.menu-open) .site-header { position: relative; margin-bottom: calc(-1 * var(--header-h) - 6px); background: transparent; box-shadow: none; color: #fff; }
[data-head="light"] body[data-page="home"]:not(.menu-open) .site-header { background: transparent; box-shadow: none; color: #fff; }
body[data-page="home"] .header-inner { max-width: none; padding-left: 20px; padding-right: 20px; margin-top: 6px; }
body[data-page="home"] .desktop-nav { display: none !important; }
body[data-page="home"] .logo { margin-inline-end: auto; }
/* the logo as it is (maroon), on a light frosted pill */
body[data-page="home"]:not(.menu-open) .logo { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
body[data-page="home"]:not(.menu-open) .logo img { height: 36px; }
body[data-page="home"]:not(.menu-open) .icon-btn.sl-search { background: var(--sl-glass); border-color: var(--sl-glass-line); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body[data-page="home"]:not(.menu-open) .sl-search-text { color: rgba(255,255,255,.9); }
body[data-page="home"]:not(.menu-open) .icon-btn { color: #fff; }
[data-head="light"] body[data-page="home"]:not(.menu-open) .menu-btn { border-color: var(--sl-glass-line); background: var(--sl-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[data-head="light"] body[data-page="home"]:not(.menu-open) .menu-btn i { background: #fff; }
[data-head="light"] body[data-page="home"] .bottom-nav { background: var(--sl-deep); box-shadow: 0 -1px 0 rgba(255,255,255,.14); transition: background-color .9s ease; }
[data-head="light"] body[data-page="home"] .bottom-nav a { color: rgba(255,255,255,.62); }
[data-head="light"] body[data-page="home"] .bottom-nav a[aria-current="page"] { color: #fff; }

/* the frame: the deep colour around a lighter frosted panel */
.sl-stage { padding: 8px; display: flex; min-height: calc(100svh - var(--bottomnav-h) - var(--safe-b)); outline: none; }
#pauseBar ~ main .sl-stage { min-height: calc(100svh - var(--bottomnav-h) - var(--safe-b) - 34px); }
.sl-glass { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  padding-top: calc(var(--header-h) + 2px); background: var(--sl-bg); transition: background-color .9s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.sl-glass::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 40%, rgba(255,255,255,.26), rgba(255,255,255,0) 62%); }
/* a soft floor the bottles stand on */
.sl-glass::after { content: ""; position: absolute; left: 50%; top: 58%; width: min(520px, 90%); height: 60px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.14), rgba(0,0,0,0)); filter: blur(4px); }
/* the big word behind the bottles */
.sl-word { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 4%); text-align: center; pointer-events: none; user-select: none;
  font-family: var(--display, "Cormorant Garamond", serif); font-weight: 600; letter-spacing: .14em; line-height: 1; white-space: nowrap;
  font-size: clamp(54px, 15vw, 210px); color: rgba(255,255,255,.2); }

/* the bottles: absolutely placed; --d is the place from the middle (-3 .. 3), set by solitaire.js. Always left to right. */
.sl-ring { --w: min(74vw, 320px, calc((100svh - 400px) / 1.2)); --gap: 48vw;
  position: relative; z-index: 1; flex: 1; min-height: 250px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sl-item { --s: .56; position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 1000 / 1200; padding: 0; margin: 0; border: 0;
  background: none; border-radius: 18px; cursor: pointer; z-index: 1; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%) translateX(calc(var(--d, 0) * var(--gap))) scale(var(--s));
  transition: transform .9s var(--sl-ease), opacity .6s ease, filter .6s ease; }
.sl-img { display: block; width: 100%; height: 100%; }
.sl-img img { width: 100%; height: 100%; object-fit: contain; padding: 0 !important; background: none !important; pointer-events: none;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,.22)); -webkit-user-drag: none; }
.sl-img.photo img { object-fit: cover; border-radius: 18px; }
.sl-item[data-pos="0"] { --s: 1; z-index: 3; cursor: zoom-in; }
.sl-item[data-pos="-1"], .sl-item[data-pos="1"] { --s: .56; z-index: 2; }
.sl-item[data-pos="-2"], .sl-item[data-pos="2"] { --s: .44; z-index: 1; opacity: .85; }
.sl-item[data-pos="far"] { --s: .4; opacity: 0; pointer-events: none; }
@media (hover: hover) { .sl-item[data-pos="-1"]:hover, .sl-item[data-pos="1"]:hover { filter: brightness(1.06); --s: .6; } }
.sl-item:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
/* the name and price under a side bottle (big type: the bottle is shown at about half size) */
.sl-label { position: absolute; left: -20%; right: -20%; top: 101%; display: grid; gap: 2px; text-align: center; color: #fff; opacity: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.2); transition: opacity .5s ease; pointer-events: none; }
.sl-label b { font-family: var(--display, "Cormorant Garamond", serif); font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: .04em; }
.sl-label span { font-size: 22px; font-weight: 500; opacity: .92; }

/* the frosted card under the middle bottle */
.sl-card { position: relative; z-index: 4; margin: 0 12px 12px; padding: 14px 14px 14px 16px; border-radius: 18px; color: var(--sl-ink);
  background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 10px 30px rgba(0,0,0,.08); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.sl-card-text { min-width: 0; }
.sl-kind { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(27,20,22,.6); }
html[lang="ar"] .sl-kind { letter-spacing: 0; font-size: 12.5px; }
.sl-name { display: block; margin-top: 2px; font-family: var(--display, "Cormorant Garamond", serif); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--sl-ink); }
.sl-short { margin: 4px 0 6px; font-size: 12.5px; line-height: 1.45; color: rgba(27,20,22,.66);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-price { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.sl-price b { color: var(--sl-ink); font-weight: 600; }
.sl-offer { display: inline-block; font-size: 11.5px; font-weight: 600; color: #fff; background: #761C2C; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.sl-offer[hidden] { display: none; }
.sl-card-btns { display: grid; justify-items: end; gap: 8px; }
.sl-add, .sl-order { border: 0; border-radius: 999px; font-weight: 500; transition: transform .15s, background .2s; white-space: nowrap; cursor: pointer; }
.sl-add { height: 32px; padding: 0 16px; background: rgba(27,20,22,.72); color: #fff; font-size: 12.5px; letter-spacing: .02em; }
.sl-order { height: 42px; padding: 0 22px; background: #761C2C; color: #fff; font-size: 15px; }
.sl-add:active, .sl-order:active { transform: scale(.96); }
.sl-add:disabled, .sl-order:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: hover) { .sl-add:hover:not(:disabled) { background: #1B1416; } .sl-order:hover:not(:disabled) { background: #5E1522; } }
.sl-card.swap .sl-card-text { animation: slIn .6s var(--sl-ease) both; }
@keyframes slIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the round social buttons (computers: bottom corner; phones: the footer has them) */
.sl-social { display: none; }
.sl-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sl-glass);
  border: 1px solid var(--sl-glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .2s; }
.sl-social a svg { width: 19px; height: 19px; }
@media (hover: hover) { .sl-social a:hover { background: rgba(255,255,255,.34); transform: translateY(-2px); } }

/* the owner's offers under the slider, on the page's deep colour */
body[data-page="home"] .sl-offers { padding-top: 28px; padding-bottom: 34px; color: #fff; }
body[data-page="home"] .sl-offers .offers-head h2 { color: #fff; }
body[data-page="home"] .sl-offers .offers-free { color: #fff; }

@media (min-width: 720px) {
  .sl-stage { padding: 22px; min-height: 100svh; }
  #pauseBar ~ main .sl-stage { min-height: calc(100svh - 34px); }
  body[data-page="home"] .header-inner { padding-left: 44px; padding-right: 44px; margin-top: 16px; }
  body[data-page="home"]:not(.menu-open) .site-header { margin-bottom: calc(-1 * var(--header-h) - 16px); }
  body[data-page="home"]:not(.menu-open) .logo img { height: 40px; }
  .sl-glass { border-radius: 26px; padding-top: calc(var(--header-h) + 10px); }
  .sl-ring { --w: min(30vw, calc((100svh - 340px) / 1.2), 430px); --gap: min(25vw, 380px); min-height: 360px; }
  .sl-item[data-pos="-1"] .sl-label, .sl-item[data-pos="1"] .sl-label { opacity: 1; }
  .sl-card { width: min(490px, calc(100% - 48px)); margin: 4px auto 30px; padding: 16px 16px 16px 20px; }
  .sl-short { -webkit-line-clamp: 3; }
  .sl-social { display: flex; gap: 10px; position: absolute; right: 26px; bottom: 26px; z-index: 4; }
  html[dir="rtl"] .sl-social { right: auto; left: 26px; }
}
@media (min-width: 1100px) { .sl-ring { --gap: min(24vw, 400px); } }

@media (prefers-reduced-motion: reduce) {
  .sl-item, .sl-glass, body[data-page="home"] { transition: none; }
  .sl-card.swap .sl-card-text { animation: none; }
}
