/* ============================================
   应创商城 — Apple Design Language Stylesheet
   ============================================ */

/* ============================================
   1. Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  color: #1d1d1f;
  background-color: #fbfbfd;
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================
   2. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

h4 {
  font-size: 21px;
}

h5 {
  font-size: 17px;
}

h6 {
  font-size: 14px;
  font-weight: 500;
}

p {
  margin-bottom: 12px;
  color: #1d1d1f;
}

p.lead {
  font-size: 21px;
  line-height: 1.381;
  color: #6e6e73;
}

p.subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: #6e6e73;
  line-height: 1.52941;
}

a {
  transition: color 0.2s ease;
}

a:hover {
  color: #0071e3;
}

small {
  font-size: 12px;
  color: #86868b;
}

strong {
  font-weight: 600;
}

/* ============================================
   3. Layout
   ============================================ */
.container {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.container-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section--compact {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section--gray {
  background-color: #f5f5f7;
}

.page-content {
  padding-top: 48px;
  min-height: calc(100vh - 48px);
}

/* ============================================
   4. Header / Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background-color: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.nav-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 0.7;
  color: #1d1d1f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  color: #1d1d1f;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  color: #1d1d1f;
}

.nav-links a.active {
  opacity: 1;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.nav-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #1d1d1f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-bag-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background-color: #e30000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-bag-count:empty {
  display: none;
}

.nav-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

/* ============================================
   5. Hero Section
   ============================================ */
.hero {
  padding-top: calc(48px + 60px);
  padding-bottom: 60px;
  text-align: center;
  background-color: #fbfbfd;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-headline span {
  background: linear-gradient(135deg, #0071e3, #40a9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(19px, 2.5vw, 24px);
  color: #6e6e73;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.42;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  width: 100%;
  border-radius: 18px;
}

/* ============================================
   6. Product Cards
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.product-card {
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #f5f5f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.product-card-tag--new {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.product-card-tag--hot {
  background-color: #fff3e0;
  color: #e65100;
}

.product-card-tag--sale {
  background-color: #fce4ec;
  color: #c62828;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 12px;
  color: #86868b;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-top: auto;
  padding-top: 4px;
}

.product-card-price-original {
  font-size: 12px;
  font-weight: 400;
  color: #86868b;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card-colors {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.product-card-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.product-card-color:hover {
  transform: scale(1.3);
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-card-actions .btn {
  flex: 1;
}

/* ============================================
   7. Banner / Carousel
   ============================================ */
.banner-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.banner-scroll::-webkit-scrollbar {
  display: none;
}

.banner-card {
  flex: 0 0 calc(50% - 8px);
  min-width: 300px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #f5f5f7;
}

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

.banner-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  color: #fff;
}

.banner-card-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.banner-card-subtitle {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 16px;
}

/* ============================================
   8. Category Sections
   ============================================ */
.category-section {
  margin-bottom: 64px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.category-title {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
}

.category-link {
  font-size: 14px;
  color: #0071e3;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.category-link:hover {
  gap: 8px;
  color: #0071e3;
}

.category-link::after {
  content: "›";
  font-size: 18px;
}

/* ============================================
   9. Horizontal Scroll Container
   ============================================ */
.hscroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.cat-scroll {
  scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.hscroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.hscroll .product-card {
  width: 235px;
}

/* ============================================
   10. Product Detail Page (PDP)
   ============================================ */
.pdp {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  padding-top: calc(48px + 40px);
  padding-bottom: 120px;
  align-items: start;
}

.pdp-image {
  position: sticky;
  top: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f7;
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pdp-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.pdp-gallery {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.pdp-gallery-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f7;
  transition: border-color 0.2s ease;
}

.pdp-gallery-thumb.active,
.pdp-gallery-thumb:hover {
  border-color: #0071e3;
}

.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pdp-breadcrumb {
  font-size: 12px;
  color: #86868b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-breadcrumb a {
  color: #0071e3;
}

.pdp-breadcrumb span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #d2d2d7;
}

.pdp-title {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.12;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pdp-price {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
}

.pdp-price-original {
  font-size: 16px;
  color: #86868b;
  text-decoration: line-through;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #86868b;
}

.pdp-rating-stars {
  color: #ff9500;
  font-size: 14px;
}

.pdp-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.pdp-variant-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-variant-pill {
  padding: 8px 18px;
  border-radius: 980px;
  border: 1px solid #d2d2d7;
  background-color: #fff;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pdp-variant-pill:hover {
  border-color: #86868b;
}

.pdp-variant-pill.active {
  border-color: #0071e3;
  background-color: #f0f7ff;
  color: #0071e3;
  font-weight: 500;
}

.pdp-service-card {
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pdp-service-card:hover {
  border-color: #86868b;
}

.pdp-service-card.selected {
  border-color: #0071e3;
  background-color: #f0f7ff;
}

.pdp-service-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d2d2d7;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}

.pdp-service-card.selected .pdp-service-radio {
  border-color: #0071e3;
}

.pdp-service-card.selected .pdp-service-radio::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0071e3;
}

.pdp-service-info {
  flex: 1;
}

.pdp-service-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.pdp-service-desc {
  font-size: 12px;
  color: #86868b;
  line-height: 1.4;
}

.pdp-service-price {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.pdp-add-to-bag {
  width: 100%;
}

.pdp-wishlist-btn {
  width: 100%;
}

.pdp-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(251, 251, 253, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 9998;
  padding: 12px 0;
  display: none;
}

.pdp-bottom-bar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdp-bottom-price {
  font-size: 18px;
  font-weight: 600;
}

/* ============================================
   11. Shopping Bag (Cart)
   ============================================ */
.bag {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: calc(48px + 40px);
  padding-bottom: 80px;
  align-items: start;
}

.bag-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.bag-empty {
  text-align: center;
  padding: 80px 0;
}

.bag-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.bag-empty-text {
  font-size: 17px;
  color: #86868b;
  margin-bottom: 24px;
}

.bag-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.bag-item:first-child {
  padding-top: 0;
}

.bag-item-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background-color: #f5f5f7;
  overflow: hidden;
  flex-shrink: 0;
}

.bag-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bag-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bag-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}

.bag-item-variant {
  font-size: 13px;
  color: #86868b;
}

.bag-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 8px;
}

.bag-item-qty button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1d1d1f;
  transition: background-color 0.2s ease;
}

.bag-item-qty button:hover {
  background-color: #f5f5f7;
}

.bag-item-qty span {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.bag-item-price {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-top: auto;
}

.bag-item-remove {
  position: absolute;
  top: 24px;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 18px;
  transition: all 0.2s ease;
}

.bag-item-remove:hover {
  background-color: #f5f5f7;
  color: #e30000;
}

.bag-summary {
  position: sticky;
  top: 68px;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.bag-summary-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.bag-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6e6e73;
  padding: 8px 0;
}

.bag-summary-row.total {
  border-top: 1px solid #e8e8e8;
  margin-top: 12px;
  padding-top: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
}

.bag-summary-total-price {
  font-size: 20px;
}

.bag-checkout-btn {
  width: 100%;
  margin-top: 20px;
}

.bag-recommendations {
  margin-top: 64px;
}

.bag-recommendations-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ============================================
   12. Checkout Page
   ============================================ */
.checkout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding-top: calc(48px + 40px);
  padding-bottom: 80px;
  align-items: start;
}

.checkout-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.checkout-section {
  margin-bottom: 32px;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.province-city-selector {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #d2d2d7;
}

.province-city-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
}

.province-city-tab:hover {
  color: #1d1d1f;
}

.province-city-tab.active {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

.province-city-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.province-city-item {
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1d1d1f;
  border: 1px solid transparent;
}

.province-city-item:hover {
  background-color: #f5f5f7;
}

.province-city-item.active {
  background-color: #f0f7ff;
  color: #0071e3;
  border-color: #0071e3;
  font-weight: 500;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background-color: #fff;
  font-size: 15px;
  color: #1d1d1f;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-input::placeholder {
  color: #c7c7cc;
}

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

.checkout-summary {
  position: sticky;
  top: 68px;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-summary-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: #f5f5f7;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-summary-item-info {
  flex: 1;
}

.checkout-summary-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}

.checkout-summary-item-qty {
  font-size: 12px;
  color: #86868b;
}

.checkout-payment {
  margin-top: 20px;
}

.checkout-payment-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: #86868b;
}

