/* Custom styles that aren't managed by Tailwind */
html {
    scroll-behavior: smooth;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(227, 24, 55, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(227, 24, 55, 0.8);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Custom list items inside WooCommerce Combos short description */
.combo-description-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.combo-description-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: rgb(156 163 175);
    /* text-gray-400 */
}

.combo-description-list li::before {
    content: "\f00c";
    /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #FFC700;
    /* pizzaYellow */
}

/* ============================================================
   WOOCOMMERCE DARK THEME OVERRIDES
   ============================================================ */

/* Ordering / Sorting select (white text on white bg fix) */
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
    background-color: #1a1a1a !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 1.5rem 0.5rem 0.875rem !important;
    font-size: 0.813rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.woocommerce-ordering select option {
    background-color: #1a1a1a !important;
    color: #e5e7eb !important;
}

.woocommerce-ordering select:focus {
    outline: none !important;
    border-color: #FFC700 !important;
    box-shadow: 0 0 0 2px rgba(255, 199, 0, 0.2) !important;
}

/* Result count text */
.woocommerce-result-count {
    color: #9ca3af !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background-color: #1a1a1a !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
    border-radius: 0.5rem !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #FFC700 !important;
    color: #111 !important;
    border-color: #FFC700 !important;
}

/* Review form wrapper */
#review_form_wrapper #respond {
    background: #1a1a1a !important;
    border: 1px solid #374151 !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem !important;
}

#review_form_wrapper #respond h3,
#review_form_wrapper #respond #reply-title {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

#review_form_wrapper .comment-form-comment label,
#review_form_wrapper .comment-form-author label,
#review_form_wrapper .comment-form-email label,
#review_form_wrapper p.comment-notes {
    color: #9ca3af !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    margin-bottom: 0.4rem !important;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea,
#review_form_wrapper #comment {
    background-color: #111 !important;
    border: 1px solid #374151 !important;
    color: #fff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

#review_form_wrapper input[type="text"]:focus,
#review_form_wrapper input[type="email"]:focus,
#review_form_wrapper textarea:focus {
    border-color: #FFC700 !important;
    outline: none !important;
}

#review_form_wrapper input[type="submit"],
#review_form_wrapper .submit {
    background-color: #FFC700 !important;
    color: #111 !important;
    font-weight: 900 !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: background 0.2s !important;
    font-size: 0.875rem !important;
}

#review_form_wrapper input[type="submit"]:hover {
    background-color: #eab308 !important;
}

/* Star rating in review form - Natural left-to-right alignment, interactive highlight controlled via JS classes */
#respond .stars span {
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
}

#respond .stars a {
    position: relative;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    text-indent: -9999px;
    color: transparent !important;
    margin-right: 0.25rem;
}

#respond .stars a::before {
    content: "\f005" !important;
    /* FontAwesome star icon */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute;
    top: 0;
    left: 0;
    text-indent: 0;
    color: #ffffff !important;
    /* Inactive star color is white */
    font-size: 1.25rem;
}

/* Color stars based on selected value */
#respond .stars.selected a::before {
    color: #FFC700 !important;
}
/* Turn stars after the selected one to white, only when not hovering */
#respond .stars.selected.val-1:not(:hover) a.star-1 ~ a::before,
#respond .stars.selected.val-2:not(:hover) a.star-2 ~ a::before,
#respond .stars.selected.val-3:not(:hover) a.star-3 ~ a::before,
#respond .stars.selected.val-4:not(:hover) a.star-4 ~ a::before,
#respond .stars.selected.val-5:not(:hover) a.star-5 ~ a::before {
    color: #ffffff !important;
}

/* Color stars on hover (hover cascade) */
#respond .stars:hover a::before {
    color: #FFC700 !important;
}
#respond .stars a:hover ~ a::before {
    color: #ffffff !important;
}

/* Existing rated stars display in comments/reviews */
.woocommerce .star-rating,
.star-rating {
    font-size: 0.875rem !important;
    color: #FFC700 !important;
}

