/* ==========================================================================
   1. FONTS & BASIC THEME SETUP
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

body {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), 
                url('/backends/uploads/bg_jewelry.jpg') fixed center center / cover no-repeat;
    color: #ffffff; 
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


/* ==========================================================================
   2. HEADER & NAVIGATION BAR
   ========================================================================== */
header {
    background-color: #0a0a0a; 
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3); /* Subtle gold boundary */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

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

.logo {
    font-family: 'Cinzel', serif; 
    color: #c5a059; 
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #aaaaaa; 
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c5a059; 
}


/* ==========================================================================
   3. BUTTONS (Luxury Sharp Edges)
   ========================================================================== */
.btn {
    background-color: #c5a059; 
    color: #111111; 
    border: 1px solid #c5a059;
    padding: 0.8rem 1.8rem;
    border-radius: 0px; 
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: #c5a059; 
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.btn:disabled {
    background-color: #333333;
    border-color: #444444;
    color: #888888;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    text-decoration: none;
    display: inline-block;
}


/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.60)), 
                url('/backends/uploads/bg_jewelry.jpg') fixed center center / cover no-repeat;
    color: white;
    padding: 11rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    box-shadow: inset 0 -30px 50px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #cccccc;
    font-weight: 300;
}


/* ==========================================================================
   5. PREMIUM DYNAMIC CATALOG SECTION
   ========================================================================== */
.services {
    max-width: 1240px;
    margin: 4rem auto;
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    background: rgba(8, 8, 8, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(197, 160, 89, 0.05);
}

.sample-beirut-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.sample-beirut-badge {
    border: 1px solid #c5a059;
    padding: 0.5rem 1.8rem;
    color: #c5a059;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(10, 10, 10, 0.6);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
    margin-bottom: 0.8rem;
}

.sample-beirut-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #c5a059;
    font-size: 0.7rem;
    width: 100%;
    max-width: 400px;
}

.sample-beirut-line span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #c5a059, transparent);
}

.services h2, .customize-section h2, .find-us-section h2 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    font-size: 2.4rem;
    color: #c5a059; 
    letter-spacing: 3px;
}

.main-collection-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1c1c1c;
    padding-bottom: 1rem;
}

.main-tab-btn {
    background: transparent;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.main-tab-btn:hover {
    color: #c5a059;
}

.main-tab-btn.active {
    color: #c5a059;
    font-weight: 700;
}

.main-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c5a059;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #1c1c1c;
    color: #888;
    padding: 0.6rem 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-btn:hover, .filter-btn.active {
    border-color: #c5a059;
    color: #ffffff;
    background-color: rgba(197, 160, 89, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.product-card {
    background: rgba(12, 12, 12, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.35);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #c5a059;
    box-shadow: 0 20px 45px rgba(197, 160, 89, 0.25);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    cursor: pointer;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(4, 4, 4, 0.5) 100%);
    pointer-events: none;
}

.product-info {
    padding: 1.4rem 1.2rem 1.6rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
}

/* Artisanal Story Banner & Human Touch Styling */
.atelier-story-banner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    padding: 0 1rem;
}

.atelier-seal {
    font-size: 0.7rem;
    color: #c5a059;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 0.6rem;
}

.atelier-quote {
    font-family: 'Cinzel', serif;
    font-style: italic;
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.atelier-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #c5a059;
    font-size: 0.8rem;
}

.atelier-divider span {
    display: block;
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, #c5a059, transparent);
}

.product-handcrafted-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #c5a059;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.6rem;
    font-weight: 500;
}

.product-craftsmanship {
    font-size: 0.7rem;
    color: #777777;
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.product-category-tag {
    font-size: 0.65rem;
    color: #c5a059;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.product-title {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    font-weight: 400;
    line-height: 1.3;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid #141414;
    padding-top: 1rem;
    margin-top: auto;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    color: #c5a059;
    font-weight: 600;
    font-size: 1.05rem;
}

.product-price.request {
    font-style: italic;
    font-size: 0.8rem;
    color: #999999;
    letter-spacing: 0.5px;
}

.btn-wa {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgba(197, 160, 89, 0.05);
    border: 1px solid #c5a059;
    color: #c5a059;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wa:hover {
    background-color: #c5a059;
    color: #080808;
}


/* ==========================================================================
   6. CUSTOMIZE / WORKSHOP CARDS SECTION
   ========================================================================== */
.customize-section {
    background: rgba(8, 8, 8, 0.45);
    backdrop-filter: blur(8px);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.customize-options {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.atelier-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 3rem 2.5rem;
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.atelier-card:hover {
    border-color: #c5a059;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.1);
}

.card-icon {
    color: #c5a059;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.atelier-card h3 {
    font-family: 'Cinzel', serif;
    color: #c5a059;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.atelier-card p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.atelier-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c5a059;
}

.form-group input {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 0.8rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #c5a059;
}

.form-group input[type="file"] {
    padding: 0.6rem;
    cursor: pointer;
}


/* ==========================================================================
   7. WHERE TO FIND US SECTION
   ========================================================================== */
.find-us-section {
    background: rgba(8, 8, 8, 0.45);
    backdrop-filter: blur(8px);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.find-us-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 3.5rem auto 0 auto;
    flex-wrap: wrap;
}

.contact-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 3.5rem 2rem;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-card:hover {
    border-color: #c5a059;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.1);
}

.contact-card h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1.2rem;
    color: #c5a059;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.contact-card p {
    color: #aaaaaa;
}

footer {
    background-color: #020202; 
    color: #777777;
    text-align: center;
    padding: 3rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid #1a1a1a;
}


/* ==========================================================================
   8. STATUS BANNERS & ROUTER ANIMATIONS
   ========================================================================== */
.form-status {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    border: 1px solid transparent;
    display: none;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    background-color: rgba(197, 160, 89, 0.08);
    border-color: #c5a059;
    color: #c5a059;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    color: #ff6b6b;
}

.section-hidden {
    display: none !important;
}

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

main > section {
    animation: fadeIn 0.5s ease-out forwards;
}


/* ==========================================================================
   9. MOBILE & TABLET MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #c5a059;
        font-size: 1.6rem;
        cursor: pointer;
        padding: 0.2rem;
        transition: color 0.3s ease;
        outline: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0a0a0a;
        border-bottom: 1px solid rgba(197, 160, 89, 0.3);
        padding: 1.5rem 0;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 7rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .services, .customize-section, .find-us-section {
        padding: 4rem 1.5rem;
        margin: 0 auto;
    }

    .services h2, .customize-section h2, .find-us-section h2 {
        font-size: 1.8rem !important;
        letter-spacing: 2px;
    }

    .section-subtitle {
        margin-bottom: 2.5rem;
    }

    .customize-options, .find-us-container {
        gap: 2rem;
    }

    .atelier-card, .contact-card {
        padding: 2rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .product-image-container {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .services h2, .customize-section h2, .find-us-section h2 {
        font-size: 1.6rem !important;
    }

    .atelier-card, .contact-card {
        padding: 1.8rem 1.2rem;
    }
    
    .category-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Lightbox Image Zoom Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 4, 4, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #c5a059;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 1010;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #ffffff;
}

.modal-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 1010;
    background: rgba(14, 14, 14, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.modal-btn {
    background: transparent;
    border: 1px solid #c5a059;
    color: #c5a059;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: #c5a059;
    color: #040404;
}

.modal-image-wrapper {
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    cursor: grab;
}

#modal-img:active {
    cursor: grabbing;
}
