.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    align-items: stretch;

}

.product-category-title {
    padding-top: 80px;
    margin-top: 0;
}

.product-images-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.main-product-image img {
    /* width: 100%;
    border-radius: 8px; */
    display: none;
}

.product-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.product-gallery .gallery-item {
    flex: 0 0 auto;
}

.product-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    /* transition: transform 0.3s ease; */
    transition: all 0.3s;

}

.product-gallery img:hover {
    transform: scale(1.09);
}

.product-card {
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.product-thumb {
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden; 
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-title {
    font-size: 1.2rem;
    color: #222;
    margin: 10px 0;
    font-weight: 600;
}

.product-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow:1;
}

.product-read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2f358d;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    border: 2px solid #2f358d;
    margin-top:auto;
}

.product-read-more:hover {
    background-color: #4986c6;
    border: 2px solid #4986c6;

    color: black;
}

@media screen and (max-width:1024px) {
    .product-thumb img {
        align-items: center;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* CATEGORY GRID  */
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
}

.category-card:hover {
    transform: translateY(-5px);
}

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

.category-thumb {
    flex-grow: 1;
    overflow: hidden;
    height:200px;
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-thumb-placeholder {
    width: 100%;
    height: 200px;
    background: #f1f1f1;
}

.category-title {
    font-size: 18px;
    padding: 15px;
    background: #f8f8f8;
    text-align: center;
    flex-shrink: 0;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
    .category-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-card-grid {
        grid-template-columns: 1fr;
    }
}

/* 
Product details */

.single-product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.product-images-column {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

.main-product-image {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.main-product-image img {
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;

}

@media (max-width:768px){
    
    .main-product-image {
        width:100%;
        height:25% !important;
    }
}
.magnifier-lens {
    position: absolute;
    border: 3px solid #3498db;
    border-radius: 50%;
    cursor: none;
    width: 150px;
    height: 150px;
    display: none;
    background-repeat: no-repeat;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.product-gallery {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-gallery .gallery-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.product-gallery .gallery-item img:hover,
.product-gallery .gallery-item img.active {
    border-color: #3498db;
    transform: scale(1.05);
}

.product-details-column {
    flex: 1.5;
    min-width: 300px;
}

.single-product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a3476;
    line-height: 1.2;
}

.product-price-section {
    margin-bottom: 30px;
}

.price-tag {
    font-size: 2rem;
    font-weight: bold;
    color: #2f358d;
}

.product-accordion {
    border: 1px solid #e9eef5;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e9eef5;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    background-color: #ffffff;
    color: #1a3476;
    cursor: pointer;
    padding: 20px 50px 20px 25px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: background-color 0.3s ease;
}

.accordion-trigger:hover {
    background-color: #f7f9fc;
}

/* Fix for the focus issue */
.accordion-trigger:focus {
    background-color: #f7f9fc;
    box-shadow: none;
}

.accordion-trigger.active {
    background-color: #f7f9fc;
}

.accordion-trigger::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: #1a3476;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-trigger.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #ffffff;
}


.panel-content {
    padding: 25px;
    line-height: 1.7;
    color: #333;
    border-top: 1px solid #e9eef5;
}



.applications-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.applications-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
}

.applications-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    width: 8px;
    height: 8px;
    background-color: #2f358d; /* Your theme color */
    border-radius: 50%;
}

.key-features-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.key-features-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
}

.key-features-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    width: 8px;
    height: 8px;
    background-color: #2f358d; /* Your theme color */
    border-radius: 50%;
}


.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.specs-table th, .specs-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e9eef5;
}

.specs-table th {
    font-weight: 600;
    color: #34495e;
    width: 40%;
    background-color: #f8f9fa;
}

.specs-table tr:hover {
    background-color: #f7f9fc;
}

.accessory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.accessory-table th, .accessory-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e9eef5;
}

.accessory-table th {
    font-weight: 600;
    color: #34495e;
    width: 40%;
    background-color: #f8f9fa;
}

.accessory-table tr:hover {
    background-color: #f7f9fc;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.download-pdf-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3498db;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-pdf-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

@media (max-width: 992px) {
    .product-images-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-product-container {
        flex-direction: column;
        padding: 0;
    }
    .single-product-title {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 20px;
    }
    .price-tag {
        text-align: center;
        display: block;
    }
}
