/* ===========================
   FONTS IMPORT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ===========================
   VARIABLES & RESET
=========================== */
:root {
    /* Colors */
    --color-bg: #ffffff;         /* White */
    --color-bg-alt: #f9f9f9;     /* Very Light Grey/Off-White */
    --color-text: #1a1a1a;       /* Almost Black */
    --color-text-light: #444444;
    
    --color-gold: #5D4037;       /* Marrom (Luxury Brown) - replacing Gold */
    --color-gold-hover: #3E2723; /* Darker Brown */
    --color-gold-light: #efebe9; /* Light Brown tint */
    
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    
    /* Transition */
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-black);
}

p { margin-bottom: 1rem; color: var(--color-text-light); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }

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

/* Utilities */
.text-center { text-align: center; }
.gold-text { color: var(--color-gold); }
.serif { font-family: var(--font-serif); }
.uppercase { text-transform: uppercase; letter-spacing: 1px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid var(--color-black);
}

.btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

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

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Section Common */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===========================
   HEADER
=========================== */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -1px;
}

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

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--color-gold);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--color-gold); }

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--color-text);
}
.icon-link:hover { color: var(--color-gold); }

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-black);
}

/* ===========================
   HERO
=========================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1515372039744-b8f02a3ae446?q=80&w=2000&auto=format&fit=crop'); /* Placeholder */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* Slight overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
    padding: 20px;
}

.hero-headline {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-btn {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
}
.hero-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* Animations */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===========================
   COLLECTIONS / CATEGORIES
=========================== */
.collections {
    padding: var(--section-padding);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    position: relative;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

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

.category-title {
    color: var(--color-white);
    font-size: 1.8rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.category-card:hover .category-title {
    border-color: var(--color-gold);
}

/* ===========================
   SHOP SECTION
=========================== */
.shop {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-sans);
    background: transparent;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--color-text-light);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--color-black);
    border-color: var(--color-gold);
}

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

.product-card {
    background: var(--color-white);
    padding: 15px;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
    margin-bottom: 15px;
}

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

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

.quick-add {
    position: absolute;
    bottom: -50px;
    left: 0; right: 0;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 12px;
    transition: bottom 0.3s;
    cursor: pointer;
}

.product-card:hover .quick-add {
    bottom: 0;
}

.product-info {
    text-align: center;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-price {
    color: var(--color-gold);
    font-weight: 700;
}

/* ===========================
   BENEFITS & LIFESTYLE
=========================== */
.benefits {
    padding: var(--section-padding);
    background: var(--color-white);
}

.benefits-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.benefit-item {
    text-align: center;
    max-width: 300px;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.lifestyle {
    display: flex;
    flex-wrap: wrap;
}

.lifestyle-img, .lifestyle-content {
    flex: 1 1 500px;
}

.lifestyle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lifestyle-content {
    background: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    text-align: center;
}

/* ===========================
   ABOUT US
=========================== */
.about {
    padding: var(--section-padding);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-img {
    flex: 1 1 400px;
}
.about-text {
    flex: 1 1 400px;
}

/* ===========================
   BLOG
=========================== */
.blog {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover { transform: translateY(-10px); }

.blog-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    display: block;
}

/* ===========================
   CONTACT
=========================== */
.contact {
    padding: var(--section-padding);
}

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

.contact-form {
    margin-top: 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #b0b0b0; /* Darker border for visibility */
    background: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.3s;
}

.form-control::placeholder {
    color: #888; /* Ensure placeholder is visible */
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    margin-bottom: 40px;
}

.footer-brand h2 { color: var(--color-white); }
.footer-brand p { color: #999; }

.footer-links h4, .footer-contact h4 {
    color: var(--color-gold);
    font-family: var(--font-serif);
    margin-bottom: 20px;
}

.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--color-gold); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.8rem;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .header { padding: 15px 0; }
    .hamburger { display: block; z-index: 1100; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1050;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.2rem; }
    
    .hero-headline { font-size: 2.5rem; }
    
    .lifestyle { flex-direction: column; }
    .about-content { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

/* Animations Classes for JS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   PRODUCT MODAL
=========================== */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-white);
    margin: auto;
    width: 90%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: row;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    color: var(--color-black);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-gold);
}

.modal-img-container {
    flex: 1;
    min-height: 400px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-black);
}

.modal-price {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-desc {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--color-text-light);
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 95%;
    }
    .modal-img-container {
        height: 300px;
    }
    .modal-details {
        padding: 20px;
    }
}

/* ===========================
   CART SIDEBAR
=========================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2500;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-serif);
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.cart-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
}

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

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

.cart-item-price {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.cart-item-remove {
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

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

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

.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

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