/* Trend Fashion Mall - OPPO Style Mobile UI */
:root {
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-primary: #1a1a1a;
  --color-accent: #e63946;
  --color-price: #e63946;
  --color-border: #eeeeee;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
  --header-height: 48px;
  --safe-top: env(safe-area-inset-top, 0px);
  --header-total: calc(var(--header-height) + var(--safe-top));
  --bottom-nav-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }

/* ========== Header ========== */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: var(--header-total);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) 16px 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-logo-img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  position: relative;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 100px;
  z-index: 100;
}

.lang-dropdown.show { display: block; }

.lang-dropdown li {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
}

.lang-dropdown li:hover,
.lang-dropdown li.active { background: #f5f5f5; color: var(--color-accent); }

/* ========== Search ========== */
.search-bar {
  padding: 8px 16px;
  background: var(--color-white);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 8px 16px;
  gap: 8px;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--color-text);
}

.search-input-wrap input::placeholder { color: var(--color-text-light); }

.search-icon { color: var(--color-text-light); font-size: 14px; }

/* ========== Main Content ========== */
.main-content {
  padding-top: var(--header-total);
}

.page-below-header {
  padding-top: var(--header-total);
  min-height: calc(100vh - var(--header-total));
}

.page-body.main-content {
  padding-top: var(--header-total);
}

.page-header-slot {
  height: 0;
}

/* 页面内容区内边距（勿用 padding 简写，否则会覆盖顶栏留白） */
.page-padding {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
}

.page-padding-lg {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 24px;
}

/* 顶栏下方粘性子导航（订单 Tab 等） */
.sticky-subnav {
  position: sticky;
  top: var(--header-total);
  z-index: 900;
}

.page-section {
  margin-bottom: 8px;
  background: var(--color-white);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.section-more {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ========== Banner Carousel ========== */
.banner-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: #eee;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}

.banner-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--color-white);
}

/* ========== Category Grid ========== */
.search-bar .search-input-wrap {
  display: flex;
  align-items: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  padding: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.category-item:active { transform: scale(0.95); }

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.category-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8f8f8;
}

.category-name {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
}

.category-products-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.section-more {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.category-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.category-products-grid .product-card {
  margin-bottom: 0;
}

.category-products-grid .product-card-grid .product-name {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-products-grid .product-card-grid .product-subtitle {
  display: none;
}

/* ========== Category Page Layout ========== */
.category-layout {
  display: flex;
  min-height: calc(100vh - var(--header-total) - var(--bottom-nav-height) - var(--safe-bottom));
  background: var(--color-bg);
}

.category-sidebar {
  width: 92px;
  flex-shrink: 0;
  background: #f0f0f0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-right: 1px solid var(--color-border);
}

.category-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: 11px;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.category-sidebar-item.active {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}

.category-sidebar-item .cat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-sidebar-item .category-icon-svg {
  width: 24px;
  height: 24px;
}

.category-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.category-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-total);
  z-index: 40;
}

.category-toolbar .result-text {
  flex: 1;
  font-size: 12px;
  color: var(--color-text-light);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-toolbar select {
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  max-width: 96px;
}

.category-toolbar .filter-toggle {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  white-space: nowrap;
}

.category-toolbar .filter-toggle.has-filter {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.category-filter-panel {
  display: none;
  background: var(--color-white);
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.category-filter-panel.show { display: block; }

.category-main .category-products-grid {
  padding: 12px;
  flex: 1;
}

.filter-section { margin-bottom: 12px; }
.filter-section-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--color-text); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: #f5f5f5;
  color: var(--color-text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
}
.filter-chip.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
}

/* ========== Product Card (OPPO Style) ========== */
.product-list {
  padding: 0 16px 16px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-hover);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card-image img { transform: scale(1.03); }

.product-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-white);
  font-weight: 500;
}

