body.framera-cart-page {
    --fc-gold: #798831;
    --fc-line: #e2d3c1;
    --fc-muted: #81786e;
    --fc-ink: #292721;
    margin: 0;
    background: #f8f5ef;
    color: var(--fc-ink);
    font-family: Alexandria, Tahoma, Arial, sans-serif;
    direction: rtl;
    line-height: 1.9;
}
#fc-page *, .fc-header * { box-sizing: border-box; }
#fc-page, .fc-header { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.fc-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--fc-line); }
.fc-brand img { width: 180px; height: auto; display: block; }
.fc-header nav { display: flex; align-items: center; gap: 26px; }
.fc-header a { color: var(--fc-gold); text-decoration: none; font-size: 13px; }
.fc-bag { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--fc-line); border-radius: 50%; color: var(--fc-gold); }
.fc-count { position: absolute; top: -6px; right: -5px; min-width: 22px; height: 22px; border-radius: 20px; background: var(--fc-gold); color: white; text-align: center; padding: 0 4px; font-size: 11px; line-height: 22px; }
#fc-page { padding: 42px 0 80px; }
.fc-intro { margin-bottom: 32px; }
.fc-intro .fc-eyebrow { color: var(--fc-gold); font-size: 12px; margin: 0 0 10px; }
.fc-intro h1 { font: 700 clamp(28px, 3.3vw, 44px)/1.6 Alexandria, sans-serif; margin: 0 0 10px; color: var(--fc-ink); }
.fc-intro > p:last-child { color: var(--fc-muted); font-size: 13px; margin: 0; }
#fc-cart > .woocommerce { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
#fc-cart > .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
#fc-cart .woocommerce-notices-wrapper:empty { display: none; }
#fc-cart .woocommerce-cart-form { min-width: 0; margin: 0; }
#fc-cart .shop_table { border: 0; margin: 0; border-collapse: separate; border-spacing: 0; background: transparent; }
#fc-cart .woocommerce-cart-form__contents { display: block; width: 100%; }
#fc-cart .woocommerce-cart-form__contents thead { display: none; }
#fc-cart .woocommerce-cart-form__contents tbody { display: block; }
#fc-cart .woocommerce-cart-form__contents .cart_item {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) auto;
    grid-template-areas: "image name remove" "image price price" "image quantity subtotal";
    gap: 10px 20px;
    align-items: center;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--fc-line);
    border-radius: 20px;
    background: #fffdf9;
}
#fc-cart .cart_item td { display: block; border: 0; padding: 0; text-align: right !important; background: transparent; min-width: 0; }
#fc-cart .cart_item td::before { display: none; }
#fc-cart .cart_item .product-thumbnail { grid-area: image; align-self: start; }
#fc-cart .product-thumbnail img { width: 124px; height: 124px; max-width: 100%; object-fit: contain; border-radius: 12px; background: #f1eade; display: block; }
#fc-cart .product-name { grid-area: name; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
#fc-cart .product-name a { color: var(--fc-ink); text-decoration: none; }
#fc-cart .product-name dl.variation { margin: 9px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 7px; font-size: 11px; line-height: 1.9; color: var(--fc-muted); font-weight: 400; }
#fc-cart dl.variation dt, #fc-cart dl.variation dd { float: none; margin: 0; padding: 0; overflow-wrap: anywhere; }
#fc-cart dl.variation dt { font-weight: 500; }
#fc-cart dl.variation p { margin: 0; }
#fc-cart .product-remove { grid-area: remove; align-self: start; }
#fc-cart a.fc-remove { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; width: auto !important; min-width: 68px; height: 44px !important; padding: 0 8px !important; color: #ba3027 !important; background: transparent !important; border: 0; border-radius: 9px; text-decoration: none; font-size: 11px; font-weight: 400; }
#fc-cart a.fc-remove svg { display: block !important; position: static !important; width: 19px !important; height: 19px !important; flex: 0 0 19px; opacity: 1 !important; visibility: visible !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.8; }
#fc-cart a.fc-remove::before, #fc-cart a.fc-remove::after { content: none !important; display: none !important; }
#fc-cart a.fc-remove span { display: inline !important; }
#fc-cart a.fc-remove:hover { color: #9b3826 !important; background: #fff0ea !important; }
#fc-cart .product-price { grid-area: price; color: var(--fc-muted); font-size: 12px; }
#fc-cart .cart_item td.product-price::before { content: "سعر القطعة: "; display: inline; float: none; font-weight: 400; }
#fc-cart .product-quantity { grid-area: quantity; }
#fc-cart .cart_item td.product-subtotal { grid-area: subtotal; color: var(--fc-gold); font-size: 16px; font-weight: 600; text-align: left !important; }
#fc-cart .woocommerce-Price-currencySymbol { font-size: .8em; margin-inline-start: 4px; }
#fc-cart .quantity { display: inline-flex; align-items: center; direction: ltr; border: 1px solid var(--fc-line); border-radius: 10px; background: #f8f5ef; overflow: hidden; margin: 0; float: none; }
#fc-cart .quantity input.qty { width: 45px; min-height: 44px; padding: 0 3px; border: 0; background: transparent; font: 14px Alexandria, sans-serif; text-align: center; color: var(--fc-ink); box-shadow: none; }
#fc-cart .quantity.fc-enhanced input.qty { appearance: textfield; -moz-appearance: textfield; }
#fc-cart .quantity.fc-enhanced input::-webkit-inner-spin-button, #fc-cart .quantity.fc-enhanced input::-webkit-outer-spin-button { appearance: none; }
#fc-cart .fc-step { width: 38px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--fc-ink); font: 22px Alexandria, sans-serif; cursor: pointer; }
#fc-cart button:disabled { opacity: .45; cursor: not-allowed; }
#fc-cart .woocommerce-cart-form__contents tr:has(> .actions) { display: block; }
#fc-cart .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 0; padding: 8px 0; }
#fc-cart .actions::before, #fc-cart .actions::after { display: none; }
#fc-cart .coupon { display: none !important; float: none; display: flex; flex: 1 1 290px; flex-wrap: wrap; align-items: center; gap: 8px; }
#fc-cart #coupon_code { float: none; width: auto; min-width: 0; flex: 1 1 145px; margin: 0; padding: 12px; border: 1px solid var(--fc-line); border-radius: 10px; background: #fffdf9; font: 12px/1.7 Alexandria, sans-serif; color: var(--fc-ink); min-height: 46px; }
#fc-cart .button { font: 500 12px/1.8 Alexandria, sans-serif; text-decoration: none; border-radius: 10px; border: 1px solid var(--fc-line); padding: 12px 17px; min-height: 46px; background: #fffdf9; color: var(--fc-gold); margin: 0; cursor: pointer; }
#fc-cart .coupon .button { width: auto; float: none; }
/* Keep the native submit control for AJAX serialization, not as UI. */
#fc-cart .actions > button[name="update_cart"] { display: none !important; }
#fc-cart .woocommerce-cart-form__contents tr:has(> .actions) { display: none !important; }
#fc-cart .cart-collaterals { width: 100%; min-width: 0; position: sticky; top: 28px; margin: 0; }
.admin-bar #fc-cart .cart-collaterals { top: 60px; }
#fc-cart .cart_totals { float: none; width: 100%; border: 1px solid var(--fc-line); border-radius: 20px; background: #f0e7d9; padding: 26px; }
#fc-cart .cart_totals h2 { font: 700 21px/1.8 Alexandria, sans-serif; margin: 0 0 22px; color: var(--fc-ink); }
#fc-cart .cart_totals table { width: 100%; font-size: 13px; }
#fc-cart .cart_totals th, #fc-cart .cart_totals td { padding: 15px 0; border: 0; border-bottom: 1px solid #dacbb7; vertical-align: top; font-weight: 400; background: transparent; }
#fc-cart .cart_totals th { text-align: right; width: 34%; }
#fc-cart .cart_totals td { text-align: left; }
#fc-cart .cart_totals td::before { display: none; }
#fc-cart .cart_totals .order-total th, #fc-cart .cart_totals .order-total td { font-weight: 700; font-size: 18px; border-bottom: 0; padding-top: 22px; }
#fc-cart .cart_totals #shipping_method { margin: 0; padding: 0; list-style: none; font-size: 12px; }
#fc-cart .cart_totals #shipping_method li { margin-bottom: 6px; }
#fc-cart .cart_totals label { display: inline; }
#fc-cart .shipping-calculator-button, #fc-cart .woocommerce-remove-coupon { color: var(--fc-gold); font-size: 11px; }
#fc-cart .woocommerce-shipping-destination { font-size: 10px; color: var(--fc-muted); }
#fc-cart .shipping-calculator-form { text-align: right; }
#fc-cart .shipping-calculator-form input, #fc-cart .shipping-calculator-form select { max-width: 100%; width: 100%; padding: 10px; border: 1px solid var(--fc-line); border-radius: 8px; font: 12px Alexandria, sans-serif; background: #fffdf9; }
#fc-cart .wc-proceed-to-checkout { padding: 18px 0 0; }
#fc-cart .wc-proceed-to-checkout .checkout-button { display: block; text-align: center; width: 100%; border: 1px solid var(--fc-gold); background: var(--fc-gold); color: white; font-size: 16px; font-weight: 600; padding: 16px; border-radius: 12px; }
#fc-cart .wc-proceed-to-checkout .checkout-button:hover { background: #5d6926; }
#fc-status { min-height: 24px; margin: -12px 0 14px; font-size: 12px; color: var(--fc-muted); }
#fc-error, #fc-cart .woocommerce-error, #fc-cart .woocommerce-message, #fc-cart .woocommerce-info { padding: 14px 18px; border: 1px solid var(--fc-line); border-radius: 12px; background: #fffdf9; color: var(--fc-ink); font: 400 12px/1.9 Alexandria, sans-serif; list-style: none; margin: 0 0 18px; overflow-wrap: anywhere; }
#fc-error, #fc-cart .woocommerce-error { background: #fff0eb; color: #8b3021; border-color: #d7a599; }
#fc-error[hidden] { display: none; }
#fc-cart .woocommerce-message::before, #fc-cart .woocommerce-error::before, #fc-cart .woocommerce-info::before { display: none; }
#fc-cart .woocommerce-message a { color: var(--fc-gold); }
#fc-cart .wc-empty-cart-message { text-align: center; padding-top: 38px; }
#fc-cart .wc-empty-cart-message .cart-empty { font-size: 23px; font-weight: 600; padding: 36px 20px; margin: 0; background: transparent; border: 0; }
#fc-cart .return-to-shop { text-align: center; margin: 0; }
#fc-cart .return-to-shop .button { display: inline-block; background: var(--fc-gold); color: white; border-color: var(--fc-gold); min-width: 190px; font-size: 14px; }
#fc-page :focus-visible, .fc-header :focus-visible { outline: 3px solid #798831; outline-offset: 3px; }
#fc-cart .fc-step:focus-visible { outline-offset: -4px; outline-width: 2px; }
#fc-cart .screen-reader-text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 1000px) {
    #fc-cart > .woocommerce { grid-template-columns: minmax(0, 1fr); }
    #fc-cart .cart-collaterals, .admin-bar #fc-cart .cart-collaterals { position: static; }
}
@media (max-width: 600px) {
    #fc-page, .fc-header { width: calc(100% - 32px); }
    .fc-header { padding: 18px 0; }
    .fc-brand img { width: 130px; }
    .fc-header nav { gap: 16px; }
    .fc-header a { font-size: 11px; }
    #fc-page { padding-top: 28px; }
    .fc-intro > p:last-child { font-size: 11px; }
    #fc-cart .woocommerce-cart-form__contents .cart_item { position: relative; grid-template-columns: 86px minmax(0, 1fr); grid-template-areas: "image name" "image price" "quantity subtotal"; padding: 56px 14px 14px; gap: 12px 10px; border-radius: 15px; }
    #fc-cart .product-thumbnail img { width: 86px; height: 100px; }
    #fc-cart .product-name { font-size: 13px; }
    #fc-cart .cart_item .product-remove { position: absolute; top: 7px; left: 5px; }
    #fc-cart .product-name dl.variation { font-size: 10px; grid-template-columns: minmax(0, 1fr); gap: 0; }
    #fc-cart dl.variation dd { margin-bottom: 5px; }
    #fc-cart a.fc-remove { font-size: 10px; }

    #fc-cart .cart_item .product-quantity { width: max-content; border-top: 1px solid var(--fc-line); padding-top: 12px; }
    #fc-cart .cart_item .product-subtotal { align-self: end; white-space: nowrap; font-size: 14px; padding-bottom: 8px; }
    #fc-cart .product-price { font-size: 10px; }
    #fc-cart .cart_totals { padding: 21px; }
    #fc-cart .cart_totals tr { display: table-row; }
    #fc-cart .cart_totals th, #fc-cart .cart_totals td { display: table-cell; }
    #fc-cart .cart_totals th { text-align: right; }
    #fc-cart .cart_totals td { text-align: left !important; }
    #fc-cart .cart_totals .order-total th, #fc-cart .cart_totals .order-total td { font-size: 17px; }
    #fc-cart .actions > button[name="update_cart"] { width: 100%; }
    #fc-cart .coupon { flex-basis: 100%; }
}

/* Brand accents, including quantity controls and selected rates. */
#fc-page h1, #fc-page h2, #fc-page h3,
#fc-cart .product-name, #fc-cart .product-name a,
#fc-cart .cart_totals h2, #fc-cart .fc-step,
#fc-cart .cart_totals .order-total { color: var(--fc-gold); }
#fc-cart input, #fc-cart select { accent-color: var(--fc-gold); }
#fc-cart input[type="radio"]:checked + label,
#fc-cart input[type="checkbox"]:checked + label { color: var(--fc-gold); }
.fc-bag { border-color: var(--fc-gold); }
#fc-cart .button:hover { border-color: var(--fc-gold); }
#fc-cart .return-to-shop .button:hover { background: #5d6926; }
/* No address selector or destination summary on the cart page. */
#fc-cart .woocommerce-shipping-calculator,
#fc-cart .shipping-calculator-button,
#fc-cart .shipping-calculator-form,
#fc-cart .woocommerce-shipping-destination { display: none !important; }
#fc-cart .cart_totals .fc-shipping-note td {
    text-align: right !important;
    color: var(--fc-gold);
    font-size: 12px;
    padding-top: 0;
}
