/* =============================================================================
   Kho Sỉ Sao Mai — child theme CSS (chuyển từ bản Next.js app/globals.css)
   Token màu: cam thương hiệu #EA410D (khớp logo), kraft (nhãn thùng), xanh/cam/xám tồn kho.
   ============================================================================= */
:root {
  --ks-brand: #ea410d;        /* cam logo SM */
  --ks-brand-dark: #c9360a;   /* hover/nhấn: chữ trắng tương phản 5.2:1 */
  --ks-brand-soft: #fdece6;
  --ks-ink: #1f2328;
  --ks-ink-soft: #3f454c;
  --ks-muted: #666e7a;
  --ks-line: #e5e8ea;
  --ks-surface: #f2f3f5;
  --ks-paper: #ffffff;
  --ks-kraft: #e9d8b9;
  --ks-kraft-deep: #c9a978;
  --ks-kraft-ink: #5b4323;
  --ks-stock: #1b8a5a;
  --ks-stock-soft: #e6f4ed;
  --ks-low: #c77700;
  --ks-low-soft: #fff4e0;
  --ks-out: #8a9099;
  --ks-zalo: #0068ff;
  --ks-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ks-sans: "Be Vietnam Pro", system-ui, sans-serif;
  --ks-shadow: 0 1px 2px rgb(31 35 40 / 0.06), 0 4px 14px rgb(31 35 40 / 0.06);
  --ks-radius: 12px;
  --ks-max: 1280px;
}

