/* PRODUCT GRID */
.product-grid-6 {
}

.product-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
}

.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
}

.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
}

@media (max-width: 1024px) {
    .product-grid-5, .product-grid-4, .product-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: dense;
        gap: 18px
    }
}

@media (max-width: 768px) {
    .product-grid-5, .product-grid-4, .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s;
    user-select: none;
    background: #fff;
    pointer-events: auto;
}

/*.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }*/
.product-card .img-wrap {
    border-radius: var(--radius-lg);
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f2f2f2;
}

.product-card .img-wrap .ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-wrap .ph img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-card .badge-d {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--yellow);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-card .badge-n {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--success);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-card .info {
    padding: 10px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card .name {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    line-height: 160%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.product-card .pc {
    font-size: 18px;
    font-weight: 600;
    line-height: 135%;
    color: var(--success);
}

.product-card .qty {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

.product-card .po {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
}

.product-card .stars {
    color: #f5a623;
    font-size: 11px;
}

.product-card .rc {
    font-size: 11px;
    color: #888;
}

.product-card .wl,
.product-card .eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--black-60);
}

.product-card .wl i,
.product-card .eye i {
    font-size: 14px;
    color: #fff;
}

.product-card .card-tools {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card .add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--yellow);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    width: 100%;
    pointer-events: fill;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.product-card:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}
.product-card .add-to-cart:hover {
    background: var(--yellow-80);
}

/* DISCOUNT LIST VIEW */
.discount-list {

}

.discount-list .discount-card {
    flex-direction: column;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}

.discount-list .discount-card .img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16/13;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    position: relative;
}

.discount-list .discount-card .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.discount-overlay .info {
    padding: 0;
    pointer-events: auto;
}

.discount-overlay .name {
    color: #fff !important;
}

.discount-overlay .sale-countdown .cd-unit .v {
    color: #fff;
}

.discount-overlay .sale-countdown .cd-unit .cd-label {
    color: rgba(255,255,255,0.7);
}

.discount-overlay .sale-countdown .cd-sep {
    color: var(--yellow);
}

.discount-card-featured {
    aspect-ratio: 16/13;
}

.discount-card-featured .discount-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

@media (max-width: 768px) {
    .discount-card-featured {
        aspect-ratio: 16/13;
    }
}

@media (max-width: 768px) {
    .discount-list .discount-card .img-wrap {
        aspect-ratio: 16/13;
    }
    .discount-overlay {
        padding: 16px;
    }
    .discount-overlay .name {
        font-size: 1.25rem !important;
    }
    .discount-overlay .sale-countdown .cd-unit .v {
        font-size: 32px;
    }
}
