/* =====================================================================
   TEDY v63 — scroll-free + flare-contained layer (final CSS layer).
   Replaces tedyy-v62-lux.css. Same ideas, corrected execution:
   1) UNLOCKS vertical scroll: #page-home no longer clips to one
      viewport; the artwork stage stays 100dvh inside .home-hero, and
      «የሳምንቱ ምርቶች» + quick links flow below it. Touch scrolling up AND
      down is free everywhere — no bounce-back, no lock after the arrow.
   2) Decorations NEVER cover text anymore:
      - halos (.tedyy-v63-aura) sit exactly ON the pill rectangle with
        a soft, low bloom — they no longer grow outside onto the
        Amharic credit line.
      - orbiting rings (.tedyy-v63-orbit) are 3px thin and sit INSIDE
        the pill border, so the bright head never sweeps over letters.
      - the gloss sheet (.tedyy-v63-gloss) is much subtler: no bright
        top hairline across letter tops; «መግቢያ» reads clean.
      - the scroll arrow is a compact 34px dark-glass disc centred on
        the baked chevron with only a small box-shadow glow — ይደውሉ
        above it is fully visible with a clear gap.
   3) Sparkles are fewer and smaller, kept over the crest/logo zone —
      none next to the menu pill.
   4) Weekly section styles are carried over unchanged.
   Geometry constants live in tedyy-v63-lux.js (measured on the SAME
   v62 artwork — pixels of the artwork were never modified).
   ===================================================================== */

@property --tedyy63a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

/* ------------------------------------------------------------------ 0
   SCROLL UNLOCK. The v55 stage rule pins #page-home to exactly one
   viewport with overflow:hidden; the weekly section lives INSIDE
   #page-home, so it was untouchable (programmatic scrollIntoView could
   nudge a hidden container, fingers could not). Same selectors + same
   !important weight, loaded later = wins.
--------------------------------------------------------------------- */
#page-home.home-page.is-active,
body[data-tedy-bright] #page-home.home-page.is-active {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* ------------------------------------------------------------------ 1
   Decoration base — every visual node stays pointer-events:none so the
   v58 hotspot tap targets underneath keep working exactly as before.
--------------------------------------------------------------------- */
#page-home .tedyy-v63-gloss,
#page-home .tedyy-v63-aura,
#page-home .tedyy-v63-orbit,
#page-home .tedyy-v63-spark {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

#page-home .tedyy-v63-gloss {
  z-index: 4;
  border: 0;
  border-top: 1px solid rgba(255, 244, 190, .26);
  border-bottom: 1px solid rgba(50, 26, 0, .22);
  background: linear-gradient(180deg,
    rgba(255, 236, 170, .07) 0%,
    rgba(255, 236, 170, 0) 42%,
    rgba(0, 0, 0, .06) 100%);
  box-shadow: inset 0 3px 7px -5px rgba(255, 250, 220, .26),
              inset 0 -4px 7px -5px rgba(0, 0, 0, .35);
}

/* Aura = EXACT pill rect, low warm bloom only. It never extends past
   the pill edge as a solid box, so text outside stays untouched. */
#page-home .tedyy-v63-aura {
  z-index: 3;
  box-shadow: 0 0 12px 2px rgba(255, 185, 60, .28);
  opacity: .55;
  animation: tedyy63-halo 3.6s ease-in-out infinite;
}

/* Orbit ring rides INSIDE the pill border (JS insets it ~3px) with a
   slim 3px band and a small bloom — attractive, never a curtain. */
#page-home .tedyy-v63-orbit {
  z-index: 6;
  border: 3px solid transparent;
  filter: drop-shadow(0 0 4px rgba(255, 180, 60, .45));
  background: conic-gradient(from var(--tedyy63a),
      rgba(255, 175, 45, 0)    0deg,
      rgba(255, 190, 70, .5)   55deg,
      rgba(255, 231, 140, .95) 138deg,
      #ffeeb8                   150deg,
      rgba(255, 201, 94, .85)  188deg,
      rgba(255, 175, 45, .28)  260deg,
      rgba(255, 175, 45, 0)    320deg,
      rgba(255, 175, 45, 0)    360deg) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: tedyy63-spin 5s linear infinite;
}

