/* category.css — Matches header.php dark fireworks background */
/* Background: deep navy #1E293B (same as header top-header) */
/* Accent: gold #C8A96A / warm amber matching header palette  */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;600&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─────────────────────── */
:root {
    --nc-bg:       #1E293B;
    --nc-gold:     #7dcdff;
    --nc-gold-lt:  #E6C88C;
    --nc-gold-dk:  #a8864a;
    --nc-text:     #f5ecd7;
    --nc-muted:    #9ca3af;
    --nc-dark:     #0f172a;
}
body {
    overflow-x: hidden;
}
/* ─── COUPON RUNNING STRIP ───────────────────────── */
.coupon-code {
    cursor: pointer;
    position: relative;
}

/* tooltip */
.coupon-code::after {
    content: "Click to copy";
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    background: #000;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.coupon-code:hover::after {
    opacity: 1;
}

.coupon-strip {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #1E293B, #0f172a);
    border-bottom: 1px solid rgba(200,169,106,0.3);
    z-index: 10;
}

/* moving track */
.coupon-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: scrollCoupon 18s linear infinite;
    padding: 10px 0;
}

/* text style */
.coupon-track span {
    color: yellow;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    
font-family: 'Fredoka', sans-serif;
    position: relative;
}

/* glowing separator dot */
.coupon-track span::after {
    content: "•";
    margin-left: 40px;
    color: rgba(200,169,106,0.5);
}

/* animation */
@keyframes scrollCoupon {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* hover pause (premium feel) */
.coupon-strip:hover .coupon-track {
    animation-play-state: paused;
}

/* glow effect */
.coupon-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(200,169,106,0.15), transparent 70%);
    pointer-events: none;
}

/* ══════════════════════════════════════════
   OUTER WRAPPER
══════════════════════════════════════════ */
.corner-overlay {
    position: absolute;
    top: 0;
    z-index: 5;
    pointer-events: none;           /* Allows clicking through */
    opacity: 0.95;
    transition: transform 0.4s ease;
}

.corner-left {
    left: 0;
    width: 210px;
    transform: rotate(-25deg) scaleX(-1);
    animation: floatLeft 6s ease-in-out infinite;
}

.corner-right {
    right: 0;
    width: 210px;
    transform: rotate(25deg);
    animation: floatRight 6s ease-in-out infinite;
}
@keyframes floatLeft {
    0% {
        transform: rotate(-25deg) translate(0, 0) scaleX(-1);
    }
    50% {
        transform: rotate(-25deg) translate(-10px, -15px) scaleX(-1);
    }
    100% {
        transform: rotate(-25deg) translate(0, 0) scaleX(-1);
    }
}

@keyframes floatRight {
    0% {
        transform: rotate(25deg) translate(0, 0);
    }
    50% {
        transform: rotate(25deg) translate(10px, -15px);
    }
    100% {
        transform: rotate(25deg) translate(0, 0);
    }
}
/* Optional hover effect */
.nc-wrap:hover .corner-left {
    transform: translateY(-10px) scale(1.03);
}

.nc-wrap:hover .corner-right {
    transform: translateY(-10px) scale(1.03);
}

/* Make sure canvas stays behind content */
#catFireCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: transparent;           /* ← Important */
    mix-blend-mode: screen;            /* Optional: gives nice glow */
}

.nc-inner {
    position: relative;
    z-index: 2;
}


/* ══════════════════════════════════════════
   FIREWORKS CANVAS
══════════════════════════════════════════ */
#catFireCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════════════
   SHOOTING STARS
══════════════════════════════════════════ */
.shooting-star {
    position: absolute;
    width: 120px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #fff 60%, #ffd700);
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform-origin: right center;
}

.ss1 { top: 15%; left: -10%; animation: catShoot 7s   linear 1s   infinite; transform: rotate(-15deg); }
.ss2 { top: 32%; left:  -5%; animation: catShoot 8.5s linear 4.2s infinite; transform: rotate(-20deg); width: 80px; }

@keyframes catShoot {
    0%   { opacity: 0; transform: translateX(0)     rotate(-15deg); }
    5%   { opacity: 1; }
    28%  { opacity: 0; transform: translateX(110vw) rotate(-15deg); }
    100% { opacity: 0; transform: translateX(110vw) rotate(-15deg); }
}

