/* استایل‌های سبد خرید */
.custom-cart-page {
      direction: rtl;
    text-align: right;
    font-family: "yekan Bakh", Sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
tfoot{
    color: black !important;
}

.pardak td.product-name{
    color: black !important;
}
.pardak span.woocommerce-Price-amount.amount{
    color: black !important;
}
/* مخفی کردن فلش های کم و زیاد در input[type="number"] */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* برای مرورگرهای Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
td{
    color: #333;
}

/* استایل برای ورودی‌ها */
input[type="date"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea {
  width: 100%;
 
  border-radius: 0px !important;
 
  transition: all .3s;
  font-family: inherit; /* استفاده از فونت پیش‌فرض سایت */
}

/* عنوان سبد خرید */
.cart-page-title {
    text-align: right;
    color: #333;
    font-family: inherit;
}

th.product-name, th.product-total{
    background-color: dimgray;
}

.order-review-content{
   direction: rtl;
text-align: right;
font-family: "yekan Bakh", Sans-serif;
background-color: #f9f9f9;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);

}
/* جدول محصولات */
.cart-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 10px;

    border-bottom: 1px solid #ddd;
}


.cart-table th {
    background-color: #f0f0f0;
}

.quantity-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: center;
    direction: rtl;
}

.qty-input {
    width: 60px !important;
    text-align: center;
    font-size: 14px;
    border: none !important;
    border-radius: 0px !important;
    outline: none
    
}

.quantity-buttons {
    display: flex;
    flex-direction: column;
    border: none !important;
    border-radius: 0px !important;
  
}

.quantity-buttons button {
    width: 30px;
    height: 60%;
    background-color: white;
    color: black;
 border-radius: 0px !important;
  border: none !important;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.quantity-buttons button:last-child {
    border-bottom: none !important;
}

.quantity-buttons button:hover {
    background-color: #eee;
}

.quantity-buttons .plus {
    background-color: #28a745; /* سبز */
    color: white;
}

.quantity-buttons .plus:hover {
    background-color: #218838;
}

.quantity-buttons .minus {
    background-color: #dc3545; /* قرمز */
    color: white;
}

.quantity-buttons .minus:hover {
    background-color: #c82333;
}

.quantity-buttons .plus:hover,
.quantity-buttons .plus:active,
.quantity-buttons .plus:focus {
    background-color: #28a745 !important;
    color: white !important;
}

.quantity-buttons .minus:hover,
.quantity-buttons .minus:active,
.quantity-buttons .minus:focus {
    background-color: #dc3545 !important;
    color: white !important;
}


@media (max-width: 600px) {
    .cart-table th,
    .cart-table td {
        font-size: 14px;
        padding: 6px;
    }

    .qty-input {
        width: 28px;
        height: 22px;
        font-size: 13px;
    }

    .quantity-container button {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .discount-code input[type="text"] {
        width: 90%;
        font-size: 14px;
    }

    .checkout-button .button,
    .discount-code button {
        width: 100%;
        font-size: 14px;
    }
}


.cart-summary {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-family: "yekan Bakh", sans-serif;
  direction: rtl;
  text-align: right;
}

.summary-box {
  width: 100%;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  color: #333;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:first-child {
  font-weight: 600;
}

.total-price {
  color: #333;
}

.discount-code-applied {
  color: #28a745;
  font-weight: bold;
}

.discount-code-applied .remove-coupon {
  color: #dc3545;
  text-decoration: none;
  font-size: 14px;
  margin-left: 10px;
}

.discount-code-applied .remove-coupon:hover {
  text-decoration: underline;
}

.discount {
  color: #dc3545; /* قرمز برای تخفیف */
}

.discount-percent {
  color: #007bff; /* آبی برای درصد تخفیف */
}

.final-price {
  font-weight: bold;
  font-size: 18px;
  color: white;
  background-color: #28a745; /* سبز برای قیمت نهایی */
  padding: 10px;
  border-radius: 6px;
}

.final-price-value {
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.checkout-button {
  margin-top: 25px;
  text-align: center;
}

.checkout-button .button {
  background-color: #28a745;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.checkout-button .button:hover {
  background-color: #218838;
}

.summary-row .remove-coupon {
  cursor: pointer;
  color: #dc3545;
  font-size: 14px;
  text-decoration: underline;
}

.summary-row .remove-coupon:hover {
  color: #c82333;
}


/* بخش وارد کردن کد تخفیف */
.discount-code {
    margin-top: 20px;
    text-align: center;
}

.discount-code input[type="text"] {
    padding: 8px;
    width: 300px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit; 
}

.discount-code button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.discount-code button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.discount-code button:active {
    transform: translateY(0);
    background-color: #004494;
}

@media (max-width: 768px) {
    .cart-table th,
    .cart-table td {
        font-size: 14px;
        padding: 6px;
    }

    .quantity-container {
        height: 44px;
    }

    .qty-input {
        width: 28px;
        height: 100%;
        font-size: 13px;
    }

    .quantity-buttons {
        height: 100%;
    }

    .quantity-buttons button {
        width: 22px;
        height: 50%;
        font-size: 12px;
    }

    .discount-code input[type="text"] {
        width: 90%;
        font-size: 14px;
    }

    .discount-code button {
        width: 90%;
        font-size: 14px;
        padding: 10px;
    }

    .checkout-button .button {
        width: 100%;
        font-size: 14px;
    }
}


