/* tgxz.cn Hyper Dashboard Style — 滴滴批发网风格 */
@import url('https://cdn.jsdelivr.net/npm/@fontsource/nunito@5.0.15/400.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/nunito@5.0.15/600.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/nunito@5.0.15/700.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/nunito@5.0.15/800.css');

:root {
  --primary: #3688fc;
  --primary-dark: #1e6bff;
  --primary-light: #eff6ff;
  --primary-lighter: #f4f7ff;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --text: #919ca7;
  --text-dark: #2f3c4f;
  --text-heading: #2b4a7f;
  --text-strong: #333;
  --border: #e5e7eb;
  --danger: #e03e2d;
  --danger-light: #ffeaea;
  --orange: #e07919;
  --orange-light: #fff5e8;
  --green: #42d29d;
  --green-light: #ecfdf5;
  --radius: 12px;
  --radius-pill: 999px;
  --font: 'Nunito', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
}

html { font-size: 13px; }
html body {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
  min-height: 100vh;
}
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ===== Navbar ===== */
html body .navbar-acg {
  background: #fff !important;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.navbar-acg .navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}
.navbar-acg .navbar-brand img,
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.navbar-acg .nav-link {
  color: var(--text);
  font-size: .95rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all .15s;
}
.navbar-acg .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.navbar-acg .nav-link.active { color: #fff !important; background: var(--primary) !important; font-weight: 600; }

/* Navbar user actions */
.user-actions .btn {
  border-radius: var(--radius-pill);
  font-size: 13px;
  padding: 5px 12px;
}

/* ===== Hero Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, #fff 0%, var(--primary-lighter) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.hero-banner__copy { flex: 1 1 300px; min-width: 0; }
.hero-banner__eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.hero-banner__copy h1 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin: 0 0 8px; }
.hero-banner__copy p { font-size: 13px; color: var(--text); margin: 0 0 4px; }
.hero-banner__links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 220px;
}
.hero-banner__links a {
  color: var(--primary);
  font-size: 12px;
  word-break: break-all;
}
.hero-banner__links a:hover { text-decoration: underline; }

/* ===== Panel / Card ===== */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-body { padding: 16px; }

/* ===== Category Strip (Tabs) ===== */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #f7f9fc;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover { color: var(--primary); background: var(--primary-light); border-color: var(--primary); }
.chip.is-primary,
.chip.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.chip-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ===== Search Row ===== */
.search-row { max-width: 420px; }
.search-row .form-control,
.search-row .item-search-input {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 13px;
  background: #fff;
  color: var(--text-dark);
}
.search-row .form-control:focus,
.search-row .item-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54,136,252,.12);
  outline: none;
}

/* ===== Section Title ===== */
.section-title,
.category-heading {
  margin: 6px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

/* ===== Product Card (tgxz.cn style) ===== */
.item-list { margin-top: 0; }
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card__media-link { display: block; }
.product-card__media {
  aspect-ratio: 16/10;
  width: 100%;
  background-color: #f1f5f9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1 1 auto;
}
.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 600;
}
.tag-badge--success { background: var(--green-light); border-color: #bbf7d0; color: #15803d; }
.tag-badge--primary { background: var(--primary-light); border-color: #bfdbfe; color: #2563eb; }
.tag-badge--auto { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.tag-badge--hot {
  background: var(--danger-light);
  border-color: #fecaca;
  color: var(--danger);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
}
.product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.product-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--danger);
}
.product-card__stock {
  font-size: 12px;
  color: var(--text);
}
.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.product-card__actions .btn {
  flex: 1 1 0;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}
.product-card__actions .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.product-card__actions .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.product-card__actions .btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.product-card__actions .btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}
.product-card.is-soldout { opacity: .7; }
.product-card.is-soldout .product-card__media { filter: grayscale(1); }

/* ===== Button styles ===== */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 6px 16px;
  font-size: 13px;
  transition: all .15s;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-secondary {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}