.tag-new { background: #2ecc71; }
.tag-hot { background: var(--color-accent); }
.tag-recommend { background: #3498db; }
.tag-exclusive { background: #9b59b6; }
.tag-limit { background: #e67e22; }

.product-card-body {
  padding: 12px 16px 16px;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-subtitle {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-sale {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-price);
}

.price-sale .currency { font-size: 12px; }

.price-original {
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.price-from {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ========== Seckill Zone ========== */
.seckill-zone {
  background: linear-gradient(180deg, #fff5f5 0%, var(--color-white) 100%);
  padding-bottom: 16px;
}

.seckill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.seckill-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.countdown-num {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.seckill-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.seckill-scroll::-webkit-scrollbar { display: none; }

.seckill-item {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.seckill-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.seckill-item-info { padding: 8px; }

.seckill-item-name {
  font-size: 12px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seckill-price {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

/* ========== Must Grab Horizontal Cards ========== */
.must-grab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}

.must-grab-card {
  display: flex;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.must-grab-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.must-grab-info {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  color: var(--color-text-light);
  font-size: 10px;
  transition: color 0.2s;
  position: relative;
}

.nav-item.active { color: var(--color-primary); }

.header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  color: #1a1a1a;
}

.header-back-icon {
  width: 20px;
  height: 20px;
}

.menu-chevron {
  color: #ccc;
  transform: rotate(0deg);
}

.menu-chevron .ui-icon {
  width: 16px;
  height: 16px;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ========== Hidden modules ========== */
.module-hidden { display: none !important; }

/* ========== Loading & Empty ========== */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--color-text-light);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn:active { opacity: 0.8; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-block { width: 100%; }

/* ========== Product Detail Page ========== */
.detail-gallery {
  aspect-ratio: 1;
  background: #fafafa;
  overflow: hidden;
}

.detail-info { padding: 20px 16px; background: var(--color-white); }
.detail-info .product-tags {
  position: static;
  margin-bottom: 8px;
}

.detail-price { margin: 12px 0; }

.detail-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--color-white);
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  z-index: 100;
}

.detail-actions .btn { flex: 1; }

/* ========== Cart Page ========== */
body.cart-page {
  padding-bottom: calc(72px + var(--safe-bottom));
}

.cart-list {
  padding: 8px 0 16px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  background: var(--color-white);
  margin-bottom: 8px;
}

.cart-item-check {
  flex-shrink: 0;
  padding-top: 28px;
}

.cart-item-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.cart-item-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f5f5f5;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-name {
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-sku-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.cart-item-sku-btn .sku-arrow {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--color-text-light);
}

.cart-item-sku {
  font-size: 12px;
  color: var(--color-text-light);
}

/* 购物车规格弹层 */
.sku-sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.sku-sheet-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.sku-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 750px;
  max-height: 75vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  z-index: 9001;
  transition: transform 0.3s;
  overflow-y: auto;
}

.sku-sheet-mask.show .sku-sheet {
  transform: translateX(-50%) translateY(0);
}

.sku-sheet-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.sku-sheet-header img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sku-sheet-header .info {
  flex: 1;
  min-width: 0;
}

.sku-sheet-header .name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sku-sheet-header .price {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-price);
}

.sku-sheet-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #999;
  padding: 4px;
}

.sku-sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sku-sheet-actions .btn {
  flex: 1;
  padding: 12px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-price);
  white-space: nowrap;
}

.cart-item .qty-picker {
  flex-shrink: 0;
}

.cart-item .qty-picker button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.cart-item-delete {
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  color: var(--color-text-light);
  padding: 8px 4px;
}

.cart-footer {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}

body.cart-page .cart-footer {
  bottom: 0;
}

.cart-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.cart-footer-left input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.cart-footer-info {
  min-width: 0;
}

.cart-footer-info .select-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.cart-footer-info .total-row {
  font-size: 13px;
  margin-top: 2px;
}

.cart-footer-info .total-row .price-sale {
  font-size: 18px;
  font-weight: 700;
}

.cart-footer .btn-primary {
  flex-shrink: 0;
  min-width: 96px;
  padding: 10px 18px;
}

.cart-footer .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ========== Auth Forms ========== */
.auth-page {
  padding: 40px 24px;
  min-height: 100vh;
  background: var(--color-white);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
}

.form-group input:focus { border-color: var(--color-primary); }

.auth-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; }

/* ========== Lazy load placeholder ========== */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Outfit Recommend ========== */
.outfit-section {
  padding: 0 16px 16px;
}

.outfit-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.outfit-item {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.outfit-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.outfit-label {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-light);
  padding: 4px;
}
