/*
Theme Name: Nomere Custom - Italian Elegance (Bolder Edition)
Description: High Fashion, Asymmetrical Hero Layout
Version: 12.0
*/

@import url('https://cdn.jsdelivr.net/gh/ct-fonts/firago@master/font.css');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg-canvas:    #FBFBF9;
    --text-dark:    #1A1A1A;
    --text-muted:   #737373;
    --line-color:   #E5E5E0;
    --font-primary: 'FiraGO', -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-canvas);
    color: var(--text-dark);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER & LOGO
   ============================================================ */
.italian-header {
    width: 100%;
    padding: 30px 40px;
    position: absolute; 
    top: 0; left: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
}

.header-left { display: flex; align-items: center; gap: 60px; }

.site-logo {
    height: 35px !important; 
    width: auto !important; 
    max-width: 250px !important; /* Prevents Woo from stretching it */
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.nav-left { display: flex; gap: 40px; }
.nav-left a {
    color: #fff; font-size: 0.85rem; font-weight: 400; 
    letter-spacing: 0.1em; text-transform: uppercase;
}

.italian-header.theme-dark .nav-left a { color: var(--text-dark); }
.italian-header.theme-dark .mobile-menu-toggle span { background: var(--text-dark); }

/* ============================================================
   HERO SECTION (ASYMMETRICAL LAYOUT)
   ============================================================ */
.hero-slider-container {
    width: 100vw;
    min-height: 75vh; /* Cinematic height */
    position: relative;
    overflow: hidden;
    background-color: var(--text-dark);
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    padding-left: 8%;
}

.slide-bg {
    position: absolute; inset: 0;
    background-image: var(--bg-desk); /* Loads desktop image via PHP inline style */
    background-size: cover; 
    background-position: center right; /* Keeps the plate anchored to the right */
    transform: scale(1.05); 
    transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-bg.active { transform: scale(1); }

.slider-overlay {
    position: absolute; inset: 0; z-index: 3;
    /* Very light gradient just to guarantee text readability */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0,0,0,0) 40%);
}

.slider-content { 
    position: relative; 
    z-index: 4; 
    max-width: 600px; /* Constrains text strictly to the dark left zone */
}

.slider-content h1 { 
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5rem); 
    font-weight: 300; /* Thinner, elegant weight */
    color: #fff; 
    margin-bottom: 20px; 
    line-height: 1.1; 
    letter-spacing: 0.02em;
}

.slider-content p { 
    font-family: var(--font-primary);
    font-size: 1.1rem; 
    font-weight: 300;
    color: rgba(255,255,255,0.7); 
    margin-bottom: 40px; 
    max-width: 80%;
}

.btn-elegant {
    display: inline-block; background: #fff; color: var(--text-dark);
    padding: 20px 60px; font-weight: 500; font-size: 1rem;
    letter-spacing: 0.1em; text-transform: uppercase; transition: 0.3s;
}
.btn-elegant:hover { background: var(--text-dark); color: #fff; }

/* ============================================================
   PRODUCTS (RESTORED)
   ============================================================ */
.latest-collection { max-width: 1400px; margin: 120px auto; padding: 0 40px; }
.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading h2 { font-weight: 400; font-size: 2rem; letter-spacing: 0.1em; text-transform: uppercase; }
.heading-line { width: 60px; height: 1px; background: var(--text-dark); margin: 20px auto 0; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.product-image { width: 100%; aspect-ratio: 1 / 1; background: #F0F0EE; margin-bottom: 24px; overflow: hidden; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-title { font-size: 1rem; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.02em; }
.product-price { font-size: 0.95rem; color: var(--text-muted); }

.view-all-wrapper { text-align: center; margin-top: 60px; }
.link-elegant {
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    border-bottom: 1px solid var(--text-dark); padding-bottom: 4px; transition: 0.3s;
}

/* ============================================================
   FOOTER (RESTORED)
   ============================================================ */
.italian-footer { border-top: 1px solid var(--line-color); padding: 60px 40px; margin-top: 80px; text-align: center; }
.footer-copyright { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   MOBILE MENU CORE
   ============================================================ */
.mobile-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; z-index: 1000;
}
.mobile-menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: 0.3s ease; }

.mobile-dropdown {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(26, 26, 26, 0.98); backdrop-filter: blur(15px);
    padding: 30px 20px; flex-direction: column; gap: 20px; text-align: center;
}
.mobile-dropdown.active { display: flex; }
.mobile-dropdown a { color: #fff; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.95rem; }

/* ============================================================
   MOBILE RESPONSIVE (PROPERLY WRAPPED)
   ============================================================ */
@media (max-width: 950px) {
    .desktop-only { display: none; }
    .header-inner { padding: 0 20px; border-bottom: none; }
    .mobile-menu-toggle { display: flex; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
    .italian-header { padding: 20px 0; }

    /* Mobile Hero Layout */
    .hero-slider-container { 
        min-height: 85vh; /* Tall portrait height for mobile */
        padding-top: 80px; 
        padding-left: 6%; 
    }

    .slide-bg {
        background-image: var(--bg-mob); /* Swaps to the mobile image! */
        background-position: right center; /* Anchors the plate to the right edge */
    }

    .slider-content { max-width: 65%; } /* Keeps text strictly in the left half */
    
    .slider-content h1 { 
        font-size: 2.4rem; 
        margin-bottom: 12px; 
    }
    
    .slider-content p { 
        font-size: 0.95rem; 
        margin-bottom: 30px; 
        max-width: 90%;
    }

    .slider-overlay { 
        /* Slightly stronger gradient on mobile just to combat the wood texture */
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0,0,0,0) 60%); 
    }

    .btn-elegant { padding: 16px 40px; font-size: 0.9rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    .hero-slider-container { min-height: 500px; }
    .slider-content h1 { font-size: 2.2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* ============================================================
   WORDPRESS ADMIN BAR FIX
   ============================================================ */
body.admin-bar .italian-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .italian-header { top: 46px; }
}

/* ============================================================
   LUXURY TOAST NOTIFICATION (COMING SOON)
   ============================================================ */
#luxury-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--text-dark); /* Espresso Black */
    color: #fff;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 99999;
}

#luxury-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}