/* ==========================================================================
   Diamond Sea – Giao diện đặt món kiểu ShopeeFood (v8)
   Đổi màu thương hiệu ở khối biến đầu tiên.
   ========================================================================== */
.ds-mo {
  --ds-accent: #ee4d2d;      /* cam-đỏ ShopeeFood */
  --ds-accent-d: #d73211;
  --ds-price: #ee4d2d;
  --ds-ink: #222;
  --ds-muted: #8c8c8c;
  --ds-line: #efefef;
  --ds-bg: #f5f5f5;
  --ds-card: #fff;
  --ds-badge: #fff1a6;       /* nhãn giảm giá vàng */
  --ds-badge-ink: #e5390e;
  --ds-top: 0px;             /* JS: chiều cao header cố định của theme */
  --ds-safe-b: env(safe-area-inset-bottom, 0px);
  --ds-tabs-h: 56px;         /* JS đo lại theo thực tế → không bao giờ bị che */
  --ds-bar-h: 0px;           /* JS đo thanh giỏ / thanh thanh toán */
  --ds-row-w: calc((100vw - 46px) / 4);   /* đúng 4 món / hàng: lề khung 2×6 + đệm hàng 2×8 + 3 khe×6 */
}
.ds-mo { background: var(--ds-bg); }
.ds-hide { display: none !important; }

/* ---------- Che các phần thừa của theme trên trang thực đơn ---------- */
.ds-mo .woocommerce-breadcrumb,
.ds-mo .breadcrumbs, .ds-mo .breadcrumb,
.ds-mo .woocommerce-products-header,
.ds-mo .woocommerce-result-count, .ds-mo .woocommerce-ordering,
.ds-mo #floating-cart-wrapper { display: none !important; }
.ds-mo.ds-has-cats #categories-nav { display: none !important; }  /* tránh lặp với hàng icon danh mục */


/* ---------- Trang chủ đặt món: vào là thấy ngay thanh tìm kiếm cam (như trang chủ ShopeeFood) ---------- */
.ds-home .page-title, .ds-home .page-title-wrap, .ds-home .page-header, .ds-home .entry-header,
.ds-home .entry-title, .ds-home .inner-banner, .ds-home .page-banner, .ds-home .title-bar,
.ds-home .page-heading, .ds-home .breadcrumbs-wrap { display: none !important; }
.ds-home .entry-content, .ds-home .site-content, .ds-home #content, .ds-home .page-content,
.ds-home .container, .ds-home .center.page { padding-top: 0 !important; margin-top: 0 !important; }
.ds-home .product-list-wrap { margin-top: 0 !important; }

