/* Base Styles */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #c0b283;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #2c3e50;
    --light-bg: #f9f9f9;
    --medium-bg: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo a {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    color: var(--text-color);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    margin-right: 20px;
}

.search-container input {
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    width: 200px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 220px;
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.user-tools {
    display: flex;
    align-items: center;
}

.tool-icon {
    margin-left: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-icon i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.tool-icon:hover i {
    color: var(--primary-color);
}

.tool-label {
    font-size: 0.7rem;
    margin-top: 3px;
}

.item-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown Menus */
.account-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    min-width: 200px;
    z-index: 100;
    display: none; /* Hidden by default */
    margin-top: 10px;
}

.account-dropdown.active {
    display: block; /* Shown when active class is present */
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    min-width: 200px;
    z-index: 100;
    display: none; /* Hidden by default */
    margin-top: 10px;
}

.tool-icon:hover .cart-dropdown {
    display: block;
}

.account-dropdown a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-dropdown {
    min-width: 300px;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart-message {
    text-align: center;
    padding: 20px 0;
    color: #888;
}

.cart-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
}ive;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 20px;
    display: none;
    z-index: 100;
    margin-top: 10px;
    min-width: 200px;
}

.has-submenu:hover .submenu {
    display: flex;
}

.submenu-column {
    margin-right: 30px;
}

.submenu-column:last-child {
    margin-right: 0;
}

.submenu-column h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1rem;
}

.submenu-column ul li {
    margin: 8px 0;
    margin-left: 0;
}

.submenu-column ul li a {
    font-weight: normal;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background-color: var(--medium-bg);
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Featured Products Section */
.featured {
    padding: 80px 0;
}

.filter-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter-options {
    display: flex;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 20px;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.product-image {
    height: 280px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    background-color: #f0f0f0;
    transition: var(--transition);
}

.product-card:hover .image-placeholder {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    background: none;
    border: none;
    margin: 0 10px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-actions button:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-info h3 a {
    color: var(--text-color);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-rating {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.category {
    font-size: 0.85rem;
    color: #777;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--medium-bg);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.footer-logo p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
}

.footer-column {
    margin-right: 60px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.newsletter {
    margin-bottom: 40px;
}

.newsletter h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.newsletter p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

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

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
    
    .submenu {
        position: static;
        box-shadow: none;
        padding: 10px;
        display: none;
    }
    
    .has-submenu:hover .submenu {
        display: block;
    }
    
    .submenu-column {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .filter-sort-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options {
        margin-top: 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-column {
        width: 50%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .search-container {
        display: none;
    }
}


.account-dropdown.active {
    display: block;
}


