* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #C41E3A;
    --secondary-color: #006B3F;
    --accent-color: #FFD700;
    --dark-color: #1a1a1a;
    --light-bg: #F8F9FA;
    --light-gray: #E8EAED;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-radius: 15px;
    --shadow: 0 5px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fff;
    color: var(--dark-text);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, #C41E3A 0%, #006B3F 50%, #FFD700 100%);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.header h1 {
    display: block;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

.add-product-btn {
    background-color: var(--accent-color);
    color: #006B3F;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.add-product-btn:hover {
    background-color: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #C41E3A 0%, #006B3F 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -150px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

/* Categories Section */
.categories-section {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(0, 107, 63, 0.05) 100%);
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-color);
}

.category-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: inline-block;
}

.category-card h3 {
    font-size: 20px;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.category-card p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero > .hero-content > p:first-of-type {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.cta-button {
    background: white;
    color: var(--secondary-color);
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: -60px 0 80px;
    position: relative;
    z-index: 3;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 600;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.products-section {
    margin-bottom: 100px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-gray) 100%);
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-details {
    padding: 25px;
}

.product-details h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
}

.product-description {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-specs-mini {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.spec-badge {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-gray) 100%);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--dark-text);
    font-weight: 600;
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.view-btn, .delete-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    font-size: 14px;
    text-transform: capitalize;
}

.view-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c55e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    border-radius: var(--border-radius);
    padding: 60px;
}

.about-section h2 {
    font-size: 42px;
    color: var(--dark-text);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-section > p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 500;
}

.feature-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.about-image {
    display: none;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 42px;
    color: var(--dark-text);
    margin-bottom: 60px;
    font-weight: 800;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stars {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 500;
}

.testimonial-author {
    display: block;
    font-size: 14px;
    color: var(--light-text);
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-text);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--dark-text);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark-text);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    direction: rtl;
    color: var(--dark-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--light-text);
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Product Detail Modal */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.modal-product-image {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.product-info h2 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 800;
}

.description {
    color: var(--light-text);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 16px;
}

.product-specs {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-gray) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.spec {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec:last-child {
    border-bottom: none;
}

.spec strong {
    color: var(--dark-text);
    font-weight: 700;
}

.order-section {
    margin-top: 25px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark-text);
}

.quantity-selector input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 15px;
}

.whatsapp-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c55e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #006B3F 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    font-size: 24px;
    transition: var(--transition);
}

.social-link:hover {
    transform: scale(1.2) translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 800;
}

.empty-state p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 16px 28px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .nav-link {
        font-size: 14px;
    }

    .logo {
        width: 40px;
        height: 40px;
        display: block;
    }

    .header h1 {
        font-size: 20px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero > .hero-content > p:first-of-type {
        font-size: 18px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 25px 15px;
    }

    .category-icon {
        font-size: 45px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .stat-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .product-specs-mini {
        gap: 6px;
    }

    .spec-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 24px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .add-product-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .about-image {
        max-width: 100%;
    }

    .product-price {
        font-size: 24px;
    }

    .product-details h3 {
        font-size: 16px;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-whatsapp:hover {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.7);
    width: 120px;
    height: 60px;
    border-radius: 30px;
}

.floating-add-product {
    position: fixed;
    bottom: 110px;
    left: 30px;
    z-index: 1000;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #C41E3A 0%, #FFD700 100%);
    color: #1a1a1a;
    padding: 16px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    transition: var(--transition);
}

.floating-add-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.whatsapp-icon {
    font-size: 32px;
    position: absolute;
    transition: var(--transition);
}

.floating-whatsapp:hover .whatsapp-icon {
    margin-right: 35px;
}

.whatsapp-text {
    position: absolute;
    color: white;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
    font-size: 14px;
}

.floating-whatsapp:hover .whatsapp-text {
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    .floating-whatsapp:hover {
        width: 110px;
        height: 55px;
    }

    .floating-whatsapp:hover .whatsapp-icon {
        margin-right: 30px;
    }
}
