/*
 * ============================================================
 * Ahmadiyad - Premium Women's Undergarments E-Commerce
 * Developed by: Etarnity Global Innovation
 * Website: https://etarnity.com
 * ============================================================
 */

/* ============================================================
 * CATEGORY BLOCK SECTIONS — Step-by-step category display
 * Each category: Banner (PC: image + overlay text) / Title (Mobile: text only)
 *                + Product Grid + See All Button
 *
 * PC:      Banner image (220px) with dark gradient overlay,
 *          centered white uppercase title + subtitle
 * Mobile:  No banner image, text-only centered title + subtitle,
 *          products show normally with their images in 2-col grid
 * ============================================================
 */

.cat-block {
    margin-bottom: 48px;
}

.cat-block:last-child {
    margin-bottom: 0;
}

/* ============================================================
 * CATEGORY BANNER (PC only — image with overlay text)
 * Mobile: hidden via responsive.css with !important,
 *         .cat-block-title shown instead
 * ============================================================
 */
.cat-block-banner {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.cat-block-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark gradient overlay from bottom (65% height) for text readability */
.cat-block-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(
        to top,
        rgba(2, 2, 2, 0.7) 0%,
        rgba(2, 2, 2, 0.25) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Banner text — centered on image */
.cat-block-banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.cat-block-banner-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.cat-block-banner-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============================================================
 * CATEGORY TITLE (Mobile only — no image, just text)
 * Hidden on PC (default: display:none), shown on mobile via responsive.css
 * ============================================================
 */
.cat-block-title {
    display: none;
    margin-bottom: 16px;
    text-align: center;
}

.cat-block-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.cat-block-title p {
    font-size: 13px;
    color: var(--cocoa);
    font-weight: 400;
}

/* ============================================================
 * CATEGORY PRODUCT GRID
 * PC: 5-col | Tablet: 3-col | Mobile: 2-col (via responsive.css)
 * ============================================================
 */
.cat-block-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ============================================================
 * SEE ALL BUTTON
 * Outlined Pastel Red, hover fills solid, arrow slides right
 * ============================================================
 */
.cat-block-seeall {
    display: flex;
    justify-content: center;
}

.seeall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.seeall-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(213, 0, 109, 0.3);
}

.seeall-btn:active {
    transform: scale(0.97);
}

.seeall-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.seeall-btn:hover i {
    transform: translateX(3px);
}

