/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Colors */
:root {
    --primary-blue: #0e8ce4;
    --light-blue: #0ba1eb;
    --text-color: #333;
    --text-light: #777;
    --border-color: #e5e5e5;
    --red-price: #df3b3b;
}

/* Header */
.top-header {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo span {
    color: #333;
}

/* Search Bar */
.search-bar form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 50px;
    width: 600px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0 20px;
    height: 100%;
    outline: none;
    font-family: inherit;
    border-radius: 5px 0 0 5px;
    background: transparent;
}

.search-bar .custom-select-wrapper {
    position: relative;
    border-left: 1px solid var(--border-color);
    height: 100%;
    background: #fdfdfd;
    cursor: pointer;
    min-width: 140px;
}

.search-bar .custom-select {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s ease;
}

.search-bar .custom-select-wrapper:hover .custom-select {
    color: var(--primary-blue);
}

.search-bar .select-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.search-bar .custom-select-wrapper:hover .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-bar .select-dropdown li {
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.search-bar .select-dropdown li:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.search-bar button {
    height: 100%;
    width: 50px;
    border: none;
    background-color: var(--primary-blue);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0 5px 5px 0;
}

.search-bar button i {
    transition: transform 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--light-blue);
}

.search-bar button:hover i {
    transform: scale(1.2);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 30px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-item:hover .icon-container i {
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.1);
}

.icon-container {
    position: relative;
    font-size: 30px;
    color: #333;
}

.icon-container i {
    transition: all 0.3s ease;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-blue);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-container {
    display: flex;
    flex-direction: column;
}

.action-title {
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
}

.action-value {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-blue);
    color: #fff;
}

.nav-container {
    display: flex;
    align-items: center;
}

.categories-wrapper {
    position: relative;
}

.categories-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background-color: var(--light-blue);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    min-width: 250px;
    transition: background-color 0.3s ease;
}

.categories-menu i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.categories-menu:hover {
    background-color: #0c91d4;
}

.categories-menu:hover i {
    transform: scale(1.2) rotate(15deg);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 0 0 5px 5px;
}

.categories-wrapper.active .categories-dropdown,
.categories-wrapper:hover .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-dropdown li {
    border-bottom: 1px solid var(--border-color);
}

.categories-dropdown li:last-child {
    border-bottom: none;
}

.categories-dropdown li a {
    display: block;
    padding: 15px 30px;
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s;
}

.categories-dropdown li a:hover {
    color: var(--primary-blue);
    padding-left: 35px;
    background-color: #f8f9fa;
}

.nav-links {
    display: flex;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links li > a {
    display: block;
    padding: 20px 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li > a:hover, .nav-links li > a.active {
    color: rgba(255, 255, 255, 0.8);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 0 0 5px 5px;
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 400;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    display: block;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    color: var(--primary-blue);
    background-color: #f8f9fa;
    padding-left: 25px;
}

.nav-links i {
    font-size: 12px;
    margin-left: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5fbff 0%, #dcedf7 100%);
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(#e5f4fa 1px, transparent 1px), linear-gradient(90deg, #e5f4fa 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: 0;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #2c2c2c;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.old-price {
    font-size: 24px;
    color: #333;
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    font-size: 28px;
    color: var(--red-price);
    font-weight: 700;
}

.hero-product-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 30px;
}

.shop-now-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 140, 228, 0.2);
}

.shop-now-btn:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 140, 228, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    width: 600px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02) translateY(-10px);
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Deals & Featured */
.deals-featured {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.deals-container {
    display: flex;
    gap: 30px;
}

.deals-of-week {
    width: 35%;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}

.deal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.deal-img {
    max-width: 100%;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.deal-img:hover {
    transform: translateY(-5px);
}

.deal-price {
    font-size: 24px;
    color: var(--red-price);
    font-weight: 500;
    margin-bottom: 10px;
}

.deal-price span {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.deal-name {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.deal-availability {
    width: 100%;
    margin-bottom: 30px;
}

.avail-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.avail-text strong {
    color: var(--text-color);
}

.avail-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.avail-progress {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 4px;
}

.deal-countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.countdown-item span {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
}

.countdown-item div {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Featured Products */
.featured-products {
    width: 65%;
}

.featured-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.featured-tabs {
    display: flex;
    gap: 20px;
}

.featured-tabs li {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.featured-tabs li.active, .featured-tabs li:hover {
    color: var(--text-color);
}

.featured-tabs li.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s;
    position: relative;
}

.product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    margin-bottom: 20px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.product-badge.discount {
    background-color: var(--red-price);
}

.product-badge.new {
    background-color: var(--primary-blue);
}

.product-price {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.product-price span {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 5px;
}

.product-name {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 400;
}

.add-to-cart {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    color: var(--text-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s;
}

.product-item:hover .add-to-cart, .add-to-cart:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* Popular Categories */
.popular-categories {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px 15px;
    text-align: center;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.category-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cat-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cat-image img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s;
}

.category-item:hover .cat-image img {
    transform: scale(1.1);
}

.cat-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* Banner Section */
.banner-section {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.banner-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    padding: 60px 50px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-text {
    max-width: 400px;
    z-index: 1;
}

.banner-subtitle {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.banner-price {
    font-size: 28px;
    color: var(--red-price);
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-price span {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 15px;
    font-weight: 400;
}

.banner-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.banner-image {
    max-width: 50%;
    z-index: 1;
}

.banner-image img {
    max-width: 100%;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.banner-bg:hover .banner-image img {
    transform: scale(1.05) translateY(-5px);
}

/* Hot New Arrivals */
.new-arrivals {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.new-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Trends Section */
.trends-section {
    padding: 80px 0;
    background-color: #fdfdfd;
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trend-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: box-shadow 0.3s;
}

.trend-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.trend-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-image img {
    max-width: 100%;
    max-height: 100%;
}

.trend-price {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
}

.trend-name {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* Brands Section */
.brands-section {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.brands-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brands-grid img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    cursor: pointer;
}

.brands-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.newsletter-content {
    display: flex;
    align-items: center;
}

.newsletter-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-right: 20px;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

.newsletter-text p {
    font-size: 14px;
    color: var(--text-light);
}

.newsletter-form form {
    display: flex;
    width: 500px;
}

.newsletter-form input {
    flex: 1;
    height: 50px;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0 20px;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    height: 50px;
    padding: 0 30px;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--light-blue);
}

/* Footer */
.footer {
    background-color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-contact {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-contact strong {
    font-size: 18px;
    color: var(--primary-blue);
    display: block;
    margin-top: 5px;
}

.footer-address {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.footer-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-light);
}

.footer-payment {
    display: flex;
    gap: 10px;
}

.footer-payment img {
    height: 25px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Responsive */
@media (max-width: 992px) {
    .search-bar form {
        width: 100%;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        display: none; 
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-price {
        justify-content: center;
    }
}
