/* ============================================
   TONY & CO. — Luxury Black & Gold
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Core palette — ดำ-ทอง */
    --black: #0e0e0f;
    --ink: #16161a;
    --charcoal: #1d1d22;
    --char-soft: #26262c;
    --gold: #c9a04e;
    --gold-light: #e2bd6b;
    --gold-deep: #a07e34;
    --cream: #f3ede0;
    --paper: #faf7f0;
    --text-light: #b8b3a8;
    --text-mute: #847f74;
    --line: #2e2e34;
    --line-soft: rgba(201,160,78,0.18);

    /* Aliases used by chat widget */
    --navy: #16161a;
    --bg: #1d1d22;
    --white: #faf7f0;
    --border: #2e2e34;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background: var(--black);
    color: var(--cream);
    line-height: 1.75;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Display font */
.brand-text, .hero-title, .section-title, .step-card h3,
.about-section .section-title, .coming-soon h3 {
    font-family: 'Cormorant Garamond', 'Noto Sans Thai', serif;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(14,14,15,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700; font-size: 24px;
    border-radius: 3px;
}
.brand-mark.small { width: 32px; height: 32px; font-size: 20px; }

/* รูปโลโก้ — ใช้แทนตัว T */
.brand-mark-img {
    width: 44px; height: 44px;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}
.brand-mark-img.small { width: 36px; height: 36px; }
.hero-logo {
    width: 110px; height: 110px;
    max-width: 30vw;
    object-fit: contain;
    display: block;
    margin: 0 auto 28px;
    filter: drop-shadow(0 8px 28px rgba(201,160,78,0.35));
}
.about-mark-img {
    width: 200px; height: 200px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(201,160,78,0.28));
}
.chat-avatar-img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.brand-text {
    color: var(--cream); font-size: 22px; font-weight: 700;
    letter-spacing: 2px;
}
.brand-text .amp { color: var(--gold); }
.header-nav { display: flex; gap: 36px; margin-left: auto; margin-right: 32px; }
.header-nav a {
    color: var(--text-light); text-decoration: none;
    font-size: 14px; font-weight: 400; letter-spacing: 0.5px;
    position: relative; padding: 4px 0;
    transition: color 0.25s;
}
.header-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: width 0.3s;
}
.header-nav a:hover { color: var(--gold); }
.header-nav a:hover::after { width: 100%; }
.header-cta {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 24px;
    font-family: inherit; font-size: 14px; font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s;
}
.header-cta:hover { background: var(--gold); color: var(--black); }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 120px 0 110px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,160,78,0.10), transparent 70%),
        linear-gradient(180deg, var(--ink) 0%, var(--black) 100%);
}
.hero-glow {
    position: absolute; top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(201,160,78,0.08), transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; }
