/* LUXE HAVEN Premium Apparel — CSS Design System */

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

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #333;
}

:root {
    --primary: #1a1a1a;
    --secondary: #d4af37;
    --accent: #e8e8e8;
    --text: #333;
    --light-text: #666;
    --white: #ffffff;
}

/* Header */
.header {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary);
}

.logo .tagline {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.cart-btn {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: #e8b923;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--secondary);
}

.cta-btn:hover {
    background: transparent;
    color: var(--white);
}

/* Categories Section */
.categories {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.categories h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.category-card h3 {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Featured Section */
.featured {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--accent);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    background: var(--accent);
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    min-height: 2.5em;
}

.product-description {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-price .current {
    font-size: 1.3rem;
    color: var(--secondary);
}

.product-price .original {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    font-size: 0.85rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Why Us Section */
.why-us {
    background: var(--accent);
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.why-us h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Lifestyle Section */
.lifestyle {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
    background-size: cover;
    background-position: center;
    margin: 4rem 0;
}

.lifestyle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.lifestyle-content {
    position: relative;
    z-index: 2;
}

.lifestyle h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lifestyle p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Newsletter Section */
.newsletter {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter input {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter button {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.newsletter button:hover {
    background: #e8b923;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

.footer-section p {
    color: #999;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s;
    border-left: 1px solid var(--accent);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.2rem;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    padding: 1rem;
    border-bottom: 1px solid var(--accent);
    display: flex;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-qty {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.qty-btn {
    background: var(--accent);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid var(--accent);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 1px solid var(--accent);
    padding-top: 0.75rem;
    color: var(--primary);
}

.checkout-btn {
    display: block;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: background 0.3s;
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 1002;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

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