/* ==========================================================
   Offer Engine — Frontend-Only Styles
   Loaded only on shop/product/archive pages (not admin).
   Google Fonts loaded via wp_enqueue_style (non-blocking preload).
   ========================================================== */

/* ==========================================================
   ──────────── FRONTEND STYLES ────────────
   ========================================================== */

/* ==========================================================
   PAGE WRAPPER
   ========================================================== */

.sxdo-page-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}


/* ==========================================================
   DESIGN TOKENS — v8.1 "Lumen Glass"
   These were previously referenced but never defined, which
   silently broke cards, banners and message panels.
   ========================================================== */
.sxdo-page-wrap,
.softx-offer-container,
.sxdo-pcd,
.sxdo-notice-bar,
.sxdo-mini-bar,
.sxdo-nav-btn,
.sxdo-hero {
    --sxdo-radius: 20px;
    --sxdo-radius-md: 14px;
    --sxdo-radius-sm: 10px;
    --sxdo-text: #14151a;
    --sxdo-muted: #6b7280;
    --sxdo-border: rgba(17, 18, 24, .09);
    --sxdo-glass: rgba(255, 255, 255, .62);
    --sxdo-glass-strong: rgba(255, 255, 255, .82);
    --sxdo-shadow: 0 18px 44px -26px rgba(17, 18, 24, .38);
    --sxdo-shadow-lg: 0 30px 70px -38px rgba(17, 18, 24, .5);
    --sxdo-font-display: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
    --sxdo-font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================
   ANIMATED OFFER MARK — replaces the old external fire GIF
   ========================================================== */
@keyframes sxdoMarkBeat  { 0%,100% { transform: scale(1) rotate(0deg); } 42% { transform: scale(1.1) rotate(-6deg); } 64% { transform: scale(.98) rotate(3deg); } }
@keyframes sxdoMarkTwink { 0%,100% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1); } }
@keyframes sxdoMarkHalo  { 0%   { opacity: .55; transform: scale(.72); } 100% { opacity: 0; transform: scale(1.5); } }

.sxdo-offer-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
    vertical-align: middle;
}
.sxdo-offer-mark::before {
    content: '';
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sxdo-mark-a, #ff5f6d), transparent 70%);
    animation: sxdoMarkHalo 2.4s ease-out infinite;
    pointer-events: none;
}
.sxdo-offer-mark-svg { position: relative; display: block; overflow: visible; }
.sxdo-mark-tag { transform-origin: 16px 16px; animation: sxdoMarkBeat 2.4s cubic-bezier(.4,0,.2,1) infinite; }
.sxdo-mark-spark   { animation: sxdoMarkTwink 2.4s ease-in-out infinite; transform-origin: center; }
.sxdo-mark-spark-1 { animation-delay: .25s; transform-origin: 28px 24px; }
.sxdo-mark-spark-2 { animation-delay: 1.1s; transform-origin: 4.5px 6.3px; }

/* ==========================================================
   HERO + COUNTDOWN — v8.1 "Lumen Glass"
   Light glassmorphism: frosted white panels over soft colour
   orbs, 20px radii, dark ink type. All colours come from the
   theme variables injected by PHP.
   ========================================================== */

@keyframes sxdoPulse    { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.35; transform:scale(.72); } }
@keyframes sxdoBeam     { 0%,100% { transform:translateX(-6%); opacity:.55; } 50% { transform:translateX(6%); opacity:.9; } }
@keyframes sxdoSealSpin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes sxdoOrbFloat { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(18px,-22px,0) scale(1.08); } }
@keyframes sxdoTileIn   { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.sxdo-hero {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 20px;
    margin: 0 !important;
    padding: 0;
    background: linear-gradient(135deg, rgba(255,95,109,.10) 0%, rgba(255,255,255,.72) 42%, rgba(255,195,113,.14) 100%);
    backdrop-filter: blur(26px) saturate(150%);
    border: 1px solid rgba(255,255,255,.6);
    color: var(--sxdo-text, #14151a);
    box-shadow: var(--sxdo-shadow-lg), 0 1px 0 rgba(255,255,255,.9) inset;
    isolation: isolate;
}
.sxdo-hero * { box-sizing: border-box; }
.sxdo-hero .sxdo-fire-gif { display: none !important; }

/* Soft colour orbs behind the frost */
.sxdo-hero-orb {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(46px);
    pointer-events: none;
    animation: sxdoOrbFloat 16s ease-in-out infinite;
}
.sxdo-hero-orb-a { width: 340px; height: 340px; top: -140px; right: -60px; background: radial-gradient(circle, rgba(255,95,109,.35), transparent 70%); }
.sxdo-hero-orb-b { width: 300px; height: 300px; bottom: -150px; left: -70px; background: radial-gradient(circle, rgba(255,195,113,.25), transparent 70%); animation-delay: -7s; }

/* Diagonal light beam */
.sxdo-hero-beam {
    position: absolute;
    inset: -30% -20%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255,95,109,.18) 34%, rgba(255,195,113,.22) 58%, transparent 80%);
    filter: blur(44px);
    animation: sxdoBeam 16s ease-in-out infinite;
}
/* Fine hairline grid texture */
.sxdo-hero-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .6;
    background-image: repeating-linear-gradient(115deg,
        rgba(17,18,24,.035) 0px, rgba(17,18,24,.035) 1px,
        transparent 1px, transparent 11px);
    mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
}

/* Status tints */
.sxdo-hero-live::after,
.sxdo-hero-upcoming::after,
.sxdo-hero-ended::after,
.sxdo-hero-inactive::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 0; pointer-events: none;
}
.sxdo-hero-live::after     { background: radial-gradient(120% 90% at 100% 0%, rgba(255,95,109,.12), transparent 60%); }
.sxdo-hero-upcoming::after { background: radial-gradient(120% 90% at 100% 0%, rgba(99,102,241,.14), transparent 60%); }
.sxdo-hero-ended::after,
.sxdo-hero-inactive::after { background: radial-gradient(120% 90% at 100% 0%, rgba(148,163,184,.14), transparent 60%); }

