.product-card { background: #fff; display: flex; flex-direction: column; }
.product-card > a { display: block; flex: 1 1 auto; color: inherit; text-decoration: none; }

.product-card .product-thumb { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 7px; overflow: hidden; position: relative }
.product-card .product-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.product-card .product-thumb .cpc-discount-badge { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    z-index: 10; 
    background: #fee2e2; 
    color: #dc2626; 
    border: 1px solid #fecaca; 
    border-radius: 999px; 
    padding: 2px 6px; 
    font-size: 12px; 
    font-weight: 700; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.product-card .cp-placeholder svg { width: 100%; height: 100%; display: block; }

.product-card h2 { margin: 8px 0; font-size: 14px; }
.product-card h2.title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; height: 55px; -webkit-box-orient: vertical; overflow: hidden; }

.product-card [data-price-wrapper].cp-slide-price { line-height: 1.4; position: relative; margin-top: 6px; margin-bottom: 6px; }
.product-card [data-price-wrapper].cp-slide-price .price { display:flex;gap:5px; align-items: baseline; color: #ef4444; font-weight: 700; }
.product-card [data-price-wrapper].cp-slide-price .price del { color: #9ca3af; text-decoration-thickness: 2px; text-decoration-color: #cbd5e1; font-weight: 300; font-size: 12px; }
.product-card [data-price-wrapper].cp-slide-price .price ins { color: #ef4444; text-decoration: none; font-weight: 800; font-size: 16px; }
.product-card [data-price-wrapper].cp-slide-price .price .amount { white-space: nowrap; }
.product-card .excerpt { color: #4b5563; line-height: 1.5; }

/* Product Vendor Display */
.product-card .product-vendor {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

.product-card .product-vendor .vendor-icon {
    font-size: 18px;
    color: #64748b;
    flex-shrink: 0;
    line-height: 1;
}

.product-card .product-vendor .vendor-name {
    color: #475569;
    font-weight: 500;
    flex: 1;
}

.product-card .product-vendor .vendor-link {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card .product-vendor .vendor-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.product-card .cpc-qty-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; width: 100%; }
.product-card .cpc-qty-actions .button { flex: 0 0 40px; min-width: 40px; text-align: center; padding: 8px 0; }
.product-card .cpc-qty-display { 
    flex: 1 1 auto; 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    padding: 8px 6px; 
    border: 1px solid #e1e1e1; 
    border-radius: 6px; 
    background: #fff;
}
.product-card .cpc-qty-display .cart-icon { color: #6b7280; flex-shrink: 0; font-size: 16px; line-height: 1; }
.product-card .cpc-qty-display .qty-number { 
    font-weight: 600; 
    color: #374151;
}
/* Combo Price Display used in product cards (scoped) */
.combo-price-display { display: flex; flex-direction: column;}
.product-card .combo-savings-info .savings-text { font-size: 12px; color: #18794e; font-weight: 500; }
.product-card .combo-savings-info .cpc-discount-badge { background:#e6fffa; color:#0f766e; border:1px solid #99f6e4; border-radius:999px; padding:2px 6px; font-size:12px; font-weight:700; margin-left:6px; }

/* Regular Product Savings Display (scoped) */
.product-card .product-savings-info .savings-text { font-size: 12px; color: #18794e; font-weight: 500; }
.product-card .product-savings-info .cpc-discount-badge { background:#e6fffa; color:#0f766e; border:1px solid #99f6e4; border-radius:999px; padding:2px 6px; font-size:12px; font-weight:700; margin-left:6px; }

/* Product Attributes */
.product-card-attributes { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.product-card-attributes .attribute-item { font-size: 12px; color: #6b7280; }
.product-card-attributes .attribute-name { font-weight: 500; }
.product-card-attributes .attribute-value { color: #374151; }

/* Product Quy Cach Display */
.product-quy-cach { 
    font-size: 12px; 
    color: #6b7280; 
    margin: 4px 0; 
    font-weight: 500; 
}

/* Product Attributes Table (for single product page) */
.product-attributes { margin: 20px 0; }
.product-attributes h3 { margin-bottom: 15px; font-size: 18px; color: #1f2937; }
.attributes-table { width: 100%; border-collapse: collapse; }
.attributes-table td { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
.attributes-table .attribute-name { font-weight: 600; color: #374151; width: 40%; }
.attributes-table .attribute-values { color: #6b7280; }
