/* Rang Xưa (cafe) — trang chủ y hệt mockup, cỡ đo theo mockup x1.86 (09-28) */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Dancing+Script:wght@500;600&display=swap");
:root { --rx-brown: #5A3522; --rx-btn: #8A4B2A; --rx-cream: #F6EFE4; --rx-ink: #2A1C16; --rx-muted: #6D5E54; --rx-green: #1F3A26; }
body, p, li, a, input, select, textarea, button, .nav > li > a { font-family: "Be Vietnam Pro", sans-serif; }
.rx-h2, .rx-hero-title, .rx-form h3, .rx-ft-logo span { font-family: "Playfair Display", serif !important; }
.rx-script { font-family: "Dancing Script", cursive !important; }
#top-bar { background: #20301F !important; min-height: 42px; } #top-bar, #top-bar a, #top-bar span { color: #fff !important; font-size: 14.5px !important; }
.rx-tb { display: inline-flex; gap: 8px; align-items: center; } .rx-tb img { width: 16px; height: 16px; } .rx-tb i { font-style: normal; margin: 0 4px; }
#header .header-main { background: var(--rx-cream) !important; }
#header #logo { width: 250px !important; }
#header #logo a { display: flex; align-items: center; gap: 12px; font-family: "Playfair Display", serif !important; font-size: 38px; font-weight: 700; color: var(--rx-brown) !important; line-height: 1; position: relative; top: -7px; text-transform: uppercase; }
#header #logo a::before { content: ""; width: 60px; height: 64px; flex: 0 0 60px; background: url(icons/logo.png) center/contain no-repeat; margin-top: 14px; }
#header #logo a::after { content: "CÀ PHÊ RANG XAY"; position: absolute; left: 72px; top: 50%; margin-top: 18px; font-family: "Be Vietnam Pro", sans-serif; font-size: 11px; letter-spacing: .12em; color: var(--rx-muted); font-weight: 600; }
#header .header-nav-main > li > a { font-size: 16px !important; font-weight: 500 !important; color: var(--rx-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
#header .header-nav-main.nav-left > li { margin: 0 16px !important; } #header .header-nav-main.nav-right i { font-size: 24px !important; color: var(--rx-ink) !important; }
#header .header-button-1 .button { background: var(--rx-btn) !important; color: #fff !important; border: 0 !important; border-radius: 4px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 16px !important; font-weight: 600 !important; height: 50px; line-height: 50px; padding: 0 26px !important; }
.rx-hero .section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,18,12,.85) 0%, rgba(30,18,12,.5) 38%, rgba(30,18,12,0) 60%); }
.rx-hero .col { padding-bottom: 0 !important; }
.rx-hero-in { position: relative; height: 510px; display: flex; flex-direction: column; justify-content: center; }
.rx-kicker { color: #E7C9A4 !important; font-size: 15px !important; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px !important; }
.rx-hero-title { color: #fff !important; font-size: 70px !important; line-height: 1.1 !important; font-weight: 600 !important; margin: 0 0 18px !important; }
.rx-hero-lead { color: rgba(255,255,255,.9) !important; font-size: 18px !important; max-width: 540px; margin: 0 0 28px !important; }
.rx-btns { display: flex; gap: 18px; margin: 0 0 32px !important; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 4px; font-weight: 600; font-size: 17px; padding: 0 30px; min-height: 58px; text-decoration: none !important; }
.rx-btn-fill { background: var(--rx-btn); color: #fff !important; } .rx-btn-line { border: 1.5px solid #fff; color: #fff !important; }
.rx-dots { display: flex; gap: 12px; margin: 0 !important; } .rx-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; display: inline-block; } .rx-dots .on { background: #fff; }
.rx-hero-note { position: absolute; right: 0; top: 70px; color: rgba(255,255,255,.9) !important; font-size: 22px !important; line-height: 1.1 !important; transform: rotate(-8deg); text-align: center; }
.rx-story { background-image: url(icons/deco-sketch.png) !important; background-size: 100% auto !important; background-repeat: no-repeat !important; background-position: center 30% !important; position: relative; }
.rx-eyebrow { color: #A0673E !important; font-size: 14.5px !important; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px !important; } .rx-eyebrow-w { color: #E7C9A4 !important; }
.rx-h2 { color: var(--rx-ink) !important; font-size: 46px !important; font-weight: 600 !important; margin: 0 0 16px !important; line-height: 1.2 !important; } .rx-h2-l { font-size: 50px !important; } .rx-h2-w { color: #fff !important; }
.rx-lead { font-size: 18px !important; color: #4D3E35 !important; line-height: 1.65 !important; margin: 0 0 24px !important; }
.rx-story-note { position: absolute; right: -150px; bottom: 10px; font-size: 26px !important; color: #6D4B34 !important; transform: rotate(-8deg); }
.rx-quality .col { padding-bottom: 0 !important; } .rx-quality { position: relative; }
.rx-hands { height: 100%; min-height: 680px; background-size: cover; background-position: center; position: relative; } .rx-hands p { position: absolute; left: 50px; top: 120px; color: #fff !important; font-size: 30px !important; line-height: 1.1 !important; transform: rotate(-8deg); }
.rx-sub-it { font-style: italic; color: #A0673E !important; font-size: 19px !important; margin: -6px 0 22px !important; }
.rx-qlist { list-style: none; margin: 0 !important; padding: 0; } .rx-qlist li { display: flex; gap: 20px; align-items: center; margin: 0 0 22px !important; }
.rx-qlist img { width: 76px; height: 76px; padding: 16px; background: #E9DCC8; border-radius: 50%; box-sizing: border-box; } .rx-qlist span { display: flex; flex-direction: column; font-size: 15px; color: var(--rx-muted); } .rx-qlist b { font-size: 19px; color: var(--rx-ink); margin-bottom: 4px; }
.rx-q-note { position: absolute; right: 40px; bottom: 60px; font-size: 26px !important; color: #6D4B34 !important; transform: rotate(-8deg); line-height: 1.1 !important; }
.rx-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; } .rx-head > p { margin: 0 !important; } .rx-head a { color: var(--rx-ink) !important; font-weight: 600; font-size: 16px; border-bottom: 1px solid; }
.rx-grid { display: grid; gap: 20px; } .rx-cols-4 { grid-template-columns: repeat(4, 1fr); }
.rx-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(90,53,34,.08); }
.rx-img { display: block; aspect-ratio: 1 / .95; background-size: cover; background-position: center; position: relative; } .rx-heart, .rx-badge, .rx-old { display: none !important; }
.rx-body { padding: 16px 20px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.rx-name { grid-column: 1 / 3; font-size: 18px; font-weight: 700; color: var(--rx-ink) !important; }
.rx-price { color: #A0482A; font-size: 24px; font-weight: 700; grid-column: 1; }
.rx-add { grid-column: 2; grid-row: 2 / 5; align-self: center; width: 56px; height: 56px; border-radius: 6px; background: var(--rx-btn); font-size: 0 !important; display: flex; align-items: center; justify-content: center; }
.rx-add::before { content: ""; width: 26px; height: 26px; background: url(icons/bag-w.png) center/contain no-repeat; }
.rx-testi .section-bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,32,22,.25); }
.rx-stars { display: flex; gap: 8px; margin: 0 0 18px !important; } .rx-stars img { width: 30px; height: 30px; }
.rx-quote { display: flex; gap: 16px; margin: 0 0 22px !important; } .rx-quote img { width: 40px; height: 40px; flex: 0 0 40px; filter: brightness(0) invert(.75); } .rx-quote em { color: rgba(255,255,255,.9); font-size: 19px; line-height: 1.6; }
.rx-who { display: flex; gap: 20px; align-items: center; margin: 0 0 16px !important; } .rx-who img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; } .rx-who span { display: flex; flex-direction: column; color: rgba(255,255,255,.8); font-size: 15px; font-style: italic; } .rx-who b { color: #fff; font-size: 22px; font-style: normal; }
.rx-pg { display: flex; gap: 10px; margin: 0 0 0 140px !important; } .rx-pg i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; display: inline-block; } .rx-pg .on { background: #fff; }
.rx-form { background: #FBF7F0; border-radius: 8px; padding: 30px 34px; margin: 0 !important; } .rx-form h3 { font-size: 34px !important; font-weight: 600 !important; color: var(--rx-ink) !important; margin: 0 0 4px !important; } .rx-form > p { color: var(--rx-muted) !important; font-size: 15px !important; margin: 0 0 16px !important; }
.rx-form label { display: block; font-size: 14px; color: var(--rx-ink); margin: 0 0 10px; } .rx-form input, .rx-form select, .rx-form textarea { margin: 6px 0 0 !important; height: 46px; font-size: 14.5px !important; background: #fff !important; box-shadow: none !important; }
.rx-form textarea { height: 80px !important; min-height: 80px; } .rx-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .rx-f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -4px 0 12px; }
.rx-form button { width: 100%; background: var(--rx-green); color: #fff; border: 0; min-height: 54px; font-size: 16px; font-weight: 600; text-transform: none; border-radius: 4px; margin: 6px 0 10px; } .rx-form small { display: block; text-align: center; font-size: 13px; color: var(--rx-muted); }
.rx-partner .section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,239,228,.97) 0%, rgba(246,239,228,.85) 45%, rgba(246,239,228,0) 65%); }
.rx-plead { font-size: 18px !important; color: #4D3E35 !important; margin: 0 0 22px !important; }
.rx-pcall { display: flex; align-items: center; gap: 14px; margin: 0 !important; } .rx-pcall img { width: 44px; height: 44px; } .rx-pcall b { font-size: 44px; color: var(--rx-brown); margin-right: 24px; }
.rx-usp-row { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 0 !important; } .rx-usp-row img { width: 54px; height: 54px; } .rx-usp-row span { display: flex; flex-direction: column; font-size: 14px; color: var(--rx-muted); } .rx-usp-row b { color: var(--rx-ink); font-size: 16.5px; }
.rx-footer p, .rx-footer li, .rx-footer a, .rx-footer span { color: rgba(255,255,255,.85) !important; font-size: 15.5px !important; }
.rx-footer p.rx-ft-logo { display: flex; gap: 16px; align-items: center; margin: 0 0 12px !important; } .rx-ft-logo img { width: 70px; height: 70px; }
.rx-footer p.rx-ft-logo span { font-size: 40px !important; font-weight: 700; color: #fff !important; line-height: 1; display: flex; flex-direction: column; } .rx-ft-logo small { font-family: "Be Vietnam Pro", sans-serif; font-size: 12px; letter-spacing: .1em; margin-top: 6px; text-transform: uppercase; }
.rx-ft-list, .rx-ft-ul { list-style: none; margin: 0; padding: 0; } .rx-ft-list li { display: flex; gap: 12px; margin: 0 0 12px !important; } .rx-ft-list img { width: 20px; height: 20px; margin-top: 2px; } .rx-ft-ul li { margin: 0 0 12px !important; }
.rx-ft-mid { border-left: 1px solid rgba(255,255,255,.15); } .rx-footer h3.rx-ft-title { color: #fff !important; font-size: 20px !important; margin: 0 0 18px !important; font-weight: 600 !important; }
.rx-fb { border-radius: 6px; overflow: hidden; background-size: cover; background-position: center; background-color: #fff; padding-top: 70px; } .rx-fb > div { background: #fff; display: flex; gap: 12px; align-items: center; padding: 12px; } .rx-fb img { width: 56px; height: 56px; border-radius: 50%; }
.rx-fb span { display: flex; flex-direction: column; font-size: 13px !important; color: #666 !important; } .rx-fb b { color: #222; font-size: 16px; } .rx-fb > a { display: block; background: #1877F2; color: #fff !important; text-align: center; padding: 8px; font-weight: 600; margin: 0 12px 12px; border-radius: 4px; }
.rx-fb { background-color: #fff; } .rx-ft-bar { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin-top: 10px; } .rx-ft-bar a { margin-left: 30px; }
.absolute-footer { display: none !important; }
@media (max-width: 849px) {
  .rx-hero-title { font-size: 40px !important; } .rx-hero-note, .rx-story-note, .rx-q-note { display: none; } .rx-h2, .rx-h2-l { font-size: 32px !important; }
  .rx-cols-4 { grid-template-columns: 1fr 1fr; } .rx-hands { min-height: 360px; } .rx-f2 { grid-template-columns: 1fr; } .rx-pcall { flex-wrap: wrap; } .rx-pcall b { font-size: 32px; }
  .rx-head { flex-direction: column; align-items: flex-start; } .rx-ft-mid { border: 0; }
  #header #logo a::after { display: none; } #header #logo a { font-size: 26px; top: 0; } #header #logo a::before { width: 40px; height: 44px; flex-basis: 40px; margin-top: 0; }
}
/* r2 */
#header #logo a { white-space: nowrap; font-size: 34px; } #header #logo { width: 270px !important; }
#header .header-nav-main.nav-left > li { margin: 0 12px !important; } #header .header-nav-main.nav-left { flex-wrap: nowrap !important; }
.rx-form button { background: var(--rx-green) !important; color: #fff !important; }
.rx-quality .row { max-width: none !important; margin: 0 !important; } .rx-quality .col:first-child { padding: 0 !important; }
.rx-body::after { content: "Khối lượng: 1 kg"; grid-column: 1; font-size: 13.5px; color: var(--rx-muted); }
.rx-desc { grid-column: 1; font-size: 13.5px; color: var(--rx-muted); line-height: 1.45; order: 9; } .rx-body::after { order: 8; }
@media (max-width: 849px) { .rx-price { font-size: 18px; white-space: nowrap; } .rx-add { width: 42px; height: 42px; } .rx-body { padding: 12px; } .rx-name { font-size: 15px; } .rx-btns { flex-wrap: wrap; } }
/* ruler:auto BEGIN — tools/astra-bridge/lab/ruler_fix.py, đừng sửa tay */
@media (min-width: 850px) {
  .rx-form h3 { font-size: 38.8px !important; }
  .rx-quote img[src*="/icons/quote.png"] { width: 58px !important; height: 58px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
  .rx-stars img[src*="/icons/star.png"] { width: 50px !important; height: 50px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
}
@media (max-width: 849px) {
  .rx-quote img[src*="/icons/quote.png"] { width: 40px !important; height: 40px !important; }
  .rx-stars img[src*="/icons/star.png"] { width: 36px !important; height: 36px !important; }
}
/* ruler:auto END */
/* r3 09-29: menu mỗi mục ngắt 2 dòng + logo "Rang Xưa" bị in hoa (mockup chữ thường) */
#header .header-nav-main > li > a { white-space: nowrap !important; }
#header #logo a { text-transform: none !important; letter-spacing: 0 !important; }
@media (min-width: 850px) { #header .header-nav-main > li { margin: 0 8px !important; } #header .header-nav-main > li > a { font-size: 14.5px !important; } #header .header-right { flex-wrap: nowrap !important; } #header .header-button-1 .button { white-space: nowrap; } }
.rx-ft-logo span, .rx-footer p.rx-ft-logo span { text-transform: none !important; }
#header .header-main ul.nav-right { flex-wrap: nowrap !important; } #header .header-main ul.nav-right > li { margin: 0 6px !important; }
.rx-stars span { font-size: 30px; line-height: 1; letter-spacing: 6px; color: #E4A23A; }  /* fix1005: sao chữ thay 5 ảnh icon (faint_logos) */
/* fix1005 mid-fix: header tràn 900–1099 (nút "Nhận báo giá sỉ" bị cắt), ghi chú viết tay tràn 1024 */
@media (min-width: 850px) and (max-width: 1099px) {
  #header .header-main .flex-right li.header-button-1 { display: none !important; }
  #header .header-nav-main > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a { font-size: 14px !important; }
}
@media (min-width: 850px) and (max-width: 1299px) { .rx-story-note { display: none !important; } }