#page-home .tedyy-v63-spark {
  z-index: 6;
  border-radius: 0;
  width: var(--tedyy63-sz, 10px);
  height: var(--tedyy63-sz, 10px);
  background: radial-gradient(circle,
    #fff6d8 0%, #ffd873 38%, #f0b23c 62%, rgba(240, 178, 60, 0) 78%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: tedyy63-twinkle var(--tedyy63-dur, 2.6s) ease-in-out var(--tedyy63-delay, 0s) infinite;
}

@keyframes tedyy63-spin { to { --tedyy63a: 360deg; } }
@keyframes tedyy63-halo { 0%, 100% { opacity: .45; } 50% { opacity: .7; } }
@keyframes tedyy63-twinkle {
  0%   { opacity: 0;  transform: scale(.3)  rotate(-14deg); }
  45%  { opacity: .95; transform: scale(1.1) rotate(8deg); }
  70%  { opacity: .75; transform: scale(.9) rotate(10deg); }
  100% { opacity: 0;  transform: scale(.4)  rotate(16deg); }
}

/* Press pause: the v58 hotspot gets .tedyy-v58-pressed while held; the
   decoration is appended after the hotspots, so sibling combinators work. */
#page-home .tedyy-v58-hot.tedyy-v58-pressed ~ .tedyy-v63-orbit,
#page-home .tedyy-v58-hot.tedyy-v58-pressed ~ .tedyy-v63-aura {
  animation-play-state: paused;
}

/* ------------------------------------------------------------------ 2
   Scroll-to-weekly arrow button — a compact REAL button centred on the
   baked chevron. Dark-glass disc + slim gold rim + tiny glow; the
   ይደውሉ text above keeps a clean gap (nothing overlaps).
--------------------------------------------------------------------- */
#page-home .tedyy-v63-arrow {
  position: absolute;
  z-index: 7;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid rgba(255, 205, 100, .82);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%,
    rgba(38, 27, 9, .94) 0%, rgba(12, 8, 3, .92) 62%, rgba(7, 5, 2, .95) 100%);
  box-shadow: 0 0 10px rgba(255, 200, 90, .35),
              inset 0 1px 0 rgba(255, 240, 190, .28);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tedyy-v63-arrow .tedyy63-bob {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 22px;
  height: 24px;
  margin-left: -11px;
  pointer-events: none;
  animation: tedyy63-bob 1.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
.tedyy-v63-arrow .tedyy63-chev {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -6px;
  border-right: 2.5px solid #ffe9a8;
  border-bottom: 2.5px solid #ffe9a8;
  border-radius: 2px;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 4px rgba(255, 200, 90, .85));
}
.tedyy-v63-arrow .tedyy63-chev.b {
  top: 7px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  opacity: .7;
}
@keyframes tedyy63-bob {
  0%, 100% { transform: translateY(-2px); }
  55%      { transform: translateY(4px); }
  78%      { transform: translateY(1px); }
}
.tedyy-v63-arrow:hover { box-shadow: 0 0 14px rgba(255, 210, 110, .5), inset 0 1px 0 rgba(255, 240, 190, .3); }
.tedyy-v63-arrow:active { transform: translateY(2px); }
.tedyy-v63-arrow:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ 3
   WEEKLY PRODUCTS section (carried from v62 unchanged).
