/* --- CSS VARIABLES & RESET --- */

:root {
    --primary-bg: #F0F8FF; /* Alice Blue */
    --card-bg: #FFFFFF;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --accent-blue: #94b9ff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --shadow-soft: 0 10px 40px rgba(148, 185, 255, 0.15);
    --shadow-hover: 0 20px 50px rgba(148, 185, 255, 0.25);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { width: 100%; display: block; }

/* --- NAVBAR --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
}

.nav-hidden { transform: translateY(-100%); }
.nav-visible { transform: translateY(0); }

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

/* Hamburger Menu - Hidden by default */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: color 0.3s;
}

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

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

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--text-dark);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.pulse { animation: pulse-anim 0.3s ease-in-out; }
@keyframes pulse-anim {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* --- CART SIDEBAR --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.cart-sidebar.open { transform: translateX(0); }

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

.cart-header h2 { font-family: var(--font-serif); font-size: 1.5rem; }
.close-cart { cursor: pointer; font-size: 1.5rem; transition: 0.3s; }
.close-cart:hover { transform: rotate(90deg); }

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

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details { flex: 1; }
.cart-item-title { font-weight: 500; font-size: 0.95rem; }
.cart-item-price { color: var(--text-light); font-size: 0.9rem; }
.remove-item {
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

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

.btn-block {
    width: 100%;
    text-align: center;
}

/* --- HERO SECTION --- */
#home {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Video Background Style */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the whole area */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjusted gradient for video legibility */
    background: linear-gradient(to bottom, rgba(240, 248, 255, 0), rgba(255, 255, 255, 0));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.hero-tagline {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-dark);
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid var(--text-dark);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- PRODUCTS SECTION --- */
#products {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 1rem; }

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

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-container {
    height: 350px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.card-details { padding: 1.5rem; text-align: center; }
.card-title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-price { color: var(--text-light); font-weight: 500; font-size: 1rem; }

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(225, 235, 245, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show { opacity: 1; }

.modal-content {
    background-color: #fff;
    margin: auto;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    display: flex;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.modal.show .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}
.close-modal:hover { color: var(--text-dark); }

.modal-left {
    flex: 1;
    background-color: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-left img { max-height: 500px; width: 100%; object-fit: cover; }

.modal-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }
.modal-desc { color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem; }
.modal-price { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-dark); }

/* Size Selector Styles */
.size-selector { margin-bottom: 1.5rem; }
.size-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-dark); }
.size-options { display: flex; gap: 10px; }
.size-btn {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}
.size-btn:hover { border-color: var(--text-dark); }
.size-btn.active {
    background-color: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.action-buttons { display: flex; gap: 1rem; margin-top: 1rem; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
}
.btn-outline:hover { background: var(--text-dark); color: white; }

.btn-solid {
    background: var(--text-dark);
    border: 1px solid var(--text-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
}
.btn-solid:hover { background: #334155; border-color: #334155; }

/* --- CONTACT --- */
#contact { padding: 6rem 2rem; background-color: white; text-align: center; }
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-sans);
    transition: var(--transition);
    background: #f8fafc;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: white;
}

/* Success message */
.success-message {
    display: none;
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.5s;
}

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

footer { padding: 2rem; text-align: center; background-color: #f1f5f9; color: var(--text-light); font-size: 0.85rem; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-tagline { font-size: 1.1rem; }
    
    /* MOBILE NAVBAR */
    nav {
        position: relative;
        padding: 1rem 1.5rem;
    }
    
    .hamburger {
        display: block !important;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-dark);
        z-index: 1001;
    }
    
    .logo {
        flex-grow: 1;
        text-align: left;
        font-size: 1.6rem;
    }
    
    /* Mobile Navbar Menu - Comes from RIGHT side */
    .nav-links { 
        display: none; 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        margin: 0;
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        text-align: left;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none;
    }

    
    /* Cart sidebar */
    .cart-sidebar { 
        width: 100%; 
    }
    
    .modal-content { 
        flex-direction: column; 
        overflow-y: scroll; 
        height: 90vh;
        max-width: 95%;
    }
    
    .modal-left { 
        padding: 0; 
        max-height: 250px; 
    }
    
    .modal-right { 
        padding: 1.5rem; 
    }
    
    .action-buttons { 
        flex-direction: column; 
    }
    .hero-title{
        font-size: 2.5rem;
    }
}
