/* Trang khách shop.c2z.net.
   Mọi màu theo skin đi qua các biến --top, --head, --accent, --sale, --page (ghi vào :root từ skin đang dùng).
   Ba theme A, B, C dùng chung bộ lớp này; khác nhau ở phần cuối file (body.theme-A / theme-B / theme-C). */
:root {
    --top: #0d3b22; --top-ink: #d7ffe3; --head: #ffffff; --head-ink: #14321f;
    --accent: #15803d; --accent-ink: #ffffff; --sale: #0f5c2e; --sale-ink: #ffffff; --page: #f3f5f4;
    --ink: #1c2b22; --muted: #4d5f55; --line: #dfe6e2; --price: #c81e1e; --card: #ffffff; --ok: #15803d;
    --radius: 10px;
}

body.shop { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5; padding-bottom: 0; }
body.theme-A { font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif; }
body.theme-B { font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
body.theme-C { font-family: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif; }
.shop a { color: inherit; text-decoration: none; }
.shop a:hover { text-decoration: underline; }
.shop h1, .shop h2 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.shop h1 { font-size: 24px; }
.shop h2 { font-size: 20px; }
.shop p { margin: 0 0 10px; }
.shop img { max-width: 100%; height: auto; }
.shop :focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.s-wrap { max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.s-narrow { max-width: 860px; }
.s-main { display: block; padding: 16px 0 32px; min-height: 50vh; }
.s-muted { color: var(--muted); }
.s-err { color: var(--price); }
.s-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }

/* Nút */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--accent); border-radius: 8px;
    background: var(--accent); color: var(--accent-ink) !important; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.s-btn:hover { filter: brightness(1.08); }
