/* ============================================================
   Cart page styles — extracted from inline <style> blocks in
   woocommerce/cart/cart.php. Enqueued only when is_cart().
   ============================================================ */

/* ===== Cart Page — Vendex ===== */
.vx-cart {
    background: #FDFBF8;
    min-height: 60vh;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
}

/* Hero */
.vx-cart-hero {
    position: relative;
    padding: 50px 20px 40px;
    text-align: center;
    overflow: hidden;
}
.vx-cart-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #00184a 0%, #002060 50%, #001540 100%);
}
.vx-cart-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,107,0,0.1) 0%, transparent 60%);
}
.vx-cart-hero-inner {
    position: relative; z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.vx-cart-hero-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,107,0,0.15); border: 1px solid rgba(255,107,0,0.25);
    display: flex; align-items: center; justify-content: center;
}
.vx-cart-hero-icon svg { width: 26px; height: 26px; color: #FF6B00; }
.vx-cart-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.vx-cart-hero-badge {
    display: inline-block;
    background: rgba(255,107,0,0.2);
    border: 1px solid rgba(255,107,0,0.4);
    color: #FFB066;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 600;
}

/* Body */
.vx-cart-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

/* Grid */
.vx-cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

/* ===== Cart Items ===== */
.vx-cart-items-col {
    min-width: 0;
}
.vx-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vx-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: box-shadow 0.2s ease;
}
.vx-cart-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Remove button */
.vx-cart-item-remove {
    position: absolute;
    top: 10px;
    left: 12px;
}
.vx-cart-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F7F4EF;
    color: #999;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}
.vx-cart-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Image */
.vx-cart-item-img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #F7F4EF;
}
.vx-cart-item-img a { display: block; }
.vx-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.vx-cart-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.vx-cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #00184a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.vx-cart-item-name a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.vx-cart-item-name a:hover {
    color: #FF6B00;
}
.vx-cart-item-name .variation {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
    white-space: normal;
}
.vx-cart-item-unit-price {
    font-size: 13px;
    color: #666;
}

/* Quantity controls */
.vx-cart-item-quantity {
    min-width: 110px;
    text-align: center;
}
.vx-cart-item-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.vx-cart-item-quantity .quantity .qty {
    width: 44px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #00184a;
    background: transparent;
    font-family: inherit;
    -moz-appearance: textfield;
    outline: none;
}
.vx-cart-item-quantity .quantity .qty::-webkit-outer-spin-button,
.vx-cart-item-quantity .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Line total */
.vx-cart-item-total {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B00;
    white-space: nowrap;
    min-width: 90px;
    text-align: left;
}

/* Cart actions */
.vx-cart-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.vx-cart-update-btn {
    padding: 12px 28px;
    background: #00184a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}
.vx-cart-update-btn:hover {
    background: #002266;
}
.vx-cart-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #00184a;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    transition: border-color 0.2s, color 0.2s;
}
.vx-cart-continue-btn:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}
.vx-cart-continue-btn svg {
    width: 16px; height: 16px;
}

/* ===== Sidebar ===== */
.vx-cart-sidebar {
    position: sticky;
    top: 20px;
}
.vx-cart-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 28px;
}
.vx-cart-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #00184a;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vx-cart-summary-title svg {
    width: 20px;
    height: 20px;
    fill: #FF6B00;
}

/* Summary rows */
.vx-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    padding: 10px 0;
    border-bottom: 1px solid #F0EDEA;
}
.vx-cart-summary-row:last-of-type {
    border-bottom: none;
}
.vx-cart-summary-row--discount {
    color: #22C55E;
}
.vx-cart-summary-row--discount .vx-coupon-remove {
    color: #dc2626;
    font-size: 12px;
    text-decoration: none;
    margin-right: 6px;
}
.vx-cart-summary-row--discount .vx-coupon-remove:hover {
    text-decoration: underline;
}
.vx-cart-summary-row--total {
    font-size: 18px;
    font-weight: 700;
    color: #00184a;
    border-top: 2px solid #E5E5E5;
    border-bottom: none;
    padding-top: 14px;
    margin-top: 6px;
}
.vx-cart-summary-row--total span:last-child {
    color: #FF6B00;
    font-size: 20px;
}

