/* =========================================================
   Trezoro – Diwali festive layer
   Sits on top of the normal layout; nothing is moved.
   Navy #000131 + temple gold + marigold saffron.
   ========================================================= */
:root {
  --dw-navy: #000131;
  --dw-navy-2: #0b0f5c;
  --dw-gold: #e2b24f;
  --dw-gold-2: #f6d27a;
  --dw-gold-3: #a8761f;
  --dw-saffron: #ff9933;
  --dw-rani: #d6246e;
  --dw-cream: #fff8ea;
  --dw-font: "Cinzel", "Cormorant Garamond", Georgia, serif;
}

/* ---------- Ribbon above the header ---------- */
.dw-ribbon {
  position: relative; overflow: hidden; z-index: 6;
  background:
    radial-gradient(ellipse at 50% -40%, rgba(246, 210, 122, .35), transparent 60%),
    linear-gradient(90deg, #0b0f5c, var(--dw-navy) 30%, var(--dw-navy) 70%, #0b0f5c);
  border-bottom: 1px solid rgba(226, 178, 79, .55);
  color: var(--dw-gold-2);
  font: 500 13px/1 var(--dw-font); letter-spacing: .08em;
}
.dw-ribbon::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dw-gold-2), transparent);
}
.dw-ribbon__track { display: flex; width: max-content; animation: dw-marquee 38s linear infinite; }
.dw-ribbon:hover .dw-ribbon__track { animation-play-state: paused; }
.dw-ribbon__group { display: flex; flex: none; }
.dw-ribbon__item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 34px; white-space: nowrap; }
.dw-ribbon__diya { width: 20px; height: 18px; flex: none; }
@keyframes dw-marquee { to { transform: translateX(-50%); } }

/* ---------- Marigold toran under the header ---------- */
.dw-toran-wrap { position: relative; height: 0; z-index: 4; pointer-events: none; }
.dw-toran-wrap--flow { height: 38px; }
@media (max-width: 749px) { .dw-toran-wrap--flow { height: 30px; } }
.dw-toran {
  position: absolute; left: 0; right: 0; top: 0; height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='36' viewBox='0 0 64 36'%3E%3Cpath d='M0 3 Q16 9 32 3 T64 3' fill='none' stroke='%23c9962f' stroke-width='2'/%3E%3Cpath d='M16 6 C10 13 11 22 16 31 C21 22 22 13 16 6Z' fill='%232e7d32'/%3E%3Cpath d='M16 8 L16 29' stroke='%2381c784' stroke-width='.8'/%3E%3Cg stroke='%23e65100' stroke-width='1.1' stroke-dasharray='1.4 1'%3E%3Ccircle cx='48' cy='9' r='4.6' fill='%23ff9800'/%3E%3Ccircle cx='48' cy='18' r='4.2' fill='%23ffb300'/%3E%3Ccircle cx='48' cy='26.5' r='3.8' fill='%23ff9800'/%3E%3C/g%3E%3Ccircle cx='48' cy='9' r='1.8' fill='%23ffe082'/%3E%3Ccircle cx='48' cy='18' r='1.6' fill='%23fff3c4'/%3E%3Ccircle cx='48' cy='26.5' r='1.4' fill='%23ffe082'/%3E%3Ccircle cx='48' cy='32.5' r='1.6' fill='%23e2b24f'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 64px 36px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .18));
  transform-origin: top center; animation: dw-sway 6s ease-in-out infinite;
}
@keyframes dw-sway { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(1.2deg); } }

/* Hanging lanterns at the banner corners */
.dw-kandil { position: absolute; top: 18px; width: 64px; transform-origin: 50% 0; animation: dw-swing 4.2s ease-in-out infinite; }
.dw-kandil svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(255, 153, 51, .55)); }
.dw-kandil--l { left: 4%; }
.dw-kandil--r { right: 4%; animation-delay: -2.1s; width: 54px; }
@keyframes dw-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (max-width: 989px) { .dw-kandil { width: 40px !important; top: 14px; } .dw-kandil--l { left: 2%; } .dw-kandil--r { right: 2%; } }
@media (max-width: 480px) { .dw-kandil--r { display: none; } }

