/**
 * © muathemewpgiare.com
 * Frontend CSS v3.0.0 – Flash Sale Plugin
 *
 * Features:
 * - CSS Custom Properties
 * - 5 Layout styles (grid, slider, list, masonry, timeline)
 * - 5 Countdown styles (flip, slide, simple, circle, neon)
 * - 5 Badge styles (ribbon, circle, starburst, tag, banner)
 * - Dark mode
 * - Color schemes (default, blue, green, purple, gold)
 * - Animations, urgency effects
 * - Wishlist, compare, AJAX cart
 * - Filters, product labels, review stars
 * - Quantity selector, image zoom
 * - Notification bar, schedule display
 * - Coupon box, load more
 * - Responsive design
 */

/* ===================================================================
 *  CSS CUSTOM PROPERTIES
 * =================================================================== */
.muathemewpgiare-com-flash-sale-wrapper {
    --mfs-primary: #e53e3e;
    --mfs-primary-light: #feb2b2;
    --mfs-text: #1a202c;
    --mfs-text-light: #718096;
    --mfs-bg: #ffffff;
    --mfs-bg-alt: #f7fafc;
    --mfs-border: #e2e8f0;
    --mfs-radius: 16px;
    --mfs-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --mfs-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --mfs-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    border-radius: var(--mfs-radius);
    box-shadow: var(--mfs-shadow-lg);
    margin: 20px 0;
}

/* ===================================================================
 *  DARK MODE
 * =================================================================== */
.muathemewpgiare-com-flash-sale-wrapper.mfs-dark-mode {
    --mfs-text: #e2e8f0;
    --mfs-text-light: #a0aec0;
    --mfs-bg: #1a202c;
    --mfs-bg-alt: #2d3748;
    --mfs-border: #4a5568;
}
.mfs-dark-mode .bg-white,
.mfs-dark-mode .bg-gray-50 {
    background-color: var(--mfs-bg-alt) !important;
}
.mfs-dark-mode .text-gray-800 { color: var(--mfs-text) !important; }
.mfs-dark-mode .text-gray-500,
.mfs-dark-mode .text-gray-400 { color: var(--mfs-text-light) !important; }
.mfs-dark-mode .border-gray-200,
.mfs-dark-mode .border-gray-300 { border-color: var(--mfs-border) !important; }
.mfs-dark-mode .muathemewpgiare-com-flash-sale-product-card {
    background: var(--mfs-bg) !important;
}
.mfs-dark-mode .muathemewpgiare-com-flash-sale-filter-input {
    background: var(--mfs-bg) !important;
    color: var(--mfs-text) !important;
    border-color: var(--mfs-border) !important;
}
.mfs-dark-mode .mfs-filter-sort {
    background: var(--mfs-bg) !important;
    color: var(--mfs-text) !important;
    border-color: var(--mfs-border) !important;
}

/* ===================================================================
 *  COLOR SCHEMES
 * =================================================================== */
.mfs-scheme-blue  { --mfs-primary: #3b82f6; --mfs-primary-light: #93c5fd; }
.mfs-scheme-green { --mfs-primary: #10b981; --mfs-primary-light: #6ee7b7; }
.mfs-scheme-purple{ --mfs-primary: #8b5cf6; --mfs-primary-light: #c4b5fd; }
.mfs-scheme-gold  { --mfs-primary: #f59e0b; --mfs-primary-light: #fcd34d; }

/* ===================================================================
 *  FONT FAMILIES
 * =================================================================== */
.mfs-font-inter       { font-family: 'Inter', sans-serif; }
.mfs-font-poppins     { font-family: 'Poppins', sans-serif; }
.mfs-font-roboto      { font-family: 'Roboto', sans-serif; }
.mfs-font-montserrat  { font-family: 'Montserrat', sans-serif; }
.mfs-font-be_vietnam  { font-family: 'Be Vietnam Pro', sans-serif; }

/* ===================================================================
 *  HERO HEADER
 * =================================================================== */
.muathemewpgiare-com-flash-sale-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--mfs-radius) var(--mfs-radius) 0 0;
}

.muathemewpgiare-com-flash-sale-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.muathemewpgiare-com-flash-sale-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: mfsParticle 3s ease-in-out infinite;
}
.muathemewpgiare-com-flash-sale-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.muathemewpgiare-com-flash-sale-particle:nth-child(2) { top: 60%; left: 30%; animation-delay: 0.5s; }
.muathemewpgiare-com-flash-sale-particle:nth-child(3) { top: 30%; left: 60%; animation-delay: 1s; }
.muathemewpgiare-com-flash-sale-particle:nth-child(4) { top: 70%; left: 80%; animation-delay: 1.5s; }
.muathemewpgiare-com-flash-sale-particle:nth-child(5) { top: 40%; left: 90%; animation-delay: 2s; }

@keyframes mfsParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.8; }
}

