/**
 * ========================================
 * RONGHAO Product Card Component Styles
 * ========================================
 */

/* ========================================
   Product Grid
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========================================
   Product Card
   ======================================== */
.product-card {
    background: var(--color-white, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* ========================================
   Product Image
   ======================================== */
.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   Product Badge
   ======================================== */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--color-accent, #BE123C);
    color: var(--color-white, #FFFFFF);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* ========================================
   Product Content
   ======================================== */
.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent, #BE123C);
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary, #262626);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 14px;
    color: var(--color-secondary, #57534E);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Product Specs Tags
   ======================================== */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--color-background, #F5F5F4);
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-secondary, #57534E);
}

.spec-tag.composition-tag {
    background: rgba(38, 38, 38, 0.08);
    color: var(--color-primary, #262626);
    font-weight: 500;
}

.spec-tag.weight-tag {
    background: rgba(190, 18, 60, 0.08);
    color: var(--color-accent, #BE123C);
    font-weight: 500;
}

.spec-tag.function-tag {
    background: rgba(87, 83, 78, 0.08);
    color: var(--color-secondary, #57534E);
}

.spec-tag.more-badge {
    background: var(--color-primary, #262626);
    color: var(--color-white, #FFFFFF);
    font-weight: 600;
}

.spec-tag svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-secondary, #57534E);
}

/* ========================================
   Product Footer
   ======================================== */
.product-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent, #BE123C);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-link:hover {
    gap: 10px;
}

.product-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-link:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-content {
        padding: 16px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .spec-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
