/* ==========================================================
   Moeen Commerce - Store Page
   Clean Compact Pro Cards
========================================================== */

.mc-store-section,
.mc-store-section * {
    box-sizing: border-box;
}

.mc-store-section {
    --mc-panel: rgba(8, 20, 29, 0.78);
    --mc-card: rgba(7, 18, 27, 0.94);
    --mc-border: rgba(38, 214, 203, 0.18);
    --mc-border-strong: rgba(38, 214, 203, 0.36);
    --mc-teal: #26d6cb;
    --mc-teal-2: #4ee8df;
    --mc-gold: #f2c96b;
    --mc-text: #ffffff;
    --mc-muted: rgba(236, 252, 252, 0.70);
    --mc-soft: rgba(236, 252, 252, 0.50);
    --mc-radius-xl: 22px;
    --mc-radius-lg: 18px;
    --mc-radius-md: 14px;
    --mc-transition: 220ms ease;

    direction: rtl;
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(52px, 7vw, 86px);
}

/* ================================
   Section Head
================================ */

.mc-store-head {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.mc-store-head .section-title {
    margin-top: 12px;
    margin-bottom: 8px;
}

.mc-store-head .section-lead {
    max-width: 680px;
    margin-inline: auto;
}

/* ================================
   Filters
================================ */

.mc-store-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 auto 28px;
}

.mc-filter {
    min-height: 36px;
    padding: 7px 15px;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--mc-muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform var(--mc-transition),
        background var(--mc-transition),
        border-color var(--mc-transition),
        color var(--mc-transition),
        box-shadow var(--mc-transition);
}

.mc-filter:hover {
    transform: translateY(-1px);
    border-color: var(--mc-border-strong);
    color: #fff;
    background: rgba(38, 214, 203, 0.065);
    box-shadow: 0 10px 22px rgba(38, 214, 203, 0.06);
}

.mc-filter.is-active {
    background: linear-gradient(135deg, var(--mc-teal), var(--mc-teal-2));
    border-color: transparent;
    color: #041214;
}

/* ================================
   Grid - Always 3 cards on desktop
================================ */

.mc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* ================================
   Product Card
================================ */

.mc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-xl);
    background:
        radial-gradient(circle at 85% 0%, rgba(38, 214, 203, 0.10), transparent 40%),
        linear-gradient(180deg, rgba(10, 24, 34, 0.95), rgba(4, 10, 15, 0.98));
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.mc-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 214, 203, 0.30);
    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(38, 214, 203, 0.035);
}

.mc-product-card[hidden] {
    display: none !important;
}

/* ================================
   Product Media
================================ */

.mc-product-card__media {
    position: relative;
    aspect-ratio: 16 / 8.4;
    overflow: hidden;
    border-bottom: 1px solid var(--mc-border);
    background:
        linear-gradient(135deg, rgba(38, 214, 203, 0.07), rgba(255, 255, 255, 0.025));
}

.mc-product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(3, 10, 14, 0.52)),
        radial-gradient(circle at 50% 0%, rgba(38, 214, 203, 0.08), transparent 60%);
    pointer-events: none;
}

.mc-product-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition:
        transform 420ms ease,
        filter 420ms ease;
}

.mc-product-card:hover .mc-product-card__media img {
    transform: scale(1.035);
    filter: saturate(1.03) contrast(1.02);
}

.mc-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--mc-teal-2);
    background:
        radial-gradient(circle at 50% 35%, rgba(38, 214, 203, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}

.mc-product-card__placeholder svg {
    width: 52px;
    height: 52px;
    opacity: 0.88;
}

/* ================================
   Badges
================================ */

.mc-product-card__floating-badges {
    position: absolute;
    z-index: 2;
    inset-inline-start: 12px;
    inset-block-end: 12px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.mc-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(242, 201, 107, 0.30);
    background: rgba(3, 10, 14, 0.74);
    color: var(--mc-gold);
    font-size: 10px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.mc-badge--type {
    border-color: rgba(38, 214, 203, 0.34);
    color: var(--mc-teal-2);
}

/* ================================
   Product Body
================================ */

.mc-product-card__body {
    position: relative;
    flex: 1;
    padding: 16px 16px 8px;
}

/* Static icon only - no hover */
.mc-product-card__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 9px;
    border-radius: 12px;
    border: 1px solid var(--mc-border);
    background: rgba(38, 214, 203, 0.08);
    color: var(--mc-teal-2);
}

.mc-product-card__icon svg {
    width: 18px;
    height: 18px;
}

.mc-product-card h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.mc-product-card p {
    min-height: 42px;
    margin: 0;
    color: var(--mc-muted);
    font-size: 12.5px;
    line-height: 1.75;
}

/* ================================
   Feature Bullets - Static, clean
================================ */

.mc-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.mc-product-features li {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(236, 252, 252, 0.78);
    font-size: 10.8px;
    font-weight: 800;
}

.mc-product-features li::before {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-inline-end: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mc-teal), var(--mc-teal-2));

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.2 16.6 4.9 12.3l1.4-1.4 2.9 2.9 8.5-8.5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.2 16.6 4.9 12.3l1.4-1.4 2.9 2.9 8.5-8.5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ================================
   Product Footer
================================ */

.mc-product-card__footer {
    padding: 8px 16px 16px;
}

.mc-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 11px;
    color: var(--mc-gold);
    font-size: 17px;
    line-height: 1.1;
    font-weight: 950;
}

.mc-product-price .amount {
    color: inherit;
}

.mc-price-before {
    color: var(--mc-gold);
    font-weight: 950;
}

.mc-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(38, 214, 203, 0.32);
    background: rgba(38, 214, 203, 0.09);
    color: var(--mc-teal-2);
    font-size: 10.5px;
    font-weight: 950;
}

/* ================================
   Product Actions
================================ */

.mc-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mc-product-actions .mc-btn:only-child {
    grid-column: 1 / -1;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 12.8px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--mc-transition),
        color var(--mc-transition),
        background var(--mc-transition),
        border-color var(--mc-transition),
        box-shadow var(--mc-transition),
        filter var(--mc-transition);
}

.mc-btn:hover {
    transform: translateY(-2px);
}

.mc-btn--primary {
    color: #021214;
    background: linear-gradient(135deg, var(--mc-teal), var(--mc-teal-2));
    box-shadow: 0 14px 30px rgba(38, 214, 203, 0.13);
}

.mc-btn--primary:hover {
    color: #021214;
    filter: brightness(1.04) saturate(1.05);
}

.mc-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.095);
}

.mc-btn--ghost:hover {
    color: var(--mc-teal-2);
    border-color: var(--mc-border-strong);
    background: rgba(38, 214, 203, 0.065);
}

/* ================================
   Empty State
================================ */

.mc-store-empty {
    max-width: 720px;
    margin: 30px auto 0;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-xl);
    background: var(--mc-panel);
}

.mc-store-empty h2 {
    margin: 14px 0 8px;
    color: #fff;
    font-size: 28px;
}

.mc-store-empty p {
    margin: 0;
    color: var(--mc-muted);
}

/* ================================
   Responsive
================================ */

