/* ============================================================
   ALL METAL RETAINERS — PREMIUM DESIGN SYSTEM v2
   Light Purple + Blue Tone | Thai Language
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Color Palette - Light Purple & Blue */
    --color-bg: #f8f6fc;
    --color-bg-secondary: #f0ecf7;
    --color-bg-card: rgba(255, 255, 255, 0.75);
    --color-text: #2d1b4e;
    --color-text-muted: #7a6b8f;
    --color-accent: #7c5cbf;
    --color-accent-light: #a88bdf;
    --color-accent-dark: #5a3d99;
    --color-accent-gradient: linear-gradient(135deg, #7c5cbf, #a88bdf, #6b9ed9);
    --color-blue: #6b9ed9;
    --color-blue-light: #95bde8;
    --color-border: rgba(124, 92, 191, 0.15);
    --color-overlay: rgba(255, 255, 255, 0.9);
    --color-purple-soft: #e8def7;
    --color-blue-soft: #dce8f5;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-card: 0 8px 32px rgba(124, 92, 191, 0.08);
    --shadow-glow: 0 0 40px rgba(124, 92, 191, 0.12);
    --shadow-accent: 0 4px 20px rgba(124, 92, 191, 0.2);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.6s var(--ease-out-expo);
    --transition-fast: 0.3s var(--ease-out-expo);

    /* Z-index layers */
    --z-noise: 1;
    --z-content: 10;
    --z-cursor: 1000;
    --z-overlay: 100;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans Thai', var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Selection --- */
::selection {
    background: var(--color-accent-light);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* --- Ambient Light Gradient --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 30% 0%,
        rgba(124, 92, 191, 0.04) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 80%,
        rgba(107, 158, 217, 0.04) 0%,
        transparent 40%
    );
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-4xl);
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--font-size-3xl);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: 0;
}

p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.8;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

/* --- Section Lead --- */
.section-lead {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    color: var(--color-text-muted);
}

.section-lead.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   CONTAINERS & LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: var(--z-content);
}

section {
    position: relative;
    z-index: var(--z-content);
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(248, 246, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.3vw, 1.1rem);
    font-weight: 700;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.2;
    max-width: 80%;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gradient);
    transition: width var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.lang-toggle {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    background: transparent;
    color: var(--color-accent);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--color-accent);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--color-accent);
}

/* Pre-title on hero */
.pre-title {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    opacity: 0.85;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: var(--z-content);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
}

.parallax-background {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(180deg, 
        rgba(248, 246, 252, 0.3) 0%, 
        rgba(232, 222, 247, 0.2) 50%, 
        rgba(220, 232, 245, 0.2) 100%
    );
    z-index: 2;
    will-change: transform;
}

/* Animated grid pattern */
.parallax-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(124, 92, 191, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 158, 217, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* Floating orbs */
.parallax-background::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 191, 0.06), transparent 70%);
    top: 20%;
    right: 10%;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(30px, -20px) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-20px, 30px) scale(0.9); opacity: 0.4; }
}

.content-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 800px;
}

.content-overlay .subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Hero decorative line */
.content-overlay::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-accent-gradient);
    margin: 0 auto var(--space-lg);
    opacity: 0.6;
    border-radius: 2px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
    animation: fadeInUp 1s var(--ease-out-expo) 1s both;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0.3); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.3); opacity: 0.3; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cta-button {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: transparent;
    color: var(--color-accent);
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent-gradient);
    transition: all var(--transition-fast);
    z-index: -1;
}

.cta-button.primary:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

.cta-button.primary:hover::before {
    left: 0;
}

/* ============================================================
   PRODUCT CARDS SECTION
   ============================================================ */
.comparison-section {
    padding: var(--space-2xl) 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.04), rgba(107, 158, 217, 0.04) 50%, transparent 80%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 92, 191, 0.25);
    box-shadow: 0 20px 60px rgba(124, 92, 191, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

/* Card shimmer effect */
.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(168, 139, 223, 0.03) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 1s var(--ease-out-expo);
}

.product-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.product-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.product-card .descriptor {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-style: italic;
}