/* ── Top rail ── */
.sxdo-hero-rail {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(17,18,24,.07);
    font-family: var(--sxdo-font-body);
}
.sxdo-hero-rail-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sxdo-accent, #ff5f6d);
    box-shadow: 0 0 0 4px rgba(255,95,109,.22);
    animation: sxdoPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.sxdo-hero-rail-name {
    font-size: 11px; font-weight: 800;
    letter-spacing: 2.6px; text-transform: uppercase;
    color: rgba(17,18,24,.78);
}
.sxdo-hero-rail-div { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(17,18,24,.12), transparent); }
.sxdo-hero-rail-status {
    font-size: 10px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px;
    border: 1px solid rgba(17,18,24,.12);
    background: rgba(255,255,255,.6);
    color: rgba(17,18,24,.6);
    white-space: nowrap;
}
.sxdo-hero-rail-live     { color: #b42318; border-color: rgba(255,95,109,.35); background: rgba(255,95,109,.12); }
.sxdo-hero-rail-upcoming { color: #4338ca; border-color: rgba(99,102,241,.3);  background: rgba(99,102,241,.1); }

/* ── Body ── */
.sxdo-hero-body {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px;
    padding: 52px 40px 46px;
}
.sxdo-hero-copy { max-width: 720px; }

.sxdo-hero-title {
    font-family: var(--sxdo-font-display);
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.4px;
    margin: 0 0 16px;
    color: var(--sxdo-text, #14151a);
    text-wrap: balance;
}
.sxdo-hero-desc {
    font-family: var(--sxdo-font-body);
    font-size: 15px;
    line-height: 1.75;
    color: rgba(17,18,24,.6);
    margin: 0;
    max-width: 56ch;
}

/* Meta pills — frosted capsules */
.sxdo-hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.sxdo-hero-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    font-family: var(--sxdo-font-body);
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase;
    border: 1px solid rgba(17,18,24,.1);
    background: rgba(255,255,255,.68);
    backdrop-filter: blur(10px);
    color: rgba(17,18,24,.7);
    box-shadow: 0 6px 16px -12px rgba(17,18,24,.5);
}
.sxdo-hero-pill-pct { font-weight: 900; font-size: 13px; letter-spacing: -.2px; color: inherit; }
.sxdo-hero-pill-disc { color: #b42318; border-color: rgba(255,95,109,.35); background: rgba(255,95,109,.1); }
.sxdo-hero-pill-live { color: #067647; border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.1); }
.sxdo-pill-glow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #16a34a; box-shadow: 0 0 8px rgba(22,163,74,.8);
    animation: sxdoPulse 1.6s ease-in-out infinite;
}

/* ── Discount seal ── */
.sxdo-hero-seal {
    position: relative;
    flex-shrink: 0;
    width: 148px; height: 148px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,95,109,.45);
    background: radial-gradient(circle at 30% 25%, rgba(255,95,109,.18), rgba(255,255,255,.55) 72%);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 44px -28px rgba(17,18,24,.55), 0 1px 0 rgba(255,255,255,.9) inset;
    transform: rotate(-6deg);
}
.sxdo-hero-seal-ring {
    position: absolute; inset: 9px;
    border-radius: 50%;
    border: 1px dashed rgba(17,18,24,.18);
    animation: sxdoSealSpin 42s linear infinite;
}
.sxdo-hero-seal-val {
    font-family: var(--sxdo-font-display);
    font-size: 30px; font-weight: 900; line-height: 1;
    letter-spacing: -1px;
    color: var(--sxdo-accent, #ff5f6d);
}
.sxdo-hero-seal-val-sm { font-size: 22px; }
.sxdo-hero-seal-sub {
    margin-top: 7px;
    font-family: var(--sxdo-font-body);
    font-size: 9px; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(17,18,24,.5);
}

/* ── Bottom countdown band ── */
.sxdo-hero-strip {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
    padding: 24px 40px 28px;
    border-top: 1px solid rgba(17,18,24,.07);
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(17,18,24,.04));
    border-radius: 0 0 20px 20px;
}
.sxdo-hero-strip::before {
    content: '';
    position: absolute; top: -1px; left: 40px;
    width: 132px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e63950, #ff5f6d 45%, #ffc371);
}
.sxdo-hero-strip-head { display: flex; flex-direction: column; gap: 5px; }
.sxdo-hero-strip-label {
    font-family: var(--sxdo-font-body);
    font-size: 12px; font-weight: 800;
    letter-spacing: 2.4px; text-transform: uppercase;
    color: var(--sxdo-text, #14151a);
}
.sxdo-hero-strip-note {
    font-family: var(--sxdo-font-body);
    font-size: 12px; font-weight: 500;
    letter-spacing: .3px;
    color: rgba(17,18,24,.45);
}

/* ── Countdown tiles — frosted glass keycaps ── */
.sxdo-cd-boxes {
    display: flex; align-items: flex-start; gap: 9px;
    position: relative; z-index: 1;
}
.sxdo-cd-unit {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: sxdoTileIn .5s cubic-bezier(.2,.8,.3,1) both;
}
.sxdo-cd-unit:nth-child(3) { animation-delay: .06s; }
.sxdo-cd-unit:nth-child(5) { animation-delay: .12s; }
.sxdo-cd-unit:nth-child(7) { animation-delay: .18s; }
.sxdo-cd-num {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-width: 76px; height: 72px;
    padding: 0 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.78) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 16px;
    font-family: var(--sxdo-font-display);
    font-size: 30px; font-weight: 800;
    color: var(--sxdo-text, #14151a);
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    overflow: hidden;
    box-shadow: 0 10px 24px -16px rgba(255,95,109,.65), 0 1px 0 rgba(255,255,255,.75) inset;
}
/* hairline hinge across the middle */
.sxdo-cd-num::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,95,109,.45), transparent);
    transform: translateY(-50%);
}
/* coloured foot rail — the premium tell */
.sxdo-cd-num::after {
    content: '';
    position: absolute; left: 22%; right: 22%; bottom: 0;
    height: 3px; border-radius: 3px 3px 0 0;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
}
.sxdo-cd-lbl {
    font-family: var(--sxdo-font-body);
    font-size: 10px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(17,18,24,.45);
}
.sxdo-cd-sep {
    display: flex; flex-direction: column; gap: 7px;
    justify-content: center;
    height: 72px;
}
.sxdo-cd-sep span {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(17,18,24,.22);
}

