/*
Theme Name: Massif Theme
Description: قالب عصري لمتجر معدات السلامة
Author: Your Name
Version: 1.0
Text Domain: massif
*/

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .contact-info {
    display: flex;
    justify-content: space-between;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.primary-menu {
    display: flex;
    list-style: none;
}

.primary-menu li {
    margin-left: 20px;
}

.primary-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.primary-menu a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    width: 30px;
    height: 21px;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 15px 20px 10px;
    color: var(--primary-color);
}

.category-card p {
    padding: 0 20px;
    color: #666;
    margin-bottom: 15px;
}

.category-link {
    display: block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.category-link:hover {
    background-color: #2980b9;
}

/* Products Section */
.featured-products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 15px 5px;
}

.product-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.price {
    padding: 0 15px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.add-to-cart {
    display: block;
    margin: 15px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #1a252f;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.widget-area h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-area h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.widget-area ul {
    list-style: none;
}

.widget-area ul li {
    margin-bottom: 8px;
}

.widget-area a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.widget-area a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu li {
        margin: 10px 0;
    }
    
    .header-top .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .header-top .contact-info span {
        margin-bottom: 5px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}