/**
 * Product Card Component - Standalone Styles
 * Used in blog posts and other non-shop contexts
 */

/* Base Product Card */
.product-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.product-card-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-card-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 12px;
    font-size: 11px;
}

.product-card-stock.in-stock {
    color: #047857;
}

.product-card-stock.out-of-stock {
    color: #dc2626;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 0 12px;
    line-height: 1.4;
    color: #1f2937;
}

.product-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
}

.product-card-delivery {
    font-size: 10px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.product-card-price {
    display: flex;
    flex-direction: column;
}

.product-card-old-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-old-price {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-card-discount {
    font-size: 11px;
    color: #E43A36;
    font-weight: 700;
}

.product-card-current-price {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.product-card-vat-suffix {
    font-size: 11px;
    font-weight: 600;
    color: #2b2b2b;
}

.product-card-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #1bbc9b;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.product-card-add-to-cart:hover {
    background-color: #159a7f;
}

.product-card-add-to-cart svg {
    width: 18px;
    height: 18px;
}

/* === COMPACT VERSION FOR BLOG POSTS === */
.product-card-single {
    display: inline-block !important;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
    margin: 16px 12px 16px 0 !important;
    vertical-align: top !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* When followed by non-product content, add clear */
.product-card-single + p,
.product-card-single + h1,
.product-card-single + h2,
.product-card-single + h3,
.product-card-single + h4,
.product-card-single + ul,
.product-card-single + ol,
.product-card-single + blockquote {
    clear: both;
}

.product-card-single .product-card {
    font-size: 12px;
    border-radius: 6px;
    width: 100% !important;
    max-width: 180px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid #e5e7eb !important;
}

/* Remove ALL underlines from product card links */
.product-card-single a,
.product-card-single a:hover,
.product-card-single a:focus,
.product-card-single a:visited,
.product-card-single .product-card-link,
.product-card-single .product-card-link:hover,
.product-card-single .product-card-add-to-cart,
.product-card-single .product-card-add-to-cart:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Remove background colors for cleaner look */
.product-card-single .product-card-image {
    padding: 12px !important;
    height: 100px !important;
    max-height: 100px !important;
    aspect-ratio: auto !important;
    min-height: auto !important;
    background: #fff !important;
}

.product-card-single .product-card-footer {
    padding: 10px 12px !important;
    background: #fff !important;
    border-top: 1px solid #e5e7eb;
}

.product-card-single .product-card-image img {
    max-height: 85px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.product-card-single .product-card-image picture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 85px;
}

.product-card-single .product-card-stock {
    margin: 4px 12px;
    font-size: 10px;
}

.product-card-single .stock-dot {
    width: 6px;
    height: 6px;
}

.product-card-single .product-card-title {
    font-size: 12px;
    padding: 0 12px;
    line-height: 1.3;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-single .product-card-meta {
    padding: 4px 12px 8px;
}

.product-card-single .product-card-delivery {
    font-size: 9px;
    padding: 2px 6px;
}

.product-card-single .product-card-current-price {
    font-size: 14px;
}

.product-card-single .product-card-add-to-cart {
    width: 36px !important;
    height: 36px !important;
    background-color: #1bbc9b !important;
    border-radius: 8px !important;
    color: #fff !important;
}

.product-card-single .product-card-add-to-cart:hover {
    background-color: #159a7f !important;
    color: #fff !important;
}

.product-card-single .product-card-add-to-cart svg {
    width: 18px !important;
    height: 18px !important;
    fill: #fff !important;
    color: #fff !important;
}

/* Hide rating in compact view */
.product-card-single .product-card-rating {
    display: none;
}

/* Product cards grid */
.product-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    clear: both;
}

.product-cards-grid .product-card-single {
    margin: 0 !important;
    clear: none !important;
}

/* Hide "Bekijk winkelwagen" link - sidecart handles this */
.added_to_cart.wc-forward {
    display: none !important;
}

/* Mobile: center */
@media (max-width: 600px) {
    .product-card-single {
        margin: 16px auto !important;
    }
}
