/**
 * Modern Treatment Page Styles
 * Complete redesign with glass-morphism, animations and modern components
 */

/* CSS Variables Extension for Treatments */
:root {
    --tty-treatment-hero-height: 600px;
    --tty-glass-bg: rgba(255, 255, 255, 0.8);
    --tty-glass-border: rgba(255, 255, 255, 0.3);
    --tty-glass-shadow: 0 8px 32px rgba(0, 95, 95, 0.1);
    --tty-content-max-width: 1400px;
    --tty-sidebar-width: 380px;
    --tty-content-gap: 40px;
}

[data-theme="dark"] {
    --tty-glass-bg: rgba(30, 42, 46, 0.8);
    --tty-glass-border: rgba(255, 255, 255, 0.1);
    --tty-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tty-expert-title {
    position: relative;
}

@media (min-width: 768px) {
  body.single-treatment .sb-chat-btn {
    right: 88px;
  }
}

.tty-expert-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   Floating Products Navigation
   ======================================== */

.floating-products-nav {
    position: fixed;
    right: 20px;
    bottom: 235px;
    z-index: 9998;
    display: none;
}

/* Only show on mobile */
@media (max-width: 768px) {
    .floating-products-nav {
        display: block;
    }
    
    .tty-expert-main {
        flex-direction: column;
        text-align: center;
    }
    
    .tty-expert-avatar {
        margin: 0 auto;
    }
    
    .tty-expert-info h3 {
     font-size: 20px !important;
    }
    
    .tty-expert-meta {
        gap: 15px;
        flex-direction: column;
    }
    .tty-expert-bio p {
        padding: 0px;
        font-size: 14px;
        line-height: 1.6;
        color: var(--tty-text-secondary);
        margin: 0px;
    }

}

.floating-products-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--tty-bg-linear-graniet);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(229, 146, 76, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-products-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(229, 146, 76, 0.4);
    opacity: 1;
}

.products-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-icon i {
    font-size: 26px;
}

.products-indicator {
    position: absolute;
    top: -7px;
    right: -8px;
    background: var(--tty-secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Preview Popup */
.floating-products-preview {
    position: absolute;
    bottom: 55px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-products-nav.active .floating-products-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 5px 15px;
}

.preview-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--tty-primary);
}

.preview-close {
display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-align: center !important;
  text-transform: none;
  background: rgba(22, 51, 0, .078) !important;
  padding: 8px 8px !important;
  border-radius: 50%;
  transition: .3s;
  width: 36px;
  border: none !important;
  height: 36px;
  font-weight: 400 !important;
  line-height: 21px;
  cursor: pointer;
  margin-right: -5px;
  color: #121212;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}

.preview-product-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.preview-product-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.preview-product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 24px;
}

.preview-cta {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--tty-secondary) 0%, var(--tty-secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.preview-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 146, 76, 0.3);
    gap: 12px;
}

.preview-cta i {
    transition: transform 0.3s ease;
}

.preview-cta:hover i {
    transform: translateY(2px);
}

/* Dark mode support */
[data-theme="dark"] .floating-products-preview {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .preview-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .preview-header span {
    color: var(--tty-secondary-light);
}

[data-theme="dark"] .preview-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .preview-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

[data-theme="dark"] .preview-product-thumb {
    background: #3a3a3a;
}

[data-theme="dark"] .preview-product-placeholder {
    background: #2a2a2a;
    color: #666;
}

/* Hide pulse animation when active */
.floating-products-nav.active .floating-products-toggle::before {
    animation: none;
    opacity: 0;
}

/* Ensure proper stacking for treatment page */
@media (max-width: 768px) {
    .treatment-template-default .transtoyou-back-to-top.show {
        bottom: 129px;
        right: 15px !important;
        width: 45px;
        height: 45px;
        opacity: 1 !important;
        background: var(--tty-bg-linear-graniet);
    }
    
    .treatment-toc .floating-toc-button {
        bottom: 262px;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        opacity: 1 !important;
        position: fixed !important;
    }
    
    .floating-products-nav {
        bottom: 329px;
        right: 15px;
    }
}


/* ========================================
   Single Treatment Save Button
   ======================================== */

.tty-hero-image {
    position: relative;
}

.blog-hero-pattern {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23005F5F' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float-pattern 60s linear infinite;
}

.tty-entry-content h2:first-child {
  margin-top: 0px;
}

.tty-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--tto-radius);
    box-shadow: var(--tto-shadow-lg);
}

.tty-single-save-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--tto-border-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--tto-text-secondary);
    font-size: 24px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.tty-single-save-btn:hover {
    background: var(--tto-secondary);
    border-color: var(--tto-secondary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 95, 95, 0.4);
    opacity: 1 !important;
}

.tty-single-save-btn.saved {
    background: var(--tty-secondary);
    border-color: var(--tty-secondary);
    color: white;
    opacity: .7;
}

.tty-single-save-btn.saved i::before {
    content: "\f004"; /* Filled heart */
    font-weight: 900;
}

.tty-single-save-btn.saving {
    pointer-events: none;
    opacity: 0.7;
}

.tty-single-save-btn.saving i {
    animation: pulse 0.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.tty-single-save-btn.saved-animation {
    animation: savedBounce 0.6s ease-out;
}

@keyframes savedBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    60% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile adjustments for single treatment save button */
@media (max-width: 768px) {
    .tty-single-save-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
        top: auto;
        left: auto;
        display: block;
        z-index: 9998;
        bottom: 396px;
        position: fixed;
        right: 15px;
        opacity: 1;
        border: none;
    }
    
    .tty-single-save-btn.saved {
        opacity: 1;
    }
    
    .tty-image-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 0px !important;
        box-shadow: var(--tto-shadow-lg);
    }
}

/* Dark mode support */

[data-theme="dark"] .tty-sidebar-card {
  background: linear-gradient(135deg, var(--tty-bg-primary) 0%, var(--tty-bg-secondary) 100%);
}

[data-theme="dark"] .tty-faq-card,
[data-theme="dark"] .tty-sources-card,
[data-theme="dark"] .tto-item-grid,
[data-theme="dark"] .tto-compact-item {
  background: linear-gradient(135deg, var(--tty-bg-primary) 0%, var(--tty-bg-secondary) 100%);
}

[data-theme="dark"] .tty-single-save-btn:hover {
    background: var(--tto-primary);
    border-color: var(--tto-primary);
    color: white;
}

[data-theme="dark"] .tto-toast {
    background: var(--tto-bg-secondary);
    color: var(--tto-text-primary);
}

/* ========================================
   Hero Section - Modern Design
   ======================================== */

