/* Product Card Styles - Matching Shop Page Design Exactly */

/* FREE Badge Styles - Can be used anywhere */
.badge-free {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgb(16 185 129 / 0.3);
}

.badge-free i {
    font-size: 1rem;
}

/* Shop Page Specific Badge Wrapper */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Homepage Product Section Styles - Exact Match to Shop Page */
.products-section .product-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.products-section .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.products-section .product-media {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
}

.products-section .product-media::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

@supports (aspect-ratio: 16 / 9) {
    .products-section .product-media {
        aspect-ratio: 16 / 9;
    }

    .products-section .product-media::before {
        display: none;
    }
}

.products-section .product-image-link {
    position: absolute;
    inset: 0;
    display: block;
}

.products-section .product-image-ratio {
    width: 100%;
    height: 100%;
}

.products-section .product-image-ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.products-section .product-card:hover .product-image-ratio img {
    transform: scale(1.03);
}

.products-section .product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.products-section .product-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #6366f1;
}

.products-section .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.5;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.products-section .product-title:hover {
    color: #6366f1;
}

.products-section .product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.products-section .product-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
}

.products-section .product-rating i {
    color: #d1d5db;
}

.products-section .product-rating i.dwg-star-filled {
    color: #fbbf24;
}

.products-section .product-sales {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.products-section .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.products-section .product-price .old-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.products-section .product-price .current-price {
    color: #10b981;
}

.products-section .product-actions {
    padding: 0 0 4px;
    display: flex;
    gap: 8px;
}

.products-section .product-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.products-section .product-btn-outline {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.products-section .product-btn-outline:hover {
    background: #f3f4f6;
}

.products-section .product-btn-primary {
    background: #6366f1;
    color: #fff;
}

.products-section .product-btn-primary:hover {
    background: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .products-section .product-body {
        padding: 14px;
    }

    .products-section .product-title {
        font-size: 0.9rem;
    }

    .products-section .product-price {
        font-size: 1.1rem;
    }

    .products-section .product-actions {
        flex-direction: column;
    }

    .products-section .product-btn {
        width: 100%;
    }

    .badge-free {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}

@media (max-width: 576px) {
    .products-section .product-card {
        border-radius: 10px;
    }

    .products-section .product-body {
        padding: 12px;
    }
}