.s-btn[disabled] { opacity: .5; cursor: not-allowed; }
.s-btn--ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.s-btn--dark { background: #14261c; border-color: #14261c; color: #fff !important; }
.s-btn--sm { min-height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 999px; }
.s-btn--big { min-height: 52px; font-size: 16px; width: 100%; }

/* Băng rôn, dải trên, đầu trang */
.s-preview { background: #111827; color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; }
.s-preview a { text-decoration: underline; }
.s-promo { background: var(--top); color: var(--top-ink); text-align: center; font-weight: 700; padding: 9px 0; }
.s-header { background: var(--head); color: var(--head-ink); }
.s-strip { font-size: 13px; border-bottom: 1px solid rgba(128, 128, 128, .25); }
.s-strip .s-wrap, .s-strip nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; }
.s-strip .s-wrap { padding-top: 7px; padding-bottom: 7px; }
.s-lang { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; }
.s-lang a { padding: 1px 10px; font-weight: 700; }
.s-lang a.on { background: var(--accent); color: var(--accent-ink); }
.s-head .s-wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 12px; padding-bottom: 14px; }
.s-logo { display: flex; background: #fff; border-radius: 10px; padding: 2px 8px; flex: none; }
.s-logo img { height: 54px; width: auto; display: block; }
.s-searchbox { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.s-search { display: flex; background: #fff; border: 1px solid #c9d3cd; border-radius: 8px; overflow: hidden; }
.s-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; }
.s-search button { border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; padding: 0 24px; cursor: pointer; }
.s-hotkeys { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; }
.s-acc { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.s-acc small { opacity: .85; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-cart { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.s-cart em { font-style: normal; background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; padding: 1px 7px; }
.s-catdrop { position: relative; }
.s-catdrop summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 18px; border-radius: 999px; background: #111827; color: #fff; font-weight: 800; }
.s-catdrop summary::-webkit-details-marker { display: none; }
.s-catdrop > div { position: absolute; z-index: 30; top: 50px; left: 0; width: 280px; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); padding: 8px 0; display: flex; flex-direction: column; }
.s-catdrop > div a { padding: 9px 16px; display: flex; justify-content: space-between; font-weight: 600; }
.s-bar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.s-bar .s-wrap { display: flex; flex-wrap: wrap; gap: 2px 28px; align-items: center; }
.s-bar a, .s-bar span { padding: 12px 0; }
.s-bar__menu { flex: 0 0 240px; font-weight: 700; }
.s-bar__deal { margin-left: auto; border: 1.5px solid var(--sale); color: var(--sale) !important; border-radius: 8px; padding: 6px 14px !important; font-weight: 700; }

/* Trang chủ */
.s-home { display: flex; flex-direction: column; gap: 16px; }
.s-hero { display: flex; flex-wrap: wrap; gap: 16px; }
.s-menu { flex: 0 0 240px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); padding: 8px 0; display: flex; flex-direction: column; }
.s-menu a { padding: 9px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.s-menu a small { color: var(--muted); }
.s-menu__more { color: var(--ok) !important; font-weight: 700 !important; }
.s-slider { flex: 999 1 480px; min-width: 0; height: 400px; border-radius: var(--radius); overflow-x: auto; display: flex; scroll-snap-type: x mandatory; scrollbar-width: none; }
.s-slider::-webkit-scrollbar { display: none; }
.s-slider > * { flex: 0 0 100%; scroll-snap-align: start; }
.s-slider--wide { flex: none; height: 320px; }
.s-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.s-side .s-ban { flex: 1; min-height: 110px; }
.s-banrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.s-banrow--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-banrow .s-ban { height: 110px; }
.s-banrow--2 .s-ban { height: 180px; }
.s-ban { position: relative; display: flex; align-items: center; border-radius: var(--radius); overflow: hidden; color: #fff !important; padding: 16px; text-decoration: none !important; }
.s-ban img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-ban__text { position: relative; display: flex; flex-direction: column; gap: 2px; }
.s-ban__text b { font-size: 18px; line-height: 1.25; }
.s-ban--img .s-ban__text { background: var(--sale); color: var(--sale-ink); padding: 10px 14px; border-radius: 8px; align-self: flex-end; }
.s-ban--big { padding: 28px; align-items: flex-end; }
.s-ban--big .s-ban__text { max-width: 360px; padding: 22px 24px; gap: 8px; }
.s-ban--big .s-ban__text b { font-size: 30px; line-height: 1.15; }
.s-ban--big em { font-style: normal; align-self: flex-start; border: 2px solid currentColor; padding: 7px 20px; font-weight: 700; font-size: 13px; letter-spacing: .1em; margin-top: 4px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.s-chips a { flex: 1 1 200px; border: 1px solid #d1d5db; border-radius: 10px; padding: 12px 14px; font-weight: 700; box-shadow: 0 2px 0 #e5e7eb; background: #fff; }

.s-block { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.s-block--plain { background: none; padding: 0; }
.s-block--sale { background: var(--sale); }
.s-block--sale h2, .s-block--sale .s-block__head a { color: var(--sale-ink); }
.s-block__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.s-block__head a { font-weight: 700; }
.s-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Thẻ sản phẩm */
.s-card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); min-width: 0; }
.s-card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: #e8eeea; }
.s-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-card__hot, .s-card__off { position: absolute; top: 8px; left: 8px; background: var(--price); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; }
.s-card__frame { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; }
.s-card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-card__vendor { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-card__name { font-weight: 700; line-height: 1.4; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s-card__opt { font-size: 12.5px; color: var(--muted); min-height: 19px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.s-card__opt b { color: var(--ok); font-weight: 700; }
.s-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s-card__price b { color: var(--price); font-size: 17px; }
.s-card__price s { color: var(--muted); font-size: 12.5px; }
.s-card__buy { margin-top: auto; min-height: 40px; font-size: 13px; }

/* Mã giảm giá, danh mục, cam kết */
.s-coupons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.s-coupon { background: #fff; border: 1.5px dashed #9fb3a7; border-radius: var(--radius); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.s-coupon > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-coupon small { color: var(--muted); font-size: 12.5px; }
.s-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.s-cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; text-align: center; }
.s-cats img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #e8eeea; }
.s-promises { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; }
.s-promises > div { flex: 1 1 220px; display: flex; flex-direction: column; }
.s-promises span { color: var(--muted); }

/* Chân trang */
.s-foot { background: #14261c; color: #e6f1ea; }
.s-foot > .s-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: 32px; padding-bottom: 28px; }
.s-foot > .s-wrap > div { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.s-foot__about { flex: 2 1 280px !important; }
.s-foot__about p { margin: 0; }
.s-foot b { font-size: 16px; margin-bottom: 4px; }
.s-foot__img { flex: 0 1 220px; height: 150px; object-fit: cover; border-radius: var(--radius); }
.s-foot__end { border-top: 1px solid rgba(255, 255, 255, .15); padding: 12px 0; font-size: 13px; }
.s-mnav { display: none; }

/* Danh mục, tìm kiếm */
.s-crumb { font-size: 13px; color: var(--muted); padding: 0 0 12px; }
.s-list { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.s-filters { flex: 0 1 250px; }
.s-filters form { display: flex; flex-direction: column; gap: 12px; }
.s-filter { background: #fff; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.s-filter b { font-size: 15px; }
.s-filter a.on { color: var(--ok); font-weight: 700; }
.s-filter label { display: flex; gap: 8px; align-items: center; min-height: 28px; cursor: pointer; }
.s-filter small { color: var(--muted); margin-left: auto; }
.s-list__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.s-list__bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.s-list__bar > div:first-child { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.s-sort { display: flex; flex-wrap: wrap; gap: 8px; }
.s-sort a { border: 1px solid #c9d3cd; background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.s-sort a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.s-pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.s-pager a, .s-pager span { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #c9d3cd; border-radius: 8px; font-weight: 700; }
.s-pager a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.s-empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); }

/* Trang sản phẩm */
.s-pd { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.s-pd__gallery { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.s-pd__main { aspect-ratio: 1 / 1; background: #e8eeea; border-radius: 8px; overflow: hidden; }
.s-pd__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.s-pd__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.s-pd__thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; background: #e8eeea; cursor: pointer; }
.s-pd__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-pd__info { flex: 1.3 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.s-pd__meta { font-size: 13px; color: var(--muted); margin: 0 !important; }
.s-pd__meta b { color: var(--ink); }
.s-pd__meta b.ok { color: var(--ok); }
.s-pd__meta b.no { color: var(--price); }
.s-pd__price { background: var(--page); border-radius: 8px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.s-pd__price b { font-size: 30px; color: var(--price); line-height: 1; }
.s-pd__price s { color: var(--muted); }
.s-pd__price span { font-size: 13px; color: var(--muted); }
.s-pd__form { display: flex; flex-direction: column; gap: 14px; }
.s-pd__form fieldset { border: 0; padding: 0; margin: 0; }
.s-pd__form legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; float: none; width: auto; }
.s-pd__vars { display: flex; flex-wrap: wrap; gap: 8px; }
.s-pd__vars label { cursor: pointer; }
.s-pd__vars input { position: absolute; opacity: 0; }
.s-pd__vars span { display: flex; flex-direction: column; border: 1.5px solid #c9d3cd; border-radius: 8px; padding: 7px 14px; font-weight: 600; min-height: 44px; justify-content: center; }
.s-pd__vars small { font-weight: 400; color: var(--muted); font-size: 12px; }
.s-pd__vars input:checked + span { border-color: var(--accent); background: #eaf6ee; }
.s-pd__vars input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 2px; }
.s-pd__vars label.off span { opacity: .5; text-decoration: line-through; cursor: not-allowed; }
.s-pd__qty { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.s-pd__qty input { width: 84px; padding: 10px; border: 1px solid #c9d3cd; border-radius: 8px; font: inherit; font-weight: 700; text-align: center; }
.s-pd__buy { display: flex; flex-wrap: wrap; gap: 12px; }
.s-pd__buy .s-btn { flex: 1 1 200px; min-height: 52px; font-size: 15px; }
.s-pd__buy .s-btn--ghost { border-color: var(--accent); color: var(--ok) !important; }
.s-pd__side { flex: 0 1 250px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; align-self: flex-start; }
.s-pd__side img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-top: 4px; }
.s-desc { margin-bottom: 16px; }
.s-desc > div { max-width: 78ch; }
.s-desc h3 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; }

/* Giỏ hàng, đặt hàng, đơn hàng */
.s-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--muted); }
.s-steps li.on { color: var(--ok); }
.s-co { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.s-co__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.s-box { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.s-line { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.s-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: #e8eeea; flex: none; }
.s-line__name { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.s-line__name a, .s-line__name span { font-weight: 700; }
.s-line__name small { color: var(--muted); }
.s-line__qty { display: flex; gap: 8px; align-items: center; }
.s-line__qty input { width: 66px; padding: 8px; border: 1px solid #c9d3cd; border-radius: 8px; font: inherit; font-weight: 700; text-align: center; min-height: 40px; }
.s-line__total { width: 104px; text-align: right; color: var(--price); font-size: 16px; }
.s-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; min-width: 0; }
.s-form__row label { flex: 1 1 180px; }
.s-form input[type=text], .s-form input[type=tel], .s-form select, .s-form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #c9d3cd; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.s-form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.s-form__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.s-form__head a { color: var(--ok); font-weight: 700; }
.s-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-pay { flex-direction: row !important; align-items: center; gap: 12px !important; border: 2px solid var(--accent); background: #eaf6ee; border-radius: 8px; padding: 14px; }
.s-pay span { display: flex; flex-direction: column; }
.s-pay small { font-weight: 400; color: var(--muted); }
.s-co > .s-sum { flex: 1 1 320px; }
.s-box > .s-btn, .s-box > form > .s-btn { align-self: flex-start; }
.s-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.s-sum__coupon { display: flex; gap: 8px; }
.s-sum__coupon input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid #c9d3cd; border-radius: 8px; }
.s-sum__total { border-top: 1px solid var(--line); padding-top: 14px; align-items: baseline; font-weight: 700; }
.s-sum__total b { font-size: 26px; color: var(--price); }
.s-sum--inline { display: flex; flex-direction: column; gap: 8px; max-width: 420px; width: 100%; }
.s-note { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.s-note--ok { background: #e3f4e8; color: #0f4a26; }
.s-note--ok a { text-decoration: underline; font-weight: 700; }
.s-note--err { background: #fde8e8; color: #7f1414; }
.s-status { margin: 0 !important; }
.s-prose { max-width: none; }
.s-prose h2 { font-size: 17px; margin-top: 8px; }
.s-prose > img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }
.s-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.s-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }

/* Hiệu ứng dịp lễ: tuyết, cánh hoa, sao. Tắt khi người xem chọn giảm chuyển động. */
.s-fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.s-fx i { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .85; animation: s-fall 11s linear infinite; }
.s-fx--snow i { box-shadow: 0 0 4px rgba(120, 140, 160, .7); }
.s-fx--petal i { background: #ffd24a; border-radius: 60% 0 60% 0; width: 12px; height: 12px; }
.s-fx--star i { background: #ffeb3b; border-radius: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 16px; height: 16px; }
.s-fx i:nth-child(1) { left: 6%; animation-delay: 0s; } .s-fx i:nth-child(2) { left: 19%; animation-delay: 3s; animation-duration: 13s; }
.s-fx i:nth-child(3) { left: 33%; animation-delay: 6s; } .s-fx i:nth-child(4) { left: 46%; animation-delay: 1.5s; animation-duration: 14s; }
.s-fx i:nth-child(5) { left: 58%; animation-delay: 8s; } .s-fx i:nth-child(6) { left: 71%; animation-delay: 4.5s; animation-duration: 12s; }
.s-fx i:nth-child(7) { left: 84%; animation-delay: 2s; } .s-fx i:nth-child(8) { left: 94%; animation-delay: 7s; animation-duration: 15s; }
@keyframes s-fall { to { transform: translate3d(40px, 105vh, 0) rotate(300deg); } }
@media (prefers-reduced-motion: reduce) { .s-fx { display: none; } }

/* ---------- Theme B: kiểu Min Điện Máy ---------- */
body.theme-B .s-strip { display: none; }
body.theme-B .s-search { border-radius: 999px; border: 0; }
body.theme-B .s-search button { background: #fff; color: #111827; }
body.theme-B .s-cart { background: #111827; color: #fff; border-radius: 8px; padding: 6px 14px; }
body.theme-B .s-cart em { background: #fff; color: #111827; }
body.theme-B .s-bar a { font-weight: 700; }
body.theme-B .s-block, body.theme-B .s-card, body.theme-B .s-box { border-radius: 12px; }
body.theme-B .s-block--sale h2 { font-size: 28px; font-weight: 800; }
body.theme-B .s-card__buy { background: #111827; border-color: #111827; color: #fff !important; }
body.theme-B .s-card__vendor { display: none; }
body.theme-B .s-card__body { display: flex; }
body.theme-B .s-card__price { order: -1; }
body.theme-B .s-card__price b { font-size: 19px; }
body.theme-B .s-foot { background: #111827; }
body.theme-B .shop h2, body.theme-B h2 { font-weight: 800; }

/* ---------- Theme C: kiểu WD Digital ---------- */
body.theme-C .s-wrap { max-width: 1180px; }
body.theme-C .s-promo { font-weight: 500; font-size: 12.5px; padding: 7px 0; }
body.theme-C .s-strip { display: none; }
body.theme-C .s-catdrop summary { background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; font-weight: 600; }
body.theme-C .s-search button { display: none; }
body.theme-C .s-acc, body.theme-C .s-cart { border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .22); border-radius: 8px; padding: 4px 14px; min-height: 44px; justify-content: center; }
body.theme-C .s-acc small { display: none; }
body.theme-C .s-bar { display: none; }
body.theme-C .s-menu { flex-basis: 210px; border-radius: 10px; }
body.theme-C .s-menu a { font-weight: 500; }
body.theme-C .s-slider { height: 340px; }
body.theme-C .s-side .s-ban { min-height: 160px; }
body.theme-C .s-block--sale .s-block__head { flex-direction: column; align-items: center; }
body.theme-C .s-card { box-shadow: none; border: 1px solid #e3e6ec; }
body.theme-C .s-card__vendor { display: none; }
body.theme-C .s-card__buy { background: #fff; color: var(--ink) !important; border-color: #c9d0da; font-weight: 600; }
body.theme-C .s-card__name { font-weight: 600; }
body.theme-C .s-foot { background: #fff; color: var(--ink); border-top: 3px solid var(--head); }
body.theme-C .s-foot__end { border-top-color: var(--line); }

/* ---------- Màn hình hẹp ---------- */
@media (max-width: 1100px) {
    .s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .s-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .s-coupons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    body.shop { padding-bottom: 60px; }
    .s-menu, .s-bar, .s-acc small, .s-cart b, .s-hotkeys { display: none; }
    body.theme-B .s-bar, body.theme-C .s-bar { display: none; }
    .s-logo img { height: 44px; }
    .s-head .s-wrap { gap: 8px 12px; }
    .s-searchbox { order: 5; flex-basis: 100%; }
    .s-slider, .s-slider--wide, body.theme-C .s-slider { height: 210px; flex-basis: 100%; }
    .s-ban--big { padding: 12px; }
    .s-ban--big .s-ban__text { padding: 12px 14px; max-width: 240px; }
    .s-ban--big .s-ban__text b { font-size: 18px; }
    .s-ban--big em { display: none; }
    .s-side { flex-direction: row; flex-basis: 100%; }
    .s-side .s-ban { min-height: 84px; padding: 10px; }
    .s-side .s-ban__text b { font-size: 14px; }
    .s-side .s-ban__text small { display: none; }
    .s-banrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .s-banrow .s-ban { height: 76px; }
    .s-banrow--2 .s-ban { height: 110px; }
    .s-grid, .s-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .s-coupons { grid-template-columns: 1fr; }
    .s-gallery { grid-template-columns: 1fr; }
    .s-pd { padding: 14px; }
    .s-pd__side { flex-basis: 100%; }
    .s-filters { flex-basis: 100%; }
    .s-line__total { width: auto; margin-left: auto; }
    .s-mnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; text-align: center; }
    .s-mnav a { min-height: 56px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
}

/* Trang đăng nhập, đăng ký của khách (dùng lại trang tài khoản có sẵn) */
.shop .s-main > h1, .shop .s-main > .row, .shop .s-main > h2, .shop .s-main > hr, .shop .s-main > div:not(.s-wrap) { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
