body {
    font-family: Arial, sans-serif;
}

/* ========== MODERN COMPATIBLE INHALERS STYLES ========== */

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.filter-box {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.filter-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(6, 163, 218, 0.15);
}

.filter-box label {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    display: block;
}

.filter-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.filter-box .form-select:focus {
    border-color: #06a3da;
    box-shadow: 0 0 0 0.25rem rgba(6, 163, 218, 0.15);
    background-color: white;
}

/* Product Cards */
.product-container-modern {
    margin: 0 !important;
}

.inhaler-card-wrapper {
    cursor: pointer;
    padding: 15px;
    margin-bottom: 20px;
}

.inhaler-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.inhaler-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(6, 163, 218, 0.2);
    border-color: #ffffff;
}

.inhaler-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.inhaler-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
    max-width: 200px;
    max-height: 200px;
}

.inhaler-card:hover .inhaler-image {
    transform: scale(1.05);
}

.inhaler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 163, 218, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.inhaler-card:hover .inhaler-overlay {
    opacity: 1;
}

.inhaler-info {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.inhaler-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inhaler-company {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
}

.view-details {
    display: inline-block;
    font-size: 13px;
    color: #06a3da;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #06a3da;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inhaler-card:hover .view-details {
    background: #06a3da;
    color: white;
    transform: scale(1.05);
}

/* Modern Zoom Modal */
.zoom-modal-modern {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zoom-images-modern {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    max-height: 70vh;
    border-radius: 10px;
    overflow: hidden;
}

.zoom-images-modern .modal-image {
    display: none;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
    background: white;
    padding: 20px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.controls-modern {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: white;
    color: #0d6efd;
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-section {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .filter-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .inhaler-image-wrapper {
        height: 200px;
    }
    
    .inhaler-name {
        font-size: 16px;
        min-height: 40px;
    }
    
    .inhaler-card-wrapper {
        padding: 10px;
    }
    
    .close-modal {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .zoom-images-modern .modal-image {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .filter-section {
        padding: 20px 10px;
    }
    
    .inhaler-image-wrapper {
        height: 180px;
    }
    
    .inhaler-info {
        padding: 15px;
        min-height: 100px;
    }
    
    .inhaler-name {
        font-size: 14px;
        min-height: 35px;
    }
    
    .view-details {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* ========== LEGACY STYLES ========== */

.product-features-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.product-features-image-container {
    position: relative;
   }

.product-features-image {
    width: 100%;
    height: auto;
}

.plus-icon {
    position: absolute;
    font-size: 24px;
    background-color: red;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-features-description {
    display: none; /* Initially hidden */
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 1; /* Ensure it appears above other elements */
    white-space: nowrap; /* Prevent line breaks */
    transform: translate(-50%, -100%); /* Position above the icon */
}

/* Additional styles for each description */
#feature1 { top: 15%; left: 30%; }
#feature2 { top: 45%; left: 60%; }
#feature3 { top: 65%; left: 20%; }
#feature4 { top: 35%; left: 80%; }
#feature5 { top: 5%; left: 50%; }
#feature6 { top: 55%; left: 40%; }
#feature7 { top: 35%; left: 30%; }
#feature8 { top: 75%; left: 70%; }
#feature9 { top: 85%; left: 20%; }
#feature10 { top: 30%; left: 70%; }


.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Horizontally center products */
    margin-top: 20px;
    max-width: 1200px; /* Optional: limit max width */
}

.EC-Inhalers-product {
    width: 200px;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensure content is arranged vertically */
    align-items: center; /* Center content horizontally */
    justify-content: space-between; /* Ensure space between image and text */
    height: 300px; /* Set a fixed height to prevent distortion */
}

.EC-Inhalers-product img {
    width: 100%;
    height: 180px; /* Set fixed height for the image */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    margin-top: 10px; /* Space between image and text */
}

.EC-Inhalers-product h3 {
    margin: 0; /* Remove margin from heading */
    font-size: 16px;
}

.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.zoom-images {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-images img {
    width: 100%;
    max-height: 50vh;
    display: none;
}

.controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: 80%;
}

.controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.zoom-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: red;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}