/* Al Arrab — Desktop Mini Cart Drawer | v2.2.7
 * Author: Mohamed El-Sehemy
 * Isolated from the full WooCommerce cart and checkout pages.
 */
#arr-cart-drawer, #arr-cart-drawer * { box-sizing: border-box; }
#arr-cart-drawer[hidden] { display: none !important; }
#arr-cart-drawer {
  --acd-ink: #241a13; --acd-gold: #aa7f43; --acd-line: #e0d3c0;
  position: fixed; inset: 0; z-index: 999999; direction: rtl;
  font-family: "Tajawal", Tahoma, Arial, sans-serif; color: var(--acd-ink);
}
#arr-cart-drawer .acd-overlay {
  position: absolute; inset: 0; background: rgba(17, 12, 8, .65);
  opacity: 0; transition: opacity .28s ease;
}
#arr-cart-drawer .acd-panel {
  position: absolute; inset-block: 0; right: 0; width: min(100%, 460px);
  display: flex; flex-direction: column; background: #fcfaf6; border-left: 1px solid #d0b68c;
  box-shadow: -18px 0 60px rgba(15, 10, 7, .2);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.22,.65,.28,1);
  outline: none; text-align: right;
}
#arr-cart-drawer.is-open .acd-overlay { opacity: 1; }
#arr-cart-drawer.is-open .acd-panel { transform: translateX(0); }
#arr-cart-drawer .acd-head {
  padding: 25px 27px 20px; border-bottom: 1px solid var(--acd-line); background: #f5efe6;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
#arr-cart-drawer .acd-head__eyebrow { margin: 0 0 4px; font-size: 11px; color: #987344; font-weight: 800; }
#arr-cart-drawer .acd-head h2 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 900; color: #251b12; }
#arr-cart-drawer .acd-close {
  display: inline-grid; place-items: center; width: 39px; height: 39px;
  border: 1px solid #cdbda6; background: #fffaf3; border-radius: 0;
  color: #332518; cursor: pointer; font-size: 26px; font-weight: 400;
  line-height: 1; flex-shrink: 0; transition: border-color .2s, background .2s;
}
#arr-cart-drawer .acd-close:hover { background: #ebdeca; border-color: #af8851; }
#arr-cart-drawer .acd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 7px 26px 28px; }
#arr-cart-drawer .acd-message { padding: 50px 12px; text-align: center; font-size: 15px; line-height: 1.9; color: #736251; }
#arr-cart-drawer .acd-message strong { display: block; margin-bottom: 8px; color: #241a13; font-size: 20px; }
#arr-cart-drawer .acd-message button { margin-top: 15px; background: #fff; border: 1px solid var(--acd-line); padding: 10px 24px; font: inherit; color: #392a1c; cursor: pointer; }
#arr-cart-drawer .acd-list { padding: 0; margin: 0; list-style: none; }
#arr-cart-drawer .acd-item {
  display: grid; grid-template-columns: 102px minmax(0,1fr); gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--acd-line); align-items: start;
}
#arr-cart-drawer .acd-thumb { width: 102px; height: 113px; object-fit: contain; background: #f3eade; display: block; }
#arr-cart-drawer .acd-placeholder { display: grid; place-items: center; background: #f3eade; color: #aa895e; font-size: 28px; }
#arr-cart-drawer .acd-name { display: block; text-decoration: none; color: #211811; font-size: 15px; font-weight: 900; line-height: 1.7; margin-bottom: 7px; }
#arr-cart-drawer .acd-name:hover { color: #9e763f; }
#arr-cart-drawer .acd-variation { margin: 0 0 9px; color: #867362; line-height: 1.6; font-size: 12px; }
#arr-cart-drawer .acd-price { display: block; color: #8e632d; font-size: 15px; font-weight: 900; margin-bottom: 12px; }
#arr-cart-drawer .acd-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#arr-cart-drawer .acd-quantity { display: inline-flex; align-items: stretch; height: 36px; background: #fff; border: 1px solid #d9c9b4; }
#arr-cart-drawer .acd-quantity button {
  width: 32px; border: 0; border-radius: 0; background: transparent; color: #433222;
  font: inherit; font-weight: 800; font-size: 18px; cursor: pointer;
}
#arr-cart-drawer .acd-quantity span { display: grid; place-items: center; min-width: 27px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
#arr-cart-drawer .acd-remove { padding: 5px 0; border: 0; background: transparent; color: #967a5d; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 12px; cursor: pointer; }
#arr-cart-drawer button:disabled { opacity: .45; cursor: not-allowed; }
#arr-cart-drawer .acd-foot { padding: 22px 26px 25px; background: #f3ecdf; border-top: 1px solid #ddc9ad; box-shadow: 0 -10px 35px rgba(34, 22, 8, .035); }
#arr-cart-drawer .acd-foot[hidden] { display: none !important; }
#arr-cart-drawer .acd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; font-size: 16px; font-weight: 900; }
#arr-cart-drawer .acd-total strong { color: #91652f; font-size: 21px; white-space: nowrap; }
#arr-cart-drawer .acd-hint { margin: 8px 0 19px; color: #8b7761; font-size: 11px; line-height: 1.8; }
#arr-cart-drawer .acd-checkout, #arr-cart-drawer .acd-view-cart, #arr-cart-drawer .acd-shop-link {
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-size: 14px; font-weight: 900; min-height: 50px; padding: 12px 16px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
#arr-cart-drawer .acd-checkout { color: #f0d6a8; background: #251b13; border: 1px solid #251b13; }
#arr-cart-drawer .acd-checkout:hover { background: #ab834e; border-color: #ab834e; color: #241911; }
#arr-cart-drawer .acd-view-cart { margin-top: 10px; background: transparent; color: #392817; border: 1px solid #c6b295; }
#arr-cart-drawer .acd-view-cart:hover, #arr-cart-drawer .acd-shop-link:hover { background: #eadccb; }
#arr-cart-drawer .acd-shop-link { margin: 18px auto 0; max-width: 240px; border: 1px solid #c6b295; color: #392817; }
#arr-cart-drawer .acd-status { padding: 12px 25px; background: #fff1e4; color: #7b432d; font-size: 12px; line-height: 1.8; }
#arr-cart-drawer .acd-status[hidden] { display: none !important; }
#arr-cart-drawer a:focus-visible, #arr-cart-drawer button:focus-visible { outline: 2px solid #a67b40; outline-offset: 3px; }
/* Lock only the document root. Applying overflow:hidden to body creates a
 * scrolling ancestor that breaks the sticky site header when already scrolled. */
html.arr-cart-drawer-open { overflow: hidden !important; }
@media(max-width:1023px) { #arr-cart-drawer { display: none !important; } }
@media(max-height:640px) and (min-width:1024px) { #arr-cart-drawer .acd-head { padding-block: 13px; } #arr-cart-drawer .acd-foot { padding-block: 14px; } }
@media(prefers-reduced-motion:reduce) { #arr-cart-drawer .acd-panel, #arr-cart-drawer .acd-overlay { transition: none; } }
