/* =========================================================================
   DKSHAPE Product Card v3 — Growth-Style
   ========================================================================= */

.dk-product-card {
    position: relative;
    background: var(--dk-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--duration) var(--ease),
        transform var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
}

.dk-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ─── Image ─── */

.dk-product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--dk-gray-50);
}

.dk-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-3);
    transition: transform var(--duration-slow) var(--ease);
}

.dk-product-card:hover .dk-product-card__image img {
    transform: scale(1.05);
}

/* Discount badge (circle, top-left) */
.dk-product-card__badge-discount {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    background: #ff5722;
    color: var(--dk-white);
    font-size: 11px;
    font-weight: var(--fw-bold);
    padding: 3px 7px;
    border-radius: var(--radius-xs);
    z-index: 2;
    line-height: 1.2;
}

/* Wishlist heart (top-right) */
.dk-product-card__wishlist {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: 2;
    transition: all var(--duration) var(--ease);
    color: var(--dk-gray-400);
}

.dk-product-card__wishlist:hover {
    color: var(--dk-badge-sale);
    background: var(--dk-white);
    box-shadow: var(--shadow-sm);
}

/* ─── Info ─── */

.dk-product-card__info {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dk-product-card__title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--dk-gray-800);
    line-height: var(--lh-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.dk-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.dk-product-card__title a:hover {
    color: var(--dk-accent);
}

/* ─── Rating ─── */

.dk-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.dk-product-card__stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: -1px;
}

.dk-product-card__review-count {
    font-size: 11px;
    color: var(--dk-gray-400);
}

/* ─── Price ─── */

.dk-product-card__price {
    margin-top: auto;
    padding-top: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dk-product-card__price-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.dk-product-card__price-current {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--dk-accent);
    line-height: 1.2;
}

/* Override WooCommerce wc_price() wrapping */
.dk-product-card__price-current .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.dk-product-card__price-off {
    font-size: 11px;
    font-weight: var(--fw-medium);
    color: var(--dk-free-shipping);
}

.dk-product-card__price-original {
    font-size: var(--fs-xs);
    color: var(--dk-gray-400);
    text-decoration: line-through;
    line-height: 1;
}

.dk-product-card__price-original .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.dk-product-card__installments {
    font-size: 11px;
    color: var(--dk-gray-500);
    margin-top: 2px;
}

.dk-product-card__installments .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* ─── CTA Button ─── */

.dk-product-card__cta {
    padding: 0 var(--space-3) var(--space-3);
}

.dk-product-card__buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--dk-accent);
    color: var(--dk-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration) var(--ease);
}

.dk-product-card__buy-btn:hover {
    background: var(--dk-accent-hover);
}

/* ─── Shipping ─── */

.dk-product-card__shipping {
    font-size: 11px;
    color: var(--dk-free-shipping);
    font-weight: var(--fw-medium);
    margin-top: 2px;
}