/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #111111;
    --secondary-color: #555555;
    --accent-color: #e63946;
    --bg-color: #ffffff;
    --bg-alt: #f9f9f9;
    --border-color: #e5e5e5;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    border-radius: 4px;
}

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

.btn-primary:hover {
    background-color: #333333;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- HEADER --- */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 20px;
    height: 80px;
}

.logo img {
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--accent-color);
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    transition: left 0.3s ease;
}

.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-content {
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close-mobile-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

.hero-content {
    color: #ffffff;
    padding: 0 20px;
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- COLLECTIONS & PRODUCT GRID --- */
.collection {
    padding: 5rem 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.view-all {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.product-card {
    position: relative;
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-alt);
    border-radius: 4px;
    aspect-ratio: 3/4;
}

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

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 2px;
}

.badge-sale {
    background-color: var(--accent-color);
}

.add-to-cart-btn {
    position: absolute;
    bottom: -50px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: bottom 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.product-image:hover .add-to-cart-btn {
    bottom: 10px;
}

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

.product-info {
    padding: 15px 0;
}

.product-vendor {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-title:hover {
    color: var(--accent-color);
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- CART DRAWER --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

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

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

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--secondary-color);
    margin-top: 50px;
}

.cart-item {
    display: flex;
    gap: 15px;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.qty-btn {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-display {
    width: 30px;
    text-align: center;
    font-size: 0.9rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-alt);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tax-note {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 15px;
}

.checkout-button {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-button:hover {
    background-color: #333333;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    border-radius: 4px;
}

.footer-text {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.social-links a {
    font-size: 1.5rem;
    color: #ffffff;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-block h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-block ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-block ul a {
    color: #cccccc;
    font-size: 0.95rem;
}

.footer-block ul a:hover {
    color: #ffffff;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    font-family: var(--font-body);
    border: 1px solid #333;
    background-color: #222;
    color: #fff;
    border-radius: 4px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
}

.newsletter-form .btn {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85rem;
}

/* --- RESPONSIVE DESIGN (FLAWLESS MOBILE) --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide desktop nav */
    }
    
    .mobile-menu-btn {
        display: block; /* Show hamburger */
    }
    
    .header-container {
        padding: 10px 15px;
        height: 70px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .add-to-cart-btn {
        position: relative;
        bottom: 0;
        width: 100%;
        left: 0;
        margin-top: 10px;
        background-color: var(--primary-color);
        color: white;
        border-radius: 0;
        padding: 10px;
        font-size: 0.9rem;
    }

    .product-image {
        aspect-ratio: auto;
    }

    .product-image:hover .add-to-cart-btn {
        bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}
