/* ============ AYINstudios ============ */
/* The body font draws the shekel sign as a box; borrow a proper one for that single character */
@font-face {
  font-family: "Shekel";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto"), local("Roboto-Regular"), local("Noto Sans"), local("Segoe UI");
  unicode-range: U+20AA;
}
@font-face {
  font-family: "Shekel";
  font-weight: 600 800;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Segoe UI Bold");
  unicode-range: U+20AA;
}
:root {
  --bg: #FFFCE9;
  --ink: #3B2416;        /* dark brown */
  --ink-soft: #7A5B45;
  --line: #3B241633;
  --card: #F4EEDA;
  --sun: #E36B2C;        /* sunset accent, used sparingly */
  --head: "Newsreader", "Times New Roman", serif;
  --body: "Shekel", "Plus Jakarta Sans", Arial, "Helvetica Neue", system-ui, sans-serif;
  --side: 220px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, .head { font-family: var(--head); font-weight: 500; line-height: 1; letter-spacing: -.035em; font-optical-sizing: auto; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* ---------- Sidebar ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 28px;
  z-index: 20;
}
.logo { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; width: fit-content; }
.logo-mark { width: 164px; height: auto; transition: transform .5s var(--ease); }
.nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.nav a, .link-btn { text-decoration: none; text-align: left; width: fit-content; position: relative; }
.nav a::after, .link-btn::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a.active::after { transform: scaleX(1); }
.bag-btn { font-size: 14px; font-weight: 600; text-align: left; display: inline-flex; gap: 8px; align-items: center; width: fit-content; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 12px;
}
.bag-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.side-foot { margin-top: auto; display: flex; flex-direction: column; font-size: 12px; color: var(--ink-soft); }
.menu-btn { display: none; }

/* ---------- Main ---------- */
main { margin-left: var(--side); min-height: 100vh; padding: 28px 40px 60px 20px; outline: none; }
.view { animation: fade .45s var(--ease); }
@keyframes fade { from { transform: translateY(-6px); } }

/* ---------- Home: drop sheet ---------- */
main.is-home { padding: 0; }
.sheet-wrap { height: 100vh; min-height: 560px; display: grid; place-items: center; padding: 2vh 2vw; }
.sheet {
  position: relative; container-type: inline-size;
  width: min(100%, calc((100vh - 4vh) * 1450 / 1192)); aspect-ratio: 1450 / 1192;
}
.sheet > * { position: absolute; }
.sheet-text { left: 4.6%; top: 4.2%; width: 30%; }
.sheet-text h1 { font-size: 5.6cqw; letter-spacing: -.04em; line-height: .95; white-space: nowrap; margin-left: -.039em; /* optical: cancel the S side-bearing */ }
.sheet-sub { font-size: max(11px, 1.55cqw); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 1.3cqw 0 2.2cqw -.052em; }
.sheet-text ul { list-style: none; display: grid; gap: 1.5cqw; font-size: max(12px, 1.5cqw); line-height: 1.45; max-width: max(165px, 21cqw); }
.sheet-text li { padding-left: 1.2cqw; position: relative; }
.sheet-text li::before { content: "•"; position: absolute; left: -.108em; }
.sheet-front { left: 30%; top: 5%; width: 66%; }
.sheet-back { left: 4.1%; top: 51%; width: 38.4%; }
.sheet-front img, .sheet-back img {
  width: 100%; transition: transform .6s var(--ease);
  /* soft studio shadow: a tight contact shadow plus a wide, faint ambient one, tinted with the brand brown */
  filter: drop-shadow(0 1px 1.5px rgb(59 36 22 / .14)) drop-shadow(0 .9cqw 1.6cqw rgb(59 36 22 / .10));
}
.sheet-shop {
  left: 53.5%; top: 78.6%; width: 33cqw; height: 15.9cqw;
  display: grid; place-items: center; text-decoration: none; color: var(--ink);
  font-family: var(--head); font-weight: 500; letter-spacing: -.035em; font-size: 3.4cqw; line-height: 1;
  transition: color .3s, transform .3s var(--ease);
}
.sheet-shop span { position: relative; }
.shop-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shop-ring ellipse { fill: transparent; stroke: var(--ink); stroke-width: 2.5px; transition: fill .3s; }
@media (hover: hover) {
  .sheet-shop:hover { color: var(--bg); transform: translateY(-.3cqw); }
  .sheet-shop:hover .shop-ring ellipse { fill: var(--ink); }
}
.sheet-shop:active .shop-ring ellipse { fill: var(--ink); }
.sheet-shop:active { color: var(--bg); }

.countdown { display: flex; gap: 14px; margin: 18px 0 26px; }
.countdown div { text-align: center; }
.countdown b { display: block; font-family: var(--head); font-weight: 500; font-size: 40px; line-height: 1; }
.countdown small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 15px 28px; border-radius: 99px;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--ink); transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.drop-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.drop-note .link-btn { color: var(--ink); }
.btn.is-off { opacity: .6; pointer-events: none; }
.drop-note .countdown-inline { display: inline; margin: 0; color: var(--ink); font-weight: 600; }
.btn-full { width: 100%; }

