/* US Engines Production - Marine Diesel Engines */
/* Premium Dark Marine Theme */

:root {
    --primary: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #3399FF;
    --secondary: #FF6B00;
    --secondary-dark: #CC5500;
    --dark: #0A1628;
    --dark-light: #1A2A44;
    --dark-medium: #243447;
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #3d3d5c;
    --gray-600: #6c757d;
    --gray-500: #8892a4;
    --gray-400: #adb5bd;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: var(--gray-400);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.top-bar span i { margin-right: 6px; color: var(--primary-light); }

/* Header */
.main-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.logo img {
    height: 50px;
    width: auto;
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    background: rgba(0,102,204,0.05);
}
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    z-index: 1001;
}
.nav-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    display: block;
    padding: 8px 14px;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.dropdown-content a:hover { background: var(--gray-100); color: var(--primary); }
.dropdown-content a.view-all {
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
    padding-top: 12px;
    color: var(--primary);
    font-weight: 600;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}
.header-search:hover { background: var(--gray-100); color: var(--primary); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,102,204,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--primary-dark) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--gray-300);
    margin-bottom: 30px;
    line-height: 1.7;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-light);
}
.stat-label {
    font-size: 14px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    padding: 14px 0;
}
.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--white);
    text-align: center;
    flex-wrap: wrap;
}
.promo-text strong { margin-right: 10px; }

/* Sections */
.section { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}
.section-footer { text-align: center; margin-top: 40px; }

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.brand-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.brand-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    font-size: 28px;
    color: var(--primary);
}
.brand-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.brand-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.product-count {
    font-size: 13px;
    color: var(--gray-500);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card a { text-decoration: none; color: inherit; }
.product-image {
    position: relative;
    height: 220px;
    background: var(--gray-100);
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--gray-300);
}
.badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-featured { top: 10px; left: 10px; background: var(--secondary); color: var(--white); }
.badge-condition { top: 10px; right: 10px; background: var(--success); color: var(--white); }
.product-info { padding: 20px; }
.product-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 6px 0 10px;
    color: var(--dark);
    line-height: 1.3;
}
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.product-specs span {
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
}
.product-specs span i { margin-right: 4px; color: var(--primary); }
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}
.product-price.call-price { color: var(--secondary); font-size: 14px; }
.product-price del { color: var(--gray-500); font-weight: 400; margin-right: 8px; }
.product-sku { font-size: 12px; color: var(--gray-500); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Why Section */
.why-section { background: var(--gray-100); }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    text-align: center;
}
.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-content p {
    font-size: 17px;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.footer-col ul a:hover { color: var(--primary-light); }
.footer-contact p { margin-bottom: 8px; }
.footer-contact i { margin-right: 8px; color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom p { font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

/* Products Page */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 50px 0;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--white);
    margin-bottom: 10px;
}
.page-header p { color: var(--gray-300); font-size: 17px; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 14px;
}
.breadcrumb a { color: var(--primary-light); text-decoration: none; }
.breadcrumb span { color: var(--gray-500); }

/* Filters */
.filters-bar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.filter-group select, .filter-group input {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    min-width: 150px;
}
.results-count { margin-left: auto; font-size: 14px; color: var(--gray-600); }

/* Product Detail */
.product-detail { padding: 40px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.product-gallery {
    position: sticky;
    top: 100px;
}
.product-gallery-main {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 15px;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
}
.product-gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active { border-color: var(--primary); }
.product-detail-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.product-detail-brand {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.product-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 20px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.specs-table tr { border-bottom: 1px solid var(--gray-200); }
.specs-table td {
    padding: 12px 15px;
    font-size: 14px;
}
.specs-table td:first-child {
    font-weight: 600;
    color: var(--gray-700);
    width: 40%;
    background: var(--gray-100);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 42px; }
    .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar-right { display: none; }
    .main-nav { display: none; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 9999;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }
    .mobile-toggle { display: block; }
    .hero { padding: 60px 0; }
    .hero-title { font-size: 32px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 28px; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 28px; }
    .brands-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .results-count { margin-left: 0; }
    .page-header h1 { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .brand-card { padding: 20px 15px; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
