/* =========================================
   Homepage Styles
   ========================================= */

/* Ensure all content has max-width of 1220px */


/* Hero Section */
.tsc-section-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    padding: 100px 20px;
    overflow: hidden;
}

.tsc-section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(166, 42, 68, 0.7) 0%, rgba(83, 64, 69, 0.6) 100%);
    z-index: 1;
}

.tsc-section-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #FFFFFF;
    opacity: 0.95;
}

.hero-cta-button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #A62A44;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta-button:hover {
    background-color: #A62A44;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Product Categories Section */
.tsc-section-categories {
    padding: 80px 20px;

}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #A62A44;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #A62A44;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Product Category Grid */
.product-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cat-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(166, 42, 68, 0.2);
}

.cat-card a {
    text-decoration: none;
    display: block;
}

.cat-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.cat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-image-wrapper img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-card:hover .cat-overlay {
    opacity: 1;
}

.cat-count {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    display: block;
    text-align: center;
}

.cat-title {
    text-align: center;
    padding: 20px 15px;
    color: #534045;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cat-card:hover .cat-title {
    color: #A62A44;
}

/* Empty State Messages */
.no-categories,
.no-woocommerce {
    text-align: center;
    padding: 40px 20px;
    color: #534045;
    font-size: 18px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .product-cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .tsc-section-hero {
        min-height: 400px;
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .product-cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .cat-image-wrapper {
        height: 220px;
    }
}

@media screen and (max-width: 480px) {
    .tsc-section-hero {
        min-height: 350px;
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .hero-cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .tsc-section-categories {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .product-cat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cat-image-wrapper {
        height: 250px;
    }

    .cat-title {
        font-size: 18px;
        padding: 15px;
    }
}

/* RTL Support */
.homepage-content:lang(he) .hero-content,
.homepage-content:lang(he) .section-title {
    direction: rtl;
}