/* ═══════════════════════════════════════════════════
   FEGIA - Premium Furniture Lighting
   Dark luxury theme inspired by qsfast.com layout
   ═══════════════════════════════════════════════════ */

:root {
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --gold-dark: #a88b55;
    --bg-dark: #0d0d0d;
    --bg-section: #1a1a1a;
    --bg-card: #222;
    --bg-card-hover: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #999;
    --text-muted: #666;
    --border-color: #333;
}

/* Base */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
}
a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; font-weight: 600; }
img { max-width: 100%; }

/* ── Top Bar ── */
.top-bar {
    background: #111;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.top-bar a { color: var(--text-secondary); margin-left: 12px; font-size: 16px; }
.top-bar a:hover { color: var(--gold); }
.top-contact i { color: var(--gold); margin-right: 4px; }

/* ── Navbar ── */
.navbar {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1050;
}
.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold) !important;
    letter-spacing: 4px;
}
.brand-sub {
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.navbar .nav-link {
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.navbar .nav-link:hover { color: var(--gold) !important; }
.btn-inquiry-nav {
    background: var(--gold) !important;
    color: #111 !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
    margin-left: 0.5rem;
}
.btn-inquiry-nav:hover { background: var(--gold-light) !important; }
.dropdown-menu {
    background: #222;
    border: 1px solid var(--border-color);
}
.dropdown-item { color: var(--text-primary); font-size: 14px; }
.dropdown-item:hover { background: var(--gold); color: #111; }

/* ── Hero Carousel ── */
.hero-carousel { position: relative; }
.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.carousel-caption-custom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 80%;
    max-width: 700px;
}
.carousel-caption-custom h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.carousel-caption-custom p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

/* ── Buttons ── */
.btn-gold {
    background: var(--gold);
    color: #111;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: var(--gold-light);
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}
.btn-inquiry {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-inquiry:hover {
    background: var(--gold);
    color: #111;
}

/* ── Social Bar ── */
.social-bar {
    background: var(--bg-section);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.social-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.3s;
}
.social-item i { font-size: 24px; margin-bottom: 4px; }
.social-item:hover { color: var(--gold); }

/* ── Sections ── */
section { padding: 5rem 0; }
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ── Category Cards ── */
.section-categories { background: var(--bg-dark); }
.category-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s;
    text-decoration: none;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.15);
}
.category-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}
.category-card:hover .category-img { transform: scale(1.05); }
.category-info {
    padding: 1.2rem;
}
.category-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.category-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.product-count {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

/* ── Product Cards ── */
.section-featured { background: var(--bg-section); }
.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.product-img-wrapper {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: 100%;
}
.product-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img { transform: scale(1.08); }
.product-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-info .product-category {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.product-info h4 {
    font-size: 1rem;
    margin: 6px 0;
    line-height: 1.4;
}
.product-info h4 a { color: var(--text-primary); }
.product-info h4 a:hover { color: var(--gold); }
.product-model {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
/* Detail page price display */
.product-price-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(201,169,110,0.05));
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 8px;
    padding: 10px 20px;
    margin-top: 1rem;
}
.product-price-display .price-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}
.product-price-display .price-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}
.product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-info .btn-inquiry { margin-top: auto; text-align: center; }

