/* ==========================================================================
   lulu - North America Cross-Border E-Commerce Marketplace Styles
   Inspired by Amazon North America (US/CA/MX) & Amazon Seller Central
   ========================================================================== */

:root {
  --amz-navy: #131921;
  --amz-slate: #232f3e;
  --amz-slate-hover: #37475a;
  --amz-orange: #ff9900;
  --amz-orange-light: #febd69;
  --amz-yellow-btn: #ffd814;
  --amz-yellow-btn-hover: #f7ca00;
  --amz-orange-btn: #ffa41c;
  --amz-orange-btn-hover: #fa8900;
  --amz-prime: #00a8e1;
  --amz-prime-dark: #007185;
  --amz-deal-red: #cc0c39;
  --amz-green: #007600;
  --amz-coupon-bg: #7fda69;
  --amz-bg: #e3e6e6;
  --amz-card: #ffffff;
  --amz-text: #0f1111;
  --amz-muted: #565959;
  --amz-border: #d5d9d9;
  --seller-teal: #002f36;
  --seller-accent: #008296;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 17, 17, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 17, 17, 0.12);
  --shadow-lg: 0 10px 30px rgba(15, 17, 17, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--amz-bg);
  color: var(--amz-text);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--amz-prime-dark);
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  color: #c7511f;
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   1. AMAZON MAIN DARK NAVY HEADER (UNIFIED WITH AUTH, STORE & ROLE SWITCH)
   ========================================================================== */
.amz-header {
  background-color: var(--amz-navy);
  color: #ffffff;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amz-nav-box {
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.12s, background-color 0.12s;
}
.amz-nav-box:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

.amz-nav-box .nav-line-1 {
  font-size: 11px;
  color: #cbd5e1;
  display: block;
  line-height: 1.2;
}
.amz-nav-box .nav-line-2 {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1.25;
}

.amz-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
  padding: 4px 7px;
}
.amz-logo-main {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}
.amz-logo-main span.accent {
  color: var(--amz-orange);
}
.amz-logo-main span.domain {
  font-size: 12px;
  font-weight: 600;
  color: #ccc;
  margin-left: 1px;
}
.amz-logo-smile {
  font-size: 10px;
  color: var(--amz-orange);
  letter-spacing: 0.25px;
  margin-top: 2px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Search Bar */
.amz-search-wrap {
  flex: 1;
  display: flex;
  height: 38px;
  border-radius: 4px;
  overflow: visible;
  position: relative;
  min-width: 200px;
}
.amz-search-wrap:focus-within {
  box-shadow: 0 0 0 3px var(--amz-orange);
  border-radius: 4px;
}

.amz-search-cat {
  background-color: #e6e6e6;
  color: #555;
  border: none;
  border-right: 1px solid #cdcdcd;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 112px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.amz-search-cat:hover {
  background-color: #d4d4d4;
  color: #0f1111;
}

.amz-search-input {
  flex: 1;
  min-width: 80px;
  border: none;
  padding: 0 11px;
  font-size: 13.5px;
  color: #0f1111;
  outline: none;
}

.amz-search-btn {
  background-color: var(--amz-orange-light);
  border: none;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #131921;
  border-radius: 0 4px 4px 0;
  transition: background 0.15s;
}
.amz-search-btn:hover {
  background-color: #f3a847;
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #bbb;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  color: #0f1111;
  max-height: 360px;
  overflow-y: auto;
}
.suggestion-item {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
}
.suggestion-item:hover {
  background: #f0f4f8;
}
.suggestion-item img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}

/* Header Controls */
.header-locale-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-select-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.header-select-pill.compact {
  padding: 4px 6px;
  font-size: 11.5px;
  height: 34px;
}
.header-select-pill option {
  color: #0f1111;
  background: #ffffff;
}

/* Merged Account, Auth & Store Dropdown */
.header-account-wrap {
  position: relative;
  flex-shrink: 0;
}

.header-account-trigger #headerAccountLine1,
.header-account-trigger #headerAccountLine2 {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-store-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 4px;
  vertical-align: middle;
}

.header-account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: #ffffff;
  color: #0f1111;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.header-account-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.header-account-dropdown::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 26px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
  border-top: 1px solid #cbd5e1;
  transform: rotate(45deg);
}