.btn-outline-secondary:hover {
  background: var(--bg);
  border-color: var(--text);
  color: var(--text-dark);
}
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* ===== Empty / Loading states ===== */
.empty-state,
.loading-state,
.drawer-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ===== Cart ===== */
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.cart-count-badge.is-empty { display: none; }
.cart-drawer { width: min(92vw, 420px); }
.cart-drawer .offcanvas-header,
.cart-drawer .offcanvas-body { background: #fff; }
.cart-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding-right: 4px;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.cart-item__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f9;
}
.cart-item__body { min-width: 0; }
.cart-item__title { font-weight: 700; color: var(--text-dark); }
.cart-item__meta { margin-top: 4px; font-size: 12px; color: var(--text); }
.cart-item__controls,
.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.cart-item__qty { max-width: 146px; }
.cart-drawer-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--text-dark);
}
.summary-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.summary-actions .btn,
.summary-actions a { flex: 1 1 0; }

/* ===== Item page ===== */
.acg-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.acg-cover { padding: 0; }
.item-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}
.badge-soft-success { background: var(--green-light); color: #15803d; }
.badge-soft-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-soft-info { background: #f0f9ff; color: #0284c7; }
.badge-soft-danger { background: var(--danger-light); color: var(--danger); }
.price { font-size: 24px; font-weight: 800; color: var(--danger); }
.sku-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sku {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #f7f9fc;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
}
.sku:hover { border-color: var(--primary); color: var(--primary); }
.sku.is-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.badge-money {
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 12px;
  color: var(--text-dark);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54,136,252,.12);
}

.page-title-box {
  margin-bottom: 0;
}

.page-title-box .page-title {
  margin: 0;
  color: #2f3c4f;
  font-size: 18px;
  font-weight: 700;
  line-height: 75px;
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.buy-product,
.buy-shop {
  grid-column: 1 / -1;
}

.card {
  border: none;
  border-radius: 6px;
  background: #fff;
  box-shadow: rgba(154,161,171,.15) 0 0 35px 0;
  margin-bottom: 24px;
}

.card-body {
  padding: 1.5rem;
}

.sticky {
  position: static;
}

.buy-product .card-title {
  margin: 0 0 16px;
  color: #343a40;
  font-size: 15px;
  font-weight: 700;
}

.buy-product,
.buy-product p,
.buy-product div,
.buy-product li,
.js-product-description {
  color: #424242;
  font-size: 14px;
  line-height: 1.75;
}

.buy-product img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  cursor: zoom-in;
}

#buy-form .form-group {
  margin-bottom: 1rem;
}

.buy-item-name {
  margin: 0;
  color: #343a40;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.buy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-outline-primary {
  color: #3688fc;
  border: 1px solid #3688fc;
  background: transparent;
}

