* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Arial', sans-serif;
}

:root {
    --primary-color: #5F3BFF; /* بنفسجي Glovo */
    --secondary-color: #00A082; /* تركوازي */
    --accent-color: #FF8A00;  
    --dark-color: #0F0F0F;
    --light-color: #FAFAFA;
    --success-color: #00C853;
    --warning-color: #FF5252;
    --gray-color: #9E9E9E;

    --shadow: 0 8px 24px rgba(95, 59, 255, 0.1); /* ظل بنفسجي خفيف */
}
body {
    background-color: #f8f9fa;
    color: var(--dark-color);
    overflow-x: hidden;
    direction: rtl;
}

/* Navigation */
.navbar {
    position: fixed;
    bottom: 3px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: scale(1.1); 
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
    border-radius: 15px;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--accent-color);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active i {
    transform: scale(1.2);
}

.nav-item:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Sections */
.section {
    display: none;
    padding: 25px;
    padding-bottom: 100px;
    min-height: 100vh;
    animation: fadeIn 0.6s ease-out;
}

.section.active {
    display: block;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease-out;
}

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

.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.title {
    color: var(--dark-color);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: var(--gray-color);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Products */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: cardAppear 0.6s ease-out;
    animation-fill-mode: backwards;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateX(50px) rotateY(30deg); }
    to { opacity: 1; transform: translateX(0) rotateY(0); }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

.product-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card.unavailable {
    opacity: 0.7;
    filter: grayscale(80%);
}

.product-card.sale {
    border: 3px solid var(--warning-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 162, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0); }
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--warning-color), #e76f51);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    transform-origin: center;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    background: white;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-color);
    transition: var(--transition);
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-description {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--gray-color);
    text-decoration: line-through;
    margin-left: 5px;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #c1121f, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(230, 57, 70, 0.4);
}

.add-to-cart:active {
    transform: translateY(1px);
}

.add-to-cart:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Cart Styles */
.cart-items {
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.cart-item {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.cart-item:hover {
    transform: translateX(-5px);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--light-color);
    transition: var(--transition);
}

.cart-item:hover .cart-item-image {
    transform: scale(1.1);
}

.cart-item-details {
    flex: 1;
    padding: 0 15px;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: bold;
    color: var(--dark-color);
}

.quantity-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.quantity-value {
    margin: 0 15px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    color: var(--gray-color);
    cursor: pointer;
    align-self: center;
    font-size: 18px;
    transition: var(--transition);
    padding: 10px;
}

.remove-item:hover {
    color: var(--primary-color);
    transform: rotate(15deg) scale(1.2);
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-top: 3px solid var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.total {
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-color);
    padding-top: 10px;
}

.checkout-form {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.3);
}

