/* ===== PRODUCTS PAGE RESPONSIVE STYLES ===== */

/* Banner Small - Mobile First */
.banner-small {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-top: 40px;
}

.banner-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 129, 185, 0.4));
    z-index: 1;
}

.banner-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-small .banner-title {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.banner-small h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-small p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tablet */
@media (min-width: 768px) {
    .banner-small {
        height: 250px;

    }
    
    .banner-small h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .banner-small p {
        font-size: 18px;
    }
    
    .banner-small .banner-title {
        max-width: 80%;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .banner-small {
        height: 300px;
    }
    
    .banner-small h1 {
        font-size: 48px;
        margin-bottom: 25px;
    }
    
    .banner-small p {
        font-size: 20px;
    }
    
    .banner-small .banner-title {
        max-width: 600px;
    }
}

/* Products Container */
.products-container {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

@media (min-width: 768px) {
    .products-container {
        padding: 60px 0;
    }
}

@media (min-width: 992px) {
    .products-container {
        padding: 80px 0;
    }
}

/* Product Category */
.product-category {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 129, 185, 0.1);
    transition: all 0.3s ease;
}

.product-category:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-category h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #0081b9;
    position: relative;
}

.product-category h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0081b9, #006699);
    border-radius: 2px;
}

.product-category p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .product-category {
        padding: 35px;
    }
    
    .product-category h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .product-category p {
        font-size: 18px;
        margin-bottom: 35px;
        max-width: 900px;
    }
}

@media (min-width: 992px) {
    .product-category {
        padding: 40px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-category h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .product-category p {
        font-size: 19px;
        margin-bottom: 40px;
        max-width: 1000px;
    }
}

@media (min-width: 1200px) {
    .product-category {
        max-width: 1400px;
    }
    
    .product-category p {
        max-width: 1100px;
    }
}

/* Product Item */
.product-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 129, 185, 0.15);
    border-color: #0081b9;
}

.product-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.08);
}

.product-item .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-item .product-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.product-item .product-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.product-item .product-info ul li {
    color: #555;
    margin-bottom: 10px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.product-item .product-info ul li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .product-item {
        max-width: 450px;
    }
    
    .product-item .product-image {
        height: 220px;
    }
    
    .product-item .product-info {
        padding: 25px;
    }
    
    .product-item .product-info h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .product-item .product-info ul li {
        font-size: 15px;
        margin-bottom: 12px;
    }
}

@media (min-width: 992px) {
    .product-item {
        max-width: 500px;
    }
    
    .product-item .product-image {
        height: 240px;
    }
    
    .product-item .product-info {
        padding: 30px;
    }
    
    .product-item .product-info h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .product-item .product-info ul li {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

@media (min-width: 1200px) {
    .product-item {
        max-width: 550px;
    }
    
    .product-item .product-image {
        height: 260px;
    }
}

/* More Button */
.more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0081b9, #006699);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 129, 185, 0.3);
    margin-top: 20px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 129, 185, 0.4);
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #006699, #004d73);
}

.more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.more-btn:hover i {
    transform: translateX(5px);
}

@media (min-width: 768px) {
    .more-btn {
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .more-btn {
        padding: 16px 35px;
        font-size: 16px;
    }
}

/* OEM Services Section */
.oem-services-section {
    margin-top: 60px;
}

.oem-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(0, 129, 185, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.oem-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.oem-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.oem-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.oem-card .btn {
    background: linear-gradient(135deg, #0081b9, #006699);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 129, 185, 0.3);
}

.oem-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 129, 185, 0.4);
    background: linear-gradient(135deg, #006699, #004d73);
}

@media (min-width: 768px) {
    .oem-card {
        padding: 40px;
        max-width: 900px;
    }
    
    .oem-card h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .oem-card p {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .oem-card .btn {
        padding: 14px 35px;
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .oem-card {
        padding: 50px;
        max-width: 1000px;
    }
    
    .oem-card h3 {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .oem-card p {
        font-size: 20px;
        margin-bottom: 35px;
    }
    
    .oem-card .btn {
        padding: 16px 40px;
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .oem-card {
        max-width: 1100px;
    }
}

/* Container Width Management for Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .product-category {
        max-width: 1200px;
    }
    
    .product-item {
        max-width: 500px;
    }
    
    .oem-card {
        max-width: 1000px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .product-category {
        max-width: 1300px;
    }
    
    .product-item {
        max-width: 550px;
    }
    
    .oem-card {
        max-width: 1100px;
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .product-category {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .product-item {
        max-width: 100%;
    }
    
    .product-item .product-image {
        height: 180px;
    }
    
    .product-item .product-info {
        padding: 15px;
    }
    
    .product-item .product-info h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .product-item .product-info ul li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .oem-card {
        padding: 25px;
        max-width: 100%;
    }
    
    .oem-card h3 {
        font-size: 20px;
    }
    
    .oem-card p {
        font-size: 14px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .product-item,
    .product-item .product-image img,
    .more-btn,
    .oem-card {
        transition: none;
    }
    
    .product-item:hover {
        transform: none;
    }
    
    .more-btn:hover {
        transform: none;
    }
    
    .oem-card:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .product-item {
        border: 2px solid #000;
    }
    
    .product-category {
        border: 2px solid #000;
    }
    
    .oem-card {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .banner-small {
        height: auto;
        min-height: 200px;
    }
    
    .product-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .more-btn {
        background: #000 !important;
        color: #fff !important;
        box-shadow: none;
    }
}