/* ==========================================================
   SINGLE PRODUCT CAMPAIGN TICKET — v8.1 [.sxdo-pcd]
   A light "ticket stub": punched notches, perforated divider,
   frosted keycap timer and a live progress rail.
   ========================================================== */
@keyframes sxdoPcdSweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.sxdo-pcd {
    position: relative;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto 22px;
    padding: 16px 26px 18px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(255,95,109,.10), rgba(255,255,255,.78) 50%, rgba(255,195,113,.14));
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--sxdo-shadow), 0 1px 0 rgba(255,255,255,.9) inset;
    font-family: var(--sxdo-font-body);
    color: var(--sxdo-text, #14151a);
}
.sxdo-pcd-glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(255,95,109,.22), transparent 62%);
}
/* punched ticket notches */
.sxdo-pcd-notch {
    position: absolute; top: 50%; z-index: 3;
    width: 20px; height: 20px; border-radius: 50%;
    transform: translateY(-50%);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(17,18,24,.07) inset;
}
.sxdo-pcd-notch-l { left: -11px; }
.sxdo-pcd-notch-r { right: -11px; }

.sxdo-pcd-head {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 13px;
    flex-wrap: wrap;
}
.sxdo-pcd-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 8px 20px -14px rgba(17,18,24,.6);
    flex-shrink: 0;
}
.sxdo-pcd-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sxdo-pcd-name {
    font-size: 14px; font-weight: 900;
    letter-spacing: .6px; text-transform: uppercase;
    color: #b42318;
    line-height: 1;
}
.sxdo-pcd-sub { font-size: 11.5px; font-weight: 500; color: rgba(17,18,24,.52); }
.sxdo-pcd-disc {
    display: inline-flex; align-items: center;
    padding: 7px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 900; letter-spacing: .4px;
    color: #fff;
    background: linear-gradient(135deg, #e63950, #ff5f6d 55%, #ffc371);
    box-shadow: 0 8px 20px -12px rgba(230,57,80,.9);
}
.sxdo-pcd-state {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 1.6px; text-transform: uppercase;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(17,18,24,.09);
    color: rgba(17,18,24,.62);
}
.sxdo-pcd-state i {
    width: 6px; height: 6px; border-radius: 50%;
    background: #16a34a; box-shadow: 0 0 8px rgba(22,163,74,.8);
    animation: sxdoPulse 1.6s ease-in-out infinite;
}
.sxdo-pcd-upcoming .sxdo-pcd-state i { background: #6366f1; box-shadow: 0 0 8px rgba(99,102,241,.8); }
.sxdo-pcd-upcoming .sxdo-pcd-name { color: #4338ca; }

/* perforated divider */
.sxdo-pcd-perf {
    position: relative; z-index: 2;
    display: block; height: 1px;
    margin: 15px 0 14px;
    background-image: linear-gradient(90deg, rgba(17,18,24,.22) 0 6px, transparent 6px 12px);
    background-size: 12px 1px;
    opacity: .7;
}

.sxdo-pcd-body {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.sxdo-pcd-label {
    font-size: 11px; font-weight: 800;
    letter-spacing: 2.2px; text-transform: uppercase;
    color: rgba(17,18,24,.55);
}
.sxdo-cd-boxes-pcd { gap: 8px; }
.sxdo-cd-boxes-pcd .sxdo-cd-num {
    min-width: 58px; height: 52px; font-size: 21px;
    border-radius: 13px; letter-spacing: -.5px;
}
.sxdo-cd-boxes-pcd .sxdo-cd-num::after { left: 26%; right: 26%; height: 2px; }
.sxdo-cd-boxes-pcd .sxdo-cd-lbl { font-size: 9px; letter-spacing: 1.5px; }
.sxdo-cd-boxes-pcd .sxdo-cd-sep { height: 52px; gap: 6px; }
.sxdo-cd-boxes-pcd .sxdo-cd-sep span { width: 3px; height: 3px; }

/* live progress rail */
.sxdo-pcd-rail {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    height: 4px;
    background: rgba(17,18,24,.07);
    overflow: hidden;
}
.sxdo-pcd-rail span {
    position: relative;
    display: block; height: 100%;
    background: linear-gradient(90deg, #e63950, #ff5f6d 50%, #ffc371);
    border-radius: 0 4px 4px 0;
    transition: width .6s ease;
}
.sxdo-pcd-rail span::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    animation: sxdoPcdSweep 2.6s ease-in-out infinite;
}

/* Legacy mini-bar tiles (kept for backward compatibility) */
.sxdo-mini-bar .sxdo-cd-num {
    min-width: 40px; height: 38px; font-size: 15px;
    border-radius: 10px; padding: 0 6px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    letter-spacing: 0;
    box-shadow: none;
}
.sxdo-mini-bar .sxdo-cd-num::before { background: rgba(255,255,255,.22); }
.sxdo-mini-bar .sxdo-cd-num::after  { content: none; }
.sxdo-mini-bar .sxdo-cd-lbl { color: rgba(255,255,255,.7); font-size: 8px; letter-spacing: 1.2px; }
.sxdo-mini-bar .sxdo-cd-sep { height: 38px; gap: 5px; }
.sxdo-mini-bar .sxdo-cd-sep span { background: rgba(255,255,255,.4); }
.sxdo-mini-bar .sxdo-cd-boxes { gap: 6px; }


/* ==========================================================
   SECTIONS
   ========================================================== */

.sxdo-section { margin-bottom: 32px; }
.sxdo-hidden { display: none; }
.sxdo-active { display: block; }

/* Info banner */
.sxdo-info-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--sxdo-radius);
    font-size: 14px; color: #1e40af;
}

/* Why grid */
.sxdo-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.sxdo-why-card {
    background: #fff;
    border: 1px solid var(--sxdo-border);
    border-radius: var(--sxdo-radius);
    padding: 22px 20px;
    transition: .2s;
}
.sxdo-why-card:hover { box-shadow: var(--sxdo-shadow); transform: translateY(-2px); }
.sxdo-why-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff0f0, #fff7ed);
    color: var(--sxdo-red);
    margin-bottom: 14px;
}
.sxdo-why-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.sxdo-why-card p  { font-size: 13px; color: var(--sxdo-muted); line-height: 1.6; margin: 0; }

/* Product zone */
.sxdo-product-zone-hdr {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 24px;
}
.sxdo-product-zone-hdr h3 {
    font-size: 22px; font-weight: 800; margin: 0;
    background: linear-gradient(135deg, var(--sxdo-red), var(--sxdo-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Ended card */
.sxdo-msg-card {
    max-width: 520px; margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sxdo-border);
    border-radius: 10px;
    padding: 44px 40px;
    box-shadow: var(--sxdo-shadow);
}
.sxdo-msg-icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff0f0;
    color: var(--sxdo-red);
    margin: 0 auto 20px;
}
.sxdo-msg-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.sxdo-msg-card p  { color: var(--sxdo-muted); line-height: 1.7; margin: 0 0 24px; }
.sxdo-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--sxdo-red), var(--sxdo-orange));
    color: #fff; font-weight: 600; font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: .2s;
}
.sxdo-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,95,109,.35); }

