/* Flash Sale — Carousel & Product Item Cards */

.flash-items-wrapper { position: relative; width: 100%; padding: 0 20px; margin: 0 -20px; }
@media (max-width: 768px) { .flash-items-wrapper { padding: 0; margin: 0; } }

.flash-items {
    display: flex; gap: 1rem; overflow-x: auto; overflow-y: hidden;
    padding: 1rem 0.5rem 0.75rem; width: 100%;
    -ms-overflow-style: none; scrollbar-width: none;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-padding: 0.5rem;
    -webkit-transform: translateZ(0); transform: translateZ(0); will-change: scroll-position;
    touch-action: pan-x; overscroll-behavior-x: contain;
}
.flash-items::-webkit-scrollbar { display: none; width: 0; height: 0; }

.flash-item {
    flex: 0 0 260px; min-width: 260px; max-width: 300px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem; padding: 0.75rem;
    display: grid; grid-template-columns: 95px 1fr; gap: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    position: relative; overflow: hidden;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start; scroll-snap-stop: always;
    -webkit-transform: translateZ(0); transform: translateZ(0); will-change: transform, box-shadow;
    -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
}

@media (hover: none) and (pointer: coarse) {
    .flash-item { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
    .flash-item:active { transform: scale(0.98); border-color: rgba(155, 184, 245, 0.4); }
}
@media (hover: hover) and (pointer: fine) {
    .flash-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); border-color: rgba(155, 184, 245, 0.35); box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26); }
}

.flash-item-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0.75rem; }

.flash-item-img {
    width: 95px; height: 95px; object-fit: cover; border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-user-drag: none; -khtml-user-drag: none;
    content-visibility: auto;
}

.flash-save {
    position: absolute; bottom: 4px; left: 4px;
    background: rgba(12, 15, 22, 0.85); color: #b9ff66;
    font-weight: 700; font-size: 0.65rem; padding: 0.25rem 0.4rem;
    border-radius: 0.4rem; border: 1px solid rgba(185, 255, 102, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    pointer-events: none;
}

.flash-item-details { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.flash-item-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem; font-weight: 600; color: var(--flash-text);
    margin-bottom: 0.35rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
    word-break: break-word; hyphens: auto;
}

.flash-prices { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.flash-price-new { color: var(--flash-primary); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.flash-price-old { color: rgba(205, 210, 225, 0.5); text-decoration: line-through; font-size: 0.8rem; }
.flash-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
