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

:root {
  --pink-light: #fce4ec;
  --pink-main: #f8bbd0;
  --pink-dark: #f48fb1;
  --pink-accent: #ec407a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #9e9e9e;
  --gray-dark: #616161;
  --text-primary: #333333;
  --text-secondary: #666666;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--white) 50%, var(--pink-light) 100%);
  min-height: 100vh;
  color: var(--text-primary);
  padding-bottom: 80px;
}

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

/* Header */
.header {
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink-accent);
}

.header-logo span {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-actions a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.header-actions a:hover,
.header-actions a.active {
  background: var(--pink-light);
  color: var(--pink-accent);
}

/* Search Bar */
.search-bar {
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--pink-light);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--pink-main);
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--pink-light);
}

.search-input:focus {
  border-color: var(--pink-accent);
  background: var(--white);
}

.search-btn {
  padding: 10px 20px;
  background: var(--pink-accent);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #d81b60;
}

/* Banner Carousel */
.banner-carousel {
  margin: 12px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
}

.banner-content {
  flex: 1;
}

.banner-badge {
  display: inline-block;
  background: var(--pink-accent);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.banner-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.banner-content p {
  font-size: 12px;
  color: var(--text-secondary);
}

.banner-image {
  width: 100px;
  height: 70px;
  object-fit: contain;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 4px;
}

/* Menu Card */
.menu-card {
  display: flex;
  justify-content: space-between;
  padding: 20px 16px;
  margin: 12px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s;
}

.menu-item:hover {
  transform: translateY(-2px);
}

.menu-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-main) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-accent);
}

.menu-icon i {
  width: 26px;
  height: 26px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.tab-item {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--pink-main);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-item:hover {
  background: var(--pink-light);
  color: var(--pink-accent);
}

.tab-item.active {
  background: var(--pink-accent);
  border-color: var(--pink-accent);
  color: var(--white);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 8px;
}

.section-header .section-title {
  padding: 0;
  margin: 0;
}

.section-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-accent);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* Product Grid */
.section-title {
  padding: 16px 16px 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--pink-light);
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.price-original {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 400;
}

.price-discount {
  color: var(--pink-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.price-current {
  color: var(--pink-accent);
}

.discount-badge {
  font-size: 10px;
  background: #e53935;
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.product-sold {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-category {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

.product-buttons {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.form-btn-cart {
  flex: 0 0 auto;
}

.form-btn-buy {
  flex: 1;
}

.btn-add-cart {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  color: var(--pink-accent);
  border: 2px solid var(--pink-accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-cart:hover {
  background: var(--pink-light);
}

.btn-buy-now {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  background: var(--pink-accent);
  color: var(--white);
  border: 2px solid var(--pink-accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-buy-now:hover {
  background: #d81b60;
  border-color: #d81b60;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin: 8px 16px;
  box-shadow: var(--shadow);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--pink-light);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-accent);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pink-main);
  background: var(--white);
  color: var(--pink-accent);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--pink-light);
}

.qty-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.btn-remove {
  color: var(--gray);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-remove:hover {
  background: #ffebee;
  color: #e53935;
}

/* Form Styles */
.form-container {
  padding: 16px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.form-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--gray-light);
}

.form-control:focus {
  border-color: var(--pink-accent);
  background: var(--white);
}

.form-control::placeholder {
  color: var(--gray);
}

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

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--pink-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #d81b60;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: var(--white);
  color: var(--pink-accent);
  border: 2px solid var(--pink-accent);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--pink-light);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin: 12px 16px;
  background: var(--white);
  border: 2px solid var(--pink-main);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-accent);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--pink-light);
}

/* Checkout Total */
.checkout-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 8px 16px;
  box-shadow: var(--shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.summary-row.total {
  border-top: 2px solid var(--pink-main);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.summary-row.total .price {
  color: var(--pink-accent);
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--pink-accent);
  background: var(--pink-light);
}

.payment-option input[type="radio"] {
  accent-color: var(--pink-accent);
  width: 18px;
  height: 18px;
}

.payment-label {
  font-size: 14px;
  font-weight: 600;
}

.payment-icon {
  width: 24px;
  height: 24px;
  color: var(--pink-accent);
}

/* Alert */
.alert {
  padding: 12px 16px;
  margin: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Address Section */
.address-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.address-section-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-address {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--pink-accent);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add-address:hover {
  background: var(--pink-dark);
}

.address-list-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-item-settings {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.address-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.address-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.address-default-badge {
  background: var(--pink-accent);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.address-item-text {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.address-item-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.address-item-actions {
  display: flex;
  gap: 8px;
}

.btn-address-action {
  background: none;
  border: 1px solid var(--pink-accent);
  color: var(--pink-accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-address-action:hover {
  background: var(--pink-light);
}

.btn-address-delete {
  background: none;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-address-delete:hover {
  background: #ffebee;
}

.empty-address {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
}

.empty-address p {
  margin: 8px 0 0;
  font-size: 13px;
}

.address-form-divider {
  text-align: center;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  margin-top: 12px;
}

.address-form-divider span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group-half {
  flex: 1;
}

.hidden {
  display: none !important;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--gray);
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: var(--pink-accent);
}

.nav-icon {
  width: 22px;
  height: 22px;
}

i[data-lucide] {
  vertical-align: middle;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  background: var(--pink-accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Profile */
.profile-header {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--pink-main) 0%, var(--pink-accent) 100%);
  color: var(--white);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 32px;
  color: var(--pink-accent);
  font-weight: 700;
  border: 3px solid var(--white);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 13px;
  opacity: 0.9;
}

.profile-menu {
  padding: 16px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

.profile-menu-item:hover {
  transform: translateX(4px);
}

.profile-menu-icon {
  width: 24px;
  height: 24px;
  color: var(--pink-accent);
}

.profile-menu-text {
  flex: 1;
}

.profile-menu-title {
  font-size: 15px;
  font-weight: 600;
}

.profile-menu-subtitle {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.profile-menu-arrow {
  color: var(--gray);
  width: 18px;
  height: 18px;
}

/* Order List */
.order-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 8px 16px;
  box-shadow: var(--shadow);
}

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

.order-id {
  font-size: 14px;
  font-weight: 700;
}

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

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

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

.order-date {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

.order-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-accent);
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--pink-accent);
  margin-bottom: 8px;
}

.auth-logo span {
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--gray);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray);
}

.auth-footer a {
  color: var(--pink-accent);
  font-weight: 600;
}

/* Page Title */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Order List */
.order-list {
  padding: 0 16px;
}

.order-card-link {
  display: block;
  margin-bottom: 12px;
}

.order-card-link .order-card {
  margin: 0;
}

/* Order Status Colors */
.order-status {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

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

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

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

.status-transit_a,
.status-transit_b,
.status-transit_c,
.status-transit_d {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-delivered {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item.active:not(:last-child)::after {
  background: var(--pink-accent);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  background: var(--pink-accent);
}

.timeline-item.current .timeline-dot {
  background: var(--pink-dark);
  box-shadow: 0 0 0 4px var(--pink-light);
}

.timeline-content {
  flex: 1;
  padding-top: 3px;
}

.timeline-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline-item.active .timeline-label {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-item.current .timeline-label {
  color: var(--pink-dark);
  font-weight: 700;
}

/* Track Card */
.track-card {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.track-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mini-timeline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 8px 0;
}

.mini-timeline-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.mini-timeline-step.active {
  background: var(--pink-accent);
}

.mini-timeline-step.current {
  background: var(--pink-dark);
}

.mini-timeline-step.current::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--pink-dark);
  border-radius: 50%;
  margin-left: auto;
  margin-top: -2px;
}

.track-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--pink-light);
}

.track-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-accent);
}

.track-arrow {
  color: var(--gray);
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--pink-light);
}

/* Order Detail */
.detail-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-id-detail {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

.detail-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
}

.detail-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pink-light);
}

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

.detail-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.detail-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.detail-item-qty {
  font-size: 12px;
  color: var(--gray);
}

.detail-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-accent);
}

