.shopio-title {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f1111; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; 
    width: 100%;
}
.shopio-label {
    font-size: 13px;
    color: #0f1111;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limits to exactly 1 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 1.4em; /* Ensures the height is consistent even if empty */
}
.shopio-card {
    background: #fff;
    padding: 20px;
    height: 100%; /* Makes all cards in a row equal height */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.shopio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-grow: 1; /* Pushes the 'See More' to the bottom consistently */
}
.shopio-img-wrapper {
    background: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Ensure WooCommerce thumbnails fit the square container */
.shopio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps product aspect ratio clean */
}
.shopio-footer {
    margin-top: 15px;
    font-size: 13px;
    color: #007185;
    text-decoration: none;
}

.shopio-footer:hover {
    color: #c7511f;
    text-decoration: underline;
}
.shopio-slider-container {
    background: #fff;
    padding: 20px;
    position: relative;
}

.shopio-slider-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f1111;
}

.shopio-product-swiper {
    padding: 10px 0;
}

.shopio-slider-item img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Hide navigation by default */
.shopio-nav {
    background: rgba(255, 255, 255, 0.9);
    width: 45px !important;
    height: 100px !important;
    top: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #000 !important;
}

.shopio-nav::after {
    font-size: 18px !important;
    font-weight: bold;
}

.shopio-slider-container:hover .shopio-nav {
    opacity: 1;
}

.shopio-nav:hover {
    background: #fff;
}
/* assets/css/shopio-style.css */
.shopio-product-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow: hidden;
}

.shopio-product-swiper:not(.swiper-initialized) .swiper-slide {
    min-width: 16.66%; /* Based on 6 slides on desktop */
}
.shopio-purchase-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shopio-purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.shopio-purchase-img {
    display: block;
    margin-bottom: 10px;
    aspect-ratio: 1/1;
}

.shopio-purchase-img img {
	max-height: 200px;
	max-width: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.shopio-purchase-name {
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0;
    height: 2.8em; /* 2 lines max */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #0f1111;
}

.shopio-purchase-price {
    font-weight: 700;
    font-size: 16px;
    color: #B12704; /* Amazon-style red for price */
    margin-bottom: 10px;
}

/* WooCommerce Add to Cart Button Styling */
.shopio-purchase-action .button {
    width: 100%;
    background: #ffd814 !important;
    border-color: #fcd200 !important;
    color: #0f1111 !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    padding: 10px 12px !important;
    text-align: center;
}

.shopio-purchase-action .button:hover {
    background: #f7ca00 !important;
}

/* Ensure price and cart button are always at the bottom */
.shopio-purchase-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.shopio-big-grid-card {
    background: #fff;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shopio-grid-title {
    font-size: 21px !important;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f1111;
}

/* Big Image Container */
.shopio-big-img-wrap {
    height: 280px; /* Adjusted for better scale */
    width: 100%;
    background: #f7f7f7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopio-big-img-wrap img {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Small Grid Row */
.shopio-small-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    flex-grow: 1;
}

.shopio-small-img-wrap {
    aspect-ratio: 1/1;
    background: #f7f7f7;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopio-small-img-wrap img {
    max-height: 90%;
    width: auto;
    object-fit: contain;
}
.shopio-item-label {
    font-size: 12px;
    color: #0f1111;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.shopio-grid-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #007185;
    text-decoration: none;
}

.shopio-nav::after {
    display: none !important; 
}
.shopio-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    width: 45px !important;
    height: 80px !important;
    top: 50% !important;
    transform: translateY(-50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #ddd !important;
    cursor: pointer;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
}
.swiper-button-prev.shopio-nav {
    left: 0 !important;
    border-radius: 0 3px 3px 0 !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23000000'/%3E%3C/svg%3E") !important;
}
.swiper-button-next.shopio-nav {
    right: 0 !important;
    border-radius: 3px 0 0 3px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23000000'/%3E%3C/svg%3E") !important;
}
.shopio-nav:hover {
    background-color: #fff !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}