/* theme-s1111.css: landing "Siêu Sale 11.11" (page.s1111, /pages/sieu-sale-11-11). Thiết kế Codex V2 "Bật tung deal lớn" (design/s1111/out/v2, TOKENS.md).
   Chỉ khai báo trong .s1111 / class s11-*. Không sửa header, footer, card product-item hay file dùng chung: card chỉ đổi bằng CSS có scope.
   Font Be Vietnam Pro do theme nạp sẵn. */

/* Template page: theme bọc main.wrapper 1200px và có breadcrumb; trả thân về full width. */
.main-content.wrapper:has(.s1111) { max-width: none; width: auto; padding-left: 0; padding-right: 0; }
body:has(.s1111) .breadcrumb-shop,
body:has(.s1111) .breadcrumb,
body:has(.s1111) .breadcrumbs { display: none !important; }
html:has(.s1111) { scroll-behavior: smooth; }
/* Trang kết thúc bằng dải cyan: bỏ margin-top 80px của footer theme để không hở khoảng trắng (Tùng 23/10). */
body:has(.s1111) .site-footer { margin-top: 0; }
/* Mobile: wrapper theme .is-moved-by-drawer có overflow hidden nên chặn sticky của thanh nhóm. clip vẫn chặn tràn ngang. Chỉ trên trang này. */
body:has(.s1111) .is-moved-by-drawer { overflow: clip !important; }
@media (prefers-reduced-motion: reduce) { html:has(.s1111) { scroll-behavior: auto; } }