.hero-eyebrow {
    color: var(--gold);
    font-size: 13px; letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-title {
    font-size: 64px; font-weight: 600; line-height: 1.15;
    color: var(--cream);
    margin-bottom: 26px;
    letter-spacing: 0.5px;
}
.hero-title-accent {
    color: var(--gold);
    font-style: italic;
}
.hero-sub {
    font-size: 17px; color: var(--text-light);
    margin-bottom: 42px;
    line-height: 1.9;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: var(--black);
    border: none;
    padding: 17px 38px;
    font-family: inherit; font-size: 16px; font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 30px rgba(201,160,78,0.28);
    transition: all 0.25s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(201,160,78,0.42);
}
.btn-icon { font-size: 14px; }
.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--line);
    padding: 17px 34px;
    font-family: inherit; font-size: 16px; font-weight: 400;
    letter-spacing: 0.3px;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center;
    transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-trust {
    display: flex; align-items: center; justify-content: center;
    gap: 36px; flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num {
    color: var(--gold); font-size: 19px; font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
}
.trust-label { color: var(--text-mute); font-size: 13px; }
.trust-divider { width: 1px; height: 36px; background: var(--line); }

/* ===== STEPS ===== */
.steps-section {
    padding: 90px 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.step-card {
    padding: 36px 30px;
    background: linear-gradient(160deg, var(--charcoal), var(--ink));
    border: 1px solid var(--line);
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: var(--line-soft); transform: translateY(-4px); }
.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px; font-weight: 600;
    color: var(--gold);
    opacity: 0.55;
    margin-bottom: 14px;
}
.step-card h3 {
    font-size: 24px; font-weight: 600; color: var(--cream);
    margin-bottom: 10px;
}
.step-card p { font-size: 14.5px; color: var(--text-light); }

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
    color: var(--gold); font-size: 12px;
    letter-spacing: 3.5px; text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title {
    font-size: 44px; font-weight: 600; color: var(--cream);
    letter-spacing: 0.5px; margin-bottom: 12px;
}
.section-sub { color: var(--text-light); font-size: 15.5px; }

/* ===== PRODUCTS ===== */
.products-section { padding: 100px 0; background: var(--black); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
}
.product-card {
    background: linear-gradient(160deg, var(--charcoal), var(--ink));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover {
    border-color: var(--line-soft);
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.product-image {
    height: 200px;
    background: var(--char-soft);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder {
    width: 80px; height: 80px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}
.product-info { padding: 22px; }
.product-info h3 {
    font-size: 20px; color: var(--cream); margin-bottom: 3px;
    font-weight: 600;
}
.product-name-en {
    font-size: 12px; color: var(--text-mute);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 10px;
}
.product-desc { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.product-fda {
    font-size: 11.5px; color: var(--gold);
    border: 1px solid var(--line-soft);
    padding: 4px 11px; display: inline-block;
    margin-bottom: 16px; letter-spacing: 0.3px;
}
.product-ask {
    width: 100%;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px;
    font-family: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}
.product-ask:hover { background: var(--gold); color: var(--black); }

.empty-products {
    text-align: center;
    background: linear-gradient(160deg, var(--charcoal), var(--ink));
    border: 1px solid var(--line);
    padding: 70px 20px;
}
.empty-mark {
    font-size: 32px; color: var(--gold); opacity: 0.6;
    margin-bottom: 14px;
}
.empty-products p { font-size: 18px; color: var(--cream); }
.empty-products .empty-sub { font-size: 14px; color: var(--text-mute); margin-top: 8px; }

/* Coming soon */
.coming-soon {
    margin-top: 28px;
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--line-soft);
    background: radial-gradient(ellipse at center, rgba(201,160,78,0.05), transparent 70%);
}
.coming-soon-tag {
    display: inline-block;
    color: var(--gold); font-size: 11px;
    letter-spacing: 2.5px; text-transform: uppercase;
    border: 1px solid var(--gold);
    padding: 4px 14px; margin-bottom: 16px;
}
.coming-soon h3 {
    font-size: 28px; color: var(--cream); margin-bottom: 8px;
    font-weight: 600;
}
.coming-soon p { color: var(--text-light); font-size: 14.5px; }

/* ===== ABOUT ===== */
.about-section {
    padding: 100px 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
}
.about-inner {
    display: flex; align-items: center; gap: 64px;
}
.about-mark { flex-shrink: 0; }
.about-mark-letter {
    width: 200px; height: 200px;
    border: 2px solid var(--gold);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 120px; font-weight: 700;
    border-radius: 4px;
    background: radial-gradient(circle, rgba(201,160,78,0.08), transparent);
}
.about-content { flex: 1; }
.about-content .section-eyebrow { text-align: left; }
.about-content .section-title { text-align: left; font-size: 40px; margin-bottom: 20px; }
.about-content p { font-size: 16px; color: var(--text-light); margin-bottom: 16px; }
.about-content strong { color: var(--gold); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--line);
    padding: 48px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 18px;
}
.footer-copy { color: var(--text-light); font-size: 14px; margin-bottom: 6px; }
.footer-note { color: var(--text-mute); font-size: 12.5px; max-width: 560px; margin: 0 auto; }

/* ===== CHAT LAUNCHER ===== */
#chat-launcher {
    position: fixed; bottom: 26px; right: 26px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: var(--black);
    padding: 15px 24px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 9px;
    font-weight: 600; font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(201,160,78,0.45);
    z-index: 90;
    transition: all 0.25s;
}
#chat-launcher:hover { transform: scale(1.05); }
.chat-launcher-icon { font-size: 16px; }

/* ===== CHAT WINDOW ===== */
#chat-window {
    position: fixed; bottom: 26px; right: 26px;
    width: 384px; height: 600px;
    max-height: calc(100vh - 52px);
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}
#chat-window.open { display: flex; }
.chat-header {
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    padding: 15px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 11px; }
.chat-avatar {
    width: 42px; height: 42px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--black);
}
.chat-title { color: var(--cream); font-weight: 600; font-size: 15px; }
.chat-status { color: #7dd87d; font-size: 12px; }
.chat-close {
    background: transparent; border: none;
    color: var(--text-mute); font-size: 18px; cursor: pointer;
    padding: 4px 8px;
}
.chat-close:hover { color: var(--cream); }
.chat-disclosure {
    background: rgba(201,160,78,0.08);
    color: var(--gold-light);
    font-size: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
    line-height: 1.55;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--black);
}
.msg { max-width: 80%; padding: 11px 15px; border-radius: 13px; font-size: 14px; line-height: 1.65; }
.msg-bot {
    background: var(--charcoal);
    border: 1px solid var(--line);
    color: var(--cream);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.msg-user {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: var(--black);
    font-weight: 400;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.msg-typing { color: var(--text-mute); font-style: italic; }
.chat-input-area {
    display: flex; gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--charcoal);
}
#chat-input {
    flex: 1;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--cream);
    outline: none;
}
#chat-input::placeholder { color: var(--text-mute); }
#chat-input:focus { border-color: var(--gold); }
#chat-send {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: var(--black);
    border: none;
    padding: 11px 20px;
    border-radius: 9px;
    font-weight: 600; font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