@media (min-width: 1025px) {
    .mc-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .mc-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .mc-store-section {
        padding-top: 36px;
        padding-bottom: 62px;
    }

    .mc-store-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .mc-filter {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .mc-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mc-product-card {
        border-radius: 20px;
    }

    .mc-product-card__media {
        aspect-ratio: 16 / 9;
    }

    .mc-product-card__body {
        padding: 16px 16px 8px;
    }

    .mc-product-card__footer {
        padding: 8px 16px 16px;
    }

    .mc-product-actions {
        grid-template-columns: 1fr;
    }

    .mc-product-card h3 {
        font-size: 17px;
    }

    .mc-product-card p {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-store-section *,
    .mc-store-section *::before,
    .mc-store-section *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================
   Moeen Commerce - Cart Page Stable Premium UI
   Scope: .mc-cart-section
========================================================== */

.mc-cart-section,
.mc-cart-section * {
    box-sizing: border-box;
}

.mc-cart-section {
    --cart-bg: #07131d;
    --cart-panel: rgba(7, 18, 27, 0.92);
    --cart-panel-2: rgba(10, 25, 36, 0.72);
    --cart-border: rgba(38, 214, 203, 0.22);
    --cart-border-strong: rgba(38, 214, 203, 0.42);
    --cart-teal: #26d6cb;
    --cart-teal-2: #4ee8df;
    --cart-gold: #f2c96b;
    --cart-red: #ff7373;
    --cart-text: #ffffff;
    --cart-muted: rgba(236, 252, 252, 0.72);
    --cart-soft: rgba(236, 252, 252, 0.52);
    --cart-radius-xl: 26px;
    --cart-radius-lg: 20px;
    --cart-radius-md: 14px;
    --cart-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);

    direction: rtl;
    padding: clamp(38px, 5vw, 66px) 0 clamp(64px, 7vw, 96px);
}

.mc-cart-section .mc-cart-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.mc-cart-section .woocommerce {
    color: var(--cart-text);
}

/* Notices */
.mc-cart-section .woocommerce-notices-wrapper {
    margin-bottom: 18px;
}

.mc-cart-section .woocommerce-message,
.mc-cart-section .woocommerce-info,
.mc-cart-section .woocommerce-error {
    margin: 0 0 20px;
    padding: 15px 18px;
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.12), transparent 36%),
        rgba(8, 20, 29, 0.84);
    color: var(--cart-muted);
}

.mc-cart-section .woocommerce-message::before,
.mc-cart-section .woocommerce-info::before {
    color: var(--cart-teal);
}

.mc-cart-section .woocommerce-message .button,
.mc-cart-section .woocommerce-info .button {
    float: left;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cart-teal), var(--cart-teal-2));
    color: #021214;
    font-weight: 900;
    text-decoration: none;
}

/* Title */
.mc-cart-section .woocommerce-cart-form::before {
    content: "منتجات السلة";
    display: block;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 950;
}

/* Main cart table */
.mc-cart-section table.shop_table,
.mc-cart-section .woocommerce-cart-form__contents {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius-xl);
    border-collapse: separate;
    border-spacing: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.09), transparent 35%),
        linear-gradient(180deg, rgba(9, 23, 33, 0.94), rgba(4, 10, 15, 0.98));
    box-shadow: var(--cart-shadow);
}

.mc-cart-section table.shop_table th,
.mc-cart-section table.shop_table td {
    border: 0;
    border-bottom: 1px solid rgba(38, 214, 203, 0.14);
    text-align: right;
}

.mc-cart-section table.shop_table th {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(236, 252, 252, 0.78);
    font-size: 13px;
    font-weight: 950;
}

.mc-cart-section table.shop_table td {
    padding: 16px 18px;
    color: var(--cart-muted);
    font-size: 14px;
    vertical-align: middle;
}

.mc-cart-section table.shop_table tbody tr:last-child td {
    border-bottom: 0;
}

/* Product image */
.mc-cart-section .product-thumbnail {
    width: 96px;
}

.mc-cart-section .product-thumbnail img {
    width: 82px;
    height: 62px;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(38, 214, 203, 0.22);
    background: rgba(255, 255, 255, 0.035);
}

/* Product name */
.mc-cart-section .product-name {
    min-width: 230px;
}

.mc-cart-section .product-name a,
.mc-cart-section .product-name .mc-cart-product-name-text {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.6;
    text-decoration: none !important;
    pointer-events: none;
    cursor: default;
}

/* Remove */
.mc-cart-section .product-remove {
    width: 54px;
    text-align: center;
}

.mc-cart-section a.remove {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 115, 115, 0.26);
    background: rgba(255, 115, 115, 0.08);
    color: var(--cart-red) !important;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: 180ms ease;
}

.mc-cart-section a.remove:hover {
    background: rgba(255, 115, 115, 0.18);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Price */
.mc-cart-section .product-price,
.mc-cart-section .product-subtotal {
    color: var(--cart-gold);
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.mc-cart-section .amount {
    color: inherit;
    font-weight: inherit;
}

/* Quantity */
.mc-cart-section .product-quantity {
    min-width: 130px;
}

.mc-cart-section .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(38, 214, 203, 0.22);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
}

.mc-cart-section .quantity .qty {
    width: 54px;
    height: 34px;
    padding: 6px;
    border: 0;
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 950;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.mc-cart-section .quantity .qty::-webkit-inner-spin-button,
.mc-cart-section .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mc-cart-section .mc-cart-qty-btn {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(38, 214, 203, 0.24);
    border-radius: 11px;
    background: rgba(38, 214, 203, 0.10);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    transition: 180ms ease;
}

.mc-cart-section .mc-cart-qty-btn:hover {
    background: linear-gradient(135deg, var(--cart-teal), var(--cart-teal-2));
    color: #021214;
}

/* Actions row */
.mc-cart-section .actions {
    padding: 18px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.08), transparent 36%),
        rgba(8, 20, 29, 0.68);
}

.mc-cart-section .coupon {
    width: min(640px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    float: right !important;
}

.mc-cart-section .coupon::before {
    content: "هل لديك كود خصم؟";
    grid-column: 1 / -1;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.mc-cart-section .coupon::after {
    content: "أدخل الكود ثم اضغط تطبيق الخصم.";
    grid-column: 1 / -1;
    margin-top: -4px;
    color: var(--cart-soft);
    font-size: 12px;
    font-weight: 700;
}

.mc-cart-section .coupon label {
    display: none;
}

.mc-cart-section .coupon .input-text {
    width: 100% !important;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(38, 214, 203, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.mc-cart-section .coupon .input-text::placeholder {
    color: rgba(236, 252, 252, 0.46);
}

.mc-cart-section .coupon .button {
    min-width: 124px;
    height: 44px;
    border-radius: 14px;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cart-teal), var(--cart-teal-2));
    color: #021214;
    font-weight: 950;
}

/* Buttons */
.mc-cart-section .button,
.mc-cart-section button.button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(38, 214, 203, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    transition: 180ms ease;
}

.mc-cart-section .button:hover,
.mc-cart-section button.button:hover {
    border-color: rgba(255, 255, 255, 0.055);
    background: rgba(38, 214, 203, 0.075);
    color: var(--cart-teal-2);
}

.mc-cart-section button.button[name="update_cart"] {
    float: left !important;
    min-width: 132px;
    height: 44px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(38, 214, 203, 0.20);
    color: rgba(236, 252, 252, 0.46);
    opacity: 1;
}

.mc-cart-section button.button[name="update_cart"]:disabled {
    cursor: not-allowed;
}

.mc-cart-section button.button[name="update_cart"].is-ready {
    background: rgba(38, 214, 203, 0.11);
    border-color: rgba(255, 255, 255, 0.055);
    color: var(--cart-teal-2);
}

/* Cart totals */
.mc-cart-section .cart-collaterals {
    margin-top: 28px;
    display: flex;
    justify-content: flex-start;
}

.mc-cart-section .cart-collaterals .cart_totals {
    float: none;
    width: min(460px, 100%);
    padding: 24px;
    border: 1px solid rgba(38, 214, 203, 0.26);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(10, 24, 34, 0.94), rgba(4, 10, 15, 0.98));
    box-shadow: var(--cart-shadow);
}

.mc-cart-section .cart_totals h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 26px;
    font-weight: 950;
}

.mc-cart-section .cart_totals table {
    width: 100%;
    margin: 0 0 20px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.mc-cart-section .cart_totals th,
.mc-cart-section .cart_totals td {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(38, 214, 203, 0.14);
    color: rgba(236, 252, 252, 0.84);
    font-size: 15px;
}

.mc-cart-section .cart_totals td {
    text-align: left;
    color: var(--cart-gold);
    font-weight: 950;
}

.mc-cart-section .cart_totals tr:last-child th,
.mc-cart-section .cart_totals tr:last-child td {
    border-bottom: 0;
}

.mc-cart-section .wc-proceed-to-checkout {
    padding: 0;
}

.mc-cart-section .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cart-teal), var(--cart-teal-2));
    color: #021214;
    font-family: inherit;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 18px 44px rgba(38, 214, 203, 0.15);
}