/* ══════════════════════════════════════════
   INNER CONTENT LAYER
══════════════════════════════════════════ */
.nc-inner {
    position: relative;
    z-index: 2;
}

.nc-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
            color: #ff0000;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.4),
        0 0 20px rgba(200,169,106,0.15);
}

.nc-title span {
    color: yellow;
    position: relative;
}

.nc-title span::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--nc-gold), var(--nc-gold-dk));
    border-radius: 2px;
}

/* ─── DIVIDER BAR ───────────────────────── */
.nc-bar {
    width: 110px;
    height: 3px;
    margin: 26px auto 40px;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, var(--nc-gold), var(--nc-gold-lt), var(--nc-gold), transparent);
    box-shadow:
        0 0 12px rgba(200,169,106,0.5),
        0 0 28px rgba(200,169,106,0.2);
    animation: bar-breathe 5s ease-in-out infinite;
}

.nc-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: translateX(-100%) skewX(-25deg);
    animation: bar-shine 3s ease-in-out infinite;
}

@keyframes bar-shine {
    0%   { transform: translateX(-120%) skewX(-25deg); }
    100% { transform: translateX(120%)  skewX(-25deg); }
}

@keyframes bar-breathe {
    0%,100% { transform: scaleX(1);    opacity: 0.9; }
    50%      { transform: scaleX(1.08); opacity: 1;   }
}

/* ══════════════════════════════════════════
   CAROUSEL STRUCTURE
══════════════════════════════════════════ */
.nc-carousel {
    position: relative;
    overflow: hidden;
}

.nc-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nc-slide  { min-width: 100%; }

.nc-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
}

/* ══════════════════════════════════════════
   CATEGORY COLUMN
══════════════════════════════════════════ */
.cat-col {
    width: 110px;
    text-align: center;
    cursor: pointer;
}

/* ══════════════════════════════════════════
   RING
══════════════════════════════════════════ */
.cat-ring {
    position: relative;
    width: 100px;
    height: 96px;
    margin: 0 auto 10px;
}

/* ══════════════════════════════════════════
   CATEGORY IMAGE / EMOJI CIRCLE
══════════════════════════════════════════ */
.cat-img {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background: linear-gradient(145deg, #0f1929, #1b2a40);
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 0 10px rgba(255,255,255,0.05),
        0 0 0 2px rgba(200,169,106,0.25),
        0 10px 30px rgba(0,0,0,0.7);
    transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

.cat-col:hover .cat-img {
    transform: translateY(-2px) scale(1.1) rotateX(8deg);
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.08),
        0 0 0 3px rgba(200,169,106,0.7),
        0 0 0 8px rgba(200,169,106,0.15),
        0 25px 60px rgba(0,0,0,0.9);
}

/* ══════════════════════════════════════════
   FIRE PARTICLE CANVAS (JS-created per circle)
══════════════════════════════════════════ */
.fire-canvas {
    position: absolute;
    inset: -6px;
    width:  calc(100% + 12px);
    height: calc(100% + 12px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cat-col:hover .fire-canvas { opacity: 1; }

/* ══════════════════════════════════════════
   CATEGORY LABEL
══════════════════════════════════════════ */
.cat-label {
    padding-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: yellow;
     font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
}

.cat-col:hover .cat-label {
    color: yellow;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   CAROUSEL CONTROLS
══════════════════════════════════════════ */
.nc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.nc-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200,169,106,0.4);
    color: #f0e8d0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nc-btn:hover {
    background: linear-gradient(135deg, var(--nc-gold), var(--nc-gold-lt));
    color: var(--nc-bg);
    box-shadow:
        0 0 12px rgba(200,169,106,0.6),
        0 0 24px rgba(200,169,106,0.3);
    transform: scale(1.15);
}

/* ══════════════════════════════════════════
   CAROUSEL DOTS
══════════════════════════════════════════ */
.nc-dots { display: flex; gap: 6px; align-items: center; }

.nc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200,169,106,0.25);
    transition: all 0.3s ease;
}

