/* =========================================================
   Zurix Theme — Sale Countdown Banner Widget
   ========================================================= */

.kscb-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    gap: 16px;
}
.kscb-wrap.kscb-image-right { direction: rtl; }
.kscb-wrap.kscb-image-right > * { direction: ltr; }

/* ── Image Panel ── */
.kscb-images {
    position: relative;
    background-color: #f0ede8;
    overflow: hidden;
    border-radius: 20px;
}

/* Pseudo-element mang bg image — scale bằng transform (GPU-accelerated) */
.kscb-images::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center top;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.kscb-wrap:hover .kscb-images::before {
    transform: scale(1.07);
}

.kscb-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17,17,17,0) 30%, rgba(17,17,17,.72) 100%);
    pointer-events: none;
}

.kscb-float {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.22);
    border: 3px solid #fff;
    z-index: 2;
    transition: transform .35s ease, box-shadow .35s ease;
}
.kscb-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kscb-float-1 { width: 150px; height: 190px; top: 32px; left: 28px; transform: rotate(-4deg); }
.kscb-float-2 { width: 120px; height: 155px; top: 24px; right: 24px; transform: rotate(5deg); }
.kscb-float-3 { width: 130px; height: 165px; bottom: 100px; right: 20px; transform: rotate(-3deg); }
.kscb-float:hover { transform: rotate(0deg) translateY(-6px) !important; box-shadow: 0 24px 60px rgba(0,0,0,.3); }

.kscb-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 28px 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.kscb-caption-label {
    display: block;
    font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.kscb-caption-title { display: block; font-size: 22px; font-weight: 700; color: #fff; line-height: 1.15; }
.kscb-caption-badge {
    background-color: #DE5922; color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 8px 16px; border-radius: 100px;
    white-space: nowrap; flex-shrink: 0;
}

/* ── Content Panel ── */
.kscb-content {
    background-color: #fff;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    border-radius: 20px;
    overflow: hidden;
}

.kscb-eyebrow { display: flex; align-items: center; gap: 10px; }
.kscb-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background-color: #DE5922; flex-shrink: 0;
    animation: kscb-blink 1.6s ease-in-out infinite;
}
@keyframes kscb-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.kscb-eyebrow .ey-text {
    font-size: 11px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: #5B5B5B;
}

.kscb-headline { display: flex; flex-direction: column; gap: 2px; }
.kscb-headline-sub { font-size: 16px; font-weight: 400; color: #5B5B5B; }
.kscb-headline-big {
    font-size: 54px; font-weight: 800;
    color: #111111; line-height: .95;
    letter-spacing: -.03em; display: block;
}
.kscb-headline-accent { color: #DE5922; }

.kscb-rule { border: none; border-top: 1px solid #E7E7E7; margin: 0; }

/* ── Timer ── */
.kscb-timer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kscb-time-unit {
    width: 88px; height: 88px; flex-shrink: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    border: 1px solid #E7E7E7; border-radius: 50%;
    background-color: #fff;
    transition: background-color .2s;
}
.kscb-time-unit:hover { background-color: #faf8f6; }
.kscb-time-unit:first-child { background-color: #111111; border-color: #111111; }
.kscb-time-unit:first-child .t-num { color: #fff !important; }
.kscb-time-unit:first-child .t-label { color: rgba(255,255,255,.5) !important; }
.kscb-time-unit .t-num {
    font-size: 28px; font-weight: 800; color: #111111;
    line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.kscb-time-unit .t-label {
    font-size: 9px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: #5B5B5B;
}

.kscb-description { font-size: 13px; color: #5B5B5B; line-height: 1.7; margin: 0; }

/* ── CTA ── */
.kscb-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kscb-btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    background-color: #111111; color: #fff;
    font-size: 14px; font-weight: 500;
    padding: 6px 6px 6px 24px; border-radius: 100px;
    border: 2px solid #111111; text-decoration: none;
    cursor: pointer; line-height: 1;
    transition: background-color .2s, border-color .2s;
}
.kscb-btn-primary:hover { background-color: #DE5922; border-color: #DE5922; color: #fff; }
/* when icon is BEFORE text, flip the padding so circle sits on the left */
.kscb-btn-primary:has(.kscb-btn-icon:first-child) {
    padding: 6px 6px 6px 24px;
}
.kscb-ghost {
    display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 600; color: #111111;
    text-decoration: none; border-bottom: 1px solid #111111;
    padding-bottom: 2px; line-height: 1.4;
    transition: color .2s, border-color .2s;
}
.kscb-ghost:hover { color: #DE5922; border-color: #DE5922; }

.kscb-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    transition: background-color .2s;
}
.kscb-btn-primary:hover .kscb-btn-icon {
    background-color: rgba(255, 255, 255, 0.25);
}
.kscb-btn-icon svg,
.kscb-btn-icon i {
    width: 1em;
    height: 1em;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .kscb-headline-big { font-size: 42px; }
    .kscb-content { padding: 48px 40px; }
}
@media (max-width: 768px) {
    .kscb-wrap { grid-template-columns: 1fr; gap: 12px; }
    .kscb-images { border-radius: 16px; }
    .kscb-content { border-radius: 16px; }
    .kscb-wrap.kscb-image-right { direction: ltr; }
    .kscb-images { min-height: 300px; }
    .kscb-float-1 { width: 100px; height: 128px; top: 20px; left: 16px; }
    .kscb-float-2 { width: 86px; height: 110px; top: 16px; right: 16px; }
    .kscb-float-3 { width: 88px; height: 112px; bottom: 70px; right: 14px; }
    .kscb-content { padding: 36px 24px 40px; gap: 18px; }
    .kscb-headline-big { font-size: 36px; }
    .kscb-cta-row { flex-direction: column; align-items: flex-start; }
    .kscb-btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .kscb-headline-big { font-size: 30px; }
    .kscb-time-unit { width: 72px; height: 72px; }
    .kscb-time-unit .t-num { font-size: 22px; }
}
