/* Longevity Product List Section Component Styles */

.longevity-product-list-section {
    background: var(--white-color);
}

.longevity-product-list-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.longevity-product-list-section .section-description {
    font-size: 20px;
    line-height: 1.4;
    color: var(--body-color);
    max-width: 1000px;
    margin: 0 auto 0;
}

/* Product Cards Grid */
.longevity-product-list-section .longevity-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.longevity-product-list-section .longevity-product-card {
    display: flex;
    flex-direction: column;
    background: var(--longevity-gr);
    border-radius: 16px;
    overflow: hidden;
    border: solid 1px var(--longevity-light);
    padding: 30px 40px;
}


/* Card Image */
.longevity-product-list-section .product-card-image {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.longevity-product-list-section .product-card-image img {
    max-width: 100%;
    width: auto;
    max-height: 366px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Card Content */
.longevity-product-list-section .product-card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.longevity-product-list-section .product-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--title-color);
    margin: 0;
    padding: 0 0 14px 0;
    border-bottom: solid 1px var(--longevity-dark);
}

/* Card Features List */
.longevity-product-list-section .product-card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.longevity-product-list-section .product-card-features ul,
.longevity-product-list-section .product-card-features ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.longevity-product-list-section .product-card-features ul li {
    padding-left: 27px;
    display: flex;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    color: var(--title-color);
}

.longevity-product-list-section .product-card-features ul li::after {
    position: absolute;
    content: "";
    left: 0;
    top: 3px;
    background-image: url(../../images/longevity-right-icon.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 18px;
    height: 18px;
}

/* Custom icon from ACF */
/* .longevity-product-list-section .product-card-features[data-icon-url]:not([data-icon-url=""]) ul li::after {
    background-image: var(--custom-icon-url);
} */

/* Card Footer with Button and Info Icon */
.longevity-product-list-section .product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.longevity-product-list-section .product-card-footer .revana-btn {
    justify-content: center;
}

/* Info Tooltip Wrapper */
.longevity-product-list-section .info-tooltip-wrapper {
    position: relative;
    flex-shrink: 0;
}

.longevity-product-list-section .info-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--longevity-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.longevity-product-list-section .info-icon-btn:hover {
    background: var(--title-color);
}

.longevity-product-list-section .info-icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Tooltip Content */
.longevity-product-list-section .info-tooltip-content {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: var(--white-color);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.longevity-product-list-section .info-tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white-color);
}

.longevity-product-list-section .info-tooltip-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.longevity-product-list-section .info-tooltip-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body-color);
    margin: 0;
}

.longevity-product-list-section .info-tooltip-content p + p {
    margin-top: 8px;
}

