/* [DCT] Nâng cấp giao diện 10/2026 — header/logo + khung ảnh & thẻ sản phẩm. Nạp SAU style.css. */
:root {
    --dct-red: #e53935;
    --dct-ink: #1f1f1f;
    --dct-line: #ececec;
    --dct-radius: 12px;
}

/* ---------- Header + logo ---------- */
header.header,
header {
    background: #fff !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
header .logo img {
    max-height: none !important;
    height: 46px !important;
    width: auto !important;
    display: block;
}
@media (max-width: 991px) {
    header .logo img { height: 38px !important; }
}

/* ---------- Thẻ sản phẩm (lưới + carousel nổi bật) ---------- */
.section_product .product-blocks .item-border,
.category-products .products-view-grid .item-border {
    border: 0 !important;
    padding: 6px !important;
}
.news-item-products {
    position: relative;
    background: #fff;
    border: 1px solid var(--dct-line);
    border-radius: var(--dct-radius);
    padding: 8px 8px 12px !important;
    min-height: 0 !important;
    height: 100%;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.promo-title .news-item-products { margin: 6px; }
.news-item-products:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .09);
    border-color: #ffd0d0;
}

/* Khung ảnh: vuông 1:1, nền sáng, bo góc, ảnh không méo/không cắt */
.news-item-products .fix-images {
    height: auto !important;
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
    border-radius: calc(var(--dct-radius) - 4px);
    overflow: hidden;
}
.news-item-products .fix-images img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
    margin: 0 !important;
    transition: transform .35s ease;
}
.news-item-products:hover .fix-images img { transform: scale(1.05); }

/* Carousel "Sản phẩm nổi bật": bỏ hiệu ứng zoomIn (thẻ phóng từ tí xíu lên, nhìn như lỗi) */
#owl-promo .owl-item { animation: none !important; }

/* Badge % giảm */
.news-item-products .fix-images > span {
    top: 8px !important;
    left: 8px !important;
    background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
    border-radius: 20px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
    box-shadow: 0 2px 6px rgba(211, 47, 47, .35);
}

/* Tên: 2 dòng cố định -> các thẻ thẳng hàng */
.news-item-products h3 {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--dct-ink) !important;
    margin: 10px 2px 6px !important;
    height: 2.8em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-item-products .price { line-height: 1.3; }
.news-item-products .price strong {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--dct-red) !important;
}
.news-item-products .price del { font-size: 13px !important; }

@media (max-width: 767px) {
    .section_product .product-blocks .item-border,
    .category-products .products-view-grid .item-border { padding: 4px !important; }
    .news-item-products { padding: 6px 6px 10px !important; border-radius: 10px; }
    .news-item-products h3 { font-size: 13px !important; margin: 8px 0 4px !important; }
    .news-item-products .price strong { font-size: 15px !important; }
    .news-item-products .price del { display: block; margin: 2px 0 0 !important; font-size: 12px !important; }
    .news-item-products:hover { transform: none; }
}

