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

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif; 
    font-size: 16px; 
    line-height: 1.6; 
    color: #333;
    background: #050505;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

a { color: #4ade80; text-decoration: none; transition: color 0.2s; }
a:hover { color: #22c55e; }

img { max-width: 100%; height: auto; }

/* === Reference: Black Header Style === */

.site-header { background: #0a0a0a; border-bottom: 1px solid #1a1a1a; }

.announcement-bar { display: none; }

.top-bar { background: #0a0a0a; padding: 8px 0; border-bottom: 1px solid #1a1a1a; display: none; }

.header-main { padding: 28px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

.logo a { 
    font-size: 26px; 
    font-weight: 700; 
    color: #4ade80;
    letter-spacing: 0.2px;
}

.header-middle { flex: 1; display: flex; align-items: center; justify-content: center; max-width: 500px; }
.search-form { width: 100%; }
.search-input { 
    width: 100%; 
    padding: 10px 18px; 
    border: 1px solid #2a2a2a; 
    border-radius: 9999px; 
    background: #121212;
    color: #fff;
    font-size: 14px;
}
.search-input::placeholder { color: #6b7280; }

.header-actions { display: flex; gap: 20px; align-items: center; }
.cart-link { 
    padding: 8px 16px; 
    color: white;
    border-radius: 4px; 
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cart-link:hover { background: #1a1a1a; }
.user-status-link { font-size: 14px; }
.user-status-link a { color: #9ca3af; }
.user-status-link a:hover { color: white; }
.user-status-link:hover { color: white; }

.section.alt-dark { background: #0a0a0a; }

.main-nav { background: #0a0a0a; }
.main-nav ul { list-style: none; display: flex; gap: 0; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { 
    display: block; 
    padding: 18px 20px; 
    color: #fff; 
    font-size: 15px;
    transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active { 
    color: #4ade80; 
}

/* === Hero Banner - Reference style === */

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1556740738-b6a63e27c4df?w=1920&q=80');
    background-size: cover;
    background-position: center 50%;
    padding: 100px 40px;
    text-align: center;
    color: white;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.hero-content p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 36px;
    opacity: 0.85;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-green {
    padding: 14px 32px;
    background: #4ade80;
    color: #000;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.btn-hero-dark {
    padding: 14px 32px;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
}

/* === Dark Sections === */

.section { padding: 80px 0; }
.section.dark { background: #050505; color: white; }
.section-title-wrap { text-align: center; margin-bottom: 48px; }
.section-title { 
    font-size: 32px; 
    margin-bottom: 14px; 
    color: #fff;
    font-weight: 700;
}
.section-underline { 
    width: 80px; 
    height: 4px; 
    background: #4ade80; 
    margin: 0 auto;
}

/* === Product Cards Neat Alignment === */

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
    grid-auto-rows: 1fr;
}
.no-products-msg { text-align: center; padding: 40px; color: #888; }
.product-card { 
    background: #0a0a0a; 
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.2);
    border-color: #2a2a2a;
}

.product-image { 
    height: 280px; 
    min-height: 280px;
    background: #121212; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #6b7280;
    font-size: 14px;
    position: relative;
    flex-shrink: 0;
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 600;
}
.product-info { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.product-name { 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 14px; 
    color: #e5e7eb;
    line-height: 1.5;
    flex-grow: 1;
}
.product-price-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto;
    padding-top: 6px;
}
.product-price { 
    font-size: 22px; 
    font-weight: 700; 
    color: #4ade80; 
    white-space: nowrap;
}
.btn-buy {
    padding: 8px 16px;
    background: #4ade80;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-buy:hover { background: #22c55e; }

/* === Categories === */

.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.category-card { 
    background: #0a0a0a; 
    padding: 36px; 
    border-radius: 6px; 
    border: 1px solid #1a1a1a;
    text-align: center; 
}
.category-card h3 { margin-bottom: 10px; font-size: 20px; color: #fff; font-weight: 600; }
.category-card p { margin-bottom: 20px; color: #6b7280; font-size: 15px; }
.btn-outline {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #4ade80;
    color: #4ade80;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.btn-outline:hover { background: #4ade80; color: #000; }

/* === Newsletter Block === */

.newsletter-section {
    background: linear-gradient(135deg, #0a0a0a, #121212);
    padding: 80px 0;
    text-align: center;
    color: white;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}
.newsletter-section h3 { font-size: 26px; margin-bottom: 12px; color: #fff; }
.newsletter-section p { color: #6b7280; margin-bottom: 28px; font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-input {
    padding: 14px 20px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    background: #050505;
    color: white;
    font-size: 16px;
    flex: 1;
    min-width: 260px;
}
.newsletter-btn {
    padding: 14px 28px;
    background: #4ade80;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* === Footer 4 Columns Reference Layout === */

.site-footer { 
    background: #020202; 
    color: #6b7280; 
    padding: 80px 0 32px;
    border-top: 1px solid #1a1a1a;
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
    margin-bottom: 56px; 
}
.footer-col h4 { 
    margin-bottom: 24px; 
    font-size: 14px; 
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 14px; }
.footer-col a { color: #6b7280; font-size: 15px; }
.footer-col a:hover { color: #4ade80; }
.footer-contact li { margin-bottom: 16px; font-size: 15px; }
.footer-bottom { 
    border-top: 1px solid #1a1a1a; 
    padding-top: 32px; 
    text-align: center; 
    font-size: 15px; 
}

/* Buttons base */
.btn { 
    display: inline-block; 
    padding: 12px 20px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 15px; 
    font-weight: 500;
    text-align: center; 
    transition: all 0.2s; 
}
.btn-primary { background: #4ade80; color: #000; }
.btn-primary:hover { background: #22c55e; }

/* Responsive */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 16px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 36px; }
    .main-nav ul { justify-content: center; }
    .main-nav a { padding: 14px 16px; font-size: 14px; }
    .container { padding: 0 20px; }
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* === About Page Styles === */

.about-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
    border-bottom: 1px solid #1a1a1a;
}

.about-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-hero-content p {
    font-size: 20px;
    color: #9ca3af;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col-layout.reverse {
    direction: rtl;
}

.two-col-layout.reverse > * {
    direction: ltr;
}

.text-col {
    color: white;
}

.section-title-left {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 16px;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
}

.section-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
    margin-top: 8px;
}

.office-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.office-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.office-item:hover {
    transform: translateY(-5px);
}

.office-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.office-caption {
    padding: 16px;
    text-align: center;
    color: #e5e7eb;
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: #4ade80;
    transform: translateY(-5px);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.value-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.value-card p {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.contact-card p {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .two-col-layout.reverse {
        direction: ltr;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .office-gallery {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 36px;
    }
    .about-hero-content p {
        font-size: 18px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 0 0 6px 6px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #1a1a1a;
    color: #4ade80;
}
