/* =====================================================================
   OurCloset – Nepali calendar & festival themes
   body.oc-theme-{key} is set server-side from config/nepali_festivals.php
   (festival window first, otherwise the Bikram Sambat month).
   Every theme = base colour + soft glows + a light, low-opacity motif.
   ===================================================================== */

body[class*="oc-theme-"]{
  background-color: var(--fx-base, #f6f1ea) !important;
  background-image: var(--fx-motif, none), var(--fx-glow, none) !important;
  background-size: var(--fx-motif-size, 220px 220px), cover !important;
  background-attachment: fixed, fixed !important;
  background-repeat: repeat, no-repeat !important;
}
/* Let the themed page show between sections (cards stay white). */
body[class*="oc-theme-"] .best_product_list,
body[class*="oc-theme-"] .all_product,
body[class*="oc-theme-"] .feature_brands,
body[class*="oc-theme-"] .oc-hotcat{ background: transparent !important; }

/* ---------- Greeting ribbon ---------- */
.oc-fest-ribbon{ position:relative; z-index:5; display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap;
  padding:9px 44px; text-align:center; font-size:14px; font-weight:600; color:var(--fx-ink,#fff);
  background:linear-gradient(90deg,var(--fx-a,#b91c1c),var(--fx-b,#f59e0b),var(--fx-a,#b91c1c)); background-size:200% 100%;
  animation:ocFxSlide 12s linear infinite; box-shadow:0 4px 16px rgba(0,0,0,.12); }
.oc-fest-ribbon__icon{ font-size:18px; line-height:1; filter:drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.oc-fest-ribbon__np{ font-weight:800; letter-spacing:.01em; }
.oc-fest-ribbon__sep{ opacity:.6; }
.oc-fest-ribbon__cta{ display:inline-flex; align-items:center; gap:6px; padding:4px 14px; border-radius:999px; font-size:12.5px; font-weight:800;
  background:rgba(255,255,255,.92); color:var(--fx-a,#b91c1c) !important; text-decoration:none !important; transition:transform .2s; }
.oc-fest-ribbon__cta:hover{ transform:translateY(-1px); }
.oc-fest-ribbon__close{ position:absolute; right:12px; top:50%; transform:translateY(-50%); width:26px; height:26px; border:0; border-radius:50%;
  background:rgba(255,255,255,.2); color:inherit; font-size:14px; line-height:1; cursor:pointer; }
.oc-fest-ribbon[hidden]{ display:none !important; }
@keyframes ocFxSlide{ from{ background-position:0 0; } to{ background-position:200% 0; } }
@media (max-width:575px){ .oc-fest-ribbon{ font-size:12.5px; padding:8px 40px 8px 12px; } .oc-fest-ribbon__sep, .oc-fest-ribbon__en{ display:none; } }
@media (prefers-reduced-motion: reduce){ .oc-fest-ribbon{ animation:none; } }

/* ======================= FESTIVALS ======================= */

/* Dashain – kites in an autumn sky, jamara green & tika red */
.oc-theme-dashain, .oc-theme-ashwin{
  --fx-a:#c1121f; --fx-b:#f4a261; --fx-base:#fdf3e1;
  --fx-glow: radial-gradient(1200px 600px at 10% 0%, rgba(116,192,252,.35), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(106,153,78,.22), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg opacity='.16'%3E%3Cpath d='M40 20l18 22-18 22-18-22z' fill='%23c1121f'/%3E%3Cpath d='M40 64q6 18-4 34t2 30' stroke='%23c1121f' fill='none' stroke-width='1.5'/%3E%3Cpath d='M160 110l14 17-14 17-14-17z' fill='%23f4a261'/%3E%3Cpath d='M160 144q-6 14 3 26t-3 24' stroke='%23f4a261' fill='none' stroke-width='1.5'/%3E%3Cpath d='M120 30l9 11-9 11-9-11z' fill='%232a9d8f'/%3E%3C/g%3E%3C/svg%3E");
}
.oc-theme-ashwin{ --fx-a:#2a7ab0; --fx-b:#f4a261; }

/* Tihar – marigold, diyo lights & rangoli */
.oc-theme-tihar, .oc-theme-kartik{
  --fx-a:#e85d04; --fx-b:#ffba08; --fx-base:#fff4e0;
  --fx-glow: radial-gradient(1000px 520px at 0% 0%, rgba(255,186,8,.35), transparent 60%), radial-gradient(900px 520px at 100% 100%, rgba(232,93,4,.22), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.2'%3E%3Cpath d='M30 60q20 14 40 0q-4 12-20 12t-20-12z' fill='%23e85d04'/%3E%3Cpath d='M50 34q8 10 0 20q-8-10 0-20z' fill='%23ffba08'/%3E%3Ccircle cx='150' cy='140' r='14' fill='none' stroke='%23e85d04' stroke-width='2'/%3E%3Ccircle cx='150' cy='140' r='6' fill='%23ffba08'/%3E%3Cg fill='%23f48c06'%3E%3Ccircle cx='150' cy='118' r='4'/%3E%3Ccircle cx='150' cy='162' r='4'/%3E%3Ccircle cx='128' cy='140' r='4'/%3E%3Ccircle cx='172' cy='140' r='4'/%3E%3C/g%3E%3Ccircle cx='110' cy='40' r='3' fill='%23ffba08'/%3E%3Ccircle cx='30' cy='160' r='3' fill='%23ffba08'/%3E%3C/g%3E%3C/svg%3E");
}
.oc-theme-kartik{ --fx-a:#d9480f; }

/* Chhath – rising sun over water */
.oc-theme-chhath{
  --fx-a:#e76f51; --fx-b:#f4a261; --fx-base:#fff1e6;
  --fx-glow: radial-gradient(900px 500px at 50% 0%, rgba(255,183,3,.45), transparent 65%), linear-gradient(180deg, transparent 60%, rgba(72,149,239,.12));
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160'%3E%3Cg opacity='.16' fill='none' stroke='%23e76f51' stroke-width='2'%3E%3Cpath d='M70 80a40 40 0 0 1 80 0'/%3E%3Cpath d='M110 30v-14M78 44l-10-10M142 44l10-10'/%3E%3Cpath d='M20 110q20-10 40 0t40 0 40 0 40 0' stroke='%234895ef'/%3E%3C/g%3E%3C/svg%3E");
}

/* Teej / Bhadra – red saree, green bangles */
.oc-theme-teej, .oc-theme-bhadra{
  --fx-a:#c9184a; --fx-b:#2b9348; --fx-base:#fff0f3;
  --fx-glow: radial-gradient(1000px 520px at 0% 0%, rgba(201,24,74,.22), transparent 60%), radial-gradient(800px 480px at 100% 100%, rgba(43,147,72,.18), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.18' fill='none' stroke-width='5'%3E%3Cellipse cx='50' cy='50' rx='24' ry='9' stroke='%23c9184a'/%3E%3Cellipse cx='50' cy='62' rx='24' ry='9' stroke='%232b9348'/%3E%3Cellipse cx='130' cy='130' rx='22' ry='8' stroke='%232b9348'/%3E%3Cellipse cx='130' cy='141' rx='22' ry='8' stroke='%23c9184a'/%3E%3C/g%3E%3C/svg%3E");
}

/* Holi / Falgun – colour splashes */
.oc-theme-holi, .oc-theme-falgun{
  --fx-a:#d63384; --fx-b:#7b2cbf; --fx-base:#fff7fb;
  --fx-glow: radial-gradient(500px 340px at 8% 12%, rgba(255,0,110,.22), transparent 70%), radial-gradient(520px 360px at 92% 18%, rgba(58,134,255,.22), transparent 70%),
             radial-gradient(520px 360px at 15% 88%, rgba(255,190,11,.25), transparent 70%), radial-gradient(520px 360px at 88% 85%, rgba(131,56,236,.2), transparent 70%),
             radial-gradient(420px 300px at 50% 50%, rgba(6,214,160,.14), transparent 70%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.18'%3E%3Ccircle cx='30' cy='40' r='6' fill='%23ff006e'/%3E%3Ccircle cx='150' cy='60' r='4' fill='%233a86ff'/%3E%3Ccircle cx='90' cy='150' r='7' fill='%23ffbe0b'/%3E%3Ccircle cx='170' cy='170' r='3' fill='%238338ec'/%3E%3Ccircle cx='60' cy='100' r='3' fill='%2306d6a0'/%3E%3C/g%3E%3C/svg%3E");
}
.oc-theme-falgun{ --fx-a:#e05780; --fx-b:#9d4edd; }

/* Maha Shivaratri – twilight blue */
.oc-theme-shivaratri{
  --fx-a:#3a0ca3; --fx-b:#4361ee; --fx-base:#eef1fb;
  --fx-glow: radial-gradient(1000px 520px at 50% 0%, rgba(67,97,238,.25), transparent 65%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg opacity='.16' fill='%233a0ca3'%3E%3Cpath d='M80 20v60M64 34q0 22 16 22t16-22' stroke='%233a0ca3' stroke-width='3' fill='none'/%3E%3Ccircle cx='30' cy='120' r='2'/%3E%3Ccircle cx='130' cy='110' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Buddha Jayanti – saffron & lotus */
.oc-theme-buddha_jayanti{
  --fx-a:#d97706; --fx-b:#f59e0b; --fx-base:#fffaf0;
  --fx-glow: radial-gradient(1000px 520px at 50% 0%, rgba(245,158,11,.25), transparent 65%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.18' fill='%23ec4899'%3E%3Cpath d='M100 70q12 18 0 36q-12-18 0-36z'/%3E%3Cpath d='M100 106q-22-4-30-22q22 2 30 22z'/%3E%3Cpath d='M100 106q22-4 30-22q-22 2-30 22z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Janai Purnima / Gai Jatra – sacred yellow thread */
.oc-theme-janai_purnima{
  --fx-a:#ca8a04; --fx-b:#ea580c; --fx-base:#fffbeb;
  --fx-glow: radial-gradient(1000px 520px at 0% 0%, rgba(234,179,8,.28), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120'%3E%3Cpath d='M0 60q25-30 50 0t50 0 50 0 50 0' stroke='%23ca8a04' stroke-width='2' fill='none' opacity='.2'/%3E%3C/svg%3E");
}

/* Lhosar (Sonam / Gyalpo / Tamu) – prayer-flag colours */
.oc-theme-lhosar, .oc-theme-tamu_lhosar{
  --fx-a:#1d4ed8; --fx-b:#dc2626; --fx-base:#f5f7ff;
  --fx-glow: linear-gradient(180deg, rgba(29,78,216,.10), transparent 40%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='120'%3E%3Cg opacity='.22'%3E%3Cpath d='M0 20q125 30 250 0' stroke='%23999' fill='none'/%3E%3Crect x='20' y='24' width='26' height='20' fill='%231d4ed8'/%3E%3Crect x='66' y='31' width='26' height='20' fill='%23ffffff' stroke='%23ddd'/%3E%3Crect x='112' y='34' width='26' height='20' fill='%23dc2626'/%3E%3Crect x='158' y='31' width='26' height='20' fill='%2316a34a'/%3E%3Crect x='204' y='24' width='26' height='20' fill='%23facc15'/%3E%3C/g%3E%3C/svg%3E");
  --fx-motif-size: 250px 120px;
}

/* Maghe Sankranti / Magh – warm til-laddu & winter sun */
.oc-theme-maghe_sankranti, .oc-theme-magh{
  --fx-a:#9a3412; --fx-b:#d97706; --fx-base:#fbf3ea;
  --fx-glow: radial-gradient(900px 500px at 100% 0%, rgba(251,191,36,.3), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.16' fill='%239a3412'%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='130' cy='120' r='6'/%3E%3Ccircle cx='60' cy='140' r='3'/%3E%3Ccircle cx='150' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.oc-theme-magh{ --fx-a:#9d174d; --fx-b:#d4a373; }

/* Nepali New Year / Baisakh – lali gurans (rhododendron) */
.oc-theme-new_year, .oc-theme-baisakh{
  --fx-a:#b5179e; --fx-b:#f72585; --fx-base:#fff0f6;
  --fx-glow: radial-gradient(1000px 520px at 0% 0%, rgba(247,37,133,.18), transparent 60%), radial-gradient(800px 480px at 100% 100%, rgba(181,23,158,.14), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.18' fill='%23d00000'%3E%3Ccircle cx='50' cy='40' r='7'/%3E%3Ccircle cx='60' cy='48' r='7'/%3E%3Ccircle cx='44' cy='52' r='7'/%3E%3Ccircle cx='150' cy='140' r='6'/%3E%3Ccircle cx='159' cy='147' r='6'/%3E%3Ccircle cx='145' cy='151' r='6'/%3E%3C/g%3E%3Cg opacity='.18' fill='%232b9348'%3E%3Cellipse cx='66' cy='60' rx='8' ry='3'/%3E%3Cellipse cx='164' cy='158' rx='7' ry='3'/%3E%3C/g%3E%3C/svg%3E");
}
.oc-theme-baisakh{ --fx-a:#d00000; --fx-b:#f72585; }

/* Christmas */
.oc-theme-christmas{
  --fx-a:#b91c1c; --fx-b:#15803d; --fx-base:#f7faf7;
  --fx-glow: radial-gradient(900px 500px at 0% 0%, rgba(185,28,28,.14), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(21,128,61,.14), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg opacity='.18' stroke='%2315803d' stroke-width='2'%3E%3Cpath d='M40 20v36M22 38h36M27 25l26 26M53 25L27 51'/%3E%3C/g%3E%3Ccircle cx='120' cy='120' r='5' fill='%23b91c1c' opacity='.2'/%3E%3C/svg%3E");
}

/* ======================= BIKRAM SAMBAT MONTHS ======================= */

/* Jestha – summer */
.oc-theme-jestha{
  --fx-a:#e85d04; --fx-b:#facc15; --fx-base:#fffbea;
  --fx-glow: radial-gradient(1000px 520px at 100% 0%, rgba(250,204,21,.3), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.15' stroke='%23e85d04' stroke-width='2' fill='none'%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Cpath d='M60 36v-8M60 92v-8M36 60h-8M92 60h-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Asar – monsoon & paddy planting */
.oc-theme-asar{
  --fx-a:#2d6a4f; --fx-b:#52b788; --fx-base:#f0f7f2;
  --fx-glow: linear-gradient(180deg, rgba(72,149,239,.10), transparent 35%), radial-gradient(1000px 500px at 50% 100%, rgba(82,183,136,.22), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg opacity='.2' stroke='%232d6a4f' stroke-width='2' fill='none'%3E%3Cpath d='M40 120q0-30 -10-50M40 120q0-30 10-52M40 120v-56'/%3E%3C/g%3E%3Cg opacity='.18' fill='%234895ef'%3E%3Cpath d='M120 30q5 8 0 12q-5-4 0-12z'/%3E%3Cpath d='M140 60q5 8 0 12q-5-4 0-12z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Shrawan – green bangles, mehendi */
.oc-theme-shrawan{
  --fx-a:#1b7a43; --fx-b:#74c69d; --fx-base:#effaf3;
  --fx-glow: radial-gradient(1000px 520px at 0% 0%, rgba(116,198,157,.3), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.2' fill='none' stroke='%231b7a43' stroke-width='4'%3E%3Cellipse cx='50' cy='50' rx='22' ry='8'/%3E%3Cellipse cx='50' cy='60' rx='22' ry='8'/%3E%3C/g%3E%3Cpath d='M130 110q14 10 0 30q-14-20 0-30z' fill='%23b45309' opacity='.14'/%3E%3C/svg%3E");
}

/* Mangsir – wedding season (maroon & gold mandala) */
.oc-theme-mangsir{
  --fx-a:#7f1d1d; --fx-b:#d4a017; --fx-base:#fbf5ee;
  --fx-glow: radial-gradient(1100px 560px at 0% 0%, rgba(127,29,29,.12), transparent 60%), radial-gradient(900px 520px at 100% 100%, rgba(212,160,23,.18), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg opacity='.14' fill='none' stroke='%237f1d1d' stroke-width='1.5'%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3Ccircle cx='60' cy='60' r='16' stroke='%23d4a017'/%3E%3Cpath d='M60 34q8 13 0 26q-8-13 0-26zM60 86q8-13 0-26q-8 13 0 26zM34 60q13 8 26 0q-13-8-26 0zM86 60q-13 8-26 0q13-8 26 0z' stroke='%23d4a017'/%3E%3Ccircle cx='170' cy='170' r='4' fill='%23d4a017' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* Poush – Himalayan winter */
.oc-theme-poush{
  --fx-a:#1e3a8a; --fx-b:#60a5fa; --fx-base:#f3f7fc;
  --fx-glow: linear-gradient(180deg, rgba(96,165,250,.14), transparent 45%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.16' stroke='%231e3a8a' stroke-width='1.5'%3E%3Cpath d='M40 24v32M24 40h32M29 29l22 22M51 29L29 51'/%3E%3Cpath d='M130 110v20M120 120h20' /%3E%3C/g%3E%3C/svg%3E");
}

/* Chaitra – spring festivities */
.oc-theme-chaitra{
  --fx-a:#c2410c; --fx-b:#facc15; --fx-base:#fffbf0;
  --fx-glow: radial-gradient(1000px 520px at 0% 100%, rgba(250,204,21,.25), transparent 60%);
  --fx-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.18' fill='%23facc15'%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3Ccircle cx='48' cy='44' r='5'/%3E%3Ccircle cx='36' cy='48' r='5'/%3E%3C/g%3E%3Ccircle cx='140' cy='130' r='4' fill='%23c2410c' opacity='.18'/%3E%3C/svg%3E");
}

/* Dark mode: keep the motif, darken the base */
html.oc-dark body[class*="oc-theme-"]{ background-color:#0f0d14 !important; }
html.oc-dark body[class*="oc-theme-"]{ background-image: var(--fx-motif, none) !important; }

