/* basau bags - flash sale styles */

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #fafafa;
}

.flash-sale-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.flash-sale-card:hover {
    transform: translateY(-4px);
    border-color: #18181b !important;
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.08);
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #b91c1c;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.img-wrap img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.flash-sale-card:hover .img-wrap img {
    transform: scale(1.05);
}

.card-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #18181b;
}

.category-text {
    font-size: 12px;
    color: #71717a;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-original {
    text-decoration: line-through;
    color: #a1a1aa;
    font-size: 13px;
}

.price-sale {
    color: #b91c1c;
    font-size: 18px;
    font-weight: 700;
}
/* ===== thẻ chiến dịch khuyến mãi kiểu phiếu giảm giá: khối phần trăm đỏ bên trái, đường răng cưa, thông tin bên phải ===== */
.promo-ticket {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 124px;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    color: #121214;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.promo-ticket:hover {
    color: #121214;
    transform: translateY(-3px);
    border-color: #121214;
    box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.25);
}

.promo-ticket:focus-visible {
    outline: 2px solid #121214;
    outline-offset: 2px;
}

/* khối phần trăm */
.pk-left {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    background: var(--color-sale, #b91c1c);
    color: #ffffff;
    transition: background-color 0.25s ease;
}

.pk-pct {
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.pk-sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* đường răng cưa giữa hai phần, như đường xé của phiếu */
.pk-body {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-left: 2px dashed #d4d4d8;
}

.pk-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #52525b;
}

.pk-dot {
    width: 8px;
    height: 8px;
    background: #a1a1aa;
}

.pk-title {
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pk-date {
    font-size: 13px;
    color: #52525b;
}

.pk-foot {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.pk-left-days {
    font-weight: 700;
    color: var(--color-sale, #b91c1c);
}

.pk-cta {
    margin-left: auto;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo-ticket:hover .pk-cta i {
    margin-left: 4px;
}

/* đang diễn ra: chấm xanh lá nhấp nháy nhẹ */
.promo-live .pk-dot {
    background: #16a34a;
    animation: pk-pulse 1.8s ease-in-out infinite;
}

.promo-live .pk-status {
    color: #15803d;
}

/* sắp diễn ra: khối phần trăm đen */
.promo-sap .pk-left {
    background: #121214;
}

.promo-sap .pk-dot {
    background: #d97706;
}

/* đã kết thúc: nhạt đi, khối phần trăm xám */
.promo-het {
    opacity: 0.6;
}

.promo-het .pk-left {
    background: #71717a;
}

.promo-het:hover {
    opacity: 0.9;
}

/* đang lọc theo chiến dịch này: viền đen dày, khối phần trăm đen */
.promo-ticket.is-selected {
    border-color: #121214;
    box-shadow: inset 0 0 0 1px #121214;
}

.promo-ticket.is-selected .pk-left {
    background: #121214;
}

@keyframes pk-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .promo-live .pk-dot {
        animation: none;
    }

    .promo-ticket {
        transition: none;
    }
}
