/*==================================================
HOSTY CART
==================================================*/

/* خلفية السلة */
.woocommerce-cart,
.wc-block-cart {
    background: #f5f7fa;
}

/* الحاوية الرئيسية */
.wc-block-cart {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    direction: rtl;
}

/*==================================================
  المنتجات
==================================================*/

.wc-block-cart-items {
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* كل منتج */
.wc-block-cart-items .wc-block-cart-items__row {
    border-bottom: 1px solid #eeeeee;
    padding: 25px 0;
}

/* آخر منتج */
.wc-block-cart-items .wc-block-cart-items__row:last-child {
    border-bottom: none;
}

/* صورة المنتج */
.wc-block-cart-item__image img {
    width: 95px !important;
    height: 95px !important;
    object-fit: cover;
    border-radius: 15px;
}

/* اسم المنتج */
.wc-block-cart-item__product a {
    color: #222;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.wc-block-cart-item__product a:hover {
    color: #333;
}

/* وصف المنتج */
.wc-block-cart-item__product .wc-block-cart-item__description {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

/* السعر */
.wc-block-components-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/*==================================================
  Quantity
==================================================*/

.wc-block-components-quantity-selector {
    border: 1px solid #dcdfe4 !important;
    border-radius: 10px !important;
    background: #fff;
    overflow: hidden;
    height: 42px;
}

.wc-block-components-quantity-selector input {
    height: 40px;
    min-width: 45px;
    font-size: 15px;
}

.wc-block-components-quantity-selector button {
    color: #444 !important;
    background: transparent !important;
}

/*==================================================
  حذف المنتج
==================================================*/

.wc-block-cart-item__remove-link {
    color: #777 !important;
    font-size: 13px;
    text-decoration: none !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #d33 !important;
}

/*==================================================
  ملخص السلة
==================================================*/

.wc-block-cart__sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* عنوان الإجمالي */
.wc-block-components-totals-wrapper {
    border-top: none !important;
}

/* الإجمالي */
.wc-block-components-totals-item__label {
    font-size: 17px;
    font-weight: 600;
}

.wc-block-components-totals-item__value {
    font-size: 20px;
    font-weight: 700;
}

/*==================================================
  زر إتمام الطلب
==================================================*/

.wc-block-cart__submit-button {
    width: 100%;
    min-height: 55px !important;

    background: #30353a !important;
    color: #fff !important;

    border: none !important;
    border-radius: 12px !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    transition: all 0.25s ease;
}

.wc-block-cart__submit-button:hover {
    background: #22272b !important;
    transform: translateY(-1px);
}

/*==================================================
  كوبون الخصم
==================================================*/

.wc-block-components-totals-coupon {
    margin-top: 15px;
}

.wc-block-components-totals-coupon-link {
    color: #444 !important;
    font-weight: 600;
}

/*==================================================
  إزالة بعض المساحات الزائدة
==================================================*/

.wc-block-cart__main {
    padding: 0 !important;
}

.wc-block-cart__sidebar {
    margin-top: 0 !important;
}

/*==================================================
  RTL
==================================================*/

.wc-block-cart,
.wc-block-cart * {
    text-align: right;
}

.wc-block-cart-item__image {
    text-align: right;
}

/*==================================================
  MOBILE
==================================================*/

@media (max-width: 768px) {

    .wc-block-cart {
        margin: 25px auto;
        padding: 0 12px;
    }

    .wc-block-cart-items {
        padding: 5px 15px;
        border-radius: 16px;
    }

    .wc-block-cart-items .wc-block-cart-items__row {
        padding: 20px 0;
    }

    .wc-block-cart-item__image img {
        width: 75px !important;
        height: 75px !important;
        border-radius: 12px;
    }

    .wc-block-cart-item__product a {
        font-size: 15px;
    }

    .wc-block-cart__sidebar {
        margin-top: 20px !important;
        padding: 20px !important;
        border-radius: 16px;
    }

    .wc-block-cart__submit-button {
        min-height: 52px !important;
        font-size: 16px !important;
    }
}
/*==================================================
  FINAL CART LAYOUT
==================================================*/

/* منع تمدد البطاقات بنفس الارتفاع */
.wc-block-cart {
    align-items: flex-start !important;
}

/* منطقة المنتجات */
.wc-block-cart__main {
    background: #fff;
    border-radius: 20px;
    padding: 10px 25px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    align-self: flex-start !important;
}

/* إلغاء البطاقة المزدوجة حول المنتجات */
.wc-block-cart-items {
    box-shadow: none !important;
    padding: 0 !important;
}

/* ملخص السلة */
.wc-block-cart__sidebar {
    align-self: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 25px !important;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* منع أي عنصر داخلي من إجبار الملخص على الارتفاع */
.wc-block-cart__sidebar > * {
    height: auto !important;
}

/* تحسين المسافات بين المنتجات */
.wc-block-cart-items .wc-block-cart-items__row {
    padding: 22px 0;
}

/* آخر منتج */
.wc-block-cart-items .wc-block-cart-items__row:last-child {
    padding-bottom: 15px;
}

/* زر إتمام الطلب */
.wc-block-cart__submit-button {
    margin-top: 15px !important;
}
/*==================================================
  HOSTY CART - PRODUCT ROWS
==================================================*/

.wc-block-cart-items__row {
    padding: 24px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
}

/* صورة المنتج */
.wc-block-cart-item__image img {
    width: 82px !important;
    height: 82px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

/* اسم المنتج */
.wc-block-components-product-name {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
}

/* وصف المنتج */
.wc-block-cart-item__product .wc-block-components-product-metadata {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-top: 4px !important;
}

/* السعر */
.wc-block-components-product-price {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* صندوق الكمية */
.wc-block-components-quantity-selector {
    border-radius: 10px !important;
    min-height: 40px !important;
    overflow: hidden !important;
}

/* أزرار + و - */
.wc-block-components-quantity-selector__button {
    width: 38px !important;
}

/* رقم الكمية */
.wc-block-components-quantity-selector__input {
    min-width: 35px !important;
    font-size: 15px !important;
}
/* زر حذف المنتج */
.wc-block-cart-item__remove-link {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