.tty-treatment-hero {
    position: relative;
    background: linear-gradient(135deg, var(--tty-bg-primary) 0%, var(--tty-bg-accent) 100%);
    min-height: var(--tty-treatment-hero-height);
    overflow: hidden;
    padding: 40px 0 100px;
}

[data-theme="dark"] .tty-treatment-hero {
    background: linear-gradient(135deg, var(--tty-bg-primary) 0%, var(--tty-bg-secondary) 100%);
}

/* Hero Pattern Background */
.tty-hero-pattern {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23005F5F' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float-pattern 60s linear infinite;
}

/* Floating Elements */
.tty-hero-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tty-float-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float-orb 20s infinite;
}

.tty-float-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 95, 95, 0.1);
    top: -150px;
    right: -100px;
}

.tty-float-2 {
    width: 400px;
    height: 400px;
    background: rgba(229, 146, 76, 0.08);
    bottom: -200px;
    left: -200px;
    animation-duration: 25s;
}

.tty-float-3 {
    width: 200px;
    height: 200px;
    background: rgba(127, 205, 187, 0.1);
    top: 50%;
    left: 10%;
    animation-duration: 30s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Container */
.tty-container {
    max-width: var(--tty-content-max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Modern Breadcrumbs */
.tty-breadcrumbs-modern {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.tty-breadcrumbs-modern ol {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.tty-breadcrumbs-modern li {
    position: relative;
    font-size: 14px;
}

.tty-breadcrumbs-modern li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--tty-text-secondary);
    border-right: 2px solid var(--tty-text-secondary);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.5;
}

.tty-breadcrumbs-modern a {
    color: var(--tty-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tty-breadcrumbs-modern a:hover {
    color: var(--tty-secondary-dark);
}

.tty-breadcrumbs-modern .current {
  opacity: .4;
  font-weight: 600;
  max-width: 8ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Hero Content Grid */
.tty-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Category Pills */
.tty-category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.tty-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 10px;
}

.tty-category-pill:hover {
    background: var(--tty-primary);
    color: var(--tty-text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 95, 95, 0.3);
}

/* Hero Title */
.tty-hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tty-header-primary);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tty-hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--tty-text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Hero Actions */
.tty-hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.tty-btn-primary,
.tty-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-btn-primary {
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: var(--tty-text-light);
    box-shadow: 0 8px 25px rgba(0, 95, 95, 0.3);
}

.tty-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 95, 95, 0.4);
    color: var(--tty-text-light);
}

.tty-btn-secondary {
    background: white;
    color: var(--tty-primary);
    border: 2px solid var(--tty-border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tty-btn-secondary:hover {
    background: var(--tty-bg-secondary);
    transform: translateY(-3px);
    border-color: var(--tty-primary);
    color: var(--tty-primary);
}

/* Modern Expert Card */
.tty-expert-card-modern {
    background: var(--tty-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--tty-glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--tty-glass-shadow);
    animation: fadeInUp 0.6s ease-out 0.5s both;
    transition: all 0.3s ease;
}

.tty-expert-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 95, 95, 0.15);
}

.tty-expert-verified {
 display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--tty-primary);
  font-weight: 600;
  font-size: 14px;
  background: rgba(0, 95, 95, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
}

.tty-expert-verified i {
    font-size: 24px;
    color: var(--tty-primary);
}

.tty-expert-main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.attachment-thumbnail.size-thumbnail img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tty-expert-check-badge {
  position: absolute;
  bottom: 0px;
  right: -11px;
  width: 28px;
  height: 28px;
  background: var(--tty-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 3px solid white;
}

.tty-expert-avatar {
  position: relative;
  flex-shrink: 0;
}

.tty-expert-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tty-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-text-light);
    font-size: 40px;
}

.tty-expert-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--tty-header-primary);
    margin-top: 0px;
}

.tty-expert-title {
    font-size: 14px;
    color: var(--tty-text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

.tty-expert-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tty-review-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tty-text-secondary);
}

.tty-expert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tty-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tty-expert-link:hover {
    gap: 10px;
    color: var(--tty-primary-dark);
}

.tty-expert-bio {
    padding-top: 20px;
    border-top: 1px solid var(--tty-border-light);
    font-size: 15px;
    line-height: 1.6;
    color: var(--tty-text-secondary);
}

/* Hero Image */
.tty-hero-right {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.tty-hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 870px;
    margin: 0 auto;
}

.tty-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 580/870 aspect ratio */
    overflow: hidden;
}

.tty-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tty-hero-image:hover img {
    transform: scale(1.05);
}

.tty-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 95, 95, 0.1) 100%);
    pointer-events: none;
}

/* ========================================
   Main Content Section
   ======================================== */

.tty-product-info .tty-product-excerpt {
  font-size: 14px;
}

.tty-treatment-content {
    padding: 100px 0;
    background: var(--tty-bg-primary);
    position: relative;
}

.tty-content-grid {
    display: grid;
    grid-template-columns: 1fr var(--tty-sidebar-width);
    gap: var(--tty-content-gap);
    align-items: start;
}

/* Entry Content */
.tty-entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--tty-text-primary);
}

.tty-entry-content h2,
.tty-entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.tty-entry-content h2::before,
.tty-entry-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(to bottom, var(--tty-primary), var(--tty-secondary));
    border-radius: 2px;
}

.tty-entry-content p {
    margin-bottom: 20px;
}

.tty-entry-content ul,
.tty-entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.tty-entry-content li {
    margin-bottom: 10px;
    position: relative;
}

/* Modern Info Tabs */
.tty-info-section {
    margin-top: 60px;
    background: var(--tty-bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.tty-tab-navigation {
    display: flex;
    background: rgba(0, 95, 95, 0.05);
    padding: 8px;
    gap: 8px;
}

.tty-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.tty-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--tty-text-primary);
}

.tty-tab-btn.active {
    background: white;
    color: var(--tty-primary);
    box-shadow: 0 4px 15px rgba(0, 95, 95, 0.15);
}

.tty-tab-btn i {
    font-size: 24px;
}

.tty-tab-btn:has(.fa-triangle-exclamation) {
    color: #d46666;
}

.tty-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.tty-tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

.tty-panel-content {
    padding: 30px;
}

/* Sidebar */
.tty-content-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar Cards */
.tty-sidebar-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.tty-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.tty-sidebar-card h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #212529;
}

/* Action Buttons Grid */
.tty-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.tty-action-btn i {
  font-size: 34px;
  color: var(--tty-primary);
  transition: color 0.3s ease;
}

.tty-action-btn:hover i {
  color: white;
}

.tty-mini-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.tty-mini-product-info {
  padding: 12px;
}

.tty-mini-product-info h4 {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tty-mini-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blog-primary);
}

