/* ===== Flash Sale — khớp design system Hygge / cashback ===== */
.flash-sale-page {
	background: #f5f6f8;
	min-height: 60vh;
	padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.flash-sale-page__body {
	max-width: 960px;
	padding-top: 0.75rem;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.flash-sale-panel {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.flash-sale-panel--filters {
	padding: 0.85rem 0.9rem 0.95rem;
}

.flash-sale-panel--products {
	padding: 0.75rem 0.75rem 1rem;
}

/* Search */
.flash-sale-search {
	margin-bottom: 0.75rem;
}

.flash-sale-search__bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem 0.55rem 0.85rem;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.flash-sale-search__bar:focus-within {
	border-color: rgba(252, 83, 50, 0.45);
	box-shadow: 0 0 0 3px rgba(252, 83, 50, 0.12);
}

.flash-sale-search__icon {
	color: #9ca3af;
	font-size: 18px;
	flex-shrink: 0;
}

.flash-sale-search__input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 15px;
	color: #1f2937;
	outline: none;
}

.flash-sale-search__input::placeholder {
	color: #9ca3af;
}

.flash-sale-search__clear {
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 999px;
	background: #f3f4f6;
	color: #6b7280;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

.flash-sale-search__clear.show {
	display: inline-flex;
}

/* Filters */
.flash-sale-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.flash-sale-filters__title {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
}

.flash-sale-filters__title i {
	color: var(--color-primary);
}

.flash-sale-filters__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f9fafb;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.flash-sale-filters__toggle i {
	transition: transform 0.2s ease;
}

.flash-sale-filters__toggle.expanded i {
	transform: rotate(180deg);
}

.filter-section {
	margin-bottom: 0.75rem;
}

.filter-section:last-child {
	margin-bottom: 0;
}

.filter-section--price {
	margin-bottom: 0.65rem;
}

.filter-section.collapsible {
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-bottom 0.3s ease-out;
	max-height: 0 !important;
	opacity: 0 !important;
	margin-bottom: 0 !important;
	display: none;
}

.filter-section.collapsible:not(.collapsed) {
	display: block !important;
	max-height: 2000px !important;
	opacity: 1 !important;
	margin-bottom: 0;
}

.filter-section.collapsible .filter-section {
	margin-bottom: 0.75rem;
}

.filter-label {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 0.45rem;
	display: block;
}

.filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.filter-buttons--scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.filter-buttons--scroll::-webkit-scrollbar {
	display: none;
}

.filter-btn {
	padding: 0.4rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f9fafb;
	color: #4b5563;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.filter-btn:hover {
	border-color: #fdba74;
	background: #fff7ed;
	color: #c2410c;
}

.filter-btn.active {
	background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b35 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(252, 83, 50, 0.28);
}

.filter-btn.exclude {
	background: #fff;
	color: #dc2626;
	border-color: #fca5a5;
}

.filter-btn.exclude::before {
	content: '×';
	font-size: 16px;
	font-weight: 700;
	margin-right: 2px;
}

/* Tabs — segmented pills */
.flash-sale-tabs-wrap {
	margin-bottom: 0.75rem;
}

.flash-sale-tabs {
	display: flex;
	gap: 0.35rem;
	padding: 0.25rem;
	background: #f3f4f6;
	border-radius: 12px;
}

.flash-sale-tab {
	flex: 1;
	padding: 0.55rem 0.75rem;
	font-size: 13px;
	font-weight: 700;
	color: #6b7280 !important;
	cursor: pointer;
	border: none !important;
	background: transparent !important;
	border-radius: 10px;
	position: relative;
	transition: color 0.2s, background 0.2s, box-shadow 0.2s;
	box-shadow: none !important;
	outline: none !important;
}

.flash-sale-tab:hover {
	color: var(--color-primary) !important;
}

.flash-sale-tab.active {
	color: var(--color-primary) !important;
	background: #fff !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.flash-sale-tab__count,
.flash-sale-tab span {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin-left: 0.2rem;
	color: inherit !important;
	font-weight: 700;
}

.flash-sale-tab.active::after {
	display: none !important;
}

.flash-sale-tab::before {
	display: none !important;
}

/* Legacy aliases */
.flash-sale-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 16px;
}

.flash-sale-search .search-box-wrapper,
.flash-sale-filters .filter-section-header,
.flash-sale-filters .filter-toggle-btn {
	display: none;
}

/* Products Grid */
.flash-sale-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.flash-sale-product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.flash-sale-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b35 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(252, 83, 50, 0.35);
}

.sold-out-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #666;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
}

.product-card-sold-out {
    opacity: 0.7;
    position: relative;
}

.product-card-sold-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    pointer-events: none;
}

