/* F5 Beauty - Main Stylesheet */
/* Medical Professional Theme */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #F5F7FA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #7C6AE6, transparent);
    margin: 4rem 0;
    opacity: 0.4;
}

.subsection-divider {
    height: 1px;
    background: linear-gradient(90deg, #7C6AE6, #E5E7EB, #7C6AE6);
    margin: 2rem 0;
    opacity: 0.3;
}

/* Thai Font Support */
[lang="th"], .thai-text {
    font-family: 'Sarabun', sans-serif;
}

/* Trust-focused icon styling */
.trust-focused {
    color: #7C6AE6;
    transition: all 0.2s ease;
}

.trust-focused:hover {
    color: #5E4BC2;
    transform: scale(1.05);
}

.trust-focused-purple {
    background: #EBF4FF;
    color: #7C6AE6;
    position: relative;
    transition: all 0.2s ease;
}

.trust-focused-purple:hover {
    background: linear-gradient(135deg, #EBF4FF, rgba(124, 106, 230, 0.1));
    color: #5E4BC2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 106, 230, 0.2);
}

.trust-focused-purple::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(45deg, rgba(124, 106, 230, 0.08), rgba(58, 123, 213, 0.08));
}

/* Text highlights */
.text-highlight-purple {
    background: linear-gradient(120deg, rgba(124, 106, 230, 0.1) 0%, rgba(124, 106, 230, 0.05) 100%);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: #7C6AE6;
    font-weight: 600;
    transition: all 0.2s ease;
}

.text-highlight-purple:hover {
    background: linear-gradient(120deg, rgba(124, 106, 230, 0.15) 0%, rgba(124, 106, 230, 0.1) 100%);
    color: #5E4BC2;
    box-shadow: 0 1px 3px rgba(124, 106, 230, 0.2);
}

.accent-number {
    color: #7C6AE6;
    font-weight: 700;
    position: relative;
    transition: all 0.2s ease;
}

.accent-number:hover {
    color: #5E4BC2;
    transform: scale(1.05);
}

.accent-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #7C6AE6, transparent);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.accent-number:hover::after {
    opacity: 1;
    background: linear-gradient(90deg, #5E4BC2, transparent);
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
    color: #374151;
}

.text-muted {
    color: #6B7280;
}

.text-small {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Container & Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-header p {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Spacing System */
.py-xxl { padding: 6rem 0; }
.py-xl { padding: 4rem 0; }
.py-lg { padding: 3rem 0; }
.py-md { padding: 2rem 0; }
.py-sm { padding: 1rem 0; }

.mt-xxl { margin-top: 6rem; }
.mt-xl { margin-top: 4rem; }
.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 2rem; }
.mt-sm { margin-top: 1rem; }

.mb-xxl { margin-bottom: 6rem; }
.mb-xl { margin-bottom: 4rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-md { margin-bottom: 2rem; }
.mb-sm { margin-bottom: 1rem; }

/* Navigation */
.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 72px;
    display: flex;
    align-items: center;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7C6AE6, transparent);
    opacity: 0.3;
}

.nav-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 2.5rem;
    gap: 0;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3A7BD5;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #7C6AE6;
    transform: translateY(-1px);
}

.nav-link.active {
    color: #7C6AE6;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3A7BD5, #7C6AE6);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-line-shop {
    background: #06C755;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    height: 36px;
    opacity: 0.9;
    position: relative !important;
    z-index: 1001 !important;
    /* ULTIMATE FORCE override any injected or floating styles */
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateY(0) !important;
    float: none !important;
    clear: none !important;
    /* Prevent fixed positioning */
    position: relative !important;
    /* Ensure it stays in nav-actions */
    margin: 0 !important;
}

/* ULTIMATE GLOBAL FIX - Target ANY LINE-related floating elements */
[class*="line"][style*="position: fixed"],
[class*="line"][style*="position: absolute"],
[id*="line"][style*="position: fixed"],
[id*="line"][style*="position: absolute"] {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateY(0) !important;
    z-index: 1001 !important;
    opacity: 0.9 !important;
    pointer-events: auto !important;
}

.btn-line-shop:hover {
    background: #05a845;
    opacity: 1;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #374151;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(to right, #F5F7FA 0%, #EBF4FF 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #374151;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description p {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(58, 123, 213, 0.1);
    border-color: #3A7BD5;
}

.product-image {
    width: 60px;
    height: 60px;
    background: #EBF4FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A7BD5;
}

.product-item span {
    font-weight: 600;
    color: #374151;
}

/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: default;
}