.mc-cart-section .wc-proceed-to-checkout a.checkout-button:hover {
    transform: translateY(-2px);
    color: #021214;
    filter: brightness(1.04) saturate(1.05);
}

.mc-cart-section .mc-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 12px;
    border-radius: 15px;
    border: 1px solid rgba(38, 214, 203, 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.mc-cart-section .mc-continue-shopping:hover {
    border-color: rgba(38, 214, 203, 0.44);
    background: rgba(38, 214, 203, 0.075);
    color: var(--cart-teal-2);
}

/* Empty */
.mc-cart-section .cart-empty {
    padding: 34px;
    border: 1px solid var(--cart-border);
    border-radius: 26px;
    background: var(--cart-panel);
    color: var(--cart-muted);
}

.mc-cart-section .return-to-shop .button {
    background: linear-gradient(135deg, var(--cart-teal), var(--cart-teal-2));
    color: #021214;
}

/* Responsive */
@media (max-width: 768px) {
    .mc-cart-section table.shop_table,
    .mc-cart-section .woocommerce-cart-form__contents {
        border-radius: 22px;
    }

    .mc-cart-section table.shop_table_responsive tr {
        display: block;
        margin-bottom: 14px;
        border-bottom: 1px solid rgba(38, 214, 203, 0.14);
    }

    .mc-cart-section table.shop_table_responsive tr td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 14px 16px !important;
        text-align: left !important;
    }

    .mc-cart-section table.shop_table_responsive tr td::before {
        color: var(--cart-soft);
        font-weight: 900;
    }

    .mc-cart-section .product-thumbnail {
        display: none !important;
    }

    .mc-cart-section .product-name {
        min-width: 0;
    }

    .mc-cart-section .coupon {
        grid-template-columns: 1fr;
        float: none !important;
    }

    .mc-cart-section .coupon .button,
    .mc-cart-section button.button[name="update_cart"] {
        width: 100%;
        float: none !important;
    }

    .mc-cart-section .cart-collaterals {
        justify-content: stretch;
    }

    .mc-cart-section .cart-collaterals .cart_totals {
        width: 100%;
    }
}

/* ==========================================================
   Moeen Cart Final Refinements
   Notices + Coupon/Update Buttons + Contrast
   Scope: .mc-cart-section
========================================================== */

/* ================================
   Cart remove/undo notice
================================ */

.mc-cart-section .woocommerce-message,
.mc-cart-section .woocommerce-info {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 60px;
    margin: 0 0 26px !important;
    padding: 15px 18px !important;
    border: 1px solid rgba(242, 201, 107, 0.26) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 107, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(10, 24, 34, 0.92), rgba(4, 10, 15, 0.98)) !important;
    color: rgba(236, 252, 252, 0.86) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

/* WooCommerce icon fix */
.mc-cart-section .woocommerce-message::before,
.mc-cart-section .woocommerce-info::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid !important;
    place-items: center;
    margin: 0 !important;
    border-radius: 50%;
    border: 1px solid rgba(242, 201, 107, 0.40);
    background: rgba(242, 201, 107, 0.12);
    color: #f2c96b !important;
    font-size: 14px;
    line-height: 1;
}

/* Undo link: تراجع */
.mc-cart-section .woocommerce-message a,
.mc-cart-section .woocommerce-info a,
.mc-cart-section .woocommerce-message .restore-item,
.mc-cart-section .woocommerce-info .restore-item {
    color: #f2c96b !important;
    font-weight: 950;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(242, 201, 107, 0.55);
    transition:
        color 180ms ease,
        border-color 180ms ease,
        opacity 180ms ease;
}

.mc-cart-section .woocommerce-message a:hover,
.mc-cart-section .woocommerce-info a:hover,
.mc-cart-section .woocommerce-message .restore-item:hover,
.mc-cart-section .woocommerce-info .restore-item:hover {
    color: #4ee8df !important;
    border-color: rgba(78, 232, 223, 0.70);
}

/* Make message button if exists clean */
.mc-cart-section .woocommerce-message .button,
.mc-cart-section .woocommerce-info .button {
    margin-inline-start: auto;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 13px;
    background: rgba(242, 201, 107, 0.14) !important;
    border: 1px solid rgba(242, 201, 107, 0.35) !important;
    color: #f2c96b !important;
    font-size: 12.5px;
    font-weight: 950;
}

.mc-cart-section .woocommerce-message .button:hover,
.mc-cart-section .woocommerce-info .button:hover {
    background: rgba(38, 214, 203, 0.10) !important;
    border-color: rgba(38, 214, 203, 0.42) !important;
    color: #4ee8df !important;
}

/* ================================
   Cart table spacing after notice
================================ */

.mc-cart-section .woocommerce-cart-form::before {
    margin-top: 4px;
}

/* ================================
   Coupon row polish
================================ */

.mc-cart-section .actions {
    border-color: rgba(38, 214, 203, 0.26) !important;
    background:
        radial-gradient(circle at 90% 0%, rgba(38, 214, 203, 0.10), transparent 36%),
        linear-gradient(180deg, rgba(9, 23, 33, 0.95), rgba(4, 10, 15, 0.98)) !important;
}

.mc-cart-section .coupon::before {
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
}

.mc-cart-section .coupon::after {
    color: rgba(236, 252, 252, 0.58);
    font-size: 12.5px;
}

.mc-cart-section .coupon .input-text {
    height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(38, 214, 203, 0.30) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.035)) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800;
}

.mc-cart-section .coupon .input-text::placeholder {
    color: rgba(236, 252, 252, 0.48) !important;
}