.muathemewpgiare-com-flash-sale-flash-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: mfsPulseIcon 2s ease-in-out infinite;
}

@keyframes mfsPulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Brand logo in header */
.mfs-brand-logo-wrap {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    overflow: hidden;
    padding: 4px;
}
.mfs-brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===================================================================
 *  COUNTDOWN STYLES
 * =================================================================== */
.muathemewpgiare-com-flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.muathemewpgiare-com-flash-sale-countdown-unit {
    text-align: center;
}

.muathemewpgiare-com-flash-sale-countdown-card {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 56px;
}

.muathemewpgiare-com-flash-sale-countdown-num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.muathemewpgiare-com-flash-sale-countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    display: block;
}

.muathemewpgiare-com-flash-sale-countdown-sep {
    font-size: 24px;
    font-weight: 900;
    color: rgba(255,255,255,0.6);
    animation: mfsBlink 1s step-start infinite;
}

@keyframes mfsBlink {
    50% { opacity: 0; }
}

/* Flip countdown */
.muathemewpgiare-com-flash-sale-countdown-flip .muathemewpgiare-com-flash-sale-countdown-card {
    perspective: 300px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.muathemewpgiare-com-flash-sale-countdown-flip .muathemewpgiare-com-flash-sale-countdown-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.muathemewpgiare-com-flash-sale-countdown-flip .muathemewpgiare-com-flash-sale-countdown-num.mfs-flip {
    animation: mfsFlip 0.6s ease-in-out;
}
@keyframes mfsFlip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

/* Slide countdown */
.muathemewpgiare-com-flash-sale-countdown-slide .muathemewpgiare-com-flash-sale-countdown-num.mfs-slide {
    animation: mfsSlideNum 0.5s ease-out;
}
@keyframes mfsSlideNum {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Circle countdown */
.muathemewpgiare-com-flash-sale-countdown-circle .muathemewpgiare-com-flash-sale-countdown-card {
    background: transparent;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.muathemewpgiare-com-flash-sale-countdown-circle .muathemewpgiare-com-flash-sale-countdown-num {
    font-size: 22px;
}

/* Neon countdown */
.muathemewpgiare-com-flash-sale-countdown-neon .muathemewpgiare-com-flash-sale-countdown-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(255,255,255,0.2), inset 0 0 15px rgba(255,255,255,0.05);
}
.muathemewpgiare-com-flash-sale-countdown-neon .muathemewpgiare-com-flash-sale-countdown-num {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* ===================================================================
 *  BADGE STYLES
 * =================================================================== */
/* Ribbon (default) */
.mfs-badge-ribbon .muathemewpgiare-com-flash-sale-discount-badge {
    border-radius: 4px 8px 8px 0;
}
.mfs-badge-ribbon .muathemewpgiare-com-flash-sale-discount-badge::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border: 3px solid transparent;
    border-top-color: inherit;
    border-right-color: inherit;
}

/* Circle badge */
.mfs-badge-circle .muathemewpgiare-com-flash-sale-discount-badge {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
}

/* Starburst badge */
.mfs-badge-starburst .muathemewpgiare-com-flash-sale-discount-badge {
    clip-path: polygon(50% 0%, 61% 11%, 75% 0%, 80% 15%, 98% 15%, 90% 28%, 100% 43%, 87% 48%, 93% 65%, 78% 62%, 75% 80%, 62% 70%, 50% 82%, 38% 70%, 25% 80%, 22% 62%, 7% 65%, 13% 48%, 0% 43%, 10% 28%, 2% 15%, 20% 15%, 25% 0%, 39% 11%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0;
}

/* Tag badge */
.mfs-badge-tag .muathemewpgiare-com-flash-sale-discount-badge {
    border-radius: 0 8px 8px 0;
    padding-left: 14px;
}
.mfs-badge-tag .muathemewpgiare-com-flash-sale-discount-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Banner badge */
.mfs-badge-banner .muathemewpgiare-com-flash-sale-discount-badge {
    top: 0;
    left: 0;
    right: auto;
    border-radius: 0;
    width: 100%;
    text-align: center;
    position: absolute;
    padding: 4px 0;
    font-size: 12px;
}

/* ===================================================================
 *  PROGRESS BAR
 * =================================================================== */
.muathemewpgiare-com-flash-sale-progress-track,
.muathemewpgiare-com-flash-sale-item-progress-track {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    overflow: hidden;
}
.muathemewpgiare-com-flash-sale-item-progress-track {
    background: #e2e8f0;
    height: 6px;
}
.muathemewpgiare-com-flash-sale-progress-fill,
.muathemewpgiare-com-flash-sale-item-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    transition: width 1s ease-out;
    position: relative;
}
.muathemewpgiare-com-flash-sale-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: mfsShimmer 2s infinite;
}
@keyframes mfsShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===================================================================
 *  PRODUCT CARDS
 * =================================================================== */
.muathemewpgiare-com-flash-sale-product-card {
    transition: all var(--mfs-transition);
    position: relative;
}
.muathemewpgiare-com-flash-sale-product-card:hover {
    box-shadow: var(--mfs-shadow-lg);
    transform: translateY(-4px);
}
.muathemewpgiare-com-flash-sale-sold-out {
    opacity: 0.7;
    filter: grayscale(0.3);
}
.muathemewpgiare-com-flash-sale-sold-out:hover {
    transform: none;
}

/* Card actions overlay */
.mfs-card-actions {
    z-index: 10;
}

/* ===================================================================
 *  PRODUCT LABELS
 * =================================================================== */
.mfs-product-label {
    z-index: 5;
    animation: mfsLabelPop 0.5s ease-out;
}
@keyframes mfsLabelPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ===================================================================
 *  REVIEW STARS
 * =================================================================== */
.mfs-review-stars svg {
    transition: transform 0.2s;
}
.mfs-review-stars svg:hover {
    transform: scale(1.2);
}

/* ===================================================================
 *  QUANTITY SELECTOR
 * =================================================================== */
.mfs-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.mfs-qty-minus,
.mfs-qty-plus {
    background: transparent;
    border: 1px solid var(--mfs-border);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    font-size: 16px;
}
.mfs-qty-minus:hover,
.mfs-qty-plus:hover {
    background: var(--mfs-bg-alt);
}
.mfs-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}
.mfs-qty-input::-webkit-outer-spin-button,
.mfs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===================================================================
 *  SOCIAL SHARE
 * =================================================================== */
