/* ==========================================================================
   Jeeva Products Grid Stylesheet
   Matching Reference Design
   ========================================================================== */

.jeeva-products-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

/* Category Filter Tabs */
.jeeva-category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin-bottom: 36px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
    position: relative;
    flex-wrap: wrap;
}

.jeeva-cat-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 14px;
    position: relative;
    outline: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.jeeva-cat-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--jeeva-green, #045A31);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jeeva-cat-tab.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.jeeva-tab-icon-wrap {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.jeeva-tab-icon {
    width: 58px;
    height: 58px;
    display: block;
}

.jeeva-cat-tab:hover .jeeva-tab-icon-wrap {
    transform: translateY(-2px);
}

.jeeva-tab-label {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

.jeeva-cat-tab.active .jeeva-tab-label {
    color: var(--jeeva-green, #045A31);
    font-weight: 700;
}

.jeeva-cat-tab:hover .jeeva-tab-label {
    color: var(--jeeva-green, #045A31);
}

/* Products Grid */
.jeeva-products-grid {
    display: grid;
    gap: 26px;
    width: 100%;
    box-sizing: border-box;
}

.jeeva-products-grid.jeeva-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jeeva-products-grid.jeeva-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Single Product Card */
.jeeva-product-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.jeeva-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Image Wrap */
.jeeva-products-wrapper .jeeva-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    height: auto !important;
    max-height: 230px;
    border-radius: 14px !important;
    overflow: hidden !important;
    background-color: transparent !important;
}

.jeeva-products-wrapper .jeeva-image-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.jeeva-products-wrapper .jeeva-card-image-wrap img,
.jeeva-products-wrapper .jeeva-product-image,
.elementor .jeeva-products-wrapper .jeeva-product-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.4s ease;
}

.jeeva-products-wrapper .jeeva-product-card:hover .jeeva-product-image {
    transform: scale(1.04);
}

/* Badges */
.jeeva-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.jeeva-badge-green {
    background-color: var(--jeeva-green, #045A31);
    color: #ffffff;
}

.jeeva-badge-orange {
    background-color: var(--jeeva-orange, #F47521);
    color: #ffffff;
}

/* Card Body */
.jeeva-card-body {
    padding: 14px 4px 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Origin Pill */
.jeeva-origin-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #ffeeed;
    color: #e53935;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.jeeva-origin-pill svg {
    flex-shrink: 0;
}

/* Title */
.jeeva-product-title {
    font-size: 18.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.35;
}

.jeeva-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jeeva-product-title a:hover {
    color: var(--jeeva-green, #045A31);
}

/* Description */
.jeeva-product-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating Row */
.jeeva-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.jeeva-rating-score {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.jeeva-rating-star {
    color: #f59e0b;
    font-size: 13px;
    line-height: 1;
}

.jeeva-rating-count {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 400;
}

/* Weight Pills */
.jeeva-weight-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.jeeva-weight-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.jeeva-weight-pill:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.jeeva-weight-pill.active {
    background: #edf7ee;
    border: 1.5px solid var(--jeeva-green, #045A31);
    color: var(--jeeva-green, #045A31);
    font-weight: 700;
}

/* Price & Action Row */
.jeeva-price-action-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.jeeva-price-col {
    display: flex;
    flex-direction: column;
}

.jeeva-price-line {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.jeeva-currency {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.jeeva-current-price {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.jeeva-regular-price {
    font-size: 13.5px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 500;
}

.jeeva-savings-line {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 4px;
}

/* Add to Cart Button */
.jeeva-action-col {
    flex-shrink: 0;
}

.jeeva-products-wrapper .jeeva-add-to-cart-btn {
    border: 1.5px solid var(--jeeva-green, #045A31) !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--jeeva-green, #045A31) !important;
    padding: 7px 18px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    position: relative !important;
    outline: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
}

.jeeva-products-wrapper .jeeva-add-to-cart-btn:hover {
    background: var(--jeeva-green, #045A31) !important;
    color: #ffffff !important;
}

.jeeva-products-wrapper .jeeva-add-to-cart-btn:active {
    transform: scale(0.96);
}

.jeeva-products-wrapper .jeeva-add-to-cart-btn.is-loading .jeeva-btn-text {
    visibility: hidden;
}

.jeeva-products-wrapper .jeeva-add-to-cart-btn.is-loading .jeeva-btn-spinner {
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--jeeva-green, #045A31);
    border-top-color: transparent;
    border-radius: 50%;
    animation: jeeva-spin 0.6s linear infinite;
}

.jeeva-products-wrapper .jeeva-add-to-cart-btn.is-added {
    background: var(--jeeva-green, #045A31) !important;
    color: #ffffff !important;
    border-color: var(--jeeva-green, #045A31) !important;
}

.jeeva-products-wrapper .jeeva-weight-pill {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
}

.jeeva-products-wrapper .jeeva-weight-pill:hover {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

.jeeva-products-wrapper .jeeva-weight-pill.active {
    background: #edf7ee !important;
    border: 1.5px solid var(--jeeva-green, #045A31) !important;
    color: var(--jeeva-green, #045A31) !important;
    font-weight: 700 !important;
}

.jeeva-products-wrapper .jeeva-cat-tab {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: none !important;
}

@keyframes jeeva-spin {
    to { transform: rotate(360deg); }
}

/* Bottom CTA */
.jeeva-bottom-cta {
    text-align: center;
    margin-top: 40px;
}

.jeeva-view-all-btn {
    display: inline-block;
    background-color: var(--jeeva-orange, #F47521);
    color: #ffffff !important;
    padding: 12px 38px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(var(--jeeva-orange-rgb, 244, 117, 33), 0.28);
    transition: all 0.25s ease;
}

.jeeva-view-all-btn:hover {
    background-color: var(--jeeva-orange-hover, #dd6212);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--jeeva-orange-rgb, 244, 117, 33), 0.4);
}

/* Responsive Media Queries */
@media (max-width: 1320px) {
    .jeeva-products-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .jeeva-products-grid.jeeva-cols-3,
    .jeeva-products-grid.jeeva-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .jeeva-products-wrapper {
        padding: 0 16px !important;
        margin: 28px auto !important;
        box-sizing: border-box !important;
    }

    .jeeva-category-tabs {
        gap: 20px;
        margin-bottom: 24px;
    }

    .jeeva-products-grid.jeeva-cols-3,
    .jeeva-products-grid.jeeva-cols-4 {
        grid-template-columns: 1fr;
        gap: 20px !important;
        box-sizing: border-box;
    }

    .jeeva-product-card {
        padding: 14px 14px 16px !important;
        border-radius: 18px !important;
    }

    .jeeva-card-image-wrap {
        height: 200px;
    }

    .jeeva-cat-tab {
        padding: 4px 6px 10px;
    }

    .jeeva-tab-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .jeeva-tab-icon {
        width: 46px;
        height: 46px;
    }

    .jeeva-tab-label {
        font-size: 13px;
    }

    .jeeva-bottom-cta {
        padding: 0 16px;
        box-sizing: border-box;
        margin-top: 28px;
    }

    .jeeva-view-all-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 20px;
        font-size: 15.5px;
    }
}

@media (max-width: 480px) {
    .jeeva-products-wrapper {
        padding: 0px !important;
    }

    .jeeva-category-tabs {
        gap: 16px;
    }
}
