/**
 * MILMAX Custom Styles (Bootstrap override)
 */

:root {
    --main-blue: #1a365d;
    --light-blue: #2d4a7c;
    --accent-red: #e53935;
    --accent-red-hover: #c62828;
}

/* General */
body {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--main-blue) !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    color: var(--main-blue) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red) !important;
}

.header-phone {
    text-align: right;
}

.header-phone a {
    font-weight: 600;
    color: var(--main-blue);
    font-size: 1.1rem;
}

.header-phone small {
    display: block;
    font-size: 0.75rem;
    color: #666;
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--light-blue) 100%);
    color: #fff;
    padding: 100px 0 60px;
}

.page-hero h1 {
    color: #fff;
    font-weight: 700;
}

.page-hero p {
    opacity: 0.9;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
}

.btn-outline-primary {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-outline-primary:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

/* Filter Section */
.filters-section {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 56px;
    z-index: 100;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-group h6 {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.filter-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 2px;
}

.filter-btn.active {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
    color: #fff;
}

/* Product Cards */
.product-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-blue);
    margin-bottom: 0.5rem;
}

.product-specs {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-article {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 600;
    color: var(--accent-red);
    font-size: 0.9rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 600;
}

.product-badge.new {
    background: #28a745;
}

/* Pagination */
.pagination .page-link {
    color: var(--main-blue);
    border-radius: 4px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--main-blue);
    font-weight: 700;
}

.section-header h2 span {
    color: var(--accent-red);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--light-blue) 100%);
    color: #fff;
    padding: 60px 0;
}

.cta-section h2 {
    color: #fff;
}

.cta-section .btn-light {
    color: var(--main-blue);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--main-blue);
    color: #fff;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-red-hover);
    transform: translateY(-3px);
}

/* Instruments Page */
.instrument-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.instrument-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.instrument-card.featured {
    border: 2px solid var(--accent-red);
}

.instrument-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.instrument-features .badge {
    font-weight: 400;
    margin: 2px;
}

/* Contact Page */
.contact-info-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-red);
}

/* About Page */
.about-stats {
    background: var(--light-blue);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Check List */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    background: var(--accent-red);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* Forms */
.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}

/* Color Palette */
.color-group h6 {
    color: var(--main-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.color-list span {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 12px;
    margin: 3px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.color-list span.new {
    background: #28a745;
    color: #fff;
}

/* Frame Cards */
.frame-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.frame-card img {
    height: 150px;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 991px) {
    .header-phone {
        display: none;
    }

    .page-hero {
        padding: 80px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .filters-section {
        position: static;
    }

    .product-card .card-img-top {
        height: 180px;
    }

    .stat-number {
        font-size: 2rem;
    }
}