--------------------------------------------------------------------- */
.tedyy-weekly {
  background: linear-gradient(180deg, #051810 0%, #07281b 22%, #04160e 68%, #02100a 100%);
  border-top: 1.5px solid rgba(214, 170, 80, .45);
  box-shadow: 0 -1px 0 rgba(255, 235, 170, .12) inset;
  padding: 26px 14px 24px;
  position: relative;
  overflow: hidden;
  color: #f2e2b0;
}
.tedyy-weekly::before {
  content: "";
  position: absolute;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 260px;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 170, 80, .22);
  pointer-events: none;
}
.tedyy-weekly-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tedyy-weekly-orn span {
  height: 1.6px;
  width: 64px;
  background: linear-gradient(90deg, transparent, #caa14e);
}
.tedyy-weekly-orn span:last-child { background: linear-gradient(90deg, #caa14e, transparent); }
.tedyy-weekly-orn i {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3c4, #d9a83f);
  box-shadow: 0 0 10px rgba(255, 205, 90, .8);
}
.tedyy-weekly h2 {
  font-size: clamp(22px, 7.2vw, 30px);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  background: linear-gradient(100deg, #e6b955 8%, #fff6cf 34%, #f4d982 55%, #caa14e 78%, #ffe9a8 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}
.tedyy-weekly-sub {
  text-align: center;
  font-size: 13.5px;
  color: #bcd0c2;
  margin: 6px 0 0;
}
.tedyy-weekly-badge {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.tedyy-weekly-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0f1b12;
  background: linear-gradient(90deg, #f2cf7e, #fff2c8, #e9c162);
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 205, 90, .45);
  width: max-content;
  margin-inline: auto;
}
.tedyy-weekly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 620px) { .tedyy-weekly-grid { grid-template-columns: repeat(3, 1fr); } }
.tedyy-wcard {
  background: linear-gradient(180deg, #0b2016, #071510);
  border: 1px solid rgba(212, 170, 80, .32);
  border-radius: 15px;
  padding: 7px 7px 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55);
}
.tedyy-wcard-wide { grid-column: 1 / -1; }
.tedyy-wph {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.tedyy-wcard-wide .tedyy-wph { aspect-ratio: 16 / 8.6; }
.tedyy-wph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tedyy-wph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 215, 120, .08) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, .40) 100%);
}
.tedyy-wprice {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 700;
  color: #132013;
  background: linear-gradient(120deg, #ffe9a8, #f4c968);
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(255, 205, 90, .75), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.tedyy-wcard h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: #f6e7b6;
  margin: 8px 2px 7px;
  line-height: 1.35;
}
.tedyy-wchips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tedyy-wchip {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f6e3ac;
  background: linear-gradient(180deg, rgba(58, 42, 10, .92), rgba(28, 20, 4, .92));
  border: 1px solid rgba(238, 197, 105, .55);
  box-shadow: 0 0 8px rgba(230, 180, 70, .25), inset 0 1px 0 rgba(255, 240, 190, .22);
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .15s ease;
}
.tedyy-wchip:active { transform: scale(.95); }
.tedyy-wchip:hover { filter: brightness(1.18); }
.tedyy-wlike[aria-pressed="true"] {
  color: #ffd9d0;
  border-color: rgba(255, 120, 100, .6);
  background: linear-gradient(180deg, rgba(96, 24, 14, .92), rgba(52, 12, 8, .92));
  box-shadow: 0 0 10px rgba(255, 120, 90, .35), inset 0 1px 0 rgba(255, 200, 180, .2);
}
.tedyy-wshare {
  color: #eafaf0;
  background: linear-gradient(180deg, #1d5c38, #0f3a22);
  border-color: rgba(120, 220, 160, .45);
  box-shadow: 0 0 8px rgba(60, 200, 120, .25), inset 0 1px 0 rgba(190, 255, 210, .2);
}
.tedyy-weekly-more {
  text-align: center;
  margin: 20px 0 0;
}
.tedyy-weekly-all {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: #14210f;
  background: linear-gradient(120deg, #ffe9a8, #eec263);
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(255, 205, 90, .5);
}
.tedyy-weekly-note {
  text-align: center;
  font-size: 11.5px;
  color: #9fb0a2;
  margin: 12px 0 0;
}

/* ------------------------------------------------------------------ 4
   Reduced motion: everything renders in its calm, static state.
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #page-home .tedyy-v63-orbit,
  #page-home .tedyy-v63-aura,
  #page-home .tedyy-v63-arrow .tedyy63-bob {
    animation: none;
  }
  #page-home .tedyy-v63-spark {
    animation: none;
    opacity: .85;
  }
  .tedyy-wchip { transition: none; }
}