/* ── Sectors ── */
.section-sectors { background: var(--bg-dark); }
.sector-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}
.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.1);
}
.sector-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.sector-icon i { font-size: 28px; color: var(--gold); }
.sector-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.sector-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ── Certifications ── */
.section-certification {
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cert-badge {
    text-align: center;
    padding: 2rem 2.5rem;
}
.cert-name {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}
.cert-desc {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ── About ── */
.section-about { background: var(--bg-dark); }
.about-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px;
}
.section-about .section-title { text-align: left; }
.section-about p { color: var(--text-secondary); font-size: 15px; }
.about-feature {
    background: var(--bg-card);
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
}
.about-feature i { font-size: 28px; color: var(--gold); display: block; margin-bottom: 8px; }
.about-feature h5 { font-size: 14px; margin: 0; }

.about-feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}
.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.1);
}
.about-feature-card i { font-size: 36px; color: var(--gold); display: block; margin-bottom: 1rem; }
.about-feature-card h5 { margin-bottom: 0.5rem; }
.about-feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ── Blog ── */
.section-blog { background: var(--bg-section); }
.blog-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.blog-meta { margin-bottom: 0.75rem; }
.blog-category {
    background: rgba(201, 169, 110, 0.2);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-date { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.blog-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-card h4 a { color: var(--text-primary); }
.blog-card h4 a:hover { color: var(--gold); }
.blog-card p { font-size: 14px; color: var(--text-secondary); }
.blog-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

/* ── CTA ── */
.section-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}
.section-cta h2 { color: var(--gold); margin-bottom: 1rem; }
.section-cta p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ── Page Header ── */
.page-header {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* ── Product Sidebar ── */
.product-sidebar {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
}
.product-sidebar h5 { color: var(--gold); margin-bottom: 1rem; }
.category-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-filter li {
    margin-bottom: 2px;
}
.category-filter li a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}
.category-filter li a span { font-size: 12px; color: var(--text-muted); }
.category-filter li a:hover, .category-filter li.active a {
    background: rgba(201, 169, 110, 0.15);
    color: var(--gold);
}

/* ── Product Detail ── */
.product-gallery .main-image {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.product-gallery .main-image img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
}
.thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { color: var(--text-primary); }
.product-detail-info .product-category { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.product-detail-info h1 { font-size: 2rem; margin: 0.5rem 0; }
.product-detail-info h2 { font-size: 1.2rem; }
.product-model-number { color: var(--text-secondary); font-size: 14px; margin-top: 1rem; }
.product-specs { }
.product-specs h5 { color: var(--gold); }

/* ── Contact ── */
.contact-info-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
}
.contact-info-card h4 { color: var(--gold); margin-bottom: 1.5rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-item i { font-size: 24px; color: var(--gold); margin-right: 1rem; margin-top: 2px; }
.contact-item h6 { margin: 0; font-size: 14px; color: var(--text-primary); }
.contact-item p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.contact-form-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
}
.contact-form-card h4 { color: var(--gold); margin-bottom: 1.5rem; }
.form-control, .form-select {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    background: var(--bg-section);
    border-color: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.2);
}
.form-label { color: var(--text-secondary); font-size: 14px; }

/* ── Footer ── */
.site-footer {
    background: #111;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
}
.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.site-footer p { color: var(--text-secondary); font-size: 14px; }
.site-footer h5 { color: var(--gold); font-size: 16px; margin-bottom: 1rem; }
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact {
    list-style: none;
    padding: 0;
}
.footer-contact li {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}
.footer-contact i { color: var(--gold); margin-right: 8px; }
.footer-social a {
    color: var(--text-secondary);
    font-size: 20px;
    margin-right: 15px;
}
.footer-social a:hover { color: var(--gold); }
.footer-divider { border-color: var(--border-color); margin: 2rem 0; }
.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* ── Breadcrumb ── */
.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item a { color: var(--gold); font-size: 14px; }
.breadcrumb-item.active { color: var(--text-secondary); font-size: 14px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ── Pagination ── */
.page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.page-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}
.page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

/* ── Alert ── */
.alert-success {
    background: rgba(201, 169, 110, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Admin ── */
.text-gold { color: var(--gold) !important; }
.table-dark { --bs-table-bg: var(--bg-card); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .carousel-item { height: 400px; }
    .carousel-caption-custom h1 { font-size: 2rem; }
    .carousel-caption-custom p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    section { padding: 3rem 0; }
    .page-header { height: 200px; }
    .page-header h1 { font-size: 1.8rem; }
    .social-item { margin: 0 0.8rem; }
}

@media (max-width: 576px) {
    .carousel-item { height: 300px; }
    .carousel-caption-custom h1 { font-size: 1.5rem; }
    .top-bar .top-contact { font-size: 11px; }
    .brand-text { font-size: 22px; }
}