.product-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.action-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.action-btn.active {
    color: #e53935;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 40px;
    max-height: calc(1.4em * 2); /* 2 dòng với line-height 1.4 */
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 17px;
    font-weight: 800;
    color: #d32f2f;
}

.product-price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.product-stock-info {
    margin-bottom: 12px;
}

.product-stock-bar {
    height: 22px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.product-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #ff8a65);
    transition: width 0.3s;
    position: absolute;
    top: 0;
    left: 0;
}

.stock-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 1;
}

.product-actions-bottom {
    display: flex;
    gap: 8px;
}

.btn-buy-now {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(252, 83, 50, 0.25);
}

.btn-buy-now:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-buy-now:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-buy-now:disabled:hover {
    background: #ccc;
    transform: none;
}

.btn-share {
    padding: 0.6rem 0.75rem;
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-share:hover {
    background: #fff7ed;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading-spinner-small {
    text-align: center;
    padding: 10px;
    color: #999;
}

.loading-spinner-small i {
    font-size: 18px;
    color: #E53935;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(252, 83, 50, 0.12), rgba(252, 83, 50, 0.05));
    color: var(--color-primary);
    font-size: 28px;
}

.empty-state__title {
    margin: 0 0 0.35rem;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.empty-state__text {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* Error State */
.empty-state.error-state {
    color: #E53935;
}

.empty-state.error-state i {
    color: #E53935;
}

.empty-state.error-state p {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Retry Button */
.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #E53935 0%, #FF6B35 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.btn-retry:active {
    transform: translateY(0);
}

.btn-retry:focus {
    outline: 3px solid rgba(229, 57, 53, 0.3);
    outline-offset: 2px;
}

.btn-retry i {
    font-size: 16px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States for Accessibility */
.filter-btn:focus,
.flash-sale-tab:focus,
.btn-buy-now:focus,
.btn-share:focus,
.search-box-input:focus,
.search-box-clear:focus,
.filter-toggle-btn:focus,
.btn-retry:focus {
    outline: none !important;
    outline-offset: 0;
}

.filter-btn:focus-visible,
.flash-sale-tab:focus-visible,
.btn-buy-now:focus-visible,
.btn-share:focus-visible,
.search-box-input:focus-visible,
.search-box-clear:focus-visible,
.filter-toggle-btn:focus-visible,
.btn-retry:focus-visible {
    outline: none !important;
    outline-offset: 0;
}

/* Skip to content for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

.load-more-indicator {
    text-align: center;
    padding: 20px;
    color: #999;
    display: none;
}

.load-more-indicator.show {
    display: block;
}

.flash-sale-loading-label {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0.5rem 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.flash-sale-loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.35rem;
}

.flash-sale-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: flash-sale-bounce 1.4s ease-in-out infinite both;
}

.flash-sale-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.flash-sale-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes flash-sale-bounce {
    0%, 80%, 100% { transform: scale(0.55); opacity: 0.45; }
    40% { transform: scale(1); opacity: 1; }
}

/* Skeleton */
.flash-sale-skeleton-grid {
    display: contents;
}

.flash-sale-product-card--skeleton {
    pointer-events: none;
    border-color: #f3f4f6;
}

.flash-sale-skeleton-media {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #eceff1 0%, #fafafa 50%, #eceff1 100%);
    background-size: 200% 100%;
    animation: flash-sale-shimmer 1.2s ease-in-out infinite;
}

.flash-sale-skeleton-body {
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.flash-sale-skeleton-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f2f5 0%, #ffffff 50%, #f0f2f5 100%);
    background-size: 200% 100%;
    animation: flash-sale-shimmer 1.2s ease-in-out infinite;
}

.flash-sale-skeleton-line--title { height: 12px; }
.flash-sale-skeleton-line--short { width: 72%; }
.flash-sale-skeleton-line--price { height: 16px; width: 45%; }
.flash-sale-skeleton-line--bar { height: 20px; border-radius: 999px; }
.flash-sale-skeleton-line--btn { height: 36px; border-radius: 999px; margin-top: 0.15rem; }

@keyframes flash-sale-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.flash-sale-guide-steps {
    margin: 0;
    padding: 0;
}

.help-modal-body .cashback-guide-steps__text strong {
    color: #1f2937;
}

/* Floating Help Button */
.flash-sale-help-btn {
    position: fixed;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(252, 83, 50, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 22px;
}

.flash-sale-help-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(252, 83, 50, 0.45);
}

.flash-sale-help-btn:active {
    transform: scale(0.95);
}

/* Help Modal */
.flash-sale-help-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

.flash-sale-help-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.help-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: none;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b35 100%);
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

.help-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.help-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 20px;
}

.help-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.help-modal-body {
    padding: 24px;
}

.help-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.help-step:last-of-type {
    margin-bottom: 0;
}

.help-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E53935 0%, #FF6B35 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.help-step-content {
    flex: 1;
}

.help-step-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.help-step-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.help-tip {
    margin-top: 32px;
    padding: 16px;
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #E65100;
    font-size: 14px;
    line-height: 1.6;
}

.help-tip i {
    color: #FF9800;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.help-tip strong {
    color: #E65100;
    font-weight: 600;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .flash-sale-page__body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .flash-sale-panel--filters,
    .flash-sale-panel--products {
        border-radius: 14px;
    }
    
    .flash-sale-filters {
        padding: 0;
    }
    
    .filter-section {
        margin-bottom: 16px;
    }
    
    .filter-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .filter-toggle-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .filter-section-header {
        margin-bottom: 8px;
    }
    
    .filter-buttons {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .filter-buttons::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .flash-sale-tabs {
        padding: 0 12px;
        margin-bottom: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .flash-sale-tab {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
        color: #666 !important; /* Ensure color is correct on mobile */
        border: none !important; /* Remove all borders on mobile */
        border-left: none !important;
        border-right: none !important;
    }
    
    .flash-sale-tab.active {
        color: #e53935 !important; /* Ensure active color is correct */
    }
    
    /* Ensure tab counts are visible on mobile */
    .flash-sale-tab span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-left: 4px;
        color: inherit !important;
        min-width: 20px;
        text-align: center;
    }
    
    /* Remove any dividers on mobile */
    .flash-sale-tab:not(:last-child) {
        border-right: none !important;
    }
    
    .flash-sale-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
    
    .flash-sale-product-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper {
        padding-top: 100%;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 12px;
        margin-bottom: 6px;
        min-height: 32px;
        line-height: 1.4;
        max-height: calc(1.4em * 2); /* 2 dòng với line-height 1.4 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-price-old {
        font-size: 11px;
    }
    
    .product-stock-bar {
        height: 20px;
        border-radius: 10px;
    }
    
    .stock-text-overlay {
        font-size: 10px;
        font-weight: 600;
    }
    
    .product-actions-bottom {
        gap: 0.35rem;
        flex-direction: row;
    }
    
    .btn-buy-now {
        padding: 0.5rem 0.55rem;
        font-size: 11px;
    }
    
    .btn-share {
        padding: 0.5rem;
        min-width: 36px;
        justify-content: center;
    }

    .btn-share span {
        display: none;
    }
    
    .discount-badge,
    .sold-out-badge {
        top: 4px;
        right: 4px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .product-actions {
        top: 4px;
        left: 4px;
        gap: 6px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .loading-spinner,
    .empty-state {
        padding: 30px 12px;
    }
    
    .empty-state i {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .flash-sale-help-btn {
        width: 48px;
        height: 48px;
        bottom: 100px; /* Tránh bottom navigation (64px button + 16px padding + 20px safe area) */
        right: 20px;
        font-size: 24px;
    }
    
    .help-modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .help-modal-header {
        padding: 20px;
    }
    
    .help-modal-header h3 {
        font-size: 20px;
    }
    
    .help-modal-body {
        padding: 20px;
    }
    
    .help-step {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .help-step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .help-step-content h4 {
        font-size: 16px;
    }
    
    .help-step-content p {
        font-size: 14px;
    }
    
    .help-tip {
        margin-top: 24px;
        padding: 12px;
        font-size: 13px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .flash-sale-container {
        padding: 8px 4px;
    }
    
    .flash-sale-filters {
        padding: 10px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .flash-sale-tab {
        padding: 10px 12px;
        font-size: 12px;
        color: #666 !important; /* Ensure color is correct on small mobile */
        border: none !important; /* Remove all borders on small mobile */
        border-left: none !important;
        border-right: none !important;
    }
    
    .flash-sale-tab.active {
        color: #e53935 !important; /* Ensure active color is correct */
    }
    
    /* Ensure tab counts are visible on small mobile */
    .flash-sale-tab span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        margin-left: 4px;
        color: inherit !important;
        min-width: 18px;
        text-align: center;
    }
    
    /* Remove any dividers on small mobile */
    .flash-sale-tab:not(:last-child) {
        border-right: none !important;
    }
    
    .flash-sale-products {
        gap: 6px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-name {
        font-size: 11px;
        min-height: 28px;
        max-height: calc(1.4em * 2); /* 2 dòng với line-height 1.4 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-price-old {
        font-size: 10px;
    }
    
    .product-stock-bar {
        height: 18px;
    }
    
    .stock-text-overlay {
        font-size: 9px;
    }
    
    .btn-buy-now,
    .btn-share {
        padding: 7px;
        font-size: 11px;
    }
}
</style>