.mc-cart-section .coupon .input-text:focus {
    border-color: rgba(242, 201, 107, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(242, 201, 107, 0.10) !important;
}

/* ================================
   Update cart + coupon buttons
   Second brand color: Gold
================================ */

.mc-cart-section .coupon .button,
.mc-cart-section button.button[name="update_cart"] {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(242, 201, 107, 0.42) !important;
    background: linear-gradient(135deg, #f2c96b, #e2ae3f) !important;
    color: #07131d !important;
    font-size: 13.5px !important;
    font-weight: 950 !important;
    box-shadow: 0 14px 32px rgba(242, 201, 107, 0.12);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

.mc-cart-section .coupon .button:hover,
.mc-cart-section button.button[name="update_cart"]:hover,
.mc-cart-section button.button[name="update_cart"].is-ready:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(242, 201, 107, 0.62) !important;
    color: #f2c96b !important;
    box-shadow: 0 10px 24px rgba(242, 201, 107, 0.08);
}

/* Disabled update button: clear but not ugly */
.mc-cart-section button.button[name="update_cart"]:disabled {
    background: rgba(242, 201, 107, 0.10) !important;
    border-color: rgba(242, 201, 107, 0.20) !important;
    color: rgba(242, 201, 107, 0.50) !important;
    box-shadow: none;
    cursor: not-allowed;
}

.mc-cart-section button.button[name="update_cart"].is-ready {
    background: linear-gradient(135deg, #f2c96b, #e2ae3f) !important;
    border-color: rgba(242, 201, 107, 0.48) !important;
    color: #07131d !important;
    opacity: 1;
}

/* ================================
   Remove button refinement
================================ */

.mc-cart-section a.remove {
    border-color: rgba(255, 115, 115, 0.30) !important;
    background: rgba(255, 115, 115, 0.08) !important;
    color: #ff7373 !important;
}

.mc-cart-section a.remove:hover {
    background: rgba(255, 115, 115, 0.18) !important;
    border-color: rgba(255, 115, 115, 0.52) !important;
    color: #ffffff !important;
}

/* ================================
   Quantity buttons contrast
================================ */

.mc-cart-section .mc-cart-qty-btn {
    background: rgba(38, 214, 203, 0.10) !important;
    border-color: rgba(38, 214, 203, 0.28) !important;
    color: #ffffff !important;
}

.mc-cart-section .mc-cart-qty-btn:hover {
    background: linear-gradient(135deg, #26d6cb, #4ee8df) !important;
    border-color: transparent !important;
    color: #07131d !important;
}

/* ================================
   Responsive notice
================================ */

@media (max-width: 768px) {
    .mc-cart-section .woocommerce-message,
    .mc-cart-section .woocommerce-info {
        align-items: flex-start;
        padding: 14px 15px !important;
        font-size: 13px;
    }

    .mc-cart-section .woocommerce-message .button,
    .mc-cart-section .woocommerce-info .button {
        margin-inline-start: 0;
    }
}


/* ==========================================================
   Moeen Cart UX Fixes
   Update button / Coupon button / Product image / Quantity
========================================================== */

/* Center quantity column title and content */
.mc-cart-section table.shop_table th.product-quantity,
.mc-cart-section table.shop_table td.product-quantity {
    text-align: center !important;
}

.mc-cart-section .product-quantity {
    text-align: center !important;
}

.mc-cart-section .quantity {
    margin-inline: auto;
}

/* Slightly bigger product image */
.mc-cart-section .product-thumbnail {
    width: 118px;
}

.mc-cart-section .product-thumbnail img {
    width: 96px !important;
    height: 74px !important;
    border-radius: 17px !important;
    object-fit: cover;
}

/* Keep product name clean and aligned */
.mc-cart-section .product-name {
    min-width: 260px;
}

.mc-cart-section .product-name a,
.mc-cart-section .product-name .mc-cart-product-name-text,
.mc-cart-section .product-name {
    font-size: 15.5px !important;
    font-weight: 950;
}

/* Coupon area better balance */
.mc-cart-section .coupon {
    grid-template-columns: minmax(0, 1fr) 136px !important;
    align-items: end;
}

.mc-cart-section .coupon::before {
    font-size: 15px !important;
    margin-bottom: 0;
}

.mc-cart-section .coupon::after {
    font-size: 12.5px !important;
    color: rgba(236, 252, 252, 0.64) !important;
}

.mc-cart-section .coupon .input-text {
    height: 46px !important;
    padding-inline: 15px !important;
    border-radius: 15px !important;
    border-color: rgba(38, 214, 203, 0.32) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-weight: 800;
}

/* Coupon button: visible text */
.mc-cart-section .coupon .button,
.mc-cart-section .coupon input.button,
.mc-cart-section .coupon button.button {
    width: 136px !important;
    min-width: 136px !important;
    height: 46px !important;
    padding: 0 16px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(242, 201, 107, 0.44) !important;
    background: linear-gradient(135deg, #f2c96b, #e0ae42) !important;
    color: #07131d !important;
    font-size: 13.5px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-align: center !important;
    opacity: 1 !important;
    box-shadow: 0 12px 28px rgba(242, 201, 107, 0.12);
}

.mc-cart-section .coupon .button:hover,
.mc-cart-section .coupon input.button:hover,
.mc-cart-section .coupon button.button:hover {
    background: rgba(255, 255, 255, 0.035) !important;
    color: #f2c96b !important;
    border-color: rgba(242, 201, 107, 0.62) !important;
}

/* Update cart button: readable even when disabled */
.mc-cart-section button.button[name="update_cart"],
.mc-cart-section input.button[name="update_cart"] {
    width: 136px !important;
    min-width: 136px !important;
    height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(242, 201, 107, 0.32) !important;
    background: rgba(242, 201, 107, 0.12) !important;
    color: rgba(242, 201, 107, 0.82) !important;
    font-size: 13.5px !important;
    font-weight: 950 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.mc-cart-section button.button[name="update_cart"]:disabled,
.mc-cart-section input.button[name="update_cart"]:disabled {
    cursor: not-allowed !important;
    background: rgba(242, 201, 107, 0.10) !important;
    color: rgba(242, 201, 107, 0.62) !important;
    border-color: rgba(242, 201, 107, 0.24) !important;
}

.mc-cart-section button.button[name="update_cart"].is-ready,
.mc-cart-section input.button[name="update_cart"].is-ready {
    background: linear-gradient(135deg, #f2c96b, #e0ae42) !important;
    color: #07131d !important;
    border-color: rgba(242, 201, 107, 0.48) !important;
    box-shadow: 0 12px 28px rgba(242, 201, 107, 0.12) !important;
}

.mc-cart-section button.button[name="update_cart"].is-ready:hover,
.mc-cart-section input.button[name="update_cart"].is-ready:hover {
    background: rgba(255, 255, 255, 0.035) !important;
    color: #f2c96b !important;
    border-color: rgba(242, 201, 107, 0.62) !important;
}

/* Quantity buttons stable and premium */
.mc-cart-section .quantity {
    gap: 7px !important;
    padding: 5px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(38, 214, 203, 0.26) !important;
}

.mc-cart-section .quantity .qty {
    width: 54px !important;
    height: 34px !important;
    color: #ffffff !important;
    font-weight: 950 !important;
}

.mc-cart-section .mc-cart-qty-btn {
    width: 31px !important;
    height: 31px !important;
    border-radius: 11px !important;
    background: rgba(38, 214, 203, 0.12) !important;
    border-color: rgba(38, 214, 203, 0.32) !important;
    color: #ffffff !important;
}

.mc-cart-section .mc-cart-qty-btn:hover {
    background: linear-gradient(135deg, #26d6cb, #4ee8df) !important;
    color: #07131d !important;
    border-color: transparent !important;
}

/* Removed item notice */
.mc-cart-section .woocommerce-message,
.mc-cart-section .woocommerce-info {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 17px !important;
    border-radius: 18px !important;
    border-color: rgba(242, 201, 107, 0.30) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 107, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(10, 24, 34, 0.94), rgba(4, 10, 15, 0.98)) !important;
    color: rgba(236, 252, 252, 0.90) !important;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.7;
}

.mc-cart-section .woocommerce-message::before,
.mc-cart-section .woocommerce-info::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid !important;
    place-items: center;
    margin: 0 !important;
    border-radius: 50%;
    border: 1px solid rgba(242, 201, 107, 0.42);
    background: rgba(242, 201, 107, 0.12);
    color: #f2c96b !important;
    font-size: 13px;
    line-height: 1;
}

.mc-cart-section .woocommerce-message a,
.mc-cart-section .woocommerce-info a,
.mc-cart-section .woocommerce-message .restore-item,
.mc-cart-section .woocommerce-info .restore-item {
    color: #f2c96b !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(242, 201, 107, 0.58);
}

.mc-cart-section .woocommerce-message a:hover,
.mc-cart-section .woocommerce-info a:hover,
.mc-cart-section .woocommerce-message .restore-item:hover,
.mc-cart-section .woocommerce-info .restore-item:hover {
    color: #4ee8df !important;
    border-color: rgba(78, 232, 223, 0.70);
}

/* Empty after remove: keep layout elegant */
.mc-cart-section .woocommerce-cart-form__cart-item:only-child {
    margin-bottom: 0;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .mc-cart-section .product-thumbnail {
        width: auto;
    }

    .mc-cart-section .product-thumbnail img {
        width: 82px !important;
        height: 62px !important;
    }

    .mc-cart-section .coupon {
        grid-template-columns: 1fr !important;
    }

    .mc-cart-section .coupon .button,
    .mc-cart-section .coupon input.button,
    .mc-cart-section .coupon button.button,
    .mc-cart-section button.button[name="update_cart"],
    .mc-cart-section input.button[name="update_cart"] {
        width: 100% !important;
        min-width: 100% !important;
    }
}
/* ==========================================================
   Moeen Cart - Coupon Button + Quantity Buttons Final Fix
========================================================== */

/* زر تطبيق الخصم */
.mc-cart-section .coupon .button,
.mc-cart-section .coupon input.button,
.mc-cart-section .coupon button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 140px !important;
    min-width: 140px !important;
    height: 46px !important;
    padding: 0 16px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(242, 201, 107, 0.45) !important;
    background: linear-gradient(135deg, #f2c96b, #e2ae3f) !important;
    color: #07131d !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-align: center !important;
    opacity: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 12px 28px rgba(242, 201, 107, 0.12);
}

.mc-cart-section .coupon .button:hover,
.mc-cart-section .coupon input.button:hover,
.mc-cart-section .coupon button.button:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #f2c96b !important;
    border-color: rgba(242, 201, 107, 0.65) !important;
}

/* حقل الكوبون */
.mc-cart-section .coupon .input-text {
    height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(38, 214, 203, 0.32) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

/* أزرار الكمية */
.mc-cart-section .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 5px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(38, 214, 203, 0.28) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.mc-cart-section .quantity .qty {
    width: 54px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}

.mc-cart-section .quantity .qty::-webkit-inner-spin-button,
.mc-cart-section .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mc-cart-section .mc-cart-qty-btn {
    width: 31px !important;
    height: 31px !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 31px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(38, 214, 203, 0.34) !important;
    background: rgba(38, 214, 203, 0.12) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: 180ms ease;
}

.mc-cart-section .mc-cart-qty-btn:hover {
    background: linear-gradient(135deg, #26d6cb, #4ee8df) !important;
    border-color: transparent !important;
    color: #07131d !important;
}

/* تحديث السلة */
.mc-cart-section button.button[name="update_cart"],
.mc-cart-section input.button[name="update_cart"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 136px !important;
    height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(242, 201, 107, 0.28) !important;
    background: rgba(242, 201, 107, 0.10) !important;
    color: rgba(242, 201, 107, 0.65) !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 950 !important;
    opacity: 1 !important;
}

.mc-cart-section button.button[name="update_cart"].is-ready,
.mc-cart-section input.button[name="update_cart"].is-ready {
    background: linear-gradient(135deg, #f2c96b, #e2ae3f) !important;
    color: #07131d !important;
    border-color: rgba(242, 201, 107, 0.48) !important;
}






/* ==========================================================
   Moeen Commerce - Checkout Page Final Modern UI
   Scope: .mc-checkout-section
========================================================== */

.mc-checkout-section,
.mc-checkout-section * {
    box-sizing: border-box;
}

.mc-checkout-section {
    --co-card: rgba(7, 18, 27, 0.94);
    --co-card-2: rgba(10, 25, 36, 0.90);
    --co-border: rgba(38, 214, 203, 0.22);
    --co-border-strong: rgba(38, 214, 203, 0.46);
    --co-teal: #26d6cb;
    --co-teal-2: #4ee8df;
    --co-gold: #f2c96b;
    --co-gold-2: #e2ae3f;
    --co-red: #ff7373;
    --co-text: #ffffff;
    --co-muted: rgba(236, 252, 252, 0.76);
    --co-soft: rgba(236, 252, 252, 0.56);
    --co-faint: rgba(236, 252, 252, 0.36);
    --co-radius-xl: 28px;
    --co-radius-lg: 22px;
    --co-radius-md: 16px;
    --co-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    --co-transition: 180ms ease;

    direction: rtl;
    padding: clamp(40px, 5vw, 68px) 0 clamp(66px, 7vw, 104px);
}

.mc-checkout-section .mc-checkout-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.mc-checkout-section .woocommerce {
    color: var(--co-text);
}

/* ==========================================================
   Hide unnecessary WooCommerce checkout elements
========================================================== */

.mc-checkout-section .woocommerce-form-coupon-toggle,
.mc-checkout-section .woocommerce-form-login-toggle,
.mc-checkout-section .checkout_coupon,
.mc-checkout-section .woocommerce-additional-fields,
.mc-checkout-section .woocommerce-additional-fields__field-wrapper,
.mc-checkout-section #order_comments_field,
.mc-checkout-section .woocommerce-info:empty,
.mc-checkout-section .woocommerce-message:empty,
.mc-checkout-section .woocommerce-shipping-fields,
.mc-checkout-section .create-account,
.mc-checkout-section .woocommerce-account-fields {
    display: none !important;
}

.mc-checkout-section > .container > .mc-checkout-shell > .woocommerce > .woocommerce-info:first-child {
    display: none !important;
}

/* ==========================================================
   Checkout layout
========================================================== */

.mc-checkout-section form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 26px;
    align-items: start;
    margin: 0;
}

.mc-checkout-section #customer_details {
    grid-column: 1;
    min-width: 0;
}

.mc-checkout-section #order_review_heading,
.mc-checkout-section #order_review {
    grid-column: 2;
}

.mc-checkout-section #customer_details,
.mc-checkout-section #customer_details .col-1,
.mc-checkout-section #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
}

/* ==========================================================
   Billing card
========================================================== */

.mc-checkout-section .woocommerce-billing-fields {
    width: 100%;
    padding: 28px;
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(9, 23, 33, 0.96), rgba(4, 10, 15, 0.99));
    box-shadow: var(--co-shadow);
}

.mc-checkout-section .woocommerce-billing-fields > h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 0;
    line-height: 1.25;
    font-weight: 950;
}

.mc-checkout-section .woocommerce-billing-fields > h3::before {
    content: "بيانات التواصل";
    display: block;
    color: #fff;
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 950;
    letter-spacing: -0.02em;
}

.mc-checkout-section .woocommerce-billing-fields::before {
    
    display: block;
    margin: 0 0 22px;
    color: var(--co-soft);
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.8;
}

/* Fields grid */
.mc-checkout-section .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mc-checkout-section .form-row,
.mc-checkout-section .woocommerce form .form-row,
.mc-checkout-section .form-row-first,
.mc-checkout-section .form-row-last {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mc-checkout-section #billing_first_name_field,
.mc-checkout-section #billing_last_name_field,
.mc-checkout-section #billing_phone_field,
.mc-checkout-section #billing_email_field {
    grid-column: span 1;
}

/* Labels */
.mc-checkout-section label {
    display: block;
    margin-bottom: 8px;
    color: rgba(236, 252, 252, 0.88);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.4;
}

.mc-checkout-section .required {
    color: var(--co-gold);
    text-decoration: none;
}

/* Inputs */
.mc-checkout-section input.input-text,
.mc-checkout-section textarea,
.mc-checkout-section select,
.mc-checkout-section .select2-container--default .select2-selection--single {
    width: 100% !important;
    min-height: 52px;
    border-radius: 16px !important;
    border: 1px solid rgba(38, 214, 203, 0.30) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.035)) !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 850;
    outline: none;
    box-shadow: none !important;
    transition:
        border-color var(--co-transition),
        box-shadow var(--co-transition),
        background var(--co-transition);
}

