* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
}

a{
    text-decoration: none;
    color: white;
}

.top-bar {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.navbar {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 14px 5%;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #222;
    padding: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
}

.nav-menu a {
    color: #222;
    text-decoration: none;
}

.nav-menu a:hover {
    color: #c8102e;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 8px 16px;
    width: 300px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 15px;
}

.hero-slider {
    position: relative;
    height: 520px;
    max-height: 90vh;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: #c8102e;
}

.prev { left: 20px; }

.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #c8102e;
    width: 28px;
    border-radius: 10px;
}

.section {
    padding: 70px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    justify-content: center;       
    max-width: 1400px;            
    margin: 0 auto;                
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    width: 100%;                   
    max-width: 320px;               
    margin: 0 auto;                
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(200, 16, 46, 0.15);
}

.product-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.product-info {
    padding: 18px 18px 10px;
}

.product-info h3 {
    font-size: 1.2rem;
}

.brand {
    color: #666;
    font-size: 0.95rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c8102e;
    margin: 8px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.add-btn {
    width: 100%;
    background: #111;
    color: white;
    border: none;
    padding: 14px;
    font-weight: 600;
    cursor: pointer;
}

.add-btn:hover {
    background: #c8102e;
}

footer {
    background: #111;
    color: #ccc;
    padding: 60px 5% 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-col h4 {
    color: #ddd;
    margin-bottom: 15px;
}

.social {
    font-size: 30px;
    display: flex;
    gap: 25px;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #333;
    font-size: 14px;
}

.recommended-section {
    background: #ffffff;
    padding: 60px 5% 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.nav-arrows {
    font-size: 32px;
    color: #888;
    user-select: none;
}

.nav-arrows .arrow:hover {
    color: #c8102e;
    cursor: pointer;
}

.recommended-container {
    overflow-x: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.recommended-container::-webkit-scrollbar {
    display: none;
}

.recommended-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding-bottom: 10px;
}

.product-card {
    width: 240px;
    flex: 0 0 240px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    height: 240px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.product-info {
    padding: 14px 16px 20px;
}

.brand {
    font-size: 13.5px;
    color: #666;
    font-weight: 600;
}

.product-info h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 6px 0 10px;
    font-weight: 500;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 17px;
    font-weight: 700;
    color: #c8102e;
}

.current-price { color: #c8102e; }
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 8px;
}

.discount {
    background: #c8102e;
    color: white;
    font-size: 12.5px;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 6px;
}

.premium-section {
    color: white;
    padding: 80px 5% 70px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #000;
}

.section-subtitle {
    font-size: 18px;
    color: #c8102e;
    margin-bottom: 50px;
    font-weight: 500;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1600px;
    margin: 0 auto;
}

.premium-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #222;
    cursor: pointer;
}

.premium-card:hover {
    transform: translateY(-12px);
    border-color: #c8102e;
    box-shadow: 0 20px 40px rgba(200, 16, 46, 0.2);
}

.premium-image {
    position: relative;
    height: 260px;
    background: #1a1a1a;
    overflow: hidden;
}

.premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-card:hover .premium-image img {
    transform: scale(1.1);
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c8102e;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.premium-info {
    padding: 20px 18px 24px;
    text-align: left;
}

.premium-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}

.brand {
    color: #888;
    font-size: 14.5px;
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #c8102e;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

#userIcon {
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

#userIcon:hover {
    background-color: #f1f1f1;
    color: #c8102e;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-size: 15.5px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f8f8;
    color: #c8102e;
}

.dropdown-item i {
    width: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding: 8px 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid #CCC;
}

.dropdown-content a:hover {
    background-color: #f8f8f8;
    color: #c8102e;
    padding-left: 25px;
}

.icons-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

#heartBtn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

#heartIcon {
    transition: all 0.25s ease;
}

#heartIcon:hover {
    color: #c8102e !important;
}

.cart-icon {
    position: relative;
    padding: 6px;
}

.cart-icon:hover i {
    color: #c8102e;
}

.cart-count {
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 0 0 2px white;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;                    
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top:hover {
    background: #a00d24;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.5);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 5%;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .hero {
        height: 65vh;
        min-height: 420px;
    }
    
    .product-grid, .premium-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;     
        gap: 24px;
        padding: 0 10px;               
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 998;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        padding: 10px 20px;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .icons-group {
        gap: 18px;
    }
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .search-bar {
        width: 320px;
    }
    
    .premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .premium-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}