.badge {
  display: inline-block;
  padding: .28em .45em;
  border-radius: .25rem;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

.buy-price {
  color: #e03e2d;
  font-size: 28px;
  font-weight: 700;
}

.buy-price .unit {
  margin-right: 2px;
  font-size: 18px;
}

.buy-title {
  margin-bottom: 6px;
  color: #313a46;
  font-size: 14px;
  font-weight: 700;
}

.bootstrap-touchspin {
  width: 100%;
}

.bootstrap-touchspin .btn,
.bootstrap-touchspin .form-control {
  height: 38px;
  border-color: #dee2e6;
}

.bootstrap-touchspin .btn {
  min-width: 42px;
  background: #f6f7fb;
  color: #313a46;
  font-weight: 700;
}

.bootstrap-touchspin .form-control {
  max-width: 86px;
  border-left: 0;
  border-right: 0;
}

.captcha-group {
  max-width: 260px;
}

.captcha-img {
  height: 38px;
  cursor: pointer;
}

.pay-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pay-type {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #bdcfe1;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.pay-type:hover,
.pay-type.active {
  color: #3688fc;
  border-color: #3688fc;
  background: #fff;
}

.pay-type img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0 !important;
}

.buy-actions .btn {
  min-height: 38px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.buy-actions .btn-danger {
  border-color: #fa5c7c;
  background: #fa5c7c;
}

.buy-actions .cart-accent-btn {
  border: 0;
  background: #ffbc00;
  box-shadow: none;
  color: #fff !important;
}

.optional-card {
  width: 100%;
  min-height: 38px;
  border: 1px solid #bdcfe1;
  border-radius: 6px;
  background: #fff;
  color: #313a46;
  font-weight: 700;
  text-align: center;
}

.wholesale-table {
  color: #313a46;
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .pay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .page-title-box .page-title {
    line-height: 48px;
  }

  .card-body {
    padding: 1.1rem;
  }

  .buy-item-name {
    font-size: 17px;
  }

  .pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buy-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 379.98px) {
  .pay-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Order Query ===== */
.order-query-form .form-control {
  border-radius: var(--radius-pill);
  max-width: 360px;
}
.btn-search-query {
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 8px 24px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-search-query:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text);
  margin-top: 24px;
}

/* ===== Navbar mobile ===== */
@media (max-width: 991.98px) {
  .navbar-acg .container {
    flex-wrap: wrap;
    column-gap: .35rem;
  }
  .navbar-acg .navbar-brand {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
  }
  .navbar-acg .navbar-brand > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .navbar-acg .navbar-collapse {
    order: 10;
    flex-basis: 100%;
  }
  .navbar-acg .lang-switch { order: 4; }
  .navbar-acg .user-info-box,
  .navbar-acg .user-login-box {
    position: static;
    right: auto;
    top: auto;
    order: 5;
    min-width: 0;
  }
  .navbar-acg .navbar-toggler {
    order: 6;
    flex: 0 0 auto;
  }
  .user-info-box .dropdown-toggle {
    max-width: 46vw;
    padding-left: 0;
    padding-right: 0;
  }
  .user-info-box .dropdown-toggle > .d-flex { min-width: 0; }
  .user-info-box #username,
  .user-info-box #user-balance {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .hero-banner { padding: 16px; flex-direction: column; }
  .hero-banner__copy h1 { font-size: 20px; }
  .hero-banner__links { min-width: 0; width: 100%; }
  .cart-item { grid-template-columns: 54px minmax(0,1fr); }
  .cart-item__thumb { width: 54px; height: 54px; }
}

/* ===== search input in navbar ===== */
.search-input .input-group-text {
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 6px 12px;
  color: var(--text);
}
.search-input .form-control {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  border: 1px solid var(--border);
  border-left: none;
  font-size: 13px;
  padding: 6px 12px;
}
.search-input .form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}
.nav-pill-list .nav-link { border-radius: var(--radius-pill); }

/* ===== tgxz.cn Hyper storefront override ===== */
html body {
  background: #f7faff !important;
  color: #344054;
}

.header-navbar {
  min-height: 70px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #edf1f7;
  box-shadow: 0 12px 30px rgba(17, 38, 76, .08);
  display: flex;
  align-items: center;
}

.header-flex,
.hyper-wrapper {
  max-width: 980px;
}

.header-flex {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #3579de;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.logo-title:hover {
  color: #3579de;
}

.logo-title__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.logo-title__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-action {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 16px;
  border: 1px solid #e6ecf5;
  border-radius: 999px;
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(16, 42, 92, .08);
  color: #26364d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-action:hover {
  color: #1f65c8;
  transform: translateY(-1px);
}

.nav-action--cart {
  border-color: #ffe8c7;
  background: #fff6e8;
  color: #cf8129;
}

.mobile-cart-btn {
  border: 0;
  border-radius: 999px;
  background: #fff5e8;
  color: #f08a24;
  box-shadow: 0 6px 14px rgba(20, 40, 80, .12);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mobile-cart-float {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1041;
  width: 48px;
  height: 48px;
  padding: 0;
  box-shadow: 0 10px 20px rgba(20, 40, 80, .18);
}

.mobile-cart-float i {
  font-size: 20px;
  line-height: 1;
}

.cart-accent-btn {
  border: 0;
  background: linear-gradient(135deg, #fff4e8 0%, #ffe6cf 100%);
  color: #e47919 !important;
  box-shadow: 0 8px 16px rgba(255, 143, 63, .18);
}

.nav-action--primary {
  border-color: #4f87db;
  background: #4d85da;
  color: #fff;
}

.nav-action--primary:hover {
  color: #fff;
  background: #3d73cb;
}

.hyper-wrapper {
  padding-top: 16px !important;
}

.notice-strip {
  background: linear-gradient(90deg, #fff 0%, #f4f8ff 100%);
  border: 1px solid #dce8fb;
  border-left: 6px solid #4b91e8;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(63, 111, 182, .16);
  overflow: hidden;
}

.notice-strip__body {
  padding: 13px 18px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.notice-strip__body h1,
.notice-strip__body h2,
.notice-strip__body h3,
.notice-strip__body p {
  display: inline;
  margin: 0 8px 0 0;
  font-size: inherit;
  line-height: inherit;
}

.notice-strip__body a {
  color: #2e7edc;
  font-weight: 700;
}

.category-bar {
  margin-top: 22px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
}

.tab-link {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #e4eaf4;
  border-radius: 999px;
  background: #f6f9ff;
  box-shadow: 0 5px 14px rgba(24, 54, 96, .10);
  color: #314762;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tab-link:hover {
  border-color: #cbdcf4;
  background: #eef5ff;
  color: #2f73ca;
}

.tab-link.is-primary,
.tab-link.active {
  border-color: #4a82d7;
  background: #4d86de;
  color: #fff;
  box-shadow: 0 8px 18px rgba(55, 121, 219, .25);
}

.search-band {
  margin: 20px auto 10px;
  display: flex;
  justify-content: center;
}

.search-shell {
  position: relative;
  width: min(700px, 100%);
}

.search-shell__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #67a3e8;
  font-size: 17px;
  pointer-events: none;
  z-index: 2;
}

.search-shell .item-search-input {
  width: 100%;
  height: 49px;
  padding: 0 22px 0 52px;
  border: 1px solid #dfe6f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 57, 93, .08);
  color: #26364d;
  font-size: 14px;
  font-weight: 600;
}

.search-shell .item-search-input::placeholder {
  color: #a3adba;
}

.search-shell .item-search-input:focus {
  border-color: #88b7ef;
  box-shadow: 0 0 0 4px rgba(78, 137, 218, .12), 0 8px 22px rgba(31, 57, 93, .08);
}

.catalog-area {
  margin-top: 6px;
}

.category-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-section {
  border: 1px solid #dfe9f8;
  border-radius: 6px;
  background: #f9fbff;
  box-shadow: 0 10px 24px rgba(40, 82, 142, .08);
  overflow: hidden;
}

.category-header {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(90deg, #e7f0ff 0%, #f4f8ff 100%);
  border-bottom: 1px solid #dce8f8;
  color: #294f83;
}

.category-header h5 {
  margin: 0;
  color: #294f83;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.category-header i {
  color: #2f4f74;
  font-size: 12px;
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 6px;
  background: #f6f9fe;
}

.home-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border: 1px solid #ebeff5;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(20, 40, 70, .10);
}

.home-card:hover {
  border-color: #dae5f4;
  box-shadow: 0 5px 14px rgba(20, 40, 70, .14);
}

.home-card__media {
  position: relative;
  width: 52px;
  height: 48px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-card__thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf4ff;
}

.home-card__ribbon {
  position: absolute;
  top: 3px;
  left: -19px;
  width: 72px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  background: #49c797;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.home-card__info {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.home-card__info:hover {
  color: inherit;
}

.name-stock-container {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  align-items: center;
  gap: 12px;
}

.home-card__name {
  margin: 0;
  overflow: hidden;
  color: #2d3138;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card__stock {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid #d5e1f3;
  border-radius: 4px;
  background: #eef4ff;
  color: #3f68b8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.home-card__stock.is-soldout {
  background: #fff0f0;
  border-color: #ffd4d4;
  color: #c94848;
}

.price-wholesale-card {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}

.home-card__price-label {
  color: #4e5560;
  font-size: 14px;
  font-weight: 600;
}

.home-card__price {
  color: #d64a3a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.home-card__actions {
  width: 184px;
  flex: 0 0 184px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 9px;
}

.home-card__btn {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.home-card__btn--buy {
  background: #f66e5c;
  color: #fff;
  box-shadow: 0 5px 12px rgba(246, 110, 92, .22);
}

.home-card__btn--buy:hover {
  color: #fff;
  background: #ee604e;
}

.home-card__btn--cart {
  background: #fff1dd;
  color: #d78c2a;
  box-shadow: 0 5px 12px rgba(215, 140, 42, .12);
}

.home-card__btn--cart:hover {
  color: #bd7418;
  background: #ffe8c3;
}

.home-card__btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.cart-dialog {
  width: 97vw;
  max-width: 97vw;
}

@media (min-width: 768px) {
  .cart-dialog {
    width: 500px;
    max-width: 500px;
  }
}

.cart-modal .modal-content {
  border-radius: 14px;
  border: 1px solid #e6edf6;
  box-shadow: 0 18px 40px rgba(15, 41, 70, .18);
  overflow: hidden;
}

.cart-modal .modal-header {
  background: linear-gradient(90deg, #f3f7ff 0%, #fff 100%);
  border-bottom: 1px solid #edf2f7;
  padding: 14px 18px;
}

.cart-modal .modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2a44;
}

.cart-modal .modal-body {
  padding: 16px 18px 6px;
  background: #fff;
}

.cart-modal .modal-footer {
  border-top: 1px solid #edf2f7;
  background: #f9fbff;
  padding: 12px 18px;
}

.cart-scroll-hint {
  position: sticky;
  bottom: 0;
  text-align: center;
  font-size: 12px;
  color: #6f7f97;
  padding: 6px 0 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 60%);
  pointer-events: none;
  display: none;
}

#cart-qty-name {
  color: #2a3d5a;
  background: #f2f6ff;
  border: 1px solid #e1e9f8;
  border-radius: 10px;
  padding: 8px 12px;
}

#cart-qty-name .cart-qty-price {
  margin-left: 6px;
  font-weight: 700;
  color: #e53935;
}

#cart-items .border {
  border-color: #e7edf5 !important;
  background: #fbfdff;
}

#cart-items img {
  border: 1px solid #e7edf5;
  background: #fff;
}