.header-account-wrap.is-open .header-account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) {
  .header-account-wrap:hover:not(.is-closing) .header-account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.acc-dd-header {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
}

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

.acc-dd-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f1111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-dd-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.acc-dd-role-badge.seller {
  background: #dcfce7;
  color: #166534;
}
.acc-dd-role-badge.buyer {
  background: #fef3c7;
  color: #92400e;
}

.acc-dd-store-card {
  margin: 10px 12px 4px 12px;
  padding: 10px 11px;
  border-radius: 6px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}
.acc-dd-store-card.no-store {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
}

.acc-dd-store-title {
  font-size: 12px;
  font-weight: 700;
  color: #002f36;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.acc-dd-store-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.acc-dd-auth-box {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.acc-dd-links {
  padding: 6px 0;
}

.acc-dd-link {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 14px;
  text-align: left;
  font-size: 13px;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.12s, color 0.12s;
}
.acc-dd-link:hover {
  background: #f1f5f9;
  color: #007185;
}
.acc-dd-link i {
  width: 16px;
  text-align: center;
  color: #64748b;
}
.acc-dd-link:hover i {
  color: #007185;
}

.acc-dd-footer {
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
}

.acc-dd-logout-btn {
  width: 100%;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b91c1c;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.12s, border-color 0.12s;
}
.acc-dd-logout-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* Merged Seller Central Switcher Button in Buyer Header */
.header-seller-switch {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.22) 0%, rgba(0, 130, 150, 0.42) 100%);
  border: 1px solid rgba(94, 234, 212, 0.55);
  color: #ffffff;
  border-radius: 5px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.header-seller-switch:hover {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.36) 0%, rgba(0, 130, 150, 0.62) 100%);
  border-color: #5eead4;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35);
}
.header-seller-switch .seller-switch-top {
  font-size: 10px;
  color: #5eead4;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.header-seller-switch .seller-switch-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cart-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.cart-label {
  font-size: 12.5px;
  font-weight: 700;
  margin-left: 1px;
}
.cart-count-badge {
  background: var(--amz-orange);
  color: #0f1111;
  font-weight: 800;
  font-size: 12.5px;
  min-width: 21px;
  height: 21px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Sub-navigation Bar */
.amz-subnav {
  background-color: var(--amz-slate);
  color: #ffffff;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav-item {
  color: #ffffff;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.subnav-item:hover,
.subnav-item.active {
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
}

.subnav-item.sell-cta {
  margin-left: auto;
  background: linear-gradient(135deg, #ff9900 0%, #ffb700 100%);
  color: #0f1111;
  font-weight: 700;
  border-radius: 4px;
  padding: 5px 12px;
}
.subnav-item.sell-cta:hover {
  filter: brightness(1.05);
  border-color: transparent;
}

.subnav-item.live-nav-link {
  background: linear-gradient(135deg, #ff6a28 0%, #ff8547 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 10px;
}
.subnav-item.live-nav-link:hover {
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}
.live-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 0 0 rgba(255, 243, 196, 0.85);
  animation: luluLivePulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes luluLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 243, 196, 0.85); }
  70% { box-shadow: 0 0 0 6px rgba(255, 243, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 243, 196, 0); }
}

/* ==========================================================================
   2B. JD.COM STYLE ALL DEPARTMENTS MEGA MENU (fs_col1 & jd-main-category)
   ========================================================================== */
.jd-mega-dropdown {
  position: relative;
  z-index: 1180;
  width: 100%;
}

.jd-mega-dropdown .fs {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 1185;
}

.jd-mega-dropdown .jd_fs_container {
  position: relative;
}

.fs_col1 {
  width: 230px;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid #e5e7eb;
  position: relative;
  z-index: 1190;
}

/* JD legacy #J_cate kept in DOM for structural parity, hidden in new_version */
#J_cate.cate {
  display: none;
}

.jd-main-category-wrapper {
  position: relative;
  width: 230px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  padding: 8px 0;
}

