/* =========================================
   Products Page Styles (Modern UI)
   ========================================= */

:root {
    --primary-color: #161b1f;
    --accent-color: #d4af37;
    /* Gold accent matching the site theme */
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-light: #777;
}

body {
    background-color: var(--bg-color);
    font-family: 'Cairo', sans-serif;
}

/* --- Hero Section --- */
.products-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0 0 60px 60px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.products-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.products-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

/* --- Modern Product Card --- */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

/* Image Container */
.product-image-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* Overlay Badge (Optional) */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Content */
.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Button */
.product-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    gap: 10px;
}

.product-btn:hover {
    background: var(--accent-color);
    color: white;
    /* Keep white on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.product-btn i {
    transition: 0.3s;
}

.product-btn:hover i {
    transform: translateX(-4px);
    /* Move arabic arrow left */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .products-hero {
        padding: 60px 20px;
        border-radius: 0 0 40px 40px;
    }

    .products-title {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}