/* ---------- Home: coming soon (drop not open yet) ---------- */
.soon-wrap { position: relative; height: 100vh; min-height: 560px; display: grid; place-items: center; overflow: hidden; }
.soon-stage { position: absolute; inset: 3vh 3vw; display: block; }
.soon-glitch { width: 100%; height: 100%; display: block; opacity: .38; image-rendering: pixelated; }
.soon-center { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; pointer-events: none; padding: 0 16px; }
.soon-center > * { pointer-events: auto; }
.soon-title { font-size: clamp(64px, 11vw, 168px); line-height: .86; letter-spacing: -.045em; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-top: 6px; }
.gallery { position: sticky; top: 28px; }
.gallery-main {
  position: relative; background: #E9E7E2; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / .92;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center; font-size: 18px; box-shadow: 0 2px 10px #3b241622;
  transition: transform .2s var(--ease);
}
.arrow.prev { left: 14px; } .arrow.next { right: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button {
  width: 76px; height: 68px; border-radius: 12px; overflow: hidden; background: #E9E7E2;
  border: 1.5px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on { border-color: var(--ink); opacity: 1; }

.info .crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.info h1 { font-size: clamp(40px, 4.6vw, 64px); margin: 12px 0 6px; }
.info .price { font-family: var(--head); font-weight: 500; letter-spacing: -.02em; font-size: 30px; margin-bottom: 26px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.sizes { display: flex; gap: 10px; margin-bottom: 22px; }
.sizes button {
  width: 58px; height: 50px; border: 1.5px solid var(--ink); border-radius: 14px; font-weight: 700;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.sizes button.on { background: var(--ink); color: var(--bg); }
.sizes button.out { opacity: .35; text-decoration: line-through; pointer-events: none; }
.sizes.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bullets { list-style: none; margin: 30px 0 22px; display: grid; gap: 4px; }
.bullets li::before { content: "✦"; color: var(--sun); margin-right: 10px; font-size: 12px; }
details { border-top: 1.5px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1.5px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details ul { margin: 10px 0 0 18px; color: var(--ink-soft); font-size: 14px; }
details p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.swatches { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- Page title ---------- */
.page-title { font-size: clamp(48px, 6vw, 88px); margin: 10px 0 30px; }

/* ---------- Support ---------- */
.support { max-width: 640px; }
.support details p { color: var(--ink); }

/* ---------- Drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: #3b241640; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg);
  z-index: 50; transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; border-left: 1.5px solid var(--ink);
}
body.bag-open .drawer { transform: none; }
body.bag-open .scrim, body.modal-open .scrim, body.menu-open .scrim { opacity: 1; pointer-events: auto; }
body.bag-open, body.modal-open, body.menu-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1.5px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.x { font-size: 18px; width: 36px; height: 36px; border-radius: 50%; transition: background .2s; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 24px; }
.empty-bag { text-align: center; padding: 60px 0; color: var(--ink-soft); }
.empty-bag .head { font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: #E9E7E2; }
.line-item h4 { font-size: 14px; }
.line-item small { color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 4px; font-size: 13px; }
.qty button { width: 28px; height: 28px; font-weight: 700; }
.remove { font-size: 12px; text-decoration: underline; color: var(--ink-soft); }
.drawer-foot { padding: 20px 24px 26px; border-top: 1.5px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 16px; }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 6px 0 16px; }

.modal { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; z-index: 60; pointer-events: none; padding: 16px; }
.modal-card {
  position: relative; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 28px;
  padding: 40px 28px 30px; max-width: 440px; width: 100%; text-align: center;
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .3s, transform .35s var(--ease);
}
body.modal-open .modal { pointer-events: auto; }
body.modal-open .modal-card { opacity: 1; transform: none; }
.modal-card .x { position: absolute; top: 14px; right: 14px; }
.modal-card h2 { font-size: 38px; margin-bottom: 10px; }
.modal-card p { color: var(--ink-soft); margin-bottom: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0; background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 99px; font-size: 14px; font-weight: 600; z-index: 70;
  opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* Hover effects only on devices with a real pointer, so taps on phones don't leave them stuck */
@media (hover: hover) {
  .logo:hover .logo-mark { transform: rotate(-4deg) scale(1.04); }
  .sheet-front:hover img, .sheet-back:hover img { transform: translateY(-.6cqw) rotate(-.6deg); }
  .btn:hover { transform: translateY(-2px); background: var(--sun); border-color: var(--sun); }
  .gallery-main .arrow:hover { transform: scale(1.08); }
  .sizes button:hover { transform: translateY(-2px); }
  .x:hover { background: var(--card); }
  .nav a:hover::after, .link-btn:hover::after { transform: scaleX(1); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --side: 0px; }
  .side {
    position: sticky; inset: auto; top: 0; width: 100%; flex-direction: row; align-items: center;
    padding: 12px 16px; gap: 14px; background: var(--bg); border-bottom: 1.5px solid var(--ink);
  }
  .logo { flex-direction: row; gap: 9px; }
  .logo-mark { width: 92px; }
  .menu-btn { display: block; margin-left: auto; font-size: 14px; font-weight: 600; }
  .bag-btn { order: 3; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 18px 16px 22px;
    border-bottom: 1.5px solid var(--ink); font-size: 22px; gap: 10px; display: none;
  }
  .nav a, .nav .link-btn { font-family: var(--head); font-weight: 500; letter-spacing: -.02em; }
  body.menu-open .nav { display: flex; }
  .side-foot { display: none; }
  main { padding: 20px 16px 48px; }
  .side { z-index: 45; top: env(safe-area-inset-top, 0px); }
  .modal-card h2 { font-size: 32px; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px); text-align: center; }
  .drawer-foot { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .product { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .sheet-wrap { height: auto; min-height: 0; display: block; padding: 22px 16px 40px; }
  .sheet { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: auto; display: flex; flex-direction: column; }
  .sheet > * { position: relative; inset: auto; width: auto; }
  .sheet-text { order: 1; }
  .sheet-text h1 { font-size: min(13vw, 80px); font-size: 15cqw; }
  .sheet-sub { font-size: min(3.3vw, 16px); font-size: 3.6cqw; margin: 2.5cqw 0 4cqw -.052em; }
  .sheet-text ul { font-size: min(3.8vw, 20px); font-size: 4cqw; gap: 2cqw; max-width: none; }
  .sheet-text li { padding-left: 3.5cqw; }
  .sheet-front { order: 2; margin: 6cqw -2cqw 0; }
  .sheet-shop { order: 3; position: relative; width: min(72vw, 420px); height: min(34.6vw, 202px); font-size: min(8vw, 46px); width: 78cqw; height: 37.5cqw; font-size: 8.5cqw; margin: 24px auto 0; }
  main.is-home { min-height: 0; }
  .soon-wrap { height: calc(100svh - 70px); min-height: 520px; }
  .soon-stage { inset: 12px 0; }
  .sheet-back { order: 4; width: 62%; margin: 8cqw auto 0; }
  .gallery { position: static; }
  .sizes button { flex: 1; width: auto; }
  .info .btn { width: 100%; }
}

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