.trust-item:hover {
    background: linear-gradient(135deg, rgba(124, 106, 230, 0.02), rgba(58, 123, 213, 0.02));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 106, 230, 0.1);
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: #EBF4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #7C6AE6;
    position: relative;
}

.trust-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(124, 106, 230, 0.1), rgba(58, 123, 213, 0.1));
}

.trust-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #374151;
}

.trust-item p {
    color: #6B7280;
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: #F5F7FA;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: #7C6AE6;
    color: #7C6AE6;
    background: linear-gradient(135deg, rgba(124, 106, 230, 0.05), rgba(58, 123, 213, 0.05));
    box-shadow: 0 2px 8px rgba(124, 106, 230, 0.15);
}

.category-btn.active {
    background: linear-gradient(135deg, #3A7BD5, #7C6AE6);
    color: white;
    border-color: #7C6AE6;
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3), 0 0 0 1px rgba(124, 106, 230, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-description p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #374151;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
}

.feature-item i {
    color: #10B981;
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-stats {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-item {
    margin-bottom: 2rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A7BD5;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* How to Order Section */
.how-to-order {
    padding: 6rem 0;
    background: #F5F7FA;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 106, 230, 0.3);
    box-shadow: 0 10px 15px -3px rgba(58, 123, 213, 0.15), 0 4px 6px -2px rgba(124, 106, 230, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A7BD5, #7C6AE6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #374151;
}

.step-content p {
    color: #6B7280;
    line-height: 1.6;
}

.order-cta {
    text-align: center;
}

/* Contact Section - ULTIMATE FORCE padding to prevent ANY overlap */
.contact {
    padding: 6rem 0 17rem !important;
    background: white;
    position: relative;
    z-index: 1 !important;
    margin-bottom: 6rem !important;
    /* Force safe bottom area */
    min-height: 17rem !important;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #EBF4FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C6AE6;
    flex-shrink: 0;
    position: relative;
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    background: linear-gradient(45deg, rgba(124, 106, 230, 0.05), rgba(58, 123, 213, 0.05));
}

.contact-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.contact-details p {
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #3A7BD5;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #374151;
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7C6AE6, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand p {
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

.footer-domain {
    color: #6B7280;
    font-size: 0.875rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4B5563;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin: 0;
}

/* Desktop-specific spacing improvements */
@media (min-width: 1200px) {
    .nav-content {
        padding: 0 3.5rem;
    }
    
    .nav-actions {
        gap: 2rem;
    }
    
    .contact {
        padding: 8rem 0 22rem !important;
        margin-bottom: 8rem !important;
        min-height: 22rem !important;
    }
    
    .footer {
        padding: 5rem 0 3rem;
    }
    
    /* ULTIMATE LINE button positioning on large desktop */
    .btn-line-shop {
        position: relative !important;
        z-index: 1001 !important;
        /* Force safe positioning */
        bottom: auto !important;
        top: auto !important;
        transform: translateY(0) !important;
        /* Prevent any floating behavior */
        float: none !important;
        clear: none !important;
    }
}

/* Standard desktop spacing (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .contact {
        padding: 6rem 0 20rem !important;
        margin-bottom: 7rem !important;
        min-height: 20rem !important;
    }
    
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .btn-line-shop {
        position: relative !important;
        z-index: 1001 !important;
        bottom: auto !important;
        top: auto !important;
        transform: translateY(0) !important;
        float: none !important;
        clear: none !important;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-logo .logo-text {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: -0.025em;
    }
    
    .btn-line-shop {
        padding: 0.4rem 0.8rem;
        height: 32px;
        font-size: 0.75rem;
        gap: 0.2rem;
        position: relative !important;
        z-index: 1001 !important;
        bottom: auto !important;
        top: auto !important;
        transform: translateY(0) !important;
        float: none !important;
        clear: none !important;
    }
    
    /* ULTIMATE force mobile contact section padding */
    .contact {
        padding: 6rem 0 20rem !important;
        margin-bottom: 6rem !important;
        min-height: 20rem !important;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .order-steps {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-logo .logo-text {
        font-size: 1.125rem;
        font-weight: 600;
    }
    
    .btn-line-shop {
        padding: 0.3rem 0.6rem;
        height: 30px;
        font-size: 0.7rem;
        position: relative !important;
        z-index: 1001 !important;
        bottom: auto !important;
        top: auto !important;
        transform: translateY(0) !important;
        float: none !important;
        clear: none !important;
    }
    
    /* ULTIMATE force small mobile contact section padding */
    .contact {
        padding: 6rem 0 22rem !important;
        margin-bottom: 8rem !important;
        min-height: 22rem !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}