/* =========================================================
   DỊCH VỤ ĐẶT HỘ SHOPEE - MODERN MOBILE-FIRST STYLESHEET
   Design System: Plus Jakarta Sans / Shopee Coral Gradient
========================================================= */

:root {
  --primary: #ee4d2d;
  --primary-hover: #d73211;
  --primary-light: #fff5f1;
  --primary-border: #fed7aa;
  --primary-gradient: linear-gradient(135deg, #ee4d2d 0%, #ff5722 55%, #ff7043 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(238, 77, 45, 0.08) 0%, rgba(255, 87, 34, 0.04) 100%);
  
  --bg-page: #f6f8fb;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
  --shadow-primary: 0 8px 20px -2px rgba(238, 77, 45, 0.28);
  
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* =========================================================
   BASE RESET
========================================================= */

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

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* =========================================================
   HEADER / HERO BANNER
========================================================= */

.hero {
  position: relative;
  width: 100%;
  padding: 24px 16px 64px;
  text-align: center;
  color: var(--text-light);
  background: var(--primary-gradient);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-bg-shapes .shape-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.hero-bg-shapes .shape-2 {
  width: 220px;
  height: 220px;
  bottom: -100px;
  left: -60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* =========================================================
   PAGE CONTAINER & LAYOUT
========================================================= */

.page {
  position: relative;
  margin-top: -36px;
  padding: 0 14px calc(110px + var(--safe-bottom));
}

.page-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* =========================================================
   CARDS
========================================================= */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
}

.section-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(238, 77, 45, 0.15);
}

.section-text {
  flex: 1;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.section-description {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.product-limit-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* =========================================================
   FORM FIELDS & INPUTS
========================================================= */

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required {
  color: var(--danger);
  font-weight: 700;
  margin-left: 2px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.input {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  font-size: 15px;
  color: var(--text-primary);
  padding: 0 14px;
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon .input {
  padding-left: 42px;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(238, 77, 45, 0.12);
  background: #fff;
}

.input::placeholder {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* CUSTOM SELECT */

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  left: 14px;
  font-size: 17px;
  pointer-events: none;
  z-index: 1;
}

.select-input {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  font-size: 14.5px;
  color: var(--text-primary);
  padding: 0 36px 0 42px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  transition: all 0.2s ease;
}

.select-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(238, 77, 45, 0.12);
}

.select-input:disabled {
  background-color: #f8fafc;
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: #f1f5f9;
}

.address-preview {
  margin-top: 10px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: #065f46;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
}

/* =========================================================
   INTERACTIVE CODE / VOUCHER CARDS
========================================================= */

.code-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.code-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.code-card .code-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.code-card-inner {
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  padding: 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.code-card:hover .code-card-inner {
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.code-card .code-radio:checked + .code-card-inner {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(238, 77, 45, 0.12);
}

.code-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.code-badge-hot {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.code-badge-save {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.code-radio-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.code-card .code-radio:checked + .code-card-inner .code-radio-check {
  border-color: var(--primary);
  background: var(--primary);
}

.code-card .code-radio:checked + .code-card-inner .code-radio-check::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.code-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.code-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (max-width: 440px) {
  .code-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PRODUCTS LIST & PRODUCT CARD
========================================================= */

.product {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease;
}

.product:hover {
  border-color: #cbd5e1;
}

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

.product-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 77, 45, 0.15);
}

.product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-caption {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.product-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.product-link-group {
  display: flex;
  gap: 8px;
}

.product-link-group .input {
  flex: 1;
}

.btn-resolve-link {
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease;
}

.btn-resolve-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-resolve-link:active {
  transform: translateY(1px);
}

.btn-resolve-link:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* THÊM SẢN PHẨM KHÁC (YES / NO) */

.add-product {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.add-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.options {
  display: flex;
  gap: 12px;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
  transition: all 0.2s ease;
}

.option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.option input {
  accent-color: var(--primary);
}

.limit-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.total-products-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.total-products-badge {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
}

/* =========================================================
   SHOPEE PDP CARD (CARD SẢN PHẨM BÓC TÁCH & PHÂN LOẠI)
========================================================= */

.shopee-pdp-card {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--primary-border);
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 4px 20px -2px rgba(238, 77, 45, 0.08);
}

.shopee-pdp-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px dashed #f1f5f9;
}

.shopee-pdp-thumb-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  min-width: 78px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.shopee-pdp-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopee-pdp-info {
  flex: 1;
  min-width: 0;
}

.shopee-pdp-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shopee-pdp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.shopee-badge-shop,
.shopee-badge-rating,
.shopee-badge-sold {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.shopee-badge-shop {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.shopee-badge-rating {
  background: #fef3c7;
  color: #b45309;
}

.shopee-badge-sold {
  background: #e2e8f0;
  color: #475569;
}

.shopee-pdp-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.shopee-pdp-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

/* VARIATION TIERS */

.shopee-variations-section {
  padding: 12px 0 6px;
}

.shopee-tier-group {
  margin-bottom: 12px;
}

.shopee-tier-group:last-child {
  margin-bottom: 4px;
}

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

.shopee-tier-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.shopee-tier-selected-hint {
  font-size: 13px;
  color: var(--text-primary);
}

.shopee-tier-selected-hint strong {
  color: var(--primary);
}

.shopee-tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopee-tier-btn {
  position: relative;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.shopee-tier-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: #fffafa;
}

.shopee-tier-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.1);
}

.shopee-tier-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.shopee-tier-opt-price {
  font-size: 11.5px;
  color: #64748b;
  margin-left: 2px;
}

.shopee-tier-btn.selected .shopee-tier-opt-price {
  color: var(--primary);
}

.shopee-corner-check {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-bottom-left-radius: 5px;
  border-top-right-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopee-corner-check svg {
  width: 9px;
  height: 9px;
}

.shopee-tier-btn.out-of-stock,
.shopee-tier-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  border-style: dashed;
}

/* SỐ LƯỢNG & TỒN KHO SECTION */

.shopee-qty-section {
  padding: 12px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  margin: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.shopee-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.shopee-qty-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shopee-qty-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.shopee-qty-right {
  display: flex;
  align-items: center;
}

.shopee-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  height: 36px;
  flex-shrink: 0;
}

.shopee-stepper-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.shopee-stepper-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.shopee-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shopee-stepper-input {
  width: 44px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  background: transparent;
}

.shopee-stock-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.shopee-add-more-variant-btn {
  border: 1.5px dashed var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.shopee-add-more-variant-btn:hover {
  background: var(--primary);
  color: #fff;
}

.shopee-adding-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.shopee-cancel-add-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  padding: 0 4px;
}

/* PHÂN LOẠI ĐÃ CHỌN SECTION */

.shopee-selected-breakdown-section {
  margin: 14px 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.shopee-breakdown-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.shopee-breakdown-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}

.selected-variants-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.selected-variant-chip-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  transition: all 0.2s ease;
  overflow: hidden;
}

.selected-variant-chip-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 2px 10px rgba(238, 77, 45, 0.1);
}

.chip-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.chip-variant-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.chip-variant-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
}

.chip-variant-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.chip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chip-stepper-mini {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  height: 30px;
  overflow: hidden;
}

.chip-stepper-mini button {
  width: 26px;
  height: 30px;
  border: none;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-stepper-mini button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chip-stepper-mini input {
  width: 32px;
  height: 30px;
  border: none;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  background: transparent;
}

.chip-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chip-remove-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* TÓM TẮT & GHI CHÚ */

.shopee-selected-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fff8f5;
  border: 1px solid #ffe8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.shopee-selected-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
  flex: 1;
}

.shopee-manual-note-toggle {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.shopee-manual-note-toggle:hover {
  color: var(--primary);
}

.shopee-custom-note-wrap {
  margin-top: 8px;
}

/* =========================================================
   MESSAGE ALERT BOX
========================================================= */

#message {
  margin-bottom: 16px;
}

.message {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  animation: fadeIn 0.2s ease;
}

.message.error {
  background: var(--danger-bg);
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.message.success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid var(--success-border);
}

/* =========================================================
   DESKTOP SUBMIT BUTTON
========================================================= */

.desktop-submit-wrap {
  margin-top: 20px;
}

.submit {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease;
}

.submit:hover:not(:disabled) {
  transform: translateY(-1.5px);
  filter: brightness(1.05);
}

.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* =========================================================
   MOBILE STICKY BOTTOM BAR (THUMB ZONE)
========================================================= */

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.07);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.25s ease;
}

.sticky-bar-left {
  flex: 1;
  min-width: 0;
}

.sticky-bar-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sticky-bar-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.sticky-bar-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.3);
  transition: all 0.2s ease;
}

.sticky-bar-btn:active {
  transform: scale(0.97);
}

/* Hide mobile sticky bar on larger screens where form submit button is clearly visible */
@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none !important;
  }
  .page {
    padding-bottom: 60px;
  }
}