.mc-checkout-section input.input-text::placeholder,
.mc-checkout-section textarea::placeholder {
    color: rgba(236, 252, 252, 0.44);
}

.mc-checkout-section input.input-text:focus,
.mc-checkout-section textarea:focus,
.mc-checkout-section select:focus,
.mc-checkout-section .select2-container--open .select2-selection--single {
    border-color: rgba(38, 214, 203, 0.62) !important;
    box-shadow: 0 0 0 4px rgba(38, 214, 203, 0.10) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040)) !important;
}

/* Select2 */
.mc-checkout-section .select2-container {
    width: 100% !important;
}

.mc-checkout-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff;
    line-height: 50px;
    padding: 0;
}

.mc-checkout-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
}

/* Validation */
.mc-checkout-section .woocommerce-invalid label {
    color: rgba(255, 155, 155, 0.92);
}

.mc-checkout-section .woocommerce-invalid input.input-text,
.mc-checkout-section .woocommerce-invalid textarea,
.mc-checkout-section .woocommerce-invalid select {
    border-color: rgba(255, 115, 115, 0.50) !important;
    box-shadow: 0 0 0 4px rgba(255, 115, 115, 0.07) !important;
}

.mc-checkout-section .woocommerce-error {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 115, 115, 0.30);
    border-radius: var(--co-radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 115, 115, 0.12), transparent 36%),
        rgba(8, 20, 29, 0.90);
    color: rgba(255, 235, 235, 0.92);
    font-size: 13.5px;
    line-height: 1.8;
}

.mc-checkout-section .woocommerce-error::before {
    color: var(--co-red);
}

/* ==========================================================
   Order review
========================================================== */

.mc-checkout-section #order_review_heading {
    display: none !important;
}

