.page-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 30px auto;
  padding: 40px;
  min-height: 500px;
}

.page-title {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  text-transform: uppercase;
}

.page-content {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}
.page-content h3 {
  margin-top: 20px;
  color: #333;
}
.page-content ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 15px;
}

/* --- 1. TRA CỨU ĐƠN HÀNG (TRACKING) --- */
.tracking-box {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #eee;
  text-align: center;
}
.tracking-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tracking-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}
.tracking-result {
  margin-top: 30px;
  display: none;
  text-align: left;
  border-top: 2px dashed #ddd;
  padding-top: 20px;
}

/* Modal Track Order */
.track-modal-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.track-modal-content {
  background: #fff;
  width: 95%;
  max-width: 650px;
  border-radius: 8px;
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.track-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.track-modal-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
}
.track-modal-close {
  font-size: 24px;
  cursor: pointer;
  color: #888;
}
.track-modal-close:hover {
  color: #d70018;
  font-weight: bold;
}
.track-modal-body {
  padding: 20px;
  overflow-y: auto;
}
.track-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.track-info-box-sm {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #eee;
}
.track-info-title {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: bold;
}
.track-info-line {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}
.track-item-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
}
.track-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
}
.track-item-detail {
  flex: 1;
}
.track-item-name {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.track-item-meta {
  font-size: 13px;
  color: #666;
}
.track-item-price {
  font-weight: bold;
  color: #d70018;
}
.track-summary {
  margin-top: 20px;
  background: #fff9fa;
  padding: 15px;
  border-radius: 6px;
  border: 1px dashed #ffb3b3;
}
.track-sum-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.track-sum-final {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 16px;
  font-weight: bold;
  color: #d70018;
}
.btn-open-track-modal {
  display: block;
  text-align: center;
  background: #eef5ff;
  color: var(--primary);
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
  border: 1px solid #cce0ff;
  transition: 0.2s;
}
.btn-open-track-modal:hover {
  background: #dbeaff;
}
@media (max-width: 500px) {
  .track-info-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 2. HỆ THỐNG CỬA HÀNG (STORE SYSTEM) --- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.store-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: 0.3s;
}
.store-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}
.store-name {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}
.store-address {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 8px;
}

/* --- 3. TUYỂN DỤNG (CAREERS) --- */
.job-item {
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}
.job-item:hover {
  background: #f8faff;
  border-color: #dbeaff;
}
.job-title {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}
.job-meta {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}
.btn-apply {
  background: var(--primary);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

/* =========================================
   RESPONSIVE / MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {
  .page-wrapper {
    margin: 15px auto;
    padding: 20px;
    min-height: auto;
  }
  .page-title {
    font-size: 20px;
  }
  .tracking-box {
    padding: 20px;
  }
  .tracking-input-group {
    flex-direction: column;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-apply {
    width: 100%;
    text-align: center;
  }
}