.jd-main-category {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jd-main-category-item {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 31px;
  line-height: 31px;
  padding: 0 12px;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.12s ease, color 0.12s ease;
  border-radius: 6px;
  margin: 0 6px;
}

.jd-main-category-item:hover,
.jd-main-category-item.jd-item-active {
  background-color: #fff1f0;
}

.jd-main-category-item-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.jd-main-category-item-link {
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.12s ease;
}

.jd-main-category-item:hover .jd-main-category-item-link,
.jd-main-category-item.jd-item-active .jd-main-category-item-link {
  color: #1f2937;
}

.jd-main-category-item-link:hover {
  color: #e1251b !important;
  font-weight: 700;
  text-decoration: none;
}

.jd-main-category-item-split-line {
  padding: 0 4px;
  color: #999999;
  font-size: 12px;
  user-select: none;
}

.jd-main-category-item-split-line:last-child {
  display: none;
}

/* Right Flyout Popover (jd-main-category-popover-wrapper) */
.jd-main-category-popover-wrapper {
  position: absolute;
  left: 228px;
  top: 0;
  z-index: 1200;
  padding-left: 4px;
}

.jd-main-category-popover {
  width: 980px;
  max-width: calc(100vw - 270px);
  min-height: 642px;
  max-height: 680px;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
}

.jd-main-category-popover-left-col {
  width: 100%;
}

.jd-main-category-popover-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.jd-main-category-popover-top-item {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background-color: #333333;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.jd-main-category-popover-top-item:hover {
  background-color: #e1251b;
  color: #ffffff;
  text-decoration: none;
}

.jd-main-category-popover-top-item-content::after {
  content: " >";
  font-family: simsun, monospace;
  margin-left: 4px;
  font-weight: 700;
}

.jd-main-category-popover-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jd-main-category-popover-cate {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 4px 0;
  line-height: 22px;
}

.jd-main-category-popover-first-cate {
  width: 118px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 14px;
  font-weight: 700;
  font-size: 12px;
}

.jd-main-category-popover-cate-link {
  color: #333333;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  transition: color 0.12s ease;
}

.jd-main-category-popover-cate-link:hover {
  color: #e1251b;
  text-decoration: none;
}

.jd-main-category-popover-cate-arrow::after {
  content: ">";
  font-style: normal;
  font-family: simsun, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #666666;
}

.jd-main-category-popover-cate-link:hover .jd-main-category-popover-cate-arrow::after {
  color: #e1251b;
}

.jd-main-category-popover-second-cate {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #eeeeee;
}

.jd-main-category-popover-cate:last-child .jd-main-category-popover-second-cate {
  border-bottom: none;
}

.jd-main-category-popover-second-cate-link {
  color: #666666;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s ease;
}

.jd-main-category-popover-second-cate-link:hover {
  color: #e1251b;
  text-decoration: none;
}

.jd-main-category-popover-second-hot-cate {
  color: #e1251b;
  font-weight: 600;
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  padding: 0 6px;
  border-radius: 3px;
}

.jd-main-category-popover-second-hot-cate:hover {
  background-color: #e1251b;
  color: #ffffff;
}

/* English layout adjustments for wider English department labels */
.jd-mega-dropdown.lang-en .fs_col1,
.jd-mega-dropdown.lang-en .jd-main-category-wrapper {
  width: 310px;
}

.jd-mega-dropdown.lang-en .jd-main-category-item {
  padding: 0 10px;
}

.jd-mega-dropdown.lang-en .jd-main-category-item-link {
  font-size: 12px;
}

.jd-mega-dropdown.lang-en .jd-main-category-item-split-line {
  padding: 0 3px;
}

.jd-mega-dropdown.lang-en .jd-main-category-popover-wrapper {
  left: 308px;
}

.jd-mega-dropdown.lang-en .jd-main-category-popover {
  width: 920px;
  max-width: calc(100vw - 340px);
}

.jd-mega-dropdown.lang-en .jd-main-category-popover-first-cate {
  width: 185px;
}

.jd-mega-dropdown.lang-en .jd-main-category-popover-cate-link {
  line-height: 1.35;
  text-align: right;
}

/* ==========================================================================
   3. HERO BANNER & 4-CARD CATEGORY OVERLAY WIDGETS
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.hero-banner {
  background: linear-gradient(120deg, #0d2137 0%, #133b5c 45%, #1e5f74 100%);
  color: #ffffff;
  padding: 32px 36px 95px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(227, 230, 230, 0), var(--amz-bg));
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amz-orange);
  color: #0f1111;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 14px;
  color: #dbeafe;
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-promo-cards {
  display: flex;
  gap: 14px;
  z-index: 2;
}
.hero-mini-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 14px;
  width: 195px;
  color: #fff;
}
.hero-mini-card h4 {
  font-size: 13px;
  color: var(--amz-orange-light);
  margin-bottom: 4px;
}
.hero-mini-card p {
  font-size: 12px;
  color: #e2e8f0;
}

/* 4-Card Category Grid overlapping Hero */
.quad-cards-grid {
  max-width: 1460px;
  margin: -65px auto 20px auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 10;
}

.quad-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quad-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f1111;
}
.quad-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.quad-mini-item {
  cursor: pointer;
}
.quad-mini-item img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 3px;
  background: #f8f9fa;
}
.quad-mini-item span {
  display: block;
  font-size: 11px;
  color: #0f1111;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quad-card-footer {
  font-size: 12px;
  font-weight: 600;
  color: var(--amz-prime-dark);
  cursor: pointer;
}

