.product-list {
    background-color: #ffffff;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    vertical-align: top;
}

.related-products-list {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.related-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-align: center !important;
    margin-bottom: 30px;
}

.category-list {
    background-color: #ffffff;
    padding-top: 19px;
    padding-right: 14px;
    margin-bottom: 40px;
}

.card-deck {
    display: inline-block;
    vertical-align: top;
}

@media all and (max-width: 767px) {
 .card-deck {
	 padding-left: 0px !important;
	}
 .category-list {
	 padding-right: 0px;
	}
 .product-card {
	 width: 100%;
	 max-width: 300px;
	}
}

.card-deck ul {
    padding: 20px;
    margin: 12px;
    margin-bottom: 50px;
    font-size: 14px;
    text-align: justify;
}

.card-deck li {
    list-style: none;
}
 
.post_body li {
    list-style: disc;
}

.card {
    background-color: #ffffff;
    width: 335px;
    padding: 1rem 1.25rem;
    border-width: 1px;
    margin-bottom: 5.25rem ;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
    position: relative;
    overflow: hidden;
    transition: box-shadow .4s linear;
}

/* New Product Card Styles */
.product-card {
    width: 280px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 15%), 0 8px 10px -6px rgb(0 0 0 / 10%);
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 5;
}

.product-image-container {
    width: 100%;
    height: 200px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.product-image-container img {
    display: none; /* Hide the img tag, we'll use background-image instead */
}

.product-image-container a {
    cursor: pointer;
    text-decoration: none;
}

.category-card .product-image-container a {
    cursor: pointer;
    text-decoration: none;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #1f2937;
    text-decoration: none;
}

.product-title a:hover {
    color: #2e3282;
}

.product-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    height: 36px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-pricing {
    margin-bottom: 5px;
    min-height: 10px;
}

.regular-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14px;
    margin-right: 5px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.product-short-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    height: 75px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.product-short-description p {
    margin: 0;
}

.product-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
    height: 20px;
}

.delivery-icon {
    flex-shrink: 0;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-show-product {
    flex: 1;
    background-color: #65adde;
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
}

.btn-show-product:hover {
    background-color: #4a9ac9;
}

.btn-phone {
    background-color: #2e3282;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    flex-shrink: 0;
}

.btn-phone:hover {
    background-color: #1f2358;
}

.category-list .card {
    margin-bottom: unset;
}

/* Category Card Styles */
.category-card {
    width: 320px;
    min-height: 450px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.category-card .product-image-container {
    min-height: 280px;
    height: 300px;
    flex: 1;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-bottom: 1px solid #e5e7eb;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.category-card .category_image {
    display: none; /* Hide the img tag, we'll use background-image instead */
}

.category-card .product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    flex-shrink: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-title a {
    color: #1f2937;
    text-decoration: none;
}

.category-title a:hover {
    color: #2e3282;
}

.view_product {
    background-color: #2e3282;
    padding: 10px;
    margin-top: 20px !important;
    color: #ffffff !important;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    border-color: #2e3282;
    text-transform: uppercase;
    width: 320px;
    font-weight: 600;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 14px;
}

.column-large {
    width: 86%;
    float: left;
    height: 300px;
}

.column-large img {
    height: 240px !important;
}

.column-small {
    width: 14%;
    float: left;
    font-size: 10px;
    line-height: 16px;
}

.list-head {
    text-align: center !important;
}

.list-head h2 {
    text-align: center !important;
    height: 115px; 
} 

.list-head:after {
    content: "";
    display: table;
    clear: both;
  }

  .view_controls {
    padding-bottom: 25px;
}

.name_box.post_body {
    height: 85px;
}

.product_image {
    height: 285px !important;
    max-width: 100%;
}

/* OMS Image Gallery Styles */
.oms-image-gallery {
    max-width: 800px;
    margin: 0 auto;
}

.oms-gallery-main {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oms-main-image {
    display: none;
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.oms-main-image.active {
    display: block;
}

.oms-nav-prev, .oms-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(101 173 222);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s 
ease;
    z-index: 10;
}

.oms-nav-prev:hover,
.oms-nav-next:hover {
    background-color: rgba(46, 50, 130, 1);
}

.oms-nav-prev {
    left: 15px;
}

.oms-nav-next {
    right: 15px;
}

.oms-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.oms-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    background-color: #f9fafb;
}

.oms-thumbnail:hover {
    opacity: 1;
    border-color: #9ca3af;
}

.oms-thumbnail.active {
    border-color: #65adde;
    opacity: 1;
    border-width: 3px;
}

@media all and (max-width: 767px) {
    .oms-gallery-main {
        min-height: 300px;
    }
    
    .oms-nav-prev,
    .oms-nav-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .oms-nav-prev {
        left: 10px;
    }
    
    .oms-nav-next {
        right: 10px;
    }
    
    .oms-thumbnail {
        width: 70px;
        height: 70px;
    }
}

/* OMS Product Buttons Styles */
.oms-product-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.oms-btn {
    background-color: #2e3282;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.oms-btn:hover {
    background-color: #1f2358;
    color: #ffffff;
}

.oms-btn-request {
    background-color: #2e3282;
}

.oms-btn-request:hover {
    background-color: #1f2358;
}

@media all and (max-width: 767px) {
    .oms-product-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .oms-btn {
        width: 100%;
        text-align: center;
    }
}

/* OMS Product Tabs Styles */
.oms-product-tabs {
    margin: 20px 0;
}

.oms-tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.oms-tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.oms-tab-button:hover {
    color: #2e3282;
    background-color: #f9fafb;
}

.oms-tab-button.active {
    color: #2e3282;
    border-bottom-color: #2e3282;
}

.oms-tab-content {
    min-height: 200px;
}

.oms-tab-pane {
    display: none;
    padding: 20px 0;
    line-height: 1.6;
}

.oms-tab-pane.active {
    display: block;
}

.oms-tab-pane h1,
.oms-tab-pane h2,
.oms-tab-pane h3,
.oms-tab-pane h4,
.oms-tab-pane h5,
.oms-tab-pane h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1f2937;
}

.oms-tab-pane p {
    margin-bottom: 15px;
}

.oms-tab-pane ul,
.oms-tab-pane ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.oms-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.oms-attributes-table th,
.oms-attributes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.oms-attributes-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
    width: 30%;
}

.oms-attributes-table td {
    color: #4b5563;
}

.oms-attributes-table tr:last-child th,
.oms-attributes-table tr:last-child td {
    border-bottom: none;
}

@media all and (max-width: 767px) {
    .oms-tab-nav {
        flex-direction: column;
    }
    
    .oms-tab-button {
        text-align: center;
        border-bottom: 1px solid #e5e7eb;
        border-right: none;
    }
    
    .oms-tab-button.active {
        border-bottom-color: #2e3282;
        background-color: #f9fafb;
    }
    
    .oms-attributes-table th {
        width: 40%;
    }
}
