/* ND369 — Cart /gio-hang/ */
/* =========================================
   CART PAGE (/gio-hang/) - redesign
   ========================================= */
.woocommerce-cart .entry-header,
.woocommerce-cart .page-header,
.woocommerce-cart .ast-woocommerce-container .cart-collaterals,
.woocommerce-cart .cart_totals {
    display: none !important;
}

.woocommerce-cart .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.nd369-cart-hero {
    text-align: center;
    padding: 40px 20px 32px;
    margin: 0 0 28px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, var(--primary-color, #004d99) 0%, #003366 100%);
    color: #fff;
    border-radius: 12px;
}

.nd369-cart-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 10px;
}

.nd369-cart-hero-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff !important;
    line-height: 1.25;
}

.nd369-cart-hero-desc {
    margin: 0 auto 18px;
    max-width: 520px;
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 0.95;
}

.nd369-cart-hero-desc strong {
    color: #fff;
    font-weight: 800;
}

.nd369-cart-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nd369-cart-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nd369-cart-hero-btn--call {
    background: var(--secondary-color, #cc3300);
    color: #fff !important;
}

.nd369-cart-hero-btn--call:hover {
    background: var(--accent-color, #ff6600);
    transform: translateY(-1px);
}

.nd369-cart-hero-btn--zalo {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.nd369-cart-hero-btn--zalo:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Cart table */
.woocommerce-cart table.shop_table {
    border: 1px solid #e4ebf3 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px !important;
}

.woocommerce-cart table.shop_table th {
    background: var(--bg-light, #f4f8ff);
    color: var(--primary-color, #004d99);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 16px !important;
    border: none !important;
}

.woocommerce-cart table.shop_table td {
    padding: 16px !important;
    border-color: #eef2f7 !important;
    vertical-align: middle;
}

.woocommerce-cart table.shop_table .product-name a {
    color: var(--primary-color, #004d99);
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-cart table.shop_table .product-remove a {
    color: var(--secondary-color, #cc3300) !important;
}

.woocommerce-cart .actions {
    padding: 16px !important;
}

.woocommerce-cart .actions .button,
.woocommerce-cart button[name="update_cart"] {
    background: var(--primary-color, #004d99) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
}

.woocommerce-cart .coupon,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart a.checkout-button {
    display: none !important;
}

.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop .button {
    text-align: center;
}

.woocommerce-cart .return-to-shop .button {
    background: var(--secondary-color, #cc3300) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 12px 22px !important;
}

body.woocommerce-cart:has(.nd369-cart-order-success-panel) .cart-empty,
body.woocommerce-cart:has(.nd369-cart-order-success-panel) .return-to-shop {
    display: none !important;
}

.nd369-cart-order-success-panel {
    max-width: 640px;
    margin: 0 auto 36px;
    text-align: center;
    padding: 28px 24px;
    background: #e8f7ee;
    border: 1px solid #b7e0c4;
    border-radius: 12px;
}

.nd369-cart-order-success-title {
    margin: 0 0 8px;
    color: #1e6b3a;
    font-size: 1.25rem;
    font-weight: 800;
}

.nd369-cart-order-success-text {
    margin: 0 0 16px;
    color: #2d5a3d;
    line-height: 1.5;
}

.nd369-cart-order-success-text a {
    color: var(--secondary-color, #cc3300);
    font-weight: 700;
}

.nd369-cart-order-success-link {
    display: inline-flex;
    padding: 10px 18px;
    background: var(--primary-color, #004d99);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
}

.nd369-cart-order-success-link:hover {
    background: #003366;
}

/* Order form block */
.nd369-cart-order {
    margin-top: 36px;
    padding: 36px 0 8px;
    border-top: 1px solid #e4ebf3;
}

.nd369-cart-order-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.nd369-cart-order-header {
    margin: 0 0 24px;
    text-align: left;
}

.nd369-cart-order-header h2 {
    margin: 0 0 8px;
    color: var(--primary-color, #004d99);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.nd369-cart-order-header p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.nd369-cart-order-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.nd369-cart-order-summary,
.nd369-cart-order-form-wrap {
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 12px;
    padding: 28px 24px;
}

.nd369-cart-order-summary h3 {
    margin: 0 0 16px;
    color: var(--primary-color, #004d99);
    font-size: 1.05rem;
    font-weight: 800;
}

.nd369-cart-order-summary-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.nd369-cart-order-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.95rem;
}

.nd369-cart-order-summary-list li:last-child {
    border-bottom: none;
}

.nd369-cart-order-summary-name {
    color: #333;
    font-weight: 600;
}

.nd369-cart-order-summary-qty {
    color: var(--secondary-color, #cc3300);
    font-weight: 800;
    white-space: nowrap;
}

.nd369-cart-order-summary-note {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.45;
}

.nd369-cart-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.nd369-cart-form-group {
    margin-bottom: 16px;
}

.nd369-cart-form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.nd369-cart-form-group label .required {
    color: var(--secondary-color, #cc3300);
}

.nd369-cart-form-group input[type="text"],
.nd369-cart-form-group input[type="tel"],
.nd369-cart-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nd369-cart-form-group input:focus,
.nd369-cart-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #004d99);
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.12);
}

.nd369-cart-form-group textarea {
    resize: vertical;
    min-height: 72px;
}

.nd369-cart-order-submit {
    width: 100%;
    margin-top: 4px;
    background: var(--secondary-color, #cc3300);
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nd369-cart-order-submit:hover {
    background: var(--accent-color, #ff6600);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .nd369-cart-hero {
        padding: 32px 16px 28px;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
    }

    .nd369-cart-order-layout,
    .nd369-cart-form-row {
        grid-template-columns: 1fr;
    }

    .nd369-cart-order-summary,
    .nd369-cart-order-form-wrap {
        padding: 22px 18px;
    }
}
