/* Dropdown (select) ka rang: site ke theme jaisa (cream + brown), neela default nahi.
   Naye browsers (Chrome/Edge 135+) mein poora dropdown-popup style hota hai; purane mein
   sirf chuna hua option brown dikhta hai. Sirf look — kaam wahi purana. */
:root { color-scheme: light; accent-color: #805633; }

select option:checked { background: #805633 linear-gradient(#805633, #805633); color: #fff; }
select option { color: #493321; background: #fffdf9; }

@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) { appearance: base-select; }

  /* purani arrow hata kar ek jaisi brown arrow */
  select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23805633' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
    cursor: pointer;
  }
  select:not([multiple]):not([size])::picker-icon { display: none; }

  select:not([multiple]):not([size])::picker(select) {
    margin-top: 6px;
    padding: 6px;
    border: 1px solid #dcc7a8;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 20px 44px -16px rgba(73, 51, 33, .5);
    max-height: min(320px, 60vh);
  }
  select:not([multiple]):not([size]) option {
    padding: 10px 14px;
    border-radius: 9px;
    font-size: .95em;
    line-height: 1.35;
    color: #493321;
    cursor: pointer;
    transition: background-color .15s;
  }
  select:not([multiple]):not([size]) option::checkmark { display: none; }
  select:not([multiple]):not([size]) option:hover,
  select:not([multiple]):not([size]) option:focus-visible { background: #f0e4d2; color: #493321; }
  select:not([multiple]):not([size]) option:checked { background: #805633; color: #fff; font-weight: 700; }
  select:not([multiple]):not([size]) option:disabled { opacity: .5; cursor: not-allowed; }
}