.s1111 {
	--s-cyan: #00A7E1; --s-ink: #101820; --s-action: #006C8F; --s-sale: #B52338; --s-muted: #52616B;
	--s-tint: #F0F9FD; --s-line: #DAE4EA; --s-on-cyan: #062D3B;
	--s-font: 'Be Vietnam Pro', sans-serif;
	background: #fff; color: var(--s-ink); font-family: var(--s-font); overflow-x: clip;
}
.s1111 *, .s1111 *::before, .s1111 *::after { box-sizing: border-box; }
.s1111 a { text-decoration: none; }
.s1111 a:focus-visible, .s1111 button:focus-visible { outline: 3px solid var(--s-action); outline-offset: 4px; }
.s11-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- 1. Banner: nền + lớp SP (ảnh) + chữ HTML, toạ độ theo canvas 1920×600 (cqw) ---------- */
.s11-hero__stage { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1920 / 600; overflow: hidden; background: #EAF7FD; }
.s11-hero picture { display: contents; }
.s11-hero__bg, .s11-hero__prod { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.s11-hero__prod { z-index: 1; }
.s11-hero__copy { position: absolute; left: 6.25cqw; top: 1.7cqw; width: 34cqw; z-index: 2; }
.s1111 .s11-hero__copy p, .s1111 .s11-hero__title { margin: 0; }
/* Theme chế độ tối đổi màu mọi <p> sang xám nhạt; banner luôn nền sáng nên khoá màu chữ (UX-AUDIT A1). */
.s1111 .s11-hero__copy p { color: var(--s-ink); }
.s1111 .s11-hero__title { font-family: var(--s-font); font-weight: 800; line-height: 1; color: var(--s-ink); letter-spacing: 0; }
.s11-hero__label { display: block; font-size: 1.85cqw; line-height: 1.3; font-weight: 700; }
.s11-hero__date { display: block; font-size: 10cqw; line-height: 1.05; letter-spacing: -.65cqw; filter: drop-shadow(.22cqw .22cqw 0 var(--s-cyan)); }
.s1111 .s11-hero__slogan { margin-top: .2cqw; font-size: 2.25cqw; line-height: 1.3; font-weight: 800; letter-spacing: -.08cqw; }
.s11-hero__slogan br { display: none; }
.s1111 .s11-hero__offer { display: flex; align-items: baseline; gap: 1cqw; margin-top: .5cqw; font-size: 1.5cqw; line-height: 1.15; font-weight: 600; }
.s11-hero__offer strong { font-size: 5.25cqw; line-height: 1.1; font-weight: 800; letter-spacing: -.25cqw; color: var(--s-sale); }
.s11-hero__offer small { font-size: 3.7cqw; }
.s1111 .s11-hero__cta { position: absolute; left: 6.25cqw; bottom: 2.1cqw; z-index: 3; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 7px; background: var(--s-ink); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 5px 5px 0 var(--s-cyan); }
.s1111 .s11-hero__cta:hover { background: var(--s-action); color: #fff; }
.s1111 .s11-hero__cta:focus-visible { outline-color: var(--s-ink); }

/* ---------- Mã khuyến mại: khối chung ux4-pd-coupons (Tùng 27/10: giữ bố cục và chữ, chỉ đổi màu qua biến --pdc-*; không sửa snippet) ----------
   Tùng 23/10: đặt cuối trang, nhẹ hơn nhóm SP. Màu theo token landing: nút/mã = action, nền = tint, viền = line. */
.s11-codes-sec { padding: 16px 0 8px; background: #fff; scroll-margin-top: calc(var(--s11-nav-top, 0px) + 12px); }
.s1111 .pdc { --pdc-accent: var(--s-action); --pdc-bg: var(--s-tint); --pdc-line: var(--s-line); --pdc-soft: #E3F4FB; color: var(--s-ink); }
.s1111 .pdc__t, .s1111 .pdc__n { color: var(--s-ink); }
.s1111 .pdc__d, .s1111 .pdc__e { color: var(--s-muted); }
/* Landing giữ nền sáng cả khi điện thoại bật chế độ tối (như banner), nên khối mã cũng giữ đúng màu trên, chỉ trong .s1111. */
html[data-mobile-theme=dark] .s1111 .pdc { background: var(--pdc-bg); border-color: var(--pdc-line); color: var(--s-ink); }
html[data-mobile-theme=dark] .s1111 .pdc__i { background: linear-gradient(90deg, var(--pdc-soft) 0 80px, #fff 80px); border-color: var(--pdc-line); }
html[data-mobile-theme=dark] .s1111 .pdc__ic { border-color: var(--pdc-line); }
html[data-mobile-theme=dark] .s1111 .pdc__t, html[data-mobile-theme=dark] .s1111 .pdc__n { color: var(--s-ink) !important; }
html[data-mobile-theme=dark] .s1111 .pdc__d, html[data-mobile-theme=dark] .s1111 .pdc__e { color: var(--s-muted); }
html[data-mobile-theme=dark] .s1111 .pdc__code { color: var(--pdc-accent); }
html[data-mobile-theme=dark] .s1111 .pdc__reg { color: var(--pdc-accent) !important; }
html[data-mobile-theme=dark] .s1111 .pdc__why { color: #b54708; }

/* ---------- 3. Thanh chọn nhóm ---------- */
.s11-nav { position: sticky; top: var(--s11-nav-top, 0px); z-index: 20; background: #fff; border-bottom: 3px solid var(--s-cyan); }
.s11-nav__in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; padding-block: 12px; }
/* Nhóm rỗng: ẩn mục nav tương ứng (COPY.md); cột tự chia lại (UX-AUDIT B5). */
.s1111:has(#giam-sau .s11-empty) .s11-nav__item[href="#giam-sau"],
.s1111:has(#ban-chay .s11-empty) .s11-nav__item[href="#ban-chay"],
.s1111:has(#moi-ve .s11-empty) .s11-nav__item[href="#moi-ve"],
.s1111:has(#kham-pha .s11-empty) .s11-nav__item[href="#kham-pha"] { display: none; }
.s1111 .s11-nav__item { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--s-ink); }
.s1111 .s11-nav__item:hover { background: #DFF5FF; color: var(--s-ink); }
.s1111 .s11-nav__item.is-active { background: var(--s-ink); color: #fff; }

/* ---------- 4. Nhóm SP ---------- */
.s11-group { padding: 40px 0 64px; background: #fff; scroll-margin-top: calc(var(--s11-nav-top, 0px) + 76px); }
.s11-group--tint { background: var(--s-tint); }
.s11-group--last { border-bottom: 1px solid var(--s-line); }
.s11-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid #A1DAED; }
.s1111 .s11-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #183A4B; }
.s11-stamp { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--s-cyan); color: var(--s-ink); font-size: 19px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; transform: skew(-8deg); }
.s1111 .s11-head__title { margin: 0; font-family: var(--s-font); font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: -1.1px; color: var(--s-ink); }
.s1111 .s11-head__sub { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--s-muted); }
.s11-head__count { flex: none; padding-bottom: 4px; font-size: 14px; color: var(--s-muted); white-space: nowrap; }
.s1111 .s11-empty { margin: 0; font-size: 14px; color: var(--s-muted); }
.s1111 .s11-empty a { color: var(--s-action); text-decoration: underline; }

/* Lưới + card theme (product-item include nguyên vẹn) */
.s11-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.s11-grid__item { display: flex; min-width: 0; }
.s1111 .s11-grid__item > .grid__item, .s1111 .s11-grid__item > div { float: none; display: flex; width: 100%; max-width: none; margin: 0; padding: 0; }
.s1111 .product-container { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; overflow: hidden; background: #fff !important; color: var(--s-ink) !important; border: 1px solid var(--s-line) !important; border-radius: 12px; box-shadow: none !important; font-family: var(--s-font); }

/* Khung ảnh 11.11 (Codex card-frame V2): nền trắng/iceblue, viền cyan lùi vào, tem 11.11.
   Tem ở góc dưới trái trong khung (Codex đặt góc trên phải, nhưng theme gắn nhãn "Đề cử"/"New" ở đó) và nằm trên vùng đệm đáy ảnh.
   Ảnh SP multiply để nền trắng của ảnh tan vào khung; nét khung vẽ dưới ảnh. */
.s1111 .product-image { position: relative; padding: 0 0 8px; background: linear-gradient(145deg, #F2FBFF, #FFFFFF 55%, #ECF9FF) !important; border-bottom: 1px solid #D4EAF4; isolation: isolate; overflow: hidden; }
.s1111 .product-thumbnail { position: relative; z-index: 1; aspect-ratio: auto; padding: 38px 18px 40px; overflow: hidden; mix-blend-mode: multiply; }
.s1111 .product-thumbnail, .s1111 .product-thumbnail a { background: transparent !important; }
.s1111 .product-thumbnail img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; mix-blend-mode: multiply; transform: none !important; }
.s1111 .on-sale { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 5px 9px; border-radius: 5px; background: var(--s-sale) !important; color: #fff !important; font-size: 13px; font-weight: 800; line-height: 1.3; }
.s1111 .product-meta { display: flex; flex: 1; flex-direction: column; padding: 12px 16px 16px; background: #fff !important; }
.s1111 .product-name { min-height: 46px; margin: 0 0 12px; font-size: 14px; line-height: 1.65; font-weight: 500; -webkit-line-clamp: unset !important; line-clamp: unset !important; overflow: visible !important; max-height: none !important; }
.s1111 .product-name, .s1111 .product-name a { color: var(--s-ink) !important; }
.s1111 .product-name a { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; text-overflow: clip; white-space: normal; max-height: none; }
.s1111 .product-name a:hover { color: var(--s-action) !important; }
.s1111 .product-price .amout { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.s1111 .product-price .amout > span { font-size: 22px; font-weight: 700; letter-spacing: -.6px; color: var(--s-sale) !important; }
.s1111 .product-price del, .s1111 .product-price del.sale-price { font-size: 13px; font-weight: 400; color: var(--s-muted) !important; }
.s1111 .product-card-foot { margin-top: auto; padding-top: 12px; }
.s1111 .product-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--s-action) !important; border-radius: 6px; background: #fff !important; color: var(--s-action) !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.s1111 .product-action:hover { background: var(--s-action) !important; color: #fff !important; }
.s1111 .sale-cycle-countdown { background: transparent !important; border-color: #f0dfe1 !important; color: var(--s-muted) !important; }
.s1111 .sale-cycle-countdown strong { color: var(--s-sale) !important; }
.s1111 .product-tags:not(:has(*)), .s1111 .looptimeer:not(:has(*)), .s1111 .haravan-product-reviews-badge:not(:has(*)) { display: none; }
/* Cả card bấm được; nút và nhãn nằm lớp trên nên popup "Chọn phiên bản" / thêm giỏ không đổi. */
.s1111 .product-meta, .s1111 .name-price, .s1111 .product-name, .s1111 .product-price, .s1111 .product-card-foot { position: static; }
.s1111 .product-name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.s1111 .product-actions, .s1111 .product-action, .s1111 .product-tags a, .s1111 .dokerv-widget a { position: relative; z-index: 4; }
/* Rê chuột: theme hiện ảnh thứ hai; ẩn ảnh chính để hai ảnh multiply không chồng lên nhau. */
.s1111 .product-container:hover .product-featured-image:has(+ .back-img) { opacity: 0; }
@media (hover: hover) { .s1111 .product-container { transition: border-color .18s ease; } .s1111 .product-container:hover { border-color: #8DD9F3 !important; } }
@media (forced-colors: active) {
	.s1111 .product-image { background: Canvas !important; }
	.s1111 .product-image::before, .s1111 .product-image::after { display: none; }
	.s1111 .product-thumbnail, .s1111 .product-thumbnail img { mix-blend-mode: normal; }
}

/* ---------- 5. Khối cuối ---------- */
.s11-closing { padding: 56px 0; background: var(--s-cyan); }
.s11-closing__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.s1111 .s11-closing h2 { margin: 0; font-family: var(--s-font); font-size: 36px; line-height: 1.35; font-weight: 800; letter-spacing: -1px; color: var(--s-ink); }
.s1111 .s11-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 8px; background: var(--s-ink); color: #fff; font-size: 15px; font-weight: 700; }
.s1111 .s11-btn:hover { background: var(--s-action); color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.s11-wrap { width: calc(100% - 48px); }
	.s1111 .s11-head__title { font-size: 28px; }
	.s11-grid { gap: 16px; }
	.s1111 .product-price .amout > span { font-size: 20px; }
}

/* ---------- Mobile: banner đổi sang bộ lớp 1000×650 ---------- */
@media (max-width: 767px) {
	.s11-wrap { width: calc(100% - 32px); }
	.s11-hero__stage { aspect-ratio: 1000 / 650; }
	.s11-hero__copy { left: 3.2cqw; top: 2.8cqw; width: 41cqw; }
	.s11-hero__label { font-size: 3.8cqw; }
	.s11-hero__date { font-size: 15cqw; line-height: 1.1; letter-spacing: -1cqw; }
	.s1111 .s11-hero__slogan { margin-top: 1cqw; font-size: 3.8cqw; line-height: 1.15; letter-spacing: -.1cqw; }
	.s11-hero__slogan br { display: inline; }
	.s1111 .s11-hero__offer { display: block; margin-top: 1.4cqw; font-size: 3.2cqw; }
	.s11-hero__offer > span { display: block; }
	.s11-hero__offer strong { display: block; font-size: 9.2cqw; line-height: 1.05; letter-spacing: -.5cqw; }
	.s11-hero__offer small { font-size: 6.4cqw; }
	.s1111 .s11-hero__cta { left: 3.2cqw; bottom: 3.3cqw; min-height: 44px; padding: 8px 18px; font-size: 13px; box-shadow: 4px 4px 0 var(--s-cyan); }


	/* Một hàng 4 mục (chữ xuống 2 dòng nếu cần): thanh dính cao ~60px thay vì 113px (UX-AUDIT B1). */
	.s11-nav__in { gap: 4px; padding-block: 6px; }
	.s1111 .s11-nav__item { min-height: 46px; padding: 4px 3px; font-size: 12px; line-height: 1.25; text-align: center; text-wrap: balance; border: 1px solid var(--s-line); }

	.s11-group { padding: 28px 0 40px; scroll-margin-top: calc(var(--s11-nav-top, 0px) + 66px); }
	.s11-head { display: block; margin-bottom: 16px; padding-bottom: 14px; }
	.s1111 .s11-eyebrow { margin-bottom: 10px; font-size: 14px; }
	.s11-stamp { font-size: 17px; }
	.s1111 .s11-head__title { font-size: 25px; letter-spacing: -.65px; }
	.s11-head__count { display: block; margin-top: 8px; font-size: 12px; }
	.s11-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.s1111 .product-thumbnail { padding: 34px 10px 30px; }
	.s1111 .on-sale { left: 8px; top: 8px; padding: 3px 6px; font-size: 11px; }
	.s1111 .product-meta { padding: 10px 12px 12px; }
	.s1111 .product-name { min-height: 64px; margin-bottom: 8px; font-size: 13px; }
	.s1111 .product-price .amout > span { font-size: 19px; letter-spacing: -.4px; }
	.s1111 .product-price del { font-size: 12px; }
	.s1111 .product-action { padding: 8px 3px; }

	.s11-closing { padding: 36px 0; }
	.s11-closing__in { display: block; }
	.s1111 .s11-closing h2 { font-size: 28px; }
	.s1111 .s11-btn { width: 100%; margin-top: 24px; }
}
/* Màn rất hẹp: thu chữ để nút không chạm % (Codex TOKENS ≤ 359px). */
@media (max-width: 359px) {
	.s11-hero__date { font-size: 14cqw; }
	.s11-hero__offer strong { font-size: 8.5cqw; }
	.s11-hero__copy { top: 1.5cqw; }
}

/* Khung ảnh 11.11 FRAME2 "Double strike" (Codex, Tùng duyệt 02/11): thay nét khung + tem cũ; padding/kích thước ảnh, nhãn, meta giữ ở mục "Khung ảnh 11.11" phía trên. Đồng bộ với snippet s11f (toàn web). */
.s1111 .product-image {
  --s11f-cyan: #00A7E1;
  --s11f-ink: #101820;
  --s11f-sale: #B52338;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 42%, #FFFFFF 0 58%, #F3FBFF 80%, #DDF5FF 100%) !important;
}
.s1111 .product-image .product-thumbnail,
.s1111 .product-image .product-thumbnail > a {
  background: transparent !important;
}
.s1111 .product-image .product-thumbnail img {
  mix-blend-mode: multiply;
}
.s1111 .product-container:hover .product-featured-image:has(+ .back-img) {
  opacity: 0;
}
.s1111 .product-image::before {
  content: "";
  position: absolute;
  inset: 5px 5px 13px;
  z-index: 0;
  border: 2px solid var(--s11f-cyan);
  border-radius: 7px;
  background:
    linear-gradient(120deg, transparent 0 26%, var(--s11f-cyan) 27% 43%, transparent 44% 56%, var(--s11f-cyan) 57% 73%, transparent 74%) right 8px bottom 9px / 44px 24px no-repeat,
    linear-gradient(var(--s11f-sale), var(--s11f-sale)) right bottom / 12px 4px no-repeat,
    linear-gradient(90deg, var(--s11f-cyan) 0 72%, var(--s11f-ink) 72%) left bottom / 100% 4px no-repeat;
  box-shadow: 0 0 0 3px #FFFFFF;
  pointer-events: none;
}
.s1111 .product-image::after {
  content: "11.11";
  position: absolute;
  left: 5px;
  bottom: 13px;
  z-index: 1;
  padding: 5px 15px 5px 11px;
  border: 0;
  border-left: 4px solid var(--s11f-cyan);
  border-radius: 0 0 0 7px;
  background: var(--s11f-ink);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  transform: none;
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .s1111 .product-image::before {
    inset: 4px 4px 12px;
    border-width: 2px;
    border-radius: 5px;
    background-size: 30px 17px, 9px 3px, 100% 3px;
    background-position: right 5px bottom 7px, right bottom, left bottom;
    box-shadow: 0 0 0 2px #FFFFFF;
  }
  .s1111 .product-image::after {
    left: 4px;
    bottom: 12px;
    padding: 4px 12px 4px 7px;
    border-left-width: 3px;
    border-radius: 0 0 0 5px;
    font-size: 18px;
    letter-spacing: -.6px;
  }
}
@media (forced-colors: active) {
  .s1111 .product-image { background: Canvas !important; }
  .s1111 .product-image .product-thumbnail,
  .s1111 .product-image .product-thumbnail img { mix-blend-mode: normal; }
  .s1111 .product-image .product-thumbnail img { forced-color-adjust: none; }
  .s1111 .product-image .product-featured-image { opacity: 1 !important; visibility: visible !important; }
  .s1111 .product-image .back-img { opacity: 0 !important; visibility: hidden !important; }
  .s1111 .product-image::before,
  .s1111 .product-image::after { display: none; }
}