.mc-checkout-section #order_review {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(38, 214, 203, 0.26);
    border-radius: var(--co-radius-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.13), transparent 38%),
        linear-gradient(180deg, rgba(10, 24, 34, 0.95), rgba(4, 10, 15, 0.99));
    box-shadow: var(--co-shadow);
}

.mc-checkout-section #order_review::before {
    content: "ملخص الطلب";
    display: block;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.02em;
}

/* Order table */
.mc-checkout-section table.shop_table,
.mc-checkout-section .woocommerce-checkout-review-order-table {
    width: 100%;
    margin: 0 0 22px;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
}

.mc-checkout-section table.shop_table thead {
    display: none;
}

.mc-checkout-section table.shop_table th,
.mc-checkout-section table.shop_table td {
    padding: 14px 0;
    border: 0 !important;
    border-bottom: 1px solid rgba(38, 214, 203, 0.14) !important;
    color: rgba(236, 252, 252, 0.84);
    font-size: 14.5px;
    text-align: right;
    background: transparent !important;
}

.mc-checkout-section table.shop_table td {
    text-align: left;
}

.mc-checkout-section table.shop_table .product-name {
    text-align: right;
    color: #fff;
    font-weight: 950;
    line-height: 1.7;
}

.mc-checkout-section table.shop_table .product-total,
.mc-checkout-section table.shop_table tfoot td,
.mc-checkout-section table.shop_table .amount {
    color: var(--co-gold);
    font-weight: 950;
    white-space: nowrap;
}

.mc-checkout-section table.shop_table tfoot th {
    color: rgba(236, 252, 252, 0.78);
    font-weight: 950;
}

.mc-checkout-section table.shop_table tr:last-child th,
.mc-checkout-section table.shop_table tr:last-child td {
    border-bottom: 0 !important;
}

/* Highlight order total */
.mc-checkout-section table.shop_table .order-total th,
.mc-checkout-section table.shop_table .order-total td {
    padding-top: 16px;
    color: #fff;
    font-size: 16px;
}

.mc-checkout-section table.shop_table .order-total .amount {
    color: var(--co-gold);
    font-size: 18px;
}

/* ==========================================================
   Payment methods
========================================================== */

.mc-checkout-section #payment {
    background: transparent !important;
    border-radius: 0;
}

.mc-checkout-section #payment ul.payment_methods {
    margin: 0 0 18px;
    padding: 0 !important;
    border: 0 !important;
}

.mc-checkout-section #payment ul.payment_methods::before {
    content: "طريقة الدفع";
    display: block;
    margin: 0 0 12px;
    color: #fff;
    font-size: 19px;
    font-weight: 950;
}

.mc-checkout-section #payment ul.payment_methods li {
    position: relative;
    display: block;
    margin: 0 0 12px !important;
    padding: 15px !important;
    border: 1px solid rgba(38, 214, 203, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    list-style: none;
    transition:
        border-color var(--co-transition),
        background var(--co-transition),
        box-shadow var(--co-transition),
        transform var(--co-transition);
}

.mc-checkout-section #payment ul.payment_methods li:hover {
    transform: translateY(-1px);
    border-color: rgba(38, 214, 203, 0.40);
    background: rgba(38, 214, 203, 0.055);
}

.mc-checkout-section #payment ul.payment_methods li.mc-payment-active {
    border-color: rgba(242, 201, 107, 0.52);
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 107, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 14px 32px rgba(242, 201, 107, 0.08);
}

.mc-checkout-section #payment ul.payment_methods li input[type="radio"] {
    margin: 0 0 0 8px;
    accent-color: var(--co-gold);
}

.mc-checkout-section #payment ul.payment_methods li label {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: calc(100% - 28px);
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.mc-checkout-section #payment ul.payment_methods li img {
    max-height: 34px;
    max-width: 88px;
    margin: 0;
    border-radius: 8px;
    object-fit: contain;
}

/* Payment explanation */
.mc-checkout-section .payment_box {
    margin: 14px 0 0 !important;
    padding: 14px 15px !important;
    border-radius: 15px;
    background: rgba(242, 201, 107, 0.08) !important;
    color: rgba(236, 252, 252, 0.82) !important;
    font-size: 13px;
    line-height: 1.8;
}

.mc-checkout-section .payment_box::before {
    display: none !important;
}

/* Privacy */
.mc-checkout-section .woocommerce-privacy-policy-text {
    margin: 16px 0;
    color: var(--co-soft);
    font-size: 12.5px;
    line-height: 1.9;
}

.mc-checkout-section .woocommerce-privacy-policy-text a {
    color: var(--co-gold);
    text-decoration: none;
}

/* Place order */
.mc-checkout-section #payment .place-order {
    margin: 0;
    padding: 0 !important;
}

.mc-checkout-section #place_order {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--co-teal), var(--co-teal-2));
    color: #021214;
    font-family: inherit;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 18px 44px rgba(38, 214, 203, 0.15);
    cursor: pointer;
    transition:
        transform var(--co-transition),
        filter var(--co-transition),
        box-shadow var(--co-transition),
        background var(--co-transition),
        color var(--co-transition);
}

.mc-checkout-section #place_order:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.035);
    color: var(--co-teal-2);
    outline: 1px solid rgba(38, 214, 203, 0.40);
    filter: none;
    box-shadow: 0 22px 50px rgba(38, 214, 203, 0.12);
}

/* Remove old injected trust note if exists */
.mc-checkout-section .mc-checkout-trust-note {
    display: none !important;
}

/* Free order */
.mc-checkout-section.mc-checkout-free-order #payment ul.payment_methods,
.mc-checkout-section.mc-checkout-free-order .payment_box {
    display: none !important;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1080px) {
    .mc-checkout-section form.checkout {
        grid-template-columns: 1fr;
    }

    .mc-checkout-section #customer_details,
    .mc-checkout-section #order_review_heading,
    .mc-checkout-section #order_review {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .mc-checkout-section {
        padding-top: 34px;
    }

    .mc-checkout-section .woocommerce-billing-fields,
    .mc-checkout-section #order_review {
        padding: 18px;
        border-radius: 22px;
    }

    .mc-checkout-section .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mc-checkout-section #billing_first_name_field,
    .mc-checkout-section #billing_last_name_field,
    .mc-checkout-section #billing_phone_field,
    .mc-checkout-section #billing_email_field {
        grid-column: auto;
    }

    .mc-checkout-section input.input-text,
    .mc-checkout-section textarea,
    .mc-checkout-section select,
    .mc-checkout-section .select2-container--default .select2-selection--single {
        min-height: 48px;
    }

    .mc-checkout-section table.shop_table th,
    .mc-checkout-section table.shop_table td {
        font-size: 13.5px;
    }

    .mc-checkout-section #payment ul.payment_methods li label {
        width: calc(100% - 28px);
        align-items: center;
    }
}

/* ==========================================================
   Moeen Checkout/Cart Notices - Premium Unified UI
   Fix top WooCommerce success/notice bar
========================================================== */

/* إشعارات ووكومرس داخل صفحات المتجر/السلة/الدفع */
.mc-checkout-section .woocommerce-notices-wrapper,
.mc-cart-section .woocommerce-notices-wrapper {
    margin: 0 0 24px !important;
}

/* شريط النجاح / المعلومات */
.mc-checkout-section .woocommerce-message,
.mc-checkout-section .woocommerce-info,
.mc-cart-section .woocommerce-message,
.mc-cart-section .woocommerce-info {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;

    min-height: 64px !important;
    margin: 0 0 24px !important;
    padding: 14px 18px !important;

    border: 1px solid rgba(38, 214, 203, 0.28) !important;
    border-radius: 22px !important;

    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.14), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(242, 201, 107, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(9, 23, 33, 0.96), rgba(4, 10, 15, 0.99)) !important;

    color: rgba(236, 252, 252, 0.90) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.8 !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;

    overflow: hidden;
}

/* لمعة خفيفة داخل الشريط */
.mc-checkout-section .woocommerce-message::after,
.mc-checkout-section .woocommerce-info::after,
.mc-cart-section .woocommerce-message::after,
.mc-cart-section .woocommerce-info::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(38, 214, 203, 0.055),
        transparent
    );
    opacity: 0.75;
}