.tty-mini-product-item {
  background: var(--tty-bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tty-mini-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tty-see-all-products i {
  transition: transform 0.3s ease;
}

.tty-see-all-products {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--tty-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tty-mini-product-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: #f8f9fa;
}

.tty-mini-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tty-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
  background: var(--tty-bg-secondary);
  border-radius: 16px;
  text-decoration: none;
  color: #212529;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.tty-action-btn:hover {
    background: var(--tty-primary);
    color: var(--tty-text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 95, 95, 0.2);
}

.tty-action-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Secondary Links */
.tty-secondary-links {
 display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tty-secondary-links a {
    color: var(--tty-text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.tty-secondary-links a:hover {
    color: var(--tty-primary);
}

.tty-secondary-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tty-primary);
    transition: width 0.3s ease;
}

.tty-secondary-links a:hover::after {
    width: 100%;
}

/* Table of Contents */
.tty-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tty-toc-nav a {
    padding: 10px 15px;
    color: var(--tty-text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 30px;
}

.tty-toc-nav a::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--tty-border-medium);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tty-toc-nav a:hover {
    background: var(--tty-bg-secondary);
    color: var(--tty-primary);
    padding-left: 35px;
}

.tty-toc-nav a.active {
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-primary);
    font-weight: 600;
}

.tty-toc-nav a.active::before {
    width: 20px;
    height: 3px;
    background: var(--tty-primary);
    border-radius: 2px;
}

/* ========================================
   Products Section
   ======================================== */

.tty-products-section {
    padding: 100px 0;
    background: var(--tty-bg-secondary);
    position: relative;
}

.tty-treatment-section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

.tty-treatment-section-header h2 {
    margin-bottom: 15px;
    color: var(--tty-header-primary);
    margin-top: 0px;
}

.tty-treatment-section-header p {
    font-size: 18px;
    color: var(--tty-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Filter Bar */
.tty-products-filter-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tty-hero-left .tty-heartbeat-svg {
    width: 200px;
    height: 50px;
}

.tty-filter-left,
.tty-filter-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tty-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--tty-primary);
    color: var(--tty-text-light);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tty-filter-btn:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-2px);
    color: var(--tty-text-light);
}

.tty-search-box {
    position: relative;
    width: 300px;
}

.tty-search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px !important;
    border: 2px solid var(--tty-border-light);
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.tty-search-box input:focus {
    outline: none;
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

.tty-search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tty-primary);
    pointer-events: none;
}

.tty-filter-select {
    padding: 12px 20px;
    border: 2px solid var(--tty-border-light);
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tty-filter-select:focus {
    outline: none;
    border-color: var(--tty-primary);
}

.tty-filter-reset {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tty-filter-reset:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Products Grid */
#related-products .tty-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    animation: fadeIn 0.6s ease-out;
}

.tty-product-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tty-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    height: 100%;
}

.tty-product-card:nth-child(1) { animation-delay: 0.1s; }
.tty-product-card:nth-child(2) { animation-delay: 0.2s; }
.tty-product-card:nth-child(3) { animation-delay: 0.3s; }
.tty-product-card:nth-child(4) { animation-delay: 0.4s; }

.tty-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tty-product-card:hover .tty-product-image img {
    transform: scale(1.1);
}

.tty-quick-view {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tty-product-card:hover .tty-quick-view {
    opacity: 1;
    transform: scale(1);
}

.tty-quick-view:hover {
    background: var(--tty-primary);
    color: var(--tty-text-light);
    transform: scale(1.1);
}

.tty-product-info {
    padding: 5px 25px;
}

.tty-product-info h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.tty-product-info h4 a {
    color: var(--tty-header-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tty-product-info h4 a:hover {
    color: var(--tty-primary);
}

.tty-product-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tty-product-actions {
    display: flex;
    gap: 10px;
}

.tty-product-actions .tty-btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
}

/* ========================================
   FAQ Section
   ======================================== */

.tty-faq-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.tty-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tty-faq-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tty-faq-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tty-faq-toggle {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tty-faq-toggle:hover {
    background: var(--tty-bg-secondary);
}

.tty-faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--tty-header-primary);
    text-align: left;
    padding-right: 20px;
}

.tty-faq-icon {
    position: relative;
    width: 30px;
    height: 30px;
    background: var(--tty-bg-secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

.tty-faq-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--tty-primary);
    transition: all 0.3s ease;
}

.tty-faq-icon .fa-minus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.tty-faq-card.active .tty-faq-icon .fa-plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.treatment-template-default .footer-newsletter-container {
    margin-top: 0px;
}

.tty-faq-card.active .tty-faq-icon .fa-minus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

.tty-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tty-faq-card.active .tty-faq-content {
    max-height: 500px;
}

.tty-faq-answer {
    padding: 10px 30px 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tty-text-secondary);
}

/* ========================================
   Scientific Sources Section
   ======================================== */

.tty-sources-section {
    padding: 100px 0;
    background: var(--tty-bg-secondary);
}

.tty-sources-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tty-sources-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tty-sources-header i {
    font-size: 32px;
    color: var(--tty-primary);
}

.tty-sources-header h2 {
    margin: 0;
    font-size: 32px;
    color: var(--tty-header-primary);
}

.tty-sources-content {
    font-size: 16px;
    line-height: 1.8;
}

.tty-sources-content a {
    color: var(--tty-secondary);
    text-decoration: underline;
    transition: all 0.3s ease;
    /* Add word-break properties for better link handling */
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.tty-sources-content a:hover {
    color: var(--tty-secondary-dark);
    text-decoration: none;
}

/* Ensure proper list formatting with long URLs */
.tty-sources-content ol,
.tty-sources-content ul {
    padding-left: 20px;
}

.tty-sources-content li {
    word-break: break-word;
    overflow-wrap: break-word;
}


/* ========================================
   Floating TOC Mobile
   ======================================== */

.tty-toc-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--tty-primary);
    color: var(--tty-text-light);
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 95, 95, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.tty-toc-mobile-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 95, 95, 0.4);
}

/* ========================================
   Modal Styles
   ======================================== */

.tty-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.tty-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tty-modal-container {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tty-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--tty-text-secondary);
    font-size: 20px;
}

.tty-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.tty-modal-header {
    padding: 30px;
    border-bottom: 1px solid var(--tty-border-light);
}

.tty-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* ========================================
   Quick View Modal
   ======================================== */

.tty-quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 400px;
}

.tty-quick-view-gallery {
    position: relative;
    background: var(--tty-bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
}

.tty-quick-view-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tty-quick-view-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tty-quick-view-details h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--tty-header-primary);
}

.tty-quick-view-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--tty-secondary);
    margin-bottom: 20px;
}

