/* ============================================================
   DISCOUNT PAGE — discount.css  (Cyberskins redesign)
   Accent: var(--cs-red) | Fonts: Barlow Condensed / Manrope
   All new dsc-* classes — old disc-* / featured-deal / flash-card removed
   ============================================================ */

/* ── btn-cs font fix (Barlow on this page) ── */
.dsc-promo .btn-cs,
.dsc-promo .btn-cs-ghost {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0.10em !important;
}

/* ── Shared container padding ── */
.dsc-hero .container,
.dsc-promo .container,
.dsc-bar  .container,
.dsc-vault .container,
.dsc-urgent .container {
    padding-inline: clamp(20px, 5vw, 60px);
}

/* ── prod-card on discount page: old/new price layout ── */
.dsc-vault .prod-price-row,
.dsc-strip .prod-price-row {
    align-items: flex-end;
}

.dsc-vault .prod-prices,
.dsc-strip .prod-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dsc-vault .prod-old,
.dsc-strip .prod-old {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    text-decoration: line-through;
    line-height: 1;
}

.dsc-vault .prod-price,
.dsc-strip .prod-price {
    color: var(--cs-red, #F5222D);
}


/* ============================================================
   1. HERO — centered layout (About Us style)
   ============================================================ */
.dsc-hero {
    position: relative;
    background: var(--cs-bg-0, #080A0E);
    padding-top: calc(var(--header-h, 80px) + 80px);
    padding-bottom: 96px;
    overflow: hidden;
    text-align: center;
}

/* Red radial glow at top center */
.dsc-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 460px;
    background: radial-gradient(ellipse at top, rgba(245,34,45,0.11) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Scanlines */
.dsc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.010) 2px,
        rgba(255,255,255,0.010) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.dsc-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.dsc-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(54px, 8vw, 100px);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin-bottom: 32px;
}

.dsc-hero__title em {
    color: var(--cs-red, #F5222D);
    font-style: normal;
}

.dsc-hero__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--cs-txt2, #8B8F9A);
    max-width: 520px;
    margin: 0 auto 40px;
}

/* Active deals counter pill */
.dsc-hero__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    padding: 8px 20px;
    background: rgba(245,34,45,0.08);
    border: 1px solid rgba(245,34,45,0.20);
}

.dsc-hero__stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--cs-red, #F5222D);
    line-height: 1;
}

.dsc-hero__stat-lbl {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cs-txt3, #4A4E5A);
}


/* ============================================================
   2. DEAL OF THE DAY — asymmetric split block
   ============================================================ */
.dsc-promo {
    background: var(--cs-bg-0, #080A0E);
    border-top: 1px solid rgba(245,34,45,0.22);
    border-bottom: 1px solid rgba(245,34,45,0.08);
    position: relative;
    overflow: hidden;
}

.dsc-promo__wrap {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 480px;
    position: relative;
}

/* Glowing diagonal separator between panels */
.dsc-promo__wrap::before {
    content: '';
    position: absolute;
    left: 55%;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(245,34,45,0.45) 50%,
        transparent 100%
    );
    transform: skewX(-5deg);
    pointer-events: none;
    z-index: 3;
}

/* LEFT: image stage — darker bg to contrast with glow */
.dsc-promo__stage {
        background: url(/wp-content/themes/woodmart-child/img/pattern-red.png) center / cover no-repeat, var(--cs-bg-card);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(50px, 6vw, 80px) clamp(36px, 4.5vw, 64px);
    overflow: hidden;
}

/* Noise on left panel */
.dsc-promo__stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Red radial glow behind product image */
.dsc-promo__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(245,34,45,0.32) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Floating product image */
.dsc-promo__img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 24px 80px rgba(245,34,45,0.55));
    animation: dsc-float 5.5s ease-in-out infinite;
}

@keyframes dsc-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-18px) rotate(-5deg); }
}

/* RIGHT: data panel */
.dsc-promo__data {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 5vw, 70px) clamp(32px, 4vw, 60px) clamp(40px, 5vw, 70px) clamp(50px, 6vw, 80px);
    overflow: hidden;
}