.nc-dot.active {
    width: 26px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--nc-gold), var(--nc-gold-lt));
}

/* ══════════════════════════════════════════════════════════════
   ██████  RESPONSIVE — ALL BREAKPOINTS
   ══════════════════════════════════════════════════════════════

   XL  Desktop   : ≥ 1400px
   LG  Desktop   : 1200px – 1399px
   MD  Laptop    :  992px – 1199px   (was 992px breakpoint)
   SM  Tablet    :  768px –  991px   (was 768px breakpoint)
   XS  Mobile L  :  576px –  767px
   2XS Mobile S  :  400px –  575px   (was 576px breakpoint)
   3XS Mobile XS :        ≤  399px   (new — small phones)
══════════════════════════════════════════════════════════════ */

/* ── XL: Large desktops & widescreen ≥ 1400px ────────────── */
@media (min-width: 1400px) {
    .nc-wrap {
        padding: 25px;
        min-height: 460px;
    }

    .nc-title  { font-size: 2.9rem; }
    .nc-bar    { width: 130px; margin-bottom: 48px; }

    .cat-col   { width: 128px; }
    .cat-ring  { width: 116px; height: 112px; }
    .cat-img   { width: 116px; height: 116px; font-size: 2.8rem; }

    .nc-row    { gap: 22px; }

    .nc-btn    { width: 46px; height: 46px; font-size: 1.3rem; }

    .coupon-track span { font-size: 14px; }
}

/* ── LG: Standard desktops 1200px – 1399px ───────────────── */
@media (min-width: 1200px) and (max-width: 1399px) {
    .nc-wrap   { padding: 20px; }
    .nc-title  { font-size: 2.6rem; }
    .cat-col   { width: 118px; }
    .cat-ring,
    .cat-img   { width: 108px; height: 108px; }
    .cat-img   { font-size: 2.6rem; }
    .nc-row    { gap: 18px; }
}

/* ── MD: Laptops / small desktops 992px – 1199px ─────────── */
@media (max-width: 1199px) and (min-width: 993px) {
    .nc-wrap   { padding: 20px; }
    .nc-title  { font-size: 2.2rem; }
    .cat-col   { width: 110px; }
    .cat-ring,
    .cat-img   { width: 100px; height: 100px; }
    .cat-img   { font-size: 2.4rem; }
    .nc-row    { gap: 14px; }
}

/* ── SM: Tablets landscape & portrait 768px – 992px ─────── */
@media (max-width: 992px) {
    .nc-wrap   { padding: 20px; }
    .nc-title  { font-size: 2rem; }
    .nc-bar    { width: 95px; margin-bottom: 32px; }

    .cat-col   { width: 100px; }
    .cat-ring  { width: 90px; height: 86px; }
    .cat-img   { width: 90px; height: 90px; font-size: 2.2rem; }
    .cat-label { font-size: 0.9rem; padding-top: 16px; }

    .nc-row    { gap: 12px; padding: 12px 0; }

    .nc-btn    { width: 36px; height: 36px; font-size: 1.1rem; }
    .nc-controls { margin-top: 18px; gap: 10px; }

    .coupon-track { gap: 40px; }
    .coupon-track span { font-size: 12px; }
}

/* ── XS: Large mobiles / small tablets 576px – 767px ────── */
@media (max-width: 768px) {
    .nc-wrap   { padding: 15px; min-height: 320px; 
    position: relative;
    overflow: hidden;
    max-width: 100%;}
    .nc-title  { font-size: 1.85rem; }
    .nc-bar    { width: 88px; margin: 20px auto 28px; }

    .cat-col   { width: 94px; }
    .cat-ring  { width: 82px; height: 78px; }
    .cat-img   { width: 82px; height: 82px; font-size: 2rem; }
    .cat-label { font-size: 0.82rem; padding-top: 14px; }

    .nc-row    { gap: 10px; padding: 10px 0; }

    .nc-btn    { width: 34px; height: 34px; font-size: 1.1rem; }
    .nc-controls { gap: 8px; margin-top: 16px; }
    .nc-dot    { width: 7px; height: 7px; }
    .nc-dot.active { width: 22px; }

    .coupon-track { gap: 30px; padding: 8px 0; }
    .coupon-track span { font-size: 11.5px; letter-spacing: 0.05em; }

    /* reduce shooting star size on smaller screens */
    .shooting-star { width: 80px; }
    .ss2 { width: 55px; }

    .corner-left {
    left: 0;
    width: 80px;
    transform: rotate(-25deg) scaleX(-1);
    animation: floatLeft 6s ease-in-out infinite;
}

.corner-right {
    right: 0;
    width: 80px;
    transform: rotate(25deg);
    animation: floatRight 6s ease-in-out infinite;
}
}

