/* Product Page Styles */

/* Product Hero Section */
.product-hero {
    background: linear-gradient(135deg, #f5f9f7 0%, #ffffff 100%);
    padding: 40px 0 60px;
}

.product-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Product Info */
.product-info {
    padding-top: 20px;
}

.product-category {
    color: #028476;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 42px;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.product-tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
}

.badge svg {
    width: 18px;
    height: 18px;
}

.price-section {
    background: #f5f9f7;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.price {
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.price-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* Variation Selector */
.variation-selector-wrapper {
    margin-bottom: 25px;
}

.variation-selector-wrapper > label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.variation-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.variation-button {
    width: 100%;
    background: white;
    color: #028476;
    padding: 16px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.variation-button:hover:not(:disabled) {
    background: #f5f9f7;
    border-color: #028476;
}

.variation-button.active {
    background: #028476;
    color: white;
    border-color: #028476;
}

.variation-button.active:hover {
    background: #3d6b4d;
}

.variation-button:disabled,
.variation-button.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
    color: #999;
}

.variation-name {
    font-weight: 500;
    font-size: 15px;
}

.variation-stock {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.variation-button.active .variation-stock {
    opacity: 0.9;
}

/* Dynamic Price Display */
.dynamic-price {
    margin-top: 0;
    margin-bottom: 20px;
}

.dynamic-price .price-amount {
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
}

.variation-description {
    padding: 12px 16px;
    background: #f5f9f7;
    border-left: 3px solid #028476;
    border-radius: 4px;
    font-style: italic;
}

.dosage-selector {
    margin-bottom: 20px;
}

.dosage-selector label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.dosage-options {
    display: flex;
    gap: 10px;
}

.dosage-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.dosage-option:hover {
    border-color: #028476;
}

.dosage-option.selected {
    border-color: #028476;
    background: #f5f9f7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

/* Product Actions Wrapper - Buttons in One Line */
.product-actions-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
}

.product-actions-wrapper .cart {
    flex: 1;
}

.product-actions-wrapper .cart .quantity {
    display: none !important;
}

.product-actions-wrapper .cart button.single_add_to_cart_button {
    width: 100%;
    background: white;
    color: #028476;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid #028476;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    line-height: 1.5;
    height: auto;
    min-height: 52px;
}

.product-actions-wrapper .cart button.single_add_to_cart_button:hover {
    background: #028476;
    color: white;
    border-color: #028476;
}

.start-treatment-wrapper {
    flex: 1;
}

.start-treatment-wrapper .btn-secondary {
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 16px 32px;
    white-space: nowrap;
    background: white;
    color: #028476;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid #028476;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.5;
    height: auto;
    min-height: 52px;
}

.start-treatment-wrapper .btn-secondary:hover {
    background: #028476;
    color: white;
    border-color: #028476;
}

/* Benefits Snapshot */
.benefits-snapshot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: #028476;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 13px;
    color: #555;
    font-weight: 400;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 60px 0;
}

.content-section.alt {
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

.text-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* How It Works */
.mechanism-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mechanism-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.mechanism-card.alt {
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
}

.step-number-circle {
    width: 50px;
    height: 50px;
    background: #028476;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 500;
    margin: 0 auto 20px;
}

.mechanism-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.mechanism-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.benefit-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 25px;
}

.benefit-card.alt {
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #028476;
    margin-bottom: 10px;
}

.benefit-card ul {
    list-style: none;
    padding-left: 0;
}

.benefit-card ul li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.benefit-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #028476;
    font-weight: 600;
}

/* Protocol Info */
.protocol-box {
    background: #f5f9f7;
    border-left: 4px solid #028476;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.protocol-box h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.protocol-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.protocol-item {
    display: flex;
    flex-direction: column;
}

.protocol-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.protocol-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Safety Section */
.safety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.safety-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
}

.safety-card.alt {
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
}

.safety-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: left;
}

.safety-card p {
    text-align: left;
}

