/* ==================== PRODUCTS PAGE STYLES ==================== */

/* --- Page Header Customization --- */
/* The header structure reuses .page-header-v2 but we might need specific adjustments for the vector */

.products-header-title-wrapper {
    position: relative;
    display: inline-block;
    z-index: 5;
}

.products-page-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 2;
    margin: 0;
    line-height: 1.2;
}

/* The vector styling */
.title-vector {
    position: sticky;
    bottom: -10px;
    /* Adjust based on visual */
    right: 0;
    /* Arabic starts right, user said "starting from only the first letter" */
    /* "First letter" in Arabic is the right-most. */
    /* Screenshot shows it covering the first half of the word approx. */
    /* width: 100%; */
    /* Or auto if we just want content width */
    height: fit-content;
    z-index: 1;
    max-width: 120%;
    /* allow it to stretch slightly if needed */
    pointer-events: none;
}

/* --- Products Grid Section --- */
.products-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 350px;
    text-decoration: none;
    /* In case it's an anchor */
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Coming Soon Text */
.coming-soon-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    /* Or a specific color */
    margin-top: 15px;
    background-color: #f0f0f0;
    padding: 5px 15px;
    border-radius: 50px;
}

/* Arrow Button in Corner */
/* Centering utility for header */
.header-content-v2.centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* Arrow Button in Corner */
.product-card-arrow {
    position: absolute;
    bottom: 25px;
    left: 25px;
    /* RTL layout: left is the end direction */
    width: 35px;
    height: 35px;
    font-size: 24px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.product-card:hover .product-card-arrow {
    transform: translateX(-5px);
    /* Move slightly left in RTL */
}

/* If the card is a link, remove default text deco */
a.product-card {
    color: inherit;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-page-title {
        font-size: 40px;
    }
}