/* ---------- Banner sparkle canvas ---------- */
.tz-banner { isolation: isolate; }
.dw-sky { position: absolute; inset: 0 0 30px 0; width: 100%; height: calc(100% - 30px); pointer-events: none; z-index: 5; mix-blend-mode: screen; }
.tz-banner .banner-dots .active { background-color: var(--dw-gold) !important; box-shadow: 0 0 8px var(--dw-gold); }

/* ---------- Greeting band under the banner ---------- */
.dw-greet {
  position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px);
  margin: 0 auto 10px; padding: 34px 20px 38px; overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(246, 210, 122, .22), transparent 65%),
    linear-gradient(180deg, var(--dw-cream), #fff);
  border-top: 1px solid rgba(226, 178, 79, .4); border-bottom: 1px solid rgba(226, 178, 79, .4);
}
.dw-greet::before, .dw-greet::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--dw-saffron) 0 14px, var(--dw-gold) 14px 28px, var(--dw-rani) 28px 42px, var(--dw-gold) 42px 56px);
  opacity: .85;
}
.dw-greet::before { top: 0; } .dw-greet::after { bottom: 0; }
.dw-greet__text { max-width: 560px; position: relative; z-index: 1; }
.dw-greet__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 500 13px/1 var(--dw-font); letter-spacing: .32em; text-transform: uppercase; color: var(--dw-gold-3); }
.dw-greet__diya { width: 26px; height: 23px; }
.dw-greet__title {
  margin: 4px 0 10px !important; font: 700 clamp(34px, 5.6vw, 64px)/1.05 "Cinzel Decorative", var(--dw-font) !important; letter-spacing: .02em;
  background: linear-gradient(100deg, #8c5a12 0%, #e2b24f 22%, #fff1b8 38%, #e2b24f 52%, #a8761f 72%, #f6d27a 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent;
  animation: dw-gold-sheen 6s linear infinite; text-shadow: none;
}
@keyframes dw-gold-sheen { to { background-position: -220% 0; } }
.dw-greet__sub { margin: 0; color: var(--dw-navy); font-size: 1.6rem; line-height: 1.6; opacity: .85; }
.dw-rangoli { width: clamp(90px, 11vw, 150px); height: auto; flex: none; animation: dw-spin 60s linear infinite; filter: drop-shadow(0 4px 10px rgba(168, 118, 31, .25)); }
.dw-rangoli--r { animation-direction: reverse; }
@keyframes dw-spin { to { transform: rotate(360deg); } }
@media (max-width: 749px) {
  .dw-greet { padding: 26px 14px 30px; }
  .dw-rangoli { position: absolute; width: 120px; opacity: .22; }
  .dw-rangoli--l { left: -40px; top: -30px; } .dw-rangoli--r { right: -40px; bottom: -30px; }
  .dw-greet__sub { font-size: 1.45rem; }
}

/* ---------- Festive heading ornament ---------- */
.main-categories-heading,
.image-with-text__heading,
.featured-carousel h2,
.brand-logos-section-wrapper h2,
.collapsible-content__header h2,
.main-page-title,
.collection-hero__title { position: relative; }
.main-categories-heading::after,
.image-with-text__heading::after,
.featured-carousel h2::after,
.brand-logos-section-wrapper h2::after,
.collapsible-content__header h2::after,
.main-page-title::after,
.collection-hero__title::after {
  content: ""; display: block; width: 190px; max-width: 70%; height: 22px; margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='22' viewBox='0 0 190 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23e2b24f' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23e2b24f'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23e2b24f' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23e2b24f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 15h72' stroke='url(%23g)' stroke-width='1.5'/%3E%3Cpath d='M118 15h72' stroke='url(%23h)' stroke-width='1.5'/%3E%3Ccircle cx='78' cy='15' r='2' fill='%23e2b24f'/%3E%3Ccircle cx='112' cy='15' r='2' fill='%23e2b24f'/%3E%3Cpath d='M95 1c3 5 5 8 5 11a5 5 0 0 1-10 0c0-3 2-6 5-11z' fill='%23ff9933'/%3E%3Cpath d='M95 6c1.5 2.6 2.4 4.3 2.4 5.7a2.4 2.4 0 0 1-4.8 0c0-1.4.9-3.1 2.4-5.7z' fill='%23ffe680'/%3E%3Cpath d='M84 15h22c-1 4-5 7-11 7s-10-3-11-7z' fill='%23b5471b'/%3E%3Cpath d='M84 15h22' stroke='%23f6d27a' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.image-with-text__content--desktop-left .image-with-text__heading::after { margin-left: 0; }
@media (max-width: 749px) { .image-with-text__content--mobile-left .image-with-text__heading::after { margin-left: 0; } }

/* ---------- Gold touches on cards & buttons ---------- */
.category-item img { transition: box-shadow .35s ease, transform .35s ease; }
.category-item:hover img { box-shadow: 0 0 0 2px var(--dw-gold), 0 10px 28px -8px rgba(226, 178, 79, .7); transform: translateY(-3px); }
.category-item .main-title { transition: color .25s; }
.category-item:hover .main-title { color: var(--dw-gold-3) !important; }
.card-wrapper, .product-card-wrapper, .carousel-item { transition: box-shadow .35s ease; }
.card-wrapper:hover, .product-card-wrapper:hover, .carousel-item:hover { box-shadow: 0 0 0 1px rgba(226, 178, 79, .8), 0 14px 32px -14px rgba(168, 118, 31, .55); }

.button--primary, .button.button--primary, footer .btn1, footer .btn2 {
  background-image: linear-gradient(110deg, transparent 0%, transparent 40%, rgba(255, 228, 150, .45) 50%, transparent 60%, transparent 100%) !important;
  background-size: 250% 100% !important; background-repeat: no-repeat !important;
  animation: dw-btn-shine 4.5s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(226, 178, 79, .75), 0 6px 18px -8px rgba(226, 178, 79, .8) !important;
}
@keyframes dw-btn-shine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -130% 0; } }

