/* Main Storefront Styles - Medical / Corporate Theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #0f4c81; /* Classic, trustworthy medical blue */
    --accent-teal: #0d9488; /* Fresh medical teal */
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navbar */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-teal);
}

.contact-btn {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #0f766e;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 5rem 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-teal);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* Trust Badges Section */
.trust-bar {
    background-color: var(--white);
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

/* Products Section */
.products-section {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.product-badge {
    background-color: #fef3c7;
    color: #d97706;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.badge-new {
    background-color: #dcfce7;
    color: #16a34a;
}

.product-img-placeholder {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.product-features li::before {
    content: "✓";
    color: var(--accent-teal);
    font-weight: bold;
}

.btn-view {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background-color: #1e3a8a;
    color: white;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: rgba(255,255,255,0.8);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* Articles Section */
.articles-section {
    background-color: var(--white);
    padding: 5rem 5%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #cbd5e1;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-date {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card:hover .read-more {
    color: var(--accent-teal);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 3rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    nav ul { display: none; }
    .contact-btn { display: none; }
    .trust-bar { flex-direction: column; gap: 1rem; align-items: center; }
}