/* =========================================================
   REVIEW VIEW / KIỂM TRA ĐƠN HÀNG
========================================================= */

.review-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.review-view.active {
  display: block;
}

.review-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 22px 18px;
  margin-bottom: 18px;
}

.review-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
  text-align: center;
}

.review-step-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.review-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.review-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.review-info {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 16px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13.5px;
}

.review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-row:first-child {
  padding-top: 0;
}

.review-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 110px;
}

.review-value {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.review-product {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.review-product:last-child {
  margin-bottom: 0;
}

.review-product-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.review-product-number {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-product-flex {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.review-product-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.review-product-meta {
  flex: 1;
  min-width: 0;
}

.review-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-link {
  display: block;
  font-size: 11.5px;
  color: #2563eb;
  word-break: break-all;
  margin-top: 6px;
}

.review-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.review-back {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.review-back:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.review-confirm {
  flex: 2;
  height: 48px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease;
}

.review-confirm:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.review-confirm:disabled,
.review-back:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* =========================================================
   POPUP THÀNH CÔNG (SUCCESS MODAL)
========================================================= */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.popup-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.popup-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  animation: scaleBounce 0.4s ease;
}

.popup-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
}

.popup-desc {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.popup-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease;
}

.popup-btn:hover {
  filter: brightness(1.05);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes scaleBounce {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* =========================================================
   MOBILE RESPONSIVE TWEAKS (< 480px)
========================================================= */

@media (max-width: 480px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .card {
    padding: 16px 12px;
    border-radius: var(--radius-lg);
  }

  .shopee-pdp-card {
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }

  .product {
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }

  .shopee-qty-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .shopee-qty-left {
    justify-content: space-between;
    width: 100%;
  }

  .shopee-qty-right {
    width: 100%;
  }

  .shopee-add-more-variant-btn,
  .shopee-adding-mode-badge {
    width: 100%;
    justify-content: center;
  }

  .chip-main-row {
    gap: 8px;
  }

  .chip-variant-name {
    font-size: 12.5px;
  }

  .hero {
    padding: 20px 14px 54px;
  }

  .hero-title {
    font-size: 21px;
  }

  .hero-subtitle {
    font-size: 13px;
  }
}

/* =========================================================
   MY ORDERS MODAL & TOP BAR BUTTON (COOKIE / LOCALSTORAGE)
========================================================= */
.hero-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.hero-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ee4d2d;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-my-orders {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.btn-my-orders:hover {
  background: #fff5f1;
  color: #ee4d2d;
  border-color: #fecdd3;
  transform: translateY(-1px);
}

.my-orders-badge {
  background: #ee4d2d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Modal layout */
.my-orders-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.my-orders-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.my-orders-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeUp 0.25s ease-out;
}

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

.my-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.my-orders-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.my-orders-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.my-orders-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.my-orders-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

.my-orders-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.my-orders-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.my-orders-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-orders-loading {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
}

.orders-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #ee4d2d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.my-orders-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.btn-refresh-orders {
  background: #f1f5f9;
  color: #334155;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-refresh-orders:hover {
  background: #e2e8f0;
}

.btn-close-orders {
  background: #ee4d2d;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-close-orders:hover {
  background: #d73211;
}

/* Order card */
.order-history-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 8px;
}

.order-code-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-code-badge {
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
}

.order-time-text {
  font-size: 12px;
  color: #94a3b8;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.order-status-badge.status-pending {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.order-status-badge.status-placed {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.order-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  background: #fff7ed;
  border: 1px dashed #fed7aa;
  padding: 6px 12px;
  border-radius: 8px;
  color: #c2410c;
  font-weight: 600;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.order-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8fafc;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}

.order-item-variant {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.order-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.order-item-qty {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.order-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #ee4d2d;
}

.order-recipient-info {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
}

.btn-remove-saved-order {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-remove-saved-order:hover {
  color: #ef4444;
  background: #fef2f2;
}

.order-placed-note {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
}

/* Empty state */
.empty-orders-state {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
}

.empty-orders-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-orders-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.empty-orders-sub {
  font-size: 12.5px;
  color: #94a3b8;
  max-width: 320px;
  margin: 0 auto;
}

/* ========================================================
   TRACKING BANNER & CARD BUTTON IN "ĐƠN CỦA BẠN"
======================================================== */
.order-shipping-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
}

.shipping-carrier-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carrier-tag {
  background: #166534;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tracking-num-tag {
  font-size: 13px;
  color: #0f172a;
}

.tracking-num-tag b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #0284c7;
}

.btn-copy-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-tag:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.shipping-status-line {
  margin-top: 6px;
  font-size: 12px;
  color: #15803d;
}

.order-card-action-bar {
  margin-top: 8px;
}

.btn-view-shopee-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #26aa99 0%, #1a8f80 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(38, 170, 153, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-view-shopee-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(38, 170, 153, 0.35);
}

/* ==========================================================================
   SHOPEE MOBILE APP ORDER DETAIL SCREEN MOCKUP (CHUẨN 100% TỪ SHOPEE_ORDER_WEB)
   ========================================================================== */

.card-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.card-modal-window {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-act-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.card-act-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
}

.card-act-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.card-act-btn.btn-primary {
  background: #ee4d2d;
  color: #ffffff;
}

.card-act-btn.btn-primary:hover {
  background: #d73211;
}

.card-close-x {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
}

.card-close-x:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.card-modal-preview-wrapper {
  padding: 16px 12px;
  background: #0b0f19;
  display: flex;
  justify-content: center;
  max-height: 78vh;
  overflow-y: auto;
}

/* ================= SHOPEE MOBILE APP CONTAINER ================= */
.shopee-mobile-app-mockup {
  width: 375px;
  background-color: #F5F5F5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222222;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  text-align: left;
}

/* 1. App Navigation Bar */
.mockup-app-nav {
  height: 46px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #F0F0F0;
  gap: 12px;
}

.mockup-back-btn {
  color: #EE4D2D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.mockup-nav-title {
  font-size: 17px;
  font-weight: 500;
  color: #222222;
  letter-spacing: -0.2px;
}

/* 2. Status Banner */
.mockup-status-banner {
  padding: 12px 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #26AA99;
}

.mockup-status-banner.status-completed,
.mockup-status-banner.status-shipping,
.mockup-status-banner.status-cancelled {
  background: #26AA99;
}

.status-banner-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* 3. Body Content */
.mockup-body {
  padding: 8px 8px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F5F5F5;
}

/* Common Card */
.mockup-card {
  background: #FFFFFF;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

/* Shipping Card */
.mockup-shipping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #222222;
}

.mockup-carrier-sn {
  font-size: 12px;
  color: #666666;
  margin-top: 5px;
  font-family: inherit;
}

.mockup-order-sn-sub {
  font-size: 12px;
  color: #666666;
  margin-top: 3px;
  font-family: inherit;
}

.mockup-shipping-status-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.shipping-status-icon {
  margin-top: 1px;
  flex-shrink: 0;
  color: #26AA99;
}

.mockup-shipping-status-row.shipping-completed .shipping-status-icon,
.mockup-shipping-status-row.shipping-completed .shipping-status-label {
  color: #26AA99;
}

.shipping-status-label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.shipping-status-time {
  font-size: 11px;
  color: #888888;
  margin-top: 2px;
}

/* Address Card */
.mockup-address-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.address-pin-icon {
  color: #666666;
  margin-top: 2px;
  flex-shrink: 0;
}

.address-content-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.address-recipient-line {
  font-size: 13px;
  color: #222222;
  font-weight: 500;
}

.address-recipient-phone {
  color: #777777;
  font-weight: 400;
  margin-left: 6px;
}

.address-detail-p {
  font-size: 12px;
  color: #555555;
  line-height: 1.45;
  margin-top: 1px;
}

/* Product Card */
.mockup-shop-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.shopee-mall-badge {
  background: #D0011B;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1.2;
}

.shopee-preferred-badge {
  background: #EE4D2D;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1.2;
}

.shop-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #222222;
}

.mockup-items-container {
  display: flex;
  flex-direction: column;
}

.mockup-product-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mockup-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #EEEEEE;
  background: #F9F9F9;
}

.mockup-product-thumb-fallback {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  color: #EE4D2D;
  flex-shrink: 0;
  border: 1px solid #EEEEEE;
}

.mockup-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mockup-product-title {
  font-size: 13px;
  font-weight: 400;
  color: #222222;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mockup-variant-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #888888;
  margin-top: 4px;
}

.mockup-product-price-row {
  text-align: right;
  margin-top: 6px;
  font-size: 13.5px;
  color: #222222;
  font-weight: 500;
}

/* Total / COD Row - Clean without voucher */
.mockup-total-row {
  border-top: 1px solid #F2F2F2;
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.total-label-text {
  font-size: 12.5px;
  color: #555555;
}

.total-amount-strong {
  font-size: 15px;
  font-weight: 600;
  color: #222222;
}