/* =============== PRODUCT CATEGORIES GRID =============== */
.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-box {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 102, 179, 0.2);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0066b3 0%, #00a0d6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white-color);
    transition: var(--transition);
}

.category-box:hover .category-icon {
    transform: rotateY(360deg) scale(1.1);
}

.category-box h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: var(--font-bold);
}

.category-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: var(--transition);
}

.category-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

.category-link i {
    transition: var(--transition);
}

/* =============== SECTION PRODUCTS =============== */
.section-products {
    padding: 4rem 0;
}

.section-alt {
    background: var(--section-bg);
}

.section-title-bar {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--border-color);
}

.section-main-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: var(--font-extrabold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-main-title i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: var(--font-regular);
}

/* =============== PRODUCTS GRID =============== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-box {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 179, 0.2);
}

.product-image-box {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--section-bg);
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-box:hover .product-image-box img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #0066b3 0%, #00a0d6 100%);
    color: var(--white-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--font-semibold);
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 102, 179, 0.3);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-quick-specs {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.product-quick-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-quick-specs li i {
    color: #00d084;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-specs,
.btn-quote {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: var(--font-semibold);
    text-align: center;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-specs {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-specs:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-quote {
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-quote:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* =============== QUICK CONTACT CTA =============== */
.quick-contact-cta {
    padding: 3rem 0;
    background: var(--section-bg);
}

.cta-box {
    background: linear-gradient(135deg, #0066b3 0%, #00a0d6 100%);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0, 102, 179, 0.3);
}

.cta-content h3 {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-bold);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.cta-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
}

.cta-phone {
    color: var(--white-color);
    font-weight: var(--font-semibold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cta-phone i {
    font-size: 1.3rem;
}

/* =============== FILTER SECTION =============== */
.filter-bar {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-label {
    font-weight: var(--font-semibold);
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    background: var(--white-color);
    color: var(--text-color);
    border-radius: 25px;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* =============== RESPONSIVE - PRODUCTS =============== */
@media screen and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .section-main-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .product-categories {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .category-box {
        padding: 2rem 1.5rem;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .cta-action {
        align-items: center;
    }
    
    .section-main-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 576px) {
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-specs,
    .btn-quote {
        width: 100%;
    }
    
    .section-title-bar {
        margin-bottom: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.4rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* =============== LOADING ANIMATION =============== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-box {
    animation: fadeInUp 0.6s ease-out;
}

.product-box:nth-child(1) { animation-delay: 0.1s; }
.product-box:nth-child(2) { animation-delay: 0.2s; }
.product-box:nth-child(3) { animation-delay: 0.3s; }
.product-box:nth-child(4) { animation-delay: 0.4s; }
.product-box:nth-child(5) { animation-delay: 0.5s; }
.product-box:nth-child(6) { animation-delay: 0.6s; }

/* =============== PRINT STYLES =============== */
@media print {
    .product-box {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .product-actions,
    .category-link {
        display: none;
    }
}

/* =============== PRODUCT MODAL =============== */
.product-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--white-color);
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    padding: 1rem 1.5rem;
    background: var(--white-color);
    border-radius: 0 20px 0 0;
    transition: var(--transition);
}

.modal-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    padding-top: 0;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.modal-model {
    display: inline-block;
    background: linear-gradient(135deg, #0066b3 0%, #00a0d6 100%);
    color: var(--white-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: var(--font-semibold);
    font-size: 1.1rem;
}

.modal-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.modal-description p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

.modal-specifications {
    margin-bottom: 2rem;
}

.modal-specifications h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-spec-table tr {
    border-bottom: 1px solid var(--border-color);
}

.modal-spec-table tr:last-child {
    border-bottom: none;
}

.modal-spec-table tr:nth-child(even) {
    background: var(--section-bg);
}

.modal-spec-table td {
    padding: 1rem;
    vertical-align: top;
}

.spec-label {
    font-weight: var(--font-semibold);
    color: var(--text-color);
    width: 40%;
}

.spec-value {
    color: var(--text-light);
    font-weight: var(--font-medium);
}

.modal-accessories {
    margin-bottom: 2rem;
}

.accessory-section {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.accessory-section:last-child {
    margin-bottom: 0;
}

.accessory-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accessory-section h4 i {
    font-size: 1.3rem;
}

.accessory-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Scroll bar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .product-modal {
        padding: 1rem;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-model {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .modal-specifications h3 {
        font-size: 1.3rem;
    }
    
    .modal-spec-table td {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .spec-label {
        width: 45%;
    }
    
    .accessory-section {
        padding: 1rem;
    }
    
    .accessory-section h4 {
        font-size: 1.1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .modal-close {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }
    
    .modal-spec-table {
        font-size: 0.9rem;
    }
    
    .modal-spec-table td {
        padding: 0.6rem;
    }
}
