.custom-product-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    /* Legacy fallback for engines that do not support separate row/column gap descriptors */
    gap: 25px 2%;
    row-gap: 25px;
    column-gap: 2%;
    margin: 20px 0;
}

/* Product Card Layout */
.custom-product-card {
    width: 23.5%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    padding: 24px;
    text-align: left; /* Aligns content to the left like the sample */
    border-radius: 8px; /* Smooth rounded corners */
    background: #fff;
    -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Image Container */
.custom-product-card .product-image {
    margin: -24px -24px 20px -24px; /* Flushes image to top/sides of card */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    max-height: 250px;
}

.custom-product-card img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
}

/* Product Typography */
.custom-product-card .product-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    font-family: 'Roboto Condensed';
}

.custom-product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.custom-product-card .product-price {
    font-size: 16px;
    color: var( --e-global-color-primary );
    margin-bottom: 24px;
}

/* Action Button Structure */
.custom-product-card .product-action {
    -webkit-box-positive: 1;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    margin-top: auto; /* Pushes button to bottom if names are uneven lengths */
}

/* Button Normal State (Right Side Layout) */
.custom-product-card .button {
    display: inline-block;
    background-color: transparent;
    color: #4c1d95; /* Deep purple text color */
    border: 2px solid #4c1d95; /* Deep purple border */
    padding: 12px 24px;
    font-weight: 400;
    font-size: 16px;
    font-family: 'Roboto Condensed';
    text-transform: uppercase;
    border-radius: 10px;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* Button Hovered State (Left Side Layout) */
.custom-product-card .button:hover {
    background-color: #4c1d95; /* Solid purple fill */
    color: #ffffff; /* White text */
}

.custom-product-container .load-more-wrapper .custom-load-more-btn {
    font-weight: 400;
    font-size: 18px;
    margin-top: 15px;
}

.custom-product-container .load-more-wrapper .custom-load-more-btn:hover {
    color: var( --e-global-color-accent );
    background: #ffffff;
}

.oss-products-col .elementor-widget-image a {
    width: 100%;
}

.specs-card-container {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 20px 0;
  box-sizing: border-box;
}

.specs-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  box-sizing: border-box;
}

.specs-card-row:nth-child(even) {
  background-color: #e0e0e0;
}

.specs-card-label {
  min-width: 20%;
  color: #555555;
  font-size: 15px;
  font-weight: 400;
  padding-right: 15px;
  text-align: left;
}

.specs-card-value {
  color: #222222;
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  flex-grow: 1;
}


/* Responsive breaks for tablet and mobile devices */
@media (max-width: 1024px) {
    .custom-product-grid {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
}

@media (max-width: 1024px) and (min-width: 981px) {
    .custom-product-card {
        width: 48%;
    }
}

@media (max-width: 992px) {
    .custom-product-card {
        width: 48%;
    }
}

@media (max-width: 767px) {
    .custom-product-card .product-image {
        margin: -15px -15px 15px -15px;
        max-height: 150px;
    }
    
    .custom-product-card .button {
        padding: 10px 24px;
    }
    
    .custom-product-card {
        padding: 15px 15px 20px;
    }
    
    .custom-product-card .product-action a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    .oss-allprod-manual .oss-products-col {
        width: 47%;
    }
}

@media (max-width: 480px) {
    .custom-product-card {
        width: 100%;
    }
}