/* ==========================================================================
   4. LIGHTNING DEALS STRIP
   ========================================================================== */
.section-container {
  max-width: 1460px;
  margin: 0 auto 20px auto;
  padding: 0 18px;
  width: 100%;
}

.white-panel {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title-group h2 {
  font-size: 20px;
  font-weight: 700;
}

.countdown-pill {
  background: var(--amz-deal-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deals-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 16px;
}

.deal-card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  cursor: pointer;
}
.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.deal-img-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.deal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.deal-pct-badge {
  background: var(--amz-deal-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}
.deal-label-text {
  color: var(--amz-deal-red);
  font-size: 11px;
  font-weight: 700;
}
.claimed-bar-wrap {
  background: #e9ecef;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 4px 0;
}
.claimed-bar-fill {
  background: linear-gradient(90deg, #cc0c39, #ff6b35);
  height: 100%;
}

/* ==========================================================================
   5. MAIN MARKETPLACE SIDEBAR FILTERS & PRODUCT CATALOG GRID
   ========================================================================== */
.marketplace-layout {
  max-width: 1460px;
  margin: 0 auto 36px auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  width: 100%;
}

.filter-sidebar {
  background: #ffffff;
  padding: 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.filter-group {
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f1111;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #0f1111;
  padding: 3px 0;
  cursor: pointer;
}
.filter-option:hover {
  color: #c7511f;
}

.prime-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--amz-prime);
  font-weight: 800;
  font-size: 12px;
  font-style: italic;
}
.prime-badge i {
  color: var(--amz-orange);
  font-size: 11px;
}

/* Catalog Toolbar */
.catalog-toolbar {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
}

/* Top Ribbon Badge */
.card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-bottom-right-radius: 6px;
  color: #ffffff;
}
.ribbon-bestseller {
  background: #e47911;
}
.ribbon-choice {
  background: #232f3e;
}
.ribbon- choice span {
  color: var(--amz-orange);
}
.ribbon-deal {
  background: var(--amz-deal-red);
}
.ribbon-new {
  background: #007185;
}

.card-img-box {
  height: 215px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.product-card:hover .card-img-box img {
  transform: scale(1.04);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand-line {
  font-size: 11px;
  color: var(--amz-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f1111;
  line-height: 1.38;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.card-title:hover {
  color: #c7511f;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 4px;
}
.stars-icons {
  color: #ffa41c;
}
.month-sold-text {
  font-size: 12px;
  color: var(--amz-muted);
  margin-bottom: 8px;
}

/* Price Display */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.price-main {
  font-size: 22px;
  font-weight: 700;
  color: #0f1111;
}
.price-main sup {
  font-size: 12px;
  font-weight: 600;
  top: -0.5em;
}
.price-original {
  font-size: 12px;
  color: var(--amz-muted);
  text-decoration: line-through;
}
.price-discount-pct {
  font-size: 13px;
  color: var(--amz-deal-red);
  font-weight: 600;
}

.coupon-tag {
  display: inline-block;
  background-color: var(--amz-coupon-bg);
  color: #0f1111;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  margin-right: 4px;
}

.delivery-info-row {
  font-size: 12px;
  color: #0f1111;
  margin: 6px 0;
}

.origin-warehouse-tag {
  font-size: 11px;
  color: #495057;
  background: #f1f3f5;
  padding: 3px 7px;
  border-radius: 4px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

/* Buttons */
.btn-amz-yellow {
  background-color: var(--amz-yellow-btn);
  border: 1px solid #fcd200;
  color: #0f1111;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-amz-yellow:hover {
  background-color: var(--amz-yellow-btn-hover);
}

.btn-amz-orange {
  background-color: var(--amz-orange-btn);
  border: 1px solid #ff8f00;
  color: #0f1111;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-amz-orange:hover {
  background-color: var(--amz-orange-btn-hover);
}

.btn-amz-outline {
  background-color: #ffffff;
  border: 1px solid var(--amz-border);
  color: #0f1111;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}
.btn-amz-outline:hover {
  background-color: #f7fafa;
}

/* ==========================================================================
   6. PRODUCT DETAIL PAGE (PDP) & BUY BOX
   ========================================================================== */
.pdp-wrapper {
  background: #ffffff;
  max-width: 1460px;
  margin: 14px auto 36px auto;
  padding: 20px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.pdp-breadcrumb {
  font-size: 12px;
  color: var(--amz-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pdp-main-grid {
  display: grid;
  grid-template-columns: 420px 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Left Image Gallery */
.pdp-gallery {
  display: flex;
  gap: 12px;
  position: sticky;
  top: 76px;
}
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid var(--amz-border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.pdp-thumb.active,
.pdp-thumb:hover {
  border: 2px solid #e77600;
  box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-main-img-box {
  flex: 1;
  height: 400px;
  border: 1px solid #f1f3f5;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pdp-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.pdp-main-img-box:hover img {
  transform: scale(1.08);
}

/* Product Detail Vertical Image Stack (Top-to-Bottom) */
.pdp-detail-images-section {
  margin-top: 16px;
}
.pdp-detail-images-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f1111;
  margin-bottom: 10px;
}
.pdp-detail-images-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.pdp-detail-image-item {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  cursor: zoom-in;
  border: 0;
}

/* Center Product Details */
.pdp-title {
  font-size: 21px;
  font-weight: 600;
  color: #0f1111;
  line-height: 1.32;
  margin-bottom: 6px;
}
.pdp-Divider {
  border: none;
  border-top: 1px solid #e7e7e7;
  margin: 14px 0;
}

/* Variant Swatches */
.variant-section {
  margin: 12px 0;
}
.variant-label {
  font-size: 13px;
  color: var(--amz-muted);
  margin-bottom: 6px;
}
.variant-label strong {
  color: #0f1111;
}
.variant-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.variant-pill {
  border: 1px solid var(--amz-border);
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.variant-pill.active {
  border: 2px solid #e77600;
  background: #fef8f2;
  font-weight: 700;
}
.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

/* B2B Tiered Wholesale Box */
.bulk-tier-box {
  background: #f7fafa;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  padding: 12px;
  margin: 14px 0;
}
.bulk-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.bulk-tier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
}
.bulk-tier-card.active {
  border-color: var(--amz-prime-dark);
  background: #edfdff;
}

.pdp-bullets {
  padding-left: 18px;
  font-size: 14px;
  color: #0f1111;
}
.pdp-bullets li {
  margin-bottom: 8px;
}

/* Right Buy Box */
.pdp-buybox {
  border: 1px solid var(--amz-border);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  position: sticky;
  top: 76px;
}
.buybox-stock {
  font-size: 17px;
  font-weight: 700;
  color: var(--amz-green);
  margin: 10px 0;
}
.buybox-meta-table {
  width: 100%;
  font-size: 12px;
  margin-top: 12px;
  border-collapse: collapse;
}
.buybox-meta-table td {
  padding: 3px 0;
  vertical-align: top;
}
.buybox-meta-table td:first-child {
  color: var(--amz-muted);
  width: 85px;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}
.specs-table th,
.specs-table td {
  border: 1px solid #e7e7e7;
  padding: 9px 14px;
  text-align: left;
}
.specs-table th {
  background: #f3f3f3;
  width: 34%;
  font-weight: 600;
  color: #565959;
}

/* Review Histogram */
.reviews-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-top: 16px;
}
.star-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--amz-prime-dark);
  cursor: pointer;
}
.star-bar-track {
  flex: 1;
  height: 18px;
  background: #f0f2f2;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  overflow: hidden;
}
.star-bar-fill {
  height: 100%;
  background: #ffa41c;
}

.review-item {
  border-bottom: 1px solid #e7e7e7;
  padding: 14px 0;
}
.reviewer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.reviewer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
}

/* ==========================================================================
   7. SELLER CENTRAL (亚马逊全球开店 · 北美卖家工作台)
   ========================================================================== */
.seller-header {
  background: var(--seller-teal);
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 2px solid #00a8e1;
}

.seller-header-left,
.seller-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.seller-brand-block {
  cursor: pointer;
  min-width: 0;
}

.seller-store-subtitle {
  font-size: 11px;
  color: #99f6e4;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-station-box {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.seller-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.seller-user-pill {
  background: rgba(252, 211, 77, 0.14);
  border: 1px solid rgba(252, 211, 77, 0.4);
  color: #fcd34d;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 0.14s;
}
.seller-user-pill:hover {
  background: rgba(252, 211, 77, 0.25);
}

.seller-logout-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  transition: background-color 0.14s, color 0.14s;
}
.seller-logout-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(248, 113, 113, 0.6);
  color: #ffffff;
}

.seller-buyer-switch {
  background: var(--amz-orange);
  color: #0f1111;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.14s;
}
.seller-buyer-switch:hover {
  filter: brightness(1.06);
}

.seller-nav-tabs {
  background: #ffffff;
  border-bottom: 1px solid var(--amz-border);
  padding: 0 22px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.seller-tab-btn {
  border: none;
  background: transparent;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.seller-tab-btn.active {
  color: var(--seller-teal);
  border-bottom-color: #008296;
  background: #f0fdfa;
}

.seller-container {
  max-width: 1420px;
  margin: 20px auto 40px auto;
  padding: 0 20px;
  width: 100%;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.kpi-card {
  background: #ffffff;
  border: 1px solid #dbe2e8;
  border-top: 4px solid #008296;
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-card h4 {
  font-size: 12px;
  color: var(--amz-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kpi-card .kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: #0f1111;
}
.kpi-card .kpi-sub {
  font-size: 12px;
  color: var(--amz-green);
  margin-top: 4px;
}

/* Seller Upload Form */
.seller-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.form-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}
.form-control {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 8px 11px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.form-control:focus {
  border-color: #008296;
  box-shadow: 0 0 0 2px rgba(0, 130, 150, 0.2);
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrap .form-control {
  width: 100%;
  padding-right: 38px;
}
.password-input-wrap input::-ms-reveal,
.password-input-wrap input::-ms-clear {
  display: none;
}
.password-toggle-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color 0.15s, background-color 0.15s;
}
.password-toggle-btn:hover {
  color: #0f1111;
  background: #f1f5f9;
}
.password-toggle-btn.is-visible {
  color: #008296;
}
.password-toggle-btn:focus-visible {
  outline: 2px solid #008296;
  outline-offset: 1px;
}

.amz-upload-step-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.amz-step-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.amz-step-pill:hover {
  border-color: #008296;
  color: #008296;
  background: #f0fdfa;
}
.amz-step-pill.active {
  background: #002f36;
  color: #ffffff;
  border-color: #002f36;
}

.upload-section-card {
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.upload-section-header {
  background: linear-gradient(90deg, #f0fdfa, #f8fafc);
  border-bottom: 1px solid #dbe2e8;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.upload-section-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #002f36;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.upload-section-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: #e0f2fe;
  color: #0369a1;
}
.upload-section-body {
  padding: 18px;
}

.b2b-tier-config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.b2b-tier-edit-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
}

.child-sku-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.child-sku-matrix-table th,
.child-sku-matrix-table td {
  border: 1px solid #e2e8f0;
  padding: 7px 10px;
  text-align: left;
}
.child-sku-matrix-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
}

.upload-dropzone {
  border: 2px dashed #008296;
  background: #f0fdfa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.upload-dropzone:hover {
  background: #ccfbf1;
}
.uploaded-preview-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.uploaded-thumb-box {
  width: 108px;
  height: 118px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.uploaded-thumb-box.is-main-img {
  border: 2px solid #008296;
  box-shadow: 0 0 0 2px rgba(0, 130, 150, 0.18);
}
.uploaded-thumb-box img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}
.uploaded-thumb-footer {
  height: 30px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
}
.uploaded-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(204, 12, 57, 0.9);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
}

/* Seller Detail Images Uploader (Ordered Top-to-Bottom) */
.upload-dropzone-detail {
  border-color: #0284c7;
  background: #f0f9ff;
}
.upload-dropzone-detail:hover {
  background: #e0f2fe;
}
.uploaded-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.uploaded-detail-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f8fafc;
  flex-wrap: wrap;
}
.uploaded-detail-order-badge {
  min-width: 66px;
  text-align: center;
  background: #0369a1;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}
.uploaded-detail-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: zoom-in;
  flex-shrink: 0;
}
.uploaded-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uploaded-detail-meta {
  flex: 1;
  min-width: 160px;
}
.uploaded-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.uploaded-detail-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Seller Inventory Table */
.seller-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
}
.seller-table th,
.seller-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}
.seller-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

/* ==========================================================================
   8. MODALS, DRAWERS, FLOATING COMPARISON BAR & TOASTS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 17, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 18px;
}

.modal-card {
  background: #ffffff;
  border-radius: 8px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  background: #f0f2f2;
  padding: 14px 18px;
  border-bottom: 1px solid #d5d9d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
}
.modal-body {
  padding: 18px;
}

/* Slide-out Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 17, 0.55);
  z-index: 1900;
  display: flex;
  justify-content: flex-end;
}
.cart-drawer {
  width: 420px;
  max-width: 92vw;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
}

/* Floating Compare Bar */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amz-navy);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1500;
  border: 1px solid var(--amz-orange);
  border-bottom: none;
}

/* Logistics Timeline */
.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 24px;
  margin-top: 12px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: #cbd5e1;
}
.timeline-step {
  position: relative;
  margin-bottom: 14px;
  font-size: 13px;
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
}
.timeline-step.done::before {
  background: var(--amz-green);
  box-shadow: 0 0 0 2px rgba(0, 118, 0, 0.25);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-msg {
  background: #131921;
  color: #ffffff;
  border-left: 4px solid var(--amz-orange);
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer */
.amz-footer {
  margin-top: auto;
  background: var(--amz-navy);
  color: #dddddd;
  font-size: 13px;
}
.back-to-top {
  background: var(--amz-slate-hover);
  color: #ffffff;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
}
.back-to-top:hover {
  background: #485769;
}
.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 7px;
  color: #cccccc;
  cursor: pointer;
}
.footer-col li:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   UNIFIED 3-LEVEL CATEGORY SELECTOR & STOREFRONT DEPARTMENT FILTER STYLES
   ========================================================================== */
.category-cascade-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-quick-search-wrap {
  position: relative;
}

.category-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  max-height: 280px;
  overflow-y: auto;
  z-index: 60;
}

.category-search-item {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.12s ease;
}

.category-search-item:last-child {
  border-bottom: none;
}

.category-search-item:hover {
  background: #f0fdfa;
}

.category-cascade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-level-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.category-path-preview {
  background: #ffffff;
  border: 1px dashed #008296;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #334155;
}

.sidebar-dept-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-dept-item {
  font-size: 12.5px;
  padding: 4px 6px;
  border-radius: 4px;
}

.sidebar-dept-item:hover {
  background: #f8fafc;
}

.sidebar-dept-item.active {
  background: #fff7ed;
}

.sidebar-dept-count {
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 0 6px;
  border-radius: 99px;
  flex-shrink: 0;
}

.sidebar-dept-count.has-items {
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 700;
}

.sidebar-sub-list {
  margin: 2px 0 6px 20px;
  padding-left: 8px;
  border-left: 2px solid #fed7aa;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.sidebar-sub-item:hover {
  background: #fff7ed;
  color: #c7511f;
}

.sidebar-sub-item.active {
  background: #ffedd5;
  color: #c7511f;
  font-weight: 700;
}

.catalog-cat-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.catalog-cat-crumb a {
  color: #cf1322;
  cursor: pointer;
  text-decoration: underline;
}

.catalog-cat-crumb button {
  background: none;
  border: none;
  color: #cf1322;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 1340px) {
  .amz-header {
    padding: 7px 10px;
    gap: 5px;
  }
  .amz-nav-box {
    padding: 5px 5px;
  }
  .cart-label {
    display: none;
  }
  .amz-search-cat {
    max-width: 82px;
  }
}

@media (max-width: 1200px) {
  .header-lists-box {
    display: none;
  }
}

@media (max-width: 1100px) {
  .quad-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-main-grid {
    grid-template-columns: 1fr;
  }
  .pdp-gallery,
  .pdp-buybox {
    position: static;
  }
}

@media (max-width: 980px) {
  .amz-header {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .amz-search-wrap {
    order: 10;
    flex: 1 0 100%;
    min-width: 100%;
  }
  .header-locale-group {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .hero-promo-cards {
    display: none;
  }
  .reviews-layout,
  .seller-form-grid,
  .category-cascade-grid,
  .b2b-tier-config-grid {
    grid-template-columns: 1fr;
  }
}
