.cpc-modal{position:fixed;inset:0;z-index:9999}
.cpc-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.cpc-modal__dialog{position:relative;background:#fff;max-width:520px;margin:10vh auto;padding:0;border-radius:8px;overflow:hidden}
.cpc-modal__header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #eee}
.cpc-modal__close{background:transparent;border:0;font-size:20px;cursor:pointer}
.cpc-modal__body{padding:16px}
.cpc-modal__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #eee;margin-top:0}

#cpc-order-form{display:flex;flex-direction:column;gap:10px}
#cpc-order-form .form-row{display:flex;flex-direction:column;gap:10px}
#cpc-order-form .form-group{display:flex;flex-direction:column;gap:6px}
#cpc-order-form label{font-size:13px;color:#555}
#cpc-order-form input{padding:6px 8px;border:1px solid #ddd;border-radius:6px}
.cpc-order-message{margin-top:8px}
.cpc-product-brief{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.cpc-product-brief__title{font-weight:600}
.cpc-product-brief__price{font-weight:700}

/* Layout refinements extracted from inline */
.single-product .product-summary{display:flex;gap:15px;align-items:start}
.single-product .product-price{
    color: #dc2626;
    font-size: 24px;
    font-weight: 700;
}
.single-product .product-price .cpc-discount-badge{background:#fee2e2;color:#dc2626;border:1px solid #fecaca;border-radius:999px;padding:2px 6px;font-size:12px;font-weight:700;margin-left:6px}
.single-product .product-meta{list-style:none;padding:0;margin:8px 0;color:#666}

/* Enhanced Price Display Styling */


.single-product .product-price .cp-slide-price {
    display: flex;
    flex-direction: column;
}

.single-product .product-price .price {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.single-product .product-price .price ins {
    color: #dc2626;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.single-product .product-price .price del {
    color: #6c757d;
    font-size: 14px;
    font-weight: 300;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #adb5bd;
    opacity: 0.8;
}

.single-product .product-price .cpc-discount-badge {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
}

.single-product .product-savings-info .savings-text {
    color: #0f766e;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.single-product .product-savings-info .cpc-discount-badge {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* Combo Price Display Container */
.single-product .combo-price-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Price Display */
@media (max-width: 768px) {
    .single-product .product-price .price ins {
        font-size: 28px;
    }
    
    .single-product .product-price .price del {
        font-size: 18px;
    }
    
    .single-product .product-price .cpc-discount-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Retail Profit Pill */
.cpc-retail-profit-wrap{
    margin-top:8px;
}
.cpc-retail-profit-pill{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 20px;
    border-radius: 30px;
    background:#000;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.cpc-retail-profit-pill .label{display:flex;align-items:center;gap:6px;font-weight:600;white-space:nowrap}
.cpc-retail-profit-pill .amount{margin-left:6px;background:#fff7ec;color:#065f46;font-weight:700;border-radius:8px;padding:2px 8px;white-space:nowrap}
.cpc-retail-profit-pill .info{color:#fff;border-radius:50%;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.cpc-icon-lg{font-size:18px;vertical-align:middle}
.cpc-icon-sm{font-size:14px}
.cpc-has-tooltip{position:relative}
.cpc-has-tooltip .cpc-tooltip{position:absolute;top:calc(100% + 10px);left:0;min-width:280px;background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:12px 14px;z-index:30;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .15s ease, transform .15s ease}
.cpc-has-tooltip:hover .cpc-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}
.cpc-has-tooltip .cpc-tooltip::before{content:"";position:absolute;top:-6px;left:12px;border-width:6px;border-style:solid;border-color:transparent transparent #fff transparent}
.cpc-tooltip-title{display:block;margin-bottom:6px;font-weight:600}
.cpc-tooltip-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cpc-tooltip-row .label{color:#111827}
.cpc-tooltip-row .value{font-weight:700;color:#065f46}

/* Alternative products grid (same style philosophy as deal section) */
.alternative-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.product-suggested-change{
    margin:20px 0;
}
.product-change-list{
    position: relative;
}
.product-change-list .alt-card-list{
    position: relative;
    display: flex;
    gap: 10px;
    background: #fff1f3;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 15px 15px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    align-items: center;
}
.alt-price .price{
    color:#ef4444;
}
.alt-card-list .alt-view-more{
    width: 170px;
}
.alt-card-list .alt-card{
    width:100%
}
.alt-card-list .alt-recommend-icon{
    font-size: 35px;
    color: #e21736;
}
/* Alternative card (match "Mua kèm deal sốc" vibe) */
.alt-card{
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    background: #fff;
    padding: 25px 15px 15px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 0.5rem;
}
.alt-card .alt-badge .material-symbols-outlined{
    font-size:14px;
}
.alt-badge{top: 0;
    left: 15px;
    position: absolute;
    margin-top: -10px;
    background: #e21736;
    color: #fff;
    border-radius: 999px;
    padding: 4px 15px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}
.alt-thumb{width:72px;height:72px;border:1px solid #e1e1e1;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.alt-thumb img{width:100%;height:100%;object-fit:cover}
.alt-body{display:flex;flex-direction:column;gap:6px}
.alt-title{font-weight:600;color:#111827}
.alt-sub{font-size:12px;color:#6b7280}
.alt-price .price{display:flex;gap:10px;align-items:center}
.alt-action{color:#0b5ed7;font-weight:600}
.alt-view-more .btn-view-all{padding:8px 14px;border:1px solid #0b5ed7;color:#fff;border-radius:999px;text-decoration:none;font-weight:600}
.cp-placeholder--sm{width:64px;height:64px;border-radius:6px;overflow:hidden}
.cpc-product-brief__meta{list-style:none;padding:0;margin:4px 0 0;color:#666;font-size:12px}

/* Qty actions style aligned with product-card */
.single-product .cpc-qty-actions{display:flex;align-items:center;gap:8px}
.single-product .cpc-qty-actions .button{flex:0 0 40px;min-width:40px;text-align:center;padding:8px 0}
.single-product .cpc-qty-display{flex:1 1 auto;text-align:center;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 6px;border:1px solid #e5e7eb;border-radius:6px}
.single-product .cpc-qty-display .cart-icon{color:#6b7280;flex-shrink:0;font-size:16px;line-height:1}
.single-product .cpc-qty-display .qty-number{font-weight:600;color:#374151}

/* Single product media fixed size */
.single-product .product-media { 
    width: 350px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e1e1;
    border-radius: 8px; }
.single-product .product-media img { width: 220px; height: 220px; object-fit: cover; display: block; border-radius: 8px; }
.single-product .product-media .cp-placeholder { width: 220px; height: 220px; }
.single-product .product-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }

/* Product Summary Layout */
.product-summary { 
    display: flex; 
    gap: 24px; 
    align-items: flex-start; 
    margin-bottom: 32px; 
}

/* Variation UI extracted from inline styles in single-product.php */
.cpc-variation-section{margin-bottom:24px}
.cpc-variation-section h4{margin:0 0 12px;font-size:16px;font-weight:600;color:#111827}
.cpc-variation-options{display:flex;flex-wrap:wrap;gap:8px}
.cpc-variation-option{border:2px solid #e5e7eb;border-radius:8px;padding:12px 16px;background:#fff;cursor:pointer;transition:all .2s ease;min-width:80px;text-align:center;position:relative}
.cpc-variation-option:hover{border-color:#d1d5db;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.cpc-variation-option.selected{border-color:#e21736;background:#fff1f3}
.cpc-variation-option.selected::after{content:"check";position:absolute;top:-8px;right:-8px;font-size:18px;font-family:"Material Symbols Outlined";line-height:1;color:#e21736;background:#fff;border-radius:50%;padding:2px;border:2px solid #e21736;}
.cpc-option-name{font-weight:500;color:#111827;font-size:14px}
.cpc-option-price{font-size:12px;color:#6b7280;margin-top:4px}
.cpc-option-price .sale{color:#dc2626;font-weight:600}
.cpc-option-price .regular{text-decoration:line-through;color:#9ca3af}
@media (max-width:640px){
    .cpc-variation-options{gap:6px}
    .cpc-variation-option{padding:10px 12px;min-width:70px}
}
.product-media-wrapper { 
    flex: 0 0 30%; 
    max-width: 30%; 
    background:#fff;
    padding:20px;
    border:1px solid #e1e1e1;
    border-radius:0.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.product-info { 
    flex: 0 1 70%; 
    max-width: 70%;
    background:#fff;
    border:1px solid #e1e1e1;
    border-radius:0.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.product-info-columns {
    display: flex;
    min-height: 100%;
}

.product-info-left {
    flex: 1;
    padding: 24px;
    border-right: 1px solid #f1f5f9;
}

.product-info-right {
    flex: 0 0 240px;
    background: #f8fafc;
    padding: 24px;
    display: flex;
    flex-direction: column;
}


@media (max-width: 1024px) {
    .product-info-right {
        flex: 0 0 200px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .product-info-columns {
        flex-direction: column;
    }
    .product-info-left {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 16px;
    }
    .product-info-right {
        flex: 1;
        background: #fff;
        padding: 16px;
    }
}

.synced-branches-box {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.branches-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branches-title .material-symbols-outlined {
    color: #e21736;
    font-size: 20px;
}

.branches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.branch-item {
    display: flex;
    gap: 10px;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.branch-name {
    font-size: 14px;
    font-weight: 700;
    color: #e21736;
}

.branch-address {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.branch-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
}

.branch-phone .material-symbols-outlined {
    font-size: 16px;
}

.branch-phone:hover {
    text-decoration: underline;
}

.no-branches {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    margin: 0;
}

@media (max-width: 768px) {
    .synced-branches-box {
        margin-top: 16px;
        padding-top: 16px;
    }
}

/* Gallery Slider Styles */
.cpc-product-gallery-slider { position: relative;}
.cpc-gallery-main { 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
    height: 354px; /* Fixed height for smooth transitions */
    width:354px;
    border:1px solid #e1e1e1;
}
.cpc-gallery-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transform: translateX(100%); 
    transition: all 0.3s ease-in-out; 
}
.cpc-gallery-slide.active { 
    opacity: 1; 
    transform: translateX(0); 
}
.cpc-gallery-slide img { 
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cpc-gallery-prev, .cpc-gallery-next { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.7); color: white; border: none; 
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    z-index: 10; transition: all 0.2s ease; display: flex; 
    align-items: center; justify-content: center;
}
.cpc-gallery-prev:hover, .cpc-gallery-next:hover { 
    background: rgba(0,0,0,0.9); 
    transform: translateY(-50%) scale(1.1); 
}
.cpc-gallery-prev { left: 12px; }
.cpc-gallery-next { right: 12px; }
.cpc-gallery-prev .material-symbols-outlined,
.cpc-gallery-next .material-symbols-outlined {
    font-size: 24px; font-weight: 400;
}

/* Gallery Modal Styles */
.cpc-gallery-modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.cpc-modal-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); 
}
.cpc-modal-content { 
    position: relative;
    width:100%;
    max-width: 800px; 
    max-height: 90vh; 
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cpc-modal-close:not(.button) { 
    position: absolute; top: 16px; right: 16px; z-index: 10;
    background: rgba(0,0,0,0.7); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.cpc-modal-close:not(.button):hover { background: rgba(0,0,0,0.9); }
.cpc-modal-gallery { position: relative; }
.cpc-modal-main { 
    position: relative;
    width: 100%;
    height:500px;
    overflow: hidden;
}
.cpc-modal-slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transform: translateX(100%); 
    transition: all 0.3s ease-in-out; 
}
.cpc-modal-slide.active { 
    opacity: 1; transform: translateX(0); 
}
.cpc-modal-slide img { 
    width: 100%; height: 100%; object-fit: contain; 
}
.cpc-modal-prev, .cpc-modal-next { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.7); color: white; border: none; 
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    z-index: 10; transition: all 0.2s ease; display: flex; 
    align-items: center; justify-content: center;
}
.cpc-modal-prev:hover, .cpc-modal-next:hover { 
    background: rgba(0,0,0,0.9); transform: translateY(-50%) scale(1.1); 
}
.cpc-modal-prev { left: 20px; }
.cpc-modal-next { right: 20px; }
.cpc-modal-prev .material-symbols-outlined,
.cpc-modal-next .material-symbols-outlined {
    font-size: 28px; font-weight: 400;
}
.cpc-modal-thumbs { 
    display: flex; gap: 8px; padding: 16px; 
    overflow-x: auto; background: #f8f9fa;
}
.cpc-modal-thumb { 
    flex-shrink: 0; width: 80px; height: 80px; 
    border: 3px solid transparent; border-radius: 8px; 
    overflow: hidden; cursor: pointer; transition: border-color 0.2s;
}
.cpc-modal-thumb.active { border-color: #0b5ed7; }
.cpc-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cpc-slide-counter { 
    position: absolute; bottom: 20px; right: 20px; 
    background: rgba(0,0,0,0.7); color: white; 
    padding: 8px 12px; border-radius: 20px; font-size: 14px;
}
.cpc-gallery-thumbs { 
    display: flex; gap: 8px; margin-top: 12px; 
    overflow-x: auto; padding: 4px 0;
}
.cpc-gallery-thumb { 
    flex-shrink: 0; width: 60px; height: 60px; 
    border: 1px solid #e1e1e1;
    border-radius: 6px; 
    overflow: hidden; 
    cursor: pointer; 
    transition: border-color 0.2s;
}
.cpc-gallery-thumb.active { border-color: #0b5ed7; }
.cpc-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Combo Products Styles */

.combo-title {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.combo-products-list {
    margin-bottom: 20px;
}

.combo-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.combo-product-image-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 7px;
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

.combo-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.combo-product-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.combo-product-info h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Khoảng 15 ký tự */
}

.combo-product-info h5 a {
    color: #0b5ed7;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combo-product-info h5 a:hover {
    text-decoration: underline;
}

.combo-quantity {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
}

.combo-product-price {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}



/* Admin metabox styles */
.cpc-combo-product-metabox .form-table th {
    width: 150px;
    vertical-align: top;
    padding-top: 15px;
}

.cpc-combo-product-metabox .form-table td {
    padding: 10px 0;
}

.combo-product-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}


.combo-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius:7px;
}

.combo-product-item:last-child {
    margin-bottom: 0;
}

/* Dấu + giữa các combo-product-item */
.combo-plus-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    margin: 10px auto;
    flex-shrink: 0;
}

/* Ẩn dấu + nếu chỉ có 1 item */
.combo-products-list:has(.combo-product-item:only-child) .combo-plus-separator {
    display: none;
}

.combo-product-item .product-name {
    flex: 1;
    font-weight: 500;
}

.combo-product-item .combo-quantity {
    width: 60px;
    text-align: center;
}

.combo-product-item .remove-combo-product {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.combo-product-item .remove-combo-product:hover {
    background: #c82333;
}

.combo-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.combo-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.combo-preview-content .combo-products-list {
    margin-bottom: 15px;
}

.combo-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.combo-preview-item:last-child {
    border-bottom: none;
}

.combo-preview-image-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.combo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.combo-preview-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Responsive */
@media (max-width: 768px) {
    .product-summary { 
        flex-direction: column; 
        gap: 16px; 
    }
    .product-media-wrapper, .product-info { 
        flex: 1; 
        max-width: 100%; 
    }
    
    .combo-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .combo-product-image-wrapper {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .combo-product-info {
        width: 100%;
        text-align: center;
    }
    
    
}

/* Enhanced Combo Products Styling */
.cpc-combo-products .combo-product-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.cpc-combo-products .combo-product-pricing .price-per-unit {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.cpc-combo-products .combo-product-pricing .multiply-symbol,
.cpc-combo-products .combo-product-pricing .equals-symbol {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cpc-combo-products .combo-product-pricing .quantity-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}


/* Admin Combo Metabox Enhanced Styling */
.cpc-combo-product-metabox .combo-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
}

.cpc-combo-product-metabox .combo-product-info {
    flex: 1;
}

.cpc-combo-product-metabox .combo-product-info .product-name {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.cpc-combo-product-metabox .combo-inputs-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.cpc-combo-product-metabox .combo-quantity-wrapper,
.cpc-combo-product-metabox .combo-price-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpc-combo-product-metabox .combo-quantity-wrapper label,
.cpc-combo-product-metabox .combo-price-wrapper label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.cpc-combo-product-metabox .combo-quantity-wrapper .quantity-unit,
.cpc-combo-product-metabox .combo-price-wrapper .price-unit {
    font-size: 12px;
    color: #0b5ed7;
    font-weight: 600;
}

.cpc-combo-product-metabox .combo-quantity,
.cpc-combo-product-metabox .combo-individual-price {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 6px;
    text-align: center;
}

.cpc-combo-product-metabox .combo-individual-price {
    background: #f8f9fa;
}

/* Combo Preview Enhanced Styling */
.combo-preview-content .combo-preview-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0;
}

.combo-preview-content .combo-preview-quantity .quantity-label {
    font-size: 11px;
    color: #666;
}

.combo-preview-content .combo-preview-quantity .quantity-value {
    font-size: 11px;
    color: #0b5ed7;
    background: #e7f3ff;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Enhanced Combo Product Price Display */

/* Combo Preview Price Display */
.combo-preview-content .combo-preview-pricing {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.combo-preview-content .combo-preview-pricing .price-per-unit {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.combo-preview-content .combo-preview-pricing .multiply-symbol,
.combo-preview-content .combo-preview-pricing .equals-symbol {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.combo-preview-content .combo-preview-pricing .quantity-value {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.combo-preview-content .combo-preview-pricing .price-total {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
}

/* Product Side Template Styles */

.combo-deal-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.combo-deal-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.combo-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc2626;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.combo-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.combo-image-section {
    position: relative;
    border:1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    height: 70px;
}

.combo-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-quantity-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.combo-details-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.combo-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.combo-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.combo-title a {
    color: #111827;
    text-decoration: none;
}

.combo-title a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.combo-expiry {
    font-size: 12px;
    color: #dc2626;
    margin-bottom: 4px;
}

.combo-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.combo-icon {
    font-size: 12px;
    opacity: 0.7;
}

.combo-packaging {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.combo-savings-info {
    font-size: 12px;
    color: #e21736;
    font-weight: 500;
    margin-bottom: 4px;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #e21736;
}

.combo-item-info {
    font-size: 12px;
    color: #000;
    font-weight: 700;
    margin-bottom: 4px;
}

.combo-pricing-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 200px;
    text-align: right;
}

.combo-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* Use existing cpc-qty-actions styles for combo cards */



.combo-deal-card .cpc-qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 4px;
}

.combo-deal-card .cart-icon {
    color: #6b7280;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.combo-deal-card .qty-number {
    font-weight: 600;
    color: #374151;
}

.combo-max-qty {
    font-size: 11px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .combo-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .combo-image-section {
        width: 100%;
    }
    
    .combo-image-section img {
        height: 200px;
    }
    
    .combo-details-section {
        min-height: auto;
    }
    
    .combo-pricing-section {
        align-items: flex-start;
        min-width: auto;
        text-align: left;
    }
}

/* Combo Info Styles */
.combo-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 14px;
}

.combo-price {
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

.combo-savings {
    color: #e21736;
    font-size: 13px;
}

.combo-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.item-quantity, .item-price {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.combo-product-card .combo-info {
    background: #fef3c7;
    border-color: #f59e0b;
}

.combo-product-card .combo-quantity {
    color: #92400e;
}

.combo-product-card .combo-item-price {
    color: #78350f;
}

/* Product Card Styles */
.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-thumb {
    position: relative;
    margin-bottom: 12px;
}

.product-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.cp-slide-price {
    margin-bottom: 8px;
}



.product-quy-cach {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 12px;
}

.cpc-qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-icon {
    font-size: 16px;
    color: #6b7280;
}

.qty-number {
    font-size: 14px;
    color: #111827;
}

/* Placeholder Styles */
.cp-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 6px;
}

.cp-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Vendor Card Styles */
.single-product .product-vendor-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    margin: 24px 0 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.single-product .product-vendor-card .vendor-card-left {
    display: flex;
    gap: 16px;
    flex: 0 0 35%;
    min-width: 0;
}

.single-product .product-vendor-card .vendor-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .product-vendor-card .vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-product .product-vendor-card .vendor-logo-placeholder {
    background: #f1f5f9;
}

.single-product .product-vendor-card .vendor-logo-placeholder .material-symbols-outlined {
    font-size: 30px;
    color: #64748b;
}

.single-product .product-vendor-card .vendor-info {
    flex: 1;
    min-width: 0;
}

.single-product .product-vendor-card .vendor-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.single-product .product-vendor-card .vendor-products-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.single-product .product-vendor-card .vendor-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.single-product .product-vendor-card .btn-vendor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.single-product .product-vendor-card .btn-vendor-primary {
    background: #e21736;
    color: #ffffff;
}


.single-product .product-vendor-card .btn-vendor-secondary {
    background: #e21736;
    color: #ffffff;
}

.single-product .product-vendor-card .btn-vendor-secondary .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.single-product .product-vendor-card .vendor-card-right {
    flex: 1;
    min-width: 0;
}

.single-product .product-vendor-card .vendor-about-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.single-product .product-vendor-card .vendor-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .single-product .product-vendor-card .product-vendor-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .single-product .product-vendor-card .vendor-card-right {
        flex: 1;
    }
    
    .single-product .product-vendor-card .vendor-actions {
        flex-direction: column;
    }
    
    .single-product .product-vendor-card .btn-vendor {
        width: 100%;
        justify-content: center;
    }
}