body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    direction: rtl;
}
/*body {*/
/*  background-image: url('logo.png');*/
/*  background-size: cover;*/
/*  background-repeat: no-repeat;*/
/*  background-position: center;*/
  /*background-color: rgba(255, 255, 255, 0.1); */
/*}*/

.main-header {
    background-color: #fff;
    border-bottom: 3px solid #FFC107;
    padding: 15px 0;
}

.main-header .container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #333;
}
.logo span {
    color: #FFC107;
}

nav a {
    margin-left: 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    color: #FFC107;
}

.content {
    width: 90%;
    margin: 20px auto;
}

.product-section h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
}


.product-card img {
     max-width: 100%;
    border-radius: 10px;
  width: 100%;           /* تجعل الصورة بعرض الكرت بالكامل */
  height: 300px;         /* طول ثابت يمكنك تغييره حسب التصميم */
  object-fit: cover;     /* تجعل الصورة تغطي الإطار دون تمدد أو فراغ */
  border-radius: 8px;    /* اختياري – يجعل الزوايا ناعمة */
}
.price {
    color: #FFC107;
    font-weight: bold;
    margin: 10px 0;
}

.btn-yellow {
    display: inline-block;
    background-color: #FFC107;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-yellow:hover {
    background-color: #e0a800;
}

.main-footer {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-top: 2px solid #FFC107;
    margin-top: 30px;
}
.product-detail .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px auto;
    max-width: 1000px;
}

.product-image {
    flex: 1 1 400px;
    text-align: center;
    
}

.product-image img {
    max-width: 100%;
    border-radius: 10px;
    max-width: 100%;
    border-radius: 10px;
  width: 100%;           /* تجعل الصورة بعرض الكرت بالكامل */
  height: 400px;         /* طول ثابت يمكنك تغييره حسب التصميم */
  object-fit: cover;     /* تجعل الصورة تغطي الإطار دون تمدد أو فراغ */
  border-radius: 8px; 
}

.product-info {
    flex: 1 1 400px;
}

.product-info h2 {
    color: #333;
    margin-bottom: 10px;
}

.product-info .category {
    font-weight: bold;
    margin-bottom: 10px;
}

.product-info .price {
    color: #FFC107;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.product-info .description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-info .stats {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: #FFC107;
    color: #fff;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table a.btn-yellow {
    padding: 5px 10px;
    font-size: 0.9em;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.category-card {
    background: #FFC107;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 30px 10px;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: scale(1.05);
    cursor: pointer;
}
/*extra*/
number-input .number-input {
    display: flex;
    align-items: center;
}

number-input .button {
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
}

number-input input[type="number"] {
    width: 60px;
    text-align: center;
    font-size: 20px;
    padding: 5px;
    margin: 0 10px;
}
