@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark-blue: #0f2847;
    --primary-blue: #1a3a52;
    --secondary-blue: #2c5aa0;
    --light-blue: #3d7ec8;
    --accent-red: #c41e3a;
    --accent-orange: #ff8c42;
    --accent-gold: #ffc107;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #2c3e50;
    --text-color: #333333;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 24px 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: 'Cairo', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #fafbfc;
    direction: rtl;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ HEADER & NAVIGATION ============ */
header {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    transition: var(--transition);
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-gold);
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 140, 66, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--accent-gold), #ffb300);
    color: var(--primary-dark-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.45);
    background: linear-gradient(135deg, #ffb300, #ff9500);
}

/* ============ CATEGORIES SECTION ============ */
.categories-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #fafbfc 0%, var(--light-gray) 100%);
    margin-bottom: 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-dark-blue);
    margin-bottom: 3.5rem;
    text-align: center;
    font-weight: 900;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.category-btn {
    padding: 1.1rem 2rem;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 35px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
    width: 100%;
    max-width: 220px;
    font-family: 'Cairo', sans-serif;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(26, 58, 82, 0.25);
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
    padding: 5rem 2rem;
    background: #fafbfc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

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

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    transition: var(--transition);
    display: block;
}

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

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 2.7rem;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
}

.product-price-label {
    font-size: 0.75rem;
    color: #999;
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* ============ BUTTONS ============ */
.btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #d42a3f);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 58, 82, 0.4);
}

.btn-small {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1faa50 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-shrink: 0;
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #1faa50 0%, #16843e 100%);
    color: var(--white);
    text-decoration: none;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-gray), #ffffff);
    border-radius: 20px;
    margin: 2rem auto;
    border: 2px dashed var(--border-color);
    max-width: 600px;
}

.empty-state-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 4.5rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 1rem;
    transition: var(--transition);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section a:hover {
    color: var(--accent-gold);
    transform: translateX(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.contact-info-item a {
    margin-bottom: 0;
    display: inline;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #25d366, #1faa50);
    color: var(--white);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #1faa50, #16843e);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .categories-section {
        padding: 3.5rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .categories-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.2rem;
    }

    .category-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        max-width: 100%;
    }

    .products-section {
        padding: 3.5rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.8rem;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .btn-whatsapp {
        width: 100%;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    nav a {
        font-size: 0.85rem;
    }

    .logo {
        gap: 0.5rem;
        font-size: 1.4rem;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding: 3.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .categories-section {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .categories-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .products-section {
        padding: 2.5rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-name {
        font-size: 1.1rem;
        min-height: auto;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.95rem;
    }
}

/* ============ UTILITIES ============ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