.muathemewpgiare-com-flash-sale-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}
.muathemewpgiare-com-flash-sale-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.muathemewpgiare-com-flash-sale-share-fb { background: #1877f2; }
.muathemewpgiare-com-flash-sale-share-tw { background: #1da1f2; }
.muathemewpgiare-com-flash-sale-share-tg { background: #0088cc; }

/* ===================================================================
 *  CTA BUTTON
 * =================================================================== */
.muathemewpgiare-com-flash-sale-cta-btn {
    position: relative;
    overflow: hidden;
}
.muathemewpgiare-com-flash-sale-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.muathemewpgiare-com-flash-sale-cta-btn:hover::before {
    left: 100%;
}

/* AJAX cart button states */
.mfs-ajax-add-to-cart.mfs-adding {
    pointer-events: none;
    opacity: 0.7;
}
.mfs-ajax-add-to-cart.mfs-added {
    background: #10b981 !important;
}

/* ===================================================================
 *  LAYOUT: SLIDER
 * =================================================================== */
.mfs-layout-slider .mfs-slider-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mfs-layout-slider .mfs-slider-track::-webkit-scrollbar {
    display: none;
}
.mfs-layout-slider .muathemewpgiare-com-flash-sale-product-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* ===================================================================
 *  LAYOUT: LIST
 * =================================================================== */
.mfs-layout-list .muathemewpgiare-com-flash-sale-product-card {
    flex-direction: row;
    border-radius: 12px;
}
.mfs-layout-list .muathemewpgiare-com-flash-sale-product-card > div:first-child {
    width: 160px;
    flex-shrink: 0;
}
.mfs-layout-list .muathemewpgiare-com-flash-sale-product-card > div:first-child img {
    border-radius: 12px 0 0 12px;
}

/* ===================================================================
 *  LAYOUT: MASONRY
 * =================================================================== */
.mfs-layout-masonry .muathemewpgiare-com-flash-sale-products {
    column-gap: 16px;
}
.mfs-layout-masonry .muathemewpgiare-com-flash-sale-product-card {
    break-inside: avoid;
    margin-bottom: 16px;
    display: inline-block;
    width: 100%;
}

/* ===================================================================
 *  LAYOUT: TIMELINE
 * =================================================================== */
.mfs-layout-timeline .mfs-timeline {
    position: relative;
    padding-left: 40px;
}
.mfs-layout-timeline .mfs-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--mfs-border);
}
.mfs-layout-timeline .mfs-timeline-item {
    position: relative;
    margin-bottom: 16px;
}
.mfs-layout-timeline .mfs-timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: var(--mfs-primary, #e53e3e);
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 1;
}

/* ===================================================================
 *  NOTIFICATION BAR
 * =================================================================== */
.mfs-notification-bar {
    padding: 10px 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===================================================================
 *  URGENCY EFFECTS
 * =================================================================== */
.mfs-urgency-pulse {
    animation: mfsUrgencyPulse 2s ease-in-out infinite;
}
@keyframes mfsUrgencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(1.02); }
}

