/* ============================================
   unified-cart.css
   CSS cho giỏ hàng & checkout multi-vendor (Shopee style)
   Dùng chung với shop-module.css của MIA
   ============================================ */

/* ── Vendor group ────────────────────────────────── */
.uc-group {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 16px;
    overflow: hidden;
}
.uc-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ddd8;
}
.uc-vendor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 40px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.uc-ship-tag {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}
.uc-ship-tag.uc-ship-free { color: #10b981; font-weight: 500; }

/* ── Table header ─────────────────────────────────── */
.uc-thead {
    display: grid;
    grid-template-columns: 3fr 1fr 1.2fr 1fr 40px;
    gap: 10px;
    padding: 10px 20px;
    background: #fafafa;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid #f0ebe4;
}
.uc-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1.2fr 1fr 40px;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0ebe4;
    align-items: center;
}
.uc-row:last-child { border-bottom: none; }

.uc-col-product { display: flex; align-items: center; gap: 12px; }
.uc-img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0ebe4;
}
.uc-item-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: #2c1f1a; }
.uc-item-sub  { font-size: 12px; color: #8c6b62; display: flex; gap: 8px; flex-wrap: wrap; }

.uc-col-price .uc-price-now { font-size: 14px; font-weight: 600; display: block; color: #2c1f1a; }
.uc-col-price .uc-price-old { font-size: 11px; color: #94a3b8; text-decoration: line-through; }

.uc-col-total strong { font-size: 14px; font-weight: 700; color: #c9847a; }

/* Qty control */
.uc-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e8ddd8;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}
.uc-minus, .uc-plus {
    width: 30px; height: 34px;
    background: none; border: none;
    cursor: pointer; font-size: 14px; color: #334155;
    transition: background .2s;
}
.uc-minus:hover, .uc-plus:hover { background: #f0ebe4; }
.uc-qty-input {
    width: 42px; height: 34px;
    border: none;
    border-left: 1px solid #e8ddd8;
    border-right: 1px solid #e8ddd8;
    text-align: center;
    font-size: 13px; outline: none;
}

.uc-del {
    background: none; border: none;
    cursor: pointer; color: #94a3b8;
    font-size: 15px; padding: 4px;
    transition: color .2s;
}
.uc-del:hover { color: #ef4444; }

.uc-group-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e8ddd8;
    font-size: 14px;
    color: #64748b;
}
.uc-group-footer strong { font-size: 16px; font-weight: 700; color: #2c1f1a; }

/* ── Checkout summary vendor ─────────────────────── */
.uc-summary-vendor {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ddd8;
}
.uc-summary-vendor:last-of-type { border-bottom: none; }
.uc-summary-vendor-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.uc-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe4;
}
.uc-summary-item:last-child { border-bottom: none; }
.uc-summary-item img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0ebe4;
}
.uc-summary-item-info { flex: 1; font-size: 13px; }
.uc-summary-item-sub  { font-size: 11px; color: #94a3b8; }
.uc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #64748b;
}
.uc-summary-row.uc-bold { font-weight: 600; color: #2c1f1a; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .uc-thead { display: none; }
    .uc-row {
        grid-template-columns: 72px 1fr auto;
        grid-template-rows: auto auto auto;
        column-gap: 10px; row-gap: 8px;
        padding: 14px 12px;
    }
    .uc-col-product { grid-column: 1/3; grid-row: 1; }
    .uc-col-price   { grid-column: 2;   grid-row: 2; }
    .uc-col-qty     { grid-column: 1;   grid-row: 3; }
    .uc-col-total   { grid-column: 3;   grid-row: 1; text-align: right; align-self: start; }
    .uc-col-del     { grid-column: 3;   grid-row: 3; text-align: right; }
    .uc-img         { width: 60px; height: 60px; }
    .uc-group-header { flex-wrap: wrap; padding: 10px 12px; }
    .uc-group-footer { padding: 10px 12px; }
}

/* ── OME Product Detail – Video & Usage tabs ─────── */
.ome-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
}
.ome-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.ome-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 10px;
    color: #94a3b8;
    text-align: center;
}
.ome-video-placeholder i {
    font-size: 52px;
    color: #cbd5e1;
}
.ome-video-placeholder p {
    font-size: 15px;
}
