/* ==========================================================================
   HOMEPAGE COMPONENT: SHOP BY CATEGORY & 2 MEGA DEAL PROMOS
   Clean Minimalist Grid & Timed Countdown Banners
   ========================================================================== */

.home-categories-section {
    padding: 60px 0 30px;
    position: relative;
}

.cat-section-header {
    text-align: center;
    margin-bottom: 38px;
}

.cat-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 14px;
}

.cat-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0062ff;
}

.cat-main-title {
    font-size: clamp(1.85rem, 2.6vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0;
}

/* 6-Column Category Cards Grid */
.cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.cat-card-item {
    background: #f1f3f5;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 24px 14px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card-item:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

.cat-card-thumb {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.cat-card-thumb img {
    max-height: 82px;
    max-width: 85px;
    object-fit: contain;
    transition: transform 0.35s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.cat-card-item:hover .cat-card-thumb img {
    transform: scale(1.08);
}

.cat-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.cat-card-item:hover .cat-card-name {
    color: var(--ps-primary, #0284c7);
}

/* 2 Promo Banners Grid */
.cat-promo-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.cat-promo-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #f1f2f4 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 38px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 310px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-promo-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 32px -4px rgba(15, 23, 42, 0.08);
}

.cat-promo-content {
    flex: 1;
    max-width: 60%;
    z-index: 2;
    position: relative;
}

.cat-promo-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 12px;
}

.discount-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

.cat-promo-heading {
    font-size: clamp(1.4rem, 1.9vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
}

/* Countdown row */
.cat-countdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.cat-count-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    min-width: 64px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cat-count-box .count-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.cat-count-box .count-label {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 3px;
}

/* CTA Pill Button */
.cat-promo-btn-wrap {
    margin-top: 4px;
}

.cat-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 9999px;
    border: 1.5px solid #0f172a;
    background: transparent;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cat-promo-btn:hover {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.cat-promo-visual {
    position: absolute;
    right: 18px;
    bottom: 18px;
    top: 18px;
    width: 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.cat-promo-visual img {
    height: 100%;
    max-height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@media(max-width:1199px) {
    .cat-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:767px) {
    .cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-promo-banners-grid {
        grid-template-columns: 1fr;
    }

    .cat-promo-card {
        padding: 28px 22px;
        min-height: auto;
    }

    .cat-promo-content {
        max-width: 100%;
    }

    .cat-promo-visual {
        display: none;
    }
}
