/* =========================================================================
   MARKETPLACE PRO (DESIGN #2 FINAL PRODUCTION) + COLOURFUL DIWALI JHALAR
   ========================================================================= */
:root {
  --mp-bg: #F3F5F9;
  --mp-white: #FFFFFF;
  --mp-header: linear-gradient(90deg, #120822 0%, #240E38 50%, #120822 100%);
  --mp-navy: #0F172A;
  --mp-orange: #FF5722;
  --mp-orange-hover: #E64A19;
  --mp-yellow: #FFC107;
  --mp-green: #15803D;
  --mp-ink: #0F172A;
  --mp-muted: #64748B;
  --mp-border: #E2E8F0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--mp-bg);
  color: var(--mp-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mp-disp {
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
}

.mp-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Announcement Ribbon */
.mp-top-ribbon {
  background: #090412;
  color: #FDE68A;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 213, 79, 0.18);
}

.mp-top-ribbon-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Sticky Festive Marketplace Header */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--mp-header);
  box-shadow: 0 8px 26px rgba(15, 10, 30, 0.22);
}

/* ============== REALISTIC COLOURFUL DIWALI JHALAR FAIRY LIGHTS ============== */
.diwali-lights-bar {
  position: relative;
  width: 100%;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 3, 18, 0.88) 0%, rgba(18, 8, 34, 0.35) 75%, transparent 100%);
}

.diwali-wire-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  width: 100%;
  min-width: 1200px;
  padding: 0 6px;
  position: relative;
}

/* Continuous twisted wire across the top */
.diwali-wire-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #374151 0px, #1F2937 6px, #4B5563 12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.jhalar-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: jhalarSway 3.8s ease-in-out infinite alternate;
}

.jhalar-node:nth-child(even) {
  animation-duration: 4.5s;
  animation-direction: alternate-reverse;
}

.jhalar-cord {
  width: 1.5px;
  height: 7px;
  background: #4B5563;
}

.jhalar-node.long .jhalar-cord {
  height: 12px;
}

.jhalar-cap {
  width: 6px;
  height: 3.5px;
  background: #9CA3AF;
  border-radius: 2px 2px 0 0;
}

.jhalar-bulb {
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 55% 55% / 40% 40% 60% 60%;
  position: relative;
}

/* Inner white hot filament core inside every bulb */
.jhalar-bulb::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2.5px;
  width: 4px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

/* 6 Vivid Diwali Festival Bulb Colors with Multi-Layer Neon Glow */
.bulb-gold {
  background: #FFD600;
  box-shadow: 0 0 8px 2px #FFD600, 0 0 18px 5px rgba(255, 193, 7, 0.68);
  animation: twinkleOne 1.7s ease-in-out infinite;
}

.bulb-pink {
  background: #FF2A85;
  box-shadow: 0 0 8px 2px #FF2A85, 0 0 18px 5px rgba(255, 42, 133, 0.72);
  animation: twinkleTwo 2.1s ease-in-out infinite;
}

.bulb-cyan {
  background: #00E5FF;
  box-shadow: 0 0 8px 2px #00E5FF, 0 0 18px 5px rgba(0, 229, 255, 0.70);
  animation: twinkleThree 1.9s ease-in-out infinite;
}

.bulb-green {
  background: #00E676;
  box-shadow: 0 0 8px 2px #00E676, 0 0 18px 5px rgba(0, 230, 118, 0.68);
  animation: twinkleOne 2.3s ease-in-out infinite 0.4s;
}

.bulb-orange {
  background: #FF6D00;
  box-shadow: 0 0 8px 2px #FF6D00, 0 0 18px 5px rgba(255, 109, 0, 0.72);
  animation: twinkleTwo 1.8s ease-in-out infinite 0.6s;
}

.bulb-violet {
  background: #D500F9;
  box-shadow: 0 0 8px 2px #D500F9, 0 0 18px 5px rgba(213, 0, 249, 0.70);
  animation: twinkleThree 2.2s ease-in-out infinite 0.3s;
}

@keyframes twinkleOne {
  0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1.15); }
  50% { opacity: 0.48; transform: scale(0.92); filter: brightness(0.8); }
}

@keyframes twinkleTwo {
  0%, 100% { opacity: 0.52; transform: scale(0.93); }
  50% { opacity: 1; transform: scale(1.06); filter: brightness(1.22); }
}

@keyframes twinkleThree {
  0%, 65%, 100% { opacity: 1; filter: brightness(1.15); }
  35% { opacity: 0.42; filter: brightness(0.75); }
}

@keyframes jhalarSway {
  from { transform: rotate(-2.2deg); }
  to { transform: rotate(2.2deg); }
}

/* Main Header Row */
.mp-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 66px;
}

.mp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
  flex-shrink: 0;
}

.mp-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFB300, #FF5722);
  color: #120822;
  font-size: 21px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(255, 160, 0, 0.45);
}

.mp-search-bar {
  flex: 1;
  max-width: 560px;
  display: flex;
  height: 43px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-search-bar:focus-within {
  border-color: var(--mp-yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.mp-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mp-navy);
}

.mp-search-btn {
  width: 48px;
  border: none;
  background: var(--mp-orange);
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
}

.mp-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.mp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 41px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mp-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mp-cart-btn {
  position: relative;
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.55);
  color: #FFE082;
}

.mp-cart-count {
  background: var(--mp-orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sub-Header Category Strip */
.mp-cat-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--mp-border);
}

.mp-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 0;
  scrollbar-width: none;
}

.mp-cat-row::-webkit-scrollbar {
  display: none;
}