.longevity-product-list-section .info-tooltip-content a {
    color: var(--brand-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.longevity-product-list-section .info-tooltip-content a:hover {
    color: var(--longevity-dark);
}

/* Bottom Disclaimer */
.longevity-product-list-section .longevity-disclaimer {
    text-align: left;
    max-width: 100%;
    margin: 30px 0 0 0;
}

.longevity-product-list-section .longevity-disclaimer p {
    font-size: 12px;
    line-height: 1.5;
    color: #828282;
    margin: 0;
}

.longevity-product-list-section .longevity-disclaimer h6,
.longevity-product-list-section .longevity-disclaimer strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0 0 8px 0;
}

/* Bottom CTA Button */
.longevity-product-list-section .cta-button {
    justify-content: center;
    margin: 30px 0 0 0;
}



/* Responsive Styles */

/* Extra Large Desktop */
@media (max-width: 1799px) {
    .longevity-product-list-section .longevity-products-grid {
        gap: 26px;
    }

    .longevity-product-list-section .product-card-image {
        min-height: 300px;
        padding: 0;
    }

    .longevity-product-list-section .product-card-image img {
        max-height: 340px;
    }
    .longevity-product-list-section .longevity-product-card {
        padding: 20px;
    }
    .longevity-product-list-section .product-card-title {
        font-size: 22px;
    }
}

/* Large Desktop */
@media (max-width: 1439px) {
    .longevity-product-list-section .section-header {
        margin-bottom: 50px;
    }

    .longevity-product-list-section .section-description {
        font-size: 18px;
    }

    .longevity-product-list-section .longevity-products-grid {
        gap: 24px;
    }

    .longevity-product-list-section .product-card-image {
        min-height: 280px;
        padding: 0;
    }

    .longevity-product-list-section .product-card-image img {
        max-height: 320px;
    }

    .longevity-product-list-section .product-card-content {
        padding: 0;
        gap: 18px;
    }

    .longevity-product-list-section .product-card-title {
        font-size: 20px;
    }

    .longevity-product-list-section .product-card-features ul li {
        font-size: 15px;
    }

    .longevity-product-list-section .info-icon-btn {
        width: 44px;
        height: 44px;
    }

    .longevity-product-list-section .info-icon-btn img {
        width: 22px;
        height: 22px;
    }
    .longevity-product-list-section .product-card-footer {
        gap: 6px;
    }
    .longevity-product-list-section .product-card-footer .revana-btn {
        padding: 10px 16px;
        font-size: 16px;
    }
    .longevity-product-list-section .info-icon-btn {
        width: 34px;
        height: 34px;
    }
    .longevity-product-list-section .info-icon-btn img {
        max-width: 50%;
        height: auto;
        width: auto;
    }
}

/* Tablet Landscape */
@media (max-width: 1239px) {
    .longevity-product-list-section .section-header {
        margin-bottom: 40px;
    }

    .longevity-product-list-section .section-description {
        font-size: 17px;
    }

    .longevity-product-list-section .longevity-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .longevity-product-list-section .product-card-image {
        min-height: 260px;
        padding: 0;
    }

    .longevity-product-list-section .product-card-image img {
        max-height: 300px;
    }

    .longevity-product-list-section .product-card-content {
        padding: 0;
        gap: 16px;
    }

    .longevity-product-list-section .product-card-title {
        font-size: 20px;
    }

    .longevity-product-list-section .product-card-features {
        gap: 10px;
    }

    .longevity-product-list-section .product-card-features ul,
    .longevity-product-list-section .product-card-features ol {
        gap: 10px;
    }

    .longevity-product-list-section .product-card-features ul li {
        font-size: 14px;
        padding-left: 25px;
    }

    .longevity-product-list-section .product-card-features ul li::after {
        width: 16px;
        height: 16px;
    }

    .longevity-product-list-section .info-tooltip-content {
        min-width: 260px;
        max-width: 300px;
        padding: 14px 18px;
    }

    .longevity-product-list-section .longevity-disclaimer {
        margin-bottom: 32px;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .longevity-product-list-section .section-header {
        margin-bottom: 36px;
    }

    .longevity-product-list-section .section-description {
        font-size: 16px;
    }

    .longevity-product-list-section .longevity-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    
    .longevity-product-list-section .product-card-image {
        min-height: 280px;
        padding: 0;
    }

    .longevity-product-list-section .product-card-image img {
        max-height: 320px;
    }

    .longevity-product-list-section .product-card-content {
        padding: 0;
        gap: 16px;
    }

    .longevity-product-list-section .product-card-title {
        font-size: 20px;
    }

    .longevity-product-list-section .product-card-features ul li {
        font-size: 15px;
    }

    .longevity-product-list-section .longevity-disclaimer {
        margin-bottom: 30px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .longevity-product-list-section .section-header {
        margin-bottom: 30px;
    }

    .longevity-product-list-section .section-description {
        font-size: 15px;
    }

    .longevity-product-list-section .longevity-products-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    
    .longevity-product-list-section .product-card-image {
        min-height: 260px;
        padding: 0;
    }

    .longevity-product-list-section .product-card-image img {
        max-height: 300px;
    }

    .longevity-product-list-section .product-card-content {
        padding: 0;
        gap: 16px;
    }

    .longevity-product-list-section .product-card-title {
        font-size: 20px;
    }

    .longevity-product-list-section .product-card-features {
        gap: 12px;
    }

    .longevity-product-list-section .product-card-features ul,
    .longevity-product-list-section .product-card-features ol {
        gap: 12px;
    }

    .longevity-product-list-section .product-card-features ul li {
        font-size: 15px;
        padding-left: 27px;
    }

    .longevity-product-list-section .product-card-features ul li::after {
        width: 18px;
        height: 18px;
    }

    .longevity-product-list-section .product-card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .longevity-product-list-section .product-card-footer .revana-btn {
        width: 100%;
    }

    .longevity-product-list-section .info-tooltip-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .longevity-product-list-section .info-tooltip-content {
        right: 50%;
        transform: translateX(50%) translateY(10px);
        min-width: 260px;
    }

    .longevity-product-list-section .info-tooltip-content.active {
        transform: translateX(50%) translateY(0);
    }

    .longevity-product-list-section .info-tooltip-content::before {
        right: 50%;
        transform: translateX(50%);
    }

    .longevity-product-list-section .longevity-disclaimer {
        margin-bottom: 24px;
    }
}

