/* ============================================================
   RAW INPUT theme — the catalogue wears the studio's colours,
   not Ejder Sofrası's. Same components, different skin.
   ============================================================ */
body.ris-page {
  --es-vellum:      #FFFCF6;
  --es-vellum-2:    #FBF1E2;
  --es-vellum-3:    #F5E7D2;
  --es-cocoa:       #2B2118;
  --es-cocoa-soft:  rgba(43,33,24,.62);
  --es-ember:       #C2571A;
  --es-ember-deep:  #A0430F;
  --es-tangerine:   #E8791F;
  --es-brass:       #C08A44;
  --es-brass-lt:    #F5C99B;
  --es-dusk:        #26193A;

  --es-glass:      rgba(255,252,246,.56);
  --es-glass-deep: rgba(255,252,246,.76);
  --es-glass-edge: rgba(120,88,56,.20);

  --es-shadow-sm: 0 1px 2px rgba(37,22,9,.10), 0 4px 14px rgba(37,22,9,.08);
  --es-shadow-md: 0 2px 6px rgba(37,22,9,.12), 0 16px 40px rgba(37,22,9,.14);
  --es-shadow-lg: 0 30px 70px rgba(38,25,58,.26);
  --es-lift: 0 1px 2px rgba(42,28,20,.08), 0 10px 26px rgba(42,28,20,.10);
  --es-lift-hi: 0 2px 5px rgba(42,28,20,.10), 0 16px 36px rgba(42,28,20,.15);

  --es-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  background:
    radial-gradient(1100px 620px at 84% -10%, rgba(232,121,31,.07), transparent 60%),
    radial-gradient(760px 520px at 2% 6%, rgba(200,190,180,.14), transparent 62%),
    #FDFCFA;
}
body.ris-page .es-catalog-title,
body.ris-page .es-card-name,
body.ris-page .es-section-title,
body.ris-page .es-drawer-head h2,
body.ris-page .es-modal-card h2 {
  font-weight: 800; letter-spacing: -.02em; text-transform: none;
}
body.ris-page .es-catalog-title { font-size: clamp(32px, 4.6vw, 54px); }
body.ris-page .es-card-name { font-size: 16px; }
body.ris-page .es-crumb-txt {
  font-family: var(--es-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; color: var(--es-cocoa-soft);
}
body.ris-page .es-brand img,
body.ris-page .es-footer-in img { filter: none; }

/* the catalogue carries no Ejder Sofrası fantasy icons — these are
   plain inline SVGs instead, so they need explicit sizing/stroke */
body.ris-page svg.es-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; }
body.ris-page svg.es-search-ico { width: 18px; height: 18px; stroke: var(--es-cocoa-soft); fill: none; }
body.ris-page svg.es-modal-ico { width: 34px; height: 34px; stroke: var(--es-ember); fill: none; margin-bottom: 10px; }
body.ris-page svg.es-burn-ico { width: 16px; height: 16px; stroke: currentColor; fill: none; }
body.ris-page .es-header {
  background: rgba(255,252,246,.86);
  border-bottom: 1px solid rgba(120,88,56,.16);
  box-shadow: 0 10px 30px rgba(60,40,20,.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.ris-page .es-header { background: #FFFCF6; }
}
/* light scrim on light pages — the dark one would read as a smudge */
body.ris-page .es-header::after {
  background: linear-gradient(180deg, rgba(255,252,246,.6), transparent);
}
body.ris-page .es-card {
  border-radius: 22px;
  background: var(--es-glass-deep);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 1px 2px rgba(43,33,24,.04), 0 16px 40px rgba(43,33,24,.10);
}
body.ris-page .es-card:hover, body.ris-page .es-card:focus-within, body.ris-page .es-card:active {
  border-color: rgba(194,87,26,.4);
  box-shadow: 0 2px 6px rgba(43,33,24,.06), 0 24px 54px rgba(43,33,24,.14);
}
body.ris-page .es-card-art { background: rgba(255,255,255,.5); }
body.ris-page .es-tips { display: none; }

/* ============================================================
   AMBIENT COVER PHOTO — general RIS product pages only.
   A blurred, larger copy of the cover photo bleeds outward behind
   the sharp one, softening the hard rectangular edge into the page
   background. The actual product photo stays fully sharp — a
   product for sale should never itself fade into transparency,
   only the glow around it does the blending.
   ============================================================ */
body.ris-page .es-frame--ambient {
  position: relative;
  background: transparent;
  box-shadow: none;
  border-radius: var(--es-r);
  /* the glow is allowed to bleed past the frame's own box, but the
     page itself must never gain a horizontal scrollbar because of it */
  overflow: visible;
}
body.ris-page .es-photo-glow {
  position: absolute;
  inset: -9%;
  width: 118%; height: 118%;
  object-fit: cover;
  filter: blur(40px) saturate(150%);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
body.ris-page .es-frame--ambient .es-detail-photo {
  position: relative; z-index: 1;
  border-radius: var(--es-r);
  box-shadow: 0 20px 60px rgba(43,33,24,.16);
  will-change: transform;
}
/* the glow's bleed must not be able to force page-level horizontal
   scroll on narrow viewports — clip it back to the shell's own width */
@media (max-width: 900px) {
  body.ris-page .es-frame--ambient { overflow: hidden; }
  body.ris-page .es-photo-glow { inset: -6%; width: 112%; height: 112%; filter: blur(28px) saturate(150%); opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  body.ris-page .es-detail-photo { will-change: auto; }
}