.commentlist .star-rating {
    float: right !important;
}

/* WooCommerce notices dark theme */
.woocommerce-info,
.woocommerce-message {
    background-color: #1a1a1a !important;
    color: #d1d5db !important;
    border-top-color: #FFC700 !important;
}

.woocommerce-error {
    background-color: #1a1a1a !important;
    color: #f87171 !important;
    border-top-color: #ef4444 !important;
}

/* Desktop 50/50 Layout for Single Product page */
@media (min-width: 1024px) {
    .sp-layout-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
        align-items: start !important;
    }
}

/* ============================================================
   BLOG: SINGLE POST CONTENT TYPOGRAPHY
   ============================================================ */

.pcg-entry-content {
    color: #d1d5db; /* text-gray-300 */
    font-size: 0.9375rem;
    line-height: 1.8;
}

.pcg-entry-content > * + * {
    margin-top: 1.25rem;
}

.pcg-entry-content h1,
.pcg-entry-content h2,
.pcg-entry-content h3,
.pcg-entry-content h4,
.pcg-entry-content h5,
.pcg-entry-content h6 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 2rem;
}

.pcg-entry-content h2 {
    font-size: 1.375rem;
    padding-left: 0.75rem;
    border-left: 3px solid #FFC700;
}

.pcg-entry-content h3 {
    font-size: 1.125rem;
}

.pcg-entry-content a {
    color: #FFC700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pcg-entry-content a:hover {
    color: #eab308;
}

.pcg-entry-content strong,
.pcg-entry-content b {
    color: #ffffff;
    font-weight: 700;
}

.pcg-entry-content ul,
.pcg-entry-content ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.pcg-entry-content ul {
    list-style: disc;
}

.pcg-entry-content ol {
    list-style: decimal;
}

.pcg-entry-content li {
    margin-bottom: 0.5rem;
}

.pcg-entry-content li::marker {
    color: #FFC700;
}

.pcg-entry-content blockquote {
    border-left: 3px solid #FFC700;
    background: rgba(255, 199, 0, 0.06);
    padding: 1rem 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #e5e7eb;
    font-style: italic;
}

.pcg-entry-content img {
    border-radius: 1rem;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.pcg-entry-content figcaption {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.pcg-entry-content hr {
    border: 0;
    border-top: 1px solid #1f2937;
    margin: 2rem 0;
}

.pcg-entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.pcg-entry-content table th,
.pcg-entry-content table td {
    border: 1px solid #1f2937;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.pcg-entry-content table th {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.pcg-entry-content code {
    background: #111;
    border: 1px solid #1f2937;
    color: #FFC700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.8125rem;
}

.pcg-entry-content pre {
    background: #111;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
}

.pcg-entry-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.pcg-page-links a,
.pcg-page-links span {
    display: inline-block;
}

/* ============================================================
   BLOG: PAGINATION (category.php / archive.php)
   ============================================================ */

.pcg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    margin: 0 0.2rem;
    border-radius: 0.6rem;
    background-color: #1a1a1a;
    color: #9ca3af;
    border: 1px solid #374151;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}

.pcg-pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

.pcg-pagination .page-numbers.current,
.pcg-pagination a.page-numbers:hover {
    background-color: #FFC700;
    color: #111;
    border-color: #FFC700;
}

/* ============================================================
   BLOG: COMMENTS (dark theme)
   ============================================================ */

.pcg-entry-content ~ #comments,
#comments {
    background: #15171b;
    border: 1px solid #1f2937;
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: #d1d5db;
}

#comments .comments-title,
#comments h2,
#comments h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

#comments ol.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#comments .comment-body {
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

#comments .comment-author .fn {
    color: #ffffff;
    font-weight: 700;
    font-style: normal;
}

#comments .comment-metadata {
    color: #6b7280;
    font-size: 0.7rem;
}

#comments .comment-metadata a {
    color: inherit;
}

#comments .comment-reply-link {
    color: #FFC700;
    font-weight: 700;
    font-size: 0.7rem;
    text-decoration: none;
}