.form-input::placeholder {
    color: #aaa;
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(29, 53, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: var(--transition);
}

.submit-btn:hover::after {
    right: 120%;
}

/* Contact Section Styles */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-top: 3px solid var(--success-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: white;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(69, 123, 157, 0.3);
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
}

.contact-item h3 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: 0;
    opacity: 0;
    transition: var(--transition);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:nth-child(1):hover { background: #25D366; } /* WhatsApp */
.social-link:nth-child(2):hover { background: #0088cc; } /* Telegram */
.social-link:nth-child(3):hover { background: #E1306C; } /* Instagram */
.social-link:nth-child(4):hover { background: #000000; } /* TikTok */

.about-text {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 25px;
    line-height: 1.8;
    border-left: 5px solid var(--primary-color);
}

.about-text h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Developer Section */
.developer-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 25px;
    border-top: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.developer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.developer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.developer-card:hover .developer-image {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Admin Section */
.login-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-top: 5px solid var(--dark-color);
    animation: fadeIn 0.8s ease-out;
}

.admin-section {
    display: none;
    animation: fadeIn 0.8s ease-out;
}

.admin-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.admin-products {
    margin-top: 25px;
}

.admin-product-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-right: 5px solid var(--secondary-color);
}

.admin-product-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-product-actions {
    display: flex;
    gap: 10px;
}

.admin-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-btn i {
    font-size: 14px;
}

.edit-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    color: white;
}

.edit-btn:hover {
    background: linear-gradient(135deg, var(--info-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    color: white;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c1121f, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.add-product-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 25px;
    border-left: 5px solid var(--success-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.cancel-btn {
    background: linear-gradient(135deg, var(--gray-color), #5a6268);
    color: white;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268, var(--gray-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px) rotateX(20deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 22px;
    color: var(--dark-color);
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
    transform: rotate(90deg);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(20px);
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 20px;
        padding-bottom: 100px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
    
    .developer-image {
        width: 120px;
        height: 120px;
    }
}

/* Animation Classes */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.rotate {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}
/* أنيميشن بطاقات متطور */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    perspective: 1500px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px) rotateX(15deg);
    animation: cardEntrance 0.8s forwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

.product-card:hover {
    transform: translateY(-10px) rotateY(5deg) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center bottom;
}

.product-card:hover .product-image {
    transform: scale(1.05) translateY(-5px);
}

/* أنيميشن خاص للبطاقات المعروضة للبيع */
.product-card.sale {
    animation: cardEntrance 0.8s forwards, glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px -5px var(--warning-color);
    }
    to {
        box-shadow: 0 0 20px 0px rgba(244, 162, 97, 0.6);
    }
}
:root {
    --primary-color: #E63946; /* أحمر ناري */
    --secondary-color: #F1C40F; /* أصفر ذهبي */
    --accent-color: #E67E22; /* برتقالي */
    --dark-color: #2C3E50; /* أزرق داكن */
    --light-color: #ECF0F1; /* فاتح جداً */
    --success-color: #27AE60; /* أخضر */
    --warning-color: #E74C3C; /* أحمر تحذيري */
    --gray-color: #95A5A6; /* رمادي */
    
    --shadow: 0 8px 24px rgba(230, 57, 70, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
} 
.navbar {
    background: var(--dark-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    transform: scale(1.05);
    transition: var(--transition);
}

.nav-item {
    color: var(--light-color);
    transition: var(--transition);
    position: relative;
}

.nav-item.active {
    color: var(--secondary-color);
    transform: translateY(-10px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-item:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
} 
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    animation: cardEntrance 0.8s forwards;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.product-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.2);
    border-color: rgba(230, 57, 70, 0.3);
}

.sale-badge {
    background: var(--accent-color);
    animation: float 3s ease-in-out infinite, pulse 2s infinite alternate;
}

.product-image {
    transition: transform 0.5s ease, filter 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.add-to-cart {
    background: var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.add-to-cart:hover {
    background: var(--warning-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(230, 57, 70, 0.4);
}

.add-to-cart::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: var(--transition);
}

.add-to-cart:hover::after {
    right: 120%;
} 

/* تأثير الطفو للعناصر المهمة */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* تأثير النبض للتنبيهات */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* تأثير الاهتزاز للتنبيهات */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* تأثير ظهور البطاقات */
@keyframes cardEntrance {
    from { 
        opacity: 0;
        transform: translateY(50px) rotateX(15deg);
    }
    to { 
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* تأثير التوهج للعروض الخاصة */
@keyframes glow {
    from { box-shadow: 0 0 10px -5px var(--accent-color); }
    to { box-shadow: 0 0 20px 0px rgba(230, 126, 34, 0.6); }
}

.product-card.sale {
    animation: cardEntrance 0.8s forwards, glow 2s infinite alternate;
}
.cart-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-right: 4px solid var(--primary-color);
}

.cart-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.15);
}

.quantity-btn {
    background: var(--light-color);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--accent-color);
    color: white;
}

.remove-item:hover {
    color: var(--primary-color);
    animation: shake 0.5s;
}

.cart-summary {
    border-top: 3px solid var(--primary-color);
    background: white;
    box-shadow: var(--shadow);
}

.total {
    color: var(--primary-color);
    font-size: 22px;
} 
.submit-btn {
    background: var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--warning-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: var(--transition);
}

.submit-btn:hover::after {
    right: 120%;
} 
.contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    animation: pulse 1.5s infinite;
}

.social-link {
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link:nth-child(1):hover { background: #25D366; } /* WhatsApp */
.social-link:nth-child(2):hover { background: #0088cc; } /* Telegram */
.social-link:nth-child(3):hover { background: #E1306C; } /* Instagram */
.social-link:nth-child(4):hover { background: #000000; } /* TikTok */ 
.admin-btn {
    transition: var(--transition);
}

.edit-btn {
    background: var(--secondary-color);
}

.edit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.delete-btn {
    background: var(--primary-color);
}

.delete-btn:hover {
    background: var(--warning-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
} 
.toast {
    background: var(--success-color);
    box-shadow: var(--shadow);
    animation: toastIn 0.4s, toastOut 0.4s 2.6s;
}

@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
} 
body {
    background-color: #f5f5f5;
    color: var(--dark-color);
    font-family: 'Tajawal', sans-serif;
    transition: background-color 0.3s ease;
}

.section {
    background-color: transparent;
    transition: all 0.4s ease;
}

.header {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(241, 196, 15, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.logo {
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.3);
}
.navbar {
      position: fixed;
      bottom: 0;
      height: 70px; /* ارتفاع مناسب */
      backdrop-filter: blur(10px); /* تأثير زجاجي */
      /* شفافية */
      border-top: 1px solid rgba(0, 0, 0, 0.1);
  } 
  /* أنماط خيارات الوحدات */
.unit-options {
    margin: 10px 0;
}

.unit-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.unit-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

/* أنماط لوحة الإدارة للوحدات */
.admin-unit-options {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.admin-unit-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.admin-unit-option:last-child {
    margin-bottom: 0;
}

.admin-unit-option input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-unit-option .unit-label {
    min-width: 100px;
}

.admin-unit-option .unit-value {
    min-width: 80px;
}

.admin-unit-option .unit-factor {
    min-width: 60px;
}

.product-units {
    margin-top: 5px;
    color: var(--gray-color);
    font-size: 12px;
}

/* أنماط خيارات الوحدات في بطاقة المنتج */
.unit-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.unit-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.unit-btn:hover {
    background-color: #eee;
}

.unit-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.unit-btn .unit-price {
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 3px;
}

.unit-btn.active .unit-price {
    color: rgba(255, 255, 255, 0.8);
}

.auto-units-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auto-units-btn:hover {
    background: var(--primary-color);
}

.unit-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--light-color);
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
    color: var(--dark-color);
}

.auto-unit-item {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auto-unit-item:last-child {
    margin-bottom: 0;
}
/* إضافة هذه الأنماط إلى ملف CSS الخاص بك */
.order-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    max-width: 90%;
    width: 350px;
    
    display: none;
    animation: fadeInDown 0.5s;
}

.order-confirmation.show {
    display: block;
}

.order-confirmation .checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    animation: checkmarkScale 0.5s;
}

.order-confirmation .checkmark i {
    color: white;
    font-size: 40px;
}

.order-confirmation h3 {
    margin-bottom: 15px;
    color: #333;
}

.order-confirmation p {
    color: #666;
    margin-bottom: 20px;
}

.order-confirmation .close-confirmation {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
/* نظام التحميل الجديد */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.loading-cube {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    margin: 0 5px;
    animation: loadingPulse 1.2s infinite ease-in-out;
}

.loading-cube:nth-child(1) { animation-delay: 0s; }
.loading-cube:nth-child(2) { animation-delay: 0.2s; }
.loading-cube:nth-child(3) { animation-delay: 0.4s; }
.loading-cube:nth-child(4) { animation-delay: 0.6s; }

@keyframes loadingPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* تحسينات تحميل الصور */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
    transition: opacity 0.3s ease;
}

.product-image.lazy {
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

/* أنماط نافذة التأكيد */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.confirm-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.confirm-modal.show {
    display: flex;
}

.confirm-modal.show .confirm-content {
    transform: translateY(0);
}

.confirm-header {
    padding: 15px;
    background-color: #f44336;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-confirm {
    font-size: 1.5rem;
    cursor: pointer;
}

.confirm-body {
    padding: 20px;
    text-align: center;
}

.product-name-confirm {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.confirm-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #eee;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

.cancel-btn:hover {
    background-color: #bdbdbd;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* أنماط حاوية رفع الصورة */
.image-upload-container {
    margin: 20px 0;
    text-align: center;
}

/* تنسيق العنصر الأساسي */
.image-upload-label {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.image-upload-label:hover {
    transform: translateY(-3px);
}

/* تنسيق معاينة الصورة */
.image-preview-container {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.image-upload-label:hover .image-preview-container {
    border-color: #4CAF50;
    background-color: #f0fff0;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* أيقونة الكاميرا */
.upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(76, 175, 80, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.image-upload-label:hover .upload-icon {
    background-color: rgba(76, 175, 80, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

/* نص التوجيه */
.upload-text {
    display: block;
    margin-top: 10px;
    color: #555;
    font-weight: bold;
    transition: color 0.3s;
}

.image-upload-label:hover .upload-text {
    color: #4CAF50;
}

/* إخفاء عنصر الإدخال الأصلي */
.image-upload-input {
    display: none;
}

/* متطلبات الصورة */
.image-requirements {
    margin-top: 8px;
    color: #888;
    font-size: 12px;
}

/* تأثير عند اختيار صورة */
.image-preview-container.has-image {
    border-color: #4CAF50;
    border-style: solid;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.has-image .upload-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.has-image + .upload-text {
    color: #4CAF50;
}

/* تأثيرات للجوال */
@media (max-width: 768px) {
    .image-preview-container {
        height: 150px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
/* تأثير اهتزاز عند تحميل صورة جديدة */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.image-preview-container.new-image {
    animation: pulse 0.5s ease;
}

/* زر إزالة الصورة */
.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.image-preview-container:hover .remove-image-btn {
    opacity: 1;
}

/* حاوية عناصر السلة */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 20px;
}

/* عنصر فردي في السلة */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.3s;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

/* صورة المنتج في السلة */
.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* تفاصيل المنتج في السلة */
.cart-item-details {
    flex: 1;
}

.cart-item-name {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
}

/* كمية المنتج */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

.quantity-value {
    min-width: 20px;
    text-align: center;
}

/* زر الحذف */
.remove-item {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: all 0.2s;
    opacity: 0.7;
}

.remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* السلة الفارغة */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}

.browse-products {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.browse-products:hover {
    background-color: var(--primary-dark);
}

/* ملخص السلة */
.cart-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* زر الدفع */
.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.checkout-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* عدّد السلة */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f44336;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* أنماط وحدات القياس */
#unit-options-container {
    margin: 15px 0;
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: 5px;
}

.unit-option {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.unit-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.unit-input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.unit-input-group input.unit-factor {
    max-width: 80px;
}

.remove-unit-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.add-unit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}