.tty-quick-view-description {
    color: var(--tty-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.tty-quick-view-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--tty-bg-secondary);
    border-radius: 12px;
    margin-bottom: 30px;
}

.tty-quick-view-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.tty-quick-view-meta-label {
    color: var(--tty-text-secondary);
    font-weight: 600;
}

.tty-quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.tty-quick-view-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.tty-quick-view-btn-primary {
    background: var(--tty-primary);
    color: white;
}

.tty-quick-view-btn-primary:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 95, 95, 0.3);
}

.tty-quick-view-btn-secondary {
    background: white;
    color: var(--tty-primary);
    border: 2px solid var(--tty-border-light);
}

.tty-quick-view-btn-secondary:hover {
    background: var(--tty-bg-secondary);
    border-color: var(--tty-primary);
}

/* ========================================
   Floating Table of Contents
   ======================================== */

.tty-floating-toc {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 100;
}

.tty-toc-toggle {
    width: 60px;
    height: 60px;
    background: var(--tty-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 95, 95, 0.3);
    transition: all 0.3s ease;
}

.tty-toc-toggle:hover {
    transform: scale(1.1);
    background: var(--tty-primary-dark);
}

.tty-toc-toggle i {
    font-size: 24px;
}

.tty-toc-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    max-height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tty-floating-toc.active .tty-toc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tty-toc-header {
    padding: 20px;
    border-bottom: 1px solid var(--tty-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tty-toc-header h3 {
    margin: 0;
    font-size: 18px;
}

.tty-toc-close {
    width: 32px;
    height: 32px;
    background: var(--tty-bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tty-toc-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.tty-toc-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.tty-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tty-toc-item {
    margin-bottom: 5px;
}

.tty-toc-link {
    display: block;
    padding: 10px 15px;
    color: var(--tty-text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 30px;
}

.tty-toc-link::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--tty-border-medium);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tty-toc-link:hover {
    background: var(--tty-bg-secondary);
    color: var(--tty-primary);
    padding-left: 35px;
}

.tty-toc-link.active {
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-primary);
    font-weight: 600;
}

.tty-toc-link.active::before {
    width: 20px;
    height: 3px;
    background: var(--tty-primary);
    border-radius: 2px;
}

.tty-toc-level-h3 {
    padding-left: 50px;
    font-size: 14px;
}

.tty-toc-level-h3::before {
    left: 35px;
}

/* ========================================
   Loading States
   ======================================== */

.tty-loading {
    position: relative;
    pointer-events: none;
}

.tty-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tty-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tty-border-light);
    border-top-color: var(--tty-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.tty-skeleton {
    background: linear-gradient(90deg,
        var(--tty-bg-secondary) 25%,
        var(--tty-bg-tertiary) 50%,
        var(--tty-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .tty-container {
        padding: 0 20px;
    }
    
    .tty-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tty-hero-right {
        order: -1;
    }
    
    .tty-hero-right {
        animation: none !important;
    }
    
    .tty-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tty-content-sidebar {
        position: static;
    }
    
    .tty-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .tty-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* No Results Message */
.tty-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--tty-text-secondary);
    animation: fadeInUp 0.6s ease-out;
}

.tty-no-results i {
    color: var(--tty-primary);
    opacity: 0.3;
}

.tty-no-results .fa-duotone.fa-search-minus {
    font-size: 120px;
}

.tty-no-results p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--tty-text-primary);
    margin-top: -58px;
}

.tty-no-results .tty-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Active state for reset button */
.tty-filter-reset.active {
    background: var(--tty-primary);
    color: white;
}

.tty-filter-reset.active:hover {
    background: var(--tty-primary-dark);
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .tty-hero-left .tty-heartbeat-svg {
        width: 150px;
        height: 50px;
    }
    
    .tty-sidebar-card.tty-related-products-mini {
        display: none !important;
    }
    
    .tty-sidebar-card {
        border-radius: 0px;
        box-shadow: none;
        padding: 15px;
        margin: 0px -15px;
    }
    
    .tty-sidebar-card h3 {
        text-align: center;
        font-weight: 600;
        color: var(--tty-header-primary);
        font-size: 22px;
        line-height: 28px;
    }
    
    .tty-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .tty-secondary-links {
        display: none;
    }

    .tty-sidebar-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .tty-breadcrumbs-modern ol {
    	display: none !important;
  	}
    
    .tty-hero-subtitle {
        font-size: 18px;
    }
    
    .tty-product-excerpt {
        display: none !important;
    }
    
    #related-products .tty-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .tty-sources-card {
        padding: 25px !important;
    }
    
    .transtoyou-back-to-top.show {
        bottom: 128px;
        right: 15px !important;
        width: 45px;
        height: 45px;
    }

    .tty-sources-content a {
        /* Force aggressive word breaking on mobile */
        word-break: break-all;
        overflow-wrap: anywhere;
        display: inline-block;
        max-width: 100%;
    }
    
    /* Adjust list padding for better mobile display */
    .tty-sources-content ol,
    .tty-sources-content ul {
        padding-left: 15px;
    }
    
    .tty-sources-content li {
        margin-bottom: 15px;
    }
    
    .tty-hero-image {
        margin: -15px;
        border-radius: 0px;
    }
    
    .tty-breadcrumbs-modern {
        display: none;
    }
    
    /* Hero Section */
    .tty-treatment-hero {
        padding: 15px 0 60px;
        margin-top: 10px;
    }
    
    .tty-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .tty-btn-primary,
    .tty-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Content */
    .tty-treatment-content {
        padding: 60px 0;
    }
    
    .tty-info-section {
        margin-top: 40px;
    }
    
    .tty-tab-navigation {
        flex-direction: column;
        padding: 4px;
    }
    
    .tty-tab-btn {
        width: 100%;
    }
    
    /* Products */
    .tty-products-section {
        padding: 60px 0;
    }
    
    .tty-products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Enhanced Products Filter for Mobile */
    .tty-products-filter-modern {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .tty-filter-left,
    .tty-filter-right {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    /* All Products Button - Full Width on Mobile */
    .tty-filter-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
        box-shadow: 0 4px 15px rgba(0, 95, 95, 0.2);
    }
    
    .tty-filter-btn:hover,
    .tty-filter-btn:active {
        background: linear-gradient(135deg, var(--tty-primary-dark) 0%, var(--tty-primary) 100%);
        box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
    }
    
    /* Search Box - Enhanced for Mobile */
    #related-products .tty-search-box {
        width: 100%;
    }
    
    #related-products .tty-search-box input {
        width: 100%;
        padding: 16px 50px 16px 20px !important;
        font-size: 16px;
        border: 2px solid var(--tty-border-light);
        background: var(--tty-bg-primary);
        transition: all 0.3s ease;
    }
    
    #related-products .tty-search-box input:focus {
        border-color: var(--tty-primary);
        background: white;
        box-shadow: 0 0 0 4px rgba(0, 95, 95, 0.1);
    }
    
    #related-products .tty-search-box i {
        font-size: 20px;
        right: 18px;
    }
    
    /* Sort Dropdown - Enhanced for Mobile */
    .tty-filter-select {
        width: 100%;
        padding: 16px 40px 16px 20px;
        font-size: 16px;
        border: 2px solid var(--tty-border-light);
        background: var(--tty-bg-primary);
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23005F5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 20px center;
        cursor: pointer;
    }
    
    .tty-filter-select:focus {
        border-color: var(--tty-primary);
        box-shadow: 0 0 0 4px rgba(0, 95, 95, 0.1);
    }
    
    /* Reset Button - Enhanced for Mobile */
    .tty-filter-reset {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        background: var(--tty-bg-secondary);
        border: 2px solid var(--tty-border-light);
        color: var(--tty-text-primary);
        min-height: 52px;
    }
    
    .tty-filter-reset:hover,
    .tty-filter-reset:active {
        background: var(--tty-bg-tertiary);
        border-color: var(--tty-primary);
        transform: translateY(-1px);
    }
    
    .tty-filter-reset.active {
        background: linear-gradient(135deg, var(--tty-secondary) 0%, var(--tty-secondary-light) 100%);
        border-color: var(--tty-secondary);
        color: white;
        box-shadow: 0 4px 15px rgba(229, 146, 76, 0.3);
    }
    
    .tty-filter-reset.active:hover,
    .tty-filter-reset.active:active {
        background: linear-gradient(135deg, var(--tty-secondary-dark) 0%, var(--tty-secondary) 100%);
        border-color: var(--tty-secondary-dark);
        box-shadow: 0 6px 20px rgba(229, 146, 76, 0.4);
    }
    
    /* No Results Message - Enhanced for Mobile */
    .tty-no-results {
        padding: 60px 20px;
    }
    
    .tty-no-results .fa-duotone.fa-search-minus {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .tty-no-results p {
        font-size: 17px;
        line-height: 1.5;
        margin-top: 0;
        margin-bottom: 25px;
        color: var(--tty-text-primary);
    }
    
    /* Clear Filters Button in No Results */
    .tty-clear-filters-btn {
        padding: 16px 32px;
        font-size: 16px;
        background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
        color: white !important;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 95, 95, 0.2);
    }
    
    .tty-clear-filters-btn:hover,
    .tty-clear-filters-btn:active {
        background: linear-gradient(135deg, var(--tty-primary-dark) 0%, var(--tty-primary) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
    }
    
    /* Dark mode support for mobile filters */
    [data-theme="dark"] .tty-filter-btn {
        background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    }
    
    [data-theme="dark"] .tty-search-box input {
        background: var(--tty-bg-secondary);
        border-color: var(--tty-border-medium);
        color: var(--tty-text-primary);
    }
    
    [data-theme="dark"] .tty-filter-select {
        background: var(--tty-bg-secondary);
        border-color: var(--tty-border-medium);
        color: var(--tty-text-primary);
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    
    [data-theme="dark"] .tty-filter-reset {
        background: var(--tty-bg-secondary);
        border-color: var(--tty-border-medium);
        color: var(--tty-text-primary);
    }
    
    [data-theme="dark"] .tty-filter-reset.active {
        background: linear-gradient(135deg, var(--tty-secondary) 0%, var(--tty-secondary-light) 100%);
        border-color: var(--tty-secondary);
        color: white;
    }
    
    /* Modal */
    .tty-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .tty-quick-view-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Floating TOC */
    .tty-floating-toc {
        right: 20px;
        bottom: 20px;
    }
    
    .tty-toc-toggle {
        width: 50px;
        height: 50px;
    }
    
    .tty-toc-toggle i {
        font-size: 20px;
    }
    
    .tty-toc-menu {
        width: 280px;
        bottom: 70px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .tty-container {
        padding: 0 15px;
    }
    
    #treatment-title {
        margin-bottom: 0px !important;
    }
    
    .tty-hero-subtitle {
        font-size: 18px;
    }
    
    .tty-hero-description {
        font-size: 16px;
    }

    .tty-treatment-section-header p {
        font-size: 16px;
    }
    
    /* Products Grid on Small Mobile */
    #related-products .tty-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .tty-product-card {
        border-radius: 16px;
    }
    
    .tty-product-info {
        padding: 12px 15px;
    }
    
    .tty-product-info h4 {
        font-size: 16px;
        margin-bottom: 8px;
        margin-top: 0px;
    }
    
    .tty-product-card {
        border-radius: 16px !important;
    }
    
    .tty-product-price {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    /* Even smaller filters on very small screens */
    .tty-filter-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    #related-products .tty-search-box input {
        padding: 14px 45px 14px 18px !important;
        font-size: 15px;
    }
    
    .tty-filter-select {
        padding: 14px 35px 14px 18px;
        font-size: 15px;
    }
    
    .tty-filter-reset {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

/* Visibility */
.tty-show { display: block !important; }
.tty-hide { display: none !important; }
.tty-invisible { visibility: hidden !important; }
.tty-visible { visibility: visible !important; }

/* Opacity */
.tty-opacity-0 { opacity: 0 !important; }
.tty-opacity-50 { opacity: 0.5 !important; }
.tty-opacity-75 { opacity: 0.75 !important; }
.tty-opacity-100 { opacity: 1 !important; }

/* Borders */
.tty-border { border: 1px solid var(--tty-border-light) !important; }
.tty-border-0 { border: 0 !important; }
.tty-border-top { border-top: 1px solid var(--tty-border-light) !important; }
.tty-border-bottom { border-bottom: 1px solid var(--tty-border-light) !important; }
.tty-border-primary { border-color: var(--tty-primary) !important; }
.tty-border-secondary { border-color: var(--tty-secondary) !important; }

/* Border Radius */
.tty-rounded-0 { border-radius: 0 !important; }
.tty-rounded { border-radius: var(--tty-radius-sm) !important; }
.tty-rounded-md { border-radius: var(--tty-radius-md) !important; }
.tty-rounded-lg { border-radius: var(--tty-radius-lg) !important; }
.tty-rounded-full { border-radius: 50% !important; }

/* Shadows */
.tty-shadow-none { box-shadow: none !important; }

/* Position */
.tty-position-relative { position: relative !important; }
.tty-position-absolute { position: absolute !important; }
.tty-position-fixed { position: fixed !important; }
.tty-position-sticky { position: sticky !important; }

/* Overflow */
.tty-overflow-auto { overflow: auto !important; }
.tty-overflow-hidden { overflow: hidden !important; }
.tty-overflow-visible { overflow: visible !important; }
.tty-overflow-scroll { overflow: scroll !important; }

/* Z-index */
.tty-z-0 { z-index: 0 !important; }
.tty-z-10 { z-index: 10 !important; }
.tty-z-20 { z-index: 20 !important; }
.tty-z-30 { z-index: 30 !important; }
.tty-z-40 { z-index: 40 !important; }
.tty-z-50 { z-index: 50 !important; }

/* Width */
.tty-w-auto { width: auto !important; }
.tty-w-25 { width: 25% !important; }
.tty-w-50 { width: 50% !important; }
.tty-w-75 { width: 75% !important; }
.tty-w-100 { width: 100% !important; }

/* Height */
.tty-h-auto { height: auto !important; }
.tty-h-100 { height: 100% !important; }
.tty-vh-100 { height: 100vh !important; }

/* Animations */
.tty-transition-none { transition: none !important; }
.tty-transition-all { transition: all 0.3s ease !important; }
.tty-transition-colors { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important; }
.tty-transition-opacity { transition: opacity 0.3s ease !important; }
.tty-transition-transform { transition: transform 0.3s ease !important; }

/* Transform */
.tty-scale-95 { transform: scale(0.95) !important; }
.tty-scale-100 { transform: scale(1) !important; }
.tty-scale-105 { transform: scale(1.05) !important; }
.tty-scale-110 { transform: scale(1.1) !important; }
.tty-rotate-45 { transform: rotate(45deg) !important; }
.tty-rotate-90 { transform: rotate(90deg) !important; }
.tty-rotate-180 { transform: rotate(180deg) !important; }

/* Cursor */
.tty-cursor-pointer { cursor: pointer !important; }
.tty-cursor-default { cursor: default !important; }
.tty-cursor-wait { cursor: wait !important; }
.tty-cursor-not-allowed { cursor: not-allowed !important; }

/* User Select */
.tty-select-none { user-select: none !important; }
.tty-select-text { user-select: text !important; }
.tty-select-all { user-select: all !important; }

/* ========================================
   Animations Library
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation Classes */
.tty-animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.tty-animate-fadeInDown { animation: fadeInDown 0.6s ease-out; }
.tty-animate-fadeInLeft { animation: fadeInLeft 0.6s ease-out; }
.tty-animate-fadeInRight { animation: fadeInRight 0.6s ease-out; }
.tty-animate-slideInUp { animation: slideInUp 0.5s ease-out; }
.tty-animate-slideInDown { animation: slideInDown 0.5s ease-out; }
.tty-animate-slideInLeft { animation: slideInLeft 0.5s ease-out; }
.tty-animate-slideInRight { animation: slideInRight 0.5s ease-out; }
.tty-animate-zoomIn { animation: zoomIn 0.5s ease-out; }
.tty-animate-zoomOut { animation: zoomOut 0.5s ease-out; }
.tty-animate-pulse { animation: pulse 2s ease-in-out infinite; }
.tty-animate-bounce { animation: bounce 2s ease-in-out infinite; }
.tty-animate-shake { animation: shake 0.5s ease-in-out; }

/* ========================================
   Print Styles
   ======================================== */

@media print {
    /* Hide non-essential elements */
    .tty-floating-toc,
    .tty-modal,
    .tty-btn-primary,
    .tty-btn-secondary,
    .tty-products-filter-modern,
    .tty-action-buttons,
    .tty-secondary-links,
    header,
    footer {
        display: none !important;
    }
    
    /* Reset backgrounds */
    body,
    .tty-treatment-hero,
    .tty-treatment-content,
    .tty-products-section,
    .tty-faq-section,
    .tty-sources-section {
        background: white !important;
        color: black !important;
    }
    
    /* Ensure text is readable */
    * {
        color: black !important;
        background: transparent !important;
    }
    
    /* Page breaks */
    .tty-treatment-hero,
    .tty-products-section,
    .tty-faq-section,
    .tty-sources-section {
        page-break-before: always;
    }
    
    /* Links */
    a {
        text-decoration: underline !important;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--tty-primary);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    * {
        border-color: transparent !important;
    }
    
    *:focus {
        outline-width: 3px;
    }
    
    .tty-btn-primary,
    .tty-btn-secondary {
        border: 2px solid currentColor !important;
    }
}

/* Back to Top Button Adjustments */
.treatment-template-default.single.single-treatment .transtoyou-back-to-top.show {
    right: 156px;
}

/* ========================================
   Treatment TOC Styles
   ======================================== */

.treatment-toc .floating-toc-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tty-bg-linear-graniet);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
}

