:root {
  --black: #0c0c0d;
  --deep: #111820;
  --gold: #d8a85d;
  --gold-dark: #a97935;
  --red: #e92b36;
  --text: #1f1f1f;
  --muted: #777;
  --line: #ececec;
  --soft: #f5f5f5;
  --white: #fff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #e9e9e9;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.mobile-body {
  min-height: 100vh;
}

.site-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7f7f7;
  padding-bottom: 78px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.store-header,
.user-header,
.product-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-header {
  color: var(--white);
  background: var(--black);
}

.light-header,
.user-header,
.product-topbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-row,
.product-topbar,
.user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.05;
}

.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand em {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 9px;
  font-weight: 900;
}

.mini-brand strong {
  font-size: 14px;
}

.mini-brand em {
  font-size: 7px;
}

.mini-brand .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px;
}

.menu-button {
  display: grid;
  gap: 5px;
  width: 34px;
  padding: 4px;
  background: none;
  border: 0;
}

.menu-button span {
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.header-actions,
.user-header-actions,
.summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-icon,
.user-header-actions button,
.summary-actions button,
.plain-icon {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  white-space: nowrap;
}

.header-contact {
  border-radius: 999px;
  padding: 8px 11px;
  color: #111;
  background: linear-gradient(135deg, var(--gold), #f6d28f);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(216, 168, 93, 0.28);
}

.cart-link {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

.cart-link i {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

.cart-shape {
  width: 20px;
  height: 17px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

.cart-shape::before {
  content: "";
  display: block;
  width: 14px;
  height: 7px;
  margin: -7px auto 0;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-form button {
  height: 46px;
  padding: 0 18px;
  border: 0;
  color: #151515;
  background: linear-gradient(180deg, #efc985, var(--gold));
  font-weight: 700;
}

.slim-search {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.hero-slider {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  background: #080808;
}

.hero-image {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
}

.hero-link {
  display: block;
  color: inherit;
}

.hero-copy {
  position: absolute;
  left: 24px;
  bottom: 48px;
  width: 58%;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 10vw, 54px);
  line-height: 1;
  letter-spacing: 1px;
}

.hero-copy p {
  margin: 0 0 14px;
  color: #eac88e;
  font-size: 15px;
  font-weight: 700;
}

.hero-copy .hero-line {
  font-size: 22px;
}

.gold-button,
.shop-promo a,
.buy-bar .gold-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #171717;
  background: linear-gradient(180deg, #f4cf8d, var(--gold));
  font-weight: 800;
}

.slider-dots {
  position: absolute;
  left: 24px;
  bottom: 18px;
  display: flex;
  gap: 9px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.slider-dots button.active {
  width: 26px;
  background: #fff;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 14px 14px 0;
  padding: 14px 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-strip article {
  padding: 0 6px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  place-items: center;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.feature-strip strong {
  display: block;
  font-size: 13px;
}

.feature-strip p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.section-block {
  padding: 18px 14px 4px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title span {
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.section-title a {
  margin-left: auto;
  color: #555;
  font-size: 13px;
}

.section-title.compact {
  justify-content: center;
  margin-top: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card,
.card,
.list-card,
.admin-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.card-link-label {
  display: block;
  color: inherit;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: var(--radius);
  color: #777;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-img {
  height: 142px;
  background: #101010;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-one img {
  object-position: center top;
}

.product-img-two img {
  object-position: center 28%;
}

.product-img-three img {
  object-position: right 36%;
}

.steel-img img {
  object-position: center 58%;
}

.product-info {
  padding: 10px;
}

.product-info h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.product-info p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-row strong,
.product-price,
.list-card strong {
  color: var(--red);
  font-weight: 900;
}

.price-row button,
.list-card button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 9px;
  white-space: nowrap;
}

.bottom-nav,
.buy-bar {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
  transform: translateX(-50%);
}

.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
  height: 68px;
}

.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #333;
  font-size: 12px;
}

.bottom-nav span {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.bottom-nav .nav-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  font-size: 0;
  color: currentColor;
}

.nav-home::before {
  content: "";
  position: absolute;
  inset: 8px 4px 4px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.nav-home::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-category {
  display: block !important;
}

.nav-category::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 11px 0 0 0 currentColor, 0 11px 0 0 currentColor, 11px 11px 0 0 currentColor;
}

.nav-cart::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 6px 6px;
}

.nav-cart::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 3px;
  bottom: 2px;
  height: 4px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 999px;
}

.nav-user::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-user::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 16px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 4px 4px;
}

.bottom-nav a.active {
  color: var(--gold-dark);
  font-weight: 800;
}

.product-topbar {
  padding: 10px 12px;
}

.plain-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #111;
  font-size: 22px;
}

.product-main {
  padding-bottom: 18px;
}

.product-gallery {
  background: #0b0b0b;
}

.product-video-top {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px 12px;
  background: #101010;
}

.video-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-stage video,
.single-video-page video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #000;
}

.video-open-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #111;
  background: rgba(248, 210, 143, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.video-thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.video-thumb-row button {
  min-width: 0;
  border: 1px solid rgba(216, 168, 93, 0.45);
  border-radius: 9px;
  padding: 8px 4px;
  color: #f5d9a4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.video-thumb-row button.active {
  color: #111;
  background: linear-gradient(135deg, var(--gold), #f7d28f);
}

.gallery-stage {
  position: relative;
  height: 314px;
  overflow: hidden;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-count {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 36px;
  transform: translateY(-50%);
}

.gallery-arrow.left {
  left: 16px;
}

.gallery-arrow.right {
  right: 16px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: #050505;
}

.thumb-row button {
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: #111;
}

.thumb-row button.active {
  border-color: var(--gold);
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  margin: 12px 12px 0;
  padding: 16px;
}

.summary-top,
.card-title,
.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 34px;
}

.product-summary h1 {
  margin: 10px 0 9px;
  font-size: 20px;
  line-height: 1.35;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gold-dark);
  background: #fff5e5;
  font-size: 12px;
  font-weight: 700;
}

.summary-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #777;
  font-size: 13px;
}

.card-title h2 {
  margin: 0;
  font-size: 17px;
}

.card-title a,
.card-title span {
  color: #777;
  font-size: 13px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.review-grid article {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: #fafafa;
}

.review-grid strong {
  display: block;
  font-size: 12px;
}

.stars,
.score-row b {
  color: var(--red);
  letter-spacing: 1px;
}

.review-grid p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #555;
  font-size: 12px;
  text-align: center;
}

.score-row span {
  display: grid;
  gap: 3px;
}

.shop-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px;
}

.shop-entry a {
  padding: 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

.detail-section {
  padding: 0 12px;
}

.detail-card {
  min-height: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.detail-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.detail-card div {
  padding: 12px 14px 14px;
  color: var(--text);
  text-shadow: none;
}

.detail-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.product-video-list {
  display: grid;
  gap: 12px;
}

.video-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #000;
}

.video-card p {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--muted);
  font-weight: 700;
}

.single-video-page {
  min-height: 100vh;
  padding: 10px;
  background: #050505;
}

.single-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 14px;
  color: #fff;
}

.single-video-header a {
  color: #f5d9a4;
  font-weight: 800;
}

.single-video-header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-address-button {
  margin: 14px 0;
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  color: #111;
  background: linear-gradient(135deg, var(--gold), #f6d28f);
  font-weight: 900;
}

.copy-fallback {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #f7f7f7;
  white-space: pre-wrap;
  word-break: break-all;
}

.buy-bar {
  grid-template-columns: 52px 52px 52px 1fr 1fr;
  gap: 7px;
  align-items: center;
  height: 72px;
  padding: 9px 10px;
}

.buy-bar a,
.buy-bar button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.buy-bar .red-wide {
  min-height: 46px;
  color: #fff;
  background: var(--red);
  font-size: 15px;
}

.buy-bar .gold-wide {
  min-height: 46px;
  font-size: 15px;
}

.search-result {
  margin: 9px 0 0;
  color: #666;
  font-size: 13px;
}

.search-result strong {
  color: var(--red);
}

.category-layout {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: calc(100vh - 130px);
}

.category-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 1px;
  background: #f0f0f0;
}

.category-sidebar button,
.category-sidebar a {
  display: grid;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-left: 3px solid transparent;
  background: #f9f9f9;
  color: #333;
  font-size: 13px;
  padding: 0 12px;
}

.category-sidebar button.active,
.category-sidebar a.active {
  color: var(--gold-dark);
  background: #fff;
  border-left-color: var(--gold);
  font-weight: 800;
}

.category-content {
  min-width: 0;
  padding: 10px;
}

.sort-tabs {
  position: sticky;
  top: 120px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sort-tabs button,
.sort-tabs a {
  display: grid;
  place-items: center;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: 13px;
}

.sort-tabs button.active,
.sort-tabs a.active {
  color: #161616;
  background: #f2cc86;
  font-weight: 800;
}

.category-products {
  display: grid;
  gap: 10px;
}

.list-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  overflow: hidden;
  padding: 9px;
}

.list-card[hidden] {
  display: none;
}

.list-card img {
  width: 108px;
  height: 108px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center top;
}

.list-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.list-card p {
  margin: 7px 0;
  color: #777;
  font-size: 12px;
}

.list-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.user-page {
  background: #f8f8f8;
}

.user-header {
  padding: 14px 16px;
}

.user-header-actions button {
  color: #222;
}

.user-main {
  padding-bottom: 8px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 18px 18px;
  background: #fff;
}

.avatar,
.small-avatar {
  border-radius: 50%;
  background: linear-gradient(145deg, #d8d8d8, #f4f4f4);
}

.avatar {
  width: 72px;
  height: 72px;
}

.profile-card h1 {
  margin: 0;
  font-size: 22px;
}

.profile-card h1 span {
  display: inline-flex;
  margin-left: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #8b6026;
  background: #f4d9ac;
  font-size: 12px;
  vertical-align: middle;
}

.profile-card p {
  margin: 8px 0 0;
  color: #777;
}

.quick-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.order-grid {
  grid-template-columns: repeat(5, 1fr);
}

.tool-grid {
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid button {
  position: relative;
  min-height: 62px;
  border: 0;
  border-radius: 10px;
  background: #fafafa;
  color: #222;
  font-size: 12px;
  font-weight: 700;
}

.quick-grid i,
.admin-user i,
.admin-shortcuts i {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-style: normal;
}

.order-grid button {
  display: grid;
  align-content: center;
  gap: 6px;
}

.order-grid i {
  margin: 0 auto;
}

.shop-promo {
  position: relative;
  min-height: 128px;
  margin: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
}

.shop-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.72;
}

.shop-promo div {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: #fff;
}

.shop-promo h2,
.shop-promo p {
  margin: 0 0 9px;
}

.menu-list {
  display: grid;
  padding: 0;
}

.menu-list a {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.menu-list a:last-child {
  border-bottom: 0;
}

.admin-body {
  min-width: 1080px;
  background: #f4f5f7;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(216, 168, 93, 0.18), transparent 36%), #0c1117;
}

.login-panel {
  width: min(100%, 420px);
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.login-brand {
  margin-bottom: 18px;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.login-panel p {
  margin: 0 0 18px;
  color: #777;
}

.login-panel small {
  display: block;
  margin-top: 14px;
  color: #888;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  color: #fff;
  background: linear-gradient(180deg, #111a23, #0b1219);
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-brand strong {
  font-size: 23px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a,
.admin-menu button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  text-align: left;
  font-size: 15px;
}

.admin-menu a.active,
.admin-menu a:hover,
.admin-menu button:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(216, 168, 93, 0.55), rgba(216, 168, 93, 0.15));
}

.menu-group {
  display: grid;
  gap: 2px;
}

.menu-group a {
  padding-left: 32px;
  font-size: 14px;
}

.admin-content {
  padding: 24px 28px 36px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-weight: 800;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 25px;
}

.admin-topbar p {
  margin: 6px 0 0;
  color: #777;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user button {
  position: relative;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.small-avatar {
  width: 36px;
  height: 36px;
}

.admin-card {
  margin-bottom: 16px;
  padding: 22px;
}

.admin-section-title h2,
.member-card h2 {
  margin: 0;
  font-size: 20px;
}

.admin-section-title a,
.admin-section-title select {
  color: #666;
}

.admin-section-title select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric-grid article {
  padding: 22px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.metric-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--gold);
  font-weight: 900;
}

.metric-grid strong {
  display: block;
  font-size: 25px;
}

.metric-grid p {
  margin: 8px 0 0;
  color: #777;
}

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.admin-shortcuts button,
.admin-shortcuts a {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
}

.product-shortcuts {
  grid-template-columns: repeat(4, 1fr);
}

.product-shortcuts button span {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 13px;
  font-weight: 400;
}

.product-shortcuts a span {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 13px;
  font-weight: 400;
}

.member-card {
  cursor: pointer;
}

.member-card p {
  margin: 16px 0 4px;
  font-weight: 800;
}

.member-card span {
  color: #777;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.order-table th,
.order-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.order-table th {
  color: #777;
  background: #fafafa;
  font-weight: 700;
}

.order-table button {
  min-width: 54px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  white-space: nowrap;
  font-weight: 700;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-cell img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.status {
  color: #666;
}

.status.gold {
  color: var(--gold-dark);
  font-weight: 800;
}

.admin-footer {
  padding: 18px;
  color: #999;
  text-align: center;
}

.alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.alert.success {
  color: #286a35;
  background: #eaf8ee;
}

.alert.error {
  color: #a7252d;
  background: #fdecee;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.admin-form label {
  display: grid;
  gap: 7px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-search input,
.status-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  outline-color: var(--gold);
  background: #fff;
}

.admin-form textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.check-line {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: auto;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.gold-action {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: #171717;
  background: linear-gradient(180deg, #f4cf8d, var(--gold));
  font-weight: 900;
}

.admin-search,
.status-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.admin-search button,
.admin-search a {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--black);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.admin-search a {
  display: inline-flex;
  align-items: center;
  background: #777;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.status-tabs a {
  padding: 8px 13px;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: 13px;
  font-weight: 800;
}

.status-tabs a.active {
  color: #161616;
  background: var(--gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-grid p {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fafafa;
}

.upload-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}

.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.upload-row p {
  margin: 0;
  color: #777;
  font-size: 13px;
}

.upload-button,
.dark-action,
.red-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.upload-button {
  color: #171717;
  background: var(--gold);
}

.dark-action {
  color: #fff;
  background: var(--black);
}

.red-button {
  color: #fff;
  background: var(--red);
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.preview-grid img {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.preview-grid video {
  width: 180px;
  height: 104px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #000;
}

.wechat-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.wechat-card img {
  width: min(280px, 72vw);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.wechat-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.floating-service {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 1px;
  place-items: center;
  min-width: 74px;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  color: #111;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.floating-service--raised {
  bottom: 96px;
}

.floating-service span {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.72);
}

.account-card h1,
.success-state h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.account-card p,
.success-state p,
.muted-text {
  color: #777;
  line-height: 1.7;
}

.account-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: #555;
  font-size: 13px;
  font-weight: 800;
}

.account-form input,
.account-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  outline-color: var(--gold);
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-list,
.mini-product-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-list article,
.mini-product-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fafafa;
}

.mini-list em {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}

.mini-product-list img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-product-list span {
  flex: 1;
  font-weight: 800;
}

.mini-product-list strong {
  color: var(--red);
}

.cart-main,
.checkout-main {
  padding: 12px 0 78px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-item p {
  margin: 3px 0;
  color: #777;
  font-size: 13px;
}

.cart-item strong {
  color: var(--red);
}

.cart-item button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-total span {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.success-state {
  text-align: center;
  padding: 28px 10px;
}

@media (max-width: 1100px) {
  .admin-body {
    min-width: 0;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 130;
    width: min(310px, 84vw);
    height: 100dvh;
    padding: 18px 14px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 20px 0 45px rgba(0, 0, 0, 0.32);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-body.admin-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, 0.42);
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }

  .menu-group {
    grid-template-columns: 1fr;
  }

  .menu-group button {
    grid-column: auto;
  }

  .admin-content {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 30px;
  }

  .admin-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
  }

  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(216, 168, 93, 0.36);
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    font-size: 14px;
  }

  .admin-topbar h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .admin-topbar p {
    font-size: 14px;
    line-height: 1.55;
  }

  .admin-user {
    grid-column: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 9px;
    font-size: 14px;
  }

  .admin-user button {
    padding: 8px 11px;
  }

  .small-avatar {
    width: 34px;
    height: 34px;
  }

  .admin-card {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .admin-section-title {
    align-items: center;
  }

  .admin-section-title h2,
  .member-card h2 {
    font-size: 19px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .metric-grid article {
    min-height: 118px;
    padding: 14px 8px;
  }

  .metric-grid span {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 11px;
  }

  .metric-grid strong {
    font-size: 23px;
  }

  .metric-grid p {
    margin-top: 5px;
    font-size: 13px;
  }

  .admin-shortcuts,
  .product-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .admin-shortcuts button,
  .admin-shortcuts a {
    min-height: 74px;
    padding: 10px;
    text-align: center;
  }

  .form-columns,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .upload-row,
  .admin-search,
  .status-form {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .cart-item {
    grid-template-columns: 74px 1fr;
  }

  .cart-item form {
    grid-column: 2;
  }

  .cart-item img {
    width: 74px;
    height: 74px;
  }
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.48);
}

.modal {
  width: min(100%, 520px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal h2 {
  margin: 0;
  font-size: 19px;
}

.modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  font-size: 20px;
}

.modal-body {
  padding: 18px;
}

.modal-body p {
  margin-top: 0;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
}

.modal-actions button,
.form-grid button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
}

.modal-actions .primary,
.form-grid .primary {
  color: #fff;
  background: var(--black);
}

.modal-actions .gold-action,
.form-grid .gold-action {
  color: #171717;
  background: var(--gold);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 13px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  outline-color: var(--gold);
  background: #fff;
}

.form-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 120;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  font-size: 14px;
  transform: translateX(-50%);
}

@media (max-width: 820px) {
  .admin-content .table-wrap {
    overflow: visible;
  }

  .admin-content .order-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .admin-content .order-table thead {
    display: none;
  }

  .admin-content .order-table,
  .admin-content .order-table tbody,
  .admin-content .order-table tr,
  .admin-content .order-table td {
    display: block;
    width: 100%;
  }

  .admin-content .order-table tr {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .admin-content .order-table td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px dashed #ececec;
    word-break: break-word;
  }

  .admin-content .order-table td:last-child {
    border-bottom: 0;
  }

  .admin-content .order-table td::before {
    content: attr(data-label);
    color: #777;
    font-size: 13px;
    font-weight: 800;
  }

  .admin-content .order-table .product-cell {
    display: grid;
    grid-template-columns: 88px 54px minmax(0, 1fr);
    align-items: center;
  }

  .admin-content .order-table .product-cell::before {
    align-self: center;
  }

  .admin-content .order-table .product-cell img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .admin-content .order-table .product-cell span {
    min-width: 0;
  }

  .admin-content .order-table .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-content .order-table .table-actions::before {
    flex: 0 0 88px;
  }
}

@media (min-width: 720px) {
  .site-shell {
    max-width: 920px;
  }

  .home-page .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-slider,
  .hero-image {
    height: 420px;
    min-height: 420px;
  }

  .hero-copy {
    left: 42px;
    width: 44%;
  }

  .category-layout {
    grid-template-columns: 140px 1fr;
  }

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

  .bottom-nav,
  .buy-bar {
    max-width: 920px;
  }
}

@media (max-width: 390px) {
  .brand strong {
    font-size: 18px;
  }

  .header-actions {
    gap: 4px;
  }

  .text-icon {
    font-size: 12px;
  }

  .feature-strip {
    margin-inline: 10px;
  }

  .feature-strip p {
    display: none;
  }

  .product-grid {
    gap: 9px;
  }

  .product-img {
    height: 128px;
  }

  .review-grid,
  .score-row {
    grid-template-columns: 1fr;
  }

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

  .quick-grid button {
    font-size: 11px;
  }
}