/* ---------- Diyas above the footer ---------- */
.dw-diyas {
  position: relative; background: linear-gradient(180deg, #fff 0%, var(--dw-cream) 40%, var(--dw-navy) 40%, var(--dw-navy) 100%);
  padding-top: 6px; overflow: hidden;
}
.dw-diyas__row { display: flex; justify-content: space-around; max-width: 1400px; margin: 0 auto; padding: 0 10px; }
.dw-diyas span { width: 52px; flex: none; }
.dw-diya { display: block; width: 100%; height: auto; overflow: visible; }
.dw-diyas .dw-diya { filter: drop-shadow(0 -2px 10px rgba(255, 176, 32, .65)); }
.dw-flame { transform-origin: 32px 30px; animation: dw-flicker 1.6s ease-in-out infinite alternate; }
.dw-diyas span:nth-child(odd) .dw-flame { animation-duration: 1.2s; }
.dw-diyas span:nth-child(3n) .dw-flame { animation-delay: -.6s; }
@keyframes dw-flicker {
  0% { transform: scale(1, 1) rotate(-2deg); opacity: .95; }
  40% { transform: scale(.96, 1.08) rotate(2deg); opacity: 1; }
  70% { transform: scale(1.03, .94) rotate(-1deg); }
  100% { transform: scale(.98, 1.05) rotate(1.5deg); opacity: .9; }
}
@media (max-width: 749px) {
  .dw-diyas span { width: 34px; }
  .dw-diyas span:nth-child(n+9) { display: none; }
  .dw-ribbon { font-size: 11.5px; }
  .dw-ribbon__item { padding: 9px 22px; }
  .dw-toran { height: 28px; background-size: 50px 28px; }
}
footer { border-top: 2px solid var(--dw-gold) !important; }

/* Respect “reduce motion” */
@media (prefers-reduced-motion: reduce) {
  .dw-ribbon__track, .dw-toran, .dw-kandil, .dw-rangoli, .dw-flame, .dw-greet__title,
  .button--primary, footer .btn1, footer .btn2 { animation: none !important; }
  .dw-ribbon__track { width: auto; justify-content: center; }
  .dw-ribbon__group + .dw-ribbon__group { display: none; }
}
