/* 
 * PadniSi Design System - Cards
 * -----------------------------
 * Product cards, info cards, and containers.
 */

.card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    z-index: 2;
}

/* Product Image Area */
.product-image {
    height: 160px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Product Info */
.product-info {
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.3;
}

.product-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Prices */
.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-price {
    font-weight: 700;
    color: rgb(255, 102, 0);
    /* Orange specific for price */
    font-size: 16px;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 13px;
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background: var(--secondary-dark);
    color: white;
    padding: 3px 18px 7px 12px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 2px 2px 8px rgba(52, 152, 219, 0.25);
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: 0 0;
    white-space: nowrap;
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 0% 100%);
}

.product-badge.slow {
    background: var(--gradient-primary);
}

.product-badge.fast {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    box-shadow: 2px 2px 8px rgba(239, 68, 68, 0.25);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.progress-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Meta / Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}

.product-details-link {
    color: var(--secondary-dark);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.product-details-link:hover {
    opacity: 0.8;
}

.product-details-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}