/* أيقونة ووكومرس */
.mc-checkout-section .woocommerce-message::before,
.mc-checkout-section .woocommerce-info::before,
.mc-cart-section .woocommerce-message::before,
.mc-cart-section .woocommerce-info::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    content: "✓" !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;

    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;

    border-radius: 50% !important;
    border: 1px solid rgba(242, 201, 107, 0.44) !important;
    background:
        radial-gradient(circle, rgba(242, 201, 107, 0.24), rgba(242, 201, 107, 0.08)) !important;

    color: #f2c96b !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 20px rgba(242, 201, 107, 0.10);
}

/* زر عرض السلة داخل الإشعار */
.mc-checkout-section .woocommerce-message .button,
.mc-checkout-section .woocommerce-info .button,
.mc-cart-section .woocommerce-message .button,
.mc-cart-section .woocommerce-info .button {
    order: 3 !important;
    flex: 0 0 auto !important;

    min-height: 42px !important;
    padding: 9px 18px !important;

    border-radius: 14px !important;
    border: 1px solid rgba(38, 214, 203, 0.34) !important;
    background: rgba(38, 214, 203, 0.10) !important;

    color: #4ee8df !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    text-decoration: none !important;

    box-shadow: none !important;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.mc-checkout-section .woocommerce-message .button:hover,
.mc-checkout-section .woocommerce-info .button:hover,
.mc-cart-section .woocommerce-message .button:hover,
.mc-cart-section .woocommerce-info .button:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 201, 107, 0.52) !important;
    background: rgba(242, 201, 107, 0.12) !important;
    color: #f2c96b !important;
}

/* رابط التراجع */
.mc-checkout-section .woocommerce-message a:not(.button),
.mc-checkout-section .woocommerce-info a:not(.button),
.mc-cart-section .woocommerce-message a:not(.button),
.mc-cart-section .woocommerce-info a:not(.button) {
    color: #f2c96b !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(242, 201, 107, 0.55);
}

.mc-checkout-section .woocommerce-message a:not(.button):hover,
.mc-checkout-section .woocommerce-info a:not(.button):hover,
.mc-cart-section .woocommerce-message a:not(.button):hover,
.mc-cart-section .woocommerce-info a:not(.button):hover {
    color: #4ee8df !important;
    border-color: rgba(78, 232, 223, 0.70);
}

/* ضبط نص الإشعار نفسه */
.mc-checkout-section .woocommerce-message,
.mc-checkout-section .woocommerce-info {
    direction: rtl;
    text-align: right;
}

/* موبايل */
@media (max-width: 768px) {
    .mc-checkout-section .woocommerce-message,
    .mc-checkout-section .woocommerce-info,
    .mc-cart-section .woocommerce-message,
    .mc-cart-section .woocommerce-info {
        flex-wrap: wrap;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 14px 15px !important;
        font-size: 13px !important;
        border-radius: 18px !important;
    }

    .mc-checkout-section .woocommerce-message .button,
    .mc-checkout-section .woocommerce-info .button,
    .mc-cart-section .woocommerce-message .button,
    .mc-cart-section .woocommerce-info .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================
   Checkout extra polish
   Colors / spacing / performance-safe refinements
========================================================== */

/* إزالة شريط الكوبون من الدفع نهائيا لو ما زال يظهر */
.mc-checkout-section .woocommerce-form-coupon-toggle,
.mc-checkout-section .checkout_coupon {
    display: none !important;
}

/* ضبط لون الكروت أكثر مع هوية الموقع */
.mc-checkout-section .woocommerce-billing-fields,
.mc-checkout-section #order_review {
    border-color: rgba(38, 214, 203, 0.28) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.13), transparent 38%),
        linear-gradient(180deg, rgba(8, 22, 32, 0.96), rgba(3, 9, 14, 0.99)) !important;
}

/* منع مساحات كبيرة غير لازمة */
.mc-checkout-section form.checkout {
    row-gap: 24px !important;
}

/* تحسين الحقول */
.mc-checkout-section input.input-text,
.mc-checkout-section textarea,
.mc-checkout-section select {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035)) !important;
    border-color: rgba(38, 214, 203, 0.34) !important;
    color: #ffffff !important;
    caret-color: #26d6cb;
}

/* إخفاء لون autofill الأبيض في كروم */
.mc-checkout-section input.input-text:-webkit-autofill,
.mc-checkout-section input.input-text:-webkit-autofill:hover,
.mc-checkout-section input.input-text:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px rgba(9, 23, 33, 0.98) inset !important;
    border-color: rgba(38, 214, 203, 0.42) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* جعل أسعار الملخص أوضح */
.mc-checkout-section #order_review .amount {
    color: #f2c96b !important;
    font-weight: 950 !important;
}

/* تحسين كارت الدفع المختار */
.mc-checkout-section #payment ul.payment_methods li.mc-payment-active {
    border-color: rgba(242, 201, 107, 0.55) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 107, 0.13), transparent 34%),
        rgba(255, 255, 255, 0.045) !important;
}

/* صندوق شرح وسيلة الدفع */
.mc-checkout-section .payment_box {
    border: 1px solid rgba(242, 201, 107, 0.18);
    background:
        linear-gradient(180deg, rgba(242, 201, 107, 0.09), rgba(242, 201, 107, 0.045)) !important;
}

/* زر تأكيد الطلب */
.mc-checkout-section #place_order {
    background: linear-gradient(135deg, #26d6cb, #4ee8df) !important;
    color: #021214 !important;
}

.mc-checkout-section #place_order:hover {
    background: rgba(255, 255, 255, 0.035) !important;
    color: #4ee8df !important;
    border: 1px solid rgba(38, 214, 203, 0.44) !important;
}

/* Performance: تقليل تكلفة التأثيرات على الأجهزة الضعيفة */
@media (prefers-reduced-motion: reduce) {
    .mc-checkout-section *,
    .mc-cart-section * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================
   Moeen Checkout - Phone Field + Error Notice Fix
========================================================== */

/* تأكيد ظهور خانة الجوال */
.mc-checkout-section #billing_phone_field {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-column: span 1 !important;
}

/* ترتيب واضح للحقول الأربعة */
.mc-checkout-section .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.mc-checkout-section #billing_first_name_field,
.mc-checkout-section #billing_last_name_field,
.mc-checkout-section #billing_phone_field,
.mc-checkout-section #billing_email_field {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* مظهر موحد للحقول */
.mc-checkout-section #billing_phone,
.mc-checkout-section #billing_first_name,
.mc-checkout-section #billing_last_name,
.mc-checkout-section #billing_email {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(38, 214, 203, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035)) !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;
    box-shadow: none !important;
}

.mc-checkout-section #billing_phone {
    direction: ltr !important;
    text-align: left !important;
}

.mc-checkout-section #billing_phone::placeholder,
.mc-checkout-section #billing_first_name::placeholder,
.mc-checkout-section #billing_last_name::placeholder,
.mc-checkout-section #billing_email::placeholder {
    color: rgba(236, 252, 252, 0.44) !important;
}

/* لون الخطأ يكون هادئ وليس صارخ */
.mc-checkout-section .woocommerce-invalid label,
.mc-checkout-section .woocommerce-invalid-required-field label {
    color: rgba(255, 170, 170, 0.94) !important;
}

.mc-checkout-section .woocommerce-invalid input.input-text,
.mc-checkout-section .woocommerce-invalid-required-field input.input-text {
    border-color: rgba(255, 115, 115, 0.50) !important;
    box-shadow: 0 0 0 4px rgba(255, 115, 115, 0.07) !important;
}

