/* ========================================
   Flash Sale - Perfect Final
   ======================================== */

* {
    box-sizing: border-box;
}

.fswc-slider-section {
    padding: 30px 15px;
    margin: 30px 0;
    background: #fff;
}

.fswc-container {
    max-width: 1200px;
    margin: 0 auto;
}

.fswc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.fswc-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #ff4444;
}

.fswc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid currentColor;
}

.fswc-view-all:hover {
    opacity: 0.85;
}

.fswc-arrow {
    font-size: 20px;
    line-height: 1;
}

.fswc-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.fswc-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.fswc-product-image {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    padding-top: 100%;
}

.fswc-product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fswc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fswc-product-card:hover .fswc-product-image img {
    transform: scale(1.05);
}

.fswc-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4444;
    color: #fff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.fswc-sale-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.fswc-product-content {
    padding: 12px;
}

.fswc-product-title {
    font-size: 14px;
    margin: 0 0 8px 0;
    min-height: 40px;
    line-height: 1.4;
    font-weight: 400;
    color: #333;
}

.fswc-product-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fswc-product-title a:hover {
    color: #ff4444;
}

.fswc-product-price {
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fswc-regular-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.fswc-sale-price {
    color: #ff4444;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.fswc-countdown {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 4px;
    margin: 10px 0;
    justify-content: center;
}

.fswc-countdown-item {
    text-align: center;
    min-width: 40px;
}

.fswc-countdown-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ff4444;
    line-height: 1;
}

.fswc-countdown-label {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.fswc-expired {
    text-align: center;
    color: #999;
    font-size: 12px;
}

.fswc-add-to-cart {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #ff4444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.fswc-add-to-cart:hover {
    background: #e63939;
    color: #fff;
}

/* ========================================
   DESKTOP SLIDER - CUSTOM ARROWS (NO TEXT)
   ======================================== */

.fswc-slider {
    margin: 0 -8px;
    position: relative;
}

/* Custom Arrow Buttons */
.fswc-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    z-index: 100;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0;
    line-height: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* HIDE DEFAULT TEXT */
.fswc-slider .slick-prev:before,
.fswc-slider .slick-next:before {
    content: '' !important;
    display: none !important;
}

/* Custom Arrow Icons */
.fswc-slider .slick-prev:after,
.fswc-slider .slick-next:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transition: border-color 0.2s ease;
}

.fswc-slider .slick-prev:after {
    transform: rotate(45deg);
    margin-left: 3px;
}

.fswc-slider .slick-next:after {
    transform: rotate(-135deg);
    margin-right: 3px;
}

.fswc-slider .slick-arrow:hover {
    background: #ff4444;
    border-color: #ff4444;
}

.fswc-slider .slick-prev:hover:after,
.fswc-slider .slick-next:hover:after {
    border-color: #fff;
}

.fswc-slider .slick-prev {
    left: -20px;
}

.fswc-slider .slick-next {
    right: -20px;
}

.fswc-slider .slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fswc-slider .slick-dots {
    display: none !important;
}

/* ========================================
   VIEW ALL PAGE
   ======================================== */

.fswc-all-products {
    padding: 30px 15px;
    background: #f5f5f5;
}

.fswc-page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ff4444;
}

.fswc-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
}

.fswc-products-grid .fswc-product-card {
    margin: 0;
}

.fswc-no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 4px;
}

.fswc-no-products p {
    font-size: 16px;
    color: #999;
}

.fswc-pagination {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.fswc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e8e8e8;
}

.fswc-pagination .page-numbers:hover,
.fswc-pagination .page-numbers.current {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
}

.fswc-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.fswc-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #333;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .fswc-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .fswc-slider .slick-prev {
        left: -15px;
    }
    
    .fswc-slider .slick-next {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .fswc-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fswc-slider .slick-prev {
        left: 5px;
    }
    
    .fswc-slider .slick-next {
        right: 5px;
    }
}

/* ========================================
   MOBILE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .fswc-slider-section {
        padding: 20px 12px;
        margin: 20px 0;
    }
    
    .fswc-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .fswc-title {
        font-size: 18px;
    }
    
    .fswc-view-all {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    /* HIDE ARROWS ON MOBILE */
    .fswc-slider .slick-prev,
    .fswc-slider .slick-next {
        display: none !important;
    }
    
    .fswc-slider {
        margin: 0;
    }
    
    .fswc-slider .slick-list {
        overflow: visible;
        padding: 0 !important;
    }
    
    .fswc-slider .slick-track {
        display: flex !important;
    }
    
    .fswc-slider .slick-slide {
        height: auto;
        padding: 0 5px;
    }
    
    .fswc-product-card {
        margin: 0;
    }
    
    .fswc-discount-badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .fswc-sale-label {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .fswc-product-content {
        padding: 10px;
    }
    
    .fswc-product-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .fswc-sale-price {
        font-size: 16px;
    }
    
    .fswc-regular-price {
        font-size: 11px;
    }
    
    .fswc-countdown {
        padding: 8px;
        gap: 6px;
    }
    
    .fswc-countdown-value {
        font-size: 14px;
    }
    
    .fswc-countdown-label {
        font-size: 8px;
    }
    
    .fswc-add-to-cart {
        padding: 9px;
        font-size: 12px;
    }
    
    .fswc-all-products {
        padding: 20px 12px;
    }
    
    .fswc-page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .fswc-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 10px;
    }
    
    .fswc-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fswc-slider-section {
        padding: 15px 10px;
    }
    
    .fswc-title {
        font-size: 16px;
    }
    
    .fswc-view-all {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .fswc-slider .slick-slide {
        padding: 0 4px;
    }
    
    .fswc-product-content {
        padding: 8px;
    }
    
    .fswc-product-title {
        font-size: 12px;
    }
    
    .fswc-sale-price {
        font-size: 15px;
    }
    
    .fswc-all-products {
        padding: 15px 8px;
    }
    
    .fswc-products-grid {
        gap: 8px;
        padding: 8px;
    }
}

html {
    scroll-behavior: smooth;
}

* {
    -webkit-tap-highlight-color: transparent;
}

.fswc-add-to-cart:active {
    transform: scale(0.98);
}