
table {
  width: 100%;
  border-collapse: collapse;
}
thead {
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}
th, td {
  text-align: center;
  padding: 10px;
}
td {
  font-size: 15px;
}
th {
  font-weight: 500;
  font-size: 15px;
  color: rgb(0, 0, 0);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.37);
}
td img {
    width: 30px;
    height: 80px;
    object-fit: cover;
    margin-right: 23px;
}
.quantity-controls-prod {
  width: auto;
  display: flex;
  align-items: center;
  font-size: 12px;
}
.quantity-controls-prod button, .quantity-controls-prod span {
    font-size: 11px;
    padding: 10px 14px;
    border: none;
    outline: none;
    border-radius: 0%
}
  .quantity-controls-prod span {
    font-size: 15px !important;
  }
.quantity-controls-prod span {
  margin: 0 5px;
  padding: 7.5px 14px;
}
td.product {
  width: 40%;
}
.total-box {
  width: 400px;
  padding: 20px;
  height: fit-content;
}
.total-box h3 {
  margin-bottom: 20px;
}
.total-box p {
  font-size: 18px;
  margin-bottom: 20px;
}
.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px 20px;
  background-color: black;
  color: white;
  border: none;
  cursor: pointer;
}
.remove-btn-cart {
    position: absolute;
    background: #e74c3c;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    border: none;
    font-size: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    left: 80px;
    top: 3px;
}
.product {
  width: 300px;
  display: flex;
  align-items: start;
  text-align: start;
}






.lis {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0 0 0;
}
.lis  i {
  margin: 0 20px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.411);

}

.lis li a {
  color: rgba(0, 0, 0, 0.411);
  font-weight: 800;
  font-size: 16px;
}
 .lis li .active {
  color: black;
}

 .these-products {
  height: 90px;
  text-align: center;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 15px;
  font-size: 17px;
  font-weight: 400;
}
.these-products i {
  color: red;
  margin-bottom: 6px;
  margin-right: 6px;
}

.these-products .num {
  background-color: rgba(219, 18, 21, 1);
  color: white;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 13px;
  margin-left: 10px;
}




.shopping-icon {
  width: 100%;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.068);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  margin-bottom: 25px;
}
.shopping-icon  img {
  width: 35px;
  border: 1px solid  rgba(235, 0, 27, 1);
  padding: 1px 6px;
  background-color: white;
  z-index: 9999999;
}
.shopping-icon::before {
  content: '';
  width: 50%;
  height: 100%;
  background-color: rgba(235, 0, 27, 1);
  left: 0;
  top: 0;
  position: absolute;
}
.total-box p  {
  font-size: 13px;
  margin-bottom: 40px;
}
.total-box p  span {
  font-weight: 700;
}


.buy-box .options {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  background-color: rgba(242, 242, 242, 1);
  padding: 35px 25px;
}


.subtotal {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  height: 60px;
}
.subtotal h3{
  font-weight: 400;
}
.subtotal p {
  font-weight: 600;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.87);
}



.safe-checkout {
  text-align: center;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  margin-top: 30px;
}


.buy-icons-container {
  width: 100%;
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  margin: auto;
}
.buy-icons {
  width: 100%;
  display: flex; 
  justify-content: center; 
  align-items: center;
}

.buy-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 3px 13px;
  border: 1px solid rgba(0, 0, 0, 0.123);
}
.buy-icons a i {
  color: blue;
  font-size: 24px;

}

/* زر الشحن */
.shipping-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.shipping-btn button {
  background-color: transparent;
  border: none;
  display: inline;
}
.shipping-btn button i {
    cursor: pointer;
    transition: 0.3s;
    color: black;
    font-size: 18px;
    font-weight: 100;
}
.shipping-btn button.active i{
    color: white;
}

/* شكل الدائرة المخصصة لتغليف الهدية */
.circle-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-top: 10px;
}
.circle-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}
.custom-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: white;
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.397);
}
input[type="checkbox"]:checked + .custom-circle {
    background-color: #007bff;
    border-color: #007bff;
}


.review-section .container {
  flex-direction: column;
}