/* ---------- Nền tảng (đè GeneratePress) ---------- */
body { font-family: var(--ks-sans); color: var(--ks-ink); background: var(--ks-paper); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ks-brand-dark); }
h1, h2, h3, h4 { color: var(--ks-ink); font-weight: 600; line-height: 1.2; }
.ks-display { font-family: var(--ks-display); letter-spacing: 0.005em; line-height: 1; text-transform: uppercase; font-weight: 700; }
.ks-tabular { font-variant-numeric: tabular-nums; }
.ks-container { max-width: var(--ks-max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-content, .inside-article, .site-main { padding: 0 !important; margin: 0 !important; }
.separate-containers .inside-article, .one-container .site-content { background: transparent; }
#page { background: var(--ks-paper); }
.ks-section { padding: 40px 0; }
@media (min-width: 768px) { .ks-section { padding: 56px 0; } }
.ks-h2 { font-family: var(--ks-display); text-transform: uppercase; font-weight: 700; font-size: 30px; line-height: 1; margin: 0; }
@media (min-width: 768px) { .ks-h2 { font-size: 38px; } }
.ks-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ks-section-head a { font-size: 14px; font-weight: 500; color: var(--ks-brand-dark); }
.ks-section-head a:hover { text-decoration: underline; }
.ks-surface { background: var(--ks-surface); }
:focus-visible { outline: 2px solid var(--ks-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ks-ic { width: 20px; height: 20px; flex: none; }
.ks-ic-brand { color: var(--ks-brand); }

/* Nút */
.ks-btn, .ks-btn-dark, .ks-btn-outline, .ks-btn-zalo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.ks-btn { background: var(--ks-brand); color: #fff; }
.ks-btn:hover { background: var(--ks-brand-dark); color: #fff; }
.ks-btn-dark { background: var(--ks-ink); color: #fff; }
.ks-btn-dark:hover { background: var(--ks-brand); color: #fff; }
.ks-btn-outline { background: transparent; color: var(--ks-ink); border-color: var(--ks-ink); }
.ks-btn-outline:hover { background: var(--ks-ink); color: #fff; }
.ks-btn-zalo { background: var(--ks-zalo); color: #fff; }
.ks-btn-zalo:hover { filter: brightness(1.1); color: #fff; }
.ks-btn-lg { height: 48px; font-family: var(--ks-display); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }

/* Nhãn thùng kraft — chi tiết nhận diện */
.ks-kraft { background: var(--ks-kraft); color: var(--ks-kraft-ink); box-shadow: 1px 1px 0 var(--ks-kraft-deep);
  background-image: repeating-linear-gradient(135deg, rgb(91 67 35 / .04) 0 2px, transparent 2px 6px); }
.ks-pack { display: inline-flex; align-items: center; gap: 4px; border-radius: 3px; font-family: var(--ks-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; font-size: 11px; }
.ks-pack.is-md { padding: 4px 8px; font-size: 14px; }

/* Nhãn tồn */
.ks-stock { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ks-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ks-stock.is-in { background: var(--ks-stock-soft); color: var(--ks-stock); }
.ks-stock.is-low { background: var(--ks-low-soft); color: var(--ks-low); }
.ks-stock.is-out { background: var(--ks-surface); color: var(--ks-out); }

/* ---------- Header ---------- */
.ks-tape { height: 6px; background: repeating-linear-gradient(-45deg, var(--ks-brand) 0 12px, var(--ks-brand-dark) 12px 24px); }
.ks-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ks-line); }
.admin-bar .ks-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ks-header { top: 46px; } }
.ks-header-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 768px) { .ks-header-row { gap: 20px; padding-top: 12px; padding-bottom: 12px; } }
.ks-menu-btn { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 14px; color: var(--ks-ink); cursor: pointer; }
.ks-menu-btn:hover { background: var(--ks-surface); }
.ks-menu-btn .ks-ic { width: 24px; height: 24px; }
.ks-menu-label { display: none; }
@media (min-width: 768px) { .ks-menu-btn { border: 1px solid var(--ks-line); padding: 8px 12px; } .ks-menu-btn .ks-ic { width: 20px; height: 20px; } .ks-menu-label { display: inline; } }
.ks-brand { flex: none; }
.ks-logo { display: flex; align-items: center; gap: 8px; }
/* Logo SM (ảnh) + tên "Kho Sỉ Sao Mai" (chữ HTML). Điện thoại: logo 28px, tên 2 dòng để header không cao/không tràn */
.ks-logo-sm { display: block; height: 28px; width: auto; flex: none; }
.ks-logo-name { font-family: var(--ks-display); font-weight: 700; text-transform: uppercase; color: var(--ks-ink); font-size: 14px; line-height: 1.05; letter-spacing: .01em; white-space: nowrap; }
.ks-logo-name > span { display: block; }
.ks-logo-trang .ks-logo-name { color: #fff; }
@media (min-width: 768px) {
  .ks-logo { gap: 10px; }
  .ks-logo-sm { height: 40px; }
  .ks-logo-name { font-size: 20px; }
  .ks-logo-name > span { display: inline; }
}
.ks-footer .ks-logo-sm { height: 36px; }
.ks-footer .ks-logo-name { font-size: 18px; }
.ks-footer .ks-logo-name > span { display: inline; }

.ks-search { position: relative; display: flex; width: 100%; }
.ks-search input[type="search"] { width: 100%; height: 44px; border: 1px solid var(--ks-line); background: var(--ks-surface); border-radius: 10px; padding: 0 48px 0 16px; font: inherit; font-size: 15px; color: var(--ks-ink); }
.ks-search input[type="search"]:focus { border-color: var(--ks-brand); background: #fff; outline: none; }
.ks-search button { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; border: 0; background: none; color: var(--ks-ink-soft); cursor: pointer; display: grid; place-items: center; }
.ks-search button:hover { color: var(--ks-brand); }
.ks-search-desktop { display: none; flex: 1; }
.ks-search-mobile { padding: 0 16px 10px; }
.ks-search-mobile input[type="search"] { height: 40px; }
@media (min-width: 768px) { .ks-search-desktop { display: flex; } .ks-search-mobile { display: none; } }
.ks-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .ks-header-actions { gap: 12px; } }
.ks-hotline { display: none; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; font-size: 14px; }
.ks-hotline:hover { background: var(--ks-surface); }
.ks-hotline span { display: flex; flex-direction: column; line-height: 1.15; }
.ks-hotline small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ks-muted); }
.ks-hotline strong { font-variant-numeric: tabular-nums; }
.ks-nav-link { display: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ks-ink-soft); }
.ks-nav-link:hover { background: var(--ks-surface); }
.ks-header .ks-btn-outline { display: none; height: 40px; padding: 0 12px; font-size: 16px; }
@media (min-width: 640px) { .ks-header .ks-btn-outline { display: inline-flex; } }
@media (min-width: 1024px) { .ks-hotline, .ks-nav-link { display: flex; } }
.ks-cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.ks-cart-btn:hover { background: var(--ks-surface); }
.ks-cart-btn .ks-ic { width: 24px; height: 24px; }
.ks-cart-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ks-brand); color: #fff; font-family: var(--ks-display); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.ks-cart-count.is-empty { display: none; }

/* ---------- Ngăn kéo danh mục ---------- */
.ks-drawer { position: fixed; inset: 0; z-index: 100; }
.ks-drawer[hidden] { display: none; }
.ks-drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgb(31 35 40 / .5); border: 0; padding: 0; cursor: pointer; }
.ks-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 85vw; max-width: 360px; background: #fff; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .4); display: flex; flex-direction: column; }
.ks-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ks-line); flex: none; }
.ks-drawer-title { font-size: 24px; }
.ks-drawer-x { background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--ks-ink); }
.ks-drawer-x:hover { background: var(--ks-surface); }
.ks-drawer-x .ks-ic { width: 24px; height: 24px; }
.ks-drawer-list { list-style: none; margin: 0; padding: 4px 0; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ks-drawer-item { border-bottom: 1px solid rgb(229 232 234 / .7); }
.ks-drawer-row { display: flex; align-items: stretch; }
.ks-drawer-row > a { flex: 1; min-width: 0; padding: 12px 16px; font-weight: 600; color: var(--ks-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-drawer-row > a:hover { background: var(--ks-surface); color: var(--ks-brand-dark); }
.ks-drawer-toggle { width: 48px; flex: none; border: 0; border-left: 1px solid rgb(229 232 234 / .7); background: none; color: var(--ks-muted); cursor: pointer; display: grid; place-items: center; }
.ks-drawer-toggle:hover { background: var(--ks-surface); color: var(--ks-ink); }
.ks-drawer-toggle .ks-ic { width: 16px; height: 16px; transition: transform .15s; }
.ks-drawer-toggle.is-open .ks-ic { transform: rotate(90deg); }
.ks-drawer-sub { list-style: none; margin: 0; padding: 0 0 4px; background: rgb(242 243 245 / .6); }
.ks-drawer-sub[hidden] { display: none; }
.ks-drawer-sub a { display: block; padding: 8px 16px 8px 28px; font-size: 14px; color: var(--ks-ink-soft); }
.ks-drawer-sub a:hover { color: var(--ks-brand-dark); }
.ks-drawer-empty { padding: 16px; color: var(--ks-muted); }
.ks-drawer-foot { flex: none; border-top: 1px solid var(--ks-line); padding: 12px; font-size: 14px; }
.ks-drawer-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ks-drawer-foot-grid a { height: 42px; font-size: 14px; }
.ks-drawer-foot-links { display: flex; justify-content: center; gap: 24px; margin-top: 4px; }
.ks-drawer-foot-links a { padding: 6px 8px; color: var(--ks-muted); }
.ks-drawer-foot-links a:hover { color: var(--ks-ink); }

/* ---------- Nút nổi ---------- */
.ks-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.ks-fab[hidden] { display: none; }
.ks-fab a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .2); }
.ks-fab a .ks-ic { width: 24px; height: 24px; }
.ks-fab-zalo { background: var(--ks-zalo); }
.ks-fab-zalo .ks-ic { width: 28px; height: 28px; }
.ks-fab-call { background: var(--ks-brand); }
.ks-fab-call:hover { background: var(--ks-brand-dark); }
body.ks-has-bar .ks-fab { bottom: 100px; }

/* ---------- Footer ---------- */
.ks-footer { margin-top: 64px; border-top: 1px solid var(--ks-line); background: var(--ks-surface); }
.ks-footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .ks-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ks-footer-desc { margin: 16px 0 0; max-width: 360px; font-size: 14px; color: var(--ks-ink-soft); }
.ks-footer-contact { margin: 20px 0 0; font-size: 14px; }
.ks-footer-contact > div { display: flex; gap: 8px; margin-bottom: 6px; }
.ks-footer-contact dt { width: 90px; flex: none; color: var(--ks-muted); }
.ks-footer-contact dd { margin: 0; font-weight: 500; }
.ks-footer-h { font-size: 18px; margin: 0 0 12px; }
.ks-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ks-ink-soft); }
.ks-footer li { margin-bottom: 8px; }
.ks-footer li a:hover { color: var(--ks-brand); }
.ks-footer-bottom { border-top: 1px solid var(--ks-line); }
.ks-footer-bottom-row { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; padding-bottom: 16px; font-size: 12px; color: var(--ks-muted); }
@media (min-width: 640px) { .ks-footer-bottom-row { flex-direction: row; justify-content: space-between; } }

/* ---------- Breadcrumb ---------- */
.ks-crumbs { font-size: 14px; color: var(--ks-muted); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ks-crumbs::-webkit-scrollbar { display: none; }
.ks-crumbs a:hover { color: var(--ks-brand-dark); }
.ks-crumbs .sep { margin: 0 6px; }

/* ---------- Thẻ sản phẩm (WooCommerce loop) ---------- */
.woocommerce ul.products, ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.woocommerce ul.products li.product, ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.ks-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ks-line); border-radius: var(--ks-radius); background: #fff; transition: box-shadow .15s; }
.ks-card:hover { box-shadow: var(--ks-shadow); }
.ks-card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ks-surface); }
.ks-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ks-card:hover .ks-card-media img { transform: scale(1.03); }
.ks-card-media .ks-pack { position: absolute; left: 8px; top: 8px; }
.ks-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 12px; }
.ks-card-brand { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ks-muted); }
.ks-card-title { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ks-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ks-price { display: flex; flex-direction: column; gap: 2px; }
.ks-price-main { display: flex; align-items: baseline; gap: 6px; }
.ks-price-amount { font-family: var(--ks-display); font-weight: 700; font-size: 18px; color: var(--ks-brand-dark); font-variant-numeric: tabular-nums; }
.ks-price-amount.is-ref { color: var(--ks-ink-soft); }
.ks-price-unit { font-size: 12px; color: var(--ks-muted); }
.ks-price-label { font-size: 12px; color: var(--ks-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ks-price-label b { color: var(--ks-ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.ks-price.is-lg .ks-price-amount { font-size: 36px; }
.ks-add { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; color: var(--ks-ink); cursor: pointer; }
.ks-add:hover { border-color: var(--ks-brand); color: var(--ks-brand); }
.ks-add.is-done { background: var(--ks-stock); border-color: var(--ks-stock); color: #fff; }
.ks-add.loading { opacity: .5; }
.ks-add .ks-ic { width: 20px; height: 20px; }
.ks-ask { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--ks-zalo); color: #fff; font-size: 12px; font-weight: 600; }
.ks-ask:hover { color: #fff; filter: brightness(1.1); }
.ks-ask .ks-ic { width: 16px; height: 16px; }
.ks-ask.is-lg { height: 40px; padding: 0 16px; font-size: 14px; }
.ks-ask.is-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.ks-ask.is-icon .ks-ic { width: 20px; height: 20px; }

/* Ẩn phần WooCommerce không dùng */
.woocommerce-result-count, .woocommerce-ordering, .woocommerce-products-header__title, .woocommerce-breadcrumb, .product_meta, .woocommerce-tabs .reviews_tab,
.woocommerce .star-rating, .woocommerce-product-rating, .woocommerce-review-link, .woocommerce-LoopProduct-link .count, .product-category .count { display: none !important; }
.woocommerce-store-notice { background: var(--ks-brand); }

/* WooCommerce thêm ::before/::after display:table vào ul.products → thành ô lưới rỗng */
.woocommerce ul.products::before, .woocommerce ul.products::after, ul.products::before, ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product .ks-card-media img { width: 100%; height: 100%; }

/* Lưới sản phẩm: ép số cột trên mọi màn hình (đè CSS WooCommerce/GeneratePress) */
.woocommerce ul.products, .woocommerce-page ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 640px) { .woocommerce ul.products, .woocommerce-page ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .woocommerce ul.products, .woocommerce-page ul.products, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; max-width: none !important; clear: none !important; }

/* GeneratePress .site-content là flex: cột chính phải co theo màn hình, không giãn theo nội dung nowrap */
.site-content > .content-area, .site-content > #primary, #main, .inside-article, .entry-content { min-width: 0 !important; max-width: 100% !important; width: 100% !important; flex: 1 1 0% !important; }
.ks-archive, .ks-quick, .ks-blog, .ks-article, .ks-aff, .ks-contact { min-width: 0; max-width: 100%; }
.ks-chips, .ks-catbar, .ks-crumbs { max-width: 100%; }

/* Nút Kiến thức trên header (hiện cả mobile) */
.ks-blog-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--ks-brand); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ks-blog-btn .ks-ic { width: 18px; height: 18px; }
.ks-blog-btn:hover { background: var(--ks-brand-dark); color: #fff; }
@media (max-width: 400px) { .ks-blog-btn { padding: 0 8px; font-size: 12px; } }
@media (min-width: 768px) { .ks-blog-btn { height: 40px; padding: 0 14px; font-size: 14px; } }
/* Gợi ý tìm kiếm */
.ks-search { position: relative; }
.ks-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; background: #fff; border: 1px solid var(--ks-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); max-height: min(70vh, 520px); overflow: auto; text-align: left; }
.ks-search-mobile .ks-suggest { left: 16px; right: 16px; }
.ks-sg-head { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ks-muted); }
.ks-sg-keys, .ks-sg-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
.ks-sg-keys a { padding: 6px 10px; border-radius: 999px; background: var(--ks-surface, #f5f5f5); font-size: 13px; color: var(--ks-ink); }
.ks-sg-cats a { display: inline-flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--ks-line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ks-ink); }
.ks-sg-cats a small { font-weight: 400; color: var(--ks-muted); font-size: 11px; }
.ks-sg-keys a:hover, .ks-sg-cats a:hover { background: var(--ks-brand-soft); border-color: var(--ks-brand); }
.ks-sg-list { list-style: none; margin: 0; padding: 0 6px 6px; }
.ks-sg-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ks-ink); }
.ks-sg-list a:hover { background: var(--ks-surface, #f5f5f5); }
.ks-sg-list img, .ks-sg-noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eee; flex: none; }
.ks-sg-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ks-sg-name { font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ks-sg-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ks-sg-meta b { color: var(--ks-brand); }
.ks-sg-stock { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #e8f6ec; color: #1f7a3a; }
.ks-sg-stock.is-low { background: #fff4e0; color: #9a5b00; }
.ks-sg-all { display: block; padding: 10px 14px 12px; font-size: 13px; font-weight: 600; color: var(--ks-brand); border-top: 1px solid var(--ks-line); }
.ks-sg-empty { padding: 14px; font-size: 13px; color: var(--ks-muted); }