/* Product card image */
.product-card-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    background: rgba(124, 92, 191, 0.03);
    padding: var(--space-sm);
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    position: relative;
    padding-left: var(--space-md);
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: var(--font-size-xs);
}

/* Badge Styles */
.product-card .product-type-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    opacity: 0.5;
    z-index: 1;
}

/* Featured / New Product badge */
.product-card.featured {
    border-color: rgba(124, 92, 191, 0.3);
    background: rgba(255, 255, 255, 0.85);
    border-width: 2px;
}

.product-card.featured::before {
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.06), rgba(107, 158, 217, 0.06) 50%, transparent 80%);
    opacity: 0.6;
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-accent-gradient);
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(124, 92, 191, 0.3);
}

/* ============================================================
   SLIDESHOW
   ============================================================ */
.slideshow-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, transparent, var(--color-purple-soft), transparent);
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 92, 191, 0.1);
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-sm);
}

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(248, 246, 252, 0.9));
    text-align: center;
}

.slideshow-caption p {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
}

.slideshow-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(0.7rem, 2.2vw, 1.15rem);
    white-space: nowrap;
    color: rgba(124, 92, 191, 0.10); /* Light purple, 10% opacity */
    pointer-events: none;
    user-select: none;
    z-index: 10;
    text-shadow: 1px 1px 0px rgba(107, 158, 217, 0.10); /* Light blue, 10% opacity */
    border: 2px dashed rgba(124, 92, 191, 0.10);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.slideshow-btn {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-accent);
    font-size: var(--font-size-xl);
}

.slideshow-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.slideshow-dots {
    display: flex;
    gap: var(--space-xs);
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slideshow-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 5px;
}

/* ============================================================
   CLINIC SEARCH SECTION
   ============================================================ */
.clinic-search-section {
    padding: var(--space-2xl) 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clinic-search-section h2 {
    margin-bottom: var(--space-xs);
}

/* Search Controls (Glassmorphic) */
.search-controls {
    display: flex;
    gap: var(--space-md);
    width: 100%;
    max-width: 800px;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.search-controls:focus-within {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.search-box {
    position: relative;
    flex: 2;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    outline: none;
}

.search-box input:focus {
    border-color: var(--color-accent-light);
    background: #fff;
    box-shadow: 0 0 10px rgba(124, 92, 191, 0.1);
}

.clear-btn {
    position: absolute;
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: none; /* Shown dynamically in JS */
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    line-height: 1;
}

.clear-btn:hover {
    opacity: 1;
    color: var(--color-accent);
}

.filter-box {
    flex: 1;
}

.province-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237c5cbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    background-size: 1.25rem;
    padding-right: var(--space-xl);
}

.province-select:focus {
    border-color: var(--color-accent-light);
    background-color: #fff;
}

/* Quick Filter Badges */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    width: 100%;
    max-width: 800px;
    margin-top: var(--space-sm);
    align-items: center;
}

.filter-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-right: var(--space-xs);
}

.quick-filter-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-filter-btn:hover {
    background: var(--color-accent-light);
    color: #fff;
    border-color: var(--color-accent-light);
    transform: translateY(-1px);
}

.quick-filter-btn.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent);
}

/* Clinic Cards Grid */
.clinic-grid-container {
    width: 100%;
    margin-top: var(--space-xl);
    perspective: 1000px;
}

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
}

/* Clinic Card */
.clinic-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
    position: relative;
}

.clinic-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(124, 92, 191, 0.1);
}

.clinic-card-media {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-purple-soft), var(--color-blue-soft));
}

.clinic-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.clinic-card:hover .clinic-cover {
    transform: scale(1.06);
}

.clinic-placeholder-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-accent-light);
    opacity: 0.6;
}

