/* Senheng Core Product Display Styles - WoodMart Integration */

.wd-product :where(.product-wrapper,.product-element-bottom){
    gap: 5px !important;
}

/* Product Card Container */
.senheng-product-card {
    position: relative;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* WoodMart compatibility */
.senheng-product-card .product-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image - WoodMart Integration */
.product-image-wrapper,
.senheng-product-card .product-element-top {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-link,
.senheng-product-card .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image,
.senheng-product-card .product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.senheng-product-card:hover .product-image,
.senheng-product-card:hover .product-image-link img {
    transform: scale(1.02);
}

/* S-Coin Badge */
.scoin-badge {
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

/* Swatches Overlay - positioned on top of product image */
.swatches-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
    order: 2;
    border-bottom: 1px solid #e0e0e0;
}

.product-element-top:hover .swatches-overlay,
.wd-product:hover .swatches-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Always visible swatches */
.swatches-overlay.always-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide swatches overlay when no color variations */
.swatches-overlay:empty {
    display: none;
}

/* Color Swatches - positioned as overlay */
.swatches-overlay .color-swatches,
.swatches-overlay .wd-swatches,
.swatches-overlay .wd-swatches-wrap,
.senheng-product-card .swatches-overlay .color-swatches {
    display: flex;
    gap: 8px;
    position: relative;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.color-swatch,
.senheng-product-card .color-swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none;
}

.color-swatch:hover,
.senheng-product-card .color-swatch:hover {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.color-swatch.active,
.senheng-product-card .color-swatch.active {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Product Info - WoodMart Integration */
.product-info,
.senheng-product-card .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    order: 3;
}

.wd-product-brands-links,
.senheng-product-card .wd-product-brands-links {
    font-size: 14px !important;
    cursor: pointer;
    margin-bottom: 2px !important;
    font-weight: 400 !important;
    text-transform: none;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
    display: block !important;
}

.wd-product-brands-links a,
.senheng-product-card .wd-product-brands-links a {
    color: #030303 !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: var(--wd-title-font) !important;
}

.wd-product-brands-links:hover,
.senheng-product-card .wd-product-brands-links:hover,
.wd-product-brands-links a:hover,
.senheng-product-card .wd-product-brands-links a:hover {
    text-decoration: underline !important;
    color: #030303 !important;
}

.product-title,
.senheng-product-card .product-title,
.senheng-product-card h3.wd-entities-title {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 1;
    color: #333;
}

.product-title a,
.senheng-product-card .product-title a,
.senheng-product-card h3.wd-entities-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* .product-title a:hover,
.senheng-product-card .product-title a:hover,
.senheng-product-card h3.wd-entities-title a:hover {
    color: #e74c3c;
} */

/* Price Display - WoodMart Integration */
.product-price,
.senheng-product-card .product-price {
    margin-bottom: 8px;
}

.product-price .woocommerce-Price-amount,
.senheng-product-card .product-price .woocommerce-Price-amount {
    font-weight: 600;
    font-family: var(--wd-title-font);
    font-size: 14px;
}

.product-price .price del,
.senheng-product-card .product-price .price del {
    color: #999;
    font-weight: 400;
    margin-right: 0;
    margin-top: 4px;
    font-size: 14px;
    text-decoration: line-through;
    display: block;
    order: 2;
}

.product-price .price ins,
.senheng-product-card .product-price .price ins {
    text-decoration: none;
    color: #ed1c24;
    display: block;
    order: 1;
}

.product-price .price,
.senheng-product-card .product-price .price {
    color: #ed1c24;
    font-size: 16px;
    display: flex !important;
    flex-direction: row;
    align-items: baseline;
    min-height: 0 !important;
}

/* Price with 'From' prefix */
.senheng-price-wrapper .price-from {
    font-size: 14px;
    font-weight: 600 !important;
    color: #ed1c24;
    margin-right: 4px;
    font-family: var(--wd-title-font);
}

.senheng-price-wrapper .price {
    font-weight: 600;
}

.senheng-price-wrapper .original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.senheng-price-wrapper .sale-price {
    color: #ed1c24;
    font-weight: 700;
}

/* Rating - positioned at bottom */
.product-rating,
.senheng-product-card .product-rating {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 4px 4px;
    width: max-content;
    order: 4;
    font-family: var(--wd-title-font);
}

.product-rating .star-rating,
.senheng-product-card .product-rating .star-rating {
    font-size: 16px;
    color: #000000;
}

.rating-count,
.product-rating .rating-count,
.senheng-product-card .product-rating .rating-count {
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

/* Grid Layout Adjustments */
.woocommerce ul.products li.product.senheng-product-card {
    width: 100%;
    margin: 0 0 20px;
    float: none;
}

/* Color Swatches Styling */
.senheng-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
    align-items: center;
}

.senheng-color-swatches .swatch-item {
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.senheng-color-swatches .swatch-item:hover {
    border-color: #333;
    transform: scale(1.1);
}

.senheng-color-swatches .swatch-item.selected {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

.senheng-color-swatches .color-swatch {
    display: block;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.senheng-color-swatches .swatch-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.senheng-color-swatches .text-swatch {
    display: block;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #333;
    min-width: 30px;
    text-align: center;
}

/* Custom Price Display */
.senheng-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.senheng-price-wrapper .price {
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.senheng-price-wrapper .original-price-row {
    display: block;
    margin-top: 2px;
}

.senheng-price-wrapper .original-price {
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
    margin-right: 8px;
}

.senheng-price-wrapper .sale-price {
    color: #ed1c24;
    font-weight: bold;
}


/* Product Image Wrapper */
.wd-product-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.wd-product-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.wd-product-image:hover {
    transform: scale(1.05);
}

/* Rating Display */
.star-rating {
    display: inline-block;
    position: relative;
    font-family: 'star';
    line-height: 1;
}

.star-rating::before {
    content: '\73\73\73\73\73';
    color: #030303 !important;
    float: left;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
    color: #030303 !important;
}

.rating-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.divider {
    height: 4px;
    background: #f6f5f8;
    box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.3);
    margin: 40px 0;
}



/* WoodMart Theme Integration - Updated for new layout */
.wd-product.senheng-product-card {
    background: #fff;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.wd-product.senheng-product-card .product-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* WoodMart Swatches Integration - Hide duplicate swatches in product info */
.product-info .wd-swatches,
.product-info .color-swatches:not(.swatches-overlay .color-swatches) {
    display: none !important;
}

/* Only show WoodMart swatches if no custom color variations */
.wd-product:not(.has-custom-variations) .product-info .wd-swatches {
    display: flex !important;
}

/* WoodMart native swatches in overlay */
.swatches-overlay .wd-swatches .wd-swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;  
}

.swatches-overlay .wd-swatches .wd-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.swatches-overlay .wd-swatches .wd-swatch.wd-active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

/* S-Coin Badge Styling */

.senheng-product-card .scoin-badge .scoin-number {
    font-size: 16px;
    font-weight: bold;
    font-family: var(--wd-text-font);
}

.senheng-product-card .scoin-badge .scoin-number[data-triple-digit="true"] {
    font-size: 12px;
}
.senheng-product-card .scoin-badge .scoin-number[data-decimal-two-digit="true"] {
    font-size: 15px;
}
.senheng-product-card .scoin-badge .scoin-number[data-decimal-three-digit="true"] {
    font-size: 12px;
}

.senheng-product-card .scoin-badge .scoin-percent {
    font-size: 7px;
    font-weight: bold;
    font-family: var(--wd-text-font);
}

.senheng-product-card .scoin-badge .scoin-number[data-triple-digit="true"] + .scoin-percent {
    font-size: 6px;
}
.senheng-product-card .scoin-badge .scoin-number[data-decimal-two-digit="true"] + .scoin-percent {
    font-size: 7px;
}
.senheng-product-card .scoin-badge .scoin-number[data-decimal-three-digit="true"] + .scoin-percent {
    font-size: 6px;
}

.senheng-product-card .scoin-badge .scoin-container {
    position: relative;
    display: inline-block;
}

.senheng-product-card .scoin-badge .scoin-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.senheng-product-card .scoin-badge .scoin-container .scoin-text {
    position: absolute;
    top: 23%;    
    right: 16%;
    color: #ed1c24;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: flex-start;
}

/* Product Loop S-Coin Badge - Center single-digit percentages */
.senheng-product-card .scoin-badge .scoin-container .scoin-text .scoin-number:only-child,
.senheng-product-card .scoin-badge .scoin-container .scoin-text .scoin-number[data-single-digit="true"] {
    position: relative;
}


/* Product Loop S-Coin Badge - Fallback for browsers that don't support :has() - Use JavaScript to add class */
.senheng-product-card .scoin-badge .scoin-container .scoin-text.product-loop-single-digit,
.wd-product .scoin-badge .scoin-container .scoin-text.product-loop-single-digit {
    right: 25% !important;
    justify-content: center !important;
}

.senheng-product-card .scoin-badge .scoin-container .scoin-text.product-loop-multi-digit,
.wd-product .scoin-badge .scoin-container .scoin-text.product-loop-multi-digit {
    right: 15% !important;
}

.senheng-product-card .scoin-badge .scoin-container .scoin-text.product-loop-triple-digit,
.wd-product .scoin-badge .scoin-container .scoin-text.product-loop-triple-digit {
    right: 13%;
    top: 29%;
}
.senheng-product-card .scoin-badge .scoin-container .scoin-text.product-loop-decimal-two-digit,
.wd-product .scoin-badge .scoin-container .scoin-text.product-loop-decimal-two-digit {
    right: 12% !important;
}
.senheng-product-card .scoin-badge .scoin-container .scoin-text.product-loop-decimal-three-digit,
.wd-product .scoin-badge .scoin-container .scoin-text.product-loop-decimal-three-digit {
    right: 11% !important;
    top: 29%;
}

.senheng-product-card .scoin-amount {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin: 2px 0;
}

.senheng-product-card .scoin-percentage {
    font-size: 7px;
    font-weight: 700;
    margin: 0;
}

.senheng-product-card .product-labels {
    top: 0 !important;
}

.senheng-product-card .product-labels .product-label{
    padding: 12px 2px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    min-width: 40px !important;
    font-family: var(--wd-title-font);
}

.senheng-product-card .product-labels .out-of-stock{
    display: none;
}

/* Ensure WoodMart compatibility - only for overlay swatches */
.swatches-overlay.senheng-color-swatches {
    position: absolute;
    background: transparent;
    padding: 0;
    border: none;
    backdrop-filter: none;
    bottom: 0;
}

/* Hide any duplicate swatches in product info area */
.product-info .senheng-color-swatches {
    display: none !important;
}

/* Additional hover state for JavaScript interaction */
.swatches-overlay.hover-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Ensure proper z-index for overlay swatches */
.swatches-overlay {
    z-index: 15;
}

/* Prevent duplicate WoodMart swatches from showing */
.has-custom-variations .wd-swatches {
    display: none !important;
}

/* Fix for WoodMart theme conflicts */
.wd-product.has-custom-variations .product-info .wd-swatches-wrap {
    display: none !important;
}

/* Product Loop Specific Styles */
.woocommerce ul.products li.product .senheng-price-wrapper {
    margin-top: 10px;
}

.woocommerce ul.products li.product .star-rating {
    margin-bottom: 5px;
}

/* Animation for swatch selection */
@keyframes swatchSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.senheng-color-swatches .swatch-item.selecting {
    animation: swatchSelect 0.3s ease;
}



/* Hide wd-buttons sidebar entirely */
.wd-buttons,
.wrapp-buttons {
    display: none !important;
}

/* Image Loading States and Error Handling */
.product-image-link img.loading {
    opacity: 0.6;
    filter: blur(1px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.product-image-link img.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.product-image-link img.image-error {
    opacity: 0.3;
    filter: grayscale(100%);
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSIjZjhmOWZhIi8+CjxwYXRoIGQ9Ik0yMCAxMEMxNS41ODIyIDEwIDEyIDEzLjU4MjIgMTIgMThDMTIgMjIuNDE3OCAxNS41ODIyIDI2IDIwIDI2QzI0LjQxNzggMjYgMjggMjIuNDE3OCAyOCAxOEMyOCAxMy41ODIyIDI0LjQxNzggMTAgMjAgMTBaIiBmaWxsPSIjZGRkIi8+CjxwYXRoIGQ9Ik0yMCAxMkMxNi42ODYzIDEyIDE0IDE0LjY4NjMgMTQgMThDMTQgMjEuMzEzNyAxNi42ODYzIDI0IDIwIDI0QzIzLjMxMzcgMjQgMjYgMjEuMzEzNyAyNiAxOEMyNiAxNC42ODYzIDIzLjMxMzcgMTIgMjAgMTJaIiBmaWxsPSIjYWFhIi8+CjxwYXRoIGQ9Ik0yMCAxNEMxNy43OTEgMTQgMTYgMTUuNzkxIDE2IDE4QzE2IDIwLjIwOSAxNy43OTEgMjIgMjAgMjJDMjIuMjA5IDIyIDI0IDIwLjIwOSAyNCAxOEMyNCAxNS43OTEgMjIuMjA5IDE0IDIwIDE0WiIgZmlsbD0iIzk5OSIvPgo8L3N2Zz4K');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallback image styling */
.product-image-link img[src*="data:image/svg+xml"] {
    background-color: #f8f9fa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading spinner overlay */
.product-image-wrapper {
    position: relative;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.product-image-wrapper.loading::before {
    opacity: 1;
}

/* Error state styling */
.product-image-wrapper.error {
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSIjZjhmOWZhIi8+CjxwYXRoIGQ9Ik0yMCAxMEMxNS41ODIyIDEwIDEyIDEzLjU4MjIgMTIgMThDMTIgMjIuNDE3OCAxNS41ODIyIDI2IDIwIDI2QzI0LjQxNzggMjYgMjggMjIuNDE3OCAyOCAxOEMyOCAxMy41ODIyIDI0LjQxNzggMTAgMjAgMTBaIiBmaWxsPSIjZGRkIi8+CjxwYXRoIGQ9Ik0yMCAxMkMxNi42ODYzIDEyIDE0IDE0LjY4NjMgMTQgMThDMTQgMjEuMzEzNyAxNi42ODYzIDI0IDIwIDI0QzIzLjMxMzcgMjQgMjYgMjEuMzEzNyAyNiAxOEMyNiAxNC42ODYzIDIzLjMxMzcgMTIgMjAgMTJaIiBmaWxsPSIjYWFhIi8+CjxwYXRoIGQ9Ik0yMCAxNEMxNy43OTEgMTQgMTYgMTUuNzkxIDE2IDE4QzE2IDIwLjIwOSAxNy43OTEgMjIgMjAgMjJDMjIuMjA5IDIyIDI0IDIwLjIwOSAyNCAxOEMyNCAxNS43OTEgMjIuMjA5IDE0IDIwIDE0WiIgZmlsbD0iIzk5OSIvPgo8L3N2Zz4K');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

/* Smooth transitions for image changes */
.product-image-link img {
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Prevent layout shift during image loading */
.product-image-wrapper {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet and Mobile - 768px and below */
@media (max-width: 768px) {
    /* Product Card Layout */
    .senheng-product-card {
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    .product-info {
        padding: 5px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    /* Color Swatches */
    .color-swatches {
        padding: 10px 14px;
        gap: 6px;
    }
    
    .color-swatch {
        width: 20px;
        height: 20px;
    }
    
    .senheng-color-swatches {
        gap: 6px;
        margin: 3px 0;
    }
    
    .senheng-color-swatches .color-swatch,
    .senheng-color-swatches .swatch-item img {
        width: 25px;
        height: 25px;
    }
    
    /* Always-visible swatches */
    .swatches-overlay.always-visible .color-swatches {
        padding: 6px 8px;
        gap: 4px;
    }
    
    .swatches-overlay.always-visible .color-swatch,
    .swatches-overlay.always-visible .swatch-item {
        width: 20px;
        height: 20px;
    }
    
    /* Product Rating */
    .product-rating {
        padding: 10px 14px;
    }
    
    .product-rating, .senheng-product-card .product-rating{
        padding: 4px 6px;
    }

    .senheng-product-card .scoin-badge .scoin-number[data-triple-digit="true"]{
        font-size:10px;
    }

    .rating-count, .product-rating .rating-count, .senheng-product-card .product-rating .rating-count{
        font-size: 10px;
    }

    .product-rating .star-rating,
    .senheng-product-card .product-rating .star-rating {
        font-size: 12px;
    }
    
    /* Badges */
    .sale-badge,
    .scoin-badge {
        top: 0;
        right: 0;
    }
    
    .sale-badge {
        left: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .scoin-badge .scoin-icon {
        width: 14px;
        height: 14px;
    }
    
    /* Typography */
    .wd-product-brands-links, .senheng-product-card .wd-product-brands-links{
        font-size: 11px !important;
    }

    .product-price .woocommerce-Price-amount,
    .senheng-product-card .product-price .woocommerce-Price-amount {    
        font-size: 11px;
    }

    .senheng-price-wrapper .price-from {
        font-size: 11px;
    }
    
    .senheng-product-card h3.wd-entities-title {
        font-size: 11px;
    }
    
    .senheng-price-wrapper .price {
        font-size: 14px;
    }

    .product-price .price del, .senheng-product-card .product-price .price del{
        font-size: 11px;
        margin-top: 0;
    }
    
    /* Image Loading States */
    .product-image-wrapper::before {
        width: 25px;
        height: 25px;
        margin: -12.5px 0 0 -12.5px;
        border-width: 2px;
    }
    
    .product-image-wrapper.error {
        background-size: 30px 30px;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .swatches-overlay.always-visible .color-swatches {
        padding: 0;
    }
    
    .swatches-overlay.always-visible .color-swatch,
    .swatches-overlay.always-visible .swatch-item {
        width: 14px;
        height: 14px;
    }

    .senheng-product-card h3.wd-entities-title{
        min-height: 25px;
    }

    .senheng-product-card .scoin-badge .scoin-number{
        font-size: 14px;
    }

    .senheng-product-card .scoin-badge .scoin-icon{
        width: 35px;
        height: 35px;
    }

    .senheng-product-card .product-labels .product-label{
        padding: 10px 0;
        font-size: 10px;
        min-width: 35px !important;
    }

    .product-price .price ins, .senheng-product-card .product-price .price ins{
        margin-top: -20px;
    }

}
