/* Main Styles for Hausila Collection Website */

/* Import Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #8b2131; /* Deep maroon */
    --secondary-color: #c69b6d; /* Gold */
    --accent-color: #1a5f45; /* Emerald green */
    --light-color: #f5f2eb; /* Cream */
    --dark-color: #333333;
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --special-font: 'Cormorant Garamond', serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.logo {
    max-width: 180px;
}

.logo img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(198, 155, 109, 0.2);
}

.contact-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.contact-info a {
    margin-right: 15px;
    font-size: 14px;
}

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

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    margin-left: 10px;
    font-size: 18px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

@media (max-width: 991px) {
    .logo {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 120px;
    }
    
    .main-header {
        justify-content: space-between;
    }
}

/* Updated Nav Menu Styles */
.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    position: relative;
    margin: 0 8px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 8px;
    position: relative;
    display: block;
    white-space: nowrap;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1;
    border-top: 3px solid var(--secondary-color);
}

.nav-menu li:hover .dropdown {
    display: block;
}

.dropdown li {
    margin: 0;
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: normal;
}

.dropdown a:hover {
    background-color: rgba(198, 155, 109, 0.1);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    right: 0;
}

/* Header Actions - Moved to top header */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.action-icon {
    margin-left: 15px;
    font-size: 16px;
    position: relative;
}

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

/* Cart Styles */
.cart-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    background: var(--light-color);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.quantity-input {
    border: none;
    padding: 8px 10px;
    width: 60px;
    text-align: center;
    outline: none;
}

/* Basic Styles for common elements */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #6f1a26;
    color: white;
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: var(--special-font);
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 10px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-family: var(--heading-font);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-family: var(--special-font);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.collection-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.collection-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.collection-info {
    padding: 20px;
}

.collection-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discount-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.product-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 33, 49, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-item:hover .product-hover {
    opacity: 1;
}

.product-hover-actions {
    display: flex;
    gap: 15px;
}

.product-hover-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.product-hover-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

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

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .nav-menu li {
        margin: 0 6px;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 5px 6px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .top-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .header-actions {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: left 0.3s ease;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1001;
        justify-content: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0 0 15px;
        width: 100%;
    }
    
    .nav-menu a {
        white-space: normal;
        font-size: 16px;
        padding: 10px 0;
    }
    
    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        min-width: 100%;
        border-top: none;
        padding-left: 20px;
    }
    
    .nav-menu li:hover .dropdown {
        display: none;
    }
    
    .dropdown.show {
        display: block;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .main-header {
        justify-content: space-between;
    }
    
    .logo {
        position: static;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}