#chat-send:hover { filter: brightness(1.08); }
#chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Product card in chat */
.product-card-chat {
    align-self: flex-start;
    max-width: 85%;
    background: var(--charcoal);
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    margin-top: -4px;
}
.pcc-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}
.pcc-image:hover { opacity: 0.92; }
.pcc-body { padding: 11px 14px; }
.pcc-name { font-size: 14px; font-weight: 600; color: var(--cream); }
.pcc-name-en {
    font-weight: 400; color: var(--text-mute); font-size: 12px;
    letter-spacing: 0.5px;
}
.pcc-video-btn {
    margin-top: 8px;
    width: 100%;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.pcc-video-btn:hover { background: var(--gold); color: var(--black); }

/* Media overlay */
.media-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.94);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
.media-overlay-img {
    max-width: 95%; max-height: 90%;
    border-radius: 8px; object-fit: contain;
}
.media-overlay-video {
    width: 100%; max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000; border-radius: 8px; overflow: hidden;
}
.media-overlay-video iframe,
.media-overlay-video video { width: 100%; height: 100%; border: none; }
.media-overlay-close {
    margin-top: 16px;
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
    .hero-title { font-size: 46px; }
    .steps-grid { grid-template-columns: 1fr; }
    .about-inner { flex-direction: column; gap: 36px; text-align: center; }
    .about-content .section-eyebrow,
    .about-content .section-title { text-align: center; }
    .about-mark-letter { width: 150px; height: 150px; font-size: 90px; }
    .about-mark-img { width: 160px; height: 160px; }
    .hero-logo { width: 100px; height: 100px; }
    .header-nav { display: none; }
}
@media (max-width: 560px) {
    .header-cta {
        padding: 8px 14px;
        font-size: 12px;
        letter-spacing: 0;
    }
    .brand-text { font-size: 18px; letter-spacing: 1.5px; }
    .brand-mark-img { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .header-nav { display: none; }
    .header-cta { padding: 7px 13px; font-size: 12px; }
    .brand-text { font-size: 17px; letter-spacing: 1px; }
    .brand-mark-img { width: 34px; height: 34px; }
    .hero { padding: 70px 0 60px; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 14.5px; }
    .hero-logo { width: 82px; height: 82px; margin-bottom: 18px; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .hero-trust { gap: 20px; }
    .trust-divider { display: none; }
    .section-title { font-size: 32px; }
    .products-section, .about-section, .steps-section { padding: 64px 0; }
    #chat-window {
        width: 100%; height: 100%;
        max-height: 100vh;
        bottom: 0; right: 0;
        border-radius: 0; border: none;
    }
    #chat-launcher { bottom: 18px; right: 18px; }
    .product-card-chat { max-width: 92%; }
}
