/* ==========================================================================
   Bimloyza Ebony Wood - Style sheet (Warm Mahogany & Amber Theme)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-darker: #120907;
    --bg-dark: #1a0e0b;
    --bg-card: rgba(38, 22, 17, 0.75);
    --border-color: rgba(229, 169, 93, 0.2);
    --border-color-hover: rgba(240, 194, 123, 0.5);
    
    --primary-gold: #e5a95d;
    --accent-gold: #f0c27b;
    --accent-gold-dark: #b87e38;
    --accent-wood: #8b4513;
    
    --text-main: #f0e6df;
    --text-muted: #b8a69a;
    --text-white: #ffffff;
    
    --status-available: #4caf50;
    --status-available-bg: rgba(76, 175, 80, 0.15);
    --status-sold: #e53935;
    --status-sold-bg: rgba(229, 57, 53, 0.15);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-gold-glow: 0 0 18px rgba(229, 169, 93, 0.25);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-white);
    letter-spacing: 0.5px;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Utility */
.glassmorphism {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, #24130d 0%, #120907 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--accent-gold-dark);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(229, 169, 93, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(26, 14, 11, 0.9) 0%, rgba(26, 14, 11, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 169, 93, 0.3);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: 1.5px;
    font-style: italic;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.badge-icon {
    width: 16px;
    height: 16px;
    fill: var(--accent-gold);
}

/* Intro Section */
.intro-section {
    margin-top: -40px;
    position: relative;
    z-index: 5;
    margin-bottom: 60px;
}

.intro-card {
    padding: 40px;
    text-align: center;
}

.intro-card h2 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.intro-card p {
    max-width: 900px;
    margin: 0 auto 24px auto;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 300;
}

.intro-instructions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.step-num {
    background: var(--accent-gold-dark);
    color: var(--bg-darker);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 4px;
}

/* Catalog Filtering */
.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.section-desc {
    max-width: 650px;
    margin: 0 auto 32px auto;
    color: var(--text-muted);
    font-weight: 300;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(38, 22, 17, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--text-white);
    background: rgba(229, 169, 93, 0.1);
}

.filter-btn.active {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold);
    color: var(--bg-darker);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    min-height: 200px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-family: var(--font-serif);
}

.product-card {
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-gold-glow), var(--shadow-premium);
    transform: translateY(-4px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #120907;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.card-badges {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge.available {
    background-color: var(--status-available-bg);
    color: var(--status-available);
    border: 1px solid var(--status-available);
}

.status-badge.sold {
    background-color: var(--status-sold-bg);
    color: var(--status-sold);
    border: 1px solid var(--status-sold);
}

.category-badge {
    background-color: rgba(18, 9, 7, 0.85);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
}

.product-sku {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 6px;
    font-weight: 700;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-card:hover .product-btn {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    color: var(--bg-darker);
}

/* Shipping & Payment */
.shipping-payment-section {
    margin-bottom: 60px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-block {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.block-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.block-icon svg {
    fill: var(--accent-gold);
    width: 100%; height: 100%;
}

.info-block h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.info-block p {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 24px;
    flex-grow: 1;
}

.paypal-logo-container, .shipping-partners {
    display: flex;
    align-items: center;
    gap: 12px;
}

.paypal-text-logo {
    font-weight: 700;
    font-style: italic;
    color: #003087;
    background: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #d4d4d4;
}

.partner-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* FAQ Accordion */
.faq-section {
    margin-bottom: 60px;
    max-width: 800px !important;
}

.faq-accordion {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--text-white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    color: var(--text-main);
    font-weight: 300;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Contact Card */
.contact-section {
    margin-bottom: 80px;
}

.contact-card {
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1.5px solid var(--accent-gold-dark);
}

.contact-card h2 {
    font-size: 2.25rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-weight: 300;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 169, 93, 0.35);
    transition: var(--transition-smooth);
}

.contact-btn:hover {
    background-color: var(--text-white);
    color: var(--bg-darker);
}

.btn-icon {
    width: 20px; height: 20px; fill: currentColor;
}

/* Modal Overlay & Zoom */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1; pointer-events: auto;
}

.modal-overlay {
    position: absolute; width: 100%; height: 100%;
    background-color: rgba(10, 5, 3, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%; max-width: 1000px; max-height: 90vh;
    overflow-y: auto; z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid var(--accent-gold-dark);
}

.modal.open .modal-container { transform: scale(1); }

.modal-close {
    position: absolute; top: 16px; right: 20px;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 2rem; cursor: pointer;
    z-index: 10; transition: var(--transition-smooth);
}

.modal-close:hover { color: var(--accent-gold); }

.modal-content {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    padding: 30px; gap: 30px;
}

.modal-gallery { display: flex; flex-direction: column; align-items: center; }

.image-zoom-container {
    position: relative; width: 100%; max-width: 450px;
    border-radius: 8px; border: 1px solid var(--border-color);
    background-color: #0c0604; overflow: hidden; cursor: zoom-in;
}

.image-zoom-container img { width: 100%; height: auto; display: block; object-fit: contain; }

.zoom-lens {
    position: absolute; border: 1px solid var(--accent-gold);
    width: 120px; height: 120px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border-radius: 4px; cursor: zoom-in; pointer-events: none;
    opacity: 0; transition: opacity 0.15s ease; z-index: 5;
}

.image-zoom-container:hover .zoom-lens { opacity: 1; }

.zoom-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; text-align: center; }

.zoom-result-container {
    position: absolute; top: 30px; left: 30px;
    width: 450px; height: 450px;
    border: 2px solid var(--accent-gold);
    background-color: #000; border-radius: 8px; z-index: 10;
    overflow: hidden; pointer-events: none; opacity: 0;
    transition: opacity 0.2s ease; box-shadow: var(--shadow-premium);
}

.zoom-result { width: 100%; height: 100%; background-repeat: no-repeat; }
.zoom-result-container.active { opacity: 1; }

.modal-details { display: flex; flex-direction: column; }
.modal-details h2 { font-size: 2.25rem; color: var(--text-white); margin-bottom: 8px; }

.modal-details .detail-tag {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-gold-dark);
    color: var(--accent-gold);
    padding: 4px 12px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
}

.modal-details .status-badge { align-self: flex-start; margin-bottom: 24px; }

.specs-table { margin-bottom: 30px; border-top: 1px solid var(--border-color); }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
.spec-label { color: var(--text-muted); }
.spec-value { color: var(--text-white); font-weight: 500; }
.highlight-val { color: var(--accent-gold); font-weight: 700; }

.inquiry-helper {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 16px; border-radius: 8px;
    border: 1px solid var(--border-color); margin-bottom: 24px;
}

.helper-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }

