/* Custom Color Variables */
:root {
    --gold: #D4AF37;
    --charcoal: #2C2C2C;
    --marble-white: #F5F5F5;
}

/* Tailwind Custom Colors */
.bg-gold {
    background-color: var(--gold);
}

.text-gold {
    color: var(--gold);
}

.bg-charcoal {
    background-color: var(--charcoal);
}

.text-charcoal {
    color: var(--charcoal);
}

.bg-marble-white {
    background-color: var(--marble-white);
}

.text-marble-white {
    color: var(--marble-white);
}

/* Typography */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Arabic Fonts */
html[dir="rtl"] {
    font-family: 'Cairo', 'Amiri', 'Inter', sans-serif;
}

html[dir="rtl"] .font-playfair {
    font-family: 'Amiri', 'Playfair Display', serif;
}

html[dir="rtl"] .font-inter {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Arabic Fonts */
html[dir="rtl"] {
    font-family: 'Cairo', 'Amiri', 'Inter', sans-serif;
}

html[dir="rtl"] .font-playfair {
    font-family: 'Amiri', 'Playfair Display', serif;
}

html[dir="rtl"] .font-inter {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Navigation */
.nav-link {
    color: var(--marble-white);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--marble-white) 0%, rgba(212, 175, 55, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-section > div {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--gold);
    color: var(--charcoal);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--charcoal);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
    background-color: var(--charcoal);
    color: var(--marble-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.3);
}

/* Featured Cards */
.featured-card {
    background: var(--marble-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.featured-image img.loaded {
    opacity: 1;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

/* Filter Select */
.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--charcoal)/20;
    border-radius: 4px;
    background-color: var(--marble-white);
    color: var(--charcoal);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Product Cards */
.product-card {
    background: var(--marble-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal)/10 0%, var(--charcoal)/20 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.product-type {
    font-size: 14px;
    color: var(--charcoal)/70;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.product-sizes {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--charcoal)/10;
}

.product-sizes-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal)/60;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--gold)/20;
    color: var(--charcoal);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Contact Form */
.contact-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--charcoal)/20;
    border: 2px solid transparent;
    border-radius: 4px;
    color: var(--marble-white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--charcoal)/30;
}

.contact-input::placeholder {
    color: var(--marble-white)/60;
}

/* WhatsApp Button */
.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* PDF Catalog Cards */
.catalog-card {
    background: var(--marble-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.catalog-card-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal)/90 100%);
    color: var(--marble-white);
}

.catalog-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--marble-white);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.catalog-description {
    font-size: 14px;
    color: var(--marble-white)/80;
    line-height: 1.6;
}

.catalog-pdfs {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-item {
    padding: 16px;
    background-color: var(--charcoal)/5;
    border-radius: 6px;
    border: 1px solid var(--charcoal)/10;
    transition: all 0.3s ease;
}

.pdf-item:hover {
    background-color: var(--charcoal)/10;
    border-color: var(--gold)/30;
    transform: translateX(4px);
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--gold);
    color: var(--charcoal);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
}

.pdf-download-btn:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.pdf-download-btn svg {
    flex-shrink: 0;
}

/* Language Switcher Button */
.lang-switcher-btn {
    padding: 8px 16px;
    background-color: var(--gold);
    color: var(--charcoal);
    border: 2px solid var(--gold);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.lang-switcher-btn:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.lang-text {
    font-weight: 700;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .space-x-2 > * + * {
    margin-right: 0.5rem;
    margin-left: 0;
}

html[dir="rtl"] .space-x-8 > * + * {
    margin-right: 2rem;
    margin-left: 0;
}

html[dir="rtl"] .space-x-3 > * + * {
    margin-right: 0.75rem;
    margin-left: 0;
}

html[dir="rtl"] .space-x-4 > * + * {
    margin-right: 1rem;
    margin-left: 0;
}

html[dir="rtl"] .ml-4 {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .pdf-item:hover {
    transform: translateX(-4px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, var(--charcoal)/10 0%, var(--charcoal)/20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal)/40;
    font-size: 14px;
}

