.tabbed-showcase-section {
    padding: 8px 0 68px;
}

.showcase-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #ecf7df 100%);
    border: 1px solid rgba(46, 88, 29, 0.18);
    border-radius: 999px;
    padding: 8px;
    margin-bottom: 22px;
    box-shadow: 0 12px 26px rgba(24, 46, 15, 0.1);
}

.showcase-tab-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #2e4d24;
    border-radius: 999px;
    padding: 11px 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
    font-weight: 800;
    transition: all 0.24s ease;
    white-space: nowrap;
}

.showcase-tab-btn:hover {
    border-color: rgba(49, 95, 23, 0.3);
    background: rgba(255, 255, 255, 0.7);
}

.showcase-tab-btn.active {
    background: linear-gradient(135deg, #7bc143 0%, #3e7420 100%);
    color: #f5ffe8;
    border-color: rgba(17, 40, 11, 0.16);
    box-shadow: 0 12px 24px rgba(51, 97, 27, 0.28);
}

.showcase-tab-content {
    display: none;
}

.showcase-tab-content.active {
    display: block;
}

.showcase-grid-wrapper {
    position: relative;
    overflow: hidden;
}

.showcase-grid {
    display: flex;
    gap: 24px;
    width: 100%;
}

.showcase-grid .product-card {
    width: calc((100% - 72px) / 4);
    min-width: calc((100% - 72px) / 4);
    flex-shrink: 0;
}

.showcase-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(52, 94, 34, 0.28);
    background: #ffffff;
    color: #2f5720;
    box-shadow: 0 10px 20px rgba(21, 42, 14, 0.14);
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.showcase-nav-btn:hover {
    background: #f1fae7;
    transform: translateY(-50%) scale(1.03);
}

.showcase-prev {
    left: 10px;
}

.showcase-next {
    right: 10px;
}

.showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    min-height: 16px;
}

.showcase-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(43, 84, 25, 0.24);
    transition: all 0.2s ease;
}

.showcase-dots .dot.active {
    width: 24px;
    background: #5da62f;
}

.tabbed-showcase-section .product-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tabbed-showcase-section .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(19, 39, 12, 0.18);
}

.tabbed-showcase-section .product-image {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
    aspect-ratio: 4 / 4.2;
    background: #ffffff;
}

.tabbed-showcase-section .product-image>a:not(.card-fav-btn) {
    display: block;
    width: 100%;
    height: 100%;
}

.tabbed-showcase-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px 15px 12px 15px;
    /* Increased top padding */
    transition: transform 0.28s ease;
}

.tabbed-showcase-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

.tabbed-showcase-section .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tabbed-showcase-section .product-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #183211;
    background: #d8f2c6;
    border: 1px solid rgba(49, 92, 30, 0.2);
}

.tabbed-showcase-section .product-badge.discount-badge {
    background: #ffe386;
    border-color: rgba(162, 121, 15, 0.3);
    color: #553c00;
}

.tabbed-showcase-section .product-badge.out-of-stock {
    background: #ffd8d8;
    border-color: rgba(131, 44, 44, 0.3);
    color: #7f1919;
}

.tabbed-showcase-section .card-fav-btn,
.tabbed-showcase-section .bubs-cart-trigger {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(35, 65, 22, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #2b5420;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.24s ease;
}

.tabbed-showcase-section .card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
}

.tabbed-showcase-section .bubs-cart-trigger {
    position: absolute;
    bottom: 12px;
    right: 10px;
    z-index: 4;
    opacity: 0;
    transform: translateY(8px);
}

.tabbed-showcase-section .product-card:hover .bubs-cart-trigger {
    opacity: 1;
    transform: translateY(0);
}

.tabbed-showcase-section .card-fav-btn:hover,
.tabbed-showcase-section .bubs-cart-trigger:hover {
    background: linear-gradient(135deg, #e1f7cc 0%, #7bc143 100%);
    color: #17360f;
    border-color: rgba(36, 70, 21, 0.26);
}

.tabbed-showcase-section .card-fav-btn i,
.tabbed-showcase-section .bubs-cart-trigger i {
    font-size: 0.95rem;
    line-height: 1;
}

.tabbed-showcase-section .image-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 2px;
}

.tabbed-showcase-section .gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(45, 84, 28, 0.25);
}