/* ==========================================================
   PRICE DISPLAY
   ========================================================== */

.sxdo-price-wrap { display: inline-flex; align-items: center; gap: 7px; }
.sxdo-old-price  { color: #9ca3af; font-size: .9em; }
.sxdo-old-price::before { content: none; }
.sxdo-new-price  { font-weight: 700; color: var(--sxdo-red); font-style: normal; }

/* ── SoftX Dynamic Offer discount badge — shown next to product price on grid cards ── */
.sxdo-pct-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(115deg, #b91c1c 0%, #ff5f6d 55%, #ffc371 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220,38,38,.32), 0 1px 0 rgba(255,255,255,.18) inset;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ==========================================================
   PRODUCT GRID — SoftX Dynamic Offer Price Badge
   ========================================================== */

/* ── Hide .onsale.product-label ONLY on PP-eligible cards during live offer ──
   Double-gated: body.sxdo-offer-live (PHP body class, only when live) AND
   .sxdo-pp-eligible (PHP post_class, only on PP products).
   Any product without BOTH classes is completely unaffected.              ── */
body.sxdo-offer-live .sxdo-pp-eligible .onsale.product-label {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ── SoftX Dynamic Offer pill badge on product grid cards ── */
.sxdo-loop-pp-badge {
    position: absolute;
    top: 18px; right: 15px;
    left: unset;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: linear-gradient(120deg, #b91c1c 0%, #ff5f6d 55%, #ffc371 100%);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(220,38,38,.38), 0 1px 0 rgba(255,255,255,.15) inset;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}
.sxdo-loop-pp-icon {
    display: block;
    flex-shrink: 0;
}
.sxdo-loop-pp-text {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* ==========================================================
   FIRE LABELS ON PRODUCTS
   ========================================================== */

.sxdo-pp-fire-badge {
    position: absolute; top: 8px; left: 8px; z-index: 10;
    line-height: 0;
}
.sxdo-single-fire-row {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fff0f0, #fff7ed);
    border: 1px solid #fecdd3;
    border-radius: 10px;
    margin-bottom: 14px;
}
.sxdo-single-fire-label {
    font-size: 13px; font-weight: 600; color: var(--sxdo-red);
}
.sxdo-fire-gif { display: inline-block; vertical-align: middle; }

/* ==========================================================
   MINI COUNTDOWN SHORTCODE (legacy — kept for backward compat)
   ========================================================== */

.sxdo-mini-cd {
    display: inline-flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid;
    margin: 14px 0;
}
.sxdo-mini-cd-live      { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sxdo-mini-cd-upcoming { background: #f5f3ff; border-color: #ddd6fe; color: #4c1d95; }

/* ==========================================================
   NOTICE BAR COUNTDOWN  [sxdo_countdown] — v4.2
   Max-width: 1340px, Height: 70px, Gradient notice header
   ========================================================== */

@keyframes sxdoNoticeShimmer {
    0%   { transform: translateX(-100%) skewX(-14deg); }
    100% { transform: translateX(400%) skewX(-14deg); }
}
@keyframes sxdoNoticePulse {
    0%, 100% { opacity: .85; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.04); }
}
@keyframes sxdoNoticeSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Live = red/orange gradient, Upcoming = purple/indigo */
.sxdo-notice-bar {
    position: relative;
    width: 100%;
    max-width: 1340px;
    height: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 auto 0;
    border-radius: 20px;
    animation: sxdoNoticeSlideIn .45s cubic-bezier(.22,1,.36,1) both;
}
.sxdo-notice-bar-live {
    background: linear-gradient(105deg,
        #991b1b 0%, #dc2626 22%, #ff5f6d 44%, #ffc371 72%, #c2740a 100%);
    box-shadow: 0 4px 22px rgba(220,38,38,.35), 0 1px 0 rgba(255,255,255,.14) inset;
}
.sxdo-notice-bar-upcoming {
    background: linear-gradient(105deg,
        #3730a3 0%, #4f46e5 28%, #6d28d9 58%, #7c3aed 80%, #5b21b6 100%);
    box-shadow: 0 4px 22px rgba(109,40,217,.35), 0 1px 0 rgba(255,255,255,.14) inset;
}

/* Shimmer sweep */
.sxdo-notice-bar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    animation: sxdoNoticeShimmer 4.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
/* Top highlight line */
.sxdo-notice-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,.25);
    pointer-events: none;
}

.sxdo-notice-inner {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ── Left block ── */
.sxdo-notice-left {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.sxdo-notice-fire-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    flex-shrink: 0;
}
.sxdo-notice-texts {
    display: flex; flex-direction: column; gap: 2px;
}
.sxdo-notice-title {
    font-size: 14px; font-weight: 900;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.sxdo-notice-sub {
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,.82);
    letter-spacing: .2px;
}

/* ── Middle chips ── */
.sxdo-notice-mid {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.sxdo-notice-disc-chip {
    display: inline-flex; align-items: center;
    padding: 5px 14px;
    background: rgba(255,255,255,.22);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 999px;
    font-size: 13px; font-weight: 900;
    color: #fff;
    letter-spacing: .6px;
    backdrop-filter: blur(6px);
    animation: sxdoNoticePulse 2.4s ease-in-out infinite;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.sxdo-notice-chip {
    display: inline-flex; align-items: center;
    padding: 5px 14px;
    background: rgba(0,0,0,.15);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    font-size: 11px; font-weight: 800;
    color: rgba(255,255,255,.9);
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* ── Right: countdown boxes ── */
.sxdo-notice-cd {
    flex-shrink: 0;
}
.sxdo-notice-boxes {
    display: flex; align-items: center; gap: 7px;
}
.sxdo-notice-num {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 20px;
    font-size: 18px; font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) inset, 0 1px 0 rgba(255,255,255,.2) inset;
    backdrop-filter: blur(6px);
}
.sxdo-notice-lbl {
    font-size: 8px; font-weight: 800;
    letter-spacing: .8px; text-transform: uppercase;
    color: rgba(255,255,255,.7);
    text-align: center;
    margin-top: 3px;
}
/* sep dots inside notice bar */
.sxdo-notice-boxes .sxdo-cd-sep {
    display: flex; flex-direction: column; gap: 5px;
    padding-bottom: 14px;
}
.sxdo-notice-boxes .sxdo-cd-sep span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}

@keyframes sxdoBarShimmer {
    0%   { transform: translateX(-100%) skewX(-12deg); }
    100% { transform: translateX(350%) skewX(-12deg); }
}
@keyframes sxdoBarPulse {
    0%, 100% { opacity: .8; }
    50%      { opacity: 1; }
}

.sxdo-mini-bar {
    position: relative;
    width: 100%;
    max-width: 1340px;
    height: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 auto 20px;
    border-radius: 10px;
    background: linear-gradient(100deg,
        #b91c1c 0%,
        #dc2626 18%,
        #ff5f6d 38%,
        #ffc371 65%,
        #d97706 100%);
    box-shadow:
        0 4px 20px rgba(255,95,109,.35),
        0 1px 0 rgba(255,255,255,.15) inset;
}

/* Shimmer sweep */
.sxdo-mini-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60px; height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,.18) 50%,
        transparent 100%);
    animation: sxdoBarShimmer 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
/* Bottom highlight */
.sxdo-mini-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(0,0,0,.15);
    pointer-events: none;
}

.sxdo-mini-bar-inner {
    position: relative;
    z-index: 2;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sxdo-mini-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sxdo-mini-bar-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    flex-shrink: 0;
}
.sxdo-mini-bar-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sxdo-mini-bar-title {
    font-weight: 900;
    letter-spacing: .8px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.sxdo-mini-bar-sub {
    font-size: 11px;
    color: rgba(255,255,255,.82);
    font-weight: 500;
    letter-spacing: .2px;
}

.sxdo-mini-bar-center {
    display: flex; align-items: center; gap: 8px;
}
.sxdo-mini-bar-offer-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    font-size: 12px; font-weight: 800;
    color: #fff;
    letter-spacing: .4px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    animation: sxdoBarPulse 2s ease-in-out infinite;
}

.sxdo-mini-bar-cd {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sxdo-mini-bar-label {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,.88);
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================
   OFFER BUTTON — [sxdo_button] — v8.1 "Prism"
   Colourful gradient capsule: 10px radius, 6px vertical padding,
   animated sheen, glowing halo and a breathing live dot.
   Colours come from --sxdo-btn-* injected by PHP.
   ========================================================== */
@keyframes sxdoBtnShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes sxdoBtnSheen { 0% { transform: translateX(-140%) skewX(-18deg); } 55%,100% { transform: translateX(320%) skewX(-18deg); } }

.sxdo-nav-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 6px 16px;
    max-width: 100%; flex: 0 0 auto;
    border-radius: 10px;
    text-decoration: none !important;
    font-family: var(--sxdo-font-body, 'Space Grotesk', -apple-system, sans-serif);
    font-size: 12.5px; font-weight: 800;
    letter-spacing: 1.3px; text-transform: uppercase;
    line-height: 1.5;
    color: #fff !important;
    background: linear-gradient(120deg,
        var(--sxdo-btn-dk, #e63950) 0%,
        var(--sxdo-btn-a, #ff5f6d) 42%,
        var(--sxdo-btn-b, #ffc371) 72%,
        var(--sxdo-btn-a, #ff5f6d) 100%);
    background-size: 220% 220%;
    animation: sxdoBtnShift 7s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow:
        0 8px 22px -10px var(--sxdo-btn-glow, rgba(255,95,109,.45)),
        0 1px 0 rgba(255,255,255,.4) inset;
    text-shadow: 0 1px 3px rgba(0,0,0,.18);
    overflow: hidden;
    white-space: nowrap;
    isolation: isolate;
    transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, filter .22s ease;
}
/* Glass sheen that keeps sweeping across the capsule */
.sxdo-nav-fill {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 42px; z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
    animation: sxdoBtnSheen 4.2s ease-in-out infinite;
    pointer-events: none;
}
/* Soft top highlight instead of the old dark rail */
.sxdo-nav-rail {
    position: absolute; left: 10px; right: 10px; top: 1px;
    height: 1px; z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
    pointer-events: none;
}
.sxdo-nav-dot {
    position: relative; z-index: 1;
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.9);
}
.sxdo-nav-txt { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; }
.sxdo-nav-arrow, .sxdo-nav-tag, .sxdo-nav-dot { flex-shrink: 0; }
.sxdo-nav-arrow {
    position: relative; z-index: 1;
    width: 6px; height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .85;
    transition: transform .22s cubic-bezier(.2,.8,.3,1), opacity .22s ease;
}
.sxdo-nav-tag {
    position: relative; z-index: 1;
    font-size: 9px; font-weight: 900; letter-spacing: 1.4px;
    padding: 2px 8px; border-radius: 7px;
    background: rgba(255,255,255,.24);
    border: 1px solid rgba(255,255,255,.4);
    backdrop-filter: blur(6px);
}
.sxdo-nav-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.1) brightness(1.04);
    box-shadow:
        0 14px 30px -12px var(--sxdo-btn-glow, rgba(255,95,109,.6)),
        0 1px 0 rgba(255,255,255,.5) inset;
}
.sxdo-nav-btn:hover .sxdo-nav-arrow { transform: rotate(45deg) translate(2px,-2px); opacity: 1; }
.sxdo-nav-btn:active { transform: translateY(0) scale(.985); }
.sxdo-nav-btn:focus-visible { outline: 2px solid var(--sxdo-btn-b, #ffc371); outline-offset: 3px; }

/* LIVE: the dot breathes with a soft halo */
.sxdo-nav-live .sxdo-nav-dot { animation: sxdoNavPulse 2.4s ease-out infinite; }

/* Ended / inactive: desaturated, calm */
.sxdo-nav-ended,
.sxdo-nav-inactive {
    background: linear-gradient(120deg, #4b5563, #6b7280 55%, #9ca3af);
    background-size: 220% 220%;
    box-shadow: 0 8px 20px -12px rgba(17,18,24,.6), 0 1px 0 rgba(255,255,255,.28) inset;
}
.sxdo-nav-ended .sxdo-nav-dot,
.sxdo-nav-inactive .sxdo-nav-dot { background: rgba(255,255,255,.7); box-shadow: none; }

/* ==========================================================
   CANVAS + INTRO
   ========================================================== */

.sxdo-canvas {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9997;
}
.sxdo-ci-overlay {
    position: fixed; inset: 0;
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
}
.sxdo-ci-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 30%, rgba(255,255,255,.92), rgba(255,255,255,.75));
    overflow: hidden;
}
.sxdo-ci-grid {
    display: none;
}
.sxdo-ci-lights, .sxdo-ci-gadgets, .sxdo-ci-tag-burst { display: none; }

.sxdo-ci-content { position: relative; text-align: center; padding: 32px; color: #fff; }
.sxdo-ci-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase; margin-bottom: 20px;
}
.sxdo-ci-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; color: var(--sxdo-text); }
.sxdo-ci-cricket { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.sxdo-ball {
    width: 36px; height: 36px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #e63950);
    position: relative;
    animation: sxdoBall 1.2s ease-out forwards;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.sxdo-ball::before, .sxdo-ball::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 34px; height: 2px; background: rgba(255,255,255,.6);
    transform: translate(-50%,-50%) rotate(20deg);
    box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset;
}
.sxdo-ball::after { transform: translate(-50%,-50%) rotate(-20deg); }
@keyframes sxdoBall {
    0% { transform: translateX(-60px) rotate(-90deg); opacity: .4; }
    60% { transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}
.sxdo-six { font-size: 20px; font-weight: 900; letter-spacing: 2px; color: var(--sxdo-text); animation: sxdoSix .8s ease-out forwards; }
@keyframes sxdoSix { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sxdo-balls-seq { display: flex; gap: 6px; }
.sxdo-balls-seq .b {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ff5f6d; opacity: 0; transform: scale(.4);
    animation: sxdoSeq .8s ease-out forwards;
}
.sxdo-balls-seq .b1 { animation-delay: .2s; }
.sxdo-balls-seq .b2 { animation-delay: .3s; }
.sxdo-balls-seq .b3 { animation-delay: .4s; }
.sxdo-balls-seq .b4 { animation-delay: .5s; }
.sxdo-balls-seq .b5 { animation-delay: .6s; }
.sxdo-balls-seq .b6 { animation-delay: .7s; }
@keyframes sxdoSeq { to { opacity: 1; transform: scale(1); } }
.sxdo-ci-prog {
    width: 200px; height: 3px;
    background: rgba(255,255,255,.1);
    border-radius: 2px; margin: 0 auto;
    overflow: hidden;
}
.sxdo-ci-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    border-radius: 2px;
    animation: sxdoProgFill 2s ease-out forwards;
}
@keyframes sxdoProgFill { from { width: 0; } to { width: 100%; } }
.sxdo-ci-exit { animation: sxdoFadeOut .5s forwards; }
@keyframes sxdoFadeOut { to { opacity: 0; visibility: hidden; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* ==========================================================
   RESPONSIVE — Mobile First (90% users are mobile)
   ========================================================== */

@media (max-width: 1100px) {
    .sxdo-hero-rail  { padding: 14px 30px; }
    .sxdo-hero-body  { padding: 42px 30px 38px; gap: 28px; }
    .sxdo-hero-strip { padding: 20px 30px 24px; }
    .sxdo-hero-seal  { width: 122px; height: 122px; }
    .sxdo-hero-seal-val { font-size: 25px; }
    .sxdo-cd-num { min-width: 64px; height: 62px; font-size: 26px; }
    .sxdo-cd-sep { height: 62px; }
}

@media (max-width: 900px) {
    .sxdo-why-grid { grid-template-columns: 1fr; }
    /* Mini bar on tablet */
    .sxdo-mini-bar { border-radius: 10px; }
    /* Notice bar */
    .sxdo-notice-bar { border-radius: 20px; height: auto; max-height: none; min-height: 70px; }
    .sxdo-notice-inner { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
    .sxdo-notice-left { flex: 1; min-width: 0; }
    .sxdo-notice-mid  { order: 3; flex: 0 0 100%; justify-content: center; }
    .sxdo-notice-cd   { flex-shrink: 0; }
}

/* ─────────────────────────────────────────────
   MOBILE (≤ 767px) — primary target
───────────────────────────────────────────── */
@media (max-width: 767px) {
    /* ── Badge mobile position ── */
    .sxdo-loop-pp-badge { top: 15px; right: 15px; }

    /* ── Hero — mobile layout ── */
    .sxdo-hero { border-radius: 20px; }
    .sxdo-hero-rail { padding: 12px 18px; gap: 9px; }
    .sxdo-hero-rail-name { font-size: 10px; letter-spacing: 1.8px; }
    .sxdo-hero-rail-status { font-size: 9px; padding: 3px 8px; letter-spacing: 1.4px; }
    .sxdo-hero-body {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 22px;
        padding: 28px 18px 26px;
    }
    .sxdo-hero-title { letter-spacing: -.6px; margin-bottom: 12px; }
    .sxdo-hero-desc  { font-size: 14px; }
    .sxdo-hero-pills { margin-top: 18px; }
    .sxdo-hero-seal  { width: 92px; height: 92px; transform: rotate(-5deg); }
    .sxdo-hero-seal-val { font-size: 20px; }
    .sxdo-hero-seal-val-sm { font-size: 15px; }
    .sxdo-hero-seal-sub { font-size: 8px; letter-spacing: 2px; margin-top: 4px; }
    .sxdo-hero-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 18px 22px;
    }
    .sxdo-hero-strip-label { font-size: 11px; letter-spacing: 1.8px; }
    .sxdo-hero-strip-note  { font-size: 11px; }
    .sxdo-countdown { width: 100%; }
    .sxdo-cd-boxes { gap: 6px; width: 100%; }
    .sxdo-cd-unit  { flex: 1; }
    .sxdo-cd-num   { min-width: 0; width: 100%; height: 58px; font-size: 24px; border-radius: 14px; }
    .sxdo-cd-sep   { height: 58px; }
    .sxdo-cd-lbl   { font-size: 9px; letter-spacing: 1.4px; }

    /* Nav button stays inside narrow headers */
    .sxdo-nav-btn { font-size: 11.5px; letter-spacing: 1.1px; gap: 8px; padding: 6px 13px; border-radius: 10px; }
    .sxdo-nav-tag { font-size: 8px; padding: 2px 6px; letter-spacing: 1.1px; }

    /* ── Notice Bar on mobile — fully responsive ── */
    .sxdo-notice-bar {
        border-radius: 20px;
        height: auto;
        max-height: none;
        min-height: unset;
    }
    .sxdo-notice-inner {
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 14px;
        gap: 0;
        row-gap: 8px;
    }
    /* Left block: fire icon + text — full width, stacked layout */
    .sxdo-notice-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }
    .sxdo-notice-fire-wrap {
        width: 32px; height: 32px;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .sxdo-notice-title { font-size: 13px; }
    .sxdo-notice-sub   { font-size: 10px; }
    /* Middle chips — hidden on mobile */
    .sxdo-notice-mid  { display: none; }
    /* Countdown — right-aligned, same row as left block */
    .sxdo-notice-cd   { flex-shrink: 0; margin-left: auto; }
    .sxdo-notice-num  { width: 32px; height: 32px; font-size: 14px; border-radius: 20px; }
    .sxdo-notice-lbl  { font-size: 7.5px; margin-top: 2px; }
    .sxdo-notice-boxes { gap: 5px; }
    .sxdo-notice-boxes .sxdo-cd-sep { padding-bottom: 10px; }
    .sxdo-notice-boxes .sxdo-cd-sep span { width: 3px; height: 3px; }

    /* ── Single-product ticket on mobile ── */
    .sxdo-pcd { padding: 14px 16px 16px; border-radius: 20px; }
    .sxdo-pcd-sub { display: none; }
    .sxdo-pcd-state { display: none; }
    .sxdo-pcd-mark { width: 36px; height: 36px; border-radius: 12px; }
    .sxdo-pcd-name { font-size: 12.5px; }
    .sxdo-pcd-perf { margin: 12px 0 11px; }
    .sxdo-pcd-body { gap: 10px; }
    .sxdo-pcd-label { font-size: 10px; letter-spacing: 1.6px; }
    .sxdo-cd-boxes-pcd { flex: 1; justify-content: flex-end; }
    .sxdo-cd-boxes-pcd .sxdo-cd-num { min-width: 46px; height: 44px; font-size: 17px; border-radius: 11px; }
    .sxdo-cd-boxes-pcd .sxdo-cd-sep { height: 44px; }

    /* ── Mini bar on mobile (legacy) ── */
    .sxdo-mini-bar { border-radius: 10px; }
    .sxdo-mini-bar-inner { padding: 0 12px; gap: 8px; }
    .sxdo-mini-bar-texts .sxdo-mini-bar-sub { display: none; }
    .sxdo-mini-bar-center { display: none; }
}

/* ─────────────────────────────────────────────
   SMALL MOBILE (≤ 480px)
───────────────────────────────────────────── */
@media (max-width: 480px) {
    .sxdo-hero-body  { padding: 24px 14px 22px; }
    .sxdo-hero-rail  { padding: 11px 14px; }
    .sxdo-hero-strip { padding: 16px 14px 20px; }
    .sxdo-hero-title { font-size: 24px; }
    .sxdo-hero-desc  { font-size: 13.5px; }
    .sxdo-cd-num     { height: 50px; font-size: 19px; border-radius: 12px; }
    .sxdo-cd-boxes   { gap: 4px; }
    .sxdo-cd-sep     { height: 50px; gap: 5px; }
    .sxdo-cd-lbl     { font-size: 8px; letter-spacing: 1px; }
    /* notice bar small mobile */
    .sxdo-notice-bar  { border-radius: 20px; }
    .sxdo-notice-inner { padding: 9px 12px; }
    .sxdo-notice-num  { width: 28px; height: 28px; font-size: 12px; border-radius: 14px; }
    .sxdo-notice-lbl  { font-size: 7px; }
    .sxdo-notice-title { font-size: 12px; }
    .sxdo-notice-fire-wrap { width: 28px; height: 28px; border-radius: 10px; }
    .sxdo-notice-boxes { gap: 4px; }
}

/* ==========================================================
   SXDO PRODUCT LABELS — frontend
   All labels (TBA, Disc %, Sale, New, Hot) share this base.
   WoodMart places .sxdo-labels inside its .woodmart-product-labels wrapper.
   Plain WC places it inside .images. Both are position:relative.
   ========================================================== */

/* Outer wrapper — stacks labels vertically */
.sxdo-labels {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

/* Base badge style shared by all label types */
.sxdo-label-tba,
.sxdo-label-disc,
.sxdo-label-sale,
.sxdo-label-new,
.sxdo-label-hot {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* TBA availability text on single product page */
.sxdo-tba-avail {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 8px;
}
/* ==========================================================
   v7.2 — Subtle design polish (non-structural, responsive-safe)
   ========================================================== */
.sxdo-notice-bar,
.sxdo-mini-bar {
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45);
}
.sxdo-hero-pill,
.sxdo-notice-disc-chip,
.sxdo-notice-chip,
.sxdo-mini-bar-offer-chip,
.sxdo-loop-pp-badge,
.sxdo-pct-badge {
    transition: transform .22s cubic-bezier(.2, .8, .3, 1),
                box-shadow .22s cubic-bezier(.2, .8, .3, 1),
                filter .22s ease;
    will-change: transform;
}
.sxdo-loop-pp-badge:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
}
.sxdo-cd-num,
.sxdo-notice-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}
.sxdo-new-price { font-weight: 800; }
.sxdo-old-price { opacity: .62; }


@media (prefers-reduced-motion: reduce) {
    .sxdo-hero-beam,
    .sxdo-hero-seal-ring,
    .sxdo-hero-rail-dot,
    .sxdo-pill-glow-dot,
    .sxdo-nav-live .sxdo-nav-dot,
    .sxdo-nav-fill,
    .sxdo-nav-btn,
    .sxdo-hero-orb,
    .sxdo-mark-tag,
    .sxdo-mark-spark,
    .sxdo-offer-mark::before,
    .sxdo-pcd-rail span::after,
    .sxdo-cd-unit { animation: none !important; }
    .sxdo-hero-pill,
    .sxdo-nav-btn,
    .sxdo-loop-pp-badge,
    .sxdo-pct-badge { transition: none; }
    .sxdo-nav-btn:hover,
    .sxdo-loop-pp-badge:hover { transform: none; }
}

/* ==========================================================
   OFFER CONTAINER — v8 wrapper class (.softx-offer-container)
   Scoped, low-specificity helpers so the offer section can be
   targeted from the theme/page builder without touching core
   WooCommerce or WoodMart layout rules.
   ========================================================== */
.softx-offer-container { position: relative; width: 100%; }
.softx-offer-container > .sxdo-hero + * { margin-top: 28px; }

/* Offer OFF / coming soon / ended → the offer product container is fully
   hidden (container included). Backup for the inline <head> guard printed by
   the plugin; body.sxdo-offer-off is only set when the campaign is not live.
   The plugin's own [sxdo_page] hero (.sxdo-page-wrap) is intentionally
   excluded — it carries the coming-soon / ended message + countdown. */
html body.sxdo-offer-off .softx-offer-container:not(.sxdo-page-wrap),
html body.sxdo-offer-off [class*="softx-offer-container"]:not(.sxdo-page-wrap),
html body.sxdo-offer-off #softx-offer-container {
    display: none !important;
    visibility: hidden !important;
}

/* Notice bar + hero share the 20px premium radius */
.sxdo-notice-bar { border-radius: 20px; }


/* ==========================================================
   v8.1 — PREMIUM POLISH
   ========================================================== */

/* The offer mark reads white when it sits on a coloured bar */
.sxdo-notice-fire-wrap .sxdo-offer-mark,
.sxdo-mini-bar-badge .sxdo-offer-mark,
.sxdo-loop-pp-badge .sxdo-offer-mark {
    --sxdo-mark-a: #ffab13;
    --sxdo-mark-b: rgb(255 116 18);
}
.sxdo-loop-pp-badge .sxdo-offer-mark::before { display: none; }

/* Sale-flash replacement badge */
.sxdo-disc-badge.onsale {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--sxdo-font-body, 'Space Grotesk', sans-serif);
    font-size: 11px; font-weight: 900; letter-spacing: .4px;
    line-height: 1;
    box-shadow: 0 8px 20px -12px rgba(17,18,24,.7), 0 1px 0 rgba(255,255,255,.28) inset;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* Offer page cards — frosted, premium */
.sxdo-why-card,
.sxdo-msg-card {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    box-shadow: var(--sxdo-shadow);
}
.sxdo-why-card:hover { box-shadow: var(--sxdo-shadow-lg); transform: translateY(-3px); }
.sxdo-info-banner { border-radius: 14px; }
.sxdo-cta-btn { border-radius: 10px; padding: 10px 24px; }
.sxdo-product-zone-hdr h3 { font-family: var(--sxdo-font-display, sans-serif); letter-spacing: -.6px; }
.sxdo-pct-badge { border-radius: 8px; }
