/* Styles for index.php (Category Page) */
.category-container {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.category-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem;
    margin-bottom: 3rem;
    margin-top: 7rem;
}

.category-header h1 {
    color: #e94724;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quality-statement {
    color: #333;
    line-height: 1.6;
    font-size: 1.2rem;
    margin-top: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 0;
    width: 100%;
    margin: 0;
    margin-bottom: 5rem;
}

.category-item {
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0),
        rgba(0, 184, 212, 0.7)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-overlay {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.category-overlay h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-item:hover .category-image::before {
    opacity: 1;
}

.category-item:hover .category-overlay {
    opacity: 1;
}

/* Styles for newprd.php (New Products Page) */
.new-products-container {
    padding: 5rem;
    margin-bottom: 5rem;
}

.new-products-header {
    margin-bottom: 5rem;
    text-align: center;
    margin-top: 7rem;
}

.new-products-header h1 {
    color: #e94724;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.new-products-header p {
    color: #333;
    line-height: 1.6;
    font-size: 1.2rem;
}

.products-list {
    max-width: 1400px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    margin-bottom: 10rem;
    align-items: stretch;
    width: 100%;
    background: white;
    height: 350px;
    gap: 3rem;
}

.product-left-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    flex-shrink: 0;
}

.product-left-column {
    width: 250px;
    flex-shrink: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    border: 1px solid #eee;
    padding: 0.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(19,30,41,.48);
    background-color: white;
}

.product-thumbnail img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.product-thumbnail h3 {
    font-size: 1rem;
    margin-top: 0.5rem;
    padding: 0 0.5rem;
    font-weight: 500;
    color: #333;
}

.product-info {
    width: 250px;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 4rem 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.product-banner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    height: 400px;
    margin-left: 1rem;
}

.product-banner img {
    width: 100%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    display: block;
}

.view-more {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid #0088cc;
    color: #333;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: normal;
    min-width: 120px;
    text-decoration: none;
}

.view-more:hover {
    background-color: #0088cc;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
    text-decoration: none;
}

/* Styles for products.php (Products List Page) */
.products-index-container {
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.products-index-content {
    max-width: 100%;
    margin: 0 auto;
}

.products-index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.products-index-header h1 {
    color: #e94724;
    font-size: 3rem;
    margin: 0;
}

.products-index-section {
    margin-bottom: 4rem;
    border-radius: 8px;
    background: #fff;
    padding: 3rem;
}

.products-index-section:last-child {
    margin-bottom: 2rem;
}

.products-index-section + .products-index-section {
    padding-top: 3rem;
}

.products-index-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2.5rem;
    text-transform: uppercase;
    font-weight: bold;
}

.products-index-title::before {
    content: '►';
    position: absolute;
    left: 0;
    color: #00b8d4;
    margin-right: 1rem;
}

.products-index-subtitle {
    color: #00b8d4;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.products-index-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 3px;
    background-color: #e94724;
}

.products-index-description {
    color: #333;
    margin: 2rem 0;
    line-height: 1.6;
    max-width: 100%;
    font-size: 1.2rem;
}

.products-index-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
}