.floating-toc.treatment-toc {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.treatment-toc .floating-toc-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.treatment-toc .floating-toc-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    max-height: 500px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.treatment-toc.active .floating-toc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.treatment-toc .floating-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #edf4f6;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.06);
}

.treatment-toc .floating-toc-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.treatment-toc .floating-toc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-align: center !important;
    text-transform: none;
    background: rgba(22, 51, 0, .078) !important;
    padding: 8px 8px !important;
    border-radius: 50%;
    transition: .3s;
    width: 36px;
    border: none !important;
    height: 36px;
    font-weight: 400 !important;
    line-height: 21px;
    cursor: pointer;
    margin-right: -5px;
    color: #121212;
}

.treatment-toc .floating-toc-close:hover {
    color: #d44646 !important;
    transform: rotate(90deg);
}

.treatment-toc .floating-toc-content {
    display: flex;
    flex-direction: column;
    max-height: calc(500px - 50px);
}

.treatment-toc .floating-toc-sections {
    padding: 15px 20px;
    overflow-y: auto;
    max-height: 300px;
}

.treatment-toc .floating-toc-section-title {
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.treatment-toc .floating-toc-section-title a {
    color: #005f5f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
}

.treatment-toc .floating-toc-section-title a:hover {
    color: #e5924c;
}

.treatment-toc .floating-toc-section-title.active a {
    color: #e5924c;
    font-weight: 700;
}

.treatment-toc .toc-level-h2 {
    font-weight: 600;
}

.treatment-toc .toc-level-h3 {
    padding-left: 15px;
    font-size: 0.95em;
    position: relative;
}

.floating-toc-section-title.toc-level-h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: linear-gradient(to bottom, var(--tty-primary), var(--tty-secondary));
  border-radius: 2px;
}

