:root {
    --yp-green: #A8CE3A;
    --yp-green-deep: #8FB22A;
    --yp-green-soft: #EAF3D0;
    --yp-magenta: #E91E63;
    --yp-magenta-soft: #FCE4EC;
    --yp-charcoal: #2A2A2A;
    --yp-text: #1F1F1F;
    --yp-text-soft: #6B6B6B;
    --yp-text-mute: #9A9A9A;
    --yp-bg: #F7F6F2;
    --yp-card: #FFFFFF;
    --yp-border: #E8E6E0;
    --yp-border-strong: #D4D2CC;
    --yp-radius: 10px;
    --yp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════ BASE ════════ */
body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: var(--yp-bg) !important;
    color: var(--yp-text) !important;
    -webkit-font-smoothing: antialiased;
}

/* ════════ PAGE HEADER ════════ */
.page-header-wrapper .page-header .mb-6,
h1.page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yp-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.1;
}

/* ════════ SHOP BY CATEGORY CONTAINER ════════ */
.shop-by-category-content {
    padding: 0;
}

/* ════════ SLIDESHOW ════════ */
.category-slideshow {
    margin-bottom: 2rem;
    border-radius: var(--yp-radius);
    overflow: hidden;
}

/* ════════ CATEGORY TABS ════════ */
.category-tabs {
    margin-bottom: 2rem;
}

.category-tabs .nav-tabs {
    border-bottom: 2px solid var(--yp-border) !important;
    gap: 4px;
    margin-bottom: 24px !important;
}

.category-tabs .nav-tabs .nav-link {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--yp-text-soft) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    margin-bottom: -2px !important;
    transition: all 0.2s var(--yp-ease) !important;
    background: transparent !important;
}

.category-tabs .nav-tabs .nav-link:hover {
    color: var(--yp-text) !important;
    border-bottom-color: var(--yp-border-strong) !important;
}

.category-tabs .nav-tabs .nav-link.active {
    color: var(--yp-text) !important;
    border-bottom-color: var(--yp-green) !important;
    background: transparent !important;
}

/* ════════ CATEGORY CARD GRID ════════ */
.product-category-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ════════ CATEGORY CARD ════════ */
.category-card {
    height: auto !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    flex: 1 1 200px !important;

    background: var(--yp-card) !important;
    border: 1px solid var(--yp-border) !important;
    border-radius: var(--yp-radius) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.22s var(--yp-ease) !important;
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
}

.category-card:hover {
    border-color: var(--yp-green) !important;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-3px) !important;
}

/* ── Image area ── */
.category-card .card-img-top {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    background: var(--yp-bg) !important;
    transition: transform 0.35s var(--yp-ease) !important;
    border-radius: 0 !important;
}

.category-card:hover .card-img-top {
    transform: scale(1.04) !important;
}

/* ── Placeholder (no image) ── */
.category-card .placeholder-div {
    width: 100% !important;
    height: 180px !important;
    background: var(--yp-green-soft) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.category-card .placeholder-div .placeholder {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: var(--yp-green-deep) !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: -0.02em !important;
    background: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/* ── Card body / title ── */
.category-card .card-body {
    padding: 14px 16px 16px !important;
    background: var(--yp-card) !important;
    text-align: left !important;
    flex: 1 !important;
}

.category-card .card-body,
.category-card .card-body.text-center,
.category-card .card-body.text-muted {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--yp-text) !important;
    letter-spacing: -0.005em !important;
    text-align: left !important;
}

.category-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--yp-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--yp-ease);
    border-radius: 0 0 var(--yp-radius) var(--yp-radius);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card .stretched-link::after {
    border-radius: var(--yp-radius) !important;
}

/* ════════ ITEM CARD GROUP SECTION ════════ */
.item-card-group-section {
    padding: 0 !important;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 991px) {
    .category-card {
        width: calc(33.333% - 14px) !important;
    }
}

@media (max-width: 767px) {
    .product-category-section {
        gap: 14px !important;
    }

    .category-card {
        width: calc(50% - 8px) !important;
        min-width: 140px !important;
    }

    .category-card .card-img-top,
    .category-card .placeholder-div {
        height: 140px !important;
    }

    .category-card .placeholder-div .placeholder {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .category-card {
        width: calc(50% - 7px) !important;
        min-width: 120px !important;
    }

    .category-card .card-img-top,
    .category-card .placeholder-div {
        height: 120px !important;
    }

    .category-card .card-body {
        padding: 10px 12px 12px !important;
        font-size: 13px !important;
    }
}

/* ════════ HIDDEN ════════ */
.hidden {
    display: none !important;
}