/* ── 2XS: Standard mobiles 400px – 575px ─────────────────── */
@media (max-width: 576px) {
    .nc-wrap   { padding: 15px; min-height: 280px; }
    .nc-title  { font-size: 1.55rem; }
    .nc-bar    { width: 76px; height: 2.5px; margin: 16px auto 22px; }

    .cat-col   { width: 82px; }
    .cat-ring  { width: 72px; height: 68px; }
    .cat-img   { width: 72px; height: 72px; font-size: 1.75rem; }
    .cat-label { font-size: 0.73rem; padding-top: 12px; }

    .nc-row    { gap: 8px; padding: 8px 0; }

    .nc-btn    { width: 32px; height: 32px; font-size: 1rem; }
    .nc-controls { gap: 6px; margin-top: 14px; }
    .nc-dot    { width: 6px; height: 6px; }
    .nc-dot.active { width: 18px; }

    .coupon-track { gap: 24px; padding: 7px 0; }
    .coupon-track span { font-size: 11px; letter-spacing: 0.04em; }
    /* Reduce animation gap */
    .coupon-track span::after { margin-left: 24px; }

    .shooting-star { display: none; } /* hide on small phones */
}

/* ── 3XS: Very small mobiles ≤ 399px ─────────────────────── */
@media (max-width: 399px) {
    .nc-wrap   { padding: 15px; min-height: 240px; }
    .nc-title  { font-size: 1.3rem; letter-spacing: -0.01em; }
    .nc-bar    { width: 60px; height: 2px; margin: 14px auto 18px; }

    .cat-col   { width: 70px; }
    .cat-ring  { width: 62px; height: 58px; }
    .cat-img   { width: 62px; height: 62px; font-size: 1.5rem; }
    .cat-label { font-size: 0.65rem; padding-top: 10px; }

    .nc-row    { gap: 6px; padding: 6px 0; }

    .nc-btn    { width: 28px; height: 28px; font-size: 0.9rem; }
    .nc-controls { gap: 4px; margin-top: 12px; }
    .nc-dots   { gap: 4px; }
    .nc-dot    { width: 5px; height: 5px; }
    .nc-dot.active { width: 14px; }

    .coupon-track { gap: 18px; padding: 6px 0; }
    .coupon-track span { font-size: 10px; letter-spacing: 0.03em; }
    .coupon-track span::after { margin-left: 18px; }
}

/* ══════════════════════════════════════════
   REDUCED MOTION — Accessibility
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .coupon-track          { animation: none; }
    .nc-bar, .nc-bar::after { animation: none; }
    .shooting-star         { display: none; }
    .nc-slides             { transition: none; }
    .cat-img               { transition: none; }
    .cat-col:hover .cat-img {
        transform: none;
    }
}

/* ══════════════════════════════════════════
   LANDSCAPE PHONE OVERRIDE
   Handles short-height landscape mode on phones
══════════════════════════════════════════ */
@media (max-width: 767px) and (orientation: landscape) {
    .nc-wrap   { padding: 12px; min-height: unset; }
    .nc-title  { font-size: 1.4rem; }
    .nc-bar    { margin: 10px auto 16px; }

    .cat-ring  { width: 64px; height: 60px; }
    .cat-img   { width: 64px; height: 64px; font-size: 1.55rem; }
    .cat-col   { width: 76px; }
    .cat-label { font-size: 0.7rem; padding-top: 8px; }

    .nc-row    { gap: 8px; padding: 6px 0; }
    .nc-controls { margin-top: 10px; }

    .shooting-star { display: none; }
}