:root {
    --primary: #004d33;
    /* Deep Emerald */
    --primary-light: #006b47;
    --gold: #d4af37;
    --gold-light: #f1d279;
    --bg-ivory: #fdfcf0;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-ivory);
    background-image: var(--pattern);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', 'Amiri', serif;
    font-weight: 700;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-inner {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pattern-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pattern-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.5;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 2s ease-out forwards;
    opacity: 0.5;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.logo-wrapper {
    position: relative;
    width: 150px;
    opacity: 0;
    transform: scale(0.9);
    animation: logoReveal 1s ease-out 1.2s forwards;
}

.loader-logo {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    /* Making logo white/goldish if it was dark */
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 2s infinite 2.5s;
}

@keyframes shimmer {
    to {
        left: 200%;
    }
}

.light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(212, 175, 55, 0.1) 45%,
            rgba(212, 175, 55, 0.2) 50%,
            rgba(212, 175, 55, 0.1) 55%,
            transparent 70%);
    animation: sweep 3s infinite 2.5s;
}

@keyframes sweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    100% {
        transform: translateX(200%) rotate(25deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 252, 240, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

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

.lang-switcher {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.lang-switcher span.active {
    color: var(--gold);
}

.nav-icons {
    display: flex;
    gap: 1.2rem;
}

.nav-icons i {
    color: var(--primary);
    font-size: 1.2rem;
}

.cart-icon {
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1611591437281-460bfbe1220a?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 120px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Darkens the image */
}

.hero-content {
    position: relative;
    color: var(--white);
    padding: 0 1.5rem;
    max-width: 800px;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid var(--gold);
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

/* Arabic RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* Section Titles */
.section-title {
    text-align: center;
    padding: 5rem 1.5rem 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.title-diamond {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
    position: relative;
}

.title-diamond::after {
    content: '◈';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-ivory);
    padding: 0 10px;
    color: var(--gold);
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
}

.category-card {
    position: relative;
    height: 250px;
    background: var(--bg-url) center/cover;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 77, 51, 0.8), transparent);
}

.category-info {
    position: relative;
    color: var(--white);
}

.category-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.view-more {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.product-card {
    background: var(--white);
    padding: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
}

.product-badge.gold {
    background: var(--gold);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    padding-bottom: 10px;
}

.product-card:hover .product-actions {
    bottom: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
}

.product-info {
    padding: 1rem 0.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.price {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--gold);
}

/* About Section */
.about {
    padding: 5rem 1.5rem;
    background: var(--white);
    margin: 5rem 0;
}

.about-img {
    position: relative;
    margin-bottom: 3rem;
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid var(--gold);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--gold);
}

.about-text h2 {
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.feature-item i {
    color: var(--gold);
}

/* Contact */
.contact {
    padding: 5rem 1.5rem;
    background: var(--primary);
    text-align: center;
}

.contact-card {
    color: var(--white);
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.info-item i {
    color: var(--gold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
}

/* Footer */
footer {
    padding: 3rem 1.5rem 8rem;
    /* Space for sticky bar */
    text-align: center;
    background: var(--bg-ivory);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(253, 252, 240, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.whatsapp-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 1rem;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Zoom Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Styles */
@media (min-width: 768px) {

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-container {
        display: flex;
        align-items: center;
        gap: 5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-img,
    .about-text {
        flex: 1;
    }

    .about-img img {
        height: 600px;
    }

    .mobile-sticky-bar {
        display: none;
    }

    .nav-logo {
        height: 130px;
    }

    .hero {
        margin-top: 150px;
    }
}