#cart-checkout-form .buy-title {
  margin-bottom: 6px;
  color: #2f3c4f;
  font-weight: 700;
}

#cart-checkout-form .pay-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #e5ecf6;
}

#cart-checkout-form .pay-type {
  min-width: 94px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dfe7f3;
  border-radius: 10px;
  background: #fff;
  color: #2f3c4f;
  font-weight: 700;
}

#cart-checkout-form .pay-type.active {
  border-color: #4d86de;
  background: #eef5ff;
  color: #2f73ca;
  box-shadow: 0 8px 16px rgba(58, 122, 212, .14);
}

#cart-checkout-form .pay-type img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#cart-total-row {
  background: #f3f7ff;
  border: 1px solid #e3ecfb;
  border-radius: 12px;
  padding: 10px 12px;
}

#cart-total-row .total-label {
  font-size: 14px;
  color: #4b5d78;
}

#cart-total-row .total-amount {
  font-size: 16px;
  color: #d0021b !important;
  font-weight: 700;
}

.cart-item-total {
  font-size: 12px;
  color: #2f3c4f;
  font-weight: 600;
}

@media (max-width: 767px) {
  .cart-dialog {
    width: 92vw;
    max-width: 92vw;
    margin: 8px auto;
  }

  .cart-modal .modal-content {
    max-height: 82vh;
  }

  .cart-modal .modal-body {
    max-height: calc(82vh - 130px);
    overflow-y: auto;
  }
}

