/* ===== MAIN STYLES - FINAL VERSION ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

:root {
    --primary: #1a3b5d;
    --accent: #e44d2e;
    --border: #e2e8f0;
}

.container {
    max-width: 1440px !important;

    margin: 0 auto;
    padding: 0 12px !important;
    width: 100%;
}

/* Section Styles */
.section {
    margin: 30px 0;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.view-all:hover {
    gap: 10px;
    color: var(--primary);
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px 0;
    -webkit-overflow-scrolling: touch;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

/* Product Card */
.product-card {
    flex: 0 0 calc(20% - 16px);
    min-width: 200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8fafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-brand {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: var(--primary);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--accent);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.old-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Slider Navigation Arrows - Vertical Rectangle */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: white;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.slider-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.arrow-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.slider-prev .arrow-icon {
    transform: rotate(45deg);
    margin-left: 4px;
}

.slider-next .arrow-icon {
    transform: rotate(225deg);
    margin-right: 4px;
}

/* Deal Section Special */
.deal-section {
    background: linear-gradient(135deg, var(--primary), #2a4a6a);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin: 30px 0;
    width: 100%;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.deal-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.deal-timer {
    display: flex;
    gap: 15px;
}

.timer-block {
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.timer-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.timer-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
}

.deal-section .view-all {
    color: white;
}

.deal-section .product-card {
    background: white;
}

/* Responsive Breakpoints */

/* Desktop Large */
@media (min-width: 1200px) {
    .product-card {
        flex: 0 0 calc(20% - 16px);
    }
}

/* Small Desktop */
@media (max-width: 1199px) and (min-width: 992px) {
    .product-card {
        flex: 0 0 calc(25% - 15px);
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .product-card {
        flex: 0 0 calc(33.333% - 14px);
    }
    
    .slider-arrow {
        display: none;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .deal-header h2 {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }
    
    .section-header {
        padding-right: 0;
    }
    
    .product-slider {
        gap: 5px;
    }
    
    .product-card {
        flex: 0 0 calc(33.333% - 3.33px);
        min-width: 0;
    }
    
    .discount-badge {
        display: none;
    }
    
    .deal-section .product-card {
        flex: 0 0 calc(50% - 2.5px);
    }
    
    .product-info {
        padding: 10px 8px;
    }
    
    .product-brand {
        font-size: 10px;
    }
    
    .product-name {
        font-size: 12px;
        height: 36px;
        margin-bottom: 5px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .old-price {
        font-size: 11px;
    }
    
    .slider-arrow {
        display: none;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .deal-section {
        padding: 20px 15px;
    }
    
    .deal-header h2 {
        font-size: 22px;
    }
    
    .deal-timer {
        gap: 8px;
    }
    
    .timer-block {
        padding: 8px 10px;
        min-width: 55px;
    }
    
    .timer-number {
        font-size: 18px;
    }
    
    .timer-label {
        font-size: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-info {
        padding: 8px 5px;
    }
    
    .product-name {
        font-size: 11px;
        height: 32px;
    }
    
    .current-price {
        font-size: 13px;
    }
    
    .old-price {
        font-size: 10px;
    }
    
    .timer-number {
        font-size: 16px;
    }
    
    .timer-label {
        font-size: 9px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .product-name {
        font-size: 10px;
        height: 28px;
    }
    
    .current-price {
        font-size: 12px;
    }
}