﻿
  /* ===== Colors yahan se badal sakte hain ===== */
  :root {
    --bg: #faf6ef;
    --card: #ffffff;
    --ink: #1c1a17;
    --muted: #7a7468;
    --gold: #b8923a;
    --gold-dark: #8f6f22;
    --line: #e9e1d2;
    --bot-bubble: #f4efe5;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; }

  /* ===== Top bar ===== */
  header { display: flex; align-items: center; justify-content: space-between;
           padding: 14px 6vw; background: var(--ink); border-bottom: 1px solid #000; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .logo { height: 46px; width: auto; display: block; }
  .logo-text { font-family: Georgia, serif; font-size: 22px; letter-spacing: 3px; color: #e8c872; font-weight: bold; }
  .wa-btn { background: var(--gold); color: #fff; text-decoration: none; padding: 10px 18px;
            border-radius: 999px; font-size: 14px; font-weight: 600; }
  .wa-btn:hover { background: var(--gold-dark); }

  /* ===== Layout ===== */
  .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: 40px 6vw; align-items: start; }
  .tag { color: var(--gold-dark); letter-spacing: 3px; font-size: 12px; text-transform: uppercase; }
  h1 { font-family: Georgia, serif; font-size: 44px; line-height: 1.15; margin: 12px 0 14px; font-weight: normal; }
  h1 em { color: var(--gold); font-style: italic; }
  .sub { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 520px; }

  /* ===== Product cards ===== */
  .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
  .p { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px;
       text-align: center; cursor: pointer; transition: all .2s; }
  .p:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(184,146,58,.15); }
  .p small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
  .p h3 { font-family: Georgia, serif; font-weight: normal; font-size: 19px; margin: 6px 0; }
  .p .price { color: var(--gold-dark); font-weight: 600; }
  .hint { color: var(--muted); font-size: 13px; margin-top: 12px; }

  /* ===== Chat ===== */
  .chat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
          display: flex; flex-direction: column; height: 600px; box-shadow: 0 10px 40px rgba(60,45,10,.08); }
  .chead { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ink); color: #fff; }
  .chead .av { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid #3a362e; display: flex;
               align-items: center; justify-content: center; overflow: hidden; }
  .chead .av img { width: 100%; height: 100%; object-fit: contain; }
  .chead b { font-size: 15px; }
  .chead small { display: block; color: #cfc7b5; font-size: 12px; }
  .dot { display: inline-block; width: 8px; height: 8px; background: #3ecf6a; border-radius: 50%; margin-right: 5px; }
  .msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fffdf9; }
  .m { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; font-size: 15px; }
  .bot { background: var(--bot-bubble); align-self: flex-start; border-bottom-left-radius: 4px; }
  .user { background: var(--gold); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
  .typing { display: flex; gap: 4px; padding: 14px; }
  .typing i { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: b 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes b { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; border-top: 1px solid var(--line); }
  .chip { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); border-radius: 999px;
          padding: 6px 13px; font-size: 13px; cursor: pointer; }
  .chip:hover { background: var(--gold); color: #fff; }
  .bar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .bar input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
               font-size: 15px; outline: none; background: var(--bg); color: var(--ink); }
  .bar input:focus { border-color: var(--gold); }
  .bar button { padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
                font-weight: 600; cursor: pointer; }
  .bar button:hover { background: var(--gold-dark); }

  footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

  /* ===== Mobile ===== */
  @media (max-width: 860px) {
    .wrap { grid-template-columns: 1fr; padding: 24px 5vw; gap: 28px; }
    h1 { font-size: 32px; }
    .products { grid-template-columns: 1fr; }
    .chat { height: 70vh; }
  }

  .wrap > section, .chat-title { min-width: 0; }
  .p { font: inherit; color: var(--ink); }
  .product-name { display: block; font-family: Georgia, serif; font-size: 19px; margin: 6px 0; }
  .price { display: block; }
  .msgs { min-height: 0; }
  .m { overflow-wrap: anywhere; flex-shrink: 0; }
  .chat-title { flex: 1; }
  .chead .av { flex-shrink: 0; }
  #new-chat { background: transparent; color: #e8c872; border: 1px solid #b8923a; border-radius: 8px; padding: 8px; cursor: pointer; }
  .bar input { min-width: 0; }
  .privacy { font-size: 11px; line-height: 1.5; padding: 0 14px 12px; color: var(--muted); }
  .privacy a { color: var(--gold-dark); }
  button:disabled { opacity: .55; cursor: wait; }
  button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
  @media (max-width: 480px) {
    header { padding: 12px 5vw; gap: 12px; }
    .logo { max-width: 110px; height: auto; max-height: 46px; }
    .wa-btn { font-size: 12px; padding: 10px 12px; }
    .chead { padding: 12px; gap: 8px; }
    .chead b { font-size: 13px; }
    .chead small { font-size: 11px; }
    .chat { height: 75vh; height: 75dvh; min-height: 470px; }
    .bar { padding: 10px; }
    .bar input { padding: 12px; font-size: 16px; }
    .bar button { padding: 0 16px; }
  }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