.clinic-logo-wrapper {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--color-bg);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.clinic-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-card-content {
    padding: var(--space-lg) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.clinic-name {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.clinic-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.clinic-location svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.clinic-rating {
    font-size: var(--font-size-sm);
    color: #e6b800; /* Gold color for stars */
    margin-bottom: var(--space-sm);
}

.clinic-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.clinic-phone:hover {
    color: var(--color-accent);
}

.clinic-phone svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.clinic-cta {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: auto;
    display: inline-block;
}

.clinic-cta:hover {
    background: var(--color-accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-accent);
}

/* No Results Block */
.no-results {
    text-align: center;
    padding: var(--space-2xl) 0;
    width: 100%;
}

.no-results p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

/* Pagination container */
.search-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    width: 100%;
}

.search-status {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.stats-section {
    padding: var(--space-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background: var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}



/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2xl) 0 0;
    margin-top: var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-brand h4 {
    font-family: var(--font-heading);
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: var(--font-size-sm);
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--font-size-xs);
    opacity: 0.5;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-target {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-target.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-target.staggered > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal-target.staggered.reveal-active > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-target.staggered.reveal-active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-target.staggered.reveal-active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-target.staggered.reveal-active > *:nth-child(3) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --font-size-4xl: 3rem;
        --font-size-3xl: 2.25rem;
        --font-size-2xl: 1.75rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .clinic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2.5rem;
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --space-2xl: 4rem;
        --space-xl: 2.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Nav */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(248, 246, 252, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: var(--font-size-xl);
    }

    .nav-toggle {
        display: flex;
        z-index: 100;
    }

    /* Product grid */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .clinic-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .search-controls {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--space-sm);
    }

    .filter-box {
        width: 100%;
    }

    .hero-section {
        min-height: 600px;
    }

    .content-overlay {
        padding: var(--space-xl) var(--space-md);
    }

    /* Slideshow */
    .slideshow-track {
        height: 280px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: var(--font-size-xs);
    }

    .slideshow-track {
        height: 220px;
    }
}

/* ============================================================
   ADMIN PORTAL & LOGIN MODAL
   ============================================================ */
.product-card {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 27, 78, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s;
}

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-glow);
    text-align: left;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--color-accent);
}

.modal-lead {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.form-group input, .form-group select {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 10px rgba(124, 92, 191, 0.1);
}

.login-error {
    font-size: var(--font-size-xs);
    color: #d9381e;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

/* ============================================================
   ADMIN SETTINGS DASHBOARD OVERLAY
   ============================================================ */
.admin-dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 27, 78, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: var(--space-md);
}

.dashboard-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-sm);
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dashboard-btn-secondary {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.dashboard-btn-secondary:hover {
    background: rgba(124, 92, 191, 0.05);
    color: var(--color-text);
}

.dashboard-tabs {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-accent);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: var(--space-lg);
    align-items: start;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
}

.dashboard-card h3 {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}

.dashboard-search-bar {
    margin-bottom: var(--space-sm);
}

.dashboard-search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
}

.dashboard-search-bar input:focus {
    border-color: var(--color-accent);
    background: #fff;
}

.dashboard-list-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-right: 4px;
}

.dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dashboard-item:hover {
    background: #fff;
    border-color: var(--color-accent-light);
}

.dashboard-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-item-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.dashboard-item-sub {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.dashboard-item-delete {
    background: none;
    border: none;
    color: #d9381e;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    padding: 4px;
    line-height: 1;
}

.dashboard-item-delete:hover {
    opacity: 1;
}

.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}

.list-header-row h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.select-small {
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    cursor: pointer;
}

.select-small:focus {
    border-color: var(--color-accent);
    background: #fff;
}

.dashboard-slide-preview {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    margin-right: var(--space-sm);
}

.dashboard-slide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.dashboard-slide-item-left {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .dashboard-container {
        padding: var(--space-md);
        max-height: 95vh;
    }
}

/* Material Technical Details Section */
.metal-details-panel {
    margin-top: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.details-table-wrapper {
    overflow-x: auto;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    text-align: left;
}

.details-table th, .details-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.details-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent-dark);
    background: rgba(124, 92, 191, 0.05);
}

.details-table tr:hover {
    background: rgba(124, 92, 191, 0.02);
}

.ref-link-container {
    text-align: right;
    margin-top: var(--space-sm);
}

.ref-link {
    font-size: var(--font-size-xs);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.ref-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}