.mp-cat-tab {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mp-cat-tab:hover {
  border-color: var(--mp-orange);
  color: var(--mp-orange);
}

.mp-cat-tab.is-active {
  background: var(--mp-navy);
  color: #FFFFFF;
  border-color: var(--mp-navy);
}

/* Asymmetric Commercial Bento Hero Section */
.mp-bento-wrap {
  padding: 18px 0 14px;
}

.mp-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px) {
  .mp-bento-grid {
    grid-template-columns: 2.15fr 1fr;
  }
}

.mp-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(125deg, #140B29 0%, #2B1242 52%, #8A2C0E 100%);
  color: #FFFFFF;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mp-slide {
  display: none;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 26px 24px 18px;
  align-items: center;
}

.mp-slide.is-active {
  display: grid;
  animation: mpFadeIn 0.35s ease;
}

@media (min-width: 720px) {
  .mp-slide {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 32px 34px 20px;
  }
}

@keyframes mpFadeIn {
  from { opacity: 0.62; }
  to { opacity: 1; }
}

.mp-flash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mp-yellow);
  color: #0F172A;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mp-slide-h1 {
  font-size: clamp(22px, 2.6vw, 33px);
  font-weight: 800;
  line-height: 1.18;
  margin-top: 12px;
}

.mp-slide-h1 a {
  color: inherit;
  text-decoration: none;
}

.mp-slide-img {
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255, 213, 79, 0.32);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  display: block;
}

.mp-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-cta-orange {
  height: 48px;
  padding: 0 24px;
  border-radius: 11px;
  border: none;
  background: var(--mp-orange);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 87, 34, 0.42);
}

.mp-slider-foot {
  padding: 10px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.mp-dots {
  display: flex;
  gap: 5px;
}

.mp-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: all 0.2s;
}

.mp-dot.is-active {
  width: 22px;
  background: var(--mp-yellow);
}

.mp-side-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 980px) {
  .mp-side-stack {
    grid-template-columns: 1fr;
  }
}

.mp-mini-bento {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 15px;
  border: 1px solid var(--mp-border);
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mp-mini-bento:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.mp-mini-bento img {
  width: 94px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Trust Strip */
.mp-trust-bar {
  background: #FFFFFF;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  padding: 14px 20px;
  margin: 8px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .mp-trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 4-Column Commercial Grid (2-Column Mobile!) */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .mp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1080px) {
  .mp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.mp-card {
  background: #FFFFFF;
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mp-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 18px 34px -12px rgba(15, 23, 42, 0.16);
}

.mp-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  overflow: hidden;
  display: block;
}

.mp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mp-card:hover .mp-media img {
  transform: scale(1.05);
}

.mp-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #140B29;
  color: var(--mp-yellow);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.mp-rating-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mp-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.mp-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mp-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mp-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-title:hover {
  color: var(--mp-orange);
}

.mp-price-block {
  margin-top: auto;
  padding-top: 10px;
}

.mp-btn-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.mp-cart-icon-btn {
  width: 42px;
  height: 41px;
  border-radius: 9px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: var(--mp-navy);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.mp-cart-icon-btn:hover {
  border-color: var(--mp-navy);
  background: #E2E8F0;
}

.mp-buy {
  flex: 1;
  height: 41px;
  border: none;
  border-radius: 9px;
  background: var(--mp-orange);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mp-buy:hover {
  background: var(--mp-orange-hover);
}

/* Dedicated Product Detail Page (product.php) */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: #FFFFFF;
  border: 1px solid var(--mp-border);
  border-radius: 22px;
  padding: 22px;
  margin: 20px 0 34px;
}

@media (min-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr 1.12fr;
    padding: 32px;
    gap: 40px;
  }
}

.pdp-img-stage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  background: #F8FAFC;
  aspect-ratio: 4 / 3;
}

.pdp-img-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-mobile-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  background: #FFFFFF;
  border-top: 1px solid #CBD5E1;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.09);
}

@media (min-width: 768px) {
  .pdp-mobile-sticky {
    display: none;
  }
}

/* Slide-Out Shopping Cart Drawer */
.uk-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 410px;
  z-index: 1150;
  background: #FFFFFF;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
}

.uk-modal-backdrop.open .uk-cart-drawer {
  display: flex;
}

/* Mobile-First Responsive Perfection (360px - 767px) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.mp-bento-grid > *,
.mp-hero-card,
.mp-slide,
.mp-slide > * {
  min-width: 0;
}

@media (max-width: 767px) {
  .mp-container {
    padding: 0 12px;
  }

  .mp-top-ribbon-in {
    font-size: 11px;
    gap: 8px;
  }

  .mp-header-row {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px 11px;
    gap: 9px;
  }

  .mp-logo {
    margin-right: auto;
  }

  .mp-logo-badge {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .mp-actions {
    order: 2;
    gap: 6px;
  }

  .mp-action-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .mp-search-bar {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    height: 40px;
  }

  .mp-hero-stage,
  .mp-slide-inner,
  .mp-slide-copy {
    min-width: 0;
    max-width: 100%;
  }

  .mp-slide-inner {
    padding: 20px 16px 54px !important;
    gap: 16px !important;
  }

  .mp-slide-copy h1,
  .mp-slide-copy h2 {
    font-size: 22px !important;
    word-break: break-word;
  }

  .mp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mp-cta-main {
    width: 100%;
    justify-content: center;
    padding: 0 16px;
    height: 46px;
    font-size: 14px;
  }

  .mp-cta-ghost {
    width: 100%;
    justify-content: center;
    height: 40px;
  }

  .pdp-grid {
    padding: 16px;
    gap: 20px;
    margin-bottom: 70px;
  }

  /* Lift Floating WhatsApp above Mobile Sticky Buy Bar */
  .uk-wa-float {
    bottom: 82px !important;
    right: 12px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
  }
}

