/**
 * Khan Dry Fruit — Multi-color Timer + Spacing Fix (3 Oct 2026)
 * 1. Each timer unit different color
 * 2. Right-side carousel spacing fix
 * 3. Applies to DOTD, Clearance, Featured, Flash sale
 */

/* ===== Multi-Color Timer Units ===== */
/* DAYS: Deep forest green (brand) */
.nv-dotd-premium__unit[data-unit="days"] b,
.nv-camp-premium__unit[data-unit="days"] b {
  background: linear-gradient(135deg, #0f3d2e, #166534) !important;
}

/* HRS: Rich amber/gold */
.nv-dotd-premium__unit[data-unit="hours"] b,
.nv-camp-premium__unit[data-unit="hours"] b {
  background: linear-gradient(135deg, #b45309, #d97706) !important;
}

/* MIN: Deep blue */
.nv-dotd-premium__unit[data-unit="mins"] b,
.nv-camp-premium__unit[data-unit="mins"] b {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
}

/* SEC: Urgent red */
.nv-dotd-premium__unit[data-unit="secs"] b,
.nv-camp-premium__unit[data-unit="secs"] b {
  background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
}

/* Timer numbers: white, bold, readable */
.nv-dotd-premium__unit b,
.nv-camp-premium__unit b {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* ===== Right-Side Spacing Fix (Mobile) ===== */
@media (max-width: 768px) {
  /* Product carousel: proper padding so cards don't cut awkwardly */
  .nv-deal__cards,
  .nv-product-carousel,
  .owl-carousel,
  .swiper-wrapper {
    padding-right: 16px !important;
  }

  /* Deal section: balanced padding */
  .nv-dotd-premium__inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Timer: full width, no overflow */
  .nv-dotd-premium__clock,
  .nv-camp-premium__clock {
    max-width: 100% !important;
    overflow: hidden;
  }

  .nv-dotd-premium__units,
  .nv-camp-premium__units {
    max-width: 100% !important;
  }
}

/* ===== Timer full-width on mobile (3 Oct 2026) ===== */
@media (max-width: 768px) {
  .nv-dotd-premium__urgency {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .nv-dotd-premium__clock {
    width: 100% !important;
    max-width: 100% !important;
  }
  .nv-dotd-premium__units {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .nv-dotd-premium__unit {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

/* ===== Timer FULL width - aggressive (3 Oct 2026) ===== */
@media (max-width: 768px) {
  .nv-dotd-premium__left {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .nv-dotd-premium__urgency {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  .nv-dotd-premium__clock {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

/* ===== Timer Next-Level Design (3 Oct 2026) ===== */
@media (max-width: 768px) {
  /* Premium card with subtle gradient */
  .nv-dotd-premium__clock {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf9 100%) !important;
    border: 1px solid rgba(15, 61, 46, 0.1) !important;
    box-shadow: 
      0 2px 8px rgba(15, 61, 46, 0.06),
      0 12px 32px rgba(15, 61, 46, 0.1) !important;
    padding: 16px 14px 14px !important;
    border-radius: 20px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  /* Subtle top accent line */
  .nv-dotd-premium__clock::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #166534, #d97706, #2563eb, #dc2626) !important;
    border-radius: 20px 20px 0 0 !important;
  }
  
  /* Larger, bolder numbers */
  .nv-dotd-premium__unit b {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    font-variant-numeric: tabular-nums !important;
  }
  
  /* Premium gradient timer boxes */
  .nv-dotd-premium__unit {
    border-radius: 16px !important;
    box-shadow: 
      0 2px 6px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transition: transform 0.2s ease !important;
  }
  .nv-dotd-premium__unit:active {
    transform: scale(0.96) !important;
  }
  
  /* Refined labels */
  .nv-dotd-premium__unit span {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    margin-top: 6px !important;
  }
  
  /* Better clock header */
  .nv-dotd-premium__clock-top {
    margin-bottom: 12px !important;
  }
  .nv-deal__clock-label {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }
  
  /* Smooth seconds pulse */
  .nv-dotd-premium__unit[data-unit="seconds"] b {
    animation: kdfTick 1s ease-in-out infinite !important;
  }
  @keyframes kdfTick {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }
}