.safety-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.safety-card ul li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    text-align: left;
}

.safety-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #028476;
    font-weight: 600;
    font-size: 20px;
}

/* Doctor Note */
.doctor-note {
    background: #028476;
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
    overflow: hidden;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-note-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

.doctor-note-content cite {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    opacity: 0.9;
}

/* Science & Mechanism of Action Section */
.mechanism-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mechanism-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.mechanism-card:hover {
    border-color: #028476;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.08);
}

.mechanism-card.alt {
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
}

.step-number-circle {
    width: 50px;
    height: 50px;
    background: #028476;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 500;
    margin: 0 auto 20px;
}

.mechanism-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.mechanism-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.benefit-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #028476;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.08);
}

.benefit-card.alt {
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #028476;
    margin-bottom: 10px;
}

.benefit-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.benefit-card ul li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.benefit-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #028476;
    font-weight: 600;
}
c
/* FAQ Section */
.faq-container {
    margin: 0;
    max-width: 50%;
    padding: 0 40px !important;
}

.faq-container .section-title,
.faq-container .section-subtitle {
    text-align: left !important;
}

.product-faq-list {
    max-width: 100% !important;
    margin: 0;
}

.faq-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #028476;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.08);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    background: #028476;
    border-radius: 8px;
}

.faq-item.active .faq-question {
    border-radius: 8px 8px 0 0;
}

.faq-question:hover {
    background: linear-gradient(135deg, #3d6b4d 0%, #4a7c59 100%);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 20px;
    color: white;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
    font-weight: 300;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.faq-answer p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .product-hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .mechanism-steps,
    .benefits-grid,
    .safety-grid,
    .protocol-details {
        grid-template-columns: 1fr;
    }

    .benefits-snapshot {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .doctor-note {
        flex-direction: column;
        text-align: center;
    }

    .product-title {
        font-size: 32px;
    }

    .product-actions-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .product-actions-wrapper .cart,
    .start-treatment-wrapper {
        width: 100%;
    }

    .variation-buttons {
        grid-template-columns: 1fr;
    }
}

/* Related Products Section */
.related.products {
    background: white;
    padding: 80px 0;
    margin-top: 60px;
}

.related.products > h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.related.products .products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 35px !important;
    list-style: none;
}

.related.products .product {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.related.products .product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 90, 61, 0.12);
    border-color: #e8e8e8;
}

.related.products .product a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related.products .product img {
    width: 100%;
    height: 300px !important;
    object-fit: contain;
    background: linear-gradient(135deg, #fafafa 0%, #f5f9f7 100%);
    padding: 10px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.related.products .product:hover img {
    transform: scale(1.08);
}

.related.products .woocommerce-loop-product__title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 25px 25px 12px;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.3;
    min-height: 60px;
}

.related.products .product:hover .woocommerce-loop-product__title {
    color: #028476;
}

.related.products .price {
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    padding: 0 25px 12px;
    margin: 0;
    border: none;
}

.related.products .price .amount {
    color: #1a1a1a;
    font-weight: 400;
}

.related.products .price del {
    font-size: 18px;
    color: #999;
    margin-right: 8px;
}

.related.products .price ins {
    text-decoration: none;
    color: #028476;
}

.related.products .button {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto !important;
    margin: 0 25px 25px !important;
    padding: 0 !important;
    background: none !important;
    color: #028476 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.3s ease !important;
}

.related.products .button:hover {
    background: none !important;
    color: #1f4029 !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 1200px) {
    .related.products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related.products {
        padding: 60px 0;
    }

    .related.products > h2 {
        font-size: 28px;
    }

    .related.products .products {
        grid-template-columns: 1fr !important;
        padding: 0 20px;
        gap: 25px !important;
    }
}

/* Hide Protocol and Safety sections for Doctor Visit product only */
body.postid-546.single-product .protocol-section,
body.postid-546.single-product .safety-section {
    display: none !important;
}
