.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.product-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-images {
    flex: 1;
    max-width: 350px;
    position: relative;
}

.main-image {
    position: relative;
}

.main-image img {
    width: 300px; /* Set a smaller fixed width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    border: 2px solid #ddd;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #ff7c7c;
    width: 100px;
    height: 100px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: none;
}

.zoom-result {
    position: absolute;
    top: 0;
    left: 105%;
    width: 200px;
    height: 200px;
    border: 2px solid #ddd;
    overflow: hidden;
    background-color: #fff;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.zoom-result img {
    width: 600px; /* Reduce zoomed image size */
}

.thumbnail-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnail-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail-row img:hover {
    transform: scale(1.1);
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Section Styling */
.category-products-section {
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}
.card-info {
    min-height: 320px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Card Styling */
.product-card {
    margin: 5px !important;  /* Smaller margin between cards */
    padding: 10px !important; 
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
}
.category-products-section .row {
    margin: 0 !important;
    padding: 0 !important;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.card-body-info {
    padding: 10px;  /* Reduce padding inside the card */
}

.category-products-section .card {
    margin-bottom: 10px; /* Smaller margin between cards */
}
/* Image Container */
.card-img-container {
    height: 160px;  /* Slightly smaller image height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.card-img-container:hover img {
    transform: scale(1.1);
}

/* Button Styling */
.btn-primary {
    background: #ff6347; /* Tomato color */
    border: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #ff4500; /* Darker shade on hover */
}
.card-body-info .btn {
    white-space: nowrap;  /* Prevent wrapping */
    font-size: 12px;       /* Smaller button text for compact look */
    padding: 6px 10px;     /* Smaller padding */
}
@media (max-width: 768px) {
    .product-section {
        flex-direction: column;
    }

    .zoom-result {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: auto;
        border: none;
    }

    .zoom-result img {
        width: 800px;
    }
    .card-img-container {
        height: 140px; 
    }
}
@media (max-width: 767.98px) {
    .custom-mobile-col {
        margin-bottom: 20px !important;
    }
}
@media (max-width: 575.98px) {
    .custom-grid .product-card {
        width: 100%;
    }

    .custom-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
        gap: 0.75rem;
    }

    .custom-grid .card-img-top {
        height: 120px !important;
    }

    .custom-grid .card-title,
    .custom-grid .card-subtitle,
    .custom-grid .card-text {
        font-size: 11px !important;
    }

    .custom-grid .form-select {
        font-size: 12px;
        padding: 4px;
    }

    .custom-grid .btn {
        font-size: 11px !important;
        padding: 4px 6px;
    }

    .custom-grid .btn-info,
    .custom-grid .btn-danger {
        padding: 5px 8px;
    }

    .custom-grid .d-flex.gap-2 {
        flex-direction: column;
        gap: 6px;
    }
}