/*
Theme Name: Mharty Child with Aljawhara
Template: mharty
Theme URI: https://mharty.com
Version: 1.0.0
Description: Child theme for Mharty with Aljawhara features integrated
Author: Aljawhara Media Production
Author URI: https://aljawharaa.com
Text Domain: mharty-child
Tags: rtl-language-support, custom-template, media, production, arabic, luxury, woocommerce
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.site-logo{
    max-width: 150px !important;
}
main.woocommerce-page {
    margin-top: -63px;
}
.woo-header {
    padding: 11rem 0 4rem !important;
}
.woocommerce {
    padding: unset !important;
}
:root {
    /* Luxury Gold & Black Color Scheme */
    --primary-color: #216ea6;
    --secondary-color: #1f2937;
    --accent-color: #216ea6;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --bg-light: #fafafa;
    --bg-dark: #111827;
    --white: #ffffff;
    --gold: #216ea6;
    --gold-light: #216ea6;
    --gold-dark: #b8930a;
    --gradient: linear-gradient(135deg, #6d0983 0%, #216ea6 50%, #18bbd8 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease forwards;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-family: 'Playfair Display', 'Tajawal', serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.section-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Luxury Accents */
.luxury-border {
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    padding: 2rem 0;
}

.gold-accent {
    color: var(--gold);
}

.shimmer {
    background: linear-gradient(90deg,
        var(--gold) 0%,
        var(--gold-light) 50%,
        var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* WooCommerce Product Images Fix */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce-product-gallery__image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    width: 100% !important;
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Dark Mode Toggle - Move up to avoid overlap with back-to-top */
.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d0983 0%, #216ea6 50%, #18bbd8 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(109, 9, 131, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(109, 9, 131, 0.5);
}

/* Move back-to-top button to right side */
.mhc_scroll_top {
    right: 30px !important;
    left: auto !important;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        bottom: 80px;
        left: 20px;
        font-size: 1.2rem;
    }
}
