/**
 * Modern Product Card Styles for Phoca Cart
 * Файл: /templates/cassiopeia/css/phoca-product-card.css
 */

/* Modern Product Card Styles */
.com_phocacart .site-grid {
    max-width: 1290px;
    margin: 0 auto;
}

.modern-list-product-cards {
    padding: 15px;
}

.modern-list-product-card {
    background: #FBF5F2;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
    /* margin-bottom: 30px; */
}

.modern-list-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.modern-list-product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Wrapper */
.modern-list-product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f6f2;
}

.modern-list-product-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.modern-list-product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-list-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.modern-list-product-card:hover .modern-list-product-image img {
    transform: scale(1.05);
}

/* Labels (Новинка, Хит) */
.modern-list-product-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modern-list-product-labels span,
.modern-list-product-labels .ph-label,
.modern-list-product-labels .ph-tag-new,
.modern-list-product-labels .ph-tag-hot,
.modern-list-product-labels .ph-tag-featured {
    display: inline-block;
    padding: 17px 27px 16px 28px;
    font-size: 20px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-radius: 30px;
    background: #F1CB6E
    /* color: #1a1a1a; */
}

.modern-list-product-labels .ph-new,
.modern-list-product-labels .ph-tag-new {
    background: #F1CB6E;
    color: #23251B;
}

.modern-list-product-labels .ph-hot,
.modern-list-product-labels .ph-tag-hot {
    background: #FF6B6B;
    color: #ffffff;
}

.modern-list-product-labels .ph-featured,
.modern-list-product-labels .ph-tag-feat {
    background: #4A90E2;
    color: #ffffff;
}

/* Content */
.modern-list-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-list-product-title {
    font-family: 'Noto Sans', 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.modern-list-product-title a {
    /* color: #1a1a1a; */
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.modern-list-product-title a:hover {
    /* color: #FFD700; */
}

/* Meta*/
.modern-list-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.product-meta-item {
    display: inline-block;
    padding: 4px 12px;
    background: #f0ede8;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #5a5a5a;
    font-family: 'Noto Sans', sans-serif;
}

/* Description */
.modern-list-product-description {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    /* color: #666666; */
    /* margin-bottom: 20px; */
    flex: 1;
}

/* Footer with price and button */
.modern-list-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.modern-list-product-price {
    font-family: 'Urbanist', sans-serif;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

/* Buttons */
.modern-list-product-actions .modern-list-product-btn,
.modern-list-product-actions .ph-add-to-cart-icon,
.modern-list-product-actions .ph-btn-cart,
.modern-list-product-actions .btn-cart,
.modern-list-product-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-list-product-actions .modern-list-product-btn:hover,
.modern-list-product-actions .ph-add-to-cart-icon:hover,
.modern-list-product-actions .ph-btn-cart:hover,
.modern-list-product-actions .btn-cart:hover,
.modern-list-product-actions button:hover {
    background: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.modern-list-product-actions svg {
    transition: transform 0.3s ease;
}

.modern-list-product-actions .modern-list-product-btn:hover svg,
.modern-list-product-actions button:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
    .modern-list-product-title {
        font-size: 1.1rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .modern-list-product-content {
        padding: 15px;
    }
    
    .modern-list-product-title {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .modern-list-product-actions .modern-list-product-btn,
    .modern-list-product-actions button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .product-meta-item {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .modern-list-product-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modern-list-product-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}