/* ============================================================
   c'mee Baking Lab — Customer site
   Tone màu lấy từ logo: kem · chocolate · xanh olive
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --cream:      #F7E8CB;
  --cream-soft: #FBF3E2;
  --cream-deep: #F0DBB4;
  --surface:    #FFFDF8;
  --choco:      #33200F;
  --choco-2:    #5A3A22;
  --brown:      #8B5E34;
  --green:      #9DBF5B;
  --green-dark: #7DA23E;
  --rose:       #E9A8A0;
  --rose-soft:  #F6D9D3;

  --shadow-sm: 0 2px 8px rgba(51,32,15,.08);
  --shadow:    0 8px 26px rgba(51,32,15,.12);
  --shadow-lg: 0 18px 48px rgba(51,32,15,.20);
  --radius:    22px;
  --radius-sm: 14px;

  --font-display: 'Baloo 2', 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--choco);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
  /* sticky footer: đẩy footer xuống đáy khi nội dung ngắn */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
/* chừa chỗ cho thanh giỏ hàng nổi (không đẩy footer) */
footer { padding-bottom: calc(30px + 84px); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Nền hoạ tiết mềm ---- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(157,191,91,.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(233,168,160,.18), transparent 40%),
    radial-gradient(circle at 78% 88%, rgba(139,94,52,.10), transparent 46%);
  pointer-events: none;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ============================================================
   LOGO BADGE (khung để màu luôn chuẩn)
   ============================================================ */
.logo-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--cream);
  border-radius: 20px;
  padding: .5em .9em .55em;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(51,32,15,.06);
}
.logo-badge .logo-since {
  display: flex; gap: 2.4em; justify-content: space-between; width: 100%;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .18em;
  font-size: .32em; color: var(--choco); opacity: .85;
}
.logo-badge .logo-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1em; color: var(--choco); letter-spacing: -.02em;
  margin: .04em 0;
}
.logo-badge .logo-sub {
  font-family: var(--font-display); font-weight: 600;
  font-size: .30em; letter-spacing: .22em; color: var(--green-dark);
}
/* kích thước qua font-size trên .logo-badge */

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  background: rgba(247,232,203,.82);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s, padding .3s;
}
.topbar.scrolled { box-shadow: var(--shadow-sm); }
.topbar .logo-badge { font-size: 30px; padding: .35em .6em .4em; box-shadow: none; background: transparent; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 20px; transition: transform .15s, background .2s;
}
.icon-btn:active { transform: scale(.9); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--green); color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.show { transform: scale(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; text-align: center;
  padding: 30px 0 40px;
}
.hero .logo-badge {
  font-size: clamp(64px, 17vw, 132px);
  box-shadow: var(--shadow);
  animation: pop-in .7s cubic-bezier(.34,1.56,.64,1);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 6vw, 40px);
  margin: 22px 0 8px; color: var(--choco);
}
.hero .lead {
  font-size: clamp(15px, 4vw, 18px); color: var(--choco-2);
  max-width: 30ch; margin: 0 auto 22px; font-weight: 600;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.badge-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 18px 0 4px;
}
.pill {
  background: var(--surface); color: var(--brown);
  padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-sm); display: inline-flex; gap: 6px; align-items: center;
}
.pill.green { background: var(--green); color: #fff; }
.pill.rose { background: var(--rose); color: #fff; }

/* các cục bánh trôi lơ lửng */
.floaty { position: absolute; font-size: 34px; opacity: .55; animation: float 6s ease-in-out infinite; pointer-events: none; }
.floaty:nth-child(1){ top: 8%; left: 6%; animation-delay: 0s; }
.floaty:nth-child(2){ top: 18%; right: 8%; animation-delay: 1.2s; font-size: 28px; }
.floaty:nth-child(3){ bottom: 12%; left: 12%; animation-delay: 2.1s; font-size: 26px; }
.floaty:nth-child(4){ bottom: 22%; right: 10%; animation-delay: .6s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  transition: transform .15s, box-shadow .2s, filter .2s;
  box-shadow: var(--shadow);
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--choco); color: var(--cream); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: var(--surface); color: var(--choco); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; filter: grayscale(.4); cursor: not-allowed; }

/* ============================================================
   SECTION
   ============================================================ */
section.block { padding: 34px 0; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head .kicker {
  font-family: var(--font-display); color: var(--green-dark);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 6vw, 34px); color: var(--choco); margin-top: 4px;
}
.section-head p { color: var(--choco-2); font-weight: 600; margin-top: 6px; }

/* ---- Chips lọc danh mục ---- */
.cat-filter {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-filter::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px;
  background: var(--surface); color: var(--choco-2); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-sm); transition: all .2s; white-space: nowrap;
}
.chip.active { background: var(--choco); color: var(--cream); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
/* máy tính bảng: 3 cột */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
/* desktop: đúng 4 card / hàng */
@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 1/1; background: var(--cream-deep);
  display: grid; place-items: center; font-size: 54px; position: relative;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .hot-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--rose); color: #fff; font-weight: 800; font-size: 11px;
  padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card .stock-tag {
  position: absolute; top: 10px; right: 10px;
  background: rgba(51,32,15,.82); color: var(--cream); font-weight: 700; font-size: 11px;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card .stock-tag.low { background: var(--rose); color: #fff; }
.card .stock-tag.out { background: #9a9a9a; }
.card .body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .name { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.card .flavor { font-size: 12.5px; color: var(--brown); font-weight: 700; }
.card .desc {
  font-size: 12px; color: var(--choco-2); opacity: .8; margin-top: 2px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* dòng "đã bán / người mua" trên thẻ bánh */
.card .sold {
  font-size: 11.5px; font-weight: 700; color: var(--brown);
  background: var(--cream-deep); align-self: flex-start;
  padding: 3px 9px; border-radius: 999px; margin-top: 6px; white-space: nowrap;
}
.card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card .price { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--choco); }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 22px; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .15s, background .2s;
}
.add-btn:active { transform: scale(.85); }
.add-btn:disabled { background: #c9c9c9; }

/* stepper khi đã có trong giỏ */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream-deep); color: var(--choco); font-size: 18px; font-weight: 800;
  display: grid; place-items: center;
}
.stepper .qty { min-width: 22px; text-align: center; font-weight: 800; font-family: var(--font-display); }

/* ============================================================
   COMBO / PROMO STRIP
   ============================================================ */
.combo-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.combo-scroll::-webkit-scrollbar { display: none; }
.combo-card {
  flex: 0 0 clamp(240px, 78vw, 300px);
  background: linear-gradient(135deg, var(--choco), var(--choco-2));
  color: var(--cream); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.combo-card::after { content: '🎀'; position: absolute; right: -6px; top: -6px; font-size: 60px; opacity: .18; }
.combo-card .tag { background: var(--green); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; display: inline-block; }
.combo-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 10px 0 4px; }
.combo-card .items { font-size: 13px; opacity: .85; min-height: 34px; }
.combo-card .prices { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.combo-card .old { text-decoration: line-through; opacity: .55; font-size: 14px; }
.combo-card .new { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--green); }
.combo-card .btn { margin-top: 12px; padding: 10px 18px; font-size: 14px; }

.promo-banner {
  background: var(--rose-soft); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm); margin-bottom: 8px;
}
.promo-banner .em { font-size: 30px; }
.promo-banner b { color: var(--choco); }
.promo-banner .promo-code { cursor: pointer; background: var(--choco); color: var(--cream); padding: 1px 8px; border-radius: 7px; letter-spacing: .04em; }

/* ô nhập mã khuyến mãi khi thanh toán */
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; text-transform: uppercase; }
.promo-row .btn { flex: 0 0 auto; padding: 10px 16px; }
.promo-msg { font-size: 13px; font-weight: 700; margin-top: 6px; min-height: 1px; }
.promo-msg.ok { color: var(--green-dark); }
.promo-msg.err { color: #d1495b; }

/* thông báo phí ship ở màn hình đặt hàng thành công */
.ship-note {
  background: var(--rose-soft); border-radius: var(--radius);
  padding: 12px 16px; margin: 12px 0; font-size: 14px; font-weight: 600;
  color: var(--choco-2); line-height: 1.5;
}
.ship-note b { color: var(--choco); }

/* ============================================================
   FEEDBACK WALL
   ============================================================ */
.feedback-wall { columns: 2; column-gap: 14px; }
.fb-card {
  break-inside: avoid; margin-bottom: 14px;
  background: var(--surface); border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent; position: relative;
}
.fb-card.pinned { border-color: var(--green); }
.fb-card .pin { position: absolute; top: -10px; right: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.fb-card .stars { color: #f5b301; font-size: 15px; letter-spacing: 1px; }
.fb-card .msg { font-size: 14px; margin: 6px 0 8px; color: var(--choco); font-weight: 600; }
.fb-card .who { font-size: 13px; color: var(--brown); font-weight: 800; }
.fb-card .fb-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0; }
.fb-card .fb-imgs img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.fb-card .fb-imgs img:only-child { grid-column: 1 / -1; aspect-ratio: 16/10; }

/* ============================================================
   FLOATING CART BAR
   ============================================================ */
.cartbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  transform: translateY(120%); transition: transform .35s cubic-bezier(.34,1.4,.64,1);
  padding: 10px 4vw calc(10px + env(safe-area-inset-bottom));
}
.cartbar.show { transform: translateY(0); }
.cartbar-inner {
  background: var(--choco); color: var(--cream);
  border-radius: 999px; padding: 8px 8px 8px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto;
}
.cartbar .info small { opacity: .7; font-size: 12px; display: block; }
.cartbar .info b { font-family: var(--font-display); font-size: 19px; }
.cartbar .go { background: var(--green); color: #fff; padding: 13px 24px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cartbar .go:active { transform: scale(.95); }

/* ============================================================
   MODAL / DRAWER
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(51,32,15,.5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
  display: flex; align-items: flex-end; justify-content: center;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet {
  background: var(--cream-soft); width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  border-radius: 26px 26px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .35s cubic-bezier(.34,1.3,.64,1);
  box-shadow: var(--shadow-lg);
}
.overlay.show .sheet { transform: translateY(0); }
@media (min-width: 640px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 26px; max-height: 88vh; }
}
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--cream-deep); margin: -6px auto 14px; }
.sheet h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 4px; }
.sheet .sub { color: var(--choco-2); font-weight: 600; font-size: 14px; margin-bottom: 16px; }

.close-x { position: absolute; }

/* cart items */
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--cream-deep); }
.cart-item .ci-thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--cream-deep); display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; overflow: hidden; }
.cart-item .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info .n { font-weight: 800; font-size: 14.5px; }
.cart-item .ci-info .p { color: var(--brown); font-weight: 700; font-size: 13px; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--choco-2); }
.cart-empty .em { font-size: 52px; }

