/*============================================================================================
   Start Card CSS
==============================================================================================*/
.product.style-1 {
    position: relative;
    font-family: var(--font-family);
    font-size: 1rem;
    color: #020101;
    transition: box-shadow 0.3s, opacity 0.3s;
    border: 1px solid #cccccc82;
    border-radius: 4px;
}
.product.style-1:hover .product-action,
.product.style-1:hover .product-action-horizontal,
.product.style-1:hover .product-action-vertical {
    visibility: visible;
    opacity: 1;
}
.product.style-1:hover .product-action-horizontal {
    bottom: 1.5rem;
}
.product.style-1 .product-price {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.product.style-1 .product-media {
    position: relative;
    margin-bottom: 0;
    transition: box-shadow 0.35s;
}
.product.style-1 .product-media img {
    display: block;
    width: 100%;
    transition: opacity 0.4s;
}
.product.style-1 .product-media img:last-child {
    position: absolute;
    opacity: 0;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    object-fit: contain;
}
.product.style-1 .product-media img:first-child {
    position: relative;
    opacity: 1;
}
.product.style-1 .product-media:hover img:last-child {
    opacity: 1;
}
.product.style-1 .product-label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 2rem;
    top: 2rem;
    max-width: 11rem;
    z-index: 1;
}
.product.style-1 .product-label {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2em;
    letter-spacing: -0.005em;
    color: #fff;
    line-height: 1;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
}
.product.style-1 .product-label.label-new {
    background: var(--secondary-color);
    padding: 0.6rem 1rem;
}
.product.style-1 .product-label.label-discount {
    background: var(--primary-color);
}
.product.style-1 .product-label.label-hot {
    background: #799b5a;
}
.product.style-1 .product-label-fixed {
    clip-path: polygon(0 0, 83% 0%, 68% 100%, 0% 100%);
    background: var(--secondary-color);
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 4px 50px 4px 12px;
}
.product.style-1 .product-label-fixed label {
    font-size: 10px;
    font-weight: 500;
}
.product.style-1 .product-label-fixed label span {
    color: var(--white-color);
    margin-left: 4px;
}

.product.style-1 .product-sales-wrapper {
    position: relative;
    margin-bottom: 1.4rem;
}
.product.style-1 .product-sales-wrapper .progress-bar {
    height: 1rem;
    background: #eee;
    margin-bottom: 0.7rem;
}
.product.style-1 .product-sales-wrapper .product-sales-count {
    color: #666;
    font-size: 1.3rem;
}
.product.style-1 .product-sales-wrapper .product-sales-count mark {
    background-color: transparent;
    color: inherit;
}
.product.style-1 .btn-product {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1.14em 0;
    line-height: 1.2;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}
.product.style-1 .btn-product:active,
.product.style-1 .btn-product:hover {
    color: #fff;
}
.product.style-1 .btn-product.btn-link {
    display: inline-block;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.6;
    flex: none;
    background-color: transparent;
    padding: 0;
}
.product.style-1 .btn-product.btn-link:after {
    margin-top: 0;
}
.product.style-1 .btn-product.btn-sm {
    padding: 0.693em 0;
}
.product.style-1 .btn-wishlist {
    line-height: 1;
}
.product.style-1 .btn-wishlist i:before {
    margin: 0;
}
.product.style-1 .btn-cart {
    font-weight: 600;
}
.product.style-1 .btn-cart.btn-link {
    color: var(--secondary-color);
}
.product.style-1 .btn-cart.btn-link:active,
.product.style-1 .btn-cart.btn-link:hover {
    color: var(--secondary-color);
}
.product.style-1 .btn-cart:not(.btn-product-icon) i.w-icon-cart {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}
.product.style-1 .btn-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    border: 1px solid #eee;
    color: #999;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 3.5rem;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s,
        visibility 0.3s, opacity 0.3s, transform 0.3s;
}
.product.style-1 .btn-product-icon:active,
.product.style-1 .btn-product-icon:hover {
    border-color: var(--primary-color);
    color: #fff;
    background-color: var(--primary-color);
}
.product.style-1 .btn-product-icon.btn-cart,
.product.style-1 .btn-product-icon.btn-quickview {
    font-size: 1.6em;
}
.product.style-1 .btn-product-icon.btn-compare {
    font-size: 2em;
}
.product.style-1 .product-action-vertical .btn-product-icon {
    border-radius: 50%;
}
.product.style-1 .btn-product-icon.btn-cart {
    margin-bottom: 0.2rem;
}
.product.style-1 .btn-product-icon.loading {
    background-color: rgba(255, 255, 255, 0.2);
}
.product.style-1 .btn-product-icon.loading:before {
    opacity: 0.4;
}
.product.style-1 .product-action {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background-color: transparent;
    z-index: 10;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    opacity: 0;
    visibility: hidden;
}
.product.style-1 .product-action-vertical {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}
.product.style-1 .product-details {
    position: relative;
    padding: 12px;
    background-color: #fff;
    transition: box-shadow 0.3s;
    border-radius: 0px 0px 4px 4px;
}
.product.style-1 .product-details > .btn-wishlist {
    position: absolute;
    top: 1.7rem;
    right: 0;
    color: #999999;
    font-size: 1.8em;
    z-index: 1;
}
.product.style-1 .product-details > .btn-wishlist.loading {
    right: 1.8rem;
}
.product.style-1 .product-details > .btn-wishlist.loading:after {
    left: 0.9rem;
    top: 0.9rem;
}
.product.style-1 .product-details > .btn-wishlist:hover {
    color: var(--secondary-color);
}
.product.style-1 .product-details > .btn-wishlist:hover i {
    transform: rotateY(180deg);
}
.product.style-1 .product-name {
    margin-bottom: 0.8rem;
    font-size: 14px;
    font-weight: 500;
    white-space: initial;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    min-height: 36px;
}
.product.style-1 .product-name a {
    color: inherit;
}
.product.style-1 .product-name a:hover {
    color: var(--secondary-color);
}

.offer-countdown {
    margin-top: 8px;
    text-align: center;
}

.countdown-label {
    font-size: 11px;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: "Arial", sans-serif;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 3px 5px;
    border-radius: 4px;
    min-width: 28px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-value {
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
    display: block;
}

.time-unit small {
    font-size: 8px;
    margin-top: 1px;
    opacity: 0.9;
    line-height: 1;
}

.time-separator {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 12px;
    margin: 0 1px;
}

.countdown-expired {
    color: #999;
    font-style: italic;
    font-size: 11px;
    padding: 5px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .time-unit {
        min-width: 24px;
        padding: 2px 4px;
    }

    .time-value {
        font-size: 11px;
    }

    .time-unit small {
        font-size: 7px;
    }

    .countdown-label {
        font-size: 10px;
    }
}

@media (max-width: 479px) {
    .product.style-1:not(.product-list) {
        font-size: 0.8rem;
    }
    .product.style-1:not(.product-list) .btn-product-icon {
        width: 3rem;
        height: 3rem;
    }
    .product.style-1:not(.product-list) .product-label-group {
        top: 1rem;
        left: 1rem;
    }
    .product.style-1:not(.product-list) .product-action-vertical {
        top: 1rem;
        right: 1rem;
    }
    .product.style-1 .product-name {
        font-size: 14px;
    }
    .product.style-1 .product-details {
        padding: 8px;
    }
}

/*============================================================================================
   End Card CSS
==============================================================================================*/