.review-boxes {
  display: flex;
  justify-content: space-between;
}
.review-boxes .review-box {
  width: 32%;
  border: 1px solid rgba(0, 0, 0, 0.089);
  padding: 30px;
  border-radius: 5px;
}

.review-prod {
  width: 90%;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.096);
}

.rating i {
  color: rgba(255, 123, 84, 1);
}
.review-title {
  font-weight: 600;
  font-size: 15px;
}
.review {
  font-size: 14px;
  margin-top: 10px;
  line-height: 2;
  margin-bottom: 18px;
}
.review-info {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 30px;

}
.review-info span {
  font-weight: 400;
}
.review-prod {
  display: flex;
  align-items: center;
  font-size: 14px;
}
.review-prod img {
  margin-right: 27px;
}
.review-prod h3 {
  font-weight: 600;
  font-size: 13px;
  margin-top: 7px;
}







.may-like h1{
  margin: auto;
  text-align: center;
  font-weight: 500;
  font-size: 30px;
}



.product-cart {
    position: relative;
  cursor: pointer;
  display: flex;
  font-family: Arial, sans-serif;
  text-align: left;
  flex-direction: row !important;
}
.product-cart img {
  width: 90px;
  height: 90px;
}

  .random-products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: start;
    padding: 20px;
  }


  .product {
    cursor: pointer;
    width: 100px;
    display: flex;
    flex-direction: column !important;
    font-family: Arial, sans-serif;
    text-align: left;

  }


    .random-products {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px; 
  }

  .random-products .product {
    margin: auto;
  }
    .product img {
      width: 100%;
      height: auto;
      margin-bottom: 30px;
    }

    .prod-info {
      width: 100px;
    }

    .prod-name-cart {
      width: 100px;
      font-size: 16px;
      font-weight: 400;
      text-shadow: 0 0 1px rgba(0, 0, 0, 0.473);
      color: #444;
      margin: 5px 0;
    }

    .prod-color-cart {
      font-size: 15px;
      color: #747474;
      margin: 10px 0;
    
    }
    .product .price {
      font-weight: bold;
      margin: 5px 0;
    }

    .stars {
      color: gray;
      font-size: 16px;
    }

    .random-products {
      margin: auto;
    }
    .product {
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    .category {
      font-size: 12px;
      color: rgba(0, 0, 0, 0.404);
      margin-bottom: 6px;
    }
    .name {
      font-size: 13px;
      font-weight: 600;
      width: 100%;
    }
    .price {
      color: rgba(0, 0, 0, 0.692);
      font-size: 15px;
    }



    


@media (max-width: 768px) {
  .page-name-head .lis li a {
    font-size: 12px;
  }
  .quantity-controls-prod button, .quantity-controls-prod span {
    border-radius: 50%

  }
  
  .page-name-head .these-products {
    display: block;
    margin-top: 50px;
    font-size: 15px;
  }
  
  .page-name-head .these-products .num {
    width: 80%;
    margin: 10px auto;
  }
  
  .product {
    width: 100%;
  }
  
  .product img {
    width: 100%;
  }
  
  .buy-box,
  .buy-box .options {
    width: 100%;
  }
  
  .total-box {
    padding: 0;
  }
  
  .shopping-icon {
    width: 100%;
  }
  
  .shopping-icon img {
    margin-top: -12px;
  }
  
  .review-boxes {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .review-boxes .review-box {
    width: 100%;
  }
  
  .review-prod-info {
    margin-left: 25px;
  }
  
  .may-like h1 {
    font-size: 20px;
  }
  
  .random-products {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .random-products .product .name,
  .random-products .product .category,
  .random-products .product .stars,
  .random-products .product .price {
    width: 100%;
    text-align: center;
  }
  
  .total-box {
    width: 100%;
    margin-top: 33px;
  }

  /* === تصميم جدول الكارت المحسن للشاشات الصغيرة === */
  
  /* إخفاء الجدول التقليدي */
  table {
    width: 100%;
    border: none;
    background: transparent;
  }
  
  thead {
    display: none;
  }
  
  tbody {
    width: 100%;
  }
  
  /* تحويل كل صف إلى كارد منفصل */
  tr {
    width: 100%;
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid rgba(235, 0, 27, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  /* إعادة تصميم الخلايا كعناصر منفصلة */
  td {
    width: 100%;
    display: block;
    padding: 0;
    border: none;
    text-align: left;
    margin-bottom: 15px;
  }
  
  /* تصميم قسم المنتج */
  td.product {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  
  .product {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    position: relative;
  }
  
  .product img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .product-info {
    flex: 1;
  }
  
  .product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
  }
  
  .product-details {
    font-size: 13px;
    color: #6c757d;
  }
  
  /* زر الحذف المحسن */
  .remove-btn-cart {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff4757 0%, #dc3545 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  .remove-btn-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.5);
  }
  

  
  /* إخفاء سعر الوحدة */
  .unit-price {
    display: none;
  }
  
  /* تصميم قسم الكمية والإجمالي */
  .quantity-total {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
  }
  
  /* تحسين أزرار التحكم في الكمية */
  .quantity-controls-prod {
    display: flex;
    align-items: center;
    margin: 0;
    
  }
  
  .quantity-controls-prod button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background:#e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(235, 0, 27, 0.3);
  }
  
  .quantity-controls-prod button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(235, 0, 27, 0.4);
  }
  
  .quantity-controls-prod span {
    margin: 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 25px;
    text-align: center;
  }
  
  /* تصميم عرض الإجمالي */
  .total-price {
    font-size: 18px;
    font-weight: 700;
    color: #eb001b;
    background: linear-gradient(135deg, rgba(235, 0, 27, 0.1) 0%, rgba(255, 71, 87, 0.1) 100%);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(235, 0, 27, 0.2);
  }
  
  /* إضافة تسميات للبيانات */
  .quantity-controls-prod::before {
    content: 'الكمية:';
    position: absolute;
    top: -20px;
    left: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
  }
  
  .total-price::before {
    content: 'الإجمالي: ';
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
  }
  
  /* تحسين التباعد */
  .quantity-total {
    position: relative;
    padding-top: 25px;
  }
  
  /* إضافة تأثير hover للكارد بالكامل */
  tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(235, 0, 27, 0.3);
  }
  
  /* تحسين الانتقالات */
  tr {
    transition: all 0.3s ease;
  }
  
  /* إضافة خط فاصل زخرفي */
  tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #eb001b 0%, #ff4757 100%);
    border-radius: 15px 15px 0 0;
  }
  
  /* تحسين النصوص */
  .product-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  /* إضافة رقم المنتج */
  tr {
    counter-increment: product-counter;
  }
  
  tbody {
    counter-reset: product-counter;
  }
  
  .product::after {
    content: '#' counter(product-counter);
    position: absolute;
    top: -5px;
    right: 40px;
    font-size: 10px;
    font-weight: 600;
    color: #eb001b;
    background-color: rgba(235, 0, 27, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
  }
  
  /* تحسين باقي العناصر */
  .lis {
    margin-bottom: 20px;
    margin-top: -40px;
  }
  
  .lis li a {
    font-size: 12px;
  }
  
  .lis i {
    margin: 0 10px;
  }
  
  .these-products {
    margin: auto;
    margin-top: 80px;
    width: 90%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  .these-products .num {
    width: 100%;
    margin-top: 10px;
  }
  
  .random-products .product {
    margin-bottom: 30px;
  }
  
  .product-cart {
    position: static;
  }
  
  /* تحسين responsive للكمية والإجمالي */
  @media (max-width: 480px) {
    .quantity-total {
      flex-direction: column;
      gap: 15px;
      align-items: stretch;
    }
    
    .quantity-controls-prod {
      justify-content: center;
          margin-top: 25px;
    }
    
    .total-price {
      text-align: center;
    }
    
    .product {
      flex-direction: column;
      text-align: center;
      gap: 4px;
    }
    
    .product img {
      width: 150px !important;
      height: 150px !important;
      margin-bottom: -10px;
    }
        .random-products .product {
        margin-bottom: 30px;
        flex-direction: column !important;
  }
  * {
        cursor: default;
            }
}