.inquiry-textbox {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--bg-darker); border-radius: 6px;
    border: 1px solid var(--border-color); padding: 10px 14px; gap: 12px;
}

#inquiryMessageText { font-size: 0.85rem; color: var(--text-main); word-break: break-word; font-style: italic; }

.copy-btn {
    display: flex; align-items: center; gap: 4px;
    background-color: rgba(229, 169, 93, 0.15);
    border: 1px solid var(--accent-gold); color: var(--accent-gold);
    padding: 6px 12px; border-radius: 4px; font-size: 0.8rem;
    font-weight: 700; cursor: pointer; transition: var(--transition-smooth); flex-shrink: 0;
}

.copy-btn:hover { background-color: var(--accent-gold); color: var(--bg-darker); }
.copy-icon { width: 12px; height: 12px; fill: currentColor; }
.fb-inquire-btn { width: 100%; text-align: center; justify-content: center; }

/* Toast alert */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--accent-gold); color: var(--bg-darker);
    padding: 12px 24px; border-radius: 6px; font-weight: 700;
    box-shadow: var(--shadow-premium); z-index: 1000; opacity: 0;
    pointer-events: none; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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

/* Footer */
footer {
    background-color: var(--bg-darker); text-align: center;
    padding: 40px 20px; border-top: 1px solid var(--border-color);
    font-size: 0.9rem; color: var(--text-muted);
}
footer p { margin-bottom: 8px; }
.footer-sub { font-size: 0.8rem; color: var(--accent-gold-dark); }

/* Mobile Sticky FAB */
.mobile-fab { display: none; }

@media (max-width: 768px) {
    .mobile-fab {
        display: flex; align-items: center; gap: 8px;
        position: fixed; bottom: 20px; right: 20px;
        background-color: var(--accent-gold); color: var(--bg-darker);
        padding: 12px 20px; border-radius: 30px; font-weight: 700;
        font-size: 0.85rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 169, 93, 0.4);
        z-index: 99; text-decoration: none;
    }
    .mobile-fab svg { width: 18px; height: 18px; fill: currentColor; }
}

@media (max-width: 600px) {
    .hero-banner { height: 300px; padding: 20px 10px; }
    .hero-logo { font-size: 1.85rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 20px; }
    .trust-badges { gap: 8px; flex-direction: column; width: 100%; max-width: 260px; }
    .badge { padding: 6px 12px; font-size: 0.75rem; justify-content: center; width: 100%; }
    .intro-card { padding: 20px 14px; }
    .intro-card h2 { font-size: 1.35rem; }
    .intro-card p { font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }
    .filter-container { gap: 6px; }
    .filter-btn { padding: 8px 14px; font-size: 0.8rem; flex: 1 1 calc(50% - 6px); text-align: center; }
    .product-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 4px; }
    .contact-card { padding: 30px 16px; }
    .contact-card h2 { font-size: 1.5rem; }
    .contact-btn { padding: 12px 20px; font-size: 0.9rem; width: 100%; justify-content: center; }
    
    .modal-container {
        width: 100%; max-height: 85vh; position: fixed; bottom: 0;
        border-radius: 20px 20px 0 0; border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    }
    .modal.open .modal-container { transform: translateY(0); }
    .modal-content { padding: 20px 16px 30px 16px; gap: 16px; }
    .modal-close { top: 12px; right: 16px; font-size: 1.8rem; }
}
