/* Main Website Style for Al-Tayeb Furniture & Paint */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary-color: #8B6914;
    /* Deep Gold */
    --hover-color: #b3881a;
    --dark-color: #2c2c2c;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    /* RTL by Default */
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 15px;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Cards and Items */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-card {
    transition: var(--transition);
    border: 1px solid #eee;
}

.category-card:hover {
    background: var(--primary-color) !important;
    transform: scale(1.03);
}

.category-card:hover h4,
.category-card:hover p,
.category-card:hover .cat-icon {
    color: white !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1,
.hero-content p,
.hero-content .hero-btns {
    animation: fadeInUp 0.8s ease backwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .hero-btns {
    animation-delay: 0.6s;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    margin-right: 15px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    backdrop-filter: blur(3px);
}

.login-btn {
    color: var(--dark-color);
    border-right: 1px solid #ddd;
    padding-right: 15px;
    margin-right: 5px;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem !important;
    }

    .hero-content p {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header & Nav */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px;
        z-index: 999;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 25px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
    }

    .nav-overlay.active {
        display: block;
    }

    .login-btn {
        border-right: none;
        padding-right: 0;
        margin-right: 10px;
    }

    .logo h2 {
        font-size: 1.2rem !important;
    }

    /* Hero Section */
    .hero {
        height: 60vh !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-content p {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-btns .btn {
        margin: 0 !important;
        width: 100%;
        max-width: 250px;
    }

    /* About Brief */
    .about-brief {
        padding: 60px 0 !important;
    }

    .about-brief .container {
        gap: 30px !important;
    }

    .about-text h2 {
        font-size: 1.8rem !important;
    }

    /* Sections */
    section {
        padding: 60px 0 !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
        margin-bottom: 30px !important;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    /* Grids */
    .category-grid,
    .product-grid,
    .footer-grid,
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important;
        gap: 20px !important;
    }

    .footer-grid {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Stats */
    .stat-item h2 {
        font-size: 2.5rem !important;
    }

    /* Product Detail Page */
    .product-main {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .product-info-col h1 {
        font-size: 1.8rem !important;
    }

    .price-box h2 {
        font-size: 1.8rem !important;
    }

    .purchase-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .features-list ul {
        grid-template-columns: 1fr !important;
    }

    /* Checkout Page */
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .order-summary-sidebar {
        position: static !important;
        order: -1;
        /* Summary first on mobile */
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .steps-tracker {
        gap: 15px !important;
    }

    .steps-tracker span {
        font-size: 0.8rem;
    }

    .checkout-forms {
        padding: 20px !important;
    }

    /* Products Page */
    .products-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .logo img {
        height: 35px;
    }

    .logo h2 {
        display: none;
        /* Hide text on very small screens if logo exists */
    }
}