/* ===================================================================
 *  SCHEDULE DISPLAY
 * =================================================================== */
.mfs-schedule-info {
    padding: 4px 0;
}

/* ===================================================================
 *  COUPON BOX
 * =================================================================== */
.mfs-coupon-box .mfs-coupon-code {
    letter-spacing: 2px;
    user-select: all;
}
.mfs-copy-coupon {
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}
.mfs-copy-coupon:hover {
    opacity: 0.85;
    transform: scale(1.05);
}
.mfs-copy-coupon.mfs-copied {
    background: #10b981 !important;
}

/* ===================================================================
 *  WISHLIST BUTTON
 * =================================================================== */
.mfs-wishlist-btn.mfs-wishlisted svg {
    fill: #ec4899;
    color: #ec4899;
}

/* ===================================================================
 *  COMPARE BUTTON
 * =================================================================== */
.mfs-compare-btn.mfs-compared svg {
    color: #3b82f6;
}

/* ===================================================================
 *  FILTER SORT
 * =================================================================== */
.mfs-filter-sort {
    background: #fff;
    cursor: pointer;
    outline: none;
}
.mfs-filter-sort:focus {
    border-color: var(--mfs-primary);
    box-shadow: 0 0 0 2px rgba(229,62,62,0.1);
}

/* ===================================================================
 *  IMAGE ZOOM
 * =================================================================== */
.mfs-zoom-lens {
    display: none;
}
.muathemewpgiare-com-flash-sale-product-card:hover .mfs-zoom-lens {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: zoom-in;
}

/* ===================================================================
 *  QUICK VIEW MODAL
 * =================================================================== */
.muathemewpgiare-com-flash-sale-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.muathemewpgiare-com-flash-sale-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.muathemewpgiare-com-flash-sale-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--mfs-radius);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: mfsModalIn 0.3s ease-out;
}
@keyframes mfsModalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.muathemewpgiare-com-flash-sale-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    color: #64748b;
}
.muathemewpgiare-com-flash-sale-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.muathemewpgiare-com-flash-sale-quick-view-body {
    padding: 24px;
}
.muathemewpgiare-com-flash-sale-quick-view-loading {
    text-align: center;
    padding: 40px;
}

/* ===================================================================
 *  SPINNER
 * =================================================================== */
.muathemewpgiare-com-flash-sale-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--mfs-primary, #e53e3e);
    border-radius: 50%;
    animation: mfsSpin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes mfsSpin {
    to { transform: rotate(360deg); }
}

/* ===================================================================
 *  STICKY BAR
 * =================================================================== */
.muathemewpgiare-com-flash-sale-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.muathemewpgiare-com-flash-sale-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    flex-wrap: wrap;
}
.muathemewpgiare-com-flash-sale-sticky-text {
    font-weight: 700;
    font-size: 14px;
}
.muathemewpgiare-com-flash-sale-sticky-countdown {
    display: flex;
    gap: 6px;
}
.muathemewpgiare-com-flash-sale-sticky-unit {
    background: rgba(0,0,0,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.muathemewpgiare-com-flash-sale-sticky-brand {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
}
.muathemewpgiare-com-flash-sale-sticky-brand:hover {
    color: #fff;
}

/* ===================================================================
 *  LOAD MORE
 * =================================================================== */
.mfs-load-more-btn {
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}
.mfs-load-more-btn:hover {
    transform: translateY(-2px);
}
.mfs-load-more-btn.mfs-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ===================================================================
 *  POPUP
 * =================================================================== */
.muathemewpgiare-com-flash-sale-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999998;
    animation: mfsPopupSlide 0.5s ease-out;
}
@keyframes mfsPopupSlide {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.muathemewpgiare-com-flash-sale-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 320px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-left: 4px solid;
    position: relative;
    text-align: center;
}
.muathemewpgiare-com-flash-sale-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}
.muathemewpgiare-com-flash-sale-popup-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.muathemewpgiare-com-flash-sale-popup-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    color: #fff;
}
.muathemewpgiare-com-flash-sale-popup-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}
.muathemewpgiare-com-flash-sale-popup-content p {
    margin: 4px 0;
    font-size: 14px;
    color: #475569;
}
.muathemewpgiare-com-flash-sale-popup-brand {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 12px !important;
}
.muathemewpgiare-com-flash-sale-popup-brand a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.muathemewpgiare-com-flash-sale-popup-brand a:hover {
    text-decoration: underline;
}

