/* Shop Window: Eid look (Shop front › Notices, pop-ups & Christmas › Eid). Loaded only while it's on. */

/* Crescent moon and star on the logo */
.sw-logo { position: relative; }
.sw-eid-moon { position: absolute; width: 11%; height: auto; left: -4%; top: -30%; transform: rotate(-12deg); pointer-events: none; filter: drop-shadow(0 0 3px rgba(232, 182, 76, .55)); }

/* Hanging lanterns between the menu and the page (lanterns made by eid.js) */
.sw-eid-lanterns { position: relative; z-index: 2; height: 46px; display: flex; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='12'%3E%3Cpath d='M0 2Q35 12 70 2' fill='none' stroke='%23C8932E' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0 / 70px 12px; }
.sw-eid-lanterns span { flex: 0 0 70px; position: relative; }
.sw-eid-lanterns span i { position: absolute; left: 34.5px; top: 7px; width: 1px; height: var(--l, 8px); background: #C8932E; }
.sw-eid-lanterns svg { position: absolute; left: 27px; top: calc(5px + var(--l, 8px)); width: 16px; height: 29px; transform-origin: 8px -2px; animation: sw-eid-sway 4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 5px rgba(255, 196, 80, .65)); }
@keyframes sw-eid-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* Gold geometric edge along the top of the first dark bar and the footer */
.sw-eid-pattern #container > .sw-ticker:first-child, .sw-eid-pattern #container > .sw-topbar:first-child, .sw-eid-pattern .sw-footer { position: relative; }
.sw-eid-pattern #container > .sw-ticker:first-child, .sw-eid-pattern #container > .sw-topbar:first-child { padding-top: 8px; }
.sw-eid-pattern .sw-footer { padding-top: 10px; }
.sw-eid-pattern #container > .sw-ticker:first-child::before, .sw-eid-pattern #container > .sw-topbar:first-child::before, .sw-eid-pattern .sw-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Cpath d='M0 5 6 1 12 5 6 9ZM12 5 18 1 24 5 18 9Z' fill='none' stroke='%23E8B64C' stroke-width='1.1'/%3E%3Ccircle cx='12' cy='5' r='1.1' fill='%23E8B64C'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 10px; }

/* Night-sky scene above the footer */
.sw-eid-scene { position: relative; margin-top: 48px; height: clamp(150px, 17vw, 210px); background: #0E2A47; overflow: hidden; }
.sw-eid-scene + .sw-footer { margin-top: 0; }
.sw-eid-scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background: radial-gradient(circle, #fff 1.1px, transparent 1.5px) 0 0 / 53px 41px, radial-gradient(circle, #F2C14E 1px, transparent 1.4px) 27px 20px / 61px 47px, radial-gradient(circle, rgba(255,255,255,.7) .8px, transparent 1.2px) 11px 31px / 37px 29px; }
.sw-eid-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 7 7 1.5 14 7 7 12.5ZM14 7 21 1.5 28 7 21 12.5Z' fill='none' stroke='%23E8B64C' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='7' r='1.4' fill='%23E8B64C'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 14px; }
.sw-eid-bigmoon { position: absolute; left: clamp(14px, 9vw, 150px); top: clamp(18px, 2.4vw, 30px); width: clamp(54px, 7vw, 96px); height: auto; filter: drop-shadow(0 0 14px rgba(242, 193, 78, .45)); }
.sw-eid-hang { position: absolute; top: 0; right: clamp(10px, 7vw, 130px); display: flex; gap: clamp(14px, 3vw, 44px); }
.sw-eid-hang span { position: relative; width: clamp(20px, 2.4vw, 30px); padding-top: var(--l, 10px); }
.sw-eid-hang span::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: calc(var(--l, 10px) + 2px); background: #C8932E; }
.sw-eid-hang svg { display: block; width: 100%; height: auto; aspect-ratio: 24 / 44; filter: drop-shadow(0 0 7px rgba(255, 196, 80, .7)); transform-origin: 50% 0; animation: sw-eid-sway 5s ease-in-out infinite alternate; }
.sw-eid-hang span:nth-child(2n) svg { animation-duration: 6s; animation-direction: alternate-reverse; }
.sw-eid-greeting { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding-inline: var(--sw-gutter); text-align: center; font-family: var(--sw-display); font-weight: 800; font-size: clamp(18px, 2.6vw, 30px); line-height: 1.2; color: #F2C14E; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (max-width: 640px) {
  .sw-eid-hang .e-wide { display: none; }
  .sw-eid-scene { height: 160px; }
  .sw-eid-greeting { top: auto; bottom: 26px; transform: none; }
}

/* Gold stars drifting down (eid.js); never covers clicks */
.sw-eid-stars { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .sw-eid-lanterns svg, .sw-eid-hang svg { animation: none !important; }
  .sw-eid-stars { display: none; }
}
@media print { .sw-eid-stars, .sw-eid-lanterns, .sw-eid-scene, .sw-eid-moon { display: none !important; } }