/* Coupon toggle */
.vx-cart-coupon-wrap {
    margin: 12px 0 14px;
}
.vx-coupon-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 18px 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff6ee 100%);
    border: 1px solid rgba(255, 107, 0, 0.14);
    border-radius: 26px;
    color: #00184a;
    font-size: 14px;
    font-weight: 700;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    cursor: pointer;
    text-align: right;
    box-shadow: 0 16px 36px rgba(0, 24, 74, 0.08);
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
    margin-bottom: 0;
}
.vx-coupon-toggle svg:first-child {
    width: 16px;
    height: 16px;
    stroke: #FF6B00;
    flex-shrink: 0;
}
.vx-coupon-toggle-arrow {
    width: 15px;
    height: 15px;
    margin-right: auto;
    transition: transform 0.12s ease;
    stroke: #9aa3b2;
}
.vx-coupon-toggle--open .vx-coupon-toggle-arrow { transform: rotate(180deg); }
.vx-coupon-toggle:hover {
    border-color: rgba(255, 107, 0, 0.2);
    color: #FF6B00;
    background: #fff9f3;
    box-shadow: 0 18px 38px rgba(0, 24, 74, 0.1);
}
.vx-coupon-toggle--open {
    border-color: rgba(255, 107, 0, 0.18);
    color: #FF6B00;
    background: #fff9f3;
    box-shadow: 0 18px 38px rgba(0, 24, 74, 0.1);
}

/* Coupon box */
.vx-cart-coupon {
    padding: 20px 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff6ee 100%);
    border: 1px solid rgba(255, 107, 0, 0.14);
    border-radius: 26px;
    box-shadow: 0 16px 36px rgba(0, 24, 74, 0.08);
    margin: 10px 0 12px;
}
.vx-coupon-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.vx-coupon-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex: 1 1 260px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}
.vx-coupon-input-wrap:focus-within {
    box-shadow: none;
    transform: none;
}
.vx-coupon-input {
    flex: 1;
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1.5px solid rgba(0, 24, 74, 0.12);
    border-radius: 18px;
    font-size: 15px;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    color: #1f2c45;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    outline: none;
    min-width: 0;
    direction: ltr;
    text-align: left;
}
.vx-coupon-input:focus {
    border-color: rgba(255, 107, 0, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}
.vx-coupon-input::placeholder {
    color: #8f96a8;
}
.vx-coupon-btn.button {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    text-align: center;
    vertical-align: middle;
    min-height: 56px;
    width: auto;
    height: auto;
    padding: 16px 28px;
    background: linear-gradient(135deg, #FF8C00, #FF6B00) !important;
    color: #fff !important;
    border: none;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 700;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif !important;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 4px 16px rgba(255,107,0,0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.vx-coupon-btn.button:hover,
.vx-coupon-btn.button:focus,
.vx-coupon-btn.button:visited {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FF8C00, #FF6B00) !important;
    box-shadow: 0 6px 22px rgba(255,107,0,0.45) !important;
    color: #fff !important;
    text-decoration: none !important;
}
.vx-coupon-btn.button:active {
    transform: translateY(0);
}

/* Checkout button */
.vx-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(255,107,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.vx-cart-checkout-btn:hover,
.vx-cart-checkout-btn:visited,
.vx-cart-checkout-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255,107,0,0.45);
    color: #fff !important;
    text-decoration: none !important;
}
.vx-cart-checkout-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Trust badges */
.vx-cart-trust {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #F0EDEA;
}
.vx-cart-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}
.vx-cart-trust-item svg {
    width: 22px;
    height: 22px;
    fill: #FF6B00;
}
.vx-cart-trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    line-height: 1.3;
}

/* ===== Empty cart redesign ===== */
.vx-empty-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 36px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Main card */
.vx-empty-card {
    width: 100%;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    padding: 44px 32px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.vx-empty-art svg {
    width: 210px;
    height: 180px;
    display: block;
    margin-bottom: 6px;
}
.vx-empty-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #00184a;
    margin: 0;
}
.vx-empty-sub {
    font-size: 14.5px;
    color: #888;
    margin: 0;
    max-width: 340px;
    line-height: 1.65;
}
.vx-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: #fff !important;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(255,107,0,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}
.vx-empty-cta svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.vx-empty-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,0,0.45); color: #fff !important; }