/* ===================================================================
 *  ANIMATIONS (animate-in)
 * =================================================================== */
.mfs-animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: mfsAnimateIn 0.6s ease-out forwards;
}
@keyframes mfsAnimateIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
 *  TOAST NOTIFICATION
 * =================================================================== */
.mfs-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999997;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mfs-toast {
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: mfsToastIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}
.mfs-toast.mfs-toast-success { border-left: 4px solid #10b981; }
.mfs-toast.mfs-toast-error   { border-left: 4px solid #ef4444; }
.mfs-toast.mfs-toast-info    { border-left: 4px solid #3b82f6; }
@keyframes mfsToastIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.mfs-toast.mfs-toast-out {
    animation: mfsToastOut 0.3s ease-in forwards;
}
@keyframes mfsToastOut {
    to { transform: translateX(-100%); opacity: 0; }
}

/* ===================================================================
 *  FLOATING BUTTON
 * =================================================================== */
.mfs-floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 99998;
    background: var(--mfs-primary, #e53e3e);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: all 0.3s;
    animation: mfsFloatBounce 3s ease-in-out infinite;
    cursor: pointer;
    border: none;
}
.mfs-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
@keyframes mfsFloatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===================================================================
 *  RECENTLY VIEWED
 * =================================================================== */
.mfs-recently-viewed-wrap {
    padding: 20px;
    background: var(--mfs-bg-alt);
    border-top: 1px solid var(--mfs-border);
}
.mfs-recently-viewed-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--mfs-text);
}
.mfs-recently-viewed-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.mfs-recently-viewed-item {
    flex: 0 0 auto;
    width: 80px;
    text-align: center;
}
.mfs-recently-viewed-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}
.mfs-recently-viewed-item span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: var(--mfs-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================================================
 *  COMPARE DRAWER
 * =================================================================== */
.mfs-compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    z-index: 99997;
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-radius: 16px 16px 0 0;
}
.mfs-compare-drawer.mfs-visible {
    transform: translateY(0);
}
.mfs-compare-drawer-items {
    display: flex;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
}
.mfs-compare-drawer-item {
    flex: 0 0 auto;
    position: relative;
}
.mfs-compare-drawer-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

/* ===================================================================
 *  FOOTER
 * =================================================================== */
.muathemewpgiare-com-flash-sale-footer a {
    transition: opacity 0.2s;
}
.muathemewpgiare-com-flash-sale-footer a:hover {
    opacity: 0.8;
}

/* ===================================================================
 *  NO MATCH
 * =================================================================== */
.muathemewpgiare-com-flash-sale-no-match {
    grid-column: 1 / -1;
}

/* ===================================================================
 *  DISCOUNT BADGE (standalone fallback)
 * =================================================================== */
.muathemewpgiare-com-flash-sale-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 8px;
    padding: 4px 10px;
    color: #fff;
    background: #ef4444;
}

/* ===================================================================
 *  SOLD OVERLAY
 * =================================================================== */
.muathemewpgiare-com-flash-sale-sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    border-radius: inherit;
}

/* ===================================================================
 *  GLOBAL PROGRESS WRAPPER
 * =================================================================== */
.muathemewpgiare-com-flash-sale-global-progress {
    margin-top: 4px;
}

/* ===================================================================
 *  ITEM PROGRESS WRAPPER
 * =================================================================== */
.muathemewpgiare-com-flash-sale-item-progress {
    margin-top: 4px;
}

/* ===================================================================
 *  PRODUCT LABELS (hot/new colors)
 * =================================================================== */
.mfs-label-hot {
    background: #ef4444 !important;
    color: #fff !important;
}
.mfs-label-new {
    background: #22c55e !important;
    color: #fff !important;
}