.payment-option.selected {
  border-color: #0071e3;
  background-color: #f0f7ff;
}

.payment-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d2d2d7;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.payment-option.selected .payment-option-radio {
  border-color: #0071e3;
}

.payment-option.selected .payment-option-radio::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0071e3;
}

.payment-option-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.payment-option-icon--wechat {
  background-color: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.payment-option-icon--alipay {
  background-color: #1677ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.payment-option-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

/* ============================================
   13. Profile Page
   ============================================ */
.profile {
  padding-top: calc(48px + 40px);
  padding-bottom: 80px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.profile-welcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-welcome-text {
  font-size: 13px;
  color: #86868b;
}

.profile-welcome-name {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
}

.profile-logout-btn {
  padding: 10px 20px;
  background-color: #e30000;
  color: #fff;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.profile-logout-btn:hover {
  background-color: #b30000;
}

.profile-menu {
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 32px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: left;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background-color: #f5f5f7;
}

.profile-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.profile-menu-item-text {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
}

.profile-menu-item-arrow {
  font-size: 18px;
  color: #c7c7cc;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-action-btn {
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-action-btn--gray {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.profile-action-btn--gray:hover {
  background-color: #e8e8ed;
}

.profile-action-btn--danger {
  background-color: transparent;
  color: #e30000;
  border: 1px solid #e30000;
}

.profile-action-btn--danger:hover {
  background-color: #e30000;
  color: #fff;
}

/* ============================================
   14. Order Pages
   ============================================ */
.orders {
  padding-top: calc(48px + 40px);
  padding-bottom: 80px;
}

.orders-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.order-card {
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 16px;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-id {
  font-size: 14px;
  color: #86868b;
}

.order-date {
  font-size: 13px;
  color: #86868b;
}

.order-status {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
}

.order-status--pending {
  background-color: #fff3e0;
  color: #e65100;
}

.order-status--processing {
  background-color: #e3f2fd;
  color: #1565c0;
}

.order-status--shipped {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.order-status--delivered {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.order-status--cancelled {
  background-color: #fce4ec;
  color: #c62828;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.order-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-color: #f5f5f7;
  overflow: hidden;
  flex-shrink: 0;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.order-item-variant {
  font-size: 12px;
  color: #86868b;
}

.order-item-price {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: right;
}

.order-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 20px;
  position: relative;
}

.order-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #e8e8e8;
  transform: translateY(-50%);
  z-index: 0;
}

.order-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.order-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e8e8e8;
  transition: all 0.3s ease;
}

.order-timeline-step.active .order-timeline-dot {
  background-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.order-timeline-label {
  font-size: 11px;
  color: #86868b;
  white-space: nowrap;
}

.order-timeline-step.active .order-timeline-label {
  color: #0071e3;
  font-weight: 500;
}

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.order-total {
  font-size: 16px;
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.btn-cancel,
.btn-return {
  padding: 8px 18px;
  background-color: #e30000;
  color: #fff;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-cancel:hover,
.btn-return:hover {
  background-color: #b30000;
}

/* ============================================
   15. Modal / Popup
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 20px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.modal-body {
  padding: 20px 24px 24px;
}

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ============================================
   16. Auth Modal
   ============================================ */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #86868b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
}

.auth-tab:hover {
  color: #1d1d1f;
}

.auth-tab.active {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .form-input {
  padding: 16px;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: #86868b;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #d2d2d7;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #86868b;
}

.auth-switch a {
  color: #0071e3;
  font-weight: 500;
}

/* ============================================
   17. Added-to-Bag Toast / Modal
   ============================================ */
.added-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  padding: 20px;
  max-width: 380px;
  z-index: 10001;
  display: flex;
  gap: 16px;
  align-items: center;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s ease;
}

.added-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.added-toast-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: #f5f5f7;
  overflow: hidden;
  flex-shrink: 0;
}

.added-toast-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.added-toast-info {
  flex: 1;
}

.added-toast-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.added-toast-subtitle {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 10px;
}

.added-toast-actions {
  display: flex;
  gap: 8px;
}

.added-modal {
  max-width: 560px;
}

.added-modal-product {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.added-modal-product-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-color: #f5f5f7;
  overflow: hidden;
  flex-shrink: 0;
}

.added-modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.added-modal-recommendations {
  margin-top: 16px;
}

.added-modal-recommendations-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================
   18. Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: none;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: #0071e3;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0077ed;
  color: #fff;
}

.btn-primary:active {
  background-color: #006edb;
}

.btn-secondary {
  background-color: transparent;
  color: #0071e3;
  border: 1px solid #0071e3;
}

.btn-secondary:hover {
  background-color: #0071e3;
  color: #fff;
}

.btn-secondary:active {
  background-color: #006edb;
}

.btn-danger {
  background-color: #e30000;
  color: #fff;
}

.btn-danger:hover {
  background-color: #cc0000;
  color: #fff;
}

.btn-dark {
  background-color: #1d1d1f;
  color: #fff;
}

.btn-dark:hover {
  background-color: #333336;
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: #0071e3;
}

.btn-ghost:hover {
  background-color: rgba(0, 113, 227, 0.08);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
}

/* ============================================
   19. Form Elements
   ============================================ */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background-color: #fff;
  font-size: 15px;
  color: #1d1d1f;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #c7c7cc;
}

.form-input.error,
.form-select.error {
  border-color: #e30000;
}

.form-error {
  font-size: 12px;
  color: #e30000;
  margin-top: 4px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0071e3;
  cursor: pointer;
}

.form-hint {
  font-size: 12px;
  color: #86868b;
  margin-top: 4px;
}

/* ============================================
   20. Footer
   ============================================ */
.footer {
  background-color: #f5f5f7;
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #6e6e73;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1d1d1f;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #d2d2d7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 12px;
  color: #86868b;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: #86868b;
}

.footer-legal a:hover {
  color: #1d1d1f;
}

/* ============================================
   21. Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-muted {
  color: #86868b;
}

.text-primary {
  color: #0071e3;
}

.text-success {
  color: #2e7d32;
}

.text-danger {
  color: #e30000;
}

.text-white {
  color: #fff;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.hidden {
  display: none !important;
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.overflow-hidden {
  overflow: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   22. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pdp {
    grid-template-columns: 1fr 360px;
    gap: 32px;
  }

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

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: 36px;
  }

  .pdp {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-image {
    position: static;
  }

  .bag {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bag-summary {
    position: static;
  }

  .checkout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .checkout-summary {
    position: static;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hscroll .product-card {
    width: 180px;
  }

  .banner-card {
    flex: 0 0 85%;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card-info {
    padding: 10px;
  }

  .product-card-name {
    font-size: 13px;
  }

  .product-card-price {
    font-size: 14px;
  }

  .bag-item {
    flex-direction: column;
    gap: 12px;
  }

  .bag-item-image {
    width: 100%;
    height: 160px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   23. Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-slide-down {
  animation: slideDown 0.5s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease forwards;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ============================================
   24. Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* ============================================
   25. Province / City Selector
   ============================================ */
.region-selector {
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.region-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.region-selector-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.region-selector-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 18px;
  transition: all 0.2s ease;
}

.region-selector-close:hover {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.region-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 20px;
}

.region-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  position: relative;
  bottom: -1px;
}

.region-tab:hover {
  color: #1d1d1f;
}

.region-tab.active {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

.region-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 20px;
}

.region-search {
  position: relative;
  margin-bottom: 16px;
}

.region-search input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f5f5f7;
  outline: none;
  transition: all 0.2s ease;
}

.region-search input:focus {
  background-color: #fff;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.region-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #86868b;
  font-size: 14px;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.region-item {
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1d1d1f;
  border: 1px solid transparent;
  background: none;
  width: 100%;
}

.region-item:hover {
  background-color: #f5f5f7;
}

.region-item.active {
  background-color: #f0f7ff;
  color: #0071e3;
  border-color: #0071e3;
  font-weight: 500;
}

.region-hot {
  margin-bottom: 20px;
}

.region-hot-title {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 10px;
  font-weight: 500;
}

/* ============================================
   26. Notification / Toast
   ============================================ */
.toast-container {
  position: fixed;
  top: 60px;
  right: 24px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1d1d1f;
  animation: slideDown 0.3s ease, fadeIn 0.3s ease;
  max-width: 360px;
}

.toast--success {
  border-left: 3px solid #2e7d32;
}

.toast--error {
  border-left: 3px solid #e30000;
}

.toast--info {
  border-left: 3px solid #0071e3;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

/* ============================================
   27. Loading / Spinner
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(251, 251, 253, 0.8);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e8e8e8;
  border-top-color: #0071e3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner--small {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ============================================
   28. Tags / Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.badge--blue {
  background-color: #e3f2fd;
  color: #1565c0;
}

.badge--green {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.badge--orange {
  background-color: #fff3e0;
  color: #e65100;
}

.badge--red {
  background-color: #fce4ec;
  color: #c62828;
}

.badge--gray {
  background-color: #f5f5f7;
  color: #6e6e73;
}

/* ============================================
   29. Quantity Stepper
   ============================================ */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1d1d1f;
  transition: background-color 0.2s ease;
}

.qty-stepper button:hover {
  background-color: #f5f5f7;
}

.qty-stepper button:disabled {
  color: #c7c7cc;
  cursor: not-allowed;
}

.qty-stepper span {
  width: 48px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-left: 1px solid #d2d2d7;
  border-right: 1px solid #d2d2d7;
  line-height: 36px;
}

/* ============================================
   30. Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #86868b;
  padding: 16px 0;
}

.breadcrumb a {
  color: #0071e3;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #0071e3;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #c7c7cc;
}

.breadcrumb-current {
  color: #1d1d1f;
  font-weight: 500;
}

/* ============================================
   31. Empty State
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.2;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 15px;
  color: #86868b;
  margin-bottom: 24px;
  max-width: 400px;
}

/* ============================================
   32. Tab Navigation
   ============================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #86868b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: none;
  position: relative;
  bottom: -1px;
}

.tab:hover {
  color: #1d1d1f;
}

.tab.active {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

/* ============================================
   26. Page Loading & Skeleton
   ============================================ */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    color: #86868b;
    font-size: 15px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #d2d2d7;
    border-top-color: #1d1d1f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text-sm { height: 12px; width: 60%; }
.skeleton-img { aspect-ratio: 1/1; width: 100%; }
.skeleton-card { height: 280px; border-radius: 18px; }

/* ============================================
   27. Auth Modal Enhancements
   ============================================ */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #d2d2d7;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #86868b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.auth-tab.active {
    color: #1d1d1f;
    border-bottom-color: #0071e3;
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-error {
    background: #fff2f2;
    color: #e30000;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-error.visible { display: block; }

/* ============================================
   28. Province/City Selector Enhancements
   ============================================ */
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 16px 0;
}

.province-item {
    padding: 10px 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    background: none;
}

.province-item:hover {
    background: #f5f5f7;
}

.province-item.selected {
    background: #0071e3;
    color: #fff;
}

/* ============================================
   29. Status Timeline Enhancements
   ============================================ */
.status-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #d2d2d7;
    z-index: 0;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    flex: 1;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d2d2d7;
    border: 3px solid #fbfbfd;
    box-shadow: 0 0 0 2px #d2d2d7;
    transition: all 0.3s ease;
}

.status-step.active .status-dot {
    background: #34c759;
    box-shadow: 0 0 0 2px #34c759;
}

.status-step.completed .status-dot {
    background: #34c759;
    box-shadow: 0 0 0 2px #34c759;
}

.status-label {
    font-size: 12px;
    color: #86868b;
    text-align: center;
    white-space: nowrap;
}

.status-step.active .status-label,
.status-step.completed .status-label {
    color: #1d1d1f;
    font-weight: 500;
}

/* ============================================
   30. Editable Info Row
   ============================================ */
.info-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 8px;
}

.info-label {
    color: #86868b;
    font-size: 14px;
    min-width: 100px;
}

.info-value {
    color: #1d1d1f;
    font-size: 15px;
    flex: 1;
}

.info-edit {
    color: #0071e3;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.info-edit:hover {
    background: #f0f7ff;
}

/* ============================================
   31. Checkout Payment Buttons
   ============================================ */
.payment-methods {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #d2d2d7;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.payment-btn:hover {
    border-color: #86868b;
}

.payment-btn.selected {
    border-color: #0071e3;
    background: #f0f7ff;
}

.payment-btn.wechat { color: #07c160; }
.payment-btn.alipay { color: #1677ff; }

/* ============================================
   32. Misc Enhancements
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0071e3;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 8px 0;
    transition: opacity 0.15s;
}

.back-link:hover { opacity: 0.7; }

.back-link svg {
    width: 20px;
    height: 20px;
}

.section-divider {
    border: none;
    border-top: 1px solid #d2d2d7;
    margin: 24px 0;
}

.text-muted { color: #86868b; }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ============================================
   Mobile Responsive Styles
   ============================================ */

@media (max-width: 768px) {
  /* Nav */
  .m-nav { padding: 0 14px !important; }
  .m-nav-search { max-width: none !important; margin: 0 12px !important; flex: 1 !important; }
  .m-nav-brand { font-size: 15px !important; }

  /* Hero */
  .m-hero { padding: 60px 16px 32px !important; min-height: auto !important; }
  .m-hero h1 { font-size: 32px !important; }
  .m-hero p { font-size: 16px !important; }
  .hero-cta { padding: 10px 28px !important; font-size: 15px !important; }

  /* Banner */
  .m-banner-section { padding: 0 14px !important; margin-bottom: 48px !important; }
  .m-banner-card { flex: 0 0 70% !important; min-width: 160px !important; padding: 20px 16px !important; }
  .m-banner-card-title { font-size: 16px !important; }
  .m-banner-card-sub { font-size: 12px !important; }

  /* Category sections */
  .m-cat-section { margin-bottom: 32px !important; }
  .m-cat-header { padding: 0 14px !important; margin-bottom: 14px !important; }
  .m-cat-header h2 { font-size: 22px !important; }
  .m-cat-scroll-wrap { padding: 0 14px !important; gap: 14px !important; }
  .m-cat-card { flex: 0 0 44% !important; min-width: 140px !important; }

  /* Products page layout */
  .m-products-layout { flex-direction: column !important; gap: 20px !important; padding: 16px 14px !important; }
  .m-products-aside { flex: none !important; width: 100% !important; position: static !important; }
  .m-products-aside nav { flex-direction: row !important; overflow-x: auto !important; gap: 4px !important; padding: 6px !important; scrollbar-width: none; }
  .m-products-aside nav::-webkit-scrollbar { display: none; }
  .m-products-aside nav a { white-space: nowrap !important; padding: 8px 14px !important; font-size: 13px !important; }
  .m-products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }

  /* Product card - smaller on mobile */
  .m-product-card-wrap { min-width: 0 !important; flex: 0 0 calc(33.333% - 8px) !important; }
  .m-product-card-wrap > a { border-radius: 12px !important; }
  .m-product-card-wrap img { border-radius: 10px !important; }
  .m-product-card-name { font-size: 12px !important; line-height: 1.2 !important; }
  .m-product-card-price { font-size: 12px !important; }
  .m-rec-grid { gap: 10px !important; padding: 0 !important; grid-template-columns: repeat(3, 1fr) !important; }

  /* Product detail */
  .product-detail-layout { flex-direction: column !important; gap: 24px !important; padding: 0 14px !important; }
  .product-left-col { flex: none !important; width: 100% !important; }
  .product-main-images { min-height: 0 !important; aspect-ratio: 1 !important; max-height: 340px !important; }
  .product-info-right { flex: none !important; width: 100% !important; position: static !important; }

  /* Cart */
  .m-cart-item { flex-wrap: wrap !important; gap: 12px !important; }
  .m-cart-item-img { width: 64px !important; height: 64px !important; }
  .m-cart-item-info { flex: 1 !important; min-width: 120px !important; }
  .m-cart-controls { width: 100% !important; justify-content: flex-end !important; margin-top: 8px !important; }

  /* Checkout */
  .m-checkout-layout { flex-direction: column !important; gap: 24px !important; }
  .m-checkout-form { width: 100% !important; }
  .m-checkout-summary { width: 100% !important; position: static !important; }

  /* Orders */
  .m-order-card { flex-direction: column !important; gap: 10px !important; }
  .m-order-img { width: 48px !important; height: 48px !important; }

  /* Footer */
  .m-footer { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; padding: 16px 14px !important; }

  /* Progress bar */
  .m-progress-bar { gap: 0 !important; }
  .m-progress-bar > div { flex: none !important; width: 20% !important; }
  .m-progress-bar .m-step-label { font-size: 10px !important; }
}

@media (max-width: 480px) {
  .m-hero h1 { font-size: 28px !important; }
  .m-hero p { font-size: 15px !important; }
  .hero-cta { padding: 8px 22px !important; font-size: 14px !important; }
  .m-cat-card { flex: 0 0 48% !important; min-width: 130px !important; }
  .m-banner-card { flex: 0 0 80% !important; }
  .m-products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .m-product-card-wrap { flex: 0 0 calc(33.333% - 6px) !important; }
  .m-product-card-name { font-size: 11px !important; }
  .m-product-card-price { font-size: 11px !important; }
  .m-rec-grid { gap: 8px !important; }
  .product-main-images { max-height: 280px !important; }
}

/* Multi-tag styles */
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.product-card-tag {
    display: inline-block;
    padding: 2px 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.product-detail-tag {
    display: inline-block;
    padding: 4px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

/* Admin tag input styles */
.tag-input-container {
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-height: 38px;
    background: #fff;
}

.tag-input-container:focus-within {
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0,113,227,0.2);
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0071e3;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
}

.tag-chip-remove {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin: 0;
    opacity: 0.8;
}

.tag-chip-remove:hover {
    opacity: 1;
}

#m-tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 4px;
    background: transparent;
}

/* ============================================================
   Reviews Section
   ============================================================ */
.reviews-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.review-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.review-tab {
    padding: 6px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    background: #fff;
    color: #1d1d1f;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.review-tab:hover {
    background: #f5f5f7;
}

.review-tab.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

.review-card {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e7;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-username {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.review-time {
    font-size: 12px;
    color: #86868b;
}

.review-rating {
    margin-bottom: 8px;
}

.review-stars {
    color: #f5a623;
    font-size: 16px;
    letter-spacing: 2px;
}

.half-star {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 0.55em;
    vertical-align: top;
}

.review-content {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.6;
    margin: 8px 0;
}

.review-images {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e5e5e7;
    transition: transform 0.2s;
}

.review-image:hover {
    transform: scale(1.05);
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.review-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 16px;
    background: #fff;
    color: #86868b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.review-like-btn:hover {
    border-color: #0071e3;
    color: #0071e3;
}

.review-reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f5f5f7;
    border-radius: 10px;
}

.review-reply-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #0071e3;
    background: rgba(0,113,227,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.review-reply p {
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.5;
    margin: 0;
}

.review-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.review-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d2d2d7;
    background: #fff;
    color: #1d1d1f;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-page-btn:hover {
    background: #f5f5f7;
}

.review-page-btn.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

/* ============================================================
   Star Rating Input
   ============================================================ */
.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-input {
    font-size: 28px;
    color: #d2d2d7;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.star-input:hover,
.star-input:hover ~ .star-input {
    color: #f5a623;
}

/* ============================================================
   Tracking Section
   ============================================================ */
.tracking-section {
    margin: 20px 0;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
}

.tracking-steps {
    position: relative;
}

.tracking-step {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.tracking-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: #d2d2d7;
}

.tracking-step.active:not(:last-child)::before {
    background: #0071e3;
}

.tracking-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d2d2d7;
    flex-shrink: 0;
    margin-top: 3px;
}

.tracking-step.active .tracking-dot {
    background: #0071e3;
}

.tracking-info {
    flex: 1;
}

.tracking-label {
    font-size: 14px;
    color: #86868b;
}

.tracking-step.active .tracking-label {
    color: #1d1d1f;
    font-weight: 500;
}

.tracking-time {
    font-size: 12px;
    color: #86868b;
    margin-top: 2px;
}

/* ============================================================
   After-Sales Form
   ============================================================ */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #0071e3;
}

/* ============================================================
   Modal Overlay (shared with reviews)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #0071e3;
    color: #fff;
}

.btn-primary:hover {
    background: #0077ed;
}

.btn-ghost {
    background: #f5f5f7;
    color: #1d1d1f;
}

.btn-ghost:hover {
    background: #e8e8ed;
}