/* Category shortcuts */
.vx-empty-cats-section { width: 100%; text-align: center; }
.vx-empty-cats-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vx-text-muted, #666666);
    margin: 0 0 14px;
}
.vx-empty-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
}
.vx-empty-cat-pill {
    display: inline-block;
    padding: 9px 18px;
    background: #fff;
    color: #00184a;
    border: 1.5px solid #DDD8D2;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.15s;
}
.vx-empty-cat-pill:hover {
    border-color: #FF6B00;
    color: #FF6B00;
    background: #FFFAF6;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Trust strip */
.vx-empty-trust {
    display: flex;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    overflow: hidden;
}
.vx-empty-trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 18px;
    border-right: 1px solid #F0EDEA;
}
.vx-empty-trust-item:last-child { border-right: none; }
.vx-empty-trust-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,140,0,0.12), rgba(255,107,0,0.07));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vx-empty-trust-icon svg { width: 20px; height: 20px; fill: #FF6B00; }
.vx-empty-trust-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}
.vx-empty-trust-text strong { font-size: 13px; font-weight: 700; color: #00184a; }
.vx-empty-trust-text span   { font-size: 11.5px; color: #999; }

@media (max-width: 640px) {
    .vx-empty-card { padding: 32px 20px 28px; }
    .vx-empty-art svg { width: 170px; height: 146px; }
    .vx-empty-trust { flex-direction: column; border-radius: 14px; }
    .vx-empty-trust-item { border-right: none; border-bottom: 1px solid #F0EDEA; }
    .vx-empty-trust-item:last-child { border-bottom: none; }
}

/* Hide update cart button */
button[name="update_cart"],
input[name="update_cart"],
.vx-cart-update-btn {
    display: none !important;
}

/* ===== WC Notices ===== */
.vx-cart .woocommerce-message,
.vx-cart .woocommerce-error,
.vx-cart .woocommerce-info {
    border-radius: 12px;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .vx-cart-grid {
        grid-template-columns: 1fr 320px;
    }
}
@media (max-width: 768px) {
    .vx-cart-grid {
        grid-template-columns: 1fr;
    }
    .vx-cart-sidebar {
        position: static;
    }
    .vx-cart-hero {
        padding: 35px 16px 30px;
    }
    .vx-cart-hero-title {
        font-size: 1.5rem;
    }
    .vx-cart-body {
        padding: 20px 12px 80px;
    }
    .vx-coupon-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .vx-coupon-btn {
        width: 100%;
    }
    /* Card layout: image + info on one row, qty + total on next row */
    .vx-cart-item {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 16px;
        align-items: center;
    }
    .vx-cart-item-remove {
        position: absolute;
        top: 8px;
        left: 8px;
    }
    .vx-cart-item-img {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 10px;
    }
    .vx-cart-item-info {
        grid-column: 2;
        grid-row: 1;
        overflow: hidden;
    }
    .vx-cart-item-name {
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    .vx-cart-item-name a {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .vx-cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
        min-width: auto;
        text-align: right;
    }
    .vx-cart-item-total {
        grid-column: 3;
        grid-row: 1 / 3;
        min-width: auto;
        text-align: left;
        font-size: 15px;
    }
    .vx-cart-trust {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 8px;
    }
    .vx-cart-trust-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex: 1;
        min-width: 60px;
    }
}

/* ===== Qty +/- buttons (elements injected via JS) ===== */

/* Qty +/- buttons (injected via JS) */
.vx-qty-minus,
.vx-qty-plus {
    width: 36px;
    height: 40px;
    border: none;
    background: #F7F4EF;
    color: #00184a;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}
.vx-qty-minus:hover,
.vx-qty-plus:hover {
    background: #FF6B00;
    color: #fff;
}
