﻿/* ============================================================
   PARAKIKI PRODUCT CARD STYLES (Clean & Optimized)
   ============================================================ */

:root {
    --parakiki-main: #8e44ad;
    --parakiki-hover: #732d91;
    --text-dark: #333;
    --text-muted: #777;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
}

/* 1. Standard Vertical Card (Grid Mode) */
.product-card-digikala {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    height: 100%;
    width: 10rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

    .product-card-digikala:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        transform: translateY(-5px);
        z-index: 1;
        border-color: var(--parakiki-main);
    }

/* Thumbnail Section */
.product-thumbnail {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

    .product-thumbnail img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 10px;
        background-color: var(--bg-light);
    }

/* Info Section */
.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    height: 45px;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .product-title a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.2s;
    }

        .product-title a:hover {
            color: var(--parakiki-main);
        }

/* Price Section */
.product-price {
    margin-bottom: 15px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--parakiki-main);
    font-weight: 800;
    font-size: 17px;
}

.currency {
    font-size: 12px;
    font-weight: normal;
}

/* Footer & Actions */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.right-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart {
    background: var(--parakiki-main);
    color: #fff;
}

    .btn-add-cart:hover {
        background: var(--parakiki-hover);
        transform: scale(1.05);
    }

.btn-search {
    background: var(--bg-light);
    color: var(--text-muted);
    text-decoration: none;
}

    .btn-search:hover {
        background: #e0e0e0;
        color: var(--text-dark);
    }

.btn-wishlist {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}

    .btn-wishlist:hover, .btn-wishlist.active {
        color: #ff4757;
    }

/* 2. Responsive Adjustments (Mobile Breakpoint) */
@media (max-width: 580px) {
    .product-card-digikala {
        padding: 10px;
        width: 9rem;
        border-radius: 12px;
    }

    .product-title {
        font-size: 13px;
        height: 38px;
    }

    .price-wrapper {
        font-size: 15px;
    }

    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }

    .right-actions {
        gap: 5px;
    }

    .btn-wishlist {
        font-size: 18px;
    }
}

/* 3. Helper Classes for Clean Architecture Layout */
.product-card-col {
    display: flex;
    align-items: stretch;
}
