* {
    box-sizing: border-box;
}

.taka-sign {
    font-family: "Nirmala UI", "Hind Siliguri", system-ui, sans-serif !important;
    font-style: normal;
    display: inline-block;
    margin-right: 1px;
}

.flash-sale-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 1.5rem auto 3.5rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Nirmala UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.flash-sale-header {
    width: 100%;
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #450a0a 100%);
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(127, 29, 29, 0.25);
    box-sizing: border-box;
}

.flash-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flash-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #ef4444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
}

.flash-title-block {
    display: flex;
    flex-direction: column;
}

.flash-tagline {
    font-size: 0.7188rem;
    font-weight: 500;
    color: #fca5a5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flash-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.flash-header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.timer-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #fca5a5;
    margin-right: 0.375rem;
}

.timer-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    min-width: 2.25rem;
}

.timer-num {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.timer-unit {
    font-size: 0.5625rem;
    color: #fca5a5;
    font-weight: 400;
    margin-top: 0.125rem;
}

.timer-colon {
    color: #fca5a5;
    font-weight: 600;
}

.btn-view-all-flash {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 1.125rem;
    background: #fecdd3;
    color: #881337;
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-view-all-flash:hover {
    background-color: #ffffff;
    color: #450a0a;
}

.flash-slider-mask {
    width: 100%;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    padding: 0.5rem 0;
}

.flash-sale-track {
    display: flex !important;
    gap: 1.25rem;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem;
    cursor: grab;
    user-select: none;
    will-change: scroll-position;
}

.flash-sale-track:active {
    cursor: grabbing;
}

.flash-sale-track::-webkit-scrollbar {
    display: none;
}

.flash-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    z-index: 20;
    transition: all 0.2s ease;
    opacity: 0;
}

.flash-slider-mask:hover .flash-nav-btn {
    opacity: 1;
}

.flash-nav-btn:hover {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    border-color: var(--primary-color, #2563eb);
}

.nav-left { left: 0.5rem; }
.nav-right { right: 0.5rem; }

.flash-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
}

.flash-sale-track .flash-product-card {
    min-width: 250px !important;
    max-width: 250px !important;
    flex-shrink: 0 !important;
}

.flash-products-grid .flash-product-card {
    min-width: 100% !important;
    max-width: 100% !important;
}

.flash-product-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.flash-product-card.is-reserved-card {
    border-color: #fcd34d;
    background: #fffdf5;
}

.card-top-bar {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    right: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.discount-tag {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
}

.reserved-tag {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    font-size: 0.6563rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.cod-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 6px;
}

.card-img-box {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.card-img-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card-img-box img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.flash-product-card:hover .card-img-box img {
    transform: scale(1.05);
}

.flash-product-card.is-reserved-card .card-img-box img {
    filter: grayscale(40%) opacity(85%);
}

.reserved-ribbon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #fef08a;
    border: 1px solid rgba(253, 224, 71, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7188rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.flash-card-fallback-icon {
    font-size: 2.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.flash-btn-quick-add {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    z-index: 10;
}

.flash-product-card:hover .flash-btn-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.flash-btn-quick-add:hover {
    background: #ef4444;
}

.flash-btn-quick-add.btn-disabled-reserved {
    background: #64748b !important;
    color: #f1f5f9 !important;
    cursor: not-allowed !important;
    opacity: 0.9 !important;
    box-shadow: none !important;
}

.flash-btn-quick-add.btn-disabled-reserved:hover {
    background: #64748b !important;
    transform: none !important;
}

.store-verified-info {
    font-size: 0.7188rem;
    color: #2563eb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

.flash-product-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #0f172a;
    letter-spacing: -0.01em;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.old-price {
    font-size: 0.8125rem !important;
    color: #94a3b8;
    font-weight: 400 !important;
    text-decoration: line-through;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.urgency-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.urgency-green {
    background: #ecfdf5;
    color: #059669;
}

.urgency-yellow {
    background: #fefce8;
    color: #d97706;
}

.urgency-red {
    background: #fef2f2;
    color: #dc2626;
    animation: flashPulse 1.5s infinite;
}

.urgency-booked {
    background: #fef3c7;
    color: #b45309;
}

@keyframes flashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.progress-track {
    width: 100%;
    height: 7px;
    background-color: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease-in-out;
}

.progress-low {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-mid {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-high {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.progress-booked {
    background: #cbd5e1;
}

.reserved-locked-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    margin-top: 0.25rem;
}

.flash-sales-page-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.flash-sales-hero-card {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #450a0a 100%);
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(127, 29, 29, 0.25);
}

.hero-badge-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    color: #ffffff;
}

.hero-subtitle {
    margin: 0;
    color: #fca5a5;
    font-size: 0.9375rem;
}

.btn-back-home {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-back-home:hover {
    background: #ffffff;
    color: #450a0a !important;
}

.flash-campaign-section {
    margin-bottom: 3rem;
}

.campaign-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.campaign-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.campaign-ends-at {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.flash-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.flash-empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.empty-state-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.375rem 0;
}

.empty-state-sub {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .flash-sale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .flash-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .flash-nav-btn {
        display: none !important;
    }

    .flash-sales-hero-card {
        padding: 1.5rem;
    }
}