.cardsp .product-item {
    background: #ffffff;
    border-radius: 24px; 
    padding: 18px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #ffeaf0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.03);
}

.cardsp .product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 117, 140, 0.12);
    border-color: #ffd6e0;
}

.cardsp .img-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1/1;
    background: #fff5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cardsp .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cardsp .product-item:hover .img-wrapper img {
    transform: scale(1.08);
}

.cardsp .badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 6px 12px;
    border-radius: 12px 0 12px 0;
    font-weight: 800;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 117, 140, 0.3);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color2) 100%);
}

.cardsp h3 {
        margin-bottom: 4px;
}

.cardsp h3 a {
    text-decoration: none;
    color: #171717;
    transition: color 0.3s;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 21px;
    font-weight: 600;
}

.cardsp h3 a:hover {
    color: var(--theme-color);
}

.cardsp .price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.cardsp .sale-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--theme-color);
}

.cardsp .old-price {
    font-size: 14px;
    color: #b2bec3;
    text-decoration: line-through;
    font-weight: 500;
}

.cardsp .timer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--theme-color5);
    padding: 8px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    gap: 8px;
    width: 100%;
}

.cardsp .timer-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--theme-color);
    text-transform: uppercase;
    white-space: nowrap;
}

.cardsp .timer-blocks {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cardsp .timer-unit {
    background: #ffffff; 
    color: var(--theme-color); 
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 3px 8px rgba(255, 117, 140, 0.15);
}

.cardsp .timer-sep {
    color: var(--theme-color2);
    font-weight: 800;
    margin: 0 1px;
}

.cardsp .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #515354;
}

.cardsp .progress {
    height: 6px; 
    background-color: #ffeaf0;
    border-radius: 50px; 
    overflow: hidden;
}

.cardsp .progress-bar {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color2) 100%);
    border-radius: 50px;
    transition: width 1s ease-in-out;
}

.cardsp .product-item:not(.is-flashsale) .timer-container,
.cardsp .product-item:not(.is-flashsale) .flashsale-progress {
    display: none;
}

@media (max-width: 1400px) {
    .cardsp .timer-container { 
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        padding: 8px;
        gap: 3px;
        margin-bottom: 4px;
    }
}

@media (max-width: 992px) {
    .cardsp .section-title { font-size: 29px; }
}

@media (max-width: 768px) {
    .cardsp .badge-sale{padding: 1px 10px;    font-size: 10px;}
    .cardsp .section-title { font-size: 24px; justify-content: center; } 
    .cardsp .product-item { padding: 12px; border-radius: 18px; }
    .cardsp .img-wrapper { border-radius: 12px; }
    .cardsp h3 a{ font-size: 14px; line-height: 24px;overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;}
    .cardsp .sale-price { font-size: 16px; }
    .cardsp .old-price { font-size: 13px; }
    .cardsp .timer-container { 
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        padding: 10px;
        border-radius: 16px;
        gap: 3px;
        margin-bottom: 4px;
    }
    .cardsp .timer-label { margin-bottom: 6px; font-size: 11px; }
    .cardsp .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
}