/* =========================================
   Thais Software
   Products Hub Edition
   Free for commercial use
   ========================================= */

:root {
    --bg-main: #f7f8fb;
    --card-bg: #ffffff;
    --text-main: #1e2432;
    --text-muted: #5f6b85;
    --accent-gold: #c9b37e;
    --accent-blue: #4a6cf7;
    --border-soft: #e2e6f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 64px 20px;
    font-family:
        "Cormorant Garamond",
        "Noto Serif JP",
        "Hiragino Mincho ProN",
        serif;
    background:
        radial-gradient(circle at top, #ffffff 0%, #f1f3f9 60%);
    color: var(--text-main);
    line-height: 1.85;
    letter-spacing: 0.04em;
}

h1 {
    font-size: 1.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-main);
    letter-spacing: 0.14em;
}

h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-gold),
            transparent);
    margin: 18px auto 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 28px;
    color: var(--text-main);
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Cards */
ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    padding: 24px;
    box-shadow:
        0 20px 40px rgba(30, 36, 50, 0.05),
        0 4px 12px rgba(30, 36, 50, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 48px rgba(30, 36, 50, 0.08),
        0 6px 16px rgba(30, 36, 50, 0.05);
}

.product-card img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.product-card a {
    text-decoration: none;
    background: var(--accent-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.product-card a:hover {
    background: var(--accent-gold);
}

/* Contact Section */
#contact {
    margin-top: 60px;
    text-align: center;
}

#contact a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 48px 14px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .product-card {
        padding: 18px;
    }

    .product-card img {
        max-width: 140px;
        margin-bottom: 14px;
    }

    .product-card a {
        padding: 8px 16px;
    }
}