/* ----------- Cart Container ----------- */
.rdh-cart-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 25px;
    margin: 10px auto !important;
  max-width: 1000px;
}
.rdh-qty-btn.rdh-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ----------- Each Cart Item (Card Style) ----------- */
.rdh-cart-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  gap: 20px;
  align-items: center;
}

.rdh-cart-item:last-child {
  border-bottom: none;
}

.empty-cart-msg{
    display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.empty-cart-msg img{
    width: 20rem;
    max-width: 60%;
    margin-top: 1rem;
}
.empty-cart-msg h2{
    margin: 0;
}
.empty-cart-msg a{
    font-size: 16px !important;
    padding: 10px 20px;
}

.rdh-cart-details {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
  .rdh-cart-img img {
    width: 8rem;
    border-radius:20px;
    object-fit: contain;
  }
/* ----------- Product Name ----------- */
.rdh-cart-title h1 {
  font-size: 15px !important;
  margin: 0 !important;
}

.rdh-cart-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 0 0 6px 0;
}

/* ----------- Attributes ----------- */
.rdh-cart-attrs {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}
.attr-label {
  font-weight: 500;
  color: #444;
}

/* ----------- Price Section ----------- */
.rdh-cart-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 5px 0;
    color: #000000;
    font-size: 12px;
    flex-direction: column;
}
.rdh-cart-price-row .amount {
  color: #000000;
}

.rdh-cart-price {
  color: #222;
  font-weight: 600;
}

/* ----------- Quantity Control ----------- */
.rdh-cart-quantity {
    width: fit-content;
    display: flex;
    align-items: center;
    margin-top: 5px;
    border: 2px solid #F44336;
    border-radius: 15px;
}

.rdh-qty-btn {
    border: 0 !important;
    padding: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    width: 2.3rem;
    border-radius: 15px !important;
  background: #ffffff !important;
  border-radius: 6px;
    font-size: 24px !important;
    color: #F44336 !important;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rdh-qty-btn:hover {
  background: #f0f0f0 !important;
}

.rdh-qty-input {
    border: 0 !important;
    text-align: center !important;
    margin: 0 6px;
    border-radius: 15px !important;
    width: 3rem !important;
    padding: 0 0 !important;
}
/* ----------- Summary Section ----------- */
.rdh-cart-summary {
  border-top: 2px solid #f5f5f5;
  padding-top: 0;
}
.rdh-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: #333;
  margin: 10px 0;
}
.rdh-cart-total-products{
      font-size: 12px;
}
.rdh-cart-total-row .amount{
  color: #333 !important;
}
.rdh-btn {
  background: #00a859;
  color: #fff !important;
  padding: 12px 25px;
  border-radius: 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s ease;
}
.rdh-btn:hover {
  background: #008f4f;
}
.rdh-checkout-btn {
  width: 100%;
  text-align: center;
  font-weight: 600;
}

/* ----------- Loader ----------- */
.rdh-loader {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
}
.rdh-cart-loader.active .rdh-loader {
  display: block;
}

/* ----------- Responsive ----------- */
@media (max-width: 720px) {
  .rdh-cart-item {
    align-items: flex-start;
  }
  .rdh-cart-details {
    flex-direction: column;
    align-items: flex-start;
}
}

.rdh-cart-attrs{
    margin:10px 0 5px;
    padding:0;
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.rdh-cart-attrs li{
    background:#f5f6fa;
    border:1px solid #e2e6f0;
    border-radius:6px;
    padding:4px 8px;
    font-size:12px;
    display:flex;
    align-items:center;
    gap:4px;
    margin: 0;
}

.rdh-cart-attrs .attr-label{
    color:#666;
    font-weight:500;
}

.rdh-cart-attrs .attr-value{
    color:#111;
    font-weight:600;
}



/* ===== RDH CART LOADING OVERLAY ===== */

body.rdh-cart-loading::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

/* loader container */
body.rdh-cart-loading::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e60023; /* قرمز */
    border-radius: 50%;
    animation: rdhSpin 0.8s linear infinite;
    z-index: 9999;
}

/* spin animation */
@keyframes rdhSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
