@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&display=swap');
/* DIWALI MODE — HOME PAGE ONLY. This file is loaded only on the home page (Diwali Mode on) and on the offer pages.
   Everything is scoped to .ub-fest / .ub-offer so header, menus, cart popup, footer and all other pages are untouched. */

/* old home hero (expired festival banners) is replaced by the Diwali carousel */
body.ub-diwali .hero-slider{display:none}

.ub-fest{max-width:1600px;margin:0 auto;padding:0 12px}
.ub-fest__wrap{position:relative}
.ub-fest__slider{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 12px;padding:12px 12px 6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ub-fest__slider::-webkit-scrollbar{display:none}
.ub-fest__slide{flex:0 0 88%;scroll-snap-align:start;display:block;border-radius:22px;overflow:hidden;aspect-ratio:750/520}
.ub-fest .ub-fest__slide img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover}
@media(min-width:768px){.ub-fest__slide{flex-basis:calc(50% - 6px);aspect-ratio:1600/500}}
.ub-fest__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#5a1022;font-size:20px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center}
.ub-fest__arrow--prev{left:14px}.ub-fest__arrow--next{right:14px}
.ub-fest__arrow:disabled{opacity:.35;cursor:default}
@media(max-width:767px){.ub-fest__arrow{width:30px;height:30px;font-size:17px}}
.ub-fest__dots{display:flex;justify-content:center;align-items:center;gap:6px;padding:6px 0 10px}
.ub-fest__dots b{width:7px;height:7px;border-radius:50%;background:#c7d2e3;transition:all .25s}
.ub-fest__dots b.on{width:20px;border-radius:4px;background:#7a1730}
.ub-fest__count{background:#3b3f4a;color:#fff;font-weight:700;font-size:13px;padding:4px 12px;border-radius:999px;margin-right:6px}

/* Instamart-style Diwali panel */
.ub-panel{margin:6px 0 14px;padding:0 12px 14px;border-radius:30px;color:#fff;position:relative;overflow:hidden;background:#9a0a38;box-shadow:0 6px 16px rgba(90,16,34,.28)}
.ub-panel:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;background:radial-gradient(circle at 12% 22%,#ffd76a 0 1.5px,transparent 2.5px),radial-gradient(circle at 88% 30%,#fff 0 1.5px,transparent 2.5px),radial-gradient(circle at 30% 12%,#fff 0 1px,transparent 2px),radial-gradient(circle at 70% 16%,#ffd76a 0 1.5px,transparent 2.5px),radial-gradient(circle at 50% 8%,#fff 0 1px,transparent 2px)}
.ub-panel__head{position:relative;display:flex;align-items:center;justify-content:space-between;margin:0 -12px 8px;padding:10px 14px 8px;background:linear-gradient(180deg,#6d0a2c,#8a0a35);border-radius:0 0 50% 50%/0 0 26px 26px}
.ub-panel__title{text-align:center;line-height:1}
.ub-panel__title small{display:block;font-weight:700;letter-spacing:.14em;font-size:11px;color:#fff;opacity:.9;margin-bottom:2px}
.ub-panel__title b{font-family:'Playfair Display',Georgia,serif;font-style:italic;font-weight:700;font-size:46px;color:#f6d37a;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.ub-lantern{width:24px;height:44px;filter:drop-shadow(0 0 8px rgba(255,200,90,.7));animation:ubfloat 3s ease-in-out infinite alternate}
.ub-lantern:last-child{animation-delay:.8s}
@keyframes ubfloat{from{transform:translateY(0)}to{transform:translateY(6px)}}
.ub-fest__tiles{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:10px 8px}
.ub-fest__tile{display:grid;grid-template-rows:2.5em 1fr auto;height:142px;border-radius:18px;background:#b80f47;border:1px solid rgba(255,255,255,.16);overflow:hidden;text-decoration:none}
.ub-fest .ub-fest__tile span{display:flex;align-items:center;justify-content:center;text-align:center;padding:9px 4px 0;color:#fff;font-weight:600;font-size:13px;line-height:1.15}
.ub-fest .ub-fest__tile img{height:100%!important;width:auto!important;max-width:78%!important;min-height:0!important;margin:3px auto 4px!important;object-fit:contain!important;align-self:center;justify-self:center;filter:drop-shadow(0 4px 4px rgba(0,0,0,.3))}
.ub-fest .ub-fest__tile em{display:block;padding:6px 2px;background:#fff1d6;color:#8a0f37;font-style:normal;font-weight:800;font-size:10.5px;line-height:1;white-space:nowrap;text-align:center}
@media(min-width:768px){
 .ub-fest__tiles{grid-template-columns:repeat(6,1fr)}
 .ub-fest__tile{height:178px;grid-template-rows:2.6em 1fr auto}
 .ub-fest .ub-fest__tile span{font-size:14.5px}.ub-fest .ub-fest__tile img{max-width:70%!important}.ub-fest .ub-fest__tile em{font-size:13px;padding:8px 2px}
 .ub-panel__title b{font-size:58px}.ub-lantern{width:40px;height:72px}
}
@media(prefers-reduced-motion:reduce){.ub-lantern{animation:none}}

/* Offer pages: banner + products, always 3 per row */
.ub-offer{max-width:1600px;margin:0 auto;padding:16px 12px 24px}
.ub-offer__title{font-size:26px;font-weight:700;text-align:center;margin:4px 0 14px}
.ub-offer__banner{margin-bottom:18px}
.ub-offer__banner{display:block;width:100%;height:auto;border-radius:16px}
.ub-offer__empty{text-align:center;padding:36px 12px}
.ub-offer__empty h2{font-weight:700;margin-bottom:8px}
.ub-offer__btn{display:inline-block;margin-top:14px;padding:12px 28px;border-radius:999px;background:#205bf3;color:#fff!important;font-weight:700}
