.flash-sale-container {
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Header with Timer inline */
.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}
.flash-sale-header h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    animation: flashAnim 1.5s infinite alternate;
}
@keyframes flashAnim {
    0% { color: yellow; text-shadow: 0 0 5px yellow; }
    100% { color: red; text-shadow: 0 0 10px red; }
}
.flash-sale-timer span {
    padding: 2px 5px;
    font-size: 14px;
    border-radius: 4px;
}
.flash-sale-timer .fs-colon {
    background: transparent;
    color: yellow;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
}

/* Swiper slider */
.flash-sale-slider {
    position: relative;
    width: 100%;
}
.flash-sale-slider .swiper-wrapper {
    align-items: stretch; /* make all slides equal height */
}

/* Card with neon border */
.flash-sale-card {
    background: #0d0d1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;          /* allow auto height */
    min-height: 180px;     /* consistent minimum */
}

.flash-sale-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(90deg, #ff0, #f0f, #0ff, #ff0) border-box;
    background-size: 400% 400%;
    animation: neonStroke 6s linear infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes neonStroke {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.flash-sale-card > * {
    position: relative;
    z-index: 2;
}

/* Product Image in 16:9 ratio */
.flash-sale-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Product Content */
.flash-sale-card-content {
    padding: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product Title only */
.flash-sale-card h3 {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide Woo Price */
.flash-sale-card .price {
    display: none !important;
}

/* View Button with shine effect */
.flash-sale-view {
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
    color: #000;
    font-weight: bold;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 10px; /* smaller radius */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.flash-sale-view::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0%   { left: -100%; }
    50%  { left: 120%; }
    100% { left: 120%; }
}

.flash-sale-view:hover {
    background: linear-gradient(90deg, #ffcc00, orange);
}

/* Hide Swiper Arrows */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}
