/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo i {
    font-size: 28px;
    color: #ff6b6b;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.logo-highlight {
    color: #ff6b6b;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.main-nav a:hover, .main-nav a.active {
    color: #ff6b6b;
}

.main-nav a i {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 200px;
    outline: none;
}

.search-box button {
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
}

.cart-icon, .user-icon {
    position: relative;
    color: #555;
    font-size: 20px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b6b;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #ff6b6b;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.btn-outline:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateY(-3px);
}

/* Categories Section */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    text-decoration: none;
    color: #333;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-info p {
    color: #777;
    font-size: 14px;
}

/* Products Section */
.featured-products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-add-to-cart {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.btn-view {
    background-color: #333;
    color: white;
    text-decoration: none;
}

.btn-view:hover {
    background-color: #555;
}

.btn-add-to-cart {
    background-color: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background-color: #ff5252;
}

.view-all {
    text-align: center;
}

/* Footer */
.footer {
    background-color: #1a1a2e;
    color: #b0b0b0;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2d2d44;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #ff6b6b;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    background-color: #2d2d44;
    color: white;
    outline: none;
}

.newsletter-form button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d2d44;
    color: #777;
    font-size: 14px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6b6b;
}

.breadcrumb span {
    color: #333;
}

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: #ff6b6b;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-category-detail {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
}

.price-original {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    margin-bottom: 8px;
    display: flex;
}

.product-specs li span:first-child {
    font-weight: 600;
    min-width: 150px;
}

.size-selector {
    margin-bottom: 30px;
}

.size-selector h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.size-option:hover, .size-option.active {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.product-actions-detail {
    display: flex;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.quantity-input {
    width: 60px;
    height: 50px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
}

.btn-add-to-cart-detail {
    flex: 1;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    height: 50px;
}

.btn-add-to-cart-detail:hover {
    background-color: #ff5252;
}

/* Category Pages */
.category-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
}

.category-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #b0b0b0;
}

.category-filters {
    padding: 30px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-sort select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.filter-view {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    color: #777;
}

.view-btn.active {
    background-color: #ff6b6b;
    color: white;
}

/* Subcategory Pages */
.subcategory-nav {
    padding: 30px 0;
    background-color: white;
}

.subcategory-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.subcategory-link {
    padding: 10px 25px;
    background-color: #f5f5f5;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.subcategory-link:hover, .subcategory-link.active {
    background-color: #ff6b6b;
    color: white;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        display: none;
    }
    
    .header-actions .search-box input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .filter-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .product-actions-detail {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .subcategory-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-box input {
        width: 120px;
    }
}