/* إصلاح صندوق رسائل الخطأ أعلى الدفع */
.mc-checkout-section .woocommerce-error {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    margin: 0 0 24px !important;
    padding: 15px 18px !important;

    border: 1px solid rgba(255, 115, 115, 0.34) !important;
    border-radius: 20px !important;

    background:
        radial-gradient(circle at 100% 0%, rgba(255, 115, 115, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(38, 12, 18, 0.92), rgba(12, 7, 10, 0.98)) !important;

    color: rgba(255, 238, 238, 0.94) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.8 !important;
    list-style: none !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
}

/* لو WooCommerce خرج الرسالة كـ ul/li */
.mc-checkout-section .woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* إصلاح الأيقونة المتداخلة */
.mc-checkout-section .woocommerce-error::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    content: "!" !important;
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;

    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;

    border-radius: 50% !important;
    border: 1px solid rgba(255, 115, 115, 0.48) !important;
    background: rgba(255, 115, 115, 0.14) !important;

    color: #ff9b9b !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

/* إصلاح أيقونات success/info أيضا في checkout */
.mc-checkout-section .woocommerce-message::before,
.mc-checkout-section .woocommerce-info::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

/* إخفاء كوبون الدفع تماما */
.mc-checkout-section .woocommerce-form-coupon-toggle,
.mc-checkout-section .checkout_coupon {
    display: none !important;
}

/* موبايل */
@media (max-width: 768px) {
    .mc-checkout-section .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }

    .mc-checkout-section #billing_first_name_field,
    .mc-checkout-section #billing_last_name_field,
    .mc-checkout-section #billing_phone_field,
    .mc-checkout-section #billing_email_field {
        grid-column: auto !important;
    }

    .mc-checkout-section .woocommerce-error {
        align-items: flex-start !important;
        font-size: 13px !important;
        padding: 14px 15px !important;
    }
}






/* ==========================================================
   Moeen Order Received Page - Calm Compact Final UI
========================================================== */

body.mc-order-received-page .page-hero {
    padding-bottom: clamp(22px, 3vw, 38px) !important;
}

body.mc-order-received-page .page-hero h1 {
    font-size: clamp(38px, 5vw, 64px) !important;
}

body.mc-order-received-page .page-hero p {
    max-width: 620px !important;
}

body.mc-order-received-page .mc-checkout-section {
    padding-top: 18px !important;
    padding-bottom: 70px !important;
}

body.mc-order-received-page .mc-checkout-section .mc-checkout-shell {
    width: min(980px, 100%) !important;
    margin-inline: auto;
}

body.mc-order-received-page .woocommerce-order {
    display: grid !important;
    gap: 18px !important;
    color: #fff;
}

/* Hide noisy default overview/cards */
body.mc-order-received-page .woocommerce-order-overview,
body.mc-order-received-page .woocommerce-customer-details {
    display: none !important;
}

/* Hide default paragraph if we build our own message */
body.mc-order-received-page .woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
    display: none !important;
}

/* Main success notice */
body.mc-order-received-page .woocommerce-thankyou-order-received,
body.mc-order-received-page .woocommerce-notice--success {
    display: none !important;
}

/* New compact success card injected by JS */
body.mc-order-received-page .mc-thankyou-card {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(38, 214, 203, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.13), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(242, 201, 107, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(9, 23, 33, 0.96), rgba(4, 10, 15, 0.99));
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18);
}

body.mc-order-received-page .mc-thankyou-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

body.mc-order-received-page .mc-thankyou-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(242, 201, 107, 0.45);
    background: rgba(242, 201, 107, 0.12);
    color: #f2c96b;
    font-size: 21px;
    font-weight: 950;
}

body.mc-order-received-page .mc-thankyou-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

body.mc-order-received-page .mc-thankyou-desc {
    margin: 0;
    color: rgba(236, 252, 252, 0.72);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.8;
}

body.mc-order-received-page .mc-thankyou-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

body.mc-order-received-page .mc-thankyou-meta-item {
    min-height: 72px;
    padding: 13px 14px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(38, 214, 203, 0.16);
}

body.mc-order-received-page .mc-thankyou-meta-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(236, 252, 252, 0.54);
    font-size: 12px;
    font-weight: 850;
}

body.mc-order-received-page .mc-thankyou-meta-value {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.5;
    word-break: break-word;
}

body.mc-order-received-page .mc-thankyou-meta-value.is-price {
    color: #f2c96b;
}

body.mc-order-received-page .mc-thankyou-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(242, 201, 107, 0.20);
    background: rgba(242, 201, 107, 0.055);
    color: rgba(236, 252, 252, 0.76);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.8;
}

body.mc-order-received-page .mc-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

body.mc-order-received-page .mc-order-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 950;
    text-decoration: none !important;
    transition: 180ms ease;
}

body.mc-order-received-page .mc-order-btn--primary {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #26d6cb, #4ee8df);
    color: #021214 !important;
}

body.mc-order-received-page .mc-order-btn--secondary {
    border: 1px solid rgba(38, 214, 203, 0.28);
    background: rgba(255, 255, 255, 0.035);
    color: #fff !important;
}

body.mc-order-received-page .mc-order-btn:hover {
    transform: translateY(-2px);
}

body.mc-order-received-page .mc-order-btn--secondary:hover {
    border-color: rgba(242, 201, 107, 0.50);
    color: #f2c96b !important;
}

/* Order details: calm simple card */
body.mc-order-received-page .woocommerce-order-details {
    padding: 22px 24px !important;
    border: 1px solid rgba(38, 214, 203, 0.18) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(8, 20, 30, 0.90), rgba(3, 9, 14, 0.98)) !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.14);
}

body.mc-order-received-page .woocommerce-order-details__title {
    margin: 0 0 14px !important;
    color: #fff !important;
    font-size: clamp(22px, 2.2vw, 28px) !important;
    font-weight: 950 !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table thead {
    display: none !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table th,
body.mc-order-received-page .woocommerce-order-details table.shop_table td {
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(38, 214, 203, 0.10) !important;
    background: transparent !important;
    color: rgba(236, 252, 252, 0.80) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table .product-name {
    color: #fff !important;
    font-weight: 950 !important;
    text-align: right !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table .product-total,
body.mc-order-received-page .woocommerce-order-details table.shop_table tfoot td,
body.mc-order-received-page .woocommerce-order-details table.shop_table .amount {
    color: #f2c96b !important;
    font-weight: 950 !important;
    text-align: left !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table tfoot tr:last-child th,
body.mc-order-received-page .woocommerce-order-details table.shop_table tfoot tr:last-child td {
    border-bottom: 0 !important;
    color: #fff !important;
}

body.mc-order-received-page .woocommerce-order-details table.shop_table tfoot tr:last-child .amount {
    color: #f2c96b !important;
    font-size: 16px !important;
}

/* Currency cleanup visuals */
body.mc-order-received-page .amount {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    body.mc-order-received-page .mc-thankyou-meta {
        grid-template-columns: 1fr;
    }

    body.mc-order-received-page .mc-order-actions {
        flex-direction: column;
    }

    body.mc-order-received-page .mc-order-btn {
        width: 100%;
    }

    body.mc-order-received-page .mc-thankyou-card,
    body.mc-order-received-page .woocommerce-order-details {
        padding: 18px !important;
        border-radius: 22px !important;
    }
}


/* ==========================================================
   Moeen Store - Purchased Product State
========================================================== */

.mc-product-owned,
.mc-store-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mc-product-owned__badge {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(38, 214, 203, 0.32);
    background: rgba(38, 214, 203, 0.10);
    color: #4ee8df;
    font-size: 13px;
    font-weight: 950;
}

.mc-product-owned__badge--review {
    border-color: rgba(242, 201, 107, 0.34);
    background: rgba(242, 201, 107, 0.10);
    color: #f2c96b;
}

.mc-store-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 15px;
    font-size: 13.5px;
    font-weight: 950;
    text-decoration: none !important;
    transition: 180ms ease;
}

.mc-store-btn--primary {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #26d6cb, #4ee8df);
    color: #021214 !important;
}

.mc-store-btn--secondary {
    border: 1px solid rgba(38, 214, 203, 0.30);
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff !important;
}

.mc-store-btn:hover {
    transform: translateY(-2px);
}

.mc-store-btn--secondary:hover {
    border-color: rgba(242, 201, 107, 0.50);
    color: #f2c96b !important;
}