/* ================================================================
   Hi-Operator — PC Cart Page Styles
   ================================================================ */

/* ===== Cart / Inquiry Page ===== */
.ho-cart-page {
    padding: 112px 0 60px;
    background: #f5f6f8;
    min-height: 60vh;
}

.ho-cart-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ho-cart-title i { color: var(--ho-secondary); }

/* Empty */
.ho-cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
}

.ho-cart-empty-icon { font-size: 64px; color: #d0d5dd; margin-bottom: 20px; }
.ho-cart-empty h2 { font-size: 22px; color: #333; margin: 0 0 8px; }
.ho-cart-empty p { color: #888; margin: 0 0 24px; }

/* Orange accent button scoped to cart & deals pages */
.ho-cart-page .ho-btn-accent {
    background: #E53E3E;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.ho-cart-page .ho-btn-accent:hover {
    background: #C53030;
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Cart Card (table wrapper) ---- */
.ho-cart-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ho-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.ho-cart-table thead { background: #fafafa; }

.ho-cart-table th,
.ho-cart-table td {
    padding: 14px 18px;
    vertical-align: middle;
}

.ho-cart-table th {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    border-bottom: 2px solid #edf2f7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ho-cart-table td {
    border-bottom: 1px solid #f3f3f3;
    font-size: 14px;
}

.ho-cart-th-product { width: 40%; text-align: left; }
.ho-cart-th-price   { width: 15%; text-align: center; }
.ho-cart-th-qty     { width: 18%; text-align: center; }
.ho-cart-th-subtotal{ width: 17%; text-align: center; }
.ho-cart-th-action  { width: 10%; text-align: right; padding-right: 20px; }
.ho-cart-td-action  { text-align: right; padding-right: 20px; }

.ho-cart-table tr:last-child td { border-bottom: none; }

.ho-cart-tc { text-align: center; }

/* Product cell */
.ho-cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ho-cart-product-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ccc;
    font-size: 22px;
}

.ho-cart-product-img img { width: 100%; height: 100%; object-fit: cover; }

.ho-cart-pname {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ho-cart-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.ho-cart-attr-tag {
    display: inline-block;
    font-size: 11px;
    color: #555;
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.5;
}

.ho-cart-attr-tag b {
    font-weight: 600;
    color: #333;
}

/* Clear Cart btn (in header) */
.ho-cart-clear-btn {
    background: #E53E3E;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

.ho-cart-clear-btn:hover { background: #C53030; }

/* Qty controls */
.ho-cart-qc {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #E53E3E;
    border-radius: 6px;
    overflow: hidden;
}

.ho-cart-qc button {
    width: 32px;
    height: 34px;
    background: #fff;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.ho-cart-qc button:hover { background: #fef2f2; }

.ho-cart-qc input {
    width: 42px;
    height: 34px;
    text-align: center;
    border: none;
    border-left: 1.5px solid #E53E3E;
    border-right: 1.5px solid #E53E3E;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    -moz-appearance: textfield;
    outline: none;
}

.ho-cart-qc input::-webkit-outer-spin-button,
.ho-cart-qc input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Price / Subtotal */
.ho-cart-table td strong { font-size: 15px; color: #333; }
.ho-cart-tbd { color: #999; font-size: 13px; font-style: italic; }

/* Delete × */
.ho-cart-x {
    background: none;
    border: none;
    font-size: 22px;
    color: #e53e3e;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: transform .15s;
}

.ho-cart-x:hover { transform: scale(1.2); }

/* ---- Bottom bar: Coupon + Subtotal ---- */
.ho-cart-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ho-cart-coupon {
    display: flex;
    gap: 10px;
}

.ho-cart-coupon-input {
    padding: 10px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 220px;
    transition: border-color .2s;
}

.ho-cart-coupon-input:focus { outline: none; border-color: #E53E3E; }

.ho-cart-coupon-btn {
    background: #E53E3E;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

.ho-cart-coupon-btn:hover { background: #C53030; }

.ho-cart-subtotal-box {
    font-size: 16px;
    color: #555;
}

.ho-cart-subtotal-box strong {
    font-size: 20px;
    color: #1a1a1a;
    margin-left: 4px;
}

/* ---- Action bar ---- */
.ho-cart-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

/* ---- Checkout panel ---- */
.ho-cart-checkout {
    margin-top: 24px;
}

.ho-cart-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ho-cart-checkout-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ho-cart-checkout-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ho-cart-checkout-box h3 i { color: #E53E3E; }

/* Payment options */
.ho-cart-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ho-cart-pay-opt { cursor: pointer; }
.ho-cart-pay-opt input { display: none; }

.ho-cart-pay-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    transition: all .2s;
}

.ho-cart-pay-card i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #888;
    transition: color .2s;
}

.ho-cart-pay-opt input:checked + .ho-cart-pay-card {
    border-color: #E53E3E;
    background: #fef2f2;
    color: #E53E3E;
}

.ho-cart-pay-opt input:checked + .ho-cart-pay-card i { color: #E53E3E; }
.ho-cart-pay-card:hover { border-color: #bbb; }

/* Inquiry form */
.ho-cart-form { display: flex; flex-direction: column; gap: 0; }
.ho-cart-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.ho-cart-form input,
.ho-cart-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}

.ho-cart-form textarea { margin-bottom: 12px; }

.ho-cart-form input:focus,
.ho-cart-form textarea:focus { outline: none; border-color: #E53E3E; }

.ho-cart-submit-btn { margin-top: 4px; }

/* Success */
.ho-cart-success {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
}

.ho-cart-success-icon { font-size: 52px; color: #38a169; margin-bottom: 14px; }
.ho-cart-success h2 { font-size: 24px; color: #1a1a1a; margin: 0 0 8px; }
.ho-cart-success p { color: #555; font-size: 15px; margin: 0 0 20px; line-height: 1.6; }

@media (max-width: 992px) {
    .ho-cart-checkout-grid { grid-template-columns: 1fr; }
    .ho-cart-coupon-input { width: 160px; }
}

/* ===== Address Preview ===== */
.ho-cart-addr-preview { margin:12px 0 16px; }
.ho-cart-addr-preview > label { font-size:13px; font-weight:600; color:#2d3748; display:block; margin-bottom:8px; }
.ho-cart-addr-preview > label i { color:#e53e3e; margin-right:4px; }
.ho-cart-addr-card { background:#f7fafc; border:1px solid #e2e8f0; border-radius:8px; padding:12px 16px; position:relative; font-size:13px; line-height:1.6; }
.ho-cart-addr-card strong { font-size:14px; color:#1a202c; }
.ho-cart-addr-phone { color:#718096; margin-left:10px; }
.ho-cart-addr-detail { color:#4a5568; margin-top:4px; }
.ho-cart-addr-edit { position:absolute; top:12px; right:14px; font-size:12px; color:#e53e3e; text-decoration:none; }
.ho-cart-addr-edit:hover { text-decoration:underline; }
.ho-cart-addr-empty { background:#fffaf0; border:1px solid #fbd38d; border-radius:8px; padding:14px 18px; color:#c05621; font-size:13px; display:flex; align-items:center; gap:10px; }
.ho-cart-addr-empty i { font-size:16px; }
.ho-cart-addr-empty .ho-btn { white-space:nowrap; }

/* ===== Coupon (inline) ===== */
.ho-cart-coupon-bar { flex: 1; min-width: 280px; max-width: 420px; }
.ho-cart-coupon-input-group { display: flex; align-items: stretch; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ho-cart-coupon-input-group:focus-within { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }
.ho-cart-coupon-icon { display: flex; align-items: center; justify-content: center; width: 44px; background: #fef2f2; color: #e53e3e; font-size: 15px; flex-shrink: 0; }
.ho-cart-coupon-input-group input { flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 14px; font-family: 'Courier New', monospace; letter-spacing: 1.5px; text-transform: uppercase; background: transparent; min-width: 0; }
.ho-cart-coupon-input-group input::placeholder { font-family: inherit; letter-spacing: 0; text-transform: none; color: #a0aec0; font-size: 13px; }
.ho-cart-coupon-input-group input:disabled { background: #f7fafc; color: #718096; }
.ho-cart-coupon-input-group button { border: none; background: #e53e3e; color: #fff; padding: 0 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; letter-spacing: .3px; }
.ho-cart-coupon-input-group button:hover { background: #c53030; }
.ho-cart-coupon-input-group button:disabled { background: #cbd5e0; cursor: default; }
.ho-cart-coupon-msg { font-size: 12px; margin-top: 6px; min-height: 16px; padding-left: 2px; }
.ho-cart-coupon-msg.is-error { color: #e53e3e; }
.ho-cart-coupon-msg.is-success { color: #276749; }
.ho-cart-coupon-applied { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; background: linear-gradient(135deg, #f0fff4, #e6ffed); border: 1px solid #c6f6d5; border-radius: 8px; }
.ho-cart-coupon-tag { font-family: 'Courier New', monospace; font-weight: 700; font-size: 13px; letter-spacing: 1px; color: #276749; display: flex; align-items: center; gap: 5px; }
.ho-cart-coupon-tag i { font-size: 14px; }
.ho-cart-coupon-saved { font-size: 13px; color: #276749; font-weight: 600; background: rgba(39,103,73,.1); padding: 2px 8px; border-radius: 4px; }
.ho-cart-coupon-remove { background: none; border: none; color: #a0aec0; font-size: 14px; cursor: pointer; padding: 4px; margin-left: auto; border-radius: 4px; transition: all .15s; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.ho-cart-coupon-remove:hover { color: #e53e3e; background: #fed7d7; }
.ho-cart-subtotal-box { text-align: right; min-width: 220px; }
.ho-cart-subtotal-line { margin-bottom: 4px; font-size: 15px; }
.ho-cart-subtotal-line span { color: #718096; }
.ho-cart-subtotal-line strong { margin-left: 6px; }
.ho-cart-discount-line strong { color: #276749 !important; }
.ho-cart-final-line { margin-top: 6px; padding-top: 8px; border-top: 2px solid #e2e8f0; font-size: 18px; }
.ho-cart-final-line strong { color: #e53e3e; font-size: 20px; }