/* ---------- Thanh tìm kiếm (dính trên cùng, nền cam) ---------- */
.ds-nav {
  position: sticky; top: var(--ds-top); z-index: 9;   /* thấp hơn menu chính của theme */
  background: var(--ds-accent);
  padding: 8px 10px 6px;
}
.ds-nav__search { position: relative; max-width: 1100px; margin: 0 auto; }
.ds-nav__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ds-accent); pointer-events: none; }
.ds-nav__search input[type="search"] {
  width: 100%; height: 42px; margin: 0; padding: 0 36px 0 40px !important;
  border: 0; border-radius: 10px !important; background: #fff; color: var(--ds-ink);
  font-size: 15px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.ds-nav__search input[type="search"]::placeholder { color: #b0b0b0; }
.ds-nav__search input[type="search"]:focus { outline: 2px solid rgba(255,255,255,.7); outline-offset: 0; }
.ds-nav__clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%; padding: 0;
  background: transparent; color: var(--ds-muted); font-size: 20px; line-height: 1; cursor: pointer; display: none;
}
.ds-nav.has-q .ds-nav__clear { display: block; }

/* ---------- Hàng icon danh mục (như ShopeeFood): thẻ bo góc, nền cam nhạt, icon tròn trắng, thanh chỉ báo cuộn ---------- */
.ds-cats {
  /* cam đặc quanh thẻ (như ảnh ShopeeFood), chỉ nhạt dần về nền xám ở dải dưới thẻ */
  background: linear-gradient(180deg, var(--ds-accent) 0, var(--ds-accent) calc(100% - 22px), var(--ds-bg) 100%);
  padding: 6px 7px 22px; margin: 0;
}
.ds-cats__card {
  max-width: 1100px; margin: 0 auto; overflow: hidden;
  background: rgba(255, 255, 255, .085);        /* cam sáng hơn nền một nấc, đúng thẻ ShopeeFood */
  border-radius: 12px;
  padding: 12px 0 8px;
}
.ds-cats__row {
  display: flex; gap: 0; overflow-x: auto; padding: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.ds-cats__row::-webkit-scrollbar { display: none; }
.ds-cat {
  flex: 0 0 clamp(72px, 23.2%, 112px);          /* 4 icon + nửa icon thứ 5 ló ra → báo hiệu vuốt được */
  scroll-snap-align: start; text-align: center; text-decoration: none !important;
  color: #fff !important; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0 3px; box-sizing: border-box; min-width: 0;
}
.ds-cat__pic {
  width: 55%; max-width: 52px; aspect-ratio: 1 / 1; height: auto; border-radius: 50%; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--ds-accent); font-weight: 800; font-size: 20px;
  box-shadow: none; border: 0;
}
.ds-cat__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-cat__name {
  font-size: clamp(11px, 3.1vw, 13px); line-height: 1.18; font-weight: 400; color: #fffcf6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.36em;                            /* luôn chừa 2 dòng → thanh chỉ báo thẳng hàng */
  overflow-wrap: anywhere;
}
/* thanh chỉ báo vị trí cuộn (rãnh 40×3, con trượt 14px) */
.ds-cats__bar {
  position: relative; display: block; width: 40px; height: 3px; margin: 9px auto 0;
  border-radius: 3px; background: rgba(0, 0, 0, .035);
}
.ds-cats__bar i {
  position: absolute; left: 0; top: 0; width: 14px; height: 100%; border-radius: 3px;
  background: #dd5a30; transform: translateX(0); transition: transform .12s linear;
}
.ds-cats--static .ds-cats__bar { display: none; }   /* không đủ icon để cuộn → ẩn */

.ds-empty { display: none; text-align: center; color: var(--ds-muted); padding: 36px 16px; font-size: 15px; }
.ds-empty.is-on { display: block; }

/* ---------- Tiêu đề chuyên mục (gọn, bỏ banner của theme) ---------- */
.ds-mo .cat-menu-heading {
  scroll-margin-top: calc(var(--ds-top) + var(--ds-nav-h, 56px));
  min-height: 0 !important; height: auto !important;
  padding: 10px 12px 2px !important; margin: 0 !important;
  background: none !important; text-align: left; position: relative;
}
.ds-mo .cat-menu-heading .divimage,
.ds-mo .cat-menu-heading img,
.ds-mo .cat-menu-heading .section-title:before,
.ds-mo .cat-menu-heading .section-title:after { display: none !important; }
.ds-mo .cat-menu-heading .table, .ds-mo .cat-menu-heading .table-cell { display: block !important; height: auto !important; }
.ds-mo .cat-menu-heading .info { padding: 0 !important; margin: 0 !important; text-align: left !important; color: var(--ds-ink) !important; }
.ds-mo .cat-menu-heading .section-title,
.ds-mo .cat-menu-heading h1, .ds-mo .cat-menu-heading h2, .ds-mo .cat-menu-heading h3 {
  margin: 0 !important; font-size: 16px !important; line-height: 1.3 !important; font-weight: 700 !important;
  color: var(--ds-ink) !important; text-align: left !important; letter-spacing: 0 !important; text-transform: none !important;
}
.ds-mo .cat-menu-heading .description { margin-top: 2px; font-size: 12px; color: var(--ds-muted) !important; }
.ds-mo .cat-menu-heading .limited-time-notice p { font-size: 12px; margin: 4px 0 0; color: var(--ds-accent-d) !important; }

/* ---------- Khung chuyên mục: 1 thẻ trắng, 1 hàng trượt ngang ---------- */
.ds-mo .product-list-wrap { background: var(--ds-bg); padding: 0 0 8px; }
.ds-mo .ds-sec { background: var(--ds-card); border-radius: 12px; margin: 0 6px 8px; overflow: hidden; }
.ds-mo .ds-sec .center { padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; }
.ds-sec__more {
  position: absolute; right: 6px; top: 8px; z-index: 2;
  border: 0 !important; background: none !important; box-shadow: none !important;
  color: var(--ds-muted) !important; font-size: 12.5px !important; font-weight: 400 !important;
  text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2 !important;
  padding: 6px 4px !important; margin: 0 !important; width: auto !important; height: auto !important;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.ds-sec__more::after { content: " ›"; font-size: 16px; line-height: 1; }
.ds-sec.is-open .ds-sec__more::after { content: " ˄"; }
.ds-mo .ds-sec .cat-menu-heading { padding-right: 90px !important; }

.ds-mo ul.product-list-images {
  list-style: none; margin: 0; padding: 6px 8px 10px; max-width: none;
  display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ds-mo ul.product-list-images::-webkit-scrollbar { display: none; }

/* mở rộng / đang tìm / trang danh mục đơn → lưới 2 cột */
.ds-mo .ds-sec.is-open ul.product-list-images,
.ds-mo.ds-searching .ds-sec ul.product-list-images {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; overflow: visible;
}
.ds-mo .ds-sec--flat { margin-top: 10px; }
.ds-mo .ds-sec--flat:not(.ds-sec--hd) ul.product-list-images { padding-top: 12px; }

/* ---------- Thẻ món (dọc: ảnh trên, chữ dưới) ---------- */
.ds-mo ul.product-list-images > li.ds-card {
  float: none !important; clear: none !important; margin: 0 !important; padding: 0 !important;
  position: relative; display: flex; flex-direction: column;
  flex: 0 0 var(--ds-row-w); width: var(--ds-row-w) !important; min-width: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; min-height: 0;
  scroll-snap-align: start; color: var(--ds-ink); overflow: visible;
}
.ds-mo .ds-sec.is-open ul.product-list-images > li.ds-card,
.ds-mo.ds-searching .ds-sec ul.product-list-images > li.ds-card { flex: none; width: auto !important; }

.ds-card__media { position: relative; display: block; }
.ds-card__pic {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 8px; overflow: hidden; background: #f0f0f0;
}
.ds-card__pic img, .ds-card__img {
  display: block !important; width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; border: 0 !important; border-radius: 0 !important; margin: 0 !important;
}
.soh-out-of-time .ds-card__pic { filter: grayscale(1); opacity: .6; }
.ds-card__off {
  position: absolute; top: 0; right: 0; z-index: 3;
  padding: 2px 5px; border-radius: 0 0 0 8px;
  background: var(--ds-badge); color: var(--ds-badge-ink); font-size: 11px; font-weight: 700; line-height: 1.3;
}

.ds-card__body { display: flex; flex-direction: column; min-width: 0; padding: 6px 0 0; }
.ds-card__title {
  margin: 0 0 3px !important; padding: 0 !important; position: static !important;
  font-size: 13px !important; line-height: 1.3 !important; font-weight: 600 !important;
  color: var(--ds-ink) !important; letter-spacing: 0 !important; text-transform: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-card__title .onsale { display: none !important; }
.ds-card__desc, .ds-card__badges { display: none; }
.ds-card__foot { padding: 0; margin: 0; min-height: 0; display: block; }
.ds-card__price, .ds-card__price * { color: var(--ds-price); }
.ds-card__price { font-size: 14px; font-weight: 700; line-height: 1.25; }
.ds-card__price .price { margin: 0; font-size: inherit; display: flex; flex-direction: column; }
.ds-card__price ins { text-decoration: none; background: none; order: 1; }
.ds-card__price del { order: 2; color: var(--ds-muted) !important; font-weight: 400; font-size: 11px; opacity: 1; }
.ds-card__price .woocommerce-Price-currencySymbol { font-size: .8em; }

/* chi tiết hơn khi mở rộng / tìm kiếm */
.ds-sec.is-open .ds-card__title, .ds-searching .ds-card__title { font-size: 14px !important; }
.ds-sec.is-open .ds-card__price, .ds-searching .ds-card__price { font-size: 15px; }
.ds-sec.is-open .ds-card__price del, .ds-searching .ds-card__price del { font-size: 12px; }
.ds-sec.is-open .ds-card__desc, .ds-searching .ds-card__desc {
  display: -webkit-box; margin: 0 0 4px; font-size: 12px; line-height: 1.35; color: var(--ds-muted);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-sec.is-open .ds-card__badges, .ds-searching .ds-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; }
.ds-card__badges:empty { display: none !important; }
.ds-card__badges > div { margin: 0 !important; font-size: 11px !important; padding: 2px 7px !important; border-radius: 999px !important; }

/* ---------- Nút + / bộ −/+ nằm trên ảnh, góc phải dưới ---------- */
.ds-card .ds-actions {
  position: absolute; right: 4px; bottom: 4px; margin: 0 !important; padding: 0 !important;
  display: flex; align-items: center; z-index: 4;
}
.ds-card .ds-actions .quantity, .ds-card .ds-actions input.qty { display: none !important; }
.ds-card .ds-add, .ds-card .ds-plus, .ds-card .ds-minus {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; min-width: 26px; margin: 0; padding: 0 !important;
  border: 0; border-radius: 50% !important; background: var(--ds-accent); color: #fff;
  font-size: 0; line-height: 1; cursor: pointer; position: relative;
  box-shadow: 0 2px 6px rgba(238, 77, 45, .4);
  transition: transform .12s ease; touch-action: manipulation; text-transform: none;
}
.ds-card .ds-add svg, .ds-card .ds-plus svg, .ds-card .ds-minus svg { display: block; width: 15px; height: 15px; pointer-events: none; }
.ds-card .ds-add:active, .ds-card .ds-plus:active, .ds-card .ds-minus:active { transform: scale(.9); }
.ds-card .ds-add:hover, .ds-card .ds-plus:hover { background: var(--ds-accent-d); color: #fff; }
.ds-card .ds-add--link { width: auto; padding: 0 10px !important; border-radius: 999px !important; font-size: 11px; font-weight: 700; text-decoration: none; }

.ds-card .ds-stepper {
  display: none; align-items: center; background: #fff; border-radius: 999px; padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.ds-card .ds-stepper .ds-minus { background: #fff; color: var(--ds-accent); box-shadow: none; border: 1px solid var(--ds-accent); width: 26px; height: 26px; min-width: 26px; }
.ds-card .ds-stepper .ds-plus { box-shadow: none; width: 26px; height: 26px; min-width: 26px; }
.ds-card .ds-qty { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ds-ink); font-variant-numeric: tabular-nums; }

.ds-card .ds-add__n { display: none; }
.ds-card[data-in]:not([data-in="0"]) .ds-add__n {
  display: inline-flex; align-items: center; justify-content: center;
  position: static; min-width: 0; height: auto; padding: 0; background: none; box-shadow: none;
  font-style: normal; font-size: 13px; font-weight: 800; color: #fff; line-height: 1;
}
.ds-card[data-in]:not([data-in="0"]) .ds-add__n::before { content: attr(data-n); }
.ds-card[data-in]:not([data-in="0"]) .ds-add svg { display: none; }
.ds-card[data-in]:not([data-in="0"]) .ds-add { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.ds-card[data-in]:not([data-in="0"]) .ds-add .ds-add__n { color: var(--ds-accent); }

/* Khi mở rộng / tìm: món thường hiện bộ −/+ đầy đủ */
.ds-sec.is-open .ds-card[data-in]:not([data-in="0"]):not([data-locked="1"]) .ds-stepper,
.ds-searching .ds-card[data-in]:not([data-in="0"]):not([data-locked="1"]) .ds-stepper { display: inline-flex; }
.ds-sec.is-open .ds-card[data-in]:not([data-in="0"]):not([data-locked="1"]) .ds-add,
.ds-searching .ds-card[data-in]:not([data-in="0"]):not([data-locked="1"]) .ds-add { display: none; }

.ds-card.is-busy .ds-actions { opacity: .65; pointer-events: none; }
.ds-card .ds-view-order-btn { display: none !important; }
.ds-card .ds-soldout { font-size: 11px; font-weight: 700; color: var(--ds-muted); background: rgba(255,255,255,.95); padding: 4px 8px; border-radius: 999px; }

/* ---------- Thanh tab dưới đáy (như ShopeeFood) ---------- */
.ds-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; background: #fff; border-top: 1px solid var(--ds-line);
  padding: 4px 0 calc(4px + var(--ds-safe-b));
}
.ds-tab {
  flex: 1; position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 4px 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  color: var(--ds-muted) !important; font-family: inherit !important; font-size: 10.5px !important; font-weight: 500 !important; line-height: 1.2 !important;
  text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important; cursor: pointer;
}
.ds-tab span { text-transform: none !important; letter-spacing: 0 !important; font-size: 10.5px; font-weight: 500; }
.ds-tab svg { width: 22px; height: 22px; }
.ds-tab.is-on { color: var(--ds-accent) !important; }
.ds-tab__n {
  position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--ds-accent); color: #fff; font-size: 10.5px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.ds-tab__n.is-on { display: flex; }

/* Khoảng đệm cuối trang = tab + thanh giỏ → không còn chỗ bị che */
.ds-mo.ds-tabs-on { padding-bottom: calc(var(--ds-tabs-h) + var(--ds-bar-h) + 16px) !important; }

/* ---------- Thanh giỏ hàng nổi (trang thực đơn): [giỏ + tạm tính] | [Thanh toán] ---------- */
.ds-bar {
  position: fixed; z-index: 91;
  left: 8px; right: 8px; bottom: calc(var(--ds-tabs-h) + 8px);
  display: flex; align-items: stretch; overflow: hidden;
  border-radius: 10px; background: var(--ds-accent); color: #fff;
  box-shadow: 0 4px 16px rgba(215, 50, 17, .4);
  transform: translateY(0); opacity: 1;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease;
}
.ds-bar[data-count="0"] { transform: translateY(200%); opacity: 0; pointer-events: none; }
.ds-bar.is-bump { animation: dsBump .35s ease; }
@keyframes dsBump { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ds-bar__main {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; color: #fff !important; text-decoration: none !important;
}
.ds-bar__main:hover, .ds-bar__main:focus { color: #fff !important; }
.ds-bar__bag { position: relative; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ds-bar__bag svg { width: 20px; height: 20px; }
.ds-bar__count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: var(--ds-accent-d);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.ds-bar__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ds-bar__label { font-size: 12px; opacity: .95; }
.ds-bar__total, .ds-bar__total * { font-size: 15px; font-weight: 800; color: #fff; }
.ds-bar__hint { font-size: 11px; opacity: .9; }
/* Nút Thanh toán: nút trắng chữ cam, luôn thấy rõ */
.ds-bar__cta {
  flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 4px;
  margin: 6px 6px 6px 0; padding: 0 14px; height: 40px; border-radius: 8px;
  background: #fff; color: var(--ds-accent-d) !important; font-weight: 800; font-size: 14px;
  white-space: nowrap; text-decoration: none !important;
}
.ds-bar__cta:active { background: #ffe9e3; }

/* ---------- Thanh THANH TOÁN (trang giỏ hàng) ---------- */
.ds-paybar {
  position: fixed; left: 0; right: 0; bottom: var(--ds-tabs-h); z-index: 91;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: #fff; border-top: 1px solid var(--ds-line);
  box-shadow: 0 -4px 14px rgba(0,0,0,.06);
}
.ds-paybar[hidden] { display: none; }
.ds-paybar__sum { flex: 1; min-width: 0; line-height: 1.25; }
.ds-paybar__lbl { display: block; font-size: 12px; color: var(--ds-muted); }
.ds-paybar__total, .ds-paybar__total * { font-size: 17px; font-weight: 800; color: var(--ds-price); }
.ds-paybar__btn {
  flex: 0 0 auto; min-width: 140px; height: 44px; padding: 0 20px !important; margin: 0 !important;
  border: 0 !important; border-radius: 8px !important; background: var(--ds-accent) !important; color: #fff !important;
  font-size: 15px; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important;
}
.ds-paybar__btn:active { background: var(--ds-accent-d) !important; }

/* ---------- Thông báo nhỏ ---------- */
.ds-toast {
  position: fixed; left: 50%; bottom: calc(var(--ds-tabs-h) + var(--ds-bar-h) + 20px); z-index: 99999;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 8px;
  background: rgba(0, 0, 0, .82); color: #fff; font-size: 14px; line-height: 1.35; text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}
.ds-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Trang danh mục đơn: dải chip của theme ---------- */
.ds-mo #categories-nav {
  display: flex !important; gap: 8px; overflow-x: auto; padding: 10px 12px; margin: 0 !important;
  background: #fff; scrollbar-width: none; list-style: none;
}
.ds-mo #categories-nav::-webkit-scrollbar { display: none; }
.ds-mo #categories-nav li { flex: 0 0 auto; margin: 0; }
.ds-mo #categories-nav li a {
  background: #f5f5f5 !important; color: var(--ds-ink) !important; border: 0;
  border-radius: 999px !important; padding: 7px 14px !important; min-height: 0 !important; width: auto !important;
  font-size: 13px !important; font-weight: 600 !important; white-space: nowrap; text-transform: none !important;
}
.ds-mo #categories-nav li.current-cat a, .ds-mo #categories-nav li a.active { background: var(--ds-accent) !important; color: #fff !important; }

/* ==========================================================================
   Giỏ hàng
   ========================================================================== */
.ds-mo.woocommerce-cart { background: var(--ds-bg); }
.ds-mo.woocommerce-cart table.cart,
.ds-mo.woocommerce-cart table.cart tbody { display: block; border: 0 !important; background: none; }
.ds-mo.woocommerce-cart table.cart thead { display: none; }
.ds-mo.woocommerce-cart table.cart tr.cart_item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas: "img name rm" "img price price" "img qty sub";
  gap: 4px 12px; align-items: center;
  background: var(--ds-card); border-radius: 12px; padding: 12px; margin: 0 0 8px; position: relative; border: 0 !important;
}
.ds-mo.woocommerce-cart table.cart tr.cart_item td {
  display: block; border: 0 !important; padding: 0 !important; margin: 0 !important; text-align: left !important;
  width: auto !important; background: none !important; position: static !important; float: none !important; transform: none !important;
}
.ds-mo.woocommerce-cart table.cart tr.cart_item td::before { display: none !important; content: none !important; }
.ds-mo.woocommerce-cart td.product-thumbnail { grid-area: img; }
.ds-mo.woocommerce-cart td.product-thumbnail img { width: 76px !important; height: 76px !important; object-fit: cover; border-radius: 8px; display: block; }
.ds-mo.woocommerce-cart td.product-name { grid-area: name; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ds-ink); }
.ds-mo.woocommerce-cart td.product-name a { color: inherit; text-decoration: none; }
.ds-mo.woocommerce-cart td.product-remove { grid-area: rm; align-self: start; }
.ds-mo.woocommerce-cart td.product-remove a.remove {
  width: 28px; height: 28px; border-radius: 50%; line-height: 26px !important; text-align: center;
  background: #fff1ec; color: var(--ds-accent-d) !important; font-size: 18px; display: block;
}
.ds-mo.woocommerce-cart td.product-price { grid-area: price; color: var(--ds-muted); font-size: 12.5px; }
.ds-mo.woocommerce-cart td.product-quantity { grid-area: qty; min-width: 0; }
.ds-mo.woocommerce-cart td.product-subtotal { grid-area: sub; text-align: right !important; font-weight: 800; color: var(--ds-price) !important; font-size: 15px; white-space: nowrap; }
.ds-mo.woocommerce-cart td.product-subtotal * { color: var(--ds-price) !important; }

/* Bộ −/+ của giỏ: ẩn HẾT điều khiển số lượng của theme (tránh lặp 2 bộ), chỉ dùng bộ của mình */
.ds-mo.woocommerce-cart td.product-quantity.ds-q > *:not(.ds-qwrap) { display: none !important; }
.ds-qwrap { display: inline-flex; align-items: center; background: #f5f5f5; border-radius: 999px; padding: 2px; }
.ds-qval { min-width: 34px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-qbtn {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; min-width: 30px; border: 0; border-radius: 50% !important; padding: 0 !important; margin: 0;
  background: #fff; color: var(--ds-accent); font-size: 20px; line-height: 1; font-weight: 700; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15); touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center;
  text-transform: none;
}
.ds-qbtn:active { transform: scale(.92); }

/* Mã giảm giá 1 hàng, nút "Đặt thêm" dạng viền */
.ds-mo.woocommerce-cart td.actions { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 8px 0 0 !important; border: 0 !important; background: none !important; }
.ds-mo.woocommerce-cart td.actions .coupon { flex: 1 1 100%; display: flex; gap: 8px; margin: 0; padding: 0; float: none; width: auto; }
.ds-mo.woocommerce-cart .coupon input#coupon_code { flex: 1 1 auto; width: auto; min-width: 0; height: 42px; margin: 0; font-size: 16px; border-radius: 8px; border: 1px solid #e0e0e0; background: #fff; padding: 0 12px; }
.ds-mo.woocommerce-cart .coupon button[name="apply_coupon"] {
  flex: 0 0 auto; width: auto !important; height: 42px; margin: 0 !important; padding: 0 16px !important;
  border: 0 !important; border-radius: 8px !important; background: var(--ds-accent) !important; color: #fff !important;
  font-size: 14px; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important;
}
.ds-mo.woocommerce-cart td.actions a.continue-shopping {
  flex: 1 1 100%; width: auto !important; margin: 0 !important; text-align: center; height: 42px; line-height: 40px; padding: 0 !important;
  background: #fff !important; color: var(--ds-accent) !important; border: 1px solid var(--ds-accent) !important; border-radius: 8px !important;
  font-size: 14px; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important;
}
.ds-mo.woocommerce-cart .ds-auto-update button.update-cart,
.ds-mo.woocommerce-cart .ds-auto-update button[name="update_cart"] { display: none !important; }

.ds-mo.woocommerce-cart .cart_totals {
  background: var(--ds-card); border-radius: 12px; padding: 12px 14px; float: none; width: auto; margin-top: 10px;
}
.ds-mo.ds-pay-on.woocommerce-cart .wc-proceed-to-checkout { display: none !important; }  /* đã có thanh Thanh toán cố định */

/* ==========================================================================
   Thanh toán (checkout)
   ========================================================================== */
.ds-mo.woocommerce-checkout { background: var(--ds-bg); }
.ds-mo.woocommerce-checkout #customer_details,
.ds-mo.woocommerce-checkout #order_review {
  background: var(--ds-card); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.ds-mo.woocommerce-checkout #order_review_heading { font-size: 16px; font-weight: 700; margin: 14px 4px 8px; }
.ds-mo.woocommerce-checkout .form-row { margin-bottom: 12px; padding: 0; }
.ds-mo.woocommerce-checkout .form-row label { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ds-ink); }
.ds-mo.woocommerce-checkout .form-row input.input-text,
.ds-mo.woocommerce-checkout .form-row select,
.ds-mo.woocommerce-checkout .form-row textarea,
.ds-mo.woocommerce-checkout .select2-container .select2-selection--single {
  min-height: 46px; border-radius: 8px !important; border: 1px solid #e0e0e0; font-size: 16px; padding: 10px 12px;
}
.ds-mo.woocommerce-checkout #place_order {
  width: 100%; min-height: 50px; border: 0; border-radius: 8px !important;
  background: var(--ds-accent); color: #fff; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.ds-mo.woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; }
.ds-mo.woocommerce-checkout #payment ul.payment_methods li {
  list-style: none; border: 1px solid var(--ds-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff;
}

/* iOS: ô nhập >= 16px để không tự phóng to */
.ds-mo input[type="text"], .ds-mo input[type="tel"], .ds-mo input[type="email"],
.ds-mo input[type="search"], .ds-mo input[type="number"], .ds-mo select, .ds-mo textarea { font-size: 16px; }

/* ==========================================================================
   Máy tính (>= 769px): cùng phong cách, lưới nhiều cột, không cần tab/thanh nổi
   ========================================================================== */
@media (min-width: 769px) {
  .ds-mo { --ds-row-w: 180px; }
  .ds-mo .ds-sec { max-width: 1100px; margin: 0 auto 14px; }
  .ds-mo ul.product-list-images,
  .ds-mo .ds-sec.is-open ul.product-list-images {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 14px; overflow: visible; padding: 8px 16px 16px;
  }
  .ds-mo ul.product-list-images > li.ds-card { flex: none; width: auto !important; }
  .ds-mo .ds-card__title { font-size: 14px !important; }
  .ds-mo .ds-card__price { font-size: 15px; }
  .ds-mo .ds-card__desc { display: -webkit-box; margin: 0 0 4px; font-size: 12px; color: var(--ds-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ds-sec__more { display: none !important; }
  .ds-mo .ds-sec .cat-menu-heading { padding-right: 14px !important; }
  .ds-tabs { display: none !important; }
  .ds-mo.ds-tabs-on { padding-bottom: 0 !important; }
  .ds-paybar { bottom: 0; }
  .ds-mo.ds-pay-on { padding-bottom: 80px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-bar, .ds-toast, .ds-more::before, .ds-card .ds-add, .ds-card .ds-plus, .ds-card .ds-minus { transition: none !important; animation: none !important; }
}

/* ---------- Trang chủ đặt món: ẩn các ô danh mục lớn cũ, ghi chú cuối trang ---------- */
.ds-home ul.products li.product-category, .ds-home .woocommerce-product-categories,
.ds-home .product-categories, .ds-home .category-grid { display: none !important; }
.ds-sec__more { text-decoration: none !important; }
.ds-home-note { margin: 4px 12px 8px; text-align: center; font-size: 12px; font-style: italic; color: var(--ds-muted); }

/* Thanh Đặt hàng (trang thanh toán): luôn chừa chỗ cuối trang để không che nút gốc */
.ds-mo.woocommerce-checkout.ds-pay-on { padding-bottom: calc(var(--ds-tabs-h) + var(--ds-bar-h) + 24px) !important; }
button.ds-paybar__btn { cursor: pointer; font-family: inherit; }

/* ---------- Hiệu năng: chỉ vẽ khung đang gần màn hình; mốc tải dần ---------- */
.ds-mo .ds-sec { content-visibility: auto; contain-intrinsic-size: auto 190px; }
/* Khung chờ khi các danh mục phía dưới đang tải dần */
.ds-more { min-height: 1px; }
.ds-more:not(:empty) { display: none; }
.ds-more::before {
  content: ""; display: block; height: 190px; margin: 0 6px 8px; border-radius: 12px;
  background: linear-gradient(90deg, #fff 0%, #f3f3f3 50%, #fff 100%); background-size: 200% 100%;
  animation: dsSkel 1.2s linear infinite;
}
@keyframes dsSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ==========================================================================
   v4 – Khung danh mục kiểu ShopeeFood: mỗi danh mục 1 dải màu riêng
   (cam → xanh dương → xanh lá → tím → hồng → xanh ngọc → vàng, rồi lặp lại)
   ========================================================================== */
.ds-mo .ds-sec { --sc: #ff5a36; --sc2: #ff9a5c; }
.ds-mo .ds-sec:nth-of-type(7n+2) { --sc: #2f7bff; --sc2: #6fc4ff; }
.ds-mo .ds-sec:nth-of-type(7n+3) { --sc: #12b886; --sc2: #6fe3b0; }
.ds-mo .ds-sec:nth-of-type(7n+4) { --sc: #7a5cff; --sc2: #bda2ff; }
.ds-mo .ds-sec:nth-of-type(7n+5) { --sc: #ff4f84; --sc2: #ff9fbd; }
.ds-mo .ds-sec:nth-of-type(7n+6) { --sc: #0eb3bd; --sc2: #62e4d8; }
.ds-mo .ds-sec:nth-of-type(7n+7) { --sc: #ff9a14; --sc2: #ffd34f; }

/* Dải tiêu đề kiểu ShopeeFood (bê nguyên): khối màu danh mục phía trên, tên + nhãn vàng bên trái,
   "tab" trắng bên phải có đường cong chéo chứa biểu tượng + "Xem thêm ›"; hàng món đè lên dải màu */
.ds-mo .ds-sec--hd > .cat-menu-heading {
  display: flex !important; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px;
  min-height: 56px !important; padding: 10px 46% 18px 14px !important; overflow: hidden;
  /* nền sáng: dải chuyển màu + vệt sáng mềm ở góc trái trên */
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(105deg, var(--sc) 0%, var(--sc2) 100%) !important;
}
.ds-mo .ds-sec--hd > .cat-menu-heading::before { content: none !important; }
/* tab trắng: đường cong chữ S mềm — bắt đầu sớm ở mép trên rồi thoải xuống phẳng ở bên phải */
.ds-mo .ds-sec--hd > .cat-menu-heading::after {
  content: ""; position: absolute; top: 0; right: 0; height: 44px; width: 58%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C25 0 21 100 56 100H100V0Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}
.ds-mo .ds-sec--hd > .cat-menu-heading .section-title,
.ds-mo .ds-sec--hd > .cat-menu-heading h1,
.ds-mo .ds-sec--hd > .cat-menu-heading h2,
.ds-mo .ds-sec--hd > .cat-menu-heading h3 {
  color: #fff !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: .1px !important;
  position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.16);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Nhãn vàng dưới tên danh mục */
.ds-mo .ds-sec--hd > .cat-menu-heading .ds-home-head__tag {
  position: relative; z-index: 1; display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--sc); font-size: 10.5px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
}
/* Biểu tượng danh mục nằm trên tab trắng */
.ds-mo .ds-sec--hd > .cat-menu-heading img.ds-home-head__ico {
  display: block !important; position: absolute; z-index: 1; right: 84px; top: 11px;
  width: 22px !important; height: 22px !important; border-radius: 50%; object-fit: cover; margin: 0 !important;
  box-shadow: 0 0 0 1.5px #fff, 0 1px 4px rgba(0,0,0,.18);
}
/* "Xem thêm ›" xám trên tab trắng */
.ds-mo .ds-sec--hd .ds-sec__more {
  z-index: 2; top: 22px; right: 8px; transform: translateY(-50%);
  background: none !important; color: #8c8c8c !important;
  border-radius: 0 !important; padding: 5px 2px !important; font-size: 12.5px !important; font-weight: 500 !important;
}
.ds-mo .ds-sec.ds-sec--hd > .center { margin-top: -16px !important; position: relative; z-index: 1; }
.ds-mo .ds-sec ul.product-list-images { padding-top: 10px; }

/* Nút + / bộ −/+ theo màu danh mục */
.ds-mo .ds-sec .ds-card .ds-add,
.ds-mo .ds-sec .ds-card .ds-stepper .ds-plus { background: var(--sc); }
.ds-mo .ds-sec .ds-card .ds-add:hover,
.ds-mo .ds-sec .ds-card .ds-plus:hover { background: var(--sc); filter: brightness(.92); }
.ds-mo .ds-sec .ds-card .ds-stepper .ds-minus { color: var(--sc); border-color: var(--sc); }
.ds-mo .ds-sec .ds-card[data-in]:not([data-in="0"]) .ds-add .ds-add__n { color: var(--sc); }
.ds-mo .ds-sec .ds-card .ds-add { box-shadow: 0 2px 6px rgba(0,0,0,.25); }

.ds-mo .ds-sec .ds-card[data-in]:not([data-in="0"]) .ds-add { background: #fff; }

/* ---------- Máy tính: nút giỏ hàng + Thanh toán nổi ở góc phải dưới, luôn hiện (kể cả giỏ trống) ---------- */
@media (min-width: 769px) {
  .ds-bar, .ds-bar[data-count="0"] {
    left: auto; right: 24px; bottom: 24px; width: 400px; max-width: calc(100vw - 48px);
    transform: none; opacity: 1; pointer-events: auto;
  }
  .ds-bar[data-count="0"] { background: #9a9a9a; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
  .ds-bar[data-count="0"] .ds-bar__cta { color: #777 !important; }
  .ds-mo.ds-home, .ds-mo.woocommerce-shop, .ds-mo.tax-product_cat, .ds-mo.single-product { padding-bottom: 96px !important; }
}

/* Menu chính của theme mở (JS tự nhận biết: có lớp phủ cố định chiếm gần hết màn hình) → ẩn thanh tìm, thanh giỏ, tab của mình để menu luôn nằm trên cùng */
body.ds-menu-open .ds-nav,
body.ds-menu-open .ds-tabs,
body.ds-menu-open .ds-bar,
body.ds-menu-open .ds-paybar { visibility: hidden !important; }

/* v7 – không viền: bỏ viền/bóng quanh icon danh mục, khung và ảnh */
.ds-cat.is-on .ds-cat__name { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ds-mo .ds-sec { box-shadow: none !important; border: 0 !important; }

/* Màu theo thứ tự danh mục (trang danh mục dùng lớp ds-c1…ds-c7 để trùng màu với trang Đặt hàng online) */
.ds-mo .ds-sec.ds-c1 { --sc: #ff5a36; --sc2: #ff9a5c; }
.ds-mo .ds-sec.ds-c2 { --sc: #2f7bff; --sc2: #6fc4ff; }
.ds-mo .ds-sec.ds-c3 { --sc: #12b886; --sc2: #6fe3b0; }
.ds-mo .ds-sec.ds-c4 { --sc: #7a5cff; --sc2: #bda2ff; }
.ds-mo .ds-sec.ds-c5 { --sc: #ff4f84; --sc2: #ff9fbd; }
.ds-mo .ds-sec.ds-c6 { --sc: #0eb3bd; --sc2: #62e4d8; }
.ds-mo .ds-sec.ds-c7 { --sc: #ff9a14; --sc2: #ffd34f; }
.ds-sec__cnt::after { content: none !important; }
.ds-mo .ds-sec--flat { margin-top: 0; }
.ds-mo .ds-sec--flat:not(.ds-sec--hd) ul.product-list-images { padding-top: 12px; }

/* v9 – nhẹ nhàng, chuyên nghiệp: bo góc mềm, chữ gọn, bóng rất nhẹ cho ảnh món */
.ds-mo .ds-sec { border-radius: 16px; box-shadow: 0 6px 16px -10px rgba(40,20,10,.35) !important; }
.ds-card__pic { border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ds-card__off { background: rgba(255, 241, 166, .96); font-weight: 700; }
.ds-mo .ds-sec .ds-card .ds-add { box-shadow: 0 1px 4px rgba(0,0,0,.2); }


/* ==========================================================================
   v14b – 1 thanh duy nhất ở đáy (giỏ + thanh toán) cùng kiểu, mượt hơn
   ========================================================================== */
/* Nút gốc của theme bị thay bằng thanh của mình: ẩn nhưng vẫn bấm được bằng JS (giữ nguyên xác thực/AJAX của WooCommerce) */
.ds-mo.ds-pay-on.woocommerce-checkout #place_order,
.ds-mo.ds-pay-on #place_order {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important;
  border: 0 !important; opacity: 0 !important; pointer-events: none !important;
}
.ds-native-hide { display: none !important; }

/* Cùng một kiểu cho cả giỏ hàng lẫn thanh toán: tổng bên trái, nút cam bên phải */
.ds-paybar {
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  transform: translateZ(0); will-change: transform; contain: layout style;
}
.ds-paybar__lbl { font-size: 12px; color: var(--ds-muted); }
.ds-paybar__btn {
  min-width: 150px; height: 46px; border-radius: 10px !important; font-size: 15px; font-weight: 700;
  position: relative; overflow: hidden; cursor: pointer; font-family: inherit;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
  box-shadow: 0 2px 8px rgba(215, 50, 17, .3);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, opacity .15s ease;
}
.ds-paybar__btn:active { transform: scale(.97); box-shadow: 0 1px 3px rgba(215, 50, 17, .3); }
.ds-paybar__btn.is-loading { pointer-events: none; opacity: .85; color: transparent !important; }
.ds-paybar__btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dsSpin .7s linear infinite;
}
@keyframes dsSpin { to { transform: rotate(360deg); } }
.ds-paybar__total { transition: opacity .15s ease; }
.ds-paybar.is-updating .ds-paybar__total { opacity: .45; }

/* Nút ở thanh giỏ trang thực đơn + các nút −/+ cũng phản hồi mượt */
.ds-bar__cta, .ds-bar__main, .ds-card .ds-add, .ds-card .ds-plus, .ds-card .ds-minus, .ds-qbtn {
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ds-bar__cta { transition: transform .12s ease, background-color .15s ease; }
.ds-bar__cta:active { transform: scale(.96); }
.ds-bar { will-change: transform; }

/* Tải mượt: ảnh giữ chỗ, không nhảy layout */
.ds-mo .ds-card img { content-visibility: auto; background: #f2f2f2; }
.ds-mo.ds-pay-on.woocommerce-cart { padding-bottom: calc(var(--ds-tabs-h) + var(--ds-bar-h) + 24px) !important; }


/* v14e – trang giỏ hàng / thanh toán: bỏ thanh tab menu, thanh Tổng + nút nằm sát đáy, không còn chồng nhau */
body.ds-pay-on .ds-tabs, body.ds-pay-on .ds-bar { display: none !important; }
body.ds-pay-on { --ds-tabs-h: 0px !important; }
body.ds-pay-on .ds-paybar { bottom: 0 !important; z-index: 100000; }
body.ds-pay-on .ds-paybar__sum { order: 0; }
body.ds-pay-on .ds-paybar__btn { order: 1; flex: 0 0 auto; width: auto; }
.ds-mo.ds-pay-on { padding-bottom: calc(var(--ds-bar-h) + 24px) !important; }


/* v14g – áp dụng từ lần vẽ đầu (class do máy chủ gắn), không chờ JS */
body.ds-pay-page .ds-tabs, body.ds-pay-page .ds-bar { display: none !important; }
body.ds-pay-page { --ds-tabs-h: 0px; --ds-bar-h: 72px; }
body.ds-pay-page #place_order,
body.ds-pay-page.woocommerce-checkout #place_order {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important;
  border: 0 !important; opacity: 0 !important; pointer-events: none !important;
}
body.ds-pay-page .wc-proceed-to-checkout, body.ds-pay-page a.checkout-button { display: none !important; }
body.ds-pay-page .ds-paybar { bottom: 0 !important; left: 0; right: 0; position: fixed; z-index: 100000; }


/* v14h – KHOÁ CỨNG: thanh Đặt món ở giỏ/thanh toán luôn hiện, không ẩn, không trượt, không nhảy */
body.ds-pay-page .ds-paybar, body.ds-pay-page .ds-paybar[hidden], body.ds-pay-page.ds-menu-open .ds-paybar {
  display: flex !important; visibility: visible !important; opacity: 1 !important;
  transform: none !important; transition: none !important; animation: none !important; will-change: auto !important;
  position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 2147483000 !important;
}
body.ds-pay-page .ds-paybar__total, body.ds-pay-page .ds-paybar.is-updating .ds-paybar__total { transition: none !important; opacity: 1 !important; }
body.ds-pay-page .ds-paybar__btn { min-width: 150px; }


/* v14o – "Đặt thêm món": nút lớn, hàng riêng trên cùng của thanh đáy */
.ds-paybar { flex-wrap: wrap; }
.ds-paybar__more {
  order: -1; flex: 0 0 100%; box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; gap: 6px;
  height: 42px; margin: 0 0 2px !important; border: 1.5px solid var(--ds-accent); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 700; line-height: 1; color: var(--ds-accent) !important; text-decoration: none !important;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .15s ease;
}
.ds-paybar__more:active { transform: scale(.98); background: #fff3ef; }
body.ds-pay-page.ds-mo { padding-bottom: calc(var(--ds-bar-h) + 28px) !important; }

/* v14p – nút "Đặt thêm món" dài, mỏng, chữ bên trái; đường kẻ ngăn giữa hàng nút và hàng Tổng + Đặt món */
.ds-paybar__more {
  order: -2; justify-content: flex-start !important; height: 38px !important; padding: 0 14px !important; margin: 0 !important;
  font-size: 14px !important;
}
.ds-paybar::before {
  content: ""; order: -1; flex: 0 0 auto; width: calc(100% + 24px); height: 1px; margin: 2px -12px 0; background: var(--ds-line, #eee);
}
.ds-paybar { row-gap: 8px; }

/* v14q – "Đặt thêm món": chỉ rộng khoảng 1/3, nằm góc trái */
.ds-paybar .ds-paybar__more {
  flex: 0 0 auto !important; width: 34% !important; min-width: 128px; max-width: 220px;
  padding: 0 10px !important; font-size: 13px !important; white-space: nowrap; justify-content: center !important;
  margin-right: auto !important;
}

/* v14r – bấm ảnh / tên món → mở trang chi tiết */
.ds-card__link, .ds-card__tlink { display: block; color: inherit !important; text-decoration: none !important; -webkit-tap-highlight-color: rgba(0,0,0,.06); touch-action: manipulation; }
.ds-card__tlink { display: inline; font: inherit; }
.ds-card__link img { display: block; }
.ds-card__tlink:active { opacity: .65; }

/* ==========================================================================
   v14s – Popup chi tiết món: giá bên trái, nút thêm vào giỏ bên phải
   ========================================================================== */
body.ds-pop-lock { overflow: hidden; }
.ds-pop { position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: flex-end; justify-content: center; }
.ds-pop[hidden] { display: none; }
.ds-pop__bg { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .2s ease; }
.ds-pop.is-open .ds-pop__bg { background: rgba(0,0,0,.5); }
.ds-pop__sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 18px 18px 0 0; overflow: hidden;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.3,1);
}
.ds-pop.is-open .ds-pop__sheet { transform: translateY(0); }
@media (min-width: 769px) { .ds-pop { align-items: center; } .ds-pop__sheet { border-radius: 18px; max-height: 86vh; } }
.ds-pop__x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; touch-action: manipulation;
}
.ds-pop__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
.ds-pop__pic { width: 100%; aspect-ratio: 4 / 3; background: #f2f2f2; }
.ds-pop__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-pop__title { margin: 14px 16px 6px; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--ds-ink, #222); }
.ds-pop__desc { margin: 0 16px 16px; font-size: 14px; line-height: 1.55; color: var(--ds-muted, #666); white-space: pre-line; }
.ds-pop__desc:empty { display: none; }
.ds-pop__foot {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ds-line, #eee); background: #fff;
}
.ds-pop__price, .ds-pop__price * { font-size: 20px; font-weight: 800; color: var(--ds-price, #ee4d2d); line-height: 1.2; }
.ds-pop__price .price { display: flex; flex-direction: column; margin: 0; }
.ds-pop__price del, .ds-pop__price del * { font-size: 13px; font-weight: 500; color: #999; }
.ds-pop__act { flex: 0 0 auto; }
.ds-pop__add, .ds-pop__link {
  min-width: 160px; height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ds-accent, #ee4d2d); color: #fff !important;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none !important; box-shadow: 0 2px 8px rgba(215,50,17,.3); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.ds-pop__add:active { transform: scale(.97); }
.ds-pop__step { display: inline-flex; align-items: center; gap: 14px; height: 46px; }
.ds-pop__step b { min-width: 24px; text-align: center; font-size: 18px; color: var(--ds-ink, #222); }
.ds-pop__minus, .ds-pop__plus {
  width: 42px; height: 42px; border-radius: 50%; font-size: 24px; line-height: 1; padding: 0; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ds-pop__plus { border: 0; background: var(--ds-accent, #ee4d2d); color: #fff; }
.ds-pop__minus { border: 1.5px solid var(--ds-accent, #ee4d2d); background: #fff; color: var(--ds-accent, #ee4d2d); }
.ds-pop__sold { color: #999; font-weight: 700; }

/* v14t – popup nhỏ gọn: rộng ~90%, căn giữa đều 2 bên; nút ↵ nhỏ kiểu phím Enter cạnh bộ số lượng */
.ds-pop { align-items: center !important; }
.ds-pop__sheet { width: 90% !important; max-width: 480px !important; max-height: 82vh !important; border-radius: 18px !important; margin: 0 auto; box-shadow: 0 12px 40px rgba(0,0,0,.28); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.3,1), opacity .2s ease; }
.ds-pop.is-open .ds-pop__sheet { transform: none; opacity: 1; }
.ds-pop__pic { aspect-ratio: 16 / 10; }
.ds-pop__title { font-size: 17px; margin: 12px 14px 4px; }
.ds-pop__desc { margin: 0 14px 12px; font-size: 13.5px; }
.ds-pop__foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
.ds-pop__price, .ds-pop__price * { font-size: 18px; }
.ds-pop__act { display: flex; align-items: center; gap: 8px; }
.ds-pop__add, .ds-pop__link { min-width: 0; height: 42px; padding: 0 16px; font-size: 14px; }
.ds-pop__step { gap: 8px; height: 40px; }
.ds-pop__step b { min-width: 18px; font-size: 16px; }
.ds-pop__minus, .ds-pop__plus { width: 34px; height: 34px; font-size: 20px; }
.ds-pop__enter {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px; margin: 0;
  border: 1px solid #cfcfcf; border-bottom-width: 3px; border-radius: 7px; background: #f7f7f7; color: #444;
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ds-pop__enter:active { transform: translateY(2px); border-bottom-width: 1px; }
.ds-pop__x { width: 32px; height: 32px; font-size: 22px; }
