@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Petit+Formal+Script&display=swap');

/* Maison Boumaiza Luxury Design System */
/* Inspired by the high-end aesthetic of chedlysisters.com */

:root {
    --primary-bg: #F4F1ED;
    --accent-blue: #A7B9C3;
    --text-black: #121212;
    --white: #FFFFFF;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Inter', sans-serif;
    --script-font: 'Petit Formal Script', cursive;
}

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

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

h1, h2, h3, .product-title {
    font-family: var(--serif-font);
    font-weight: 500;
}

.script-text {
    font-family: var(--script-font);
    text-transform: none;
    letter-spacing: 0;
}

/* --- Header & The Signature Floating Logo --- */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 20px 50px 40px;
    border-bottom-left-radius: 120px;
    border-bottom-right-radius: 120px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1100; /* Higher than mobile nav */
    transition: all 0.3s ease;
}

.logo-container img {
    height: 70px;
    width: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    height: 100px;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    position: relative;
    padding-bottom: 5px;
}

/* Mega Menu Dropdowns */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 20px 0;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 25px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.dropdown a:hover {
    color: var(--text-black);
    background: #f9f9f9;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* --- Hero Section & Typography --- */
.hero {
    display: flex;
    min-height: 90vh;
    align-items: center;
    position: relative;
}

.hero-text {
    flex: 1;
    padding: 150px 100px;
    background-color: var(--accent-blue);
    color: var(--white);
}

.hero-text .subtitle {
    font-family: var(--script-font);
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.hero-text h1 {
    font-size: 72px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-image {
    flex: 1.2;
    height: 90vh;
}

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

/* --- Product Cards with Hover Effects --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 120px 80px;
}

.product-card {
    text-align: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1.4;
    overflow: hidden;
    border-top-left-radius: 50% 15%;
    border-top-right-radius: 50% 15%;
    margin-bottom: 20px;
    background: #fdfdfd;
}

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

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

/* Add to Cart Hover Overlay */
.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.product-card:hover .hover-overlay {
    transform: translateY(0);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--text-black);
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Instagram Section --- */
.instagram-section {
    padding: 100px 80px;
    text-align: center;
    background: white;
}

.instagram-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.insta-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

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

/* --- Mega Footer --- */
footer {
    background: var(--white);
    padding: 100px 80px 40px;
    border-top: 1px solid #eee;
}

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

.footer-col h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 25px;
    font-family: var(--sans-font);
}

.footer-col p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--text-black);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    border-bottom: 1px solid #ddd;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    background: none;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #f5f5f5;
    font-size: 12px;
    color: #999;
}

.payment-icons img {
    height: 15px;
    filter: grayscale(1);
    opacity: 0.5;
    margin-left: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--text-black);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #333;
    opacity: 0.9;
}

/* --- Responsive Updates --- */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); padding: 80px 40px; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    nav { padding: 0 40px; }
}

@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        padding: 50px;
        transition: 0.5s ease;
        z-index: 999;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 18px; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; }
    .hero-text { padding: 100px 40px; }
    .hero-text h1 { font-size: 42px; }
    .logo-container { padding: 15px 30px 25px; border-bottom-left-radius: 60px; border-bottom-right-radius: 60px; }
    .logo-container img { height: 45px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}