.tabbed-showcase-section .gallery-dot.active {
    width: 20px;
    background: #5ea632;
}

.tabbed-showcase-section .product-info {
    padding: 10px 12px 14px;
}

.tabbed-showcase-section .product-title {
    display: inline-block;
    color: #5f7756;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0px;
}

.tabbed-showcase-section .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a202c;
    margin-top: 2px;
    min-height: 2.7em;
    line-height: 1.35;
    font-size: 0.95rem;
    font-weight: 700;
}

.tabbed-showcase-section .product-name:hover {
    color: #35671d;
}

.tabbed-showcase-section .product-price {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.tabbed-showcase-section .price-sale {
    color: #000000;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1;
}

/* New Modern Button for Category Cards */
.tabbed-showcase-section .product-card-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 0;
    background: #1a2e05;
    /* agri-dark */
    color: #ffffff !important;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.tabbed-showcase-section .product-card-btn:hover {
    background: #4d7c0f;
    /* agri-primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 124, 15, 0.2);
}

.tabbed-showcase-section .price-original {
    color: #889983;
    text-decoration: line-through;
    font-size: 0.78rem;
}

.tabbed-showcase-section .variant-popup {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 58px;
    z-index: 8;
}

.tabbed-showcase-section .variant-popup .variant-selector {
    border-radius: 12px;
    border: 1px solid rgba(53, 94, 32, 0.24);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(23, 45, 15, 0.16);
    padding: 10px;
}

.tabbed-showcase-section .variant-popup button,
.tabbed-showcase-section .variant-popup select {
    border-radius: 8px;
    border: 1px solid rgba(51, 92, 30, 0.22);
    padding: 7px 9px;
    width: 100%;
    font-size: 0.8rem;
}

.tp-popup-overlay .tp-popup-content {
    border-radius: 24px;
    border: 1px solid rgba(49, 90, 30, 0.26);
    box-shadow: 0 24px 54px rgba(18, 38, 12, 0.24);
}

.tp-popup-overlay .tp-popup-icon {
    color: #59a42c;
}

.tp-popup-overlay .tp-btn-cart {
    background: linear-gradient(140deg, #8bcf4f 0%, #3c7421 100%);
    color: #fff;
    border: none;
}

.tp-popup-overlay .tp-btn-continue {
    border: 1px solid rgba(49, 93, 29, 0.22);
    background: #f5fceb;
    color: #2e581d;
}

@media (max-width: 1200px) {
    .showcase-grid {
        gap: 18px;
    }

    .showcase-grid .product-card {
        width: calc((100% - 54px) / 4);
        min-width: calc((100% - 54px) / 4);
    }
}

@media (max-width: 991px) {
    .tabbed-showcase-section {
        padding-bottom: 52px;
    }

    .showcase-tabs {
        display: flex;
        width: 100%;
        overflow-x: auto;
        padding: 7px;
        margin-bottom: 14px;
        scroll-snap-type: x proximity;
    }

    .showcase-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .showcase-grid {
        gap: 12px;
    }

    .showcase-grid .product-card {
        width: calc((100% - 24px) / 3);
        min-width: calc((100% - 24px) / 3);
    }

    .showcase-nav-btn {
        width: 36px;
        height: 36px;
        top: 40%;
    }
}

@media (max-width: 640px) {
    .showcase-tabs {
        border-radius: 18px;
    }

    .showcase-tab-btn {
        font-size: 0.67rem;
        padding: 9px 12px;
    }

    .showcase-grid {
        gap: 10px;
    }

    .showcase-grid .product-card {
        width: calc((100% - 10px) / 2);
        min-width: calc((100% - 10px) / 2);
        border-radius: 15px;
    }

    .showcase-nav-btn {
        display: none;
    }

    .tabbed-showcase-section .product-image {
        aspect-ratio: 4 / 4.6;
    }

    .tabbed-showcase-section .product-name {
        font-size: 0.83rem;
        min-height: 2.5em;
    }

    .tabbed-showcase-section .price-sale {
        font-size: 1rem;
    }

    .tabbed-showcase-section .product-card-btn {
        margin-top: 8px;
        padding: 8px 0;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .tabbed-showcase-section .bubs-cart-trigger {
        opacity: 1;
        transform: translateY(0);
    }
}