/* ===================================================================
 *  QUICK VIEW BUTTON
 * =================================================================== */
.muathemewpgiare-com-flash-sale-quick-view-btn {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.muathemewpgiare-com-flash-sale-quick-view-btn:hover {
    transform: scale(1.05);
}

/* ===================================================================
 *  SHARE BUTTONS WRAPPER
 * =================================================================== */
.muathemewpgiare-com-flash-sale-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===================================================================
 *  NOTIFICATION TEXT
 * =================================================================== */
.mfs-notification-text {
    flex: 1;
    font-weight: 500;
}

/* ===================================================================
 *  FILTERS WRAPPER
 * =================================================================== */
.mfs-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ===================================================================
 *  ANIMATED WRAPPER
 * =================================================================== */
.mfs-animated .muathemewpgiare-com-flash-sale-product-card {
    opacity: 0;
    transform: translateY(20px);
}
.mfs-animated .mfs-animate-in {
    animation: mfsAnimateIn 0.6s ease-out forwards;
}

/* ===================================================================
 *  COUNTDOWN SIMPLE VARIANT
 * =================================================================== */
.muathemewpgiare-com-flash-sale-countdown-simple .muathemewpgiare-com-flash-sale-countdown-card {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 6px 10px;
}
.muathemewpgiare-com-flash-sale-countdown-simple .muathemewpgiare-com-flash-sale-countdown-sep {
    opacity: 0.6;
}

/* ===================================================================
 *  POPUP DESC
 * =================================================================== */
.muathemewpgiare-com-flash-sale-popup-desc {
    font-size: 13px;
    color: #64748b;
}

/* ===================================================================
 *  BULK DISCOUNT INFO
 * =================================================================== */
.mfs-bulk-info {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* ===================================================================
 *  LOAD MORE WRAPPER
 * =================================================================== */
.mfs-load-more-wrap {
    text-align: center;
    padding: 16px;
}

/* ===================================================================
 *  URGENCY BAR
 * =================================================================== */
.mfs-urgency-bar {
    margin-top: 4px;
}

/* ===================================================================
 *  RESPONSIVE
 * =================================================================== */
@media (max-width: 768px) {
    .muathemewpgiare-com-flash-sale-countdown-num {
        font-size: 20px;
    }
    .muathemewpgiare-com-flash-sale-countdown-card {
        min-width: 44px;
        padding: 6px 8px;
    }
    .muathemewpgiare-com-flash-sale-countdown-sep {
        font-size: 18px;
    }
    .muathemewpgiare-com-flash-sale-sticky-inner {
        padding: 8px 12px;
        gap: 8px;
        font-size: 12px;
    }
    .muathemewpgiare-com-flash-sale-sticky-text {
        font-size: 12px;
    }
    .muathemewpgiare-com-flash-sale-popup {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }
    .muathemewpgiare-com-flash-sale-popup-content {
        max-width: 100%;
    }
    .mfs-floating-btn {
        padding: 10px 16px;
        font-size: 13px;
        bottom: 70px;
    }
    .mfs-toast-container {
        left: 10px;
        right: 10px;
    }
    .mfs-toast {
        max-width: 100%;
    }
    .mfs-qty-wrap {
        gap: 2px;
    }

    /* Timeline mobile */
    .mfs-layout-timeline .mfs-timeline {
        padding-left: 28px;
    }
    .mfs-layout-timeline .mfs-timeline-item::before {
        left: -20px;
    }
}

@media (max-width: 480px) {
    .muathemewpgiare-com-flash-sale-hero .relative.z-10 {
        padding: 16px !important;
    }
    .muathemewpgiare-com-flash-sale-countdown {
        gap: 4px;
    }
    .muathemewpgiare-com-flash-sale-countdown-card {
        min-width: 38px;
        padding: 4px 6px;
    }
    .muathemewpgiare-com-flash-sale-countdown-num {
        font-size: 18px;
    }

    /* List layout mobile */
    .mfs-layout-list .muathemewpgiare-com-flash-sale-product-card {
        flex-direction: column;
    }
    .mfs-layout-list .muathemewpgiare-com-flash-sale-product-card > div:first-child {
        width: 100%;
    }
}

/* ===================================================================
 *  PRINT
 * =================================================================== */
@media print {
    .muathemewpgiare-com-flash-sale-sticky-bar,
    .muathemewpgiare-com-flash-sale-popup,
    .mfs-floating-btn,
    .mfs-toast-container {
        display: none !important;
    }
}
