/* Category Showcase Styles */

.category-showcase-section {
    padding: 60px 0;
    position: relative;
}

/* Banner Styles */
.showcase-banner-wrapper {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.showcase-banner {
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    /* Align content at bottom center as per image? Or center? Image shows bottom center overlay */
    justify-content: center;
    padding-bottom: 0;
    /* Let overlay hang? No, the overlay is inside */
}

/* Overlay Box Style - matching the image */
.showcase-content {
    background: rgba(212, 208, 200, 0.9);
    /* Beige-ish gray */
    padding: 30px 60px;
    text-align: center;
    border-radius: 12px 12px 0 0;
    /* Rounded top corners only? Looking at image it looks like a separate box floating or attached bottom */
    min-width: 300px;
    transform: translateY(0);
    /* Sits at the bottom inside */
    backdrop-filter: blur(5px);
    margin-bottom: 0;
}

/* Adjust if we want it fully floating in middle */
/* But looking at the user image, it sits at the bottom edge of the banner image overlapping it? 
   Actually, looking closely at "uploaded_image_1768209308964.png", the banner is fully visible, 
   and there is a box OVERLAPPING the bottom edge, sticking out potentially.
*/

.showcase-banner {
    align-items: flex-end;
    /* Align box to bottom */
    position: relative;
}

.showcase-content {
    background: #C4Bcb6;
    /* Adjust color to match "غرف النوم" box bg */
    padding: 20px 40px;
    border-radius: 15px 15px 0 0;
    /* Top rounded */
    /* Or maybe it's fully rounded and floating? Let's make it fully rounded for safety */
    border-radius: 20px 20px 0 0;
    text-align: center;
    margin-bottom: 0;
    /* Flush with bottom */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.showcase-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.showcase-btn {
    background: #6B5B4E !important;
    /* Dark Brown */
    color: #fff !important;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.showcase-btn:hover {
    background: #52443A !important;
    transform: translateY(-2px);
}

/* Grid Title */
.showcase-grid-title {
    text-align: right;
    /* RTL */
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-right: 15px;
    /* Space for indicator if needed */
}

/* Grid Styles */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 20px;
}

/* Specific Columns Control */
.showcase-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.showcase-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.showcase-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.showcase-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.showcase-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.showcase-item {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.showcase-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F9F9F9;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-item-image img {
    transform: scale(1.1);
}

.showcase-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Logic */

/* Large Screens (max 1200px) */
@media (max-width: 1200px) {
    .showcase-grid.columns-6 {
        grid-template-columns: repeat(5, 1fr);
    }

    .showcase-grid.columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Screens (max 992px) */
@media (max-width: 992px) {
    .showcase-grid.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .showcase-grid.columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .showcase-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (max 768px) */
@media (max-width: 768px) {
    .showcase-grid {
        gap: 15px;
    }

    .showcase-grid.columns-6,
    .showcase-grid.columns-5,
    .showcase-grid.columns-4,
    .showcase-grid.columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .showcase-banner {
        min-height: 250px;
    }

    .showcase-content {
        padding: 15px 25px;
        min-width: auto;
        width: 90%;
    }

    .showcase-title {
        font-size: 24px;
    }

    .showcase-btn {
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* Module Screens (max 576px) */
@media (max-width: 576px) {

    .showcase-grid.columns-6,
    .showcase-grid.columns-5,
    .showcase-grid.columns-4,
    .showcase-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep columns-2 as 2 columns on mobile, unless very small? usually 2 is fine for mobile icons */
}

/* Small Mobile (max 380px) */
@media (max-width: 380px) {

    /* Maybe force 2 columns strictly or allow 1 if titles long? 2 is standard for showcases */
    .showcase-grid.columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}