/* Giant "−XX%" watermark behind content */
.dsc-promo__wm {
    position: absolute;
    bottom: -40px;
    right: -20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(100px, 17vw, 220px);
    font-weight: 900;
    color: rgba(245,34,45,0.06);
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
}

/* "Deal of the Day" eyebrow */
.dsc-promo__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cs-red, #F5222D);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.dsc-promo__eyebrow-bar {
    width: 22px;
    height: 2px;
    background: var(--cs-red, #F5222D);
    flex-shrink: 0;
}

.dsc-promo__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cs-red, #F5222D);
    animation: dsc-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dsc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.6); }
}

/* Product name */
.dsc-promo__name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

/* Category pill */
.dsc-promo__cat {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cs-txt3, #4A4E5A);
    padding: 3px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

/* Price row */
.dsc-promo__prices {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dsc-promo__new {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(44px, 5.5vw, 68px);
    font-weight: 800;
    color: var(--cs-txt, #F0F2F8);
    letter-spacing: 0.01em;
    line-height: 1;
}

.dsc-promo__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(245,34,45,0.14);
    border: 1px solid rgba(245,34,45,0.40);
    color: var(--cs-red, #F5222D);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    align-self: center;
}

.dsc-promo__old {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.24);
    text-decoration: line-through;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* CTA row */
.dsc-promo__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Wishlist button (btn-cs-ghost extended) */
.dsc-promo__wish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dsc-promo__wish svg,
.dsc-promo__wish svg path {
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* In-stock indicator */
.dsc-promo__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: rgba(245,34,45,0.07);
    border: 1px solid rgba(245,34,45,0.20);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cs-red, #F5222D);
}

.dsc-promo__stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cs-red, #F5222D);
    animation: dsc-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}


/* ============================================================
   3. CONTROLS BAR — sticky
   ============================================================ */
.dsc-bar {
    position: sticky;
    top: var(--header-h, 80px);
    z-index: 50;
    background: rgba(8,10,14,0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
}

.dsc-bar__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Deal count */
.dsc-bar__count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cs-red, #F5222D);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
}

/* Filter chips row */
.dsc-filters {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dsc-filters::-webkit-scrollbar { display: none; }

.dsc-chip {
    flex-shrink: 0;
    height: 28px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
    color: var(--cs-txt3, #4A4E5A);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.dsc-chip:hover {
    background: rgba(255,255,255,0.05);
    color: var(--cs-txt2, #8B8F9A);
    border-color: var(--cs-bdr2, rgba(255,255,255,0.13));
}

.dsc-chip--on {
    background: rgba(245,34,45,0.10);
    border-color: rgba(245,34,45,0.35);
    color: var(--cs-red, #F5222D);
}

/* Sort select */
.dsc-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dsc-sort__label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: var(--cs-txt3, #4A4E5A);
    white-space: nowrap;
}

.dsc-sort__select {
    height: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
    color: var(--cs-txt, #F0F2F8);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    padding: 0 24px 0 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px;
    min-width: 160px;
    transition: border-color .2s;
}

.dsc-sort__select:focus { border-color: rgba(245,34,45,0.4); outline: none; }
.dsc-sort__select option { background: var(--cs-bg-card, #0D1018); }


/* ============================================================
   4. ALL DEALS GRID
   ============================================================ */
.dsc-vault {
    padding: 44px 0 clamp(60px, 8vw, 100px);
    background: var(--cs-bg-0, #080A0E);
}

/* Section header with extending line */
.dsc-vault__hd {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.dsc-vault__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    white-space: nowrap;
}

.dsc-vault__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--cs-bdr2, rgba(255,255,255,0.13)), transparent);
}

/* Product grid — 4 columns */
.dsc-vault__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    min-height: 200px;
}

/* Discount badge on product-card */
.dsc-pct {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 6;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 4px 9px;
    background: var(--cs-red, #F5222D);
    color: #fff;
    pointer-events: none;
}


/* ── PAGINATION ── */
.dsc-pager {
    margin-top: 40px;
}

.dsc-pager .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.dsc-pager .page-numbers li { display: flex; }

.dsc-pager .page-numbers li a,
.dsc-pager .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--cs-txt2, #8B8F9A);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
    text-decoration: none;
    transition: all .2s;
}

.dsc-pager .page-numbers li a:hover {
    background: rgba(245,34,45,0.10);
    border-color: rgba(245,34,45,0.38);
    color: var(--cs-red, #F5222D);
    text-decoration: none;
}

.dsc-pager .page-numbers li .current {
    background: var(--cs-red, #F5222D);
    border-color: var(--cs-red, #F5222D);
    color: #fff;
    font-weight: 700;
}

.dsc-pager .page-numbers li .dots {
    border: none;
    background: none;
    color: var(--cs-txt3, #4A4E5A);
    cursor: default;
}


/* ── EMPTY STATE ── */
.dsc-empty {
    text-align: center;
    padding: 72px 20px;
}

.dsc-empty__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin-bottom: 12px;
}

.dsc-empty__sub {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: var(--cs-txt2, #8B8F9A);
}


/* ============================================================
   5. FLASH DEALS — horizontal scroll strip
   ============================================================ */
.dsc-urgent {
    background: var(--cs-bg-0, #080A0E);
    border-top: 2px solid rgba(245,34,45,0.25);
    padding: 48px 0 64px;
}

/* Header row */
.dsc-urgent__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dsc-urgent__badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Pulsing red dot */
.dsc-urgent__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cs-red, #F5222D);
    box-shadow: 0 0 12px rgba(245,34,45,0.70);
    animation: dsc-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.dsc-urgent__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
}

.dsc-urgent__sub {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: var(--cs-txt3, #4A4E5A);
    flex: 1;
}

/* Prev / Next arrow buttons */
.dsc-strip-nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dsc-strip-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
    color: var(--cs-txt2, #8B8F9A);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, opacity .2s;
    flex-shrink: 0;
}

.dsc-strip-btn:hover {
    background: rgba(245,34,45,0.08);
    border-color: rgba(245,34,45,0.35);
    color: var(--cs-red, #F5222D);
}

.dsc-strip-btn:disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Scroll strip with right-edge fade */
.dsc-strip-wrap {
    position: relative;
}

.dsc-strip-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to left, var(--cs-bg-0, #080A0E), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Horizontal scroll */
.dsc-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.dsc-strip::-webkit-scrollbar { display: none; }

/* Each strip item: ~4 visible on desktop */
.dsc-strip__item {
    flex-shrink: 0;
    width: clamp(220px, calc(25% - 11px), 300px);
    scroll-snap-align: start;
}

.dsc-strip__item .product-card {
    height: 100%;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .dsc-vault__grid    { grid-template-columns: repeat(3, 1fr); }
    .dsc-strip__item    { width: clamp(220px, calc(33% - 10px), 280px); }
}

@media (max-width: 960px) {
    /* Promo: stack vertically, image on top */
    .dsc-promo__wrap {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dsc-promo__wrap::before { display: none; }

    .dsc-promo__stage {
        min-height: 280px;
        padding: 50px 30px 40px;
    }

    .dsc-promo__img { max-width: 260px; }

    .dsc-promo__data {
        padding: 40px clamp(20px, 4vw, 48px);
    }

    .dsc-promo__wm { font-size: 100px; bottom: -20px; right: -10px; }

    .dsc-vault__grid { grid-template-columns: repeat(2, 1fr); }
    .dsc-strip__item { width: clamp(200px, calc(50% - 7px), 280px); }
}

@media (max-width: 768px) {
    .dsc-bar__inner { flex-wrap: wrap; gap: 8px; }
    .dsc-bar__count { border-right: none; padding-right: 0; }
    .dsc-sort { order: 3; width: 100%; }
    .dsc-sort__select { width: 100%; min-width: unset; }

    .dsc-urgent__sub { display: none; }
}

@media (max-width: 640px) {
    .dsc-promo__new { font-size: clamp(38px, 11vw, 56px); }

    .dsc-promo__actions { flex-direction: column; align-items: flex-start; }
    .dsc-promo__buy,
    .dsc-promo__wish { width: 100%; justify-content: center; }

    .dsc-vault__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .dsc-strip__item { width: calc(75vw - 20px); }

    .dsc-strip-nav { display: none; }
}

@media (max-width: 400px) {
    .dsc-vault__grid { gap: 8px; }
}