@media (max-width: 576px) {
  .cart-item-image {
    display: none !important;
  }

  .cart-item-title,
  #cart-modal .modal-title {
    font-size: 13px !important;
  }

  .cart-item-qty .form-control {
    width: 64px !important;
  }

  .cart-item-meta,
  .cart-item-total,
  #cart-total-row .total-label,
  #cart-total-row .total-amount,
  #cart-modal .btn,
  #cart-modal .form-control {
    font-size: 12px !important;
  }
}

.home-card.is-soldout {
  opacity: .78;
}

.home-card.is-soldout .home-card__thumb {
  filter: grayscale(1);
}

.help-section {
  margin-top: 0;
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #fff;
}

.help-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ecf1f8;
  border-radius: 6px;
  background: #fbfdff;
  color: #344054;
  font-size: 14px;
  line-height: 1.6;
}

.help-row strong {
  color: #294f83;
}

@media (max-width: 991.98px) {
  .header-flex {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .home-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .home-card__info {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .home-card__actions {
    width: 100%;
    flex-basis: 100%;
    margin-left: 62px;
  }
}

@media (max-width: 575.98px) {
  .hyper-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .logo-title {
    font-size: 20px;
  }

  .logo-title__icon {
    width: 34px;
    height: 34px;
  }

  .nav-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .notice-strip__body {
    font-size: 13px;
  }

  .tab-link {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
  }

  .search-shell .item-search-input {
    height: 46px;
  }

  .name-stock-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .home-card__stock {
    justify-self: start;
  }

  .home-card__actions {
    margin-left: 0;
  }

  .help-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