.treatment-toc .floating-toc-actions {
    padding: 15px 20px;
    border-top: 1px solid #edf4f6;
    background-color: #f9f9f9;
}

.treatment-toc .floating-toc-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.treatment-toc .floating-toc-share span {
  font-size: 14px;
  font-weight: 600;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.treatment-toc .floating-toc-share-buttons {
    display: flex;
    gap: 15px;
}

.treatment-toc .toc-share-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.floating-toc-section-title.toc-section a {
    color: #005f5f;
    font-weight: 600;
    margin-top: 15px;
    background: #edf4f6;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.treatment-toc .toc-share-button:hover {
    transform: translateY(-3px);
}

.treatment-toc .toc-share-button.facebook {
    background-color: #1877f2;
}

.treatment-toc .toc-share-button.twitter {
    background-color: #000000;
}

.treatment-toc .toc-share-button.whatsapp {
    background-color: #25D366;
}

.treatment-toc .toc-share-button.email {
    background-color: #ea4335;
}

.treatment-toc .toc-share-button.linkedin {
    background-color: #0a66c2;
}

.treatment-toc .toc-share-button.whatsapp {
    background-color: #25D366;
}

.treatment-toc .toc-share-button.copy {
    background-color: #6c757d;
}

.treatment-toc .toc-share-button.copy.copied {
    background-color: #28a745;
}

/* Pulse animation for the TOC button */
.treatment-toc .floating-toc-button.pulse {
    animation: toc-pulse 2s infinite;
}

@keyframes toc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 95, 95, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 95, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 95, 95, 0);
    }
}

