/* medicine_cards.css */
.premium-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    border-color: rgba(47, 182, 142, 0.2);
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid #f1f1f1;
}

.card-image-wrapper img {
    max-width: 90%;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover .card-image-wrapper img {
    transform: scale(1.1) rotate(-2deg);
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #b2bec3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2fb68e;
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 0.85rem;
    margin-right: 3px;
    font-weight: 600;
}

.action-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2fb68e 0%, #26a37b 100%);
    color: #ffffff !important;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(47, 182, 142, 0.2);
    cursor: pointer;
}

.action-button:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 20px rgba(47, 182, 142, 0.3);
}

.action-button i {
    font-size: 1.2rem;
}

/* RTL Support */
[dir="rtl"] .card-title {
    text-align: right;
}

[dir="rtl"] .price-currency {
    margin-right: 0;
    margin-left: 3px;
}
