/* --- Brand Identity Colors (From your Lovable Configuration) --- */
:root {
    --background: #121212;      /* oklch(0.14 0 0) */
    --card: #1c1c1c;            /* oklch(0.18 0 0) */
    --foreground: #f4f4f4;      /* oklch(0.96 0.01 90) */
    --gold: #d4af37;            /* oklch(0.78 0.13 85) - Primary Accent */
    --gold-soft: #e6ca65;       /* oklch(0.88 0.11 88) */
    --border: rgba(255, 255, 255, 0.1);
    
    --font-serif: "Lora", serif;
    --font-sans: "Nunito Sans", sans-serif;
}

/* --- Global Resets --- */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--gold-soft);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold-soft);
}

.btn-nav {
    border: 1px solid var(--gold);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: all 0.2s !important;
}

.btn-nav:hover {
    background: var(--gold);
    color: var(--background) !important;
}

/* --- Hero Section --- */
.hero {
    padding: 11rem 2rem 7rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 60%);
}

.hero-container {
    max-width: 750px;
    margin: 0 auto;
}

.hero-main-image-wrap {
    margin: 0 auto 2rem;
    max-width: 820px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-main-image {
    display: block;
    width: 100%;
    height: clamp(270px, 50vw, 520px);
    object-fit: cover;
    object-position: 46% 42%;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: #b3b3b3;
    margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary {
    background: var(--gold);
    color: var(--background);
}

.btn-primary:hover {
    background: var(--gold-soft);
    transform: translateY(-1px);
}

/* --- Product Collection Grid --- */
.collection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem 2rem;
    text-align: center;
}

.collection h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #a0a0a0;
    margin-bottom: 4rem;
    font-size: 1.05rem;
}

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

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-img-container {
    width: 100%;
    height: 240px; /* Forces a consistent box height */
    background: #252525;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes sure the image shrinks and fits cleanly inside the box without distorting */
    object-position: center; /* Centers the focus of the photo */
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

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

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-content p {
    font-size: 0.95rem;
    color: #b3b3b3;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 5rem 2rem;
    text-align: center;
    background: #0a0a0a;
}

.footer-container h3 {
    margin-bottom: 1rem;
}

.footer-container p {
    color: #8c8c8c;
    font-size: 0.95rem;
}

.footer-container a,
.footer-container a:visited,
.footer-container a:active {
    color: var(--gold-soft);
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

.contact-pop {
    margin: 0 auto;
    width: min(100%, 520px);
    padding: 1rem 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.06);
}

.contact-pop p {
    margin-bottom: 0.25rem;
    color: #bdbdbd;
}

.contact-pop a {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem !important;
    color: #555555 !important;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: min(90vw, 1080px);
    max-height: 86vh;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: rgba(28, 28, 28, 0.72);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    border-color: rgba(212, 175, 55, 0.8);
    background: rgba(48, 48, 48, 0.9);
}

.lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    line-height: 1;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: clamp(0.75rem, 3vw, 2rem);
}

.lightbox-next {
    right: clamp(0.75rem, 3vw, 2rem);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero {
        padding-top: 9rem;
    }

    .hero-main-image-wrap {
        margin-bottom: 1.5rem;
    }

    .hero-main-image {
        height: clamp(250px, 64vw, 390px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none; /* Keeps code lightweight for portfolio purposes */
    }

    .lightbox-image {
        max-width: 94vw;
        max-height: 78vh;
    }

    .lightbox-nav {
        width: 2.7rem;
        height: 2.7rem;
    }
}