/* summary rows */
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-weight: 600; }
.sum-row.total { font-family: var(--font-display); font-size: 20px; font-weight: 700; padding-top: 10px; border-top: 2px solid var(--cream-deep); margin-top: 6px; }
.sum-row .disc { color: var(--green-dark); }

/* form */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 6px; color: var(--choco-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 2px solid var(--cream-deep); background: var(--surface);
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--choco);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 66px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* payment choice */
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.pay-opt {
  border: 2px solid var(--cream-deep); background: var(--surface);
  border-radius: var(--radius-sm); padding: 14px; text-align: center;
  font-weight: 700; transition: all .2s; position: relative;
}
.pay-opt .em { font-size: 26px; display: block; margin-bottom: 4px; }
.pay-opt small { display: block; font-size: 11.5px; color: var(--choco-2); font-weight: 600; }
.pay-opt.sel { border-color: var(--green); background: #f4f9e9; }

/* QR result */
.qr-box { text-align: center; }
.qr-box img { width: 260px; max-width: 78%; margin: 6px auto 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: #fff; }
.qr-info { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; text-align: left; box-shadow: var(--shadow-sm); }
.qr-info .r { display: flex; justify-content: space-between; padding: 4px 0; font-weight: 600; font-size: 14px; }
.qr-info .r b { font-family: var(--font-display); }
.success-check { font-size: 64px; animation: pop-in .5s cubic-bezier(.34,1.56,.64,1); }

/* feedback form image preview */
.img-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.img-picker .add-img {
  width: 64px; height: 64px; border-radius: 14px; border: 2px dashed var(--brown);
  display: grid; place-items: center; font-size: 24px; color: var(--brown); background: var(--surface);
}
.img-picker .prev { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; position: relative; }
.img-picker .prev-wrap { position: relative; }
.img-picker .prev-wrap .rm { position: absolute; top: -6px; right: -6px; background: var(--rose); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.star-pick { display: flex; gap: 4px; font-size: 30px; }
.star-pick span { cursor: pointer; color: var(--cream-deep); transition: transform .1s; }
.star-pick span.on { color: #f5b301; }
.star-pick span:active { transform: scale(.8); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--choco); color: var(--cream);
  padding: 40px 0 calc(34px + 84px); margin-top: 20px;
  text-align: center;
}
footer .logo-badge { font-size: 46px; margin-bottom: 16px; }
footer .f-info { display: flex; flex-direction: column; gap: 8px; font-weight: 600; opacity: .9; }
footer .f-info a { color: var(--green); font-weight: 800; }
footer .copy { margin-top: 20px; opacity: .5; font-size: 13px; }

/* footer 2 cột: thông tin trái · bản đồ phải */
.f-cols { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.f-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.f-map { width: 100%; max-width: 460px; }
.f-map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; background: var(--choco-2); }
.f-map-frame iframe { width: 100%; height: 240px; border: 0; display: block; filter: saturate(1.05); }
.f-map-btn { margin-top: 14px; display: inline-flex; }

/* nút liên hệ trong footer */
.f-contacts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

@media (min-width: 760px) {
  .f-cols { flex-direction: row; align-items: center; justify-content: center; gap: 48px; }
  .f-left { align-items: flex-start; text-align: left; flex: 0 1 320px; }
  .f-left .f-info { align-items: flex-start; }
  .f-left .f-contacts { justify-content: flex-start; }
  .f-right { flex: 0 1 460px; }
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,.12); color: var(--cream); transition: transform .15s, filter .2s;
}
.contact-btn:active { transform: scale(.94); }
.contact-btn .ci { font-size: 17px; display: grid; place-items: center; }
.contact-btn.zalo { background: #0068FF; color: #fff; }
.contact-btn.tiktok { background: #000; color: #fff; }
.contact-btn.tiktok .ci { color: #25F4EE; }
/* Instagram dùng dải màu thương hiệu (vàng → hồng → tím) */
.contact-btn.instagram { background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%); color: #fff; }
.contact-btn.facebook { background: #1877F2; color: #fff; }
.contact-btn.facebook .ci { font-family: Georgia, serif; font-weight: 800; }
.contact-btn.phone { background: var(--green); color: #fff; }

/* ============================================================
   NÚT LIÊN HỆ NỔI (FAB)
   ============================================================ */
.contact-fab {
  position: fixed; right: 14px; z-index: 44;
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.fab-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  box-shadow: var(--shadow-lg); transition: transform .15s;
  animation: pop-in .4s cubic-bezier(.34,1.56,.64,1);
}
.fab-btn:active { transform: scale(.88); }
.fab-btn.zalo { background: #0068FF; }
.fab-btn.tiktok { background: #010101; }
.fab-btn.tiktok span { filter: drop-shadow(1px 1px 0 #25F4EE) drop-shadow(-1px -1px 0 #FE2C55); }
.fab-btn.instagram { background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%); }
.fab-btn.facebook { background: #1877F2; font-family: Georgia, serif; font-weight: 800; }

/* ============================================================
   COMBO: ảnh bánh + popup chi tiết
   ============================================================ */
.combo-thumbs { display: flex; gap: 6px; margin: 10px 0 4px; align-items: center; }
.ct-th { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.ct-th img { width: 100%; height: 100%; object-fit: cover; }
.ct-more { font-weight: 800; font-size: 13px; opacity: .8; }
.combo-card { cursor: pointer; }

.combo-detail-head { text-align: center; margin-bottom: 16px; }
.combo-detail-head .cd-badge { background: var(--green); color: #fff; font-weight: 800; padding: 4px 14px; border-radius: 999px; font-size: 13px; }
.combo-detail-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 10px; }
.combo-detail-head .cd-desc { color: var(--choco-2); font-weight: 600; font-size: 14px; margin-top: 4px; }
.cd-items { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.cd-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.cd-item.out { opacity: .5; }
.cd-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--cream-deep); display: grid; place-items: center; font-size: 28px; flex: 0 0 auto; }
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cd-info { flex: 1; min-width: 0; }
.cd-name { font-weight: 800; font-size: 15px; }
.cd-flavor { font-size: 12.5px; color: var(--brown); font-weight: 700; }
.cd-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.cd-prices { background: var(--cream-soft); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.cd-prices > div { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-weight: 600; }
.cd-prices .cd-old { text-decoration: line-through; color: var(--choco-2); opacity: .7; font-family: var(--font-display); }
.cd-prices .cd-new { font-family: var(--font-display); font-size: 22px; color: var(--green-dark); }
.cd-prices .cd-save { justify-content: center; color: var(--green-dark); font-weight: 800; margin-top: 6px; border-top: 1px dashed var(--cream-deep); padding-top: 10px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pop-in { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes fly-up { 0% { transform: scale(1); opacity: 1; } 100% { transform: translate(var(--fx,0), -140px) scale(.3); opacity: 0; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* bay bánh vào giỏ */
.fly-emoji { position: fixed; z-index: 100; font-size: 30px; pointer-events: none; animation: fly-up .7s ease-in forwards; }

.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--choco); color: var(--cream); padding: 12px 22px; border-radius: 999px;
  font-weight: 700; box-shadow: var(--shadow-lg); z-index: 90;
  opacity: 0; transition: all .3s; pointer-events: none; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.skeleton { background: linear-gradient(90deg, var(--cream-deep) 25%, var(--cream-soft) 50%, var(--cream-deep) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- responsive nhỏ ---- */
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .thumb { font-size: 44px; }
}
@media (min-width: 700px) {
  .feedback-wall { columns: 3; }
}