#comments .children {
    list-style: none;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid #374151;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    background-color: #111 !important;
    border: 1px solid #374151 !important;
    color: #fff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

#respond input:focus,
#respond textarea:focus {
    border-color: #FFC700 !important;
    outline: none !important;
}

#respond label {
    color: #9ca3af !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.4rem;
}

#respond .form-submit input[type="submit"] {
    background-color: #FFC700 !important;
    color: #111 !important;
    font-weight: 900 !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    cursor: pointer !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem !important;
}

#respond .form-submit input[type="submit"]:hover {
    background-color: #eab308 !important;
}
/* ============================================================
   SINGLE PRODUCT — VARIATION SELECTOR (variable products)
   ============================================================ */
.sp-attr-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.9rem;
    background-color: #15171b;
    /* pizzaDarkGray */
    border: 2px solid #262a31;
    /* gray-800, slightly lighter for contrast against dark bg */
    color: #9ca3af;
    /* gray-400 */
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.sp-attr-option:hover {
    border-color: rgba(255, 199, 0, 0.5);
    color: #fff;
}

.sp-attr-option:active {
    transform: scale(0.95);
}

.sp-attr-option.is-selected {
    background-color: #FFC700;
    /* pizzaYellow, giải pháp nền đặc để nổi bật rõ trạng thái đã chọn */
    border-color: #FFC700;
    color: #111111;
    /* pizzaDark */
    box-shadow: 0 4px 14px rgba(255, 199, 0, 0.25);
    transform: translateY(-1px);
}

.sp-attr-option.is-selected:hover {
    color: #111111;
}

.sp-attr-selected {
    font-size: 0.7rem;
}

/* ==========================================================================
   NHÃN "HẾT HÀNG" (out of stock) — thêm ở phiên bản 1.4.0
   In ra bằng pizzachuangu_out_of_stock_banner() / _button()
   trong inc/woocommerce-custom.php để mọi trang hiển thị giống hệt nhau.
   ========================================================================== */

.oos-wrap {
    position: relative;
}

/* Nút "HẾT HÀNG" thay cho nút đặt hàng */
.oos-btn {
    background-color: #1f2937;
    /* gray-800 */
    color: #9ca3af;
    /* gray-400 */
    font-weight: 700;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    border-radius: 0.75rem;
}

/* ==========================================================================
   KHOÁ KHUNG LƯỚT TRÊN ĐIỆN THOẠI — thêm ở phiên bản 1.5.0 (01/09/2026)
   Làm giống web Xóm Mới Garden, theo yêu cầu của Sếp.

   VẤN ĐỀ: Chrome và Safari trên điện thoại TỰ GIẤU thanh địa chỉ và thanh
   điều hướng khi thấy TRANG đang cuộn, rồi trả lại khi cuộn ngược. Mỗi lần
   như vậy vùng nhìn thấy đổi chiều cao NGAY GIỮA CHỪNG và cả trang bày lại —
   mắt đọc thành giật, thành "đổi giao diện".

   ⚠️ Máy tính KHÔNG có hai thanh đó, nên mọi phép đo trên máy tính — kể cả
   giả lập iPhone — đều mù hoàn toàn với lỗi này. Đừng đo trên máy rồi kết
   luận là không sao.

   CÁCH CHỮA: đừng cuộn ở cấp tài liệu nữa. Dựng một khung cao đúng bằng màn
   hình, cho nội dung cuộn BÊN TRONG khung. Trình duyệt không thấy trang cuộn
   thì không giấu thanh, chiều cao màn hình đứng yên suốt.

   Chọn chính <body> làm khung thay vì bọc thêm một thẻ mới: mọi thứ đang
   `sticky` (thanh đầu trang) vẫn dính đúng như cũ, mọi thứ đang `fixed`
   (thanh dưới, giỏ hàng, thông báo) vẫn neo vào màn hình như cũ — không phải
   sửa một dòng bố cục nào.

   CHỈ ÁP DỤNG CHO THIẾT BỊ CẢM ỨNG (`hover: none` + `pointer: coarse` =
   điện thoại, máy tính bảng). Máy tính để bàn không có lỗi này nên giữ nguyên.

   ⚠️ CÁI MẤT, phải biết trước: thanh trình duyệt chiếm chỗ vĩnh viễn
   (~120 điểm), và MẤT thao tác kéo-xuống-để-tải-lại trang.
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {

    html.khoa-khung {
        height: 100%;
        overflow: hidden;
    }

    html.khoa-khung > body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        /* Thiếu dòng này thì vuốt quá đà sẽ lan ra ngoài, trình duyệt lại coi
           như trang đang cuộn và giấu thanh — hỏng đúng thứ vừa chữa. */
        overscroll-behavior-y: contain;

        /* `scroll-behavior: smooth` khai ở <html> đầu file này không còn tác
           dụng khi hộp cuộn là <body>, nên khai lại đúng chỗ. */
        scroll-behavior: smooth;
    }

    /* iOS được phép tự phóng to chữ khi xoay ngang nếu không khoá — cùng một
       trang hiện ra hai cỡ chữ khác nhau. */
    html.khoa-khung {
        -webkit-text-size-adjust: 100%;
    }
}

