/* Global Reset & Premium Foundations */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Premium Earthy Palette */
    --primary: #3E2C22;
    /* Dark Espresso */
    --primary-light: #5D4335;
    --secondary: #8B5A2B;
    /* Saddle Tan */
    --accent: #D4AF37;
    /* Metallic Gold */
    --cream: #F5F1E8;
    /* Old Paper / Parchment */
    --white: #FFFFFF;
    --charcoal: #1A1A1A;
    --slate: #2C3E50;

    /* Functional Colors */
    --bg-color: #FAF9F6;
    /* Off-white marble */
    --bg-dark: #121212;
    --text-main: #2C221C;
    --text-muted: #665C54;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #c0392b;

    /* Effects */
    --shadow-soft: 0 10px 30px rgba(62, 44, 34, 0.08);
    --shadow-hover: 0 20px 40px rgba(62, 44, 34, 0.15);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Premium Typography Utilities */
.text-gold {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.font-serif {
    font-family: 'Cinzel', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Buttons requiring "Touch" */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(62, 44, 34, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62, 44, 34, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent), #B5902B);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* Header - Floating Glass */
header {
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(62, 44, 34, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--secondary);
    font-size: 1.6rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Hero Section - Cinematic */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(30, 20, 15, 0.4), rgba(30, 20, 15, 0.6)), url('https://images.unsplash.com/photo-1473188588951-e5d1ed14eb90?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 160px 20px 60px;
    /* Added generous top padding */
    position: relative;
    margin-top: -80px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Collections - Grid Mastery */
.section-title {
    text-align: center;
    margin: 6rem 0 3rem;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.collections {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 500px;
    /* Fixed height for visual impact */
    gap: 20px;
}

.collection-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.collection-card:nth-child(1) {
    grid-column: span 6;
}

.collection-card:nth-child(2) {
    grid-column: span 3;
}

.collection-card:nth-child(3) {
    grid-column: span 3;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 30px;
    color: var(--white);
}

.collection-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Product Cards - Minimalist Luxury */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 6rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 350px;
    background: #F4F4F4;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Blends product background if needed */
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-details {
    padding: 25px;
    text-align: center;
}

.product-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Dashboard Styles - The Intelligence Hub */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #F0F2F5;
}

.sidebar {
    width: 280px;
    background: var(--primary);
    color: var(--white);
    flex-shrink: 0;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.user-profile-mini {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-left-color: var(--accent);
}

.sidebar-menu a i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

.top-bar {
    background: #fff;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    margin: 5px 0;
    color: var(--primary);
}

.stat-info .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Forms & Inputs - Styled */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(62, 44, 34, 0.1);
}

/* Footer - Grand Finale */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 6rem 5% 2rem;
    margin-top: 5rem;
    border-top: 5px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .collections {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .collection-card {
        grid-column: span 1 !important;
        height: 300px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }
}