/* أنماط حقل البحث */
textarea[name="search"] {
    min-height: 4rem;
    max-height: 20rem;
    resize: none;
    transition: height 0.3s ease;
    overflow-y: hidden;
    line-height: 1.5;
    padding: 0.5rem;
}

textarea[name="search"].expanded {
    height: 10rem;
    overflow-y: auto;
}

/* أنماط الاقتراحات */
#suggestions {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-weight: 500;
    display: block;
    animation: fadeIn 0.5s, fadeOut 0.5s 4.5s;
    animation-fill-mode: forwards;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.message.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.message.warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}
.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.product-name {
    font-weight: 600;
    color: #1a365d;
}
.product-make {
    color: #e53e3e;
}
td,
th {
vertical-align: middle;
}

/* تنسيق خاص لخلايا المفضلة والتوفر */
.wishlist-cell,
.availability-cell {
width: 80px;
/* يمكن تعديل القيمة حسب الحاجة */
}

/* تنسيق النجمة في المفضلة */
.wishlist-star {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
}

/* Toast notifications — see css/toast-notifications.css */

/* Mobile Card Layout */
.mobile-cards {
display: none;
}

@media (max-width: 768px) {
.desktop-table {
display: none;
}

.mobile-cards {
display: block;
}

.mobile-card-item {
background: white;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
padding: 1rem;
margin-bottom: 1rem;
}

.mobile-card-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid #f3f4f6;
}

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

.mobile-card-label {
font-weight: 500;
color: #6b7280;
}

.mobile-card-value {
display: flex;
align-items: center;
gap: 0.5rem;
}
}

/* Cart Mobile Styles */
@media (max-width: 768px) {
.cart-item-body {
flex-direction: column;
align-items: flex-start;
}

.quantity-controls {
margin-bottom: 10px;
width: 100%;
justify-content: space-between;
}

.cart-item-price {
align-self: flex-end;
}
}

.pagination-container {
display: flex;
justify-content: center;
margin: 20px 0;
gap: 5px;
}

.pagination-item,
.pagination-active {
padding: 5px 10px;
border: 1px solid #ddd;
text-decoration: none;
}

.pagination-active {
background-color: #C3002F;
color: white;
border-color: #C3002F;
}

.pagination-item:hover {
background-color: #f5f5f5;
}

.cart-container {
transition: all 0.3s ease;
}

.hidden-cart {
display: none;
}

@media (max-width: 768px) {
.mobile-cards {
display: block;
}

.desktop-table {
display: none;
}
}