/* ======================================================================
   Product categories — Cohort 7 (TreeStyle / Forest Green + Cherry Red SALE)
   Rebuilt from sandbox Design-7. Self-contained palette + font stack
   scoped to .product-categories-7-strip so the cohort renders correctly
   even when mixed-and-matched with other cohorts' sections.

   Bold sale poster grid: 3-col cards alternating green/red fills with a
   diagonal SALE ribbon corner.
   Class pattern: product-categories-7-{element}.
   ====================================================================== */

/* ---------- Cohort-7 palette + font stack scoped to the strip ---------- */
.product-categories-7-strip {
    --bs-body-bg:             #FFFFFF;
    --bs-body-color:          #1A1A1A;
    --bs-primary:             #1B4332;
    --bs-primary-rgb:         27, 67, 50;
    --bs-light-primary:       #D4E5DA;
    --bs-secondary:           #DC2626;
    --bs-secondary-rgb:       220, 38, 38;
    --bs-secondary-color:     #6B7280;
    --bs-secondary-bg:        #F9FAFB;
    --bs-warning:             #B89968;
    --bs-border-color:        #E5E7EB;
    --bs-heading-font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    background: var(--bs-body-bg);
}

/* ---------- Head — sale-loud eyebrow + bold title ---------- */
.product-categories-7-ribbon-eyebrow {
    display: inline-block;
    background: var(--bs-warning, var(--bs-secondary));
    color: var(--bs-body-color);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.product-categories-7-title {
    font-family: var(--bs-heading-font-family);
    font-size: 2rem;
    font-weight: 900;
    color: var(--bs-primary);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.product-categories-7-sub {
    color: var(--bs-secondary-color);
    font-size: 0.92rem;
    margin: 0;
    font-weight: 500;
}

/* ---------- Poster card — bold filled tile with sale-ribbon corner ---------- */
.product-categories-7-poster {
    position: relative;
    display: block;
    border-radius: 18px;
    padding: 26px 24px 22px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    min-height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-categories-7-poster--primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0F2A1E 100%);
}

.product-categories-7-poster--accent {
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #A11C1C 100%);
}

.product-categories-7-poster:hover,
.product-categories-7-poster:focus {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: #fff;
}

/* ---------- Diagonal SALE ribbon (top-right corner) ---------- */
.product-categories-7-ribbon {
    position: absolute;
    top: 14px;
    right: -32px;
    background: var(--bs-warning, var(--bs-secondary));
    color: var(--bs-body-color);
    padding: 4px 40px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.product-categories-7-poster--accent .product-categories-7-ribbon {
    background: #fff;
    color: var(--bs-secondary);
}

/* ---------- Inner content stacked vertically ---------- */
.product-categories-7-poster-inner {
    position: relative;
    z-index: 1;
    max-width: 70%;
}

.product-categories-7-poster-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 12px;
}

.product-categories-7-poster-name {
    font-family: var(--bs-heading-font-family);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

/* ---------- Foot — count + CTA in same row ---------- */
.product-categories-7-poster-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.product-categories-7-poster-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-categories-7-poster-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: gap 0.2s ease;
}

.product-categories-7-poster-cta svg { transition: transform 0.2s ease; }

.product-categories-7-poster:hover .product-categories-7-poster-cta svg,
.product-categories-7-poster:focus .product-categories-7-poster-cta svg {
    transform: translateX(4px);
}

/* ---------- Decorative icon (bottom-right, fades into bg) ---------- */
.product-categories-7-poster-icon {
    position: absolute;
    bottom: -8px;
    right: -8px;
    color: rgba(255, 255, 255, 0.18);
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, color 0.3s ease;
    z-index: 0;
}

.product-categories-7-poster-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    opacity: 0.4;
}

.product-categories-7-poster:hover .product-categories-7-poster-icon,
.product-categories-7-poster:focus .product-categories-7-poster-icon {
    transform: scale(1.08) rotate(-6deg);
    color: rgba(255, 255, 255, 0.32);
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
    .product-categories-7-title { font-size: 1.55rem; }
    .product-categories-7-poster {
        min-height: 180px;
        padding: 22px 20px 18px;
    }
    .product-categories-7-poster-name { font-size: 1.3rem; margin-bottom: 14px; }
    .product-categories-7-poster-icon { width: 88px; height: 88px; bottom: -4px; right: -4px; }
    .product-categories-7-poster-icon img { width: 70px; height: 70px; }
}