/* ---------- Trang chi tiết sản phẩm: khung ảnh chính + ảnh nhỏ ---------- */
.product-image-block .gallery-top {
    border: 1px solid var(--dct-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.product-image-block .gallery-top .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.product-image-block .thumb-link img {
    border: 2px solid var(--dct-line);
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: border-color .2s ease;
}
.product-image-block .swiper-slide-thumb-active .thumb-link img,
.product-image-block .thumb-link:hover img { border-color: var(--dct-red); }
h1.title-head {
    font-weight: 700 !important;
    color: var(--dct-ink);
    line-height: 1.3;
}
.product-image-block .gallery-top .swiper-wrapper { height: auto !important; } /* autoHeight cũ để dư ~100px trắng */

/* ---------- Footer: icon TikTok (thay cho JS chèn chữ "TikTok"/"Shopee") ---------- */
.footer-social li.tiktok a { background: #000 !important; display: flex !important; align-items: center; justify-content: center; }
.footer-social li.tiktok svg { width: 18px; height: 18px; fill: #fff; }
.footer-omnichanel li.tiktokshop .dct-tt-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px; background: #000;
}

/* H1 trang chủ cho SEO (ẩn khỏi mắt, vẫn đọc được bởi Google/trình đọc màn hình) */
.dct-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Chuyên mục / tag tin tức ---------- */
.dct-blog { padding-bottom: 30px; }
.dct-blog-title { font-size: 26px; font-weight: 700; margin: 10px 0 18px; color: var(--dct-ink); }
.dct-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dct-blog-card { background: #fff; border: 1px solid var(--dct-line); border-radius: var(--dct-radius); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.dct-blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .09); }
.dct-blog-thumb { display: block; aspect-ratio: 16 / 10; background: #f6f6f6; overflow: hidden; }
.dct-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dct-blog-body { padding: 12px 14px 16px; }
.dct-blog-name { font-size: 16px !important; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.dct-blog-name a { color: var(--dct-ink); }
.dct-blog-meta { color: #888; font-size: 13px; margin-bottom: 6px; }
.dct-blog-desc { color: #555; font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- Deal lớn tuần này (shortcode [dct-deals]) ---------- */
.dct-deals { margin: 18px 0 8px; }
.dct-deals .container { background: #fff; border-radius: 14px; padding: 16px 14px 18px; border: 2px solid #ffd6d6; }
.dct-deals-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dct-deals-title { margin: 0; font-size: 24px; font-weight: 800; color: #d32f2f; }
.dct-deals--page .dct-deals-title { font-size: 28px; }
.dct-deals-week { color: #666; font-size: 13px; margin-top: 4px; }
.dct-deals-all { font-weight: 700; color: #e53935; white-space: nowrap; }
.dct-deal + .dct-deal { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #f0c4c4; }
.dct-deal-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    background: linear-gradient(90deg, #e53935, #ff7043); color: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.dct-deal-name { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.dct-deal-pct { background: #fff; color: #e53935; font-weight: 800; border-radius: 20px; padding: 3px 10px; font-size: 15px; }
.dct-deal-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.dct-cd { background: rgba(0, 0, 0, .25); border-radius: 6px; padding: 3px 8px; font-weight: 800; font-size: 16px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.dct-deal-dep { background: #fff3e0; color: #bf360c; border-radius: 20px; padding: 3px 10px; font-weight: 700; }
.dct-deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dct-deal-item { text-align: center; }
.dct-deal-cta { margin-top: 8px; background: #e53935; color: #fff; border-radius: 18px; padding: 6px 0; font-weight: 700; font-size: 13px; }
.dct-deals-empty { text-align: center; padding: 24px 10px; color: #555; line-height: 1.6; }
@media (max-width: 767px) {
    .dct-deals .container { padding: 12px 8px 14px; border-radius: 10px; }
    .dct-deals-title { font-size: 20px; }
    .dct-deal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dct-deal-bar { padding: 8px 10px; }
}

/* Menu: icon ngọn lửa cho mục thứ 7 "Deal tuần" (icon_menu_7 của theme cũ đã mất) */
header .nav-item:nth-child(7) > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e53935' d='M13.5 0.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z'/%3E%3C/svg%3E") !important;
}
header .nav-item:nth-child(7) > a { color: #e53935 !important; font-weight: 700; }
/* Menu chính 7 mục (thêm "Deal tuần"): xếp 1 hàng, không rớt dòng ở màn 992–1199px */
@media (min-width: 992px) {
    header #nav { display: flex !important; flex-wrap: nowrap; justify-content: space-between; }
    header #nav > li { float: none !important; padding-left: 4px !important; flex: 0 1 auto; }
    header #nav > li > a { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    header #nav > li > a { font-size: 11.5px !important; }
}

/* ---------- Trang /deal-tuan (mode=page) ---------- */
.dct-deals--page { margin: 14px 0 26px; }
.dct-deals--page .container { background: transparent; border: 0; padding: 0 15px; }
.dct-deals--page .dct-deal, .dct-steps-wrap, .dct-faq, .dct-empty {
    background: #fff; border-radius: 16px; padding: 16px; margin-top: 16px; border: 1px solid #f3dede; }
.dct-deals--page .dct-deal + .dct-deal { border-top: 1px solid #f3dede; padding-top: 16px; }
.dct-hero {
    position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 28px 30px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 213, 79, .35), transparent 38%),
        radial-gradient(circle at 10% 110%, rgba(255, 112, 67, .55), transparent 45%),
        linear-gradient(120deg, #b71c1c 0%, #e53935 55%, #ff7043 100%);
    box-shadow: 0 12px 30px rgba(183, 28, 28, .25);
}
.dct-hero::after { content: "%"; position: absolute; right: -10px; bottom: -70px; font-size: 260px; font-weight: 900;
    color: rgba(255, 255, 255, .07); line-height: 1; pointer-events: none; }
.dct-hero-chip { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.dct-hero-title { color: #fff !important; font-size: 40px !important; font-weight: 900 !important; margin: 10px 0 6px !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .2); line-height: 1.1 !important; }
.dct-hero-sub { font-size: 16px; margin: 0 0 12px; opacity: .95; }
.dct-hero-sub strong { color: #ffe082; font-size: 18px; }
.dct-hero-perks { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; }
.dct-hero-perks li::before { content: "✓"; display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center;
    background: #ffe082; color: #b71c1c; border-radius: 50%; font-weight: 900; font-size: 12px; margin-right: 6px; }
.dct-hero-side { position: relative; z-index: 1; text-align: center; background: rgba(0, 0, 0, .18); border-radius: 16px;
    padding: 16px 22px; min-width: 240px; backdrop-filter: blur(2px); }
.dct-hero-cd-label { font-size: 13px; opacity: .9; margin-bottom: 6px; }
.dct-hero-cd.dct-cd { display: inline-block; background: #fff; color: #c62828; font-size: 28px; padding: 6px 14px; border-radius: 10px; }
.dct-hero-btn { display: block; margin-top: 12px; background: #ffe082; color: #b71c1c !important; font-weight: 800; border-radius: 24px;
    padding: 10px 18px; text-transform: uppercase; letter-spacing: .4px; box-shadow: 0 4px 0 #c79a00; transition: transform .15s; }
.dct-hero-btn:hover { transform: translateY(-2px); }
.dct-hero-flame { font-size: 54px; line-height: 1; margin-bottom: 4px; animation: dctPulse 1.6s ease-in-out infinite; }
@keyframes dctPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.dct-deal-bar.is-soon { background: linear-gradient(90deg, #455a64, #78909c); }
.dct-deal-tag { background: #ffe082; color: #6d4c00; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.dct-deal-item.is-soon .dct-deal-cta { background: #607d8b; }
.dct-sec-title { font-size: 20px; font-weight: 800; color: #1f1f1f; margin: 0 0 12px; padding-left: 12px; border-left: 4px solid #e53935; line-height: 1.2; }
.dct-empty { text-align: center; padding: 26px 16px; }
.dct-empty-icon { font-size: 44px; }
.dct-empty h2 { font-size: 22px; font-weight: 800; margin: 6px 0 8px; color: #c62828; }
.dct-empty p { color: #555; max-width: 640px; margin: 0 auto 14px; line-height: 1.6; }
.dct-empty-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dct-empty-links a { color: #fff !important; border-radius: 22px; padding: 8px 16px; font-weight: 700; font-size: 14px; }
.dct-empty-links .is-fb { background: #1877f2; } .dct-empty-links .is-tt { background: #111; } .dct-empty-links .is-zl { background: #0068ff; }
.dct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dct-step { position: relative; background: #fff7f5; border: 1px solid #ffe0d9; border-radius: 14px; padding: 16px 14px 14px 62px; }
.dct-step span { position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: #e53935; color: #fff;
    font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(229, 57, 53, .35); }
.dct-step strong { display: block; font-size: 15px; color: #1f1f1f; margin-bottom: 4px; }
.dct-step p { margin: 0; color: #555; font-size: 13.5px; line-height: 1.5; }
.dct-faq details { border-bottom: 1px solid #f1e3e3; padding: 10px 2px; }
.dct-faq details:last-child { border-bottom: 0; }
.dct-faq summary { cursor: pointer; font-weight: 700; color: #1f1f1f; list-style: none; position: relative; padding-right: 26px; }
.dct-faq summary::-webkit-details-marker { display: none; }
.dct-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 20px; color: #e53935; font-weight: 700; }
.dct-faq details[open] summary::after { content: "–"; }
.dct-faq details p { margin: 8px 0 2px; color: #555; line-height: 1.6; }
@media (max-width: 767px) {
    .dct-hero { padding: 20px 16px; border-radius: 14px; }
    .dct-hero-title { font-size: 30px !important; }
    .dct-hero-side { width: 100%; min-width: 0; }
    .dct-hero::after { font-size: 180px; bottom: -50px; }
    .dct-steps { grid-template-columns: 1fr; }
    .dct-deals--page .container { padding: 0 8px; }
}
.dct-hero-text { flex: 1 1 360px; min-width: 0; position: relative; z-index: 1; }
.dct-hero-side { flex: 0 0 auto; }
/* Thẻ deal: nhãn điều kiện, "Từ", quà tặng, số SP trong nhóm */
.dct-card-tag { position: absolute; top: 8px; right: 8px; z-index: 5; font-size: 11px; font-weight: 800; line-height: 1; padding: 4px 7px; border-radius: 10px; }
.dct-card-tag.is-cod { background: #2e7d32; color: #fff; }
.dct-card-tag.is-dep { background: #ff8f00; color: #fff; }
.dct-card-from { font-size: 12px; color: #777; margin-right: 3px; }
.dct-card-gift { margin-top: 6px; font-size: 12px; font-weight: 700; color: #ad1457; background: #fce4ec; border-radius: 8px; padding: 3px 6px; }
.dct-deal-count { background: rgba(255, 255, 255, .22); border-radius: 12px; padding: 2px 9px; font-size: 13px; font-weight: 700; }
.news-item-products .fix-images > .dct-card-tag { left: auto !important; right: 8px !important; top: 8px !important; }
.news-item-products .price .dct-card-from { text-decoration: none !important; display: inline; }
/* Ô "Ghi chú deal" dưới thanh deal */
.dct-deal-note-box { background: #fffbea; border: 1px solid #f1d98a; border-left: 4px solid #f9a825; border-radius: 10px; padding: 10px 14px; margin: -2px 0 12px; color: #6d4c00; font-size: 14px; line-height: 1.6; }
.dct-deal-note-box ul { margin: 4px 0 0; padding-left: 18px; }
.dct-deal-note-box li { margin: 2px 0; }

/* ================= MUA NHANH (dct-cart.js) ================= */
/* Nút thêm giỏ tròn ở góc ảnh thẻ SP */
.news-item-products .dct-qadd { position: absolute; right: 8px; bottom: 8px; z-index: 6; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: #e53935; color: #fff; box-shadow: 0 4px 12px rgba(229, 57, 53, .4); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform .15s, background .15s; padding: 0; }
.news-item-products .dct-qadd:hover { transform: scale(1.1); background: #c62828; }
.news-item-products .dct-qadd svg { width: 20px; height: 20px; fill: #fff; pointer-events: none; }
.dct-qadd.is-loading { opacity: .6; pointer-events: none; }
/* Ô "Chọn" trên thẻ deal */
.news-item-products .dct-pick { position: absolute; top: 8px; right: 8px; z-index: 6; background: rgba(255, 255, 255, .95); border-radius: 14px;
    padding: 3px 9px 3px 6px; font-size: 12px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 4px; cursor: pointer; margin: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.news-item-products .dct-pick input { margin: 0; width: 15px; height: 15px; accent-color: #e53935; }

/* Popup chọn size */
.dct-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 14px; }
.dct-picker { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; padding: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.dct-m-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: #888; cursor: pointer; }
.dct-m-head { display: flex; gap: 12px; align-items: center; padding-right: 26px; }
.dct-m-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f6f6f6; flex: 0 0 64px; }
.dct-m-name { font-weight: 800; font-size: 16px; color: #1f1f1f; line-height: 1.3; }
.dct-m-link { font-size: 13px; color: #e53935; }
.dct-m-hint { font-size: 13px; color: #666; margin: 12px 0 6px; }
.dct-rows { display: grid; gap: 6px; }
.dct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #eee; border-radius: 12px; padding: 8px 10px; background: #fff; }
.dct-row.is-out { opacity: .5; }
.dct-row-label { font-weight: 700; font-size: 14px; color: #1f1f1f; }
.dct-row-price { font-size: 13px; color: #e53935; }
.dct-row-price del { color: #999; margin-left: 4px; }
.dct-qty { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; flex: 0 0 auto; }
.dct-qty button { width: 32px; height: 32px; border: 0; background: #f5f5f5; font-size: 18px; font-weight: 700; color: #333; cursor: pointer; }
.dct-qty input { width: 42px; height: 32px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.dct-qty input::-webkit-outer-spin-button, .dct-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dct-out { font-size: 12px; color: #999; font-weight: 700; }
.dct-m-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; position: sticky; bottom: -16px; background: #fff; padding: 10px 0 2px; }
.dct-sum { font-weight: 700; color: #333; font-size: 14px; }
.dct-m-ok, .dct-multi-add, .dct-xsell-add { border: 0; background: #e53935; color: #fff; font-weight: 800; border-radius: 22px; padding: 10px 18px; cursor: pointer; font-size: 14px; }
.dct-m-ok.is-loading, .dct-multi-add.is-loading, .dct-xsell-add.is-loading, .dct-pb-add.is-loading { opacity: .6; pointer-events: none; }

/* Trang SP: bảng mua nhiều size */
.dct-multi { border: 1px dashed #f0b3b3; border-radius: 12px; margin: 12px 0; background: #fff8f7; display: none; }
.dct-multi.ready { display: block; }
.dct-multi-toggle { width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; font-weight: 800; color: #c62828; cursor: pointer; font-size: 14px; }
.dct-multi-toggle::after { content: "\25BE"; float: right; transition: transform .2s; }
.dct-multi.open .dct-multi-toggle::after { transform: rotate(180deg); }
.dct-multi-body { display: none; padding: 0 12px 12px; }
.dct-multi.open .dct-multi-body { display: block; }
.dct-multi .dct-m-foot { position: static; background: none; }

/* Thường mua cùng */
.dct-xsell { display: none; border: 1px solid #eee; border-radius: 14px; padding: 14px; margin: 18px 0; background: #fff; }
.dct-xsell.ready { display: block; }
.dct-xsell-title { font-size: 18px; font-weight: 800; margin: 0 0 10px; padding-left: 10px; border-left: 4px solid #e53935; }
.dct-xsell-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.dct-x-item { display: flex; align-items: center; gap: 8px; border: 1px solid #eee; border-radius: 10px; padding: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.dct-x-item input { accent-color: #e53935; width: 17px; height: 17px; flex: 0 0 auto; margin: 0; }
.dct-x-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f6f6f6; flex: 0 0 52px; }
.dct-x-info { min-width: 0; flex: 1; }
.dct-x-name { display: block; font-weight: 700; font-size: 13px; color: #1f1f1f; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.dct-x-price { font-size: 13px; color: #e53935; }
.dct-x-price del { color: #999; }
.dct-x-size { width: 100%; margin-top: 3px; font-size: 12px; border: 1px solid #ddd; border-radius: 6px; padding: 3px; }
.dct-xsell-add { margin-top: 12px; width: 100%; }

/* Thông báo sau khi thêm giỏ */
.dct-toast { position: fixed; right: 18px; bottom: 90px; z-index: 100001; width: 320px; max-width: calc(100vw - 24px); background: #fff; border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22); padding: 14px 14px 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s; border-top: 4px solid #2e7d32; }
.dct-toast.show { transform: none; opacity: 1; pointer-events: auto; }
.dct-toast.is-err { border-top-color: #e53935; }
.dct-toast-msg { font-weight: 800; color: #1f1f1f; padding-right: 18px; }
.dct-toast-err { font-size: 12px; color: #c62828; margin-top: 6px; }
.dct-toast-sum { font-size: 14px; color: #444; margin-top: 6px; }
.dct-toast-act { display: flex; gap: 8px; margin-top: 10px; }
.dct-t-more, .dct-t-pay { flex: 1; text-align: center; border-radius: 20px; padding: 8px 0; font-weight: 800; font-size: 14px; cursor: pointer; }
.dct-t-more { border: 1px solid #ddd; background: #fff; color: #333; }
.dct-t-pay { background: #e53935; color: #fff !important; border: 0; }
.dct-t-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; color: #999; cursor: pointer; }

/* Thanh giỏ dính (điện thoại) + thanh "đã chọn" trang deal */
.dct-sticky { display: none; }
.dct-pickbar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 120px); z-index: 99998; background: #1f1f1f; color: #fff; border-radius: 30px;
    padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .25s; white-space: nowrap; }
.dct-pickbar.show { transform: translate(-50%, 0); }
.dct-pb-clear { border: 0; background: none; color: #bbb; font-size: 13px; cursor: pointer; }
.dct-pb-add { border: 0; background: #e53935; color: #fff; font-weight: 800; border-radius: 22px; padding: 9px 16px; cursor: pointer; }
@media (max-width: 767px) {
    .dct-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99997; background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; }
    .dct-sticky.show { display: flex; }
    .dct-sticky-info { flex: 1; color: #1f1f1f !important; font-size: 14px; display: flex; align-items: center; gap: 8px; }
    .dct-sticky-ico { font-size: 20px; }
    .dct-sticky-btn { background: #e53935; color: #fff !important; font-weight: 800; border-radius: 22px; padding: 10px 20px; }
    body.dct-has-sticky { padding-bottom: 64px; }
    body.dct-has-sticky .dct-pickbar { bottom: 76px; }
    .dct-toast { right: 12px; left: 12px; width: auto; max-width: none; bottom: 80px; }
    .news-item-products .dct-qadd { width: 34px; height: 34px; right: 6px; bottom: 6px; }
    .dct-pickbar { left: 12px; right: 12px; transform: translateY(140px); justify-content: space-between; }
    .dct-pickbar.show { transform: none; }
}
