* {
  font-family: "Microsoft YaHei", sans-serif;
}

header {
  width: 100%;
  /*background-color: #fff;*/
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999; 
  margin-top: 0;
  padding-top: 0;
}

.sub-menu{
  width: 1200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  background-color: #f5f7fa;
  border-bottom: 1px solid #eee;
}

.sub-menu .breadcrumb-container {
  flex: 1 1 auto;
  min-width: 0;
}

/* User | Shopping Cart | Logout — one row, right block aligns with sub-menu (1200px) edge */
.header-right {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  padding-right: 20px;
  gap: 28px;
}

#auth-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 0;
}

#auth-status .auth-user-label {
  color: #0066ff;
}

#auth-status .auth-user-name {
  color: #333;
}

#auth-status span,
#auth-status a {
  font-size: 14px;
  line-height: 1.4;
}

#auth-status a {
  margin-left: 12px;
}

#auth-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 18px;
  margin-left: 8px;
  font-size: 12px;
  line-height: 1.4;
  padding: 12px 0;
}

#auth-links a {
  font-size: 12px;
  line-height: 1.4;
  color: #333;
  text-decoration: none;
}

#auth-links a:hover {
  color: #0066ff;
  text-decoration: underline;
}

.header-right .cart-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
}

/* breadcrumb */
.breadcrumb-container {
  /*background-color: #ffffff;*/
  padding: 12px 20px;
}


.breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666666;
}


.breadcrumb-item a {
  color: silver; 
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: gray;
  text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #cccccc;
}

.breadcrumb-item.current {
    color: #333333;
    font-weight: 500;
}


.main-nav {
  width: 1200px;
  margin: 0 auto; 
  text-align: center; 
  padding-top: 0;
  margin-top: 0;
  display: flex; 
      align-items: center; 
      justify-content: center;
  background-color: #fff;
  height:60px;
}

.main-nav ul {
  display: flex; 
  justify-content: center; 
  gap: 60px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  text-decoration: none;
}

.main-nav li a {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s; 
  font-size: 16px;
  font-weight: 600; 
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif; 
  text-decoration: none;
}

.main-nav li a:hover {
color: blue; 
}

.main-nav li a.active {
  color: #0066FF;
  text-decoration: underline;
}


/* ---------------- Cart ----------------- */
.cart-trigger {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.shopping-cart {
  display: none; 
  position: fixed;
  top: 60px;
  right: 20px;
  width: 540px;
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  z-index: 9999;
  margin-top:50px;
}

.shopping-cart-title{
  display: flex;
  align-items: flex-end;
}

.trashbin{
  font-size: 10px;
  margin-left: auto;
  color: #666666;
  background-color: transparent;
  border: none;
  width:15px;
}

.trashbin:hover{
  color: red;
}

.cart-wrapper:hover .shopping-cart {
  display: block; 
}

.cart-items{
  margin-top:0px;
  padding:10px;
}

.cart-item{
  margin:10px;
  display: flex;
  text-align: left;
}


.cart-item-name{
  width:240px;
  display: block;
}

.cart-quantity{
  width:50px;
  height: 120%;
  margin-left:20px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  display: block;
}

.cart-quantity:focus{
  border-color: #0066FF;
}

.cart-item-price{
  display: block;
  margin-left: auto;
}

.cart-total-checkout{
  display: flex;
  height:30px;
  align-items: flex-end;
}

.cart-total{
  font-size:20px;
  font-weight:800;
}

.cart-toralprice{
  margin-left:10px;
  font-size:18px;
  font-weight:400;
  text-decoration: underline;
  color: #0066FF;
}

.cart-checkout-btn{
  margin-left:20px;
  height:100%;
  border: none;
  border-radius: 3px; 
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  text-decoration: none; 
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px; 
  background-color: #FFAA33;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cart-checkout-btn:hover{
  background-color: #FF8800;
}