/* --------------------------------------------------------------------------
   ĐỆM DƯỚI CHO THANH ĐIỀU HƯỚNG ĐIỆN THOẠI — thêm ở phiên bản 1.5.0

   Thanh điều hướng dưới cùng (Trang Chủ / Danh Mục / Đơn Hàng) là `fixed
   bottom-0`, tức nó NỔI ĐÈ lên nội dung chứ không chiếm chỗ. Đo ngày
   01/09/2026: thanh cao 68 điểm và che mất đúng 68 điểm cuối trang — chính
   là dòng "Phiên bản x.y.z" dưới chân trang. Lỗi này có từ trước, không phải
   do khoá khung; đo trên web thật cũng bị y hệt.

   Đệm đúng bằng chiều cao thanh, cộng thêm vùng an toàn của iPhone (vạch
   gạch ngang dưới màn). Chỉ dưới 768 điểm, khớp đúng lớp `md:hidden` mà
   thanh đang dùng để tự ẩn trên máy tính.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================================================
   Ô NHẬP KHÔNG LÀM iPHONE PHÓNG TO — thêm ở phiên bản 1.5.1 (01/09/2026)

   VẤN ĐỀ Sếp báo: bấm vào ô điền thông tin mua hàng trên điện thoại thì trang
   tự phóng to, sau đó không thu lại, khách phải tự vuốt thu nhỏ mới bấm tiếp
   được nút đặt hàng.

   NGUYÊN NHÂN (đo trên web thật 01/09/2026, KHÔNG phải đoán): Safari trên iOS
   TỰ PHÓNG TO trang mỗi khi con trỏ nhảy vào ô nhập có cỡ chữ NHỎ HƠN 16 điểm
   — nó cho là chữ quá bé nên "giúp" người dùng. Đo được toàn bộ ô nhập của web
   đều dưới ngưỡng:
       Tên / Điện thoại / Địa chỉ / Ghi chú giao hàng ....... 14 điểm
       Ô email đăng ký khuyến mãi cuối trang ................ 12 điểm
       Form đánh giá món (tên, email, nội dung) ............. 14 điểm

   ❌ KHÔNG chữa bằng `user-scalable=no` trong thẻ viewport — cách đó chặn luôn
      thao tác tự phóng to bằng hai ngón của khách, người mắt kém hết đọc được.
   ✅ Chữa đúng: cho ô nhập đúng 16 điểm trên thiết bị cảm ứng. Hết ngưỡng thì
      Safari không phóng nữa, mà chữ to hơn cũng dễ bấm hơn — đúng ý Sếp.

   ⚠️ VÌ SAO PHẢI VIẾT DÀI THẾ NÀY: cỡ chữ hiện tại do LỚP Tailwind đặt
   (`text-sm`, `text-xs`), mà lớp luôn thắng thẻ trần dù viết sau. Thêm nữa,
   chính file này đã có sẵn mấy dòng `!important` cho form đánh giá (dùng ID,
   ưu tiên còn cao hơn). Nên phải liệt kê đích danh và nâng độ ưu tiên, chứ
   viết gọn `input { font-size: 16px }` là KHÔNG ăn gì cả.

   Chỉ áp cho thiết bị cảm ứng — máy tính giữ nguyên cỡ chữ cũ.
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {

    /* Ô nhập thường: trừ ô đánh dấu và ô chọn tròn (chúng không gây phóng to,
       mà đổi cỡ chữ là lệch luôn kích thước ô). */
    html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    html body select,
    html body textarea {
        font-size: 16px !important;
    }

    /* Ô sắp xếp của WooCommerce — đang bị khoá 0.813rem bằng !important ở trên. */
    html body .woocommerce-ordering select {
        font-size: 16px !important;
    }

    /* Form đánh giá món — đang bị khoá 0.875rem bằng !important qua ID ở trên,
       nên phải chèn `html body` vào trước mới đè nổi. */
    html body #review_form_wrapper input[type="text"],
    html body #review_form_wrapper input[type="email"],
    html body #review_form_wrapper textarea,
    html body #review_form_wrapper #comment,
    html body #respond input[type="text"],
    html body #respond input[type="email"],
    html body #respond input[type="url"],
    html body #respond textarea {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   VUỐT TRONG HỘP ĐẶT HÀNG KHÔNG ĐƯỢC LAN XUỐNG TRANG NỀN — bản 1.5.5 (02/09/2026)

   Sếp báo: đang ở bước điền thông tin, vuốt ngón tay trong bảng form thì trang
   web phía dưới cũng trôi theo.

   NGUYÊN NHÂN — hai đường lan, phải bịt cả hai:

   ① VÙNG CUỘN CỦA FORM CHƯA CÓ RÀO. Trình duyệt mặc định cho phép "nối cuộn"
      (scroll chaining): vuốt hết đà trong khung con thì cú vuốt truyền tiếp ra
      khung cha. Tệ hơn, đo được ở bước 2 lúc CHƯA bật bàn phím thì nội dung
      form vừa khít khung (775/775 điểm, chênh 0) — **không có gì để cuộn**,
      nên MỌI cú vuốt lọt thẳng xuống lớp dưới ngay từ điểm chạm đầu tiên.
      `overscroll-behavior: contain` chặn đúng việc truyền tiếp này.

   ② VUỐT TRÚNG THANH ĐẦU / DẢI NÚT / NỀN MỜ. Mấy chỗ đó không cuộn được gì
      nên cú vuốt cũng đi thẳng xuống nền. `touch-action: none` bảo trình duyệt
      "chỗ này không phải để kéo" — vẫn bấm/chạm bình thường, chỉ cấm kéo.

   ⚠️ KHÔNG đặt `touch-action: none` lên cả `#cartModal`. Giá trị này của thẻ
   cha giao với thẻ con chứ con KHÔNG đè được cha — đặt lên cha là khoá luôn
   cuộn của chính vùng form bên trong. Phải nhắm đích danh từng khối không cuộn.

   ⚠️ `tailwind.min.css` là bản dựng sẵn và KHÔNG có lớp `overscroll-*` nào —
   đã grep kiểm. Nên phải viết CSS thường ở đây, dùng lớp Tailwind là trượt.
   ========================================================================== */

/* ① Rào cho vùng cuộn: vuốt hết đà thì dừng, không truyền ra ngoài. */
#cartModal .overflow-y-auto,
#successModal {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ② Ba khối không cuộn được gì: cấm kéo, vẫn bấm được.
      `#cartPanel > div:not(.overflow-y-auto)` = thanh đầu + dải nút dưới. */
#cartBackdrop,
#cartPanel > div:not(.overflow-y-auto) {
    touch-action: none;
}
