/* =============================
   PRODUCT CARD STYLES
   ============================= */

/* Product Card Base */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(231, 84, 138, 0.2);
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-main {
    transform: scale(1.05);
}

/* Brand Logo Overlay */
.brand-logo-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* Color Tags Row */
.color-tags-row {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 3px;
    flex-direction: column;
}

.color-tag {
    width: 8px;
    height: 25px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-tag-1 { background: #90EE90; } /* Light Green */
.color-tag-2 { background: #87CEEB; } /* Sky Blue */
.color-tag-3 { background: #FFA500; } /* Orange */
.color-tag-4 { background: #DDA0DD; } /* Plum */
.color-tag-5 { background: #FF6B6B; } /* Light Red */

.color-tag-green { background: #4CAF50; }
.color-tag-blue { background: #2196F3; }
.color-tag-orange { background: #FF9800; }
.color-tag-purple { background: #9C27B0; }
.color-tag-red { background: #F44336; }

/* Product Info */
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
    flex-grow: 1;
}

.product-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Color Dots */
.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-dot:hover,
.color-dot.active {
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.color-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Price Button */
.product-price-wrapper {
    margin-top: auto;
}

.product-price-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-price-btn:hover {
    background: linear-gradient(135deg, #FF5252, #FF7979);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.product-price-btn-teal {
    background: linear-gradient(135deg, #52c4b8, #6dd5ed);
}

.product-price-btn-teal:hover {
    background: linear-gradient(135deg, #4db6aa, #5cbbd6);
    box-shadow: 0 8px 20px rgba(82, 196, 184, 0.4);
}

.price-amount {
    font-weight: 700;
}

.price-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.product-price-btn:hover .price-arrow {
    transform: translateX(5px);
}

/* Loading/Empty States */
.products-grid:empty::after {
    content: 'Đang tải sản phẩm...';
    display: block;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-price-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .color-tags-row {
        top: 10px;
        left: 10px;
    }
    
    .brand-logo-overlay {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
    }
    
    .brand-logo {
        height: 16px;
    }
}