.detail-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-summary-divider {
  border-top: 1px dashed var(--border);
  margin: 4px 0;
}

.detail-summary-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-info-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Info Row */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--pink-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: var(--gray);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Address Selection */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.address-option:hover,
.address-option.selected {
  border-color: var(--pink-accent);
  background: var(--pink-light);
}

.address-option input[type="radio"] {
  accent-color: var(--pink-accent);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.address-content {
  flex: 1;
}

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

.address-label {
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.address-badge {
  font-size: 10px;
  background: var(--pink-accent);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.address-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.address-detail {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.address-new {
  border-style: dashed;
  border-color: var(--pink-main);
  justify-content: center;
}

.address-new:hover {
  border-color: var(--pink-accent);
}

.address-new input[type="radio"] {
  display: none;
}

.address-new-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-accent);
  font-weight: 600;
  font-size: 14px;
}

.address-form-divider {
  text-align: center;
  padding: 12px 0;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group-half {
  flex: 1;
}

.hidden {
  display: none;
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Product Detail */
.product-detail {
  background: var(--white);
  margin: 8px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-detail-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--pink-light);
}

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

.discount-badge-detail {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e53935;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-info {
  padding: 20px 16px;
}

.product-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray);
  background: var(--pink-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.product-detail-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.product-detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-original-detail {
  font-size: 16px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 400;
}

.price-discount-detail {
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-current-detail {
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-accent);
}

.product-detail-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pink-light);
}

.product-detail-desc {
  margin-bottom: 20px;
}

.product-detail-desc h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-detail-desc p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail-form {
  width: 100%;
}

.btn-detail-cart {
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--pink-accent);
  border: 2px solid var(--pink-accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-detail-cart:hover {
  background: var(--pink-light);
}

.btn-detail-buy {
  width: 100%;
  padding: 14px;
  background: var(--pink-accent);
  color: var(--white);
  border: 2px solid var(--pink-accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-detail-buy:hover {
  background: #d81b60;
  border-color: #d81b60;
}

.btn-detail-disabled {
  width: 100%;
  padding: 14px;
  background: var(--gray-light);
  color: var(--gray);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Responsive */
@media (min-width: 768px) {
  body {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
  }

  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
}