/* ========================================
   Treatment Spotlight
   ======================================== */

#treatment-toc-spotlight {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: var(--tty-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 95, 95, 0.3);
    display: none;
    z-index: 98;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: spotlightBounce 2s ease-in-out infinite;
}

#treatment-toc-spotlight.animated-in {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#treatment-toc-spotlight.animated-out {
    opacity: 0;
    transform: translateY(20px);
}

#treatment-toc-spotlight:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 95, 95, 0.4);
}

.simple-toc-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    color: var(--tty-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.simple-toc-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.simple-toc-arrow {
    position: absolute;
    bottom: -8px;
    right: 35px;
    width: 20px;
    height: 20px;
    fill: var(--tty-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes spotlightBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Adjustments for TOC */
@media (max-width: 768px) {
    #treatment-toc-spotlight {
        bottom: 190px;
        right: 20px;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .treatment-toc .floating-toc-menu {
        width: 280px;
        right: -10px;
    }
}

/* ========================================
   Additional Dark Mode Support - Missing Elements
   ======================================== */

/* Treatment Hero */
[data-theme="dark"] .tty-treatment-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .tty-hero-title {
    color: #f0f0f0;
}

[data-theme="dark"] .tty-hero-subtitle {
    color: #b0b0b0;
}

/* Breadcrumbs */
[data-theme="dark"] .tty-breadcrumbs-modern a {
    color: #b0b0b0;
}

[data-theme="dark"] .tty-breadcrumbs-modern a:hover {
    color: var(--tty-secondary-light);
}

[data-theme="dark"] .tty-breadcrumbs-modern .current {
    color: #808080;
}

[data-theme="dark"] .tty-breadcrumbs-modern li:not(:last-child)::after {
    border-top-color: #808080;
    border-right-color: #808080;
}

/* Category Pills */
[data-theme="dark"] .tty-category-pill {
    background: rgba(0, 95, 95, 0.2);
    color: var(--tty-primary-light);
    border-color: rgba(0, 95, 95, 0.3);
}

[data-theme="dark"] .tty-category-pill:hover {
    background: var(--tty-primary-dark);
    color: white;
    border-color: var(--tty-primary-dark);
}

/* Expert Card Details */
[data-theme="dark"] .tty-expert-verified {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-expert-info h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-expert-title {
    color: #a0a0a0;
}

[data-theme="dark"] .tty-review-date {
    color: #a0a0a0;
}

[data-theme="dark"] .tty-expert-link {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-expert-bio {
    color: #b0b0b0;
    border-top-color: #3a3a3a;
}

/* Entry Content */
[data-theme="dark"] .tty-entry-content {
    color: #d0d0d0;
}

[data-theme="dark"] .tty-entry-content h2,
[data-theme="dark"] .tty-entry-content h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-entry-content p {
    color: #d0d0d0;
}

[data-theme="dark"] .tty-entry-content ul,
[data-theme="dark"] .tty-entry-content ol {
    color: #d0d0d0;
}

/* Info Tabs */
[data-theme="dark"] .tty-info-section {
    background: #2d2d2d;
}

[data-theme="dark"] .tty-tab-navigation {
    background: rgba(0, 95, 95, 0.1);
}

[data-theme="dark"] .tty-tab-btn {
    color: #b0b0b0;
}

[data-theme="dark"] .tty-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

[data-theme="dark"] .tty-tab-btn.active {
    background: #3a3a3a;
    color: var(--tty-primary-light);
}

/* Action Buttons */
[data-theme="dark"] .tty-action-btn {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tty-sidebar-card h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .tty-faq-section {
  background: #121212;
}

[data-theme="dark"] .tty-action-btn:hover {
    background: var(--tty-primary-dark);
    color: white;
}

[data-theme="dark"] .tty-action-btn i {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-action-btn:hover i {
    color: white;
}

/* Products Section */
[data-theme="dark"] .tty-products-section {
    background: #1a1a1a;
}

[data-theme="dark"] .tty-treatment-section-header h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-treatment-section-header p {
    color: #a0a0a0;
}

/* Product Cards */
[data-theme="dark"] .tty-product-card {
    background: #2d2d2d;
}

[data-theme="dark"] .tty-product-info h4 a {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-product-info h4 a:hover {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-product-price {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-quick-view {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tty-quick-view:hover {
    background: var(--tty-primary-dark);
    color: white;
}

/* Products Filter */
[data-theme="dark"] .tty-search-box input {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tty-filter-select {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tty-filter-reset {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

[data-theme="dark"] .tty-filter-reset:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tty-filter-reset.active {
    background: var(--tty-primary-dark);
    color: white;
}

/* No Results */
[data-theme="dark"] .tty-no-results {
    color: #a0a0a0;
}

[data-theme="dark"] .tty-no-results i {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-no-results p {
    color: #b0b0b0;
}

/* Modal Container */
[data-theme="dark"] .tty-modal-container {
    background: #2d2d2d;
}

[data-theme="dark"] .tty-modal-header {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .tty-modal-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .tty-modal-close:hover {
    background: #ff4444;
    color: white;
}

/* Quick View Modal */
[data-theme="dark"] .tty-quick-view-gallery {
    background: #3a3a3a;
}

[data-theme="dark"] .tty-quick-view-details h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-quick-view-price {
    color: var(--tty-secondary-light);
}

[data-theme="dark"] .tty-quick-view-description {
    color: #b0b0b0;
}

[data-theme="dark"] .tty-quick-view-meta {
    background: #3a3a3a;
}

[data-theme="dark"] .tty-quick-view-meta-label {
    color: #a0a0a0;
}

/* Floating TOC */
[data-theme="dark"] .tty-floating-toc {
    background: transparent;
}

[data-theme="dark"] .tty-toc-toggle {
    background: var(--tty-primary-dark);
}

[data-theme="dark"] .tty-toc-menu {
    background: #2d2d2d;
}

[data-theme="dark"] .tty-toc-header {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .tty-toc-header h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-toc-close {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-toc-close:hover {
    background: #ff4444;
    color: white;
}

[data-theme="dark"] .tty-toc-link {
    color: #b0b0b0;
}

[data-theme="dark"] .tty-toc-link:hover {
    background: #3a3a3a;
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-toc-link.active {
    background: rgba(0, 95, 95, 0.2);
    color: var(--tty-primary-light);
}

/* Treatment TOC Specific */
[data-theme="dark"] .treatment-toc .floating-toc-menu {
    background: #2d2d2d;
}

[data-theme="dark"] .treatment-toc .floating-toc-header {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .treatment-toc .floating-toc-header h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .treatment-toc .floating-toc-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .treatment-toc .floating-toc-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

[data-theme="dark"] .treatment-toc .floating-toc-section-title a {
    color: #b0b0b0;
}

[data-theme="dark"] .treatment-toc .floating-toc-section-title a:hover {
    color: var(--tty-secondary-light);
}

[data-theme="dark"] .treatment-toc .floating-toc-section-title.active a {
    color: var(--tty-secondary-light);
}

[data-theme="dark"] .treatment-toc .floating-toc-actions {
    background: #3a3a3a;
    border-top-color: #3a3a3a;
}

[data-theme="dark"] .floating-toc-section-title.toc-section a {
    background: #3a3a3a;
    color: var(--tty-primary-light);
}

/* Treatment Spotlight */
[data-theme="dark"] #treatment-toc-spotlight {
    background: var(--tty-primary-dark);
}

[data-theme="dark"] .simple-toc-close {
    background: #2d2d2d;
    color: var(--tty-primary-light);
}

[data-theme="dark"] .simple-toc-arrow {
    fill: var(--tty-primary-dark);
}

/* Mini Products */
[data-theme="dark"] .tty-mini-product-item {
    background: #3a3a3a;
}

[data-theme="dark"] .tty-mini-product-info h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .tty-mini-product-price {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-see-all-products {
    background: var(--tty-primary-dark);
}

[data-theme="dark"] .tty-see-all-products:hover {
    background: var(--tty-primary);
}

/* Secondary Links */
[data-theme="dark"] .tty-secondary-links a {
    color: #a0a0a0;
}

[data-theme="dark"] .tty-secondary-links a:hover {
    color: var(--tty-primary-light);
}

/* TOC Nav */
[data-theme="dark"] .tty-toc-nav a {
    color: #b0b0b0;
}

[data-theme="dark"] .tty-toc-nav a:hover {
    background: #3a3a3a;
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-toc-nav a.active {
    background: rgba(0, 95, 95, 0.2);
    color: var(--tty-primary-light);
}

/* Floating Products Preview */
[data-theme="dark"] .floating-products-preview {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .preview-header span {
    color: var(--tty-secondary-light);
}

/* ========================================
   TREATMENT SHARE SECTION
   ======================================== */

.treatment-share-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #edf4f6 100%);
}

.treatment-share-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 95, 95, 0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.treatment-share-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.treatment-share-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.treatment-share-title-row i {
    font-size: 28px;
    color: #005f5f;
}

.treatment-share-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.treatment-share-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5a623 0%, #f7931e 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.treatment-share-bonus:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    color: white;
}

.treatment-share-bonus i {
    font-size: 14px;
}

.treatment-share-login-hint {
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5a623 0%, #f7931e 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.treatment-share-login-hint:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    color: white;
}

.treatment-share-login-hint i {
    font-size: 14px;
}

.treatment-share-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.treatment-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.treatment-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.treatment-share-btn.native {
    background: linear-gradient(135deg, #005f5f 0%, #003d3d 100%);
}

.treatment-share-btn.facebook {
    background: #1877f2;
}

.treatment-share-btn.twitter {
    background: #000000;
}

.treatment-share-btn.linkedin {
    background: #0a66c2;
}

.treatment-share-btn.whatsapp {
    background: #25d366;
}

.treatment-share-btn.copy {
    background: #6c757d;
}

.treatment-share-btn.copy.copied {
    background: #28a745;
}

.treatment-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.treatment-share-btn i {
    font-size: 16px;
}

/* Share Stats */
.treatment-share-stats {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.treatment-share-stats-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(0, 95, 95, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.treatment-share-stats-progress {
    height: 100%;
    background: linear-gradient(90deg, #005f5f 0%, #4CAF50 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.treatment-share-stats-text {
    font-size: 14px;
    color: #666;
}

/* Share Feedback */
.treatment-share-feedback {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.treatment-share-feedback i {
    color: #28a745;
}

/* ========================================
   TREATMENT SHARE SECTION - DARK THEME
   ======================================== */

[data-theme="dark"] .treatment-share-section {
    background: linear-gradient(135deg, #0d1b1a 0%, #1a2e2d 100%);
}

[data-theme="dark"] .treatment-share-card {
    background: #1e3332;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .treatment-share-title-row i {
    color: #4dd0c7;
}

[data-theme="dark"] .treatment-share-header h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .treatment-share-description {
    color: #adb5bd;
}

[data-theme="dark"] .treatment-share-login-hint {
    color: #adb5bd;
}

[data-theme="dark"] .treatment-share-login-hint:hover {
    color: #4dd0c7;
}

[data-theme="dark"] .treatment-share-stats-bar {
    background: rgba(77, 208, 199, 0.2);
}

[data-theme="dark"] .treatment-share-stats-text {
    color: #adb5bd;
}

[data-theme="dark"] .treatment-share-feedback {
    background: rgba(40, 167, 69, 0.2);
    color: #4dd0c7;
}

/* ========================================
   TREATMENT SHARE SECTION - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .treatment-share-section {
        padding: 40px 0;
    }
    
    .treatment-share-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .treatment-share-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .treatment-share-title-row i {
        font-size: 24px;
    }
    
    .treatment-share-header h2 {
        font-size: 20px;
    }
    
    .treatment-share-description {
        font-size: 14px;
    }
    
    .treatment-share-buttons {
        gap: 10px;
    }
    
    .treatment-share-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-width: auto;
    }
    
    .treatment-share-btn span {
        display: none;
    }
    
    .treatment-share-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        min-width: 40px;
    }
}