/* Responsive grid layouts */
@media (max-width: 1200px) {
    .products-index-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .products-index-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .products-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .products-index-grid {
        display: grid;
        grid-template-columns: minmax(auto, 300px);
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem;
    }

    .products-index-card {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 300px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.products-index-card {
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 400px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-index-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.products-index-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.products-index-card:hover img {
    transform: scale(1.05);
}

.products-index-card h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    flex-grow: 1;
    font-weight: 500;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-field {
    padding: 0.8rem 1rem;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #e94724;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #c73d1e;
}

.products-index-header-group {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

/* Shared Modal Styles */
.prd-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prd-modal.show {
    display: flex;
}

.prd-modal .modal-content {
    position: relative;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 800px;
    max-width: 95%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 15% auto;
    border: 1px solid #888;
}

.prd-modal .modal-header {
    height: 60px;
    background: white;
    display: flex;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid #dee2e6;
}

.prd-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.prd-modal .modal-close {
    position: absolute;
    right: 10px;
    top: 55%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 11;
}

.prd-modal .modal-close:hover {
    color: #333;
}

.prd-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    margin: 0;
    background: white;
    max-height: calc(95vh - 130px);
}

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

.prd-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.prd-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.prd-modal .modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.prd-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.prd-modal .modal-footer {
    height: 60px;
    background: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    border-top: 1px solid #dee2e6;
    margin: 0;
    background: white;
}

.prd-modal .modal-title {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

/* Centering the Footer Button */
.close-btn {
    padding: 10px 20px;
    background: #e94724;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem; /* Adjusted font size for better visibility */
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #d63d1e;
}

/* Responsive Styles */

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

/* Product Modal Specific Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.product-modal-content {
    width: 90%;
    max-width: 1100px;
    margin: 2% auto;
    position: relative;
    background: white;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.product-modal-title {
    margin: 0;
    font-size: 1.75rem;
    color: #333;
}

.product-modal-close {
    font-size: 1.5rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1;
}

.product-modal-close:hover {
    color: #333;
}

.product-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    background: white;
    position: sticky;
    bottom: 0;
}

.product-modal-btn {
    padding: 0.5rem 1rem;
    background: #e94724;
    color: white;
    border: 1px solid #e94724;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-modal-btn:hover {
    background: white;
    color: #e94724;
    border: 1px solid #e94724;
}

.product-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: white;
}

.product-modal-row {
    display: flex;
    margin: 0 -15px;
    flex-wrap: wrap;
}

.product-modal-col {
    padding: 0 15px;
}

.product-modal-col-4 {
    width: 33.333%;
    position: relative;
    padding-right: 2rem;
}

.product-modal-col-8 {
    width: 66.667%;
}

.product-modal-image {
    max-width: 100%;
    height: auto;
    background: white;
}

.product-modal-thumbnails {
    margin-top: 15px;
}

.product-modal-thumbnails .row {
    margin: -5px;  /* Negative margin to offset padding */
}

.product-modal-thumbnails .col-4 {
    padding: 5px;  /* Even padding around thumbnails */
}

.product-modal-thumbnails .img-fluid.img-gal {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 5px;
    transition: border-color 0.3s ease;
}

.product-modal-thumbnails .img-fluid.img-gal:hover {
    border-color: #0088cc;
}

.product-modal-info {
    text-align: left;
    color: #333;
    height: 100%; /* Add this */
    overflow-y: auto; /* Add this */
}

.product-modal-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-modal-bottom {
    margin-top: 30px;
    width: 100%;
    font-size: 1.25rem;
}

/* Product Modal Image Styles */
.product-modal-col-4 {
    width: 33.333%;
    text-align: center;
}

.product-modal-image {
    width: 100%;
    max-width: 400px; /* Control maximum size */
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -3px;
    justify-content: flex-start;
}

.column {
    padding: 3px;
    width: 25%; /* Force 4 images per row */
    flex: 0 0 25%; /* Don't allow flex to adjust the width */
}

.img-fluid.img-gal {
    width: 100%;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.img-fluid.img-gal:hover {
    transform: scale(1.05);
}

hr {
    width: 90%;
    margin: 10px auto;
    border-top: 1px solid #ddd;
}

.zoomContainer {
    z-index: 1060;
}

.zoomWindow {
    background-color: #fff !important;
    margin-left: 10px !important;
    border: none !important;
    box-shadow: none !important;
}

.zoomLens {
    background-color: rgba(255,255,255,0.3) !important;
    cursor: crosshair;
    width: 163px !important;  /* Force square size */
    height: 163px !important; /* Force square size */
}

/* Update main image container */
.product-modal-col-4 {
    position: relative;
}

.img-view {
    cursor: crosshair;
}

/* Ensure zoom window has proper dimensions */
.zoomWindowContainer > div {
    width: 400px !important;  /* Fixed width for zoom window */
    height: 400px !important; /* Fixed height for zoom window */
    left: 105% !important;    /* Position zoom window to the right */
    border: 4px solid rgb(136, 136, 136) !important; /* Add the specified border */
}

.products-index-card {
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Update button styles */
.prd-modal .modal-body .shop,
.prd-modal .modal-body .share,
.product-modal-body .shop,
.product-modal-body .share {
    display: inline-block;
    margin: 1rem 0.5rem;
}

.prd-modal .modal-body .shop a,
.product-modal-body .shop a {
    display: block;
    color: #fff;
    border-radius: 3px;
    box-shadow: 1px 2px 5px #ccc;
    opacity: 0.9;
    transition: 0.35s;
    padding: 7px 15px;
    background: #213a8e;
    width: 140px;
    text-align: center;
    text-decoration: none;
}

.prd-modal .modal-body .shop a:hover,
.product-modal-body .shop a:hover {
    opacity: 1;
    text-decoration: none;
}

.prd-modal .modal-body .share,
.product-modal-body .share {
    position: relative;
}

.prd-modal .modal-body .share p,
.product-modal-body .share p {
    display: block;
    color: #fff;
    border-radius: 3px;
    box-shadow: 1px 2px 5px #ccc;
    opacity: 1;
    transition: all 0.35s ease;
    padding: 7px 15px;
    background: #119ad1;
    width: 140px;
    text-align: center;
    margin: 0;
    cursor: pointer;
    height: 35px;
    line-height: 20px;
    position: relative;
    z-index: 2;
}

.prd-modal .modal-body .share p:hover,
.product-modal-body .share p:hover {
    background: #EEEEED;
    color: #119ad1;
}

.prd-modal .modal-body .fa,
.product-modal-body .fa {
    margin-left: 5px;
}

/* Share button and container styles */
.share.m-3.left {
    position: relative;
    width: 140px;
    overflow: hidden;
}

.share.m-3.left p {
    display: block;
    color: #fff;
    border-radius: 3px;
    box-shadow: 1px 2px 5px #ccc;
    opacity: 1;
    transition: all 0.35s ease;
    padding: 7px 15px;
    background: #119ad1;
    width: 140px;
    text-align: center;
    margin: 0;
    cursor: pointer;
    height: 35px;
    line-height: 20px;
    position: relative;
    z-index: 2;
}

.share.m-3.left p:hover {
    background: #EEEEED;
    color: #119ad1;
}

.share.m-3.left .share-list {
    position: absolute;
    top: 0;
    left: 100%;
    width: 140px;
    height: 35px;
    background: #EEEEED;
    border-radius: 3px;
    box-shadow: 1px 2px 5px #ccc;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    transition: transform 0.35s ease;
    z-index: 1;
}

/* Hover effects */
.share.m-3.left:hover p {
    transform: translateX(-100%);
}

.share.m-3.left:hover .share-list {
    transform: translateX(-100%);
}

/* Share icons styling */
.share.m-3.left .share-list a {
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share.m-3.left .share-list a:hover {
    color: #119ad1;
}

.share.m-3.left .fa {
    margin-left: 5px;
}

/* Ensure icons are properly sized and spaced */
.share.m-3.left .share-list .fa {
    width: 20px;
    text-align: center;
    margin: 0;
}

/* Button container */
.product-modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Add or update these styles */
.relate-prd {
    margin-top: 2rem;
    padding-top: 1rem;
    clear: both; /* Add this */
    width: 100%; /* Add this */
}

.relate-prd h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.relate-prd .row {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

/* Update the column classes for related products */
.relate-prd .col-6 {
    flex: 0 0 180px;
    max-width: 180px;
    padding: 5px;
    margin: 5px;
}

.relate-prd img {
    width: 100%;
    max-width: 150px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;
    background: white;
}

.relate-prd img:hover {
    transform: translateY(-3px);
}

/* Thumbnail styles */
.row .column {
    padding: 5px;
}

.img-fluid.img-gal {
    padding: 3px;
    background: white;
    transition: all 0.3s ease;
}

.img-fluid.img-gal:hover,
.img-fluid.img-gal.active {
    border-color: #0088cc;
}

.product-modal-row {
    overflow: visible;
}

/* Add scrollbar styling */
.product-modal-body::-webkit-scrollbar {
    width: 8px;
}

.product-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.product-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.product-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Breakpoints for Category Grid */
@media (max-width: 1200px) {
    .category-header {
        padding: 4rem 2rem;
    }

    .category-header h1 {
        font-size: 2.5rem;
    }

    .quality-statement {
        font-size: 1.1rem;
    }
}

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

    .category-header {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
    }

    .category-header h1 {
        font-size: 2.2rem;
    }

    .category-overlay h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 100%;
    }

    .category-header {
        padding: 2.5rem 1rem;
        margin-top: 5rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .quality-statement {
        font-size: 1rem;
        margin-top: 2rem;
    }

    .category-item {
        aspect-ratio: 16/9;
    }

    .category-overlay h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .category-header {
        padding: 2rem 1rem;
        margin-top: 4rem;
    }

    .category-header h1 {
        font-size: 1.8rem;
    }

    .quality-statement {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    .category-item {
        aspect-ratio: 3/2;
    }

    .category-overlay {
        padding: 1rem;
    }

    .category-overlay h2 {
        font-size: 1.2rem;
    }
}

/* Add these responsive styles for new products page */
@media (max-width: 1200px) {
    .new-products-container {
        padding: 4rem 2rem;
    }

    .new-products-header h1 {
        font-size: 2.5rem;
    }

    .product-item {
        height: 300px;
        margin-bottom: 8rem;
    }

    .product-left-column {
        width: 200px;
        height: 350px;
    }

    .product-banner {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .new-products-container {
        padding: 3rem 1.5rem;
    }

    .new-products-header {
        margin-top: 6rem;
    }

    .new-products-header h1 {
        font-size: 2.2rem;
    }

    .product-item {
        height: 250px;
        gap: 2rem;
    }

    .product-left-column {
        width: 180px;
        height: 300px;
    }

    .product-banner {
        height: 300px;
    }

    .product-thumbnail h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .new-products-container {
        padding: 2rem 1rem;
    }

    .new-products-header {
        margin-top: 5rem;
        margin-bottom: 3rem;
    }

    .new-products-header h1 {
        font-size: 2rem;
    }
    .products-list {
        max-width: 100%;
    }

    .product-item {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        margin-bottom: 5rem;
    }

    .product-left-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-left-column {
        width: 200px;
        height: 280px;
    }

    .product-banner {
        height: 250px;
        margin-left: 0;
    }

    .product-info {
        margin: 1rem 0 2rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .view-more {
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .new-products-container {
        padding: 1.5rem 0.8rem;
    }

    .new-products-header {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .new-products-header h1 {
        font-size: 1.8rem;
    }

    .new-products-header p {
        font-size: 1rem;
    }

    .product-item {
        margin-bottom: 4rem;
    }

    .product-left-column {
        width: 180px;
        height: 250px;
    }

    .product-banner {
        height: 200px;
    }

    .product-thumbnail h3 {
        font-size: 0.85rem;
    }

    /* Modal adjustments for mobile */
    .prd-modal .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .prd-modal .modal-header {
        padding: 0.8rem;
    }

    .prd-modal .modal-body {
        padding: 1rem;
    }

    .prd-modal .modal-footer {
        padding: 0.8rem;
    }

    .product-info {
        margin: 0.8rem 0 1.5rem 0;
    }

    .view-more {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Responsive styles for products.php */
@media (max-width: 1200px) {
    .products-index-container {
        margin-top: 8rem;
    }

    .products-index-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }

    .products-index-card:nth-child(n+5){
        display: none;
    }

    .products-index-header h1 {
        font-size: 2.5rem;
    }

    .products-index-title {
        font-size: 1.6rem;
    }

    .products-index-description {
        font-size: 1.1rem;
    }
    .products-index-section:has(.products-index-card:nth-child(5)) .load-more-container {
        display: block;
    }
}

@media (max-width: 992px) {
    .products-index-container {
        margin-top: 7rem;
    }

    .products-index-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .products-index-header h1 {
        font-size: 2.2rem;
    }

    .products-index-title {
        font-size: 1.4rem;
        padding-left: 2rem;
    }

    .products-index-subtitle {
        font-size: 1.2rem;
    }

    .products-index-description {
        font-size: 1rem;
    }

    .products-index-card {
        height: 350px;
    }

    .products-index-card img {
        height: 250px;
    }

    .search-field {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .products-index-container {
        margin-top: 6rem;
    }

    .products-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .products-index-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .products-index-header h1 {
        font-size: 2rem;
    }

    .search-container {
        width: 100%;
        justify-content: flex-start;
    }

    .search-field {
        width: 100%;
        max-width: 300px;
    }

    .products-index-title {
        font-size: 1.3rem;
        padding-left: 1.8rem;
    }

    .products-index-subtitle {
        font-size: 1.1rem;
    }

    .products-index-description {
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    .products-index-card {
        height: 320px;
    }

    .products-index-card img {
        height: 220px;
    }

    .products-index-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-index-container {
        margin-top: 5rem;
    }

    .products-index-header h1 {
        font-size: 1.8rem;
    }

    .products-index-title {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }

    .products-index-title::before {
        font-size: 0.9rem;
    }

    .products-index-subtitle {
        font-size: 1rem;
    }

    .products-index-description {
        font-size: 1rem;
        margin: 1rem 0;
    }

    .products-index-card {
        height: auto;
        min-height: 300px;
        max-height: 380px;
    }

    .products-index-card img {
        height: 200px;
    }

    .products-index-card h3 {
        font-size: 1rem;
    }

    .search-field {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .search-button {
        font-size: 1.2rem;
    }

    /* Product modal adjustments for mobile */
    .product-modal-content {
        width: 95%;
        margin: 3% auto;
    }

    .product-modal-row {
        flex-direction: column;
    }

    .product-modal-col-4,
    .product-modal-col-8 {
        width: 100%;
        padding: 0;
    }

    .product-modal-col-4 {
        margin-bottom: 1.5rem;
    }

    .product-modal-thumbnails .row {
        justify-content: center;
    }

    .product-modal-thumbnails .column {
        width: 20%;
    }

    .product-modal-body {
        padding: 1rem;
    }
}

.product-modal-image.error,
.img-fluid.error {
    min-height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-modal-image.error::after,
.img-fluid.error::after {
    content: 'Image not available';
    color: #333;
    font-size: 14px;
    position: absolute;
}

/* Share button styling */
.share.ms-left {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    width: 130px;
    height: 38px;
    border-radius: 3px;
    margin: 0 10px;
    will-change: transform;
    transition: all .3s ease-in-out;
    background-color: #119ad1;
}

.share.ms-left p {
    margin: 0;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    transition: transform .3s ease-in-out;
}

.share.ms-left .share-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 100%;
    background-color: #EEEEED;
    transition: transform .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    transform: translateX(100%);
}

/* Icon styling */
.share.ms-left .share-list .fa {
    font-size: 15px;
    color: #666;
}

/* Hover effects */
.share.ms-left:hover {
    background-color: #00ACC1;
}

.share.ms-left:hover p {
    transform: translateX(-130px);
}

.share.ms-left:hover .share-list {
    transform: translateX(0);
}

.share.ms-left .share-list a:hover .fa {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Update icon styling for images */
.share.ms-left .share-list img {
    width: 15px;  /* Adjust size as needed */
    height: 15px;
    transition: transform 0.2s ease;
}

.share.ms-left .share-list a:hover img {
    transform: scale(1.2);
}

/* Share list social media colors */
.share-list a:nth-of-type(1) img {
    filter: brightness(0) saturate(100%) invert(23%) sepia(95%) saturate(1093%) hue-rotate(206deg) brightness(97%) contrast(87%);  /* Facebook blue */
}

.share-list a:nth-of-type(2) img {
    filter: brightness(0) saturate(100%) invert(57%) sepia(75%) saturate(1466%) hue-rotate(179deg) brightness(95%) contrast(89%);  /* Twitter blue */
}

/* Hover effects */
.share-list a:nth-of-type(1):hover img {
    filter: brightness(0) saturate(100%) invert(23%) sepia(95%) saturate(1093%) hue-rotate(206deg) brightness(85%) contrast(87%);  /* Darker Facebook blue */
}

.share-list a:nth-of-type(2):hover img {
    filter: brightness(0) saturate(100%) invert(57%) sepia(75%) saturate(1466%) hue-rotate(179deg) brightness(85%) contrast(89%);  /* Darker Twitter blue */
}
/* Link icon alignment and rotation */
.share-list .fa-link {
    display: inline-block;
    position: relative;
    top: 2px;  /* Fine-tune vertical alignment */
    font-size: 15px;  /* Match size with other icons */
}

/* Ensure consistent spacing */
.share-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Link icon styling */
.share-list .copylink {
    text-decoration: none;  /* Remove underline */
    color: #666;           /* Match other icon colors */
    transform: rotate(45deg);
    position: relative;
    bottom: 2px;;
}

.share-list .copylink:hover .fa-link {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Toast notification styling */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 100000;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Optional: Add animation for smoother appearance */
.toast-notification.show {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.products-index-section:nth-child(odd) {
    background-color: #f4f4f4;
    margin: 0;        /* Remove any margins */
    width: 100%;      /* Ensure full width */
}

/* If there's a container causing padding */
.products-container,
.container,
.main-content {
    padding-left: 0 !important;   /* Remove left padding */
    padding-right: 0 !important;  /* Remove right padding */
    width: 100%;                  /* Ensure full width */
    max-width: 100%;             /* Override any max-width */
}

/* Search icon styling */
.fas.fa-search {
    position: relative;
    display: inline-block;
}

.fas.fa-search:before {
    display: none; /* Hide the original Font Awesome icon */
}

.fas.fa-search .search-icon {
    width: 2rem;  /* Match the size from your screenshot */
    height: 2rem; /* Match the size from your screenshot */
    color: #e94724;  /* Add the specific color */
    filter: invert(42%) sepia(85%) saturate(2760%) hue-rotate(341deg) brightness(97%) contrast(95%); /* This converts the image to the right color */
}

.search-button:hover .search-icon {
    opacity: 1;
}

/* Icon styling for cart and share */
.fa-shopping-cart, .fa-share-alt {
    position: relative;
    display: inline-block;
    margin-left: 8px; /* Add space between text and icon */
    vertical-align: middle;
}

.fa-shopping-cart:before, .fa-share-alt:before {
    display: none; /* Hide original Font Awesome icons */
}

/* Shopping cart icon */
.fa-shopping-cart .cart-icon {
    width: 1.2rem;
    height: 1.2rem;
    filter: brightness(0) invert(1); /* Makes icon white */
    vertical-align: middle;
}

/* Share icon */
.fa-share-alt .share-icon {
    width: 1.2rem;
    height: 1.2rem;
    filter: brightness(0) invert(1); /* Makes icon white */
    vertical-align: middle;
}

/* Ensure parent elements use proper display */
.shop-now-btn, .share-btn {
    display: inline-flex;
    align-items: center;
}

/* Icon styling for cart and share */
.shop img.cart-icon,
.share.ms-left img.share-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: brightness(0) invert(1) !important; /* Force white color */
    margin-left: 8px; /* Space between text and icon */
    vertical-align: middle;
    background: transparent !important; /* Remove any background */
}

/* Ensure icons align properly with text */
.shop,
.share.ms-left {
    display: inline-flex !important; /* Force inline-flex */
    align-items: center !important; /* Force vertical center alignment */
    justify-content: center;
}

/* Ensure text and icon stay on same line */
.shop p,
.share.ms-left p {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* Shop container */
.shop a {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    background-color: #47639e;  /* Blue background */
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}

/* Icon styling */
.shop img.cart-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: brightness(0) invert(1) !important; /* Makes icon white */
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block !important;
    background: transparent !important;
}

/* Hover effect if needed */
.shop a:hover {
    background-color: #3b5998;  /* Darker blue on hover */
}

/* Share icon styling */
.share.ms-left img.share-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: brightness(0) invert(1) !important;
    margin-left: 8px;
    vertical-align: middle;
    background: transparent !important;
}

/* Share icon styling */
.copylink .url-copy-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: invert(47%) sepia(0%) saturate(0%) hue-rotate(251deg) brightness(91%) contrast(91%) !important; /* Makes icon #777 */
    vertical-align: middle;
    display: inline-block !important;
    background: transparent !important;
    position: relative;
    top: 2px;
}

/* Hover effect if needed */
.copylink:hover .url-copy-icon {
    opacity: 0.8;
}

/* Add these styles for the product video section */
.col-md-12.mt-5.text-left h5 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Responsive video wrapper */
.col-md-12.mt-5.text-left {
    position: relative;
    padding-bottom: 35%; /* Reduced from 56.25% to make container shorter */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 62%; /* Make container width smaller */
}

.col-md-12.mt-5.text-left iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Update responsive styles */
@media (max-width: 992px) {
    .col-md-12.mt-5.text-left {
        padding-bottom: 35%;
        width: 70%;
    }
}

@media (max-width: 768px) {
    .col-md-12.mt-5.text-left {
        padding-bottom: 40%;
        width: 80%;
    }
}

@media (max-width: 576px) {
    .col-md-12.mt-5.text-left {
        padding-bottom: 45%;
        width: 90%;
    }
}

/* Update video section container */
.product-video-section {
    margin: 3rem 0;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Style the video title */
.product-video-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-video-title h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

/* Responsive styles for the title */
@media (max-width: 768px) {
    .product-video-title {
        padding: 0 0.8rem;
    }
    
    .product-video-title h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .product-video-title {
        padding: 0 0.5rem;
    }
    
    .product-video-title h5 {
        font-size: 1rem;
    }
}

/* Update the best seller section styles */
.best-seller-section {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
}

.best-seller-title {
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.5rem;
}

.best-seller-grid.three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.best-seller-card {
    background: white;
    border: 1px solid #eee;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.best-seller-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.best-seller-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.best-seller-card:hover img {
    transform: scale(1.05);
}

.best-seller-card h3 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 992px) {
    .best-seller-grid.three-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .best-seller-card {
        height: 320px;
    }
    
    .best-seller-card img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .best-seller-grid.three-grid {
        grid-template-columns: 1fr;
    }
    
    .best-seller-section {
        padding: 1rem;
    }
    
    .best-seller-card {
        height: 300px;
    }
    
    .best-seller-card img {
        height: 200px;
    }
}
/* Best seller slider styles */
.best-seller-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.best-seller-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    transition: transform 0.3s ease;
    flex: 1;
}

.best-seller-card {
    transition: opacity 0.3s ease;
}

.best-seller-card.slide-hidden {
    display: none;
    opacity: 0;
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    background: rgba(233, 71, 36, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.slider-btn.show {
    display: flex;
}
.slider-btn:hover:not(:disabled) {
    background: rgba(233, 71, 36, 1);
}

.slider-btn:disabled {
    background: rgba(200, 200, 200, 0.8);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Move prev button to left side */
.slider-btn.prev-btn {
    order: -1;
}

/* Move next button to right side */
.slider-btn.next-btn {
    order: 1;
}

/* Responsive styles */
@media (max-width: 992px) {
    .best-seller-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 576px) {
    .best-seller-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* Add these styles for the products grid and load more button */

.products-index-card.hidden-product {
    display: none;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-container .load-more-btn {
    background-color: #fff;
    border: 2px solid #e94724;
    color: #e94724;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 0 10px; /* Add spacing between buttons */
}

.load-more-container .load-more-btn:hover {
    background-color: #e94724;
    color: #fff;
    box-shadow: 0 2px 8px rgba(233, 71, 36, 0.3);
}

.related-product-item {
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.related-product-item:hover {
    transform: translateY(-5px);
}
.related-product-item a {
    text-decoration: none;;
}
.related-product-item h6 {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.related-product-item img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.related-product-item:hover img {
    transform: scale(1.05);
}

/* Center alignment for grids with few items */
.products-index-grid,
.best-seller-grid {
    justify-content: center;
}

/* Ensure grid items don't stretch when centered */
.products-index-card,
.best-seller-card {
    width: 100%;
    max-width: 300px; /* Adjust this value based on your design */
}

/* For best seller section specifically */
.best-seller-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.best-seller-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px; /* Adjust based on your design */
}

/* Product detail container */
#prod-det {
    padding: 10rem 0 4rem;
    background: #fff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Product image column */
.col-md-4.text-center {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 1rem;
    margin-top: -3rem;  /* Add negative margin to move image up */
}

/* Main product image */
.img-fluid.img-view {
    width: 100%;
    height: auto;
    padding: 0.5rem;
}

/* Thumbnail grid */
.row .column {
    padding: 0.25rem;
    width: 25%;
    flex: 0 0 25%;
}

.img-fluid.img-gal {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.img-fluid.img-gal:hover {
    transform: scale(1.05);
    border-color: #0088cc;
}

/* Product info column */
.col-md-8.text-left {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 1rem;
}

/* Product title */
.col-md-8.text-left h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Product description */
.col-md-8.text-left p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Related products section */
.other-related-products {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.other-related-products h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-4.text-center,
    .col-md-8.text-left {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-8.text-left {
        padding-top: 0;
    }
}

@media (max-width: 1200px) {
    .new-products-container {
        padding: 4rem 2rem;
    }

    .new-products-header h1 {
        font-size: 2.5rem;
    }

    .products-list {
        max-width: 1100px;
    }

    .product-item {
        height: 300px;
        margin-bottom: 8rem;
    }

    .product-left-container {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .new-products-container {
        padding: 3rem 1.5rem;
    }

    .new-products-header {
        margin-top: 6rem;
    }

    .new-products-header h1 {
        font-size: 2.2rem;
    }

    .products-list {
        max-width: 900px;
    }

    .product-item {
        height: 300px;
        margin-bottom: 6rem;
    }

    .product-left-container {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .new-products-container {
        padding: 2rem 1rem;
    }

    .new-products-header {
        margin-top: 8rem;
    }

    .new-products-header h1 {
        font-size: 2rem;
    }

    .products-list {
        max-width: 100%;
    }

    .product-item {
        flex-direction: column;
        height: auto;
        margin-bottom: 5rem;
        align-items: center;
    }

    .product-left-container {
        width: 100%;
        max-width: 100%; /* Remove max-width limit to match banner */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-left-column {
        width: 100%;
        height: 400px;
        margin-bottom: 1rem;
    }

    .product-thumbnail {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
    }

    .product-thumbnail img {
        max-height: 300px;
        width: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    .product-info {
        width: 100%; /* Make view more button container full width */
        margin: 1rem 0; /* Adjust margins */
        display: flex;
        justify-content: center;
    }

    .product-banner {
        width: 100%;
        margin-left: 0;
        height: 350px;
    }
}

@media (max-width: 576px) {
    .new-products-container {
        padding: 1.5rem 0.8rem;
    }

    .new-products-header {
        margin-top: 8rem;
    }

    .new-products-header h1 {
        font-size: 1.8rem;
    }

    .product-item {
        margin-bottom: 4rem;
    }

    .product-left-container {
        max-width: 100%;
    }

    .product-left-column {
        height: 350px;
    }

    .product-thumbnail img {
        max-height: 280px;
    }
    .product-info {
        width: 100%;
        margin: 1rem 0;
        display: flex;
        justify-content: center;
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    #prod-det {
        padding: 8rem 2rem 4rem;
        background: #fff;
        margin-left: 0;
        margin-right: 0;
    }
    .product-modal-content {
        width: 95%;
        max-width: 800px;
    }

    .product-modal-col-4 {
        width: 45%;
    }

    .product-modal-col-8 {
        width: 55%;
    }
    .relate-prd .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0 -5px;
        justify-content: flex-start;
    }

    .relate-prd .col-6 {
        flex: 0 0 120px;
        max-width: 120px;
        padding: 5px;
        margin: 0;
    }

    .relate-prd img {
        width: 100%;
        object-fit: contain;
        padding: 5px;
        background: white;
    }

    .relate-prd h6 {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 992px) {
    .product-modal-content {
        width: 95%;
        max-width: 700px;
    }

    .product-modal-col-4 {
        width: 45%;
    }

    .product-modal-col-8 {
        width: 55%;
    }
    .relate-prd .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0 -5px;
        justify-content: flex-start;
    }

    .relate-prd .col-6 {
        flex: 0 0 120px;
        max-width: 120px;
        padding: 5px;
        margin: 0;
    }

    .relate-prd img {
        width: 100%;
        object-fit: contain;
        padding: 5px;
        background: white;
    }

    .relate-prd h6 {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 768px) {
    .product-modal-row {
        display: flex;
        flex-direction: column; /* Ensure column layout for better alignment */
        align-items: center; /* Center the contents horizontally */
    }
    .product-modal-content {
        width: 95%;
        max-width: 600px;
        margin: 0 auto; /* Center the modal horizontally */
        padding: 10px; /* Add some padding for spacing */
        margin-top: 1.5rem;
    }

    .product-modal-col-4 {
        width: 100%; /* Make the image column take full width */
        text-align: center; /* Center align the image */
        margin-bottom: 1.5rem;
    }

    .product-modal-col-8 {
        width: 100%; /* Make the text column take full width */
        margin-top: 10px; /* Add some spacing between the image and text */
    }

    .relate-prd .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0 -5px;
        justify-content: center; /* Center the related products */
    }

    .relate-prd .col-6 {
        flex: 0 0 120px;
        max-width: 120px;
        padding: 5px;
        margin: 0 auto; /* Center related product columns */
    }

    .relate-prd img {
        width: 100%;
        object-fit: contain;
        padding: 5px;
        background: white;
    }

    .relate-prd h6 {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        text-align: center; /* Center align text */
    }
}

@media (max-width: 576px) {
    .product-modal-row {
        display: flex;
        flex-direction: column; /* Ensure column layout for better alignment */
        align-items: center; /* Center the contents horizontally */
    }
    .product-modal-header {
        padding: 0.5rem;
        height: auto;
        min-height: 35px;
    }

    .product-modal-body {
        padding: 0.5rem;
        max-height: none;
        overflow: visible;
    }

    .product-modal-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
    }

    .product-modal-col-4 {
        width: 100%;
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .product-modal-col-8 {
        width: 100%;
        padding: 0;
    }

    .product-modal-image {
        max-height: 400px; /* Increased from 200px */
        width: 100%;
        object-fit: contain;
        margin-bottom: 0.75rem;
    }

    .product-modal-thumbnails .row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.5rem 0;
        justify-content: center;
    }

    .product-modal-thumbnails .column {
        width: 70px; /* Increased from 50px */
        height: 70px; /* Increased from 50px */
        padding: 0.25rem;
    }

    .product-modal-thumbnails img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-modal-info {
        font-size: 1rem;
        line-height: 1.4;
    }

    .product-modal-footer {
        padding: 0.5rem;
        height: auto;
        min-height: 35px;
    }

    /* Related products section */
    .relate-prd {
        margin-top: 2rem;
        padding-top: 0.5rem;
    }

    .relate-prd h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .relate-prd .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns */
        gap: 0.5rem;
        margin: 0;
        justify-content: center;
    }

    .relate-prd .col-6 {
        flex: none;
        max-width: none;
        width: 100%;
        padding: 0.25rem;
    }

    .relate-prd img {
        width: 100%;
        height: 200px; /* Slightly increased height for better visibility */
        object-fit: contain;
        padding: 0.25rem;
    }

    .relate-prd h6 {
        font-size: 0.8rem;
        margin: 0.25rem 0;
        line-height: 1.2;
        max-height: 2.4em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;
    }
}