/* Enhanced Button Animations with Arrow Icons */
.btn-animated {
    position: relative;
    overflow: hidden;
    padding-right: 3rem;
}

.btn-animated::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.btn-animated:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.btn-animated span {
    display: inline-block;
    transition: transform 0.3s;
}

.btn-animated:hover span {
    transform: translateX(-5px);
}

/* Products Carousel */
.products-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.products-carousel-wrapper {
    overflow: hidden;
    padding: 1rem 0;
}

.products-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-carousel .product-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: calc(33.333% - 1.333rem);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: -25px;
}

.carousel-arrow-right {
    right: -25px;
}

@media (max-width: 992px) {
    .products-carousel .product-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .products-carousel .product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-arrow-left {
        left: -10px;
    }

    .carousel-arrow-right {
        right: -10px;
    }
}

/* Benefits Section SVG Icons */
.benefits-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefits-stats .stat-item .icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefits-stats .stat-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* BMI Calculator Section */
.bmi-calculator {
    padding: 0;
    margin: 4rem 0;
}

.bmi-calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.bmi-left-side {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bmi-left-side h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.bmi-woman-image {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: auto;
    object-fit: contain;
}

.bmi-starting-weight {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 10;
}

.weight-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.weight-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.bmi-right-side {
    background: #f8f9fa;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmi-right-side h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.bmi-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.bmi-category {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.bmi-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 63, 140, 0.15);
}

.bmi-category.active {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 63, 140, 0.3);
}

.bmi-result {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 63, 140, 0.1) 0%, rgba(107, 91, 170, 0.1) 100%);
    border-radius: 15px;
}

.bmi-result-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.bmi-result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.bmi-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bmi-input-group {
    display: flex;
    flex-direction: column;
}

.bmi-input-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.bmi-input-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bmi-input-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    min-width: 70px;
    text-transform: lowercase;
}

.bmi-input-field input {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    outline: none;
    text-align: left;
    width: 100px;
    border-bottom: 2px solid #ddd;
}

.bmi-input-field input:focus {
    border-bottom-color: var(--primary-color);
}

.bmi-input-field input::placeholder {
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .bmi-calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .bmi-left-side {
        min-height: 500px;
    }

    .bmi-woman-image {
        width: 300px;
    }

    .bmi-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .bmi-inputs {
        grid-template-columns: 1fr;
    }
}

/* Patient Profile Card Section */
.patient-profile-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.patient-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.patient-info-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.patient-info-card h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.patient-quote {
    background: rgba(74, 63, 140, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    font-style: italic;
    color: var(--text-dark);
}

.patient-quote-author {
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

.patient-details-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.patient-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.patient-stat {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.patient-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.patient-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.patient-medication {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.medication-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.medication-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.medication-dosage {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonials-wrapper {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

.testimonial-card {
    min-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.testimonial-weight-loss {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-quote {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-member {
    color: var(--text-light);
    font-size: 0.9rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Trustpilot Widget Container */
.trustpilot-widget {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

/* Certification Badges */
.certification-badges {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-item img {
    height: 60px;
    width: auto;
}

.compounded-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
}

.compounded-badge img {
    height: 30px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Sticky Navigation Enhancement */
.main-header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Enhanced Product Card Hover */
.product-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 63, 140, 0.1), rgba(107, 91, 170, 0.1));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(74, 63, 140, 0.2);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .bmi-calculator-grid,
    .patient-profile-grid {
        grid-template-columns: 1fr;
    }

    .bmi-inputs {
        grid-template-columns: 1fr;
    }

    .patient-stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .certification-badges {
        justify-content: center;
    }
}

/* Medication Product Pages */
.product-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.product-image-container {
    position: relative;
    text-align: center;
}

.product-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.product-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Product Info Section */
.product-info-section {
    padding: 4rem 0;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.product-description {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.product-description h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quality-testing-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.quality-testing-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quality-testing-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.quality-test-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.quality-test-item:last-child {
    border-bottom: none;
}

.quality-test-item svg {
    width: 20px;
    height: 20px;
    color: #28a745;
    flex-shrink: 0;
}

.quality-test-item span {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Product FAQ Section */
.product-faq-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.product-faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-item h3::before {
    content: '?';
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Product Testimonials Section */
.product-testimonials-section {
    padding: 4rem 0;
}

.product-testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.author-weight-loss {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Product CTA Section */
.product-cta-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.product-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.product-cta-section .btn-large {
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
}

.product-cta-section .btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Product Pages */
@media (max-width: 992px) {
    .product-hero-grid,
    .product-info-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .product-content h1 {
        font-size: 2.5rem;
    }

    .product-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 2rem 0;
    }

    .product-content h1 {
        font-size: 2rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-description,
    .quality-testing-card {
        padding: 2rem;
    }

    .product-info-section,
    .product-faq-section,
    .product-testimonials-section,
    .product-cta-section {